/* ============================================================
   Grad Vinkovci – predložak službene web stranice
   ============================================================ */

:root {
    --blue-900: #07294a;
    --blue-800: #0a3a6b;
    --blue-700: #0a4d8c;
    --blue-600: #1273c4;
    --blue-100: #e3eef9;
    --gold-500: #e8b021;
    --gold-600: #c49212;
    --vk-yellow: #FFDD03;
    --ink: #1c2733;
    --ink-soft: #51606f;
    --line: #e2e8ef;
    --bg-soft: #f5f8fb;
    --white: #ffffff;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(10, 40, 70, 0.08);
    --shadow-md: 0 8px 28px rgba(10, 40, 70, 0.12);
    --container: 1200px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
img, video, iframe, svg { max-width: 100%; height: auto; }

a { color: var(--blue-700); text-decoration: none; }

ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ Gornja traka ============ */
.topbar {
    background: var(--blue-900);
    color: #b9cde2;
    font-size: 0.82rem;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 16px;
}

.topbar__links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.topbar__links a,
.topbar__lang a {
    color: #b9cde2;
    transition: color 0.15s;
}

.topbar__links a:hover,
.topbar__lang a:hover { color: var(--white); }

.topbar__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar__social { color: #b9cde2; }
.topbar__social:hover { color: var(--gold-500); }

.topbar__lang { display: flex; gap: 8px; align-items: center; }
.topbar__lang span { opacity: 0.45; }
.topbar__lang a.active { color: var(--white); font-weight: 600; }

/* ============ Zaglavlje ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header {
    background: var(--white);
    border-bottom: 4px solid var(--vk-yellow);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 1;
    min-width: 0;
}

.brand__crest img {
    display: block;
    height: 52px;
    width: auto;
}

.brand--footer .brand__crest img { height: 46px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }

.brand__name {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--blue-800);
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.brand__tagline {
    font-size: 0.72rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Navigacija --- */
.nav__panel-head,
.nav__panel-foot,
.nav__title,
.nav__close { display: none; }

.nav__list {
    display: flex;
    gap: 4px;
}

.nav__item { position: relative; }

.nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 28px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.15s;
}

.has-dropdown > .nav__link::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.55;
}

.nav__item:hover > .nav__link,
.nav__item:focus-within > .nav__link { color: var(--blue-600); }

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold-500);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.nav__item:hover > .dropdown,
.nav__item:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 9px 20px;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--ink);
    transition: background 0.12s, color 0.12s, padding-left 0.12s;
}

.dropdown a:hover {
    background: var(--blue-100);
    color: var(--blue-700);
    padding-left: 26px;
}

/* --- Navigacija: dotjerivanje za desktop --- */
@media (min-width: 881px) {
    .nav {
        flex: 1;
        min-width: 0;
        display: flex;
        justify-content: center;
    }

    .nav__list {
        align-items: center;
        gap: 6px;
    }

    .nav__item {
        flex-shrink: 0;
    }

    .nav__link {
        justify-content: center;
        text-align: left;
        min-height: 76px;
        white-space: nowrap;
        padding: 10px 12px;
        line-height: 1.25;
        font-size: 0.875rem;
        transition: color 0.15s, background 0.15s;
    }

    .nav__item::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 10px;
        right: 10px;
        height: 3px;
        background: var(--gold-500);
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }

    .nav__item:hover::after,
    .nav__item:focus-within::after {
        transform: scaleX(1);
    }

    .nav__item:hover > .nav__link,
    .nav__item:focus-within > .nav__link {
        color: var(--blue-600);
        background: var(--blue-100);
    }
}

@media (min-width: 881px) and (max-width: 1200px) {
    .nav__link {
        font-size: 0.82rem;
        padding: 10px 8px;
    }

    .header__inner { gap: 16px; }
}

/* --- Pretraga --- */
.search-toggle {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--blue-700);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.search-toggle:hover { background: var(--blue-700); color: var(--white); }

.searchbar {
    display: none;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.searchbar.is-open { display: block; }

.searchbar form { display: flex; gap: 10px; }

.searchbar input {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}

.searchbar input:focus { border-color: var(--blue-600); }

.searchbar button {
    padding: 12px 28px;
    font: inherit;
    font-weight: 600;
    background: var(--blue-700);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.searchbar button:hover { background: var(--blue-600); }

.header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav__panel-search { display: none; }

/* --- Hamburger --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--blue-800);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open { overflow: hidden; }

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 41, 74, 0.45);
    z-index: 85;
}

@media (max-width: 880px) {
    body.nav-open .nav-backdrop { display: block; }
}

/* ============ Hero (shared) ============ */
.hero {
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 64px;
    padding-bottom: 72px;
    max-width: var(--container);
}

.hero__kicker {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-500);
    margin-bottom: 14px;
}

.hero h1,
.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 18px;
    max-width: 14ch;
}

.hero__lead {
    font-size: 1.08rem;
    max-width: 156ch;
    opacity: 0.92;
    margin-bottom: 32px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ Hero — fade ============ */
.hero--fade .hero__slides {
    position: relative;
    width: 100%;
    height: clamp(420px, 34vw, 620px);
}

.hero--fade .hero__slide {
    position: absolute;
    inset: 0;
    background: var(--img);
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s;
}

.hero--fade .hero__slide--photo {
    background-color: var(--blue-900);
    background-image: var(--img-url);
    background-size: var(--img-size, cover);
    background-position: var(--img-pos, 55% 42%);
    background-repeat: no-repeat;
}

.hero--fade .hero__slide.is-active { opacity: 1; visibility: visible; }

.hero--fade .hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 85% 20%, rgba(255,255,255,0.08), transparent 60%),
        radial-gradient(ellipse 50% 60% at 10% 90%, rgba(0,0,0,0.18), transparent 60%);
    pointer-events: none;
}

.hero--fade .hero__slide--photo::before {
    background:
        linear-gradient(
            105deg,
            rgba(8, 42, 78, 0.88) 0%,
            rgba(8, 42, 78, 0.62) 42%,
            rgba(8, 42, 78, 0.18) 68%,
            transparent 88%
        ),
        radial-gradient(ellipse 60% 80% at 85% 20%, rgba(255,255,255,0.06), transparent 60%);
}

.hero--fade .hero__slide--photo .hero__kicker {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero--fade .hero__slide--photo h1,
.hero--fade .hero__slide--photo .hero__lead {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero--fade .hero__dots {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero--fade .hero__dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.hero--fade .hero__dots button.is-active {
    background: var(--gold-500);
    border-color: var(--gold-500);
    transform: scale(1.2);
}

/* ============ Hero — slide ============ */
.hero--slide {
    background: #061628;
    height: clamp(420px, calc(100vh - 70px), 640px);
}

.hero--slide .hero__track {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform 0.75s cubic-bezier(0.77, 0, 0.18, 1);
}

.hero--slide .hero__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: block;
}

.hero--slide .hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 7s ease-out;
}

.hero--slide .hero__media--photo {
    background-color: var(--blue-900);
    background-image: var(--img-url);
    background-size: var(--img-size, cover);
    background-position: var(--img-pos, 50% 50%);
    background-repeat: no-repeat;
}

.hero--slide .hero__slide.is-active .hero__media:not(.hero__media--video) {
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .hero--slide .hero__media {
        transform: scale(1);
        transition: none;
    }
}

.hero--slide .hero__grad {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, rgba(6, 22, 40, 0.78) 0%, rgba(6, 22, 40, 0.3) 60%, rgba(6, 22, 40, 0.1) 100%);
    pointer-events: none;
}

