/* ==========================================================================
   Општина Језеро – javni sajt
   Boje zastave Republike Srpske (crvena – plava – bijela), WCAG 2.1 AA kontrast.
   Bez spoljnih fontova i CDN-ova (privatnost, brzina, CSP).
   ========================================================================== */

:root {
  --red: #c6363c;          /* 4.9:1 na bijeloj */
  --red-dark: #a3262c;
  --blue: #0c4076;         /* 11:1 na bijeloj */
  --blue-dark: #072a4f;
  --blue-50: #eef3f9;
  --blue-100: #dbe5f1;
  --ink: #17212e;
  --ink-2: #3d4a5c;        /* 8.6:1 */
  --line: #d5dce6;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --focus: #ffbf47;
  --ok: #1d6b35;
  --warn: #8a5300;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(7, 42, 79, .06), 0 4px 16px rgba(7, 42, 79, .06);
  --container: 1200px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --fs: 1.0625rem;
}

html.text-lg { --fs: 1.1875rem; }
html.text-xl { --fs: 1.3125rem; }

html.contrast {
  --red: #ffdd00; --red-dark: #ffdd00; --blue: #000; --blue-dark: #000; --blue-50: #000; --blue-100: #222;
  --ink: #fff; --ink-2: #fff; --line: #fff; --bg: #000; --bg-soft: #000;
}
html.contrast img { filter: grayscale(1) contrast(1.2); }
html.contrast a { color: #ffdd00 !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0; font-family: var(--font); font-size: var(--fs); line-height: 1.6;
  color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-dark); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--blue-dark); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink); border-radius: 3px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--focus); color: #000; padding: .75rem 1rem; font-weight: 700; border-radius: 0 0 6px 6px; }
.skip-link:focus { top: 0; }

