:root {
    --white: #ffffff;
    --navy: #0F2742;
    --hajduk-blue: #0047AB;
    --gold: #c49a6c;
    --black: #111111;
    --gray-inactive: #a3a3a3;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--black);
    background: #f7f4ee;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* ================= FILM GRAIN ================= */
.grain {
    position: fixed; inset: 0; z-index: 999; pointer-events: none;
    opacity: 0.045; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ================= PROGRESS BAR ================= */
.progress-track { position: fixed; top: 0; left: 0; width: 100%; height: 2px; background: rgba(0,0,0,0.06); z-index: 1000; }
.progress-fill { height: 100%; width: 0%; background: var(--gold); box-shadow: 0 0 8px rgba(198,161,91,0.7); transition: width 0.08s linear; }

/* ================= PAGE SHELL (sidebar + glavni sadržaj) ================= */
.page-shell {
    display: flex;
    align-items: flex-start;
}

/* ================= SIDEBAR ================= */
.site-sidebar {
    position: sticky;
    top: 76px;
    flex: 0 0 240px;
    width: 240px;
    height: calc(var(--vh, 1vh) * 100 - 76px);
    margin: 0;
    background: var(--gold);
    border-radius: 0;
    box-shadow: 0 20px 50px -20px rgba(15,39,66,0.5);
    overflow: hidden;
    z-index: 150;
}
.sidebar-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 0 30px 30px;
}
.sidebar-nav {
    position: relative;
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 18px;
    padding-left: 14px;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(15,39,66,0.3); border-radius: 4px; }
.sidebar-nav-line {
    position: absolute; left: 18px; top: 8px; bottom: 8px; width: 0;
    border-left: 1px dashed rgba(15,39,66,0.35);
}
.sidebar-nav-item {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    width: 100%;
    background: none; border: none; cursor: pointer;
    padding: 7px 0;
    text-align: left;
}
.sidebar-dot {
    flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%;
    background: rgba(15,39,66,0.35);
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 1px rgba(15,39,66,0.35);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.sidebar-label {
    font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: 0.02em;
    color: rgba(15,39,66,0.62);
    transition: color 0.3s ease;
    white-space: nowrap;
}
.sidebar-nav-item:hover .sidebar-label { color: rgba(15,39,66,0.9); }
.sidebar-nav-item.active .sidebar-dot {
    background: var(--navy); transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(15,39,66,0.16), 0 0 0 1px var(--navy);
}
.sidebar-nav-item.active .sidebar-label { color: var(--navy); font-size: 17px; font-weight: 700; }
.sidebar-footer {
    position: relative;
    height: 70px;
    margin-top: auto;
}
.sidebar-watermark {
    position: absolute; right: -6px; bottom: -18px;
    font-family: var(--serif); font-weight: 800; font-size: 96px; line-height: 1;
    color: rgba(15,39,66,0.08); pointer-events: none; user-select: none;
}
.sidebar-footer-text {
    position: absolute; left: 0; bottom: 10px;
    font-family: var(--serif); font-style: italic; font-size: 12px;
    letter-spacing: 0.03em; color: rgba(15,39,66,0.4);
}

/* ---- Mobilni toggle + backdrop (skriveni na desktopu) ---- */
.sidebar-toggle {
    display: none;
    position: fixed; top: 90px; left: 18px; z-index: 300;
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--navy); border: none; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.sidebar-toggle span { width: 18px; height: 2px; background: var(--gold); transition: transform 0.3s ease, opacity 0.3s ease; }
.sidebar-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-toggle.active span:nth-child(2) { opacity: 0; }
.sidebar-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sidebar-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 140;
    background: rgba(0,0,0,0.5);
    opacity: 0; transition: opacity 0.3s ease;
}
.sidebar-backdrop.active { opacity: 1; }

@media (max-width: 900px) {
    .page-shell { display: block; }
    .sidebar-toggle { display: flex; }
    .sidebar-backdrop.active { display: block; }
    .site-sidebar {
        position: fixed; top: 76px; left: 0; margin: 0;
        width: 78vw; max-width: 300px; height: calc(var(--vh, 1vh) * 100 - 76px);
        border-radius: 0 18px 18px 0;
        transform: translateX(-105%);
        transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
    }
    .site-sidebar.open { transform: translateX(0); }
    .sidebar-inner { padding-top: 70px; }
}

/* ================= GLAVNI SADRŽAJ ================= */
.site-main { flex: 1 1 auto; min-width: 0; }

/* ================= REVEAL ================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.visible { transition-delay: 0.1s; }
.reveal-delay-2.visible { transition-delay: 0.2s; }

/* ================= HERO ================= */
.hero-v2 {
    position: relative;
    padding: 70px 56px 0 56px;
    overflow: hidden;
}
.hero-v2-portrait {
    position: absolute; top: 0; left: 0; width: 100%; height: clamp(480px, calc(var(--vh, 1vh) * 82), 760px); z-index: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 14%, black 46%, black 100%);
            mask-image: linear-gradient(90deg, transparent 0%, transparent 14%, black 46%, black 100%);
}
.hero-v2-portrait img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    filter: grayscale(var(--photo-grayscale, 1)) contrast(1.05);
    opacity: 0;
    transition: opacity 1.4s ease;
}
.hero-v2-portrait img.active { opacity: 0.22; }