.hero--slide .hero__grad2 {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(6, 22, 40, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

.hero--slide .hero__content.hero__content--slide {
    position: absolute;
    top: 0;
    bottom: 80px;
    left: max(32px, calc((100% - var(--container)) / 2 + 32px));
    right: auto;
    z-index: 2;
    width: min(800px, calc(100% - 64px));
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 32px;
}

.hero--slide .hero__kicker--slide {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero--slide .hero__kicker--slide::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--gold-500);
    display: block;
    flex-shrink: 0;
}

.hero--slide .hero__title {
    font-size: clamp(1.8rem, 3.8vw, 3rem);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 14px;
    max-width: none;
    text-wrap: balance;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero--slide .hero__lead--slide {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    max-width: 520px;
    width: 100%;
    margin-bottom: 30px;
    opacity: 1;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero--slide .hero__actions {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.hero--slide .hero__btn-slide {
    align-self: flex-start;
    width: auto;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    padding: 12px 26px;
    border-radius: 2px;
}

.hero--slide .hero__btn-slide:hover {
    background: #b08a35;
    color: #fff;
}

.hero--slide .hero__btn-slide svg {
    width: 16px;
    height: 16px;
    transition: transform 0.15s;
}

.hero--slide .hero__btn-slide:hover svg {
    transform: translateX(2px);
}

.hero--slide .hero__controls,
.hero-stack > .hero__controls {
    position: absolute;
    bottom: 28px;
    left: max(32px, calc((100% - var(--container)) / 2 + 32px));
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.hero--slide .hero__dots--slide,
.hero-stack .hero__dots--slide {
    position: static;
    transform: none;
    display: flex;
    gap: 8px;
}

.hero--slide .hero__dots--slide button,
.hero-stack .hero__dots--slide button {
    width: 24px;
    height: 3px;
    border-radius: 0;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, width 0.25s;
}

.hero--slide .hero__dots--slide button.is-active,
.hero-stack .hero__dots--slide button.is-active {
    background: var(--gold-500);
    width: 40px;
    transform: none;
}

.hero--slide .hero__arrows,
.hero-stack .hero__arrows {
    display: flex;
    gap: 8px;
}

.hero--slide .hero__arrow,
.hero-stack .hero__arrow {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
}

.hero--slide .hero__arrow:hover,
.hero-stack .hero__arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero--slide .hero__arrow svg,
.hero-stack .hero__arrow svg {
    width: 16px;
    height: 16px;
}

.hero--slide .hero__counter,
.hero-stack > .hero__counter {
    position: absolute;
    right: 40px;
    bottom: 28px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    z-index: 10;
    letter-spacing: 0.06em;
}

.hero--slide .hero__counter span,
.hero-stack > .hero__counter span {
    color: rgba(255, 255, 255, 0.9);
}

.hero--slide + .services {
    padding-top: 0;
}

.hero--slide + .services .services__grid {
    position: relative;
    z-index: 1;
    transform: translateY(-14px);
    margin-bottom: -6px;
}

.hero-stack {
    position: relative;
    --hero-slide-h: clamp(420px, calc(100vh - 70px), 640px);
}

.hero-stack > .hero--slide {
    position: relative;
    z-index: 0;
}

.hero-stack > .services {
    position: relative;
    z-index: 1;
}

.hero-stack > .hero__controls,
.hero-stack > .hero__counter {
    position: absolute;
    z-index: 2;
}

.hero-stack > .hero__controls {
    top: calc(var(--hero-slide-h) - 68px);
    bottom: auto;
    left: max(32px, calc((100% - var(--container)) / 2 + 32px));
}

.hero-stack > .hero__counter {
    top: calc(var(--hero-slide-h) - 48px);
    bottom: auto;
    right: 40px;
}

/* ============ Gumbi ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:active { transform: translateY(1px); }

.btn--accent { background: var(--gold-500); color: var(--blue-900); }
.btn--accent:hover { background: #f3c23a; }

.btn--ghost {
    border-color: rgba(255,255,255,0.55);
    color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn--outline {
    border-color: var(--blue-700);
    color: var(--blue-700);
}
.btn--outline:hover { background: var(--blue-700); color: var(--white); }

.btn--primary {
    background: var(--blue-700);
    color: var(--white);
    border-color: var(--blue-700);
}
.btn--primary:hover { background: var(--blue-600); border-color: var(--blue-600); }

.btn--pill {
    border-color: transparent;
    background: #f0f1f2;
    color: var(--ink);
    border-radius: 99px;
    font-weight: 600;
}

.btn--pill:hover {
    background: #e4e6e8;
    color: var(--ink);
}

/* ============ Brze usluge ============ */
.services {
    background: var(--bg-soft);
    padding: 0;
}

.services--bottom {
    padding: 16px 0 24px;
}

.services--bottom .services__grid {
    transform: none;
    margin-bottom: 0;
}

.services__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    transform: translateY(-64px);
    margin-bottom: -36px;
}

.service-card {
    flex: 0 1 calc((100% - (var(--services-count, 8) - 1) * 16px) / var(--services-count, 8));
    min-width: 0;
    min-height: 130px;
    background: var(--white);
    border: 1px solid #d8e2ec;
    border-radius: var(--radius);
    padding: 22px 14px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(8, 42, 78, 0.14);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-600);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: var(--blue-100);
    color: var(--blue-700);
    display: grid;
    place-items: center;
    transition: background 0.18s, color 0.18s;
}

.service-card:hover .service-card__icon {
    background: var(--blue-700);
    color: var(--white);
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
    line-height: 1.3;
    text-wrap: balance;
}

.service-card p {
    font-size: 0.84rem;
    color: var(--ink-soft);
    line-height: 1.4;
}

.service-card__line {
    display: block;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: none;
}

@media (min-width: 1081px) {
    .services .container {
        max-width: min(1440px, calc(100vw - 48px));
    }
}

/* ============ Info kutije ============ */
.info-boxes {
    background: var(--bg-soft);
    padding: 8px 0 48px;
}

.info-boxes--with-ticker,
.info-boxes:has(.announcement-ticker) {
    padding-top: 0;
}

.info-boxes--before-prefooter {
    padding-top: 40px;
    padding-bottom: 24px;
}

.info-boxes__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.info-card {
    flex: 0 1 calc((100% - 2 * 20px) / 3);
    min-width: 280px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px 24px;
}

.info-card h3 {
    font-size: 0.98rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-bottom: 12px;
}

.info-card__body {
    font-size: 0.86rem;
    color: var(--ink-soft);
    line-height: 1.55;
    overflow-wrap: break-word;
}

.info-card__body p { margin: 0 0 8px; }
.info-card__body p:last-child { margin-bottom: 0; }
.info-card__body strong { color: var(--ink); }
.info-card__body a { color: var(--blue-700); text-decoration: none; }
.info-card__body a:hover { text-decoration: underline; }
.info-card__body ul { margin: 0 0 8px; padding-left: 18px; }

/* ============ Sekcijska zaglavlja ============ */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--blue-900);
    position: relative;
    padding-bottom: 12px;
}

.section-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--gold-500);
}

.section-head__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--blue-700);
    transition: gap 0.15s;
}

.section-head__link:hover { gap: 10px; }

/* ============ Novosti ============ */
.news {
    padding: 72px 0 64px;
    background: var(--white);
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    --news-media-height: 200px;
    background: #f3f4f5;
    border: 1px solid #e7e9eb;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s, box-shadow 0.18s;
}

.news-card--compact { --news-media-height: 120px; }

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-card--featured {
    grid-column: span 2;
    grid-row: span 1;
    flex-direction: row;
}

.news-card__media {
    position: relative;
    background-image: var(--img);
    background-size: var(--img-size, cover);
    background-position: var(--img-pos, center);
    background-repeat: no-repeat;
    min-height: var(--news-media-height);
    flex-shrink: 0;
}

/* Naslovnica: cijela slika u prirodnom omjeru */
#novosti .news-card__media:has(img),
#novosti .news-featured__media:has(img) {
    min-height: 0;
    background: none;
}
#novosti .news-card__media > img,
#novosti .news-featured__media > img {
    display: block;
    width: 100%;
    height: auto;
}