/* --- Trobojka ----------------------------------------------------------- */
.flag-stripe { display: grid; grid-template-rows: repeat(3, 4px); }
.flag-stripe span:nth-child(1) { background: var(--red); }
.flag-stripe span:nth-child(2) { background: var(--blue); }
.flag-stripe span:nth-child(3) { background: #fff; border-bottom: 1px solid var(--line); }

/* --- Gornja traka ------------------------------------------------------ */
.topbar { background: var(--blue-dark); color: #fff; font-size: .875rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__contact { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar__contact span, .topbar__contact a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__tools { display: flex; align-items: center; gap: .75rem; }
.lang-switch ul { display: flex; list-style: none; margin: 0; padding: 3px; border: 2px solid var(--blue); border-radius: 999px; background: #fff; }
.lang-switch a { display: block; padding: .38rem .9rem; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--blue); white-space: nowrap; }
.lang-switch a:hover { background: var(--blue-50); color: var(--blue-dark); }
.lang-switch a[aria-current="true"] { background: var(--blue); color: #fff; }
.lang-code--short { display: none; }
@media (max-width: 980px) {
  .lang-switch { order: 2; }
  .lang-switch a { padding: .38rem .7rem; }
  .lang-code--long { display: none; }
  .lang-code--short { display: inline; }
}
.a11y-tools { display: flex; gap: 2px; }
.a11y-tools button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; padding: .15rem .5rem; font: inherit; font-weight: 600; cursor: pointer; min-width: 2rem; }
.a11y-tools button[aria-pressed="true"] { background: #fff; color: var(--blue-dark); }
@media (max-width: 640px) { .topbar__contact { display: none; } .topbar .container { justify-content: flex-end; } }

/* --- Zaglavlje ---------------------------------------------------------- */
.site-header { background: var(--bg); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__emblem { width: auto; height: 62px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 1.45rem; font-weight: 800; color: var(--blue-dark); letter-spacing: -.01em; }
.brand__sub { font-size: .875rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }

.header-search { display: flex; border: 2px solid var(--blue); border-radius: 999px; overflow: hidden; background: #fff; }
.header-search input { border: 0; padding: .55rem 1rem; font: inherit; width: 15rem; min-width: 0; background: transparent; color: var(--ink); }
.header-search input:focus { outline: none; }
.header-search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.header-search button { border: 0; background: var(--blue); color: #fff; padding: 0 1rem; cursor: pointer; display: grid; place-items: center; }
.nav-toggle { display: none; }

/* --- Glavna navigacija -------------------------------------------------- */
.main-nav { background: var(--blue); }
.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav__item { position: relative; }
.main-nav__link, .main-nav__button {
  display: flex; align-items: center; gap: .35rem; padding: .95rem .85rem; color: #fff; text-decoration: none;
  font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.main-nav__link:hover, .main-nav__button:hover, .main-nav__button[aria-expanded="true"], .main-nav__link[aria-current="page"] { background: var(--blue-dark); color: #fff; }
.main-nav__link[aria-current="page"], .main-nav__item.is-active > .main-nav__button { box-shadow: inset 0 -4px 0 var(--red); }
.main-nav__button svg { transition: transform .15s; }
.main-nav__button[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu { list-style: none; margin: 0; padding: .5rem; position: absolute; left: 0; top: 100%; min-width: 17rem; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 12px 32px rgba(7,42,79,.18); border-top: 4px solid var(--red); }
.submenu[hidden] { display: none; }
.submenu a { display: block; padding: .55rem .8rem; color: var(--ink); text-decoration: none; border-radius: 6px; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--blue-50); color: var(--blue-dark); }

@media (max-width: 980px) {
  .site-header__inner { flex-wrap: wrap; gap: .75rem; }
  .brand__emblem { width: auto; height: 50px; }
  .brand__name { font-size: 1.2rem; }
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: .6rem .9rem; font: inherit; font-weight: 700; cursor: pointer; }
  .header-search { order: 3; width: 100%; }
  .header-search input { width: 100%; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav__list { flex-direction: column; padding-block: .5rem; }
  .main-nav__link, .main-nav__button { width: 100%; justify-content: space-between; padding: .85rem 1rem; }
  .submenu { position: static; box-shadow: none; border-top: 0; border-radius: 0; background: var(--blue-dark); padding: 0 0 .5rem; }
  .submenu a { color: #fff; padding-left: 2rem; }
  .submenu a:hover { background: rgba(255,255,255,.1); color: #fff; }
}

/* --- Opšti raspored ---------------------------------------------------- */
main { display: block; min-height: 50vh; }
.page-head { background: linear-gradient(180deg, var(--blue-50), var(--bg)); padding: 1.5rem 0 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.page-head h1 { margin: .35rem 0 .25rem; }
.page-head__lead { color: var(--ink-2); max-width: 70ch; margin: 0; font-size: 1.1em; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .9rem; color: var(--ink-2); }
.breadcrumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--ink-2); }
.breadcrumbs a { color: var(--ink-2); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; padding-bottom: 3rem; }
.layout--narrow { grid-template-columns: minmax(0, 820px); justify-content: center; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }
.section { padding-block: 2.5rem; }
.section--soft { background: var(--bg-soft); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section__head h2 { margin: 0; position: relative; padding-left: .9rem; }
.section__head h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 3px; background: linear-gradient(var(--red) 0 50%, var(--blue) 50% 100%); }
.more-link { font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }

/* --- Prozni sadržaj ----------------------------------------------------- */
.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose img { border-radius: 8px; margin: 1.25rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: .75rem 1.25rem; border-left: 4px solid var(--red); background: var(--bg-soft); }
.prose a[href$=".pdf"]::after, .prose a[href$=".doc"]::after, .prose a[href$=".docx"]::after { content: " ⤓"; }
.table-scroll { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--line); border-radius: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95em; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--blue-50); }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; border-radius: 8px; overflow: hidden; background: #000; }
.embed--map { aspect-ratio: 4 / 3; background: var(--bg-soft); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Kartice vijesti ---------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(7,42,79,.12); }
.card__media { aspect-ratio: 16 / 10; background: var(--blue-50); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--placeholder { display: grid; place-items: center; color: var(--blue); }
.card__body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card__title { font-size: 1.1rem; margin: 0; }
.card__title a { color: var(--blue-dark); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* cijela kartica klikabilna */
.card__title a:hover { text-decoration: underline; }
.card__text { color: var(--ink-2); font-size: .95rem; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; color: var(--ink-2); font-size: .875rem; }
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; background: var(--blue-50); color: var(--blue-dark); }
.badge--red { background: #fbeaea; color: var(--red-dark); }
.badge--ok { background: #e5f3e8; color: var(--ok); }
.badge--muted { background: #eceff3; color: var(--ink-2); }

/* --- Naslovna ------------------------------------------------------------ */
.hero { background: var(--blue-dark); color: #fff; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__feature { position: relative; min-height: 420px; display: flex; align-items: flex-end; overflow: hidden; }
.hero__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,42,79,0) 30%, rgba(7,42,79,.92) 85%); }
.hero__caption { position: relative; z-index: 1; padding: 2rem; max-width: 52rem; }
.hero__caption h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); margin: .5rem 0; }
.hero__caption a { color: #fff; text-decoration: none; }
.hero__caption a::after { content: ""; position: absolute; inset: 0; }
.hero__caption a:hover { text-decoration: underline; }
.hero__caption p { color: #e6edf6; margin: 0; }
.hero__aside { padding: 1.75rem; background: var(--blue); }
.hero__aside h2 { color: #fff; font-size: 1.25rem; display: flex; align-items: center; gap: .5rem; }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { border-top: 1px solid rgba(255,255,255,.2); padding: .75rem 0; }
.notice-list a { color: #fff; text-decoration: none; font-weight: 600; display: block; }
.notice-list a:hover { text-decoration: underline; color: #fff; }
.notice-list time { color: #c9d6e6; font-size: .85rem; }
.hero__aside .more-link { color: #fff; margin-top: .75rem; }

.quick-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 1rem; }
.quick-links a { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; height: 100%; padding: 1.1rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--blue-dark); font-weight: 700; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.quick-links a:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--blue-dark); }
.quick-links .icon-wrap { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.quick-links li:nth-child(3n+2) .icon-wrap { background: #fbeaea; color: var(--red); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.panel h2, .panel h3 { font-size: 1.2rem; }
.panel--accent { border-top: 4px solid var(--red); }
.person { display: flex; gap: 1.25rem; align-items: flex-start; }
.person__photo { width: 120px; flex: none; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; background: var(--blue-50); }
.person__name { font-size: 1.25rem; margin: 0; }
.person__role { color: var(--red-dark); font-weight: 600; margin: 0 0 .5rem; }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain > li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.list-plain > li:last-child { border-bottom: 0; }

/* --- Dokumenti ---------------------------------------------------------- */
.doc { display: flex; align-items: flex-start; gap: .9rem; }
.doc__icon { flex: none; width: 44px; height: 52px; border-radius: 6px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: .68rem; font-weight: 800; letter-spacing: .03em; }
.doc__icon--doc, .doc__icon--docx, .doc__icon--odt { background: var(--blue); }
.doc__icon--xls, .doc__icon--xlsx { background: var(--ok); }
.doc__title { font-weight: 600; }
.doc__title a { text-decoration: none; }
.doc__title a:hover { text-decoration: underline; }

.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: 1.5rem; padding: 1rem; background: var(--bg-soft); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field label { font-weight: 600; font-size: .9rem; }
.input, .select { font: inherit; padding: .55rem .75rem; border: 2px solid #8795a8; border-radius: 6px; background: #fff; color: var(--ink); min-width: 12rem; }
.input:focus, .select:focus { border-color: var(--blue); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .62rem 1.15rem; border-radius: 6px; border: 2px solid var(--blue); background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue-50); color: var(--blue-dark); }

.side-nav { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--blue-100); }
.side-nav a { display: block; padding: .45rem .9rem; text-decoration: none; color: var(--ink); }
.side-nav a:hover { background: var(--blue-50); }
.side-nav a[aria-current="page"] { font-weight: 700; color: var(--blue-dark); border-left: 3px solid var(--red); margin-left: -3px; background: var(--blue-50); }
.sidebar > * + * { margin-top: 1.5rem; }
.sidebar h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }

.notice { padding: 1rem 1.25rem; border-radius: 8px; background: #fff7e6; border-left: 4px solid #d38a00; color: #4a3200; margin-bottom: 1.5rem; }
.notice--info { background: var(--blue-50); border-color: var(--blue); color: var(--blue-dark); }

.article-cover { margin: 0 0 1.5rem; }
.article-cover img { width: 100%; border-radius: var(--radius); max-height: 520px; object-fit: cover; }
.article-cover figcaption { font-size: .875rem; color: var(--ink-2); margin-top: .4rem; }

/* --- Galerija ----------------------------------------------------------- */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .75rem; }
.gallery-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--blue-50); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox img { max-width: 92vw; max-height: 84vh; margin: auto; border-radius: 6px; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #fff; padding: .6rem 0; }
.lightbox__bar button { background: #fff; color: #000; border: 0; border-radius: 6px; padding: .45rem .8rem; font: inherit; font-weight: 700; cursor: pointer; }

/* --- Paginacija --------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 2rem 0 0; justify-content: center; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 600; }
.pagination [aria-current="page"] span { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .is-disabled span { color: #8795a8; }

/* --- Podnožje ----------------------------------------------------------- */
.site-footer { background: var(--blue-dark); color: #dfe7f1; margin-top: 3rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding-block: 2.5rem; }
@media (min-width: 1100px) { .site-footer__grid:has(> :nth-child(5)) { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.site-footer__grid h2 a { color: inherit; text-decoration: none; }
.site-footer__grid h2 a:hover { text-decoration: underline; }
.site-footer .list-plain li { margin-bottom: .4rem; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer address { font-style: normal; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.15); padding-block: 1rem; font-size: .875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; }
.contact-list svg { flex: none; margin-top: .25rem; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 26px; height: 26px; }

.deadline { font-weight: 700; }
.deadline--open { color: var(--ok); }
.deadline--closed { color: var(--ink-2); }

.empty { padding: 2rem; text-align: center; color: var(--ink-2); background: var(--bg-soft); border-radius: var(--radius); }

@media print {
  .topbar, .site-header form, .main-nav, .nav-toggle, .site-footer, .sidebar, .skip-link, .flag-stripe { display: none !important; }
  .layout { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
.lang-code { font: inherit; }
.site-header__inner .brand { margin-right: auto; }
.hero__feature--welcome { min-height: 320px; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }

/* --- Dijeljenje ---------------------------------------------------------- */
.share { margin: 2rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.share__title { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: .75rem; }
.share__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.share__btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.share__btn:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-50); }
.share__btn--fb .icon { color: #1877f2; }
.share__btn--viber .icon { color: #7360f2; }
.share__btn--wa .icon { color: #1f8a4c; }
.updated { margin-top: 2rem; }

/* --- Dugme "na vrh" ------------------------------------------------------ */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--blue-dark); color: #fff; }

/* --- Ostalo -------------------------------------------------------------- */
.card__title { overflow-wrap: anywhere; hyphens: auto; }
.prose { overflow-wrap: break-word; hyphens: auto; }
@media print { .share, .to-top { display: none !important; } }
.site-footer .btn--ghost { color: #fff; border-color: #fff; }
.site-footer .btn--ghost:hover { background: #fff; color: var(--blue-dark); }

/* Društvene mreže */
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.social-links a { display: inline-flex; align-items: center; gap: .4rem; }
.social-links--icons { gap: .25rem; }
.social-links--icons a { justify-content: center; min-width: 32px; min-height: 32px; border-radius: 4px; }
.social-links--icons a:hover, .social-links--icons a:focus-visible { background: rgba(255,255,255,.15); text-decoration: none; }
.site-footer .social-links { margin: 0 0 1rem; }
.panel .social-links { margin-top: .25rem; }

/* Video "na klik" */
.video { margin: 1.5rem 0; }
.video__play, .video__frame { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, var(--blue-dark, #072a4f), #0c4076 60%, #2B2C77); color: #fff; text-decoration: none; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__poster + .video__btn::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.video__emblem { position: absolute; height: 70%; opacity: .18; }
.video__btn { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #c6363c; box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .15s; }
.video__btn svg { position: relative; width: 40px; height: 40px; fill: #fff; margin-left: 4px; }
.video__label { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; font-weight: 600; font-size: 1.1rem; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.video__play:hover .video__btn, .video__play:focus-visible .video__btn { transform: scale(1.08); }
.video__play:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.video__note { margin-top: .5rem; font-size: .875rem; color: var(--ink-2, #4a5a6e); }
.video-feature { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .video-feature { grid-template-columns: 2fr 1fr; } }
.video-feature .video { margin: 0; }
.section--video { background: var(--blue-dark); color: #fff; }
.section--video h2 { color: #fff; }
.section--video p { color: rgba(255,255,255,.9); }
.section--video .video__note { color: rgba(255,255,255,.8); }
.section--video .video__play { box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.video-feature__links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.btn--light { background: #fff; border-color: #fff; color: var(--blue-dark); }
.btn--light:hover { background: var(--blue-50); color: var(--blue-dark); }
.btn--ghost-light { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.section--video .social-links { margin-top: 1.25rem; }
.section--video .social-links a { color: #fff; }

/* Kartica načelnika u zaglavlju naslovne */
.mayor-card { display: flex; gap: 1rem; align-items: center; padding: .9rem; margin-bottom: 1.25rem; background: #fff; border-radius: 10px; color: var(--ink); text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.mayor-card:hover, .mayor-card:focus-visible { color: var(--ink); box-shadow: 0 6px 22px rgba(0,0,0,.28); }
.mayor-card:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.mayor-card__photo { width: 96px; height: 120px; flex: none; object-fit: cover; object-position: top; border-radius: 8px; background: var(--blue-50); }
.mayor-card__text { display: flex; flex-direction: column; gap: .2rem; }
.mayor-card__name { font-size: 1.25rem; color: var(--blue-dark); line-height: 1.2; }
.mayor-card__role { color: var(--red-dark); font-weight: 600; }
.mayor-card__more { display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem; color: var(--blue); font-weight: 600; font-size: .9rem; text-decoration: underline; }

/* Baner na naslovnoj */
.promo { position: relative; overflow: hidden; padding-block: 4rem; background: linear-gradient(120deg, #1f5f3f, #2C7953 45%, #0c4076); color: #fff; }
.promo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo .container { position: relative; }
.promo__box { max-width: 560px; padding: 2rem; border-radius: 10px; background: rgba(7, 42, 79, .82); }
.promo:not(.promo--image) .promo__box { background: rgba(0, 0, 0, .18); }
.promo__box h2 { color: #fff; margin-top: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.promo__box p { color: #fff; font-size: 1.05rem; }

/* Glavni meni: 9 cjelina kao na starom sajtu – "Почетна" je ikonica na širokim ekranima */
@media (min-width: 981px) {
  .main-nav__home-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 981px) and (max-width: 1240px) {
  .main-nav__link, .main-nav__button { padding-inline: .55rem; font-size: .92rem; }
}

/* Karta položaja opštine (sa starog zaglavlja) */
.locator { margin: 1.5rem 0 2rem; padding: 1.25rem; border: 1px solid var(--line, #dfe5ec); border-radius: 10px; background: #fff; }
.locator img { display: block; width: 100%; max-width: 460px; height: auto; margin-inline: auto; }
.locator figcaption { margin-top: .5rem; text-align: center; color: var(--ink-2); font-size: .9rem; }
.site-footer { position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; right: -30px; top: 10px; width: 420px; height: 330px; background: url("../images/mapa-jezero-tamna.svg") no-repeat right top / contain; opacity: .06; pointer-events: none; }
.site-footer > * { position: relative; }