.hero-v2-content { position: relative; z-index: 1; max-width: 640px; }
.eyebrow { font-size: 14px; letter-spacing: 0.3em; font-weight: 600; color: var(--gold); margin-bottom: 18px; }
.hero-v2-title {
    font-family: var(--serif); font-weight: 800; font-size: clamp(46px, 7vw, 92px);
    line-height: 0.96; letter-spacing: 0.01em; color: var(--black);
}
.intro-lead { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2vw, 21px); color: var(--gold); margin-top: 22px; max-width: 560px; }
.intro-text { margin-top: 24px; max-width: 620px; font-size: 15.5px; line-height: 1.85; color: #333; text-align: left; }

@media (max-width: 900px) {
    .hero-v2 { padding: 90px 20px 0 20px; }
    .hero-v2-portrait { display: none; }
}

/* ================= STATISTIKA (career at a glance) ================= */
.stats-card {
    position: relative; z-index: 1;
    max-width: 1080px; margin: -34px auto 60px auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 24px 50px -20px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 26px 30px;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px 18px;
}
.stat-number { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--navy); line-height: 1; }
@media (max-width: 900px) {
    .stats-card { margin: 30px 20px 40px 20px; padding: 20px; gap: 18px 14px; }
}

/* ================= RAIL (lijeva vertikalna linija) ================= */
.rail { position: relative; max-width: 1080px; margin: 0 auto; padding: 50px 24px 50px 70px; }
.rail-line { position: absolute; left: 24px; top: 0; bottom: 0; width: 0; border-left: 2px dashed #d9d9d9; }
.rail-line-fill { position: absolute; left: -2px; top: 0; width: 0; height: 0%; border-left: 2px solid var(--gold); box-shadow: 0 0 6px rgba(198,161,91,0.5); transition: height 0.1s linear; }

/* ================= ENTRY (obični period) ================= */
.entry { position: relative; padding-bottom: 70px; }
.entry:last-child { padding-bottom: 0; }
.entry-dot {
    position: absolute; left: -46px; top: 8px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--gray-inactive); border: 3px solid var(--white); box-shadow: 0 0 0 1px #d9d9d9;
    transform: translateX(-50%);
    transition: background 0.5s ease, box-shadow 0.5s ease, width 0.3s ease, height 0.3s ease;
}
.entry-dot.active {
    background: var(--gold);
    width: 17px; height: 17px;
    box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(198,161,91,0.75);
}
.entry-year {
    font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px);
    color: var(--black);
}
.entry-body { display: flex; gap: 56px; align-items: flex-start; }
.entry.entry-photo-left .entry-body { flex-direction: row-reverse; }
.entry.entry-photo-left .entry-photo-col { margin-left: -34px; }
@media (max-width: 760px) {
    .entry.entry-photo-left .entry-photo-col { margin-left: 0; }
}
/* entry-year ostaje uvijek lijevo, poravnat s drop capom, bez obzira na entry-photo-left raspored */
.entry-text { flex: 1 1 auto; font-size: 16.5px; line-height: 1.85; color: #262626; max-width: 58ch; will-change: opacity; transition: opacity 0.35s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.entry-text p { margin-bottom: 1.1em; text-wrap: pretty; }
.entry-text p:last-of-type { margin-bottom: 0; }
.entry-photo { flex: 0 0 230px; }
.entry-photo-grid { flex: 0 0 320px; }
.photo-caption {
    margin-top: 25px; font-family: var(--sans); font-style: normal; font-size: 13px;
    letter-spacing: 0.01em; color: #6b6354; text-align: center;
}

/* ================= STUPAC S DO 2 BOČNE GALERIJE (jedna ispod druge) ================= */
.entry-photo-col {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 34px;
}
.entry-photo-col .entry-photo {
    flex: none;
    width: 100%;
}
@media (max-width: 760px) {
    .entry-photo-col { flex: none; width: 100%; max-width: 320px; margin: 0 auto; }
}

/* ================= BOČNA GALERIJA NA VELIKOM CINEMATIC SLAJDU ================= */
.chapter-content-with-side {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    max-width: 1120px;
}
.chapter-content-with-side .chapter-content-text { flex: 1 1 auto; min-width: 0; }
.chapter-content-with-side.chapter-content-side-left { flex-direction: row-reverse; }
.chapter-photo-col { flex: 0 0 250px; }
.chapter-photo-col .photo-caption { color: rgba(255,255,255,0.55); }
@media (max-width: 900px) {
    .chapter-content-with-side { flex-direction: column !important; gap: 26px; }
    .chapter-photo-col { flex: none; width: 100%; max-width: 300px; }
}

@media (max-width: 760px) {
    .rail { padding: 40px 16px 40px 46px; }
    .rail-line { left: 14px; }
    .entry-dot { left: -32px; }
    .entry-body, .entry.entry-photo-left .entry-body { flex-direction: column; gap: 18px; }
    .entry.entry-photo-left .entry-year-row { justify-content: flex-start; text-align: left; }
    .entry-photo { flex: none; width: 160px; margin: 4px auto 0 auto; }
}

/* ================= VELIKI CINEMATIC SLAJD ================= */
.chapter {
    position: relative; min-height: calc(var(--vh, 1vh) * 100); display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 70px 24px;
    background: var(--navy); color: var(--white);
}
.chapter-bg { position: absolute; inset: -10% -6%; z-index: 0; }
.chapter-bg .slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 1.4s ease;
}
.chapter-bg .slide.active { opacity: 1; }
.chapter-bg .slide img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(var(--photo-grayscale, 1)) contrast(1.1);
    transform: scale(1);
    animation: kenburns 42s ease-in-out infinite alternate;
}
.chapter-bg .slide:nth-child(even) img { animation-direction: alternate-reverse; }
@keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.035); }
}
.chapter-bg::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 160px rgba(0,0,0,0.5); pointer-events: none; z-index: 1; }
.chapter-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,39,66,0.4) 0%, rgba(15,39,66,0.88) 60%, rgba(15,39,66,0.97) 100%); }
.chapter-content { position: relative; z-index: 2; max-width: 760px; }
.chapter-year { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 6vw, 64px); color: var(--gold); text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4); }
.chapter-headline { font-family: var(--serif); font-weight: 600; font-style: italic; font-size: clamp(24px, 4vw, 42px); margin-top: 10px; color: var(--white); }
.chapter-full-text { margin-top: 34px; font-size: 16px; line-height: 1.85; color: #f2ede1; text-align: left; max-width: 62ch; will-change: opacity; transition: opacity 0.35s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.chapter-full-text p { margin-bottom: 1.1em; text-wrap: pretty; }
.chapter-full-text p:last-of-type { margin-bottom: 0; }
.chapter-caption { position: absolute; left: 28px; bottom: 26px; z-index: 2; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

@media (max-width: 760px) {
    .chapter-caption { left: 18px; bottom: 18px; }
    .chapter-full-text { font-size: 14px; }
}

/* ================= DROP CAP (veliko inicijalno slovo - samo prvi paragraf) ================= */
.entry-text p:first-of-type::first-letter,
.chapter-full-text p:first-of-type::first-letter {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 3.2em;
    float: left;
    line-height: 0.78;
    padding-right: 9px;
    padding-top: 5px;
    color: currentColor;
}

/* ================= CITATI UNUTAR TEKSTA («...») ================= */
.inline-quote {
    font-style: italic;
    color: var(--navy);
}
.chapter-full-text .inline-quote {
    color: var(--gold);
}

/* ================= GODINA ================= */
.entry-year-row, .chapter-year-row {
    display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.chapter-year-row { justify-content: center; }

/* ================= ISTAKNUTI CITAT (pull quote) ================= */
.pull-quote {
    margin: 22px 0 22px 0;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.4;
    color: var(--navy);
}
.chapter-full-text .pull-quote {
    color: var(--gold);
}

/* ================= FOTO-HRPA (arhivske fotografije, bijeli okvir kao pravi otisak) ================= */
.photo-stack {
    position: relative;
    width: 100%;
    cursor: pointer;
}
.stack-photo {
    padding: 10px 10px 16px 10px;
    background: var(--white);
    border-radius: 1px;
    box-shadow:
        0 2px 3px rgba(0,0,0,0.12),
        0 18px 32px -10px rgba(20,15,8,0.55);
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}
/* prva (vrhunska, najvidljivija) slika ostaje u normalnom toku i time određuje
   veličinu cijele hrpe - prema SVOJIM stvarnim proporcijama, bez izrezivanja */
.stack-photo:nth-child(1) {
    position: relative;
    z-index: 3;
}
/* ostale slike u hrpi su ispod, pozicionirane apsolutno unutar tog istog okvira
   (samo im rubovi prividuju kroz rotaciju, pa manje odstupanje u omjeru ne smeta) */
.stack-photo:nth-child(2),
.stack-photo:nth-child(3) {
    position: absolute;
    inset: 6px;
}

.stack-photo img {
    width: 100%; height: auto; display: block;
    filter: grayscale(var(--photo-grayscale, 1)) contrast(1.08) sepia(0.06);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.12);
}
.stack-photo:nth-child(2) img, .stack-photo:nth-child(3) img { height: 100%; object-fit: cover; }
.stack-photo:nth-child(1) { transform: rotate(-3deg) translate(-4px, 2px); z-index: 3; }
.stack-photo:nth-child(2) { transform: rotate(2.5deg) translate(5px, -2px); z-index: 2; }
.stack-photo:nth-child(3) { transform: rotate(-1.5deg) translate(1px, 6px); z-index: 1; }
.photo-stack:hover .stack-photo:nth-child(1) { transform: rotate(-5deg) translate(-10px, 0px); box-shadow: 0 2px 3px rgba(0,0,0,0.12), 0 24px 38px -10px rgba(20,15,8,0.6); }
.photo-stack:hover .stack-photo:nth-child(2) { transform: rotate(4.5deg) translate(11px, -5px); }
.photo-stack:hover .stack-photo:nth-child(3) { transform: rotate(-2.5deg) translate(3px, 10px); }
/* 4. i dalje slike ostaju u DOM-u (dostupne kroz lightbox), ali se ne prikazuju
   u kompaktnoj hrpi - hrpa uvijek izgleda isto (do 3 sloja) bez obzira na broj slika */
.stack-photo:nth-child(n+4) { display: none; }
.stack-more-badge {
    position: absolute; bottom: -10px; right: -10px; z-index: 4;
    min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px;
    background: var(--navy); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--sans); font-weight: 700; font-size: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    pointer-events: none;
}

@media (max-width: 760px) {
    .photo-stack { max-width: 200px; margin: 0 auto; }
}

/* ================= LIGHTBOX GALERIJA ================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    background: rgba(10,12,10,0.94);
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 88%;
    max-height: 90%;
}
.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-caption {
    margin-top: 14px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 14px;
    color: #e9e4d6;
    text-align: center;
    max-width: 640px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    z-index: 5;
    color: #f3edde;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    opacity: 0.75;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 16px; right: 24px; font-size: 34px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
    .lightbox-prev, .lightbox-next {
        width: 40px; height: 40px;
        border-radius: 50%;
        background: rgba(15,39,66,0.55);
        font-size: 20px;
        padding: 0;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 10px; right: 12px; }
}

/* ================= PREFERS-REDUCED-MOTION ================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
    .chapter-bg .slide img { animation: none !important; transform: none !important; }
    .entry-text, .chapter-full-text { opacity: 1 !important; }
    [data-parallax] { transform: none !important; }
}

/* ================= CUSTOM SELECTION BOJA ================= */
::selection { background: var(--gold); color: #241a06; }

/* ================= SLIKE UNUTAR TEKSTA (inline photos) ================= */
.inline-photos {
    display: grid;
    gap: 26px;
    margin: 14px 0 30px 0;
}
.inline-photos-1 { grid-template-columns: minmax(180px, 62%); }
.inline-photos-2 { grid-template-columns: repeat(2, 1fr); }
.inline-photos-3 { grid-template-columns: repeat(3, 1fr); }

/* isti "arhivski otisak" tretman kao foto-hrpa sa strane: bijeli rub, papirna
   podloga iza, blagi tilt - da inline slike ne djeluju kao goli izresci */
.inline-photo {
    position: relative;
    margin: 0;
    background: var(--white);
    padding: 8px 8px 14px 8px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.12), 0 16px 28px -10px rgba(20,15,8,0.55);
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}
.inline-photo::after {
    content: "";
    position: absolute; inset: 0;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: -1;
    transform: translate(5px, 6px) rotate(2deg);
}
.inline-photo:nth-child(3n+1) { transform: rotate(-1.3deg); }
.inline-photo:nth-child(3n+2) { transform: rotate(1deg); }
.inline-photo:nth-child(3n)   { transform: rotate(-0.5deg); }
.inline-photo:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 0 2px 3px rgba(0,0,0,0.12), 0 22px 34px -10px rgba(20,15,8,0.6);
}
.inline-photo img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 1px;
    cursor: pointer; display: block;
    filter: grayscale(var(--photo-grayscale, 1)) contrast(1.08) sepia(0.05);
    box-shadow: inset 0 0 24px rgba(0,0,0,0.14);
}
.inline-photo figcaption {
    margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 11px;
    letter-spacing: 0.01em; color: #6b6354; text-align: center;
}
@media (max-width: 640px) {
    .inline-photos-1, .inline-photos-2, .inline-photos-3 { grid-template-columns: 1fr 1fr; }
    .inline-photos-1 { grid-template-columns: minmax(140px, 80%); }
}