.news-card--no-image .news-card__media {
    background: #2b57a1 url('../img/novosti-placeholder.png') center/contain no-repeat;
}

.news-card--no-image .news-card__media::after {
    display: none;
}

.news-card--featured .news-card__media { width: 46%; min-height: 100%; }

.news-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.14), transparent 55%);
}

.news-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--gold-500);
    color: var(--blue-900);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 11px;
    border-radius: 99px;
}

.news-card__body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-card time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card--featured h3 { font-size: 1.45rem; }

.news-card h3 a { color: var(--ink); transition: color 0.15s; }
.news-card h3 a:hover { color: var(--blue-600); }

.news-card p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card--featured p { -webkit-line-clamp: 5; }

.news-card--compact .news-card__body { padding: 16px 18px 18px; }
.news-card--compact p { -webkit-line-clamp: 2; }

.more-link {
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue-700);
}

.more-link::after {
    content: " →";
    transition: margin-left 0.15s;
}

.more-link:hover::after { margin-left: 4px; }

.news__more {
    margin-top: 40px;
    text-align: center;
}

/* --- 4-stupčani prikaz novosti (naslovnica) --- */
.news--4col .section-head h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.news--4col .section-head h2::after {
    display: none;
}

.news__grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

.news-card--classic {
    --news-media-height: 160px;
    background: #f7f7f7;
    border: none;
    border-radius: 8px;
}

.news-card--classic:hover {
    transform: none;
    box-shadow: none;
}

.news-card--classic .news-card__body {
    padding: 18px 20px 20px;
    gap: 8px;
}

.news-card--classic h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    -webkit-line-clamp: 4;
}

.news-card--classic p {
    font-size: 0.88rem;
    line-height: 1.5;
    -webkit-line-clamp: 3;
}

.news-card--classic time {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 400;
    color: #8a939c;
    text-transform: none;
    letter-spacing: 0;
}

/* --- Istaknuta vijest + karusel (naslovnica) --- */
.news-layout--featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 24px;
    align-items: stretch;
}

.news-featured {
    background: var(--white);
    border: 1px solid #e7e9eb;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s, box-shadow 0.18s;
}

.news-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-featured__media {
    position: relative;
    display: block;
    background-image: var(--img);
    background-size: var(--img-size, cover);
    background-position: var(--img-pos, center);
    background-repeat: no-repeat;
    min-height: 280px;
    flex-shrink: 0;
}

.news-featured--no-image .news-featured__media {
    background: #2b57a1 url('../img/novosti-placeholder.png') center/contain no-repeat;
}

.news-featured--no-image .news-featured__media::after {
    display: none;
}

.news-featured__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 41, 74, 0.08) 0%, transparent 45%);
}

.news-featured__body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.news-featured h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    min-width: 0;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured h3 a {
    color: var(--ink);
    transition: color 0.15s;
    overflow-wrap: break-word;
}

.news-featured h3 a:hover {
    color: var(--blue-600);
}

.news-featured p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    min-width: 0;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-carousel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.news-carousel__track {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.news-carousel__slide {
    display: none;
}

.news-carousel__slide.is-active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.news-carousel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.news-card--carousel {
    height: 100%;
    --news-media-height: 0;
}

.news-card--carousel .news-card__media {
    flex: 1;
    min-height: 150px;
}

.news-card--carousel .news-card__body {
    padding: 14px 18px 16px;
    gap: 6px;
    flex-shrink: 0;
}

.news-card--carousel time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: none;
    letter-spacing: 0;
}

.news-card--carousel time svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.news-card--carousel h3 {
    font-size: 0.98rem;
    -webkit-line-clamp: 2;
}

.news-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.news-layout--featured > .news-carousel__dots {
    grid-column: 1 / -1;
    margin-top: 12px;
}

.news-layout--featured .news-carousel .news-carousel__dots {
    margin-top: 12px;
}

.news-carousel__dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    background: #c4cad0;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.news-carousel__dots button.is-active {
    background: var(--blue-700);
    transform: scale(1.2);
}

.news-carousel__dots button:focus-visible {
    outline: 2px solid var(--blue-600);
    outline-offset: 2px;
}

.news-carousel--single .news-carousel__dots {
    display: none;
}

.news-carousel--featured .news-carousel__track {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
}

.news-carousel--featured .news-carousel__slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.news-carousel--featured .news-carousel__slide:not(.is-active) {
    position: absolute;
    inset: 0;
    width: 100%;
}

.news-carousel--featured .news-carousel__slide.is-active {
    position: relative;
    flex: 1;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.news-carousel--featured .news-featured {
    height: 100%;
    flex: 1;
    min-width: 0;
}

.news-carousel--featured .news-carousel__dots {
    margin-top: 12px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination__link,
.pagination__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    border: 2px solid var(--blue-700);
    color: var(--blue-700);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pagination__nav {
    padding: 8px 14px;
}

.pagination__link:hover,
.pagination__nav:not(.is-disabled):hover {
    background: var(--blue-700);
    color: var(--white);
}

.pagination__link.is-active {
    background: var(--blue-700);
    color: var(--white);
    border-color: var(--blue-700);
}

.pagination__nav.is-disabled {
    opacity: 0.4;
    cursor: default;
    border-color: #c4cad0;
    color: var(--ink-soft);
}

.pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 8px 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-soft);
}

/* ============ Projekti ============ */
.projects-section {
    padding: 40px 0 64px;
    background: #f0f2f4;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.project-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 20px 16px 24px;
    border-radius: var(--radius);
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
    border-bottom: 3px solid var(--gold-500);
    transition: transform 0.18s, box-shadow 0.18s;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 58, 107, 0.78);
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.project-card__title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.project-detail__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.project-detail__logo {
    max-height: 72px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.project-detail__fields {
    margin: 0 0 28px;
    padding: 0;
}

.project-detail__field {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 12px 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.project-detail__field dt {
    margin: 0;
    font-weight: 700;
    color: var(--blue-900);
}

.project-detail__field dd {
    margin: 0;
    color: #2c3a48;
}

/* ============ Događanja ============ */
.events { padding: 72px 0; }

.events__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
}

.events__inner--list-only {
    grid-template-columns: 1fr;
}

.events__inner--aside-only {
    grid-template-columns: 1fr;
    max-width: 480px;
}

.event-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.event-row:hover {
    border-color: var(--blue-600);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.event-row__date {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--blue-700);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.event-row__date strong { font-size: 1.45rem; font-weight: 800; }
.event-row__date span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; opacity: 0.85; }

.event-row__body h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
}

.event-row__body p {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* --- bočni stupac --- */
.events__aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-card {
    background: var(--blue-900);
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
}

.stats-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold-500);
}

.stats-card ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.stats-card li { display: flex; flex-direction: column; }

.stats-card strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-500);
}

.stats-card span { font-size: 0.78rem; opacity: 0.85; line-height: 1.4; }

.banner-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
    color: var(--blue-900);
    border-radius: var(--radius);
    padding: 26px 28px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.banner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.banner-card__kicker {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.75;
}

.banner-card strong { font-size: 1.2rem; font-weight: 800; }

.banner-card__cta { font-size: 0.9rem; font-weight: 700; margin-top: 8px; }

/* ============ Brzi linkovi (prije podnožja) ============ */
.prefooter {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 36px 0;
}

.prefooter__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 48px;
}

.prefooter__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prefooter__link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-size: 0.92rem;
    font-weight: 600;
}

.prefooter__icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    background: #f1f2f4;
    border-radius: 4px;
    color: #555;
    transition: background 0.15s, color 0.15s;
}

.prefooter__link:hover .prefooter__icon {
    background: var(--blue-700);
    color: var(--white);
}

.prefooter__link:hover .prefooter__text { color: var(--blue-700); }

/* ============ Podnožje ============ */
.footer {
    background: var(--blue-900);
    color: #b9cde2;
    border-top: 4px solid var(--vk-yellow);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 36px;
    padding: 56px 24px 44px;
}

