/* =====================================================================
   Drejtoria e Ujitjes dhe Kullimit Fier — stili i faqes
   Ngjyrat dhe përmasat kryesore ndryshohen te :root
   ===================================================================== */
:root {
  --sun: #F5C342;          /* shiriti i menysë */
  --sun-tint: #FBE3A1;     /* elementi aktiv në meny */
  --sun-strong: #E9AE14;
  --blue: #0B5A8E;         /* lidhjet dhe titujt e kartave */
  --blue-dark: #0A3D63;    /* titujt e seksioneve */
  --ink: #0A2E4A;          /* teksti mbi të verdhë */
  --text: #1E2830;
  --muted: #5A6873;
  --line: #DDE3E7;
  --soft: #F0F3F5;
  --footer: #ECEFF1;
  --white: #fff;
  --ok: #1D6B3A;   --ok-bg: #DDF1E4;
  --run: #6E4E00;  --run-bg: #FFEFC2;
  --plan: #0B5A8E; --plan-bg: #E2EDF6;
  --warn: #9B2C1F; --warn-bg: #FBE3DE;
  --container: 1100px;
  --font: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { color: var(--blue-dark); line-height: 1.25; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 700; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 800px; }
.section { padding-top: 48px; padding-bottom: 48px; }
.section-title { margin-bottom: 20px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0 0 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 15px; color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.topbar { background: #fff; }
.topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.brand-text span { font-size: 14px; color: var(--muted); font-style: italic; }
.utility { justify-self: end; display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.utility a { color: var(--text); text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.menu-btn { display: none; }

.navband { background: var(--sun); }
.navband-inner { display: flex; justify-content: space-between; align-items: stretch; gap: 16px; }
.nav { display: flex; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 11px 16px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500;
}
.nav a:hover { background: rgba(255, 255, 255, .35); }
.nav a[aria-current="page"] { background: var(--sun-tint); box-shadow: inset 0 -3px 0 var(--ink); }
.nav-mobile-only { display: none; }
.search { display: flex; align-items: center; padding: 7px 0; }
.search input {
  width: 200px; height: 32px; border: 1px solid rgba(10, 46, 74, .35); border-right: 0; padding: 0 10px;
  font: inherit; font-size: 15px; background: #fff; color: var(--text); border-radius: 2px 0 0 2px;
}
.search button {
  height: 32px; width: 36px; border: 1px solid rgba(10, 46, 74, .35); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; border-radius: 0 2px 2px 0;
}
.search button svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; background: #255F86; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 30, 50, .62) 0%, rgba(6, 30, 50, .38) 45%, rgba(6, 30, 50, 0) 75%);
}
.hero .container { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 46px); max-width: 620px; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.hero p { color: #fff; font-size: 19px; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); text-decoration: none;
  font-weight: 600; padding: 6px 20px 6px 6px; border-radius: 999px;
}
.pill:hover { color: var(--blue); }
.pill-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.pill-icon svg { width: 16px; height: 16px; }
.hero-meta { color: #fff; font-size: 15px; opacity: .9; }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 6px 20px rgba(10, 46, 74, .12); color: var(--text); }
.card:hover .card-title { text-decoration: underline; }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.card-body p { font-size: 15px; margin: 0; color: var(--text); }
.card-title { color: var(--blue); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.card-type { color: var(--muted); }
.card-lg .card-media { aspect-ratio: 16 / 8; }
.card-lg .card-title { font-size: 20px; }
.card-lg .link-chev { margin-top: 14px; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 2px; letter-spacing: .02em; }
.badge-ne-zbatim { background: var(--run-bg); color: var(--run); }
.badge-perfunduar { background: var(--ok-bg); color: var(--ok); }
.badge-planifikuar { background: var(--plan-bg); color: var(--plan); }

.chev { width: 14px; height: 14px; flex: none; }
.link-chev { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; text-decoration: none; }
.link-chev:hover { text-decoration: underline; }

/* ---------- popular + news ---------- */
.split { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.popular { list-style: none; margin: 0; padding: 0; }
.popular li + li { margin-top: 6px; }
.popular a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--soft);
  padding: 10px 12px; font-size: 15px; line-height: 1.4; text-decoration: none;
}
.popular a:hover { background: #E4E9ED; text-decoration: underline; }

.news-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 1fr 150px; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.news-item h3 { font-size: 18px; margin: 4px 0 6px; }
.news-item h3 a { color: var(--blue-dark); text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; color: var(--blue); }
.news-item p { font-size: 15px; margin: 0; }
.news-thumb { width: 150px; aspect-ratio: 3 / 2; object-fit: cover; }
.kicker { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--muted); }
.kicker-kind { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); font-size: 12px; }
.kind-njoftim { color: var(--run); }
.kind-paralajmerim { color: var(--warn); }
.news-more { margin-top: 18px; }

/* ---------- story band ---------- */
.band { position: relative; min-height: 440px; display: flex; align-items: center; margin: 56px 0 0; overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band .container { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; }
.band-card { background: #fff; max-width: 440px; padding: 28px 28px 24px; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); }
.band-card p { font-size: 15px; }
.band-credit { position: absolute; right: 12px; top: 12px; z-index: 1; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-strong); color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 15px; }

/* ---------- subpages ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--blue); }
.crumbs span { color: var(--muted); }
.crumbs .chev { width: 11px; height: 11px; color: var(--muted); }
.page-head { padding: 22px 0 28px; max-width: 800px; }
.lead { font-size: 20px; color: var(--text); margin: 0; }
.page-banner { height: 260px; overflow: hidden; background: var(--soft); }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }

.detail { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.org-intro { margin-bottom: 28px; }
.detail-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; margin-bottom: 28px; }
.facts { background: var(--soft); padding: 24px; position: sticky; top: 16px; }
.facts h2 { font-size: 19px; }
.facts dl { margin: 0 0 22px; }
.facts dl div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts .btn { width: 100%; justify-content: center; }
.progress { margin-bottom: 18px; }
.progress-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.progress-bar { height: 8px; background: #fff; border: 1px solid var(--line); }
.progress-bar span { display: block; height: 100%; background: var(--blue); }

/* filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 14px; padding: 6px 14px; border: 1px solid var(--line); background: #fff; color: var(--blue);
  border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }
a.chip { display: inline-block; line-height: 1.5; text-decoration: none; }
a.chip:hover { color: var(--blue); }
a.chip[aria-current="page"]:hover { color: #fff; }
.chips-spaced { margin-bottom: 20px; }
.filter-controls { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.filter-controls select, .filter-controls input,
.form input, .form select, .form textarea {
  font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid #B9C3CA; background: #fff; color: var(--text); border-radius: 2px;
}
.filter-controls input { width: 220px; }
.results-count { font-size: 15px; font-weight: 400; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.status-summary { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 28px; }
.stat-mini { background: var(--soft); padding: 10px 16px; display: flex; align-items: baseline; gap: 8px; }
.stat-mini strong { font-size: 22px; color: var(--blue-dark); }
.stat-mini span { font-size: 14px; color: var(--muted); }

/* domains (veprimtaria) */
.domain { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.domain:nth-of-type(even) .domain-media { order: 2; }
.domain-text { grid-template-columns: 1fr; }
.domain-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.domain ul { padding-left: 20px; margin: 0 0 1em; }
.domain li { margin-bottom: 4px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { background: var(--soft); padding: 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { font-size: 15px; margin: 0; }

/* partners */
.tile { border: 1px solid var(--line); padding: 24px; background: #fff; }
.tile h3 { color: var(--blue); }
.tile p { font-size: 15px; margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag-list li { background: var(--soft); padding: 8px 14px; font-size: 15px; }

/* stats (rreth nesh) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: #fff; padding: 24px; }
.stat strong { display: block; font-size: 30px; color: var(--blue-dark); line-height: 1.1; margin-bottom: 6px; }
.stat span { font-size: 15px; color: var(--muted); }
.anchor-block { scroll-margin-top: 16px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.info { display: grid; gap: 12px; }
.info-block { background: var(--soft); padding: 18px 20px; }
.info-block h3 { font-size: 16px; margin-bottom: 4px; }
.info-block p { margin: 0; }
.info-block .small { margin-top: 4px; }
.info-block.emergency { background: var(--warn-bg); }
.info-block.emergency h3 { color: var(--warn); }
.info-block.emergency a { font-size: 22px; font-weight: 700; color: var(--warn); text-decoration: none; }
.form { display: grid; gap: 16px; scroll-margin-top: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--blue-dark); }
.form textarea { min-height: 140px; resize: vertical; }
.form .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.form-note { background: var(--ok-bg); color: var(--ok); padding: 12px 16px; font-size: 15px; margin: 0; }
.form-note-info { background: var(--plan-bg); color: var(--text); }

.result-list { list-style: none; padding: 0; margin: 0; }
.result-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.result-list h3 { margin: 4px 0; }
.result-list p { margin: 0; font-size: 15px; }
.result-group { margin-top: 32px; }
.result-group-count { font-weight: 400; color: var(--muted); font-size: 17px; }
.search-page { padding: 0 0 20px; }
.search-page input { width: 100%; max-width: 420px; height: 40px; font-size: 17px; }
.search-page button { height: 40px; width: 44px; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0 0; font-size: 15px; }
.pager-status { color: var(--muted); }
.pager-prev .chev { transform: rotate(180deg); }

/* ---------- contact CTA ---------- */
.cta p { margin-bottom: 20px; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--footer); margin-top: 72px; padding: 52px 0 24px; }
.footer-tab { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); }
.footer-tab img { width: 36px; height: 36px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.site-footer h2 { font-size: 17px; color: var(--text); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--blue); }
.site-footer .plain li { color: var(--muted); }
.footer-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid #D7DDE1; font-size: 13px; color: var(--muted); }

/* ---------- error page ---------- */
.error-page img { margin-bottom: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .detail { grid-template-columns: 1fr; }
  .facts { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .topbar-inner { grid-template-columns: 1fr auto; gap: 12px; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
  .topbar-spacer, .utility { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand-text strong { font-size: 17px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
    background: var(--sun); border: 0; padding: 8px 12px; cursor: pointer; border-radius: 2px;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -5px; }
  .menu-icon::after { top: 5px; }
  .navband { display: none; }
  .navband.open { display: block; }
  .navband-inner { flex-direction: column; padding-bottom: 14px; }
  .nav { flex-direction: column; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid rgba(10, 46, 74, .12); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--ink); padding-left: 12px; }
  .nav-mobile-only { display: block; }
  .search input { flex: 1; width: auto; }
  .hero { min-height: 400px; }
  .hero::after { background: linear-gradient(180deg, rgba(6, 30, 50, .25) 0%, rgba(6, 30, 50, .65) 100%); }
  .domain { grid-template-columns: 1fr; gap: 20px; }
  .domain:nth-of-type(even) .domain-media { order: 0; }
  .filter-controls { margin-left: 0; width: 100%; }
  .filter-controls input, .filter-controls select { flex: 1; width: auto; min-width: 0; }
}

@media (max-width: 560px) {
  .brand-more { display: none; }
  .brand-text strong { font-size: 16px; }
}

@media (max-width: 600px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr 96px; gap: 14px; }
  .news-thumb { width: 96px; }
  .band { min-height: 0; }
  .band .container { padding-top: 160px; padding-bottom: 24px; }
  .form .row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stat strong { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