/* ================================================================
   SITE HEADER / NAV (zajednički za sve stranice)
   ================================================================ */
.site-topbar {
    position: sticky; top: 0; z-index: 500;
    background: var(--topbar-footer, #0d1c2f);
    height: 76px;
}
.site-topbar-inner {
    max-width: 1600px; margin: 0 auto; height: 100%;
    padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo {
    font-family: var(--serif); font-weight: 800; font-size: 39px;
    letter-spacing: 0.06em; color: var(--gold); text-decoration: none;
    flex: 0 0 auto;
}
.site-logo-suffix { color: var(--white); }
@media (max-width: 860px) {
    .site-logo { font-size: 30.5px; }
}
.site-nav { display: flex; gap: 34px; align-items: center; flex: 1 1 auto; justify-content: center; }
.site-nav-link {
    color: rgba(255,255,255,0.72); text-decoration: none;
    font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    transition: color 0.2s ease;
    position: relative; padding-bottom: 4px;
}
.site-nav-link:hover, .site-nav-link.active { color: var(--gold); }
.site-nav-link.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold);
}
.site-topbar-right { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.site-wiki-link {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.75); text-decoration: none;
    font-family: var(--sans); font-size: 14.5px; font-weight: 600; letter-spacing: 0.02em;
    transition: color 0.2s ease;
}
.site-wiki-link:hover { color: var(--gold); }
.site-wiki-link svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.site-header-cta {
    display: inline-block; background: var(--gold); color: #241a06;
    font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    text-decoration: none; padding: 11px 22px; border-radius: 2px;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.site-header-cta:hover { background: #d9b76f; transform: translateY(-1px); }
.site-nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0;
}
.site-nav-toggle span { width: 100%; height: 2px; background: var(--white); transition: transform 0.25s ease, opacity 0.25s ease; }
.site-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav-toggle.open span:nth-child(2) { opacity: 0; }
.site-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 499; }
.site-nav-backdrop.active { display: block; }
.site-nav-close { display: none; }