.brand--footer .brand__name { color: var(--white); }
.brand--footer .brand__tagline { color: #8fa9c4; }

.footer__col--brand address {
    font-style: normal;
    font-size: 0.88rem;
    margin: 18px 0;
    line-height: 1.7;
    word-break: break-word;
}

.footer__col--brand address a { color: var(--gold-500); }

.footer__social { display: flex; gap: 12px; }

.footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #b9cde2;
    display: grid;
    place-items: center;
    transition: background 0.15s, color 0.15s;
}

.footer__social a:hover { background: var(--gold-500); color: var(--blue-900); }

.footer__col h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--vk-yellow);
    display: inline-block;
}

.footer__col ul li { margin-bottom: 8px; }

.footer__col ul a {
    font-size: 0.86rem;
    color: #b9cde2;
    transition: color 0.15s, padding-left 0.15s;
}

.footer__col ul a:hover { color: var(--white); padding-left: 4px; }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    font-size: 0.82rem;
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom a { color: #b9cde2; }
.footer__bottom a:hover { color: var(--white); }

/* ============ Podstranice ============ */
.page-hero {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    color: var(--white);
    padding: 56px 0;
}

.page-hero .breadcrumbs {
    font-size: 0.84rem;
    margin-bottom: 12px;
    opacity: 0.85;
    overflow-wrap: anywhere;
}

.page-hero .breadcrumbs a { color: var(--gold-500); }

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.page-content {
    padding-block: 56px 72px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.page-content > .article,
.page-content > .sidebar {
    min-width: 0;
}

.article {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    display: block;
    margin-bottom: 18px;
}

.article p { margin-bottom: 18px; font-size: 1rem; color: #2c3a48; }

.article h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blue-900);
    margin: 32px 0 14px;
}

.article ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 18px;
    color: #2c3a48;
}

.article ul li { margin-bottom: 6px; }

.article ol {
    list-style: decimal;
    padding-left: 24px;
    margin-bottom: 18px;
    color: #2c3a48;
}

.article ol li {
    margin-bottom: 6px;
    list-style-position: outside;
}

.article__media {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    min-height: 320px;
    background-image: var(--img, linear-gradient(135deg, var(--blue-700), var(--blue-600)));
    background-size: var(--img-size, cover);
    background-position: var(--img-pos, center);
    background-repeat: no-repeat;
    margin-bottom: 28px;
}

.article__media--contain {
    background-color: #1a2a3a;
}

.article__media:has(img) {
    background-image: none;
    min-height: 0;
}

.article table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article img,
.article video,
.article iframe {
    max-width: 100%;
    height: auto;
}

.article__media img {
    width: 100%;
    display: block;
    height: auto;
}

.article pre,
.article code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.article__media--placeholder {
    background: #2b57a1 url('../img/novosti-placeholder.png') center/contain no-repeat;
}

/* ============ Galerija sadržaja (novosti, stranice) ============ */
.content-gallery {
    margin: 28px 0;
}

.content-gallery__main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--blue-900);
}

.content-gallery__slides {
    position: relative;
    min-height: clamp(240px, 42vw, 480px);
}

.content-gallery__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    display: flex;
    flex-direction: column;
}

.content-gallery__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.content-gallery__slide img {
    width: 100%;
    height: clamp(240px, 42vw, 480px);
    object-fit: cover;
    display: block;
}

.content-gallery__caption {
    padding: 12px 16px;
    background: rgba(7, 41, 74, 0.88);
    color: var(--white);
    font-size: 0.9rem;
    text-align: center;
}

.content-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 77, 140, 0.85);
    color: var(--white);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s, transform 0.2s;
}

.content-gallery__nav:hover {
    background: var(--blue-700);
    transform: translateY(-50%) scale(1.05);
}

.content-gallery__nav--prev { left: 14px; }
.content-gallery__nav--next { right: 14px; }

.content-gallery__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.content-gallery__dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.content-gallery__dots button.is-active {
    background: var(--gold-500);
    border-color: var(--gold-500);
    transform: scale(1.15);
}

.content-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.content-gallery__thumb {
    flex: 0 0 auto;
    width: 88px;
    height: 66px;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--line);
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.75;
}

.content-gallery__thumb.is-active {
    border-color: var(--blue-700);
    opacity: 1;
}

.content-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 640px) {
    .content-gallery__nav {
        width: 36px;
        height: 36px;
    }

    .content-gallery__nav--prev { left: 8px; }
    .content-gallery__nav--next { right: 8px; }

    .content-gallery__thumb {
        width: 72px;
        height: 54px;
    }
}

.sidebar .widget {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar .widget h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue-900);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-500);
}

.sidebar .widget ul li { margin-bottom: 10px; }

.sidebar .widget ul a {
    font-size: 0.9rem;
    color: var(--ink);
    font-weight: 600;
}

.sidebar .widget ul a:hover { color: var(--blue-600); }

/* ============ Ispis i dijeljenje sadržaja ============ */
/* ============ Slušaj članak (TTS) ============ */
.tts-player {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.tts-player__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 12px;
    font: inherit;
    font-weight: 600;
    color: var(--white);
    background: var(--blue-700);
    border: none;
    border-radius: 99px;
    cursor: pointer;
    transition: background 0.15s;
}

.tts-player__toggle:hover { background: var(--blue-600); }

.tts-player__icon { width: 20px; height: 20px; }

.tts-player__bar {
    position: relative;
    flex: 1;
    min-width: 120px;
    height: 6px;
    border-radius: 99px;
    background: var(--blue-100);
    overflow: hidden;
}

.tts-player__progress {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 99px;
    background: var(--blue-600);
    transition: width 0.25s ease;
}

.tts-player__stop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--blue-700);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.tts-player__stop:hover { background: var(--blue-700); color: var(--white); }

.tts-player__rate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.tts-player__rate-select {
    font: inherit;
    font-size: 0.8rem;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}

@media (max-width: 560px) {
    .tts-player__toggle { order: 1; flex: 1 1 auto; min-width: 0; justify-content: center; white-space: nowrap; }
    .tts-player__label { white-space: nowrap; }
    .tts-player__stop { order: 2; flex: 0 0 auto; }
    .tts-player__bar { order: 3; flex-basis: 100%; }
    .tts-player__rate { order: 4; flex-basis: 100%; justify-content: space-between; }
}

@media print {
    .tts-player { display: none; }
}

.content-tools {
    margin: 32px 0 24px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.content-tools__label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.content-tools__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.content-tools__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--blue-700);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.content-tools__btn:hover {
    background: var(--blue-100);
    border-color: var(--blue-600);
    color: var(--blue-800);
}

.content-tools__btn svg {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .content-tools__actions {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .content-tools__btn span {
        white-space: nowrap;
    }
}

/* ============ Savjetovanja s javnošću ============ */
.c-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.c-summary__card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.c-summary__card strong {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--blue-700);
    line-height: 1.2;
}

.c-summary__card span {
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.c-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.c-filters__states {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.c-filters .btn { padding: 9px 18px; font-size: 0.86rem; }
.c-filters .btn.is-active { background: var(--blue-700); color: var(--white); }

.c-filters__search {
    display: flex;
    gap: 8px;
}

.c-filters__search input {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.9rem;
    min-width: 220px;
}

.c-filters__search input:focus { outline: 2px solid var(--blue-600); border-color: transparent; }

.c-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.c-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 26px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.18s, border-color 0.18s;
}

.c-item:hover { box-shadow: var(--shadow-md); border-color: var(--blue-600); }

.c-item__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.c-item__head h3 { font-size: 1.08rem; line-height: 1.4; }
.c-item__head h3 a { color: var(--ink); }
.c-item__head h3 a:hover { color: var(--blue-700); }

.c-item > p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 12px; }

.c-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 0.84rem;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.c-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.c-status--otvoreno { background: #e2f5ea; color: #14693c; }
.c-status--zatvoreno { background: #fdeaea; color: #9b1c1c; }
.c-status--izvjesce { background: var(--blue-100); color: var(--blue-700); }
.c-status--najava { background: #fdf3da; color: #8a6406; }

/* ----- Ankete ----- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes pollBarGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.poll-section { margin-top: 0; }

.poll-widget {
    max-width: 520px;
    margin: 32px auto 0;
}

.poll-widget .poll-card + .poll-card {
    margin-top: 24px;
}

.poll-widget--share {
    margin-top: 24px;
}

.poll-widget--share .content-tools {
    margin: 0;
}

.poll-widget__note {
    margin-top: 24px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.poll-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 28px 32px;
}

.poll-card__head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.poll-card__head--center {
    text-align: center;
    border-bottom: none;
    margin-bottom: 24px;
    padding-bottom: 0;
}

.poll-card__head--center h2 {
    font-size: 1.25rem;
    color: var(--blue-800);
    margin: 0;
}

.poll-card__question {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.45;
    margin: 0;
}

.poll-card__head h2 {
    font-size: 1.35rem;
    color: var(--blue-800);
    margin-bottom: 4px;
}

.poll-card__sub {
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin: 8px 0 0;
}

.poll-card .c-form-msg {
    margin-bottom: 16px;
    border-radius: 8px;
}

.poll-options {
    border: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.poll-option:hover {
    border-color: #b8c5d4;
    background: var(--bg-soft);
}

.poll-option:has(input:checked) {
    border-color: var(--blue-600);
    background: var(--blue-100);
    box-shadow: none;
}

.poll-option:has(input:checked) .poll-option__text {
    color: var(--ink);
    font-weight: 600;
}

.poll-option input[type="radio"],
.poll-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 2px solid #c5d0dc;
    background: var(--white);
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.poll-option input[type="radio"] {
    border-radius: 50%;
}

.poll-option input[type="checkbox"] {
    border-radius: 6px;
}

.poll-option input[type="radio"]:checked {
    border-color: var(--blue-600);
    background: var(--white);
    box-shadow: inset 0 0 0 5px var(--blue-600);
}

.poll-option input[type="checkbox"]:checked {
    border-color: var(--blue-600);
    background: var(--blue-600);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.2 3.2a1 1 0 0 1 0 1.4l-6.2 6.2a1 1 0 0 1-1.4 0L2.8 8a1 1 0 1 1 1.4-1.4l1.8 1.8 5.5-5.5a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

.poll-option__text {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--ink-soft);
}

.poll-hint {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin: -4px 0 16px;
}

.poll-form__submit {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    padding: 14px 24px;
    font-size: 1rem;
    min-width: 0;
}

.poll-results {
    margin-top: 0;
}

.poll-results__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.poll-results__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 99px;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.poll-results__badge strong {
    color: var(--ink);
}

.poll-results__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.poll-result {
    padding-left: 0;
    transition: padding-left 0.15s;
}

.poll-result--leading {
    padding-left: 12px;
    border-left: 4px solid var(--gold-500);
}

.poll-result--leading .poll-result__label {
    color: var(--blue-800);
}

.poll-result__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.poll-result__label {
    font-weight: 600;
    color: var(--ink);
}

.poll-result__stats {
    font-weight: 700;
    color: var(--blue-700);
    white-space: nowrap;
}

.poll-result__stats small {
    font-weight: 500;
    color: var(--ink-soft);
}

.poll-result__bar {
    background: var(--bg-soft);
    border-radius: 10px;
    height: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.poll-result__fill {
    background: linear-gradient(90deg, var(--blue-700), var(--blue-600));
    height: 100%;
    border-radius: 9px;
    min-width: 2px;
    transform-origin: left center;
    animation: pollBarGrow 0.6s ease-out forwards;
}

.poll-result--leading .poll-result__fill {
    background: linear-gradient(90deg, var(--blue-800), var(--blue-600));
}

@media (max-width: 640px) {
    .poll-widget {
        max-width: 100%;
    }

    .poll-card {
        padding: 20px 18px;
    }

    .poll-result__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .poll-results__meta {
        flex-direction: column;
    }
}

.c-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    padding: 14px 18px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.article ul.c-docs { list-style: none; padding-left: 0; }

.c-docs li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 8px !important;
}

.c-docs svg { color: var(--blue-700); flex-shrink: 0; }
.c-docs a { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

.c-docs__type {
    margin-left: auto;
    font-size: 0.76rem;
    background: var(--blue-100);
    color: var(--blue-700);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.c-doclist {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 0;
}

.c-doclist li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 8px;
}

.c-doclist a { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

.c-doclist__type {
    font-size: 0.76rem;
    background: var(--blue-100);
    color: var(--blue-700);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.c-doclist__desc {
    flex-basis: 100%;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.c-comments {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 10px;
}

.c-comment {
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold-500);
    border-radius: 8px;
    padding: 14px 18px;
}

.c-comment__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.c-comment__head time { font-size: 0.8rem; color: var(--ink-soft); }
.c-comment p { margin-bottom: 0 !important; font-size: 0.92rem; }

.c-form { margin-top: 8px; }

.c-form label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.c-form label small { font-weight: 400; color: var(--ink-soft); }

.c-form input[type="text"],
.c-form input[type="email"],
.c-form input[type="tel"],
.c-form select,
.c-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.92rem;
}

.c-form select {
    background-color: var(--white);
    cursor: pointer;
}

.c-form input:focus,
.c-form select:focus,
.c-form textarea:focus { outline: 2px solid var(--blue-600); border-color: transparent; }

.c-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.c-form__hp { position: absolute; left: -9999px; top: -9999px; }

.c-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin: 16px 0 8px;
    cursor: pointer;
}

.c-form__consent input[type="checkbox"] {
    width: auto;
    margin: 3px 0 0;
    flex-shrink: 0;
    cursor: pointer;
}

.c-form__consent span { line-height: 1.5; }

.c-form-msg {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.c-form-msg--success { background: #e2f5ea; color: #14693c; border: 1px solid #bfe6cf; }
.c-form-msg--error { background: #fdeaea; color: #9b1c1c; border: 1px solid #f3c6c6; }

@media (max-width: 880px) {
    .c-summary { grid-template-columns: 1fr; }
    .c-form__row { grid-template-columns: 1fr; }
    .c-filters__search { width: 100%; }
    .c-filters__search input { flex: 1; min-width: 0; }
}

/* ============ Responzivnost ============ */
@media (max-width: 1080px) {
    .service-card { flex-basis: calc((100% - 2 * 16px) / 3); min-width: 0; }
    .info-card { flex-basis: calc((100% - 20px) / 2); }
    .news__grid { grid-template-columns: repeat(2, 1fr); }
    .news__grid--4col { grid-template-columns: repeat(2, 1fr); }
    .news-card--featured { grid-column: span 2; }
    .news-layout--featured { grid-template-columns: 1fr; }
    .news-featured__media { min-height: 240px; }
    .projects__grid { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .prefooter__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
    .header__inner { gap: 12px; }

    .nav-toggle { display: flex; }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        box-shadow: var(--shadow-md);
        padding: 0;
        overflow: hidden;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0.25s;
        margin-left: 0;
        z-index: 90;
        display: flex;
        flex-direction: column;
    }

    .nav.is-open { transform: translateX(0); visibility: visible; }

    .nav__panel-head {
        display: block;
        flex-shrink: 0;
        padding: 20px 24px 0;
        border-bottom: 1px solid var(--line);
    }

    .nav__panel-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .nav__panel-top .brand--nav {
        flex: 1;
        min-width: 0;
    }

    .nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: none;
        border: none;
        padding: 4px;
        cursor: pointer;
        color: var(--ink);
    }

    .nav__close:hover { color: var(--blue-700); }

    .brand--nav .brand__crest img { height: 40px; }

    .nav__title {
        display: block;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--ink);
        padding: 16px 0 12px;
        margin: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
        flex: 1;
        overflow-y: auto;
    }

    .nav__item { border-bottom: 1px solid var(--line); }

    .nav__link {
        padding: 14px 24px;
        text-transform: uppercase;
        font-size: 0.82rem;
        font-weight: 600;
        letter-spacing: 0.04em;
    }

    .nav__panel-foot {
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex-shrink: 0;
        padding: 16px 24px 20px;
        border-top: 1px solid var(--line);
    }

    .nav__panel-search {
        display: block;
        flex-shrink: 0;
        padding: 16px 24px;
        border-top: 1px solid var(--line);
    }

    .nav__panel-search form {
        display: flex;
        gap: 8px;
    }

    .nav__panel-search input {
        flex: 1;
        min-width: 0;
        padding: 10px 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        font-size: 0.95rem;
        font-family: inherit;
    }

    .nav__panel-search input:focus {
        outline: 2px solid var(--blue-600);
        border-color: transparent;
    }

    .nav__panel-search button {
        padding: 10px 16px;
        background: var(--blue-700);
        color: var(--white);
        border: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.88rem;
        cursor: pointer;
        flex-shrink: 0;
    }

    .nav__panel-search button:hover { background: var(--blue-600); }

    .nav__contact {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.88rem;
        color: var(--ink-soft);
    }

    .nav__contact:hover { color: var(--blue-700); }

    .nav__contact svg { flex-shrink: 0; }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--gold-500);
        margin: 0 24px 10px;
        padding: 0;
        display: none;
    }

    .nav__item.is-open .dropdown { display: block; }

    .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .events__inner { grid-template-columns: 1fr; }
    .page-content { grid-template-columns: 1fr; }
    .topbar__links { gap: 14px; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }

    .header .brand__tagline { display: none; }
    .header .brand__crest img { height: 44px; }

    .searchbar form { flex-wrap: wrap; }
    .searchbar button { flex: 1; min-width: 120px; }

    .page-hero { padding: 36px 0; }
    .page-content { padding-block: 36px 48px; gap: 32px; }

    .hero--fade .hero__slides {
        height: clamp(300px, 65vh, 440px);
    }
    .hero--fade .hero__content { padding-top: 40px; padding-bottom: 56px; }
    .hero--fade .hero__dots { bottom: 72px; }
    .hero--fade h1 { max-width: 20ch; }

    .hero--slide {
        height: clamp(280px, 65vh, 480px);
    }
    .hero--slide .hero__content.hero__content--slide {
        left: 32px;
        bottom: 72px;
        width: calc(100% - 48px);
        max-width: none;
        padding-bottom: 0;
        padding-right: 0;
    }
    .hero--slide .hero__controls,
    .hero-stack > .hero__controls {
        left: 32px;
        bottom: 20px;
    }
    .hero--slide .hero__counter,
    .hero-stack > .hero__counter {
        right: 32px;
        bottom: 20px;
    }
    .hero--slide .hero__title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }
    .hero--slide .hero__lead--slide {
        -webkit-line-clamp: 3;
    }

    .hero--slide + .services .services__grid {
        transform: translateY(-10px);
        margin-bottom: -4px;
    }

    .hero-stack {
        --hero-slide-h: clamp(280px, 65vh, 480px);
    }

    .hero-stack > .hero__controls {
        top: calc(var(--hero-slide-h) - 60px);
        bottom: auto;
        left: 32px;
    }

    .hero-stack > .hero__counter {
        top: calc(var(--hero-slide-h) - 40px);
        bottom: auto;
        right: 32px;
    }

    .services__grid {
        transform: translateY(-32px);
        margin-bottom: -12px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .c-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .c-item__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-card { flex-basis: calc((100% - 16px) / 2); }
    .info-card { flex-basis: 100%; min-width: 0; }
    .news__grid { grid-template-columns: 1fr; }
    .news__grid--4col { grid-template-columns: 1fr; }
    .news-card--featured { grid-column: span 1; flex-direction: column; }
    .news-card--featured .news-card__media { width: 100%; min-height: var(--news-media-height); }
    .news-carousel__grid { grid-template-columns: 1fr; grid-template-rows: none; }
    .news-card--carousel { height: auto; --news-media-height: 140px; }
    .news-card--carousel .news-card__media { flex: none; min-height: var(--news-media-height); }
    .news-layout--featured { min-width: 0; }
    .news-carousel--featured { min-width: 0; width: 100%; }
    .news-featured__body { padding: 18px 16px 22px; }
    .news-featured__media { min-height: 200px; }
    .news-featured h3 { font-size: 1.25rem; }
    .projects__grid { grid-template-columns: repeat(2, 1fr); }
    .project-detail__field { grid-template-columns: 1fr; gap: 4px; }
    .footer__grid { grid-template-columns: 1fr; padding: 40px 20px 36px; }
    .prefooter__grid { grid-template-columns: 1fr; gap: 10px; }
    .topbar__links { display: none; }
    .stats-card ul { grid-template-columns: 1fr 1fr; }

    .cookie-banner__inner p { flex-basis: 100%; }
}