@media (max-width: 860px) {
    .site-nav-toggle { display: flex; order: 3; }
    .site-header-cta-desktop { display: none; }
    .site-wiki-link { display: none; }
    .site-nav {
        position: fixed; top: 0; right: 0; height: 100vh; width: 78vw; max-width: 320px;
        background: var(--navy); z-index: 500;
        flex-direction: column; align-items: flex-start; gap: 14px;
        padding: 10px 30px 30px 30px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
    }
    .site-nav.open { transform: translateX(0); }
    .site-nav-link { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .site-nav-close {
        display: flex; align-items: center; justify-content: center;
        position: absolute; top: 20px; right: 20px;
        width: 36px; height: 36px; border-radius: 50%;
        background: none; border: none; color: var(--white);
        font-size: 26px; line-height: 1; cursor: pointer; padding: 0;
    }
    .site-nav-close:hover { color: var(--gold); }
}


/* ================================================================
   SITE FOOTER (zajednički za sve stranice)
   ================================================================ */
.site-footer { background: var(--topbar-footer, #0d1c2f); color: rgba(255,255,255,0.68); padding: 56px 32px 0; }

/* ---- Priznanja u footeru - izgled kao statistika na hero-u ---- */
.footer-trophies { max-width: 1400px; margin: 0 auto; padding-bottom: 48px; }
.footer-trophies-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 20px; }
.footer-trophy-item { display: block; text-align: center; text-decoration: none; }
.footer-trophy-year { display: block; font-family: var(--serif); font-weight: 800; font-size: 38px; color: var(--gold); line-height: 1.1; transition: transform 0.2s ease; }
.footer-trophy-item:hover .footer-trophy-year { transform: translateY(-3px); }
.footer-trophy-label {
    display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0.02em;
    color: rgba(255,255,255,0.6); margin-top: 8px; line-height: 1.4;
}
@media (max-width: 760px) {
    .footer-trophies-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
    .footer-trophy-year { font-size: 32px; }
}
.site-footer-inner {
    max-width: 1400px; margin: 0 auto; padding-bottom: 40px;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0;
}
.site-footer-text { max-width: 480px; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.5); margin-top: 30px; }
.site-footer-nav { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; padding-top: 30px; }
.site-footer-nav a { color: rgba(255,255,255,0.68); text-decoration: none; font-size: 13px; font-weight: 600; }
.site-footer-nav a:hover { color: var(--gold); }
.site-footer-bottom {
    max-width: 1400px; margin: 0 auto; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center; font-size: 11px; letter-spacing: 0.04em; color: rgba(255,255,255,0.35);
    display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
}
.site-footer-privacy-link { color: rgba(255,255,255,0.35); text-decoration: none; }
.site-footer-privacy-link:hover { color: var(--gold); }

/* ================================================================
   OPĆENITO ZA PODSTRANICE (naslovnica, video, galerija, novosti)
   ================================================================ */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 60px 32px 90px; }