@media (max-width: 420px) {
    .footer__grid { grid-template-columns: 1fr; padding: 36px 18px 32px; }
    .projects__grid { grid-template-columns: 1fr; }
    .services__grid { gap: 10px; transform: translateY(-28px); margin-bottom: -8px; }
    .service-card { flex-basis: calc((100% - 10px) / 2); padding: 18px 12px; min-height: 0; }
}

/* ============ Pristupačnost – plutajući gumb ============ */
.a11y-fab {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 900;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--blue-800);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.15s, transform 0.15s;
}

.a11y-fab:hover {
    background: var(--blue-600);
    transform: scale(1.06);
}

.a11y-fab:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
}


/* ============ Na vrh - plutajuci gumb ============ */
.scroll-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--blue-800);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: background 0.15s, transform 0.15s, opacity 0.2s;
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--blue-600);
    transform: scale(1.06);
}

.scroll-top:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top {
        transition: background 0.15s, opacity 0.2s;
    }

    .scroll-top:hover {
        transform: none;
    }
}

/* ============ Pristupačnost – modal ============ */
.a11y-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(7, 41, 74, 0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 16px;
    overflow-y: auto;
}

.a11y-overlay[hidden] { display: none; }

body.a11y-modal-open { overflow: hidden; }

.a11y-modal {
    background: var(--bg-soft);
    border-radius: var(--radius);
    width: 100%;
    max-width: 640px;
    padding: 22px 24px 26px;
    box-shadow: var(--shadow-md);
}

.a11y-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.a11y-modal__head h2 {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 700;
}

.a11y-modal__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.a11y-modal__reset {
    border: none;
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.a11y-modal__reset:hover {
    color: var(--ink);
    background: rgba(10, 40, 70, 0.06);
}

.a11y-modal__close {
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue-600);
    color: var(--white);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.a11y-modal__close:hover { background: var(--blue-700); }

.a11y-modal__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.a11y-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.a11y-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.a11y-tile:hover {
    border-color: var(--blue-600);
}

.a11y-tile.is-active {
    border-color: var(--blue-600);
    background: var(--blue-100);
    box-shadow: inset 0 0 0 1px var(--blue-600);
    color: var(--blue-800);
}

.a11y-tile__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
}

.a11y-tile.is-active .a11y-tile__icon { color: var(--blue-700); }

.a11y-tile__label { line-height: 1.3; }

.a11y-sliders {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.a11y-slider-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}

.a11y-slider-row__label {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
}

.a11y-slider {
    width: 100%;
    height: 6px;
    appearance: none;
    background: var(--line);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}

.a11y-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue-600);
    border: 2px solid var(--white);
    box-shadow: 0 1px 4px rgba(10, 40, 70, 0.25);
}

.a11y-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue-600);
    border: 2px solid var(--white);
    box-shadow: 0 1px 4px rgba(10, 40, 70, 0.25);
}

.a11y-slider-row__value {
    min-width: 44px;
    text-align: right;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.a11y-slider-row__steppers {
    display: flex;
    align-items: center;
    gap: 0;
    border-left: 1px solid var(--line);
    padding-left: 8px;
}

.a11y-stepper {
    border: none;
    background: none;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.a11y-stepper:hover {
    color: var(--blue-700);
    background: var(--blue-100);
}

/* ============ Pristupačnost – načini prikaza ============ */
#a11y-root.a11y-invert {
    filter: invert(1) hue-rotate(180deg);
}

#a11y-root.a11y-mono {
    filter: grayscale(1);
}

#a11y-root.a11y-low-sat {
    filter: saturate(0.4);
}

#a11y-root.a11y-high-sat {
    filter: saturate(1.6);
}

#a11y-root.a11y-dark-contrast {
    background: #000 !important;
    color: #fff !important;
}

#a11y-root.a11y-dark-contrast :not(svg):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon) {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

#a11y-root.a11y-dark-contrast a,
#a11y-root.a11y-dark-contrast a * {
    color: #ffe34d !important;
    text-decoration: underline !important;
}

#a11y-root.a11y-dark-contrast img,
#a11y-root.a11y-dark-contrast svg {
    filter: contrast(1.2);
}

#a11y-root.a11y-dark-contrast button,
#a11y-root.a11y-dark-contrast input,
#a11y-root.a11y-dark-contrast select,
#a11y-root.a11y-dark-contrast textarea {
    outline: 1px solid #fff !important;
}

#a11y-root.a11y-light-contrast {
    background: #fff !important;
    color: #000 !important;
}

#a11y-root.a11y-light-contrast :not(svg):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon) {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
}

#a11y-root.a11y-light-contrast a,
#a11y-root.a11y-light-contrast a * {
    color: #0000cc !important;
    text-decoration: underline !important;
    font-weight: 600;
}

#a11y-root.a11y-highlight-links a {
    text-decoration: underline !important;
    outline: 2px solid var(--blue-600) !important;
    outline-offset: 2px;
    background: rgba(18, 115, 196, 0.1) !important;
}

#a11y-root.a11y-highlight-headings h1,
#a11y-root.a11y-highlight-headings h2,
#a11y-root.a11y-highlight-headings h3,
#a11y-root.a11y-highlight-headings h4,
#a11y-root.a11y-highlight-headings h5,
#a11y-root.a11y-highlight-headings h6 {
    outline: 2px solid var(--blue-600) !important;
    background: rgba(18, 115, 196, 0.08) !important;
    padding: 4px 8px;
}

/* ============ Cookie privola ============ */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    background: var(--blue-900);
    color: #d7e4f2;
    box-shadow: 0 -4px 20px rgba(7, 41, 74, 0.35);
}

.cookie-banner__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner__inner p {
    flex: 1 1 420px;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s;
}

.cookie-banner__btn:hover { filter: brightness(1.12); }

.cookie-banner__btn--accept {
    background: var(--gold-500);
    color: var(--blue-900);
}

.cookie-banner__btn--decline {
    background: transparent;
    color: #d7e4f2;
    border: 1px solid rgba(215, 228, 242, 0.5);
}

.cookie-banner__link {
    background: none;
    border: none;
    color: var(--gold-400, #e8c547);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.cookie-banner__link:hover { color: #fff; }

/* Cookie FAB */
.cookie-fab {
    position: fixed;
    left: 18px;
    bottom: 80px;
    z-index: 900;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--blue-800);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.15s, transform 0.15s;
}

.cookie-fab:hover {
    background: var(--blue-600);
    transform: scale(1.06);
}

.cookie-fab:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
}

body.cookie-modal-open { overflow: hidden; }

/* Cookie modal */
.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(7, 41, 74, 0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 16px;
    overflow-y: auto;
}

.cookie-overlay[hidden] { display: none; }

.cookie-modal {
    width: min(640px, 100%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(7, 41, 74, 0.25);
    overflow: hidden;
}

.cookie-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e7ebef;
}

.cookie-modal__head h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--blue-900);
}

.cookie-modal__close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #5a6775;
    padding: 4px 8px;
}

.cookie-modal__body {
    padding: 20px 24px;
}

.cookie-modal__intro {
    margin: 0 0 18px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #3d4a57;
}

.cookie-categories {
    border: 1px solid #e0e5ea;
    border-radius: 10px;
    overflow: hidden;
}

.cookie-category + .cookie-category {
    border-top: 1px solid #e0e5ea;
}

.cookie-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
}

.cookie-category__toggle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: var(--blue-900);
    padding: 0;
}

.cookie-category__title {
    font-weight: 600;
    font-size: 0.95rem;
}

.cookie-category__chevron {
    color: #7a8794;
    font-size: 0.85rem;
}

.cookie-category__body {
    padding: 0 16px 14px;
    background: #f8fafc;
}

.cookie-category__body p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #5a6775;
}

.cookie-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.cookie-switch__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch__track {
    display: block;
    width: 44px;
    height: 24px;
    background: #c5ced8;
    border-radius: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

.cookie-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cookie-switch__input:checked + .cookie-switch__track {
    background: var(--blue-800);
}

.cookie-switch__input:checked + .cookie-switch__track::after {
    transform: translateX(20px);
}

.cookie-switch__input:disabled + .cookie-switch__track {
    opacity: 0.55;
    cursor: not-allowed;
}

.cookie-meta {
    margin-top: 18px;
    padding: 14px 16px;
    background: #f0f4f8;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #3d4a57;
}

.cookie-meta strong { color: var(--blue-900); }

.cookie-modal__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e7ebef;
    background: #fafbfc;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: filter 0.15s;
}

.cookie-btn:hover { filter: brightness(1.08); }

.cookie-btn--primary {
    background: var(--blue-800);
    color: #fff;
}

.cookie-btn--secondary {
    background: #e8edf2;
    color: var(--blue-900);
}

@media (max-width: 640px) {
    .cookie-banner__actions { width: 100%; }
    .cookie-banner__btn { flex: 1; }
    .a11y-modal { padding: 18px 16px 22px; }
    .a11y-grid { gap: 10px; }
    .a11y-tile { min-height: 58px; padding: 12px 14px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .a11y-slider-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .a11y-slider-row__label { grid-column: 1 / -1; }
    .a11y-slider { grid-column: 1; }
    .a11y-slider-row__value { grid-column: 2; }
    .a11y-slider-row__steppers {
        grid-column: 1 / -1;
        border-left: none;
        padding-left: 0;
        justify-content: flex-end;
    }
}

/* ============ Obavijesti – popup na naslovnici ============ */
.announcement-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(7, 41, 74, 0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 16px;
    overflow-y: auto;
}

.announcement-overlay[hidden] { display: none; }

.announcement-modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 640px;
    padding: 24px 28px 28px;
    box-shadow: var(--shadow-md);
}

.announcement-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.announcement-modal__head h2 {
    color: var(--blue-700);
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
}

.announcement-modal__close {
    border: none;
    background: none;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
}

.announcement-modal__close:hover {
    color: var(--blue-700);
}

.announcement-modal__body {
    color: var(--ink);
}

/* ============ Popup nadolazećih događaja ============ */
.event-popup-modal__meta {
    margin: 0 0 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue-600);
}