.page-wrap-tight { padding-top: 46px; }

.page-heading {
    font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 4vw, 48px);
    color: var(--navy); margin-bottom: 14px;
}
.page-lead { font-family: var(--sans); font-size: 16px; color: #6b6354; max-width: 640px; line-height: 1.7; margin-bottom: 50px; }

/* ---- Naslovnica (homepage) ---- */

.home-hero-slider img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(var(--photo-grayscale, 1)) contrast(1.05);
    opacity: 0; transition: opacity 1.6s ease;
}
.home-hero-slider img.active { opacity: 1; }
.home-hero-video-wrap { pointer-events: none; position: relative; }
.home-hero-video-poster {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    z-index: 1; opacity: 1; transition: opacity 0.6s ease;
}
.home-hero-video-wrap.video-ready .home-hero-video-poster { opacity: 0; }
.home-hero-video-iframe { position: relative; z-index: 0; opacity: 0; transition: opacity 0.6s ease; }
.home-hero-video-iframe.is-ready { opacity: 1; z-index: 2; }
.home-hero-video-wrap iframe {
    position: absolute;
    border: 0;
}
.home-hero-cta {
    display: inline-block; margin-top: 32px; padding: 13px 30px;
    background: var(--gold); color: #241a06; text-decoration: none;
    font-weight: 700; font-size: 14px; letter-spacing: 0.03em; border-radius: 2px;
}

/* ---- Video stranica ---- */
.empty-state { text-align: center; padding: 60px 20px; color: #a39d8c; font-family: var(--serif); font-style: italic; font-size: 16px; }

.empty-state-card {
    text-align: center; padding: 50px 20px; max-width: 420px; margin: 0 auto;
}
.empty-state-icon {
    width: 64px; height: 64px; margin: 0 auto 22px auto; border-radius: 50%;
    background: rgba(198,161,91,0.1); display: flex; align-items: center; justify-content: center;
}
.empty-state-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.empty-state-text { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.empty-state-sub { font-family: var(--sans); font-size: 13.5px; color: #8a8375; line-height: 1.6; }

/* ---- Izložba - stavka po stavka (slika s jedne, opis s druge strane) ---- */
.exhibit-list { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.exhibit-item {
    display: flex; align-items: flex-start;
    gap: 40px;
    padding: 46px 0; border-bottom: 1px solid #e2ddd0;
}
.exhibit-item:first-child { padding-top: 0; }
.exhibit-item:last-child { border-bottom: none; }
.exhibit-item-reverse { flex-direction: row-reverse; }
.exhibit-photo-col { flex: 0 0 525px; position: relative; }
.exhibit-num {
    position: absolute; top: -14px; left: -14px; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-weight: 800; font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.exhibit-item-reverse .exhibit-num { left: auto; right: -14px; }
.exhibit-photo-btn {
    padding: 0; border: none; background: none; cursor: pointer; display: block; width: 100%;
    border-radius: 4px; overflow: hidden;
    box-shadow: 0 16px 32px -16px rgba(15,39,66,0.35);
}
.exhibit-photo-btn img {
    width: 100%; height: auto; display: block;
    filter: grayscale(var(--photo-grayscale-izlozba, 1)) contrast(1.08) sepia(0.05);
    transition: transform 0.4s ease, opacity 0.3s ease;
}
.exhibit-photo-btn:hover img { opacity: 0.9; transform: scale(1.04); }
.exhibit-photo-placeholder {
    width: 100%; aspect-ratio: 4/3; border-radius: 4px;
    background: #ece7d9;
    border: 1px dashed #cfc7ae;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    box-sizing: border-box;
}
.exhibit-photo-placeholder svg { width: 28px; height: 28px; fill: none; stroke: #a39d8c; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.exhibit-photo-placeholder span { font-family: var(--sans); font-size: 11px; letter-spacing: 0.03em; color: #a39d8c; }
.exhibit-caption {
    flex: 1 1 auto; min-width: 0;
    font-family: var(--sans); font-size: 16.5px; line-height: 1.85; color: #4a4436;
    padding-top: 6px;
}

@media (max-width: 760px) {
    .exhibit-item, .exhibit-item-reverse { flex-direction: column; gap: 18px; padding: 32px 0; }
    .exhibit-photo-col { flex: 0 0 auto; width: 100%; }
    .exhibit-photo-placeholder { aspect-ratio: 4/3; }
}

.simple-lightbox-caption {
    max-width: 700px; margin: 16px auto 0; text-align: center;
    font-family: var(--sans); font-size: 13.5px; color: rgba(255,255,255,0.75); line-height: 1.6;
}


/* ---- Masonry galerija (koristi se za galeriju unutar pojedine novosti) ---- */
.gallery-masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; align-items: start; }
.gallery-masonry-item { cursor: pointer; margin-bottom: 0; }
.gallery-masonry-item img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 2px;
    filter: grayscale(var(--photo-grayscale, 1)) contrast(1.08) sepia(0.05);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-masonry-item:hover img { opacity: 0.85; }
.gallery-masonry-item figcaption { margin-top: 6px; font-family: var(--sans); font-style: normal; font-size: 12px; color: #6b6354; }
@media (max-width: 900px) { .gallery-masonry { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; } }

/* ---- Novosti stranica ---- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 34px; }
.news-card { display: block; text-decoration: none; background: var(--white); border-radius: 4px; overflow: hidden; box-shadow: 0 16px 32px -18px rgba(15,39,66,0.22); transition: transform 0.25s ease; }
.news-card:hover { transform: translateY(-3px); }
.news-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #ececec; filter: grayscale(var(--photo-grayscale, 1)) contrast(1.08); display: block; }
.news-card-body { padding: 20px; }
.news-card-date { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.news-card-title { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--navy); margin: 8px 0; }
.news-card-excerpt { font-size: 13.5px; color: #6b6354; line-height: 1.6; }
.news-post-header { max-width: 760px; margin: 0 auto 30px; }
.news-post-img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 4px; margin-bottom: 30px; filter: grayscale(var(--photo-grayscale, 1)) contrast(1.08); }
.news-post-body { max-width: 760px; margin: 0 auto; font-family: var(--sans); font-size: 16px; line-height: 1.85; color: #262626; }
.news-post-body p { margin-bottom: 1.2em; }

/* ---- Jednostavan lightbox za galeriju ---- */
.simple-lightbox {
    display: none; position: fixed; inset: 0; z-index: 900;
    background: rgba(7,10,15,0.95); flex-direction: column; align-items: center; justify-content: center; padding: 30px;
}
.simple-lightbox.active { display: flex; }
.simple-lightbox img { max-width: 90%; max-height: 85vh; border-radius: 3px; }
.simple-lightbox-close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 32px; cursor: pointer; opacity: 0.8; }
.simple-lightbox-close:hover { opacity: 1; }

/* ================= 404 STRANICA ================= */
.not-found-year {
    font-family: var(--serif); font-weight: 800; font-size: clamp(70px, 14vw, 140px);
    color: var(--gold); opacity: 0.85; line-height: 1;
}

/* ================================================================
   NASLOVNICA HERO v2 (novi dizajn - eyebrow, dvostruki CTA, vertikalna statistika)
   ================================================================ */
.home-hero-v2 {
    position: relative; background: var(--navy); color: var(--white);
    overflow: hidden; min-height: 640px;
}
.home-hero-v2 .home-hero-slider.home-hero-media {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, black 55%, black 100%);
            mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, black 55%, black 100%);
}
.home-hero-v2 .home-hero-video-wrap.home-hero-media {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.home-hero-v2-scrim {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, var(--navy) 0%, rgba(15,39,66,0.55) 45%, rgba(15,39,66,0.35) 100%);
}
.home-hero-v2-inner {
    position: relative; z-index: 2;
    max-width: 1600px; margin: 0 auto; padding: 90px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 50px;
    min-height: 640px;
}
.home-hero-v2-text { max-width: 560px; flex: 1 1 auto; }
.home-hero-v2-eyebrow {
    font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.home-hero-v2-title {
    font-family: var(--serif); font-weight: 800; font-size: clamp(57px, 6.6vw, 90px);
    line-height: 1.05; color: var(--white);
}
.home-hero-v2-title::selection { background: var(--gold); color: var(--navy); }
.home-hero-v2-divider { width: 56px; height: 3px; background: var(--gold); margin: 24px 0; }
.home-hero-v2-desc { font-family: var(--sans); font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.75); max-width: 480px; }
.home-hero-v2-ctas { display: flex; align-items: center; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.home-hero-v2-cta-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--gold); color: #241a06; text-decoration: none;
    font-family: var(--sans); font-weight: 700; font-size: 15.5px; letter-spacing: 0.03em; text-transform: uppercase;
    padding: 15px 26px; border-radius: 2px; transition: background 0.2s ease, transform 0.2s ease;
}
.home-hero-v2-cta-primary:hover { background: #d9b76f; transform: translateY(-1px); }
.home-hero-v2-cta-primary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-hero-v2-cta-secondary {
    display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
    color: var(--white); font-family: var(--sans); font-weight: 700; font-size: 15.5px; letter-spacing: 0.03em; text-transform: uppercase;
}
.home-hero-v2-play {
    width: 49px; height: 49px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, border-color 0.2s ease;
}
.home-hero-v2-cta-secondary:hover .home-hero-v2-play { background: var(--gold); border-color: var(--gold); }
.home-hero-v2-play svg { width: 27px; height: 27px; fill: var(--white); stroke: none; }
.home-hero-v2-cta-secondary:hover .home-hero-v2-play svg { fill: #241a06; }

.home-hero-v2-stats {
    flex: 0 0 auto; display: flex; flex-direction: column; gap: 34px;
    padding-left: 44px; border-left: 1px solid rgba(255,255,255,0.18);
}
.home-hero-v2-stat { text-align: center; }
.home-hero-v2-stat-icon { display: none; }
.home-hero-v2-stat-number { font-family: var(--serif); font-weight: 800; font-size: 46px; color: var(--gold); line-height: 1.1; }
.home-hero-v2-stat-label { font-family: var(--sans); font-size: 12.6px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-top: 12px; }

@media (max-width: 980px) {
    .home-hero-v2-inner { flex-direction: column; align-items: flex-start; padding: 70px 24px; gap: 40px; }
    .home-hero-v2-stats {
        display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px;
        flex-direction: unset; border-left: none; border-top: 1px solid rgba(255,255,255,0.18);
        padding-left: 0; padding-top: 30px; width: 100%;
    }
}

/* ================================================================
   KARTICE PODSTRANICA v2 (broj + ikona-značka preko fotke + strelica)
   ================================================================ */
.home-sections {
    max-width: 1600px; margin: -50px auto 0; padding: 0 40px 80px;
    position: relative; z-index: 5;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.home-section-card {
    display: block; text-decoration: none; background: var(--white);
    border-radius: 4px; overflow: hidden;
    box-shadow: 0 20px 40px -18px rgba(15,39,66,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-section-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -16px rgba(15,39,66,0.38); }
.home-section-thumb-wrap { position: relative; overflow: hidden; }
.home-section-thumb { width: 100%; aspect-ratio: 8/5; object-fit: cover; filter: grayscale(var(--photo-grayscale-home-thumb, 1)) contrast(1.08); display: block; transition: transform 0.4s ease; }
.home-section-card:hover .home-section-thumb { transform: scale(1.04); }
.home-section-thumb-fallback { width: 100%; aspect-ratio: 8/5; background: linear-gradient(135deg, var(--navy), #123058); display: flex; align-items: center; justify-content: center; }
.home-section-thumb-fallback span { font-family: var(--serif); font-size: 30px; color: var(--gold); opacity: 0.5; }
.home-section-icon-badge-wrap { position: relative; height: 0; z-index: 3; }
.home-section-icon-badge {
    position: absolute; left: 18px; top: -33px;
    width: 66px; height: 66px; border-radius: 50%; background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.home-section-icon-badge svg { width: 28.5px; height: 28.5px; fill: var(--gold); stroke: none; }
.home-section-body { padding: 44px 26px 26px 26px; position: relative; }
.home-section-title { font-family: var(--serif); font-weight: 700; font-size: 28.5px; color: var(--topbar-footer, #0d1c2f); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.01em; }
.home-section-desc { font-family: var(--sans); font-size: 15px; color: #6b6354; line-height: 1.65; padding-right: 20px; }
.home-section-arrow {
    position: absolute; right: 24px; bottom: 24px;
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    transition: transform 0.25s ease;
}
.home-section-arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-section-card:hover .home-section-arrow { transform: translateX(4px); }

@media (max-width: 900px) {
    .home-sections { grid-template-columns: repeat(2, 1fr); margin-top: -50px; }
}
@media (max-width: 560px) {
    .home-sections { grid-template-columns: 1fr; padding: 0 20px 60px; }
}

.gold-highlight { color: var(--gold); }

.news-post-gallery-heading {
    max-width: 760px; margin: 50px auto 20px; font-family: var(--serif); font-weight: 700;
    font-size: 22px; color: var(--navy); border-top: 1px solid #e2ddd0; padding-top: 30px;
}
.news-post-gallery { max-width: 760px; margin: 0 auto; }

/* ================================================================
   MINI HERO ZA PODSTRANICE (video/galerija/novosti)
   ================================================================ */
.page-hero {
    position: relative; overflow: hidden;
    background: var(--navy); color: var(--white);
    padding: 64px 40px 58px;
}
.page-hero-bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center bottom;
    z-index: 0;
}
.page-hero-bg-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: var(--navy); opacity: 0.82;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 1600px; margin: 0 auto; text-align: center; }
.page-hero-title {
    font-family: var(--serif); font-weight: 800; font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05; color: var(--white);
}
.page-hero-text {
    font-family: var(--sans); font-size: 15px; line-height: 1.75; color: rgba(255,255,255,0.72);
    max-width: 560px; margin: 16px auto 0;
}
@media (max-width: 760px) {
    .page-hero { padding: 46px 20px 40px; }
}

/* ================================================================
   IZBORNIK JEZIKA (automatski prijevod)
   ================================================================ */
.site-lang-switcher { position: relative; }
.site-lang-current {
    display: flex; align-items: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    font-size: 19px; padding: 4px; line-height: 1;
}
.site-lang-caret { width: 12px; height: 12px; fill: none; stroke: rgba(255,255,255,0.6); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.site-lang-switcher:has(.site-lang-dropdown.open) .site-lang-caret { transform: rotate(180deg); }
.site-lang-dropdown {
    display: none; position: absolute; top: calc(100% + 12px); right: 0; z-index: 600;
    background: var(--navy); border-radius: 6px; box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    padding: 6px; min-width: 150px;
}
.site-lang-dropdown.open { display: block; }
.site-lang-dropdown .site-lang-flag-btn {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: none; border: none; cursor: pointer; text-align: left;
    padding: 8px 10px; border-radius: 4px; font-size: 16px;
    color: rgba(255,255,255,0.85); font-family: var(--sans);
}
.site-lang-dropdown .site-lang-flag-btn:hover { background: rgba(255,255,255,0.08); }
.site-lang-dropdown .site-lang-flag-btn span { font-size: 13px; }

/* ---- Wikipedia/YouTube linkovi unutar mobilnog izbornika ---- */
.site-external-mobile { display: none; }

/* ---- Mobilna verzija: na dnu izbornika koji se otvara ---- */
.site-lang-mobile { display: none; }
@media (max-width: 860px) {
    .site-lang-switcher { display: none; }
    .site-external-mobile { display: block; width: 100%; padding-top: 30px; }
    .site-external-mobile-link {
        display: flex !important; align-items: center; gap: 10px;
        font-size: 14px !important; font-weight: 600 !important;
        text-transform: none !important; letter-spacing: normal !important;
    }
    .site-external-mobile-link svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
    .site-lang-mobile {
        display: block; margin-top: 24px; padding-top: 0;
        width: 100%;
    }
    .site-lang-mobile-label {
        display: block; font-family: var(--sans); font-size: 11px; font-weight: 700;
        letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 12px;
    }
    .site-lang-mobile-row { display: flex; gap: 10px; }
    .site-lang-mobile .site-lang-flag-btn {
        background: rgba(255,255,255,0.06); border: none; border-radius: 6px; cursor: pointer;
        width: 44px; height: 44px; font-size: 20px; display: flex; align-items: center; justify-content: center;
    }
    .site-lang-mobile .site-lang-flag-btn:hover { background: rgba(255,255,255,0.14); }
}

/* Google Translate widget - sakrij zadanu Google traku i sve popratne elemente */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-ftab,
.goog-te-balloon-frame,
.goog-te-menu-frame,
iframe[id^="goog-gt"],
#goog-gt-tt,
#goog-gt-,
.goog-tooltip,
.goog-tooltip:hover,
#google_translate_element,
#google_translate_element *,
.goog-te-gadget,
.goog-logo-link,
.goog-te-gadget span,
body > .skiptranslate:not(.goog-te-menu-frame) { display: none !important; visibility: hidden !important; height: 0 !important; width: 0 !important; overflow: hidden !important; }
body { top: 0px !important; position: static !important; }
html { margin-top: 0 !important; }
html.translated-ltr body, html.translated-rtl body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

.flag-icon { display: inline-flex; width: 21px; height: 15px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); flex-shrink: 0; }
.flag-icon svg, .flag-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.site-lang-mobile .flag-icon, .site-lang-mobile-row .flag-icon { width: 26px; height: 19px; }

.privacy-section-heading {
    font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--navy);
    margin: 40px 0 14px;
}
.privacy-section-heading:first-child { margin-top: 0; }

/* ---- Back to top gumb ---- */
.back-to-top {
    position: fixed; bottom: 26px; right: 26px; z-index: 400;
    width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--navy); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--navy); }
.back-to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
    .back-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; }
}

/* Google reCAPTCHA - sakrivena plutajuća pločica (badge). Googleova pravila zahtijevaju
   da se u tom slučaju obavezna napomena o reCAPTCHA-i prikaže negdje drugdje na stranici -
   ta napomena je dodana u podnožje (.recaptcha-note). */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.recaptcha-note { font-size: 10px; color: rgba(255,255,255,0.25); flex-basis: 100%; text-align: center; }
.recaptcha-note a { color: rgba(255,255,255,0.35); }

/* ---- Gumbi za dijeljenje na novostima ---- */
.news-share { display: flex; align-items: center; gap: 10px; margin: 30px 0; max-width: 760px; margin-left: auto; margin-right: auto; }
.news-share-label { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #8a8375; margin-right: 4px; }
.news-share-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--navy); color: var(--white); text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease, border-radius 0.2s ease;
}
.news-share-btn svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.news-share-btn:hover { background: var(--gold); color: #241a06; transform: translateY(-2px); }
.news-share-copy { width: auto; padding: 0 16px; border-radius: 19px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; }

/* ================================================================
   VIDEO STRANICA - grid kartica + popup player
   ================================================================ */
.video-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
}
.video-card {
    background: var(--white); border-radius: 4px; overflow: hidden;
    box-shadow: 0 16px 32px -18px rgba(15,39,66,0.22);
    transition: transform 0.25s ease;
}
.video-card:hover { transform: translateY(-3px); }

.video-thumb-btn {
    position: relative; display: block; width: 100%; padding: 0; margin: 0;
    border: none; cursor: pointer; background: #000;
    aspect-ratio: 16/9; overflow: hidden;
}
.video-thumb-btn img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: grayscale(0.15) contrast(1.05);
    transition: transform 0.4s ease, opacity 0.3s ease;
}
.video-thumb-btn:hover img { transform: scale(1.05); opacity: 0.85; }

.video-thumb-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.video-thumb-play svg {
    width: 58px; height: 58px; fill: rgba(255,255,255,0.92);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45));
    transition: transform 0.25s ease;
}
.video-thumb-btn:hover .video-thumb-play svg { transform: scale(1.1); }

.video-card-body { padding: 20px; }
.video-card-title { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--navy); line-height: 1.35; }
.video-card-desc { font-size: 13.5px; color: #6b6354; line-height: 1.6; margin-top: 8px; }

@media (max-width: 860px) {
    .video-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---- Popup player - preko cijelog ekrana, bez YouTube oznaka/prijedloga koliko je moguce ---- */
.video-popup {
    display: none; position: fixed; inset: 0; z-index: 900;
    background: rgba(5,10,18,0.95);
    align-items: center; justify-content: center; padding: 24px;
}
.video-popup.active { display: flex; }
.video-popup-inner { width: 100%; max-width: 1000px; position: relative; }
.video-popup-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 3px; overflow: hidden; }
.video-popup-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-popup-close {
    position: absolute; top: -44px; right: 0; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,0.12); color: #fff;
    font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.video-popup-close:hover { background: var(--gold); color: #241a06; }
@media (max-width: 640px) {
    .video-popup-close { top: -40px; right: 4px; }
}