.event-popup-modal__body {
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.event-popup-modal__body[hidden] {
    display: none;
}

.event-popup-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.event-popup-modal__calendar {
    text-decoration: none;
}

@media (max-width: 480px) {
    .event-popup-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .event-popup-modal__actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .announcement-modal { padding: 20px 18px 22px; }
}

/* ============ Preview dokumenata – popup modal ============ */
.doc-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(7, 41, 74, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.doc-preview-overlay[hidden] { display: none; }

.doc-preview-modal {
    background: var(--white);
    border-radius: var(--radius);
    width: min(960px, 94vw);
    height: min(90vh, 900px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.doc-preview-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border, #e4e7ea);
    flex-shrink: 0;
}

.doc-preview-modal__title {
    color: var(--blue-700);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.doc-preview-modal__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.doc-preview-modal__download {
    font-size: 0.875rem;
    padding: 8px 14px;
    white-space: nowrap;
}

.doc-preview-modal__close {
    border: none;
    background: none;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 4px 8px;
}

.doc-preview-modal__close:hover {
    color: var(--blue-700);
}

.doc-preview-modal__content {
    flex: 1;
    min-height: 0;
    position: relative;
    background: #f4f6f8;
}

.doc-preview-modal__loading,
.doc-preview-modal__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: var(--ink-soft);
}

.doc-preview-modal__fallback p {
    max-width: 420px;
    margin: 0;
    line-height: 1.5;
}

.doc-preview-modal__frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: var(--white);
}

.doc-preview-modal__frame[hidden],
.doc-preview-modal__body[hidden],
.doc-preview-modal__loading[hidden],
.doc-preview-modal__fallback[hidden] {
    display: none;
}

.doc-preview-modal__body {
    position: absolute;
    inset: 0;
    overflow: auto;
    padding: 20px 24px;
    background: var(--white);
}

.doc-preview-docx {
    max-width: 100%;
}

.doc-preview-xlsx {
    overflow-x: auto;
}

.doc-preview-xlsx__sheet {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-700);
    margin: 20px 0 10px;
}

.doc-preview-xlsx__sheet:first-child {
    margin-top: 0;
}

.doc-preview-xlsx table {
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-bottom: 16px;
    background: var(--white);
}

.doc-preview-xlsx td,
.doc-preview-xlsx th {
    border: 1px solid var(--border, #d8dde3);
    padding: 6px 10px;
    white-space: nowrap;
}

.doc-preview-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #eef4fb;
    border: 1px solid #c8d9ef;
    color: var(--ink-soft);
    font-size: 0.875rem;
    line-height: 1.5;
}

.doc-preview-text {
    margin: 0;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ink);
}

@media (max-width: 640px) {
    .doc-preview-modal {
        width: 100%;
        height: 92vh;
    }

    .doc-preview-modal__head {
        flex-direction: column;
        align-items: stretch;
    }

    .doc-preview-modal__toolbar {
        justify-content: space-between;
    }
}

/* ============ Obavijesti – klizač (marquee) iznad info kutija ============ */
.announcement-ticker {
    width: 100%;
    background: transparent;
    color: var(--ink);
    overflow: visible;
}

.announcement-ticker a {
    color: inherit;
    text-decoration: none;
}

.announcement-ticker a:hover,
.announcement-ticker a:focus {
    text-decoration: underline;
    color: var(--blue-700);
}

.announcement-ticker__viewport {
    width: var(--ticker-viewport-width, 80%);
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    min-height: 44px;
}

.announcement-ticker__track {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 10px 0;
    min-height: 44px;
    will-change: transform;
}

.announcement-ticker:not(.announcement-ticker--ready):not(.announcement-ticker--static) .announcement-ticker__track {
    visibility: hidden;
}

.announcement-ticker--ready .announcement-ticker__track {
    animation: announcement-ticker-scroll var(--ticker-duration, 30s) linear infinite;
}

.announcement-ticker:hover .announcement-ticker__track,
.announcement-ticker:focus-within .announcement-ticker__track {
    animation-play-state: paused;
}

.announcement-ticker__item {
    display: inline-flex;
    align-items: center;
}

.announcement-ticker__link,
.announcement-ticker__text {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 4px 0;
}

.announcement-ticker__link {
    cursor: pointer;
}

.announcement-ticker__link:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

.announcement-ticker__sep {
    color: var(--ink-soft);
    padding: 0 1.25rem;
    user-select: none;
}

.announcement-ticker--static .announcement-ticker__track {
    position: static;
    display: block;
    text-align: center;
    white-space: normal;
    padding: 12px 16px;
    visibility: visible;
}

.announcement-ticker--static .announcement-ticker__sep {
    padding: 0 0.5rem;
}

@keyframes announcement-ticker-scroll {
    from { transform: translateX(var(--ticker-from, 100%)); }
    to { transform: translateX(var(--ticker-to, -50%)); }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-ticker--ready .announcement-ticker__track {
        animation: none;
    }
}

@media print {
    .site-header,
    .footer,
    .sidebar,
    .content-tools,
    .scroll-top,
    .a11y-fab,
    .cookie-fab,
    .a11y-overlay,
    .cookie-overlay,
    .announcement-overlay,
    .doc-preview-overlay,
    .cookie-banner,
    .searchbar {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .page-hero {
        background: none !important;
        color: #000 !important;
        padding: 0 0 16px !important;
    }

    .page-hero .breadcrumbs,
    .page-hero .breadcrumbs a {
        color: #444 !important;
    }

    .page-content {
        display: block !important;
        padding: 0 !important;
    }

    .article a {
        color: #000;
        text-decoration: underline;
    }

    img, svg {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .article__media--placeholder {
        display: none !important;
    }

    mark.search-highlight,
    mark.search-highlight.is-focused {
        background: transparent !important;
        color: inherit !important;
        outline: none !important;
        box-shadow: none !important;
        animation: none !important;
        padding: 0;
        border-radius: 0;
    }

    .content-gallery__nav,
    .content-gallery__dots,
    .content-gallery__thumbs {
        display: none !important;
    }

    .content-gallery__slides {
        min-height: auto;
    }

    .content-gallery__slide {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        margin-bottom: 16px;
    }

    .content-gallery__slide img {
        height: auto;
        max-height: none;
    }
}

/* ----- Mjesna samouprava ----- */
.mo-intro {
    margin-bottom: 28px;
}

.mo-list {
    margin: 0 0 24px;
    padding-left: 1.4rem;
}

.mo-list li {
    margin-bottom: 6px;
}

.mo-directory {
    display: grid;
    gap: 16px;
}

.mo-card {
    border: 1px solid var(--line, #e7e9eb);
    border-radius: 12px;
    padding: 18px 20px;
    background: #fff;
}

.mo-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.mo-card__address {
    margin: 0 0 6px;
    color: var(--ink-soft, #5a6470);
}

.mo-card__meta {
    margin: 0 0 4px;
    font-size: .95rem;
}

.mo-card__link {
    margin: 10px 0 0;
}

.mo-detail {
    display: grid;
    gap: 28px;
}

@media (min-width: 900px) {
    .mo-detail {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.mo-detail__photo {
    margin: 0 0 20px;
    overflow: hidden;
    border-radius: var(--radius);
}

.mo-detail__photo--contain {
    background: #1a2a3a;
}

.mo-detail__photo img {
    width: 100%;
    max-height: 320px;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--line, #e7e9eb);
}

.mo-contact ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mo-contact li {
    margin-bottom: 8px;
}

.mo-map {
    height: 360px;
    border-radius: 12px;
    border: 1px solid var(--line, #e7e9eb);
}

.mo-map__note {
    margin: 8px 0 0;
    font-size: .92rem;
}

.mo-boundaries {
    margin-top: 28px;
}

.mo-boundaries__text {
    white-space: pre-wrap;
    line-height: 1.6;
}

/* ============ Isticanje pojma iz pretrage (?hl=...) ============ */
mark.search-highlight {
    background: var(--gold-500, #f5c518);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
    scroll-margin-top: 120px;
    animation: search-highlight-pulse 1.5s ease-out;
}

mark.search-highlight.is-focused {
    outline: 2px solid var(--blue-600);
    outline-offset: 2px;
}

@keyframes search-highlight-pulse {
    0%, 100% { background: var(--gold-500, #f5c518); }
    30% { background: #ffe066; box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.35); }
}
