/* ============================================================
   HKPD "Matija Gubec" Ruma
   Dizajn: Hrvatska kultura · Srijem · Vojvodina
   Stil: Premium Traditional
   ============================================================ */

/* ── Custom Properties ────────────────────────────────────── */
:root {
    /* Hrvatska zastava: crvena + plava + bijela + zlato Srijema */
    --burgundy:       #CC2027;   /* hrvatska crvena — accent */
    --burgundy-mid:   #D93030;
    --burgundy-light: #E84545;
    --burgundy-dark:  #003DA5;   /* hrvatska plava — tamne sekcije */

    --gold:           #C8A45A;   /* pšenica/tamburica */
    --gold-light:     #DFBA72;
    --gold-dark:      #A8843A;
    --gold-pale:      #FDF3E0;

    /* Svetle pozadine — ne krem nego svetlo-plava */
    --cream:          #F4F7FF;   /* veoma svetlo plava-bela */
    --cream-mid:      #E6ECF8;
    --cream-dark:     #D0DCEF;

    --forest:         #1B3A8C;   /* hrvatska plava mid */
    --ink:            #0D1B3E;   /* duboka navy — hero/footer bg */
    --ink-mid:        #162454;
    --white:          #FFFFFF;
    --text:           #1B2A4A;   /* tamno navy tekst */
    --text-muted:     #4A5C7A;
    --text-light:     #7A90B0;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 16px;

    --shadow-sm:   0 2px 12px rgba(13,27,62,.09);
    --shadow:      0 8px 40px rgba(13,27,62,.13);
    --shadow-lg:   0 20px 60px rgba(13,27,62,.18);
    --shadow-gold: 0 6px 30px rgba(200,164,90,.28);
    --shadow-burg: 0 6px 30px rgba(204,32,39,.22);

    --transition:      .28s cubic-bezier(.4,0,.2,1);
    --transition-slow: .55s cubic-bezier(.4,0,.2,1);
    --header-h: 80px;
    --container: 1200px;

    /* ── Compatibility aliases (used in view files) ── */
    --navy:       #003DA5;
    --navy-light: #1B3A8C;
    --off-white:  #F4F7FF;
    --gray-200:   #D0DCEF;
    --gray-600:   #4A5C7A;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--text-muted); line-height: 1.85; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
section { overflow: hidden; }

/* ── Folk ornament divider ───────────────────────────────────── */
.folk-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    margin: 18px 0;
}
.folk-divider::before,
.folk-divider::after {
    content: '';
    flex: 1;
    max-width: 90px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dark));
}
.folk-divider::after {
    background: linear-gradient(to left, transparent, var(--gold-dark));
}
.folk-center {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gold-dark);
}
.folk-center span {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--gold-dark);
    transform: rotate(45deg);
}
.folk-center span:nth-child(2) { width: 4px; height: 4px; opacity: .5; }

/* ── Eyebrow ────────────────────────────────────────────────── */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 10px;
}

/* ── Section Header ─────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ── Folk border strip (čista zastava-traka) ─────────────────── */
.folk-border-top {
    position: relative;
}
.folk-border-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--burgundy)      0%   33%,
        var(--gold)          33%  67%,
        var(--burgundy-dark) 67%  100%
    );
    z-index: 1;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 30px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}
.btn-primary {
    background: var(--burgundy);
    color: var(--cream);
    border-color: var(--burgundy);
}
.btn-primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-burg);
}
.btn-gold {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.45);
}
.btn-outline:hover {
    background: rgba(255,255,255,.10);
    border-color: var(--white);
}
.btn-outline-dark {
    background: transparent;
    color: var(--burgundy);
    border-color: var(--burgundy);
}
.btn-outline-dark:hover {
    background: var(--burgundy);
    color: var(--cream);
    transform: translateY(-2px);
}

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: var(--transition);
}

/* Tanka zastava-traka na vrhu */
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--burgundy)      0%   32%,
        var(--gold)          32%  68%,
        var(--burgundy-dark) 68%  100%
    );
    z-index: 2;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 24px rgba(13,27,62,.08);
    z-index: 1;
}
.site-header.scrolled::before {
    box-shadow: 0 2px 32px rgba(13,27,62,.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* Logo */
.site-logo, .footer-logo {
    display: flex;
    align-items: center;
    z-index: 1;
}
.site-logo-img {
    height: 54px;
    width: auto;
    display: block;
    object-fit: contain;
}
.footer-logo-img {
    height: 64px;
    width: auto;
    display: block;
    object-fit: contain;
    opacity: .88;
    transition: opacity var(--transition);
}
.footer-logo-img:hover { opacity: 1; }

/* Nav links */
.main-nav { z-index: 2; }
.nav-list { display: flex; align-items: center; gap: 1px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}
.nav-link:hover { color: var(--burgundy); }
.nav-item.active > .nav-link { color: var(--burgundy); font-weight: 700; }

.nav-arrow { width: 11px; height: 11px; transition: transform var(--transition); opacity: .5; }
.has-dropdown:hover .nav-arrow { transform: rotate(180deg); opacity: 1; }

.nav-cta {
    background: var(--burgundy);
    color: var(--white) !important;
    border: 1px solid transparent;
    margin-left: 8px;
    border-radius: var(--radius-sm);
}
.nav-cta:hover {
    background: var(--burgundy-dark) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-burg);
}

/* Dropdown */
.has-dropdown { position: relative; }

/* Nevidljivi most — popunjava prazninu između nav stavke i dropdown-a */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    height: 14px;
    background: transparent;
    z-index: 999;
    display: none;
}
.has-dropdown:hover::after { display: block; }

.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 12px 48px rgba(13,27,62,.14);
    min-width: 215px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    /* delay samo pri zatvaranju — daje 100ms grace period */
    transition: opacity .22s .10s ease, visibility .22s .10s ease, transform .22s .10s ease;
    pointer-events: none;
    border: 1px solid var(--cream-dark);
    border-top: 3px solid var(--burgundy);
}
.has-dropdown:hover .dropdown,
.has-dropdown.dd-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    /* bez delay-a pri otvaranju */
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}
.dropdown li a {
    display: block;
    padding: 9px 14px;
    font-size: .74rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
}
.dropdown li a:hover {
    background: var(--cream);
    color: var(--burgundy);
    padding-left: 20px;
}

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1001; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--ink);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/slider/hkpd-matija-gubec-ruma-slider-001.webp');
    background-size: cover;
    background-position: center;
    opacity: .55;
    transform: scale(1.04);
    transition: transform 10s ease-out, opacity 1.2s ease;
}
.hero.loaded .hero-bg { transform: scale(1); opacity: .65; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            100deg,
            rgba(13,27,62,.92) 0%,
            rgba(13,27,62,.82) 42%,
            rgba(13,27,62,.35) 68%,
            rgba(13,27,62,.05) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: var(--header-h);
    max-width: 720px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp .8s .2s forwards;
}
.hero-eyebrow-line { width: 36px; height: 1px; background: var(--gold-dark); }

.hero h1 {
    color: var(--white);
    margin-bottom: 4px;
    opacity: 0;
    animation: fadeUp .8s .35s forwards;
    text-shadow: 0 2px 28px rgba(13,27,62,.4);
    font-weight: 700;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(.9rem, 2vw, 1.15rem);
    color: rgba(255,255,255,.55);
    font-style: italic;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp .8s .44s forwards;
    letter-spacing: .06em;
}

.hero-desc {
    font-size: 1.03rem;
    color: rgba(255,255,255,.70);
    max-width: 490px;
    margin-bottom: 38px;
    opacity: 0;
    animation: fadeUp .8s .54s forwards;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp .8s .64s forwards;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 2;
    animation: bounce 2.4s infinite;
    cursor: pointer;
    opacity: .5;
}
.hero-scroll .scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom, transparent, var(--gold-dark)); }
.hero-scroll .scroll-dot  { width: 5px; height: 5px; background: var(--gold-dark); border-radius: 50%; }

/* Godina u pozadini desno */
.hero-year {
    position: absolute;
    right: 5%;
    bottom: 12%;
    z-index: 1;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.5s 1s forwards;
    pointer-events: none;
}
.hero-year .year-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 700;
    color: rgba(200,164,90,.06);
    line-height: 1;
}
.hero-year .year-label {
    font-size: .65rem;
    color: rgba(200,164,90,.3);
    letter-spacing: .24em;
    text-transform: uppercase;
}

/* ============================================================
   O NAMA STRIP
   ============================================================ */
.about-strip {
    background: var(--white);
    padding: 88px 0;
    position: relative;
}
.about-strip.folk-border-top { padding-top: 93px; }

.about-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-strip-image {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: visible;
    aspect-ratio: 4/3;
}
.about-strip-image-inner {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.about-strip-image-inner::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(200,164,90,.3);
    z-index: 1;
    border-radius: 1px;
    pointer-events: none;
}
.about-strip-image img { width: 100%; height: 100%; object-fit: cover; }
.about-strip-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--ink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-year-badge {
    position: absolute;
    bottom: -18px;
    right: -18px;
    background: var(--burgundy);
    color: var(--cream);
    width: 96px; height: 96px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gold-dark);
    box-shadow: var(--shadow-burg);
    z-index: 2;
    text-align: center;
}
.about-year-badge .year-big   { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1; color: var(--gold-light); }
.about-year-badge .year-small { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }

.about-strip-text h2 { color: var(--ink); margin-bottom: 18px; }
.about-strip-text p  { margin-bottom: 16px; }
.about-strip-text .btn { margin-top: 10px; }

/* ============================================================
   STATISTIKE
   ============================================================ */
.stats-section {
    background: var(--burgundy-dark);
    padding: 68px 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(200,164,90,.07) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 50%, rgba(200,164,90,.05) 0%, transparent 50%);
    pointer-events: none;
}
.stats-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 0;
    position: relative;
}
.stat-item {
    text-align: center;
    padding: 36px 20px;
    transition: var(--transition);
    position: relative;
}
.stat-item::after {
    content: '';
    position: absolute;
    top: 25%; right: 0;
    width: 1px; height: 50%;
    background: rgba(200,164,90,.15);
}
.stat-item:last-child::after { display: none; }
.stat-item:hover { background: rgba(200,164,90,.04); }

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 40px rgba(200,164,90,.25);
}
.stat-label {
    font-size: .7rem;
    color: rgba(255,255,255,.5);
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* ============================================================
   SEKCIJE OVERVIEW
   ============================================================ */
.sections-overview { padding: 92px 0; background: var(--white); }
.sections-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.section-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: var(--transition);
}
.section-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.section-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
    background-color: var(--ink);
}
.section-card:hover .section-card-bg { transform: scale(1.04); }

.section-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,27,62,.93) 0%, rgba(204,32,39,.32) 45%, rgba(13,27,62,.04) 100%);
}

.section-card-content {
    position: relative;
    z-index: 1;
    padding: 36px;
    border-top: 2px solid var(--burgundy);
}
.section-card-content::before {
    content: '';
    display: block;
    width: 36px; height: 2px;
    background: var(--gold);
    margin-bottom: 18px;
}

.section-card-icon { width: 42px; height: 42px; color: var(--gold); margin-bottom: 12px; }
.section-card h3 { color: var(--white); margin-bottom: 10px; }
.section-card p  { color: rgba(255,255,255,.7); margin-bottom: 22px; font-size: .93rem; }

/* ============================================================
   VESTI / AKTUELNO
   ============================================================ */
.news-section {
    padding: 92px 0;
    background: var(--white);
    position: relative;
}
.news-section.folk-border-top { padding-top: 97px; }

.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-bottom: 44px; }

.news-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--cream-mid);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(204,32,39,.2); }

.news-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--ink); }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.news-card:hover .news-card-image img { transform: scale(1.05); }

.news-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.news-category {
    background: rgba(204,32,39,.10);
    color: var(--burgundy);
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: .66rem;
    border-left: 2px solid var(--burgundy);
}
.news-date { font-size: .75rem; color: var(--text-light); }

.news-card h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.4; color: var(--ink); }
.news-card h3 a { transition: var(--transition); }
.news-card h3 a:hover { color: var(--burgundy); }
.news-card p { font-size: .88rem; flex: 1; }

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--burgundy);
    font-size: .75rem;
    font-weight: 700;
    margin-top: 14px;
    transition: var(--transition);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.read-more:hover { gap: 10px; }
.read-more svg { width: 13px; height: 13px; }
.news-section-footer { text-align: center; }

/* ============================================================
   GALERIJA PREVIEW
   ============================================================ */
.gallery-section { padding: 92px 0; background: var(--ink); position: relative; }
.gallery-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
}

.gallery-section .section-header h2 { color: var(--cream); }
.gallery-section .section-header .eyebrow { color: var(--gold); }
.gallery-section .section-header p { color: rgba(255,255,255,.55); }

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 8px;
    margin-bottom: 32px;
}
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; position: relative; background: var(--ink-mid); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
    position: absolute; inset: 0;
    background: rgba(0,61,165,.5);
    opacity: 0;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay svg { width: 28px; height: 28px; stroke: var(--cream); }
.gallery-section-footer { text-align: center; }

/* ============================================================
   IZDANJA
   ============================================================ */
.publications-section { padding: 92px 0; background: var(--cream-mid); position: relative; }
.publications-section.folk-border-top { padding-top: 97px; }

.pub-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 32px; }

.pub-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--cream-mid);
}
.pub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.pub-cover { aspect-ratio: 3/4; background: var(--burgundy-dark); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; }
.pub-cover-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,.22); }
.pub-cover-placeholder svg { width: 44px; height: 44px; }

.pub-body { padding: 16px; text-align: center; }
.pub-year { font-size: .7rem; color: var(--gold-dark); font-weight: 700; margin-bottom: 5px; letter-spacing: .1em; text-transform: uppercase; }
.pub-body h4 { font-size: .95rem; margin-bottom: 12px; color: var(--ink); }
.pub-body .btn { font-size: .75rem; padding: 8px 16px; width: 100%; justify-content: center; }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
    background: var(--ink);
    padding: calc(var(--header-h) + 60px) 0 76px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 18% 60%, rgba(204,32,39,.32) 0%, transparent 60%),
        radial-gradient(ellipse 55% 70% at 82% 40%, rgba(0,61,165,.25) 0%, transparent 55%);
    pointer-events: none;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .12; }

.page-hero-content { position: relative; z-index: 1; text-align: center; }
.page-hero-content h1 { color: var(--cream); margin-bottom: 14px; }
.page-hero-content .lead { font-size: 1.08rem; color: rgba(255,255,255,.6); max-width: 540px; margin: 0 auto; font-style: italic; font-family: var(--font-display); }

.breadcrumb {
    display: flex; align-items: center; gap: 7px;
    justify-content: center;
    margin-bottom: 14px;
    font-size: .72rem;
    color: rgba(255,255,255,.38);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.breadcrumb a { color: var(--gold-dark); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb svg { width: 11px; height: 11px; }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content { padding: 80px 0; background: var(--white); }
.content-body { max-width: 780px; margin: 0 auto; }
.content-body h2 { margin: 44px 0 16px; }
.content-body h3 { margin: 32px 0 12px; color: var(--burgundy); }
.content-body p { margin-bottom: 20px; }
.content-body ul { padding-left: 8px; margin-bottom: 20px; }
.content-body ul li {
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}
.content-body ul li::before {
    content: '◆';
    position: absolute; left: 0;
    color: var(--gold-dark);
    font-size: .5rem;
    top: 7px;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding: 40px 0; max-width: 800px; margin: 0 auto; }
.timeline::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold-dark) 20%, var(--gold-dark) 80%, transparent);
    transform: translateX(-50%);
}

.timeline-item { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 0 16px; margin-bottom: 48px; align-items: start; }
.timeline-item:nth-child(odd)  .timeline-content { grid-column: 1; text-align: right; }
.timeline-item:nth-child(odd)  .timeline-dot     { grid-column: 2; }
.timeline-item:nth-child(odd)  .timeline-empty   { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-empty   { grid-column: 1; }
.timeline-item:nth-child(even) .timeline-dot     { grid-column: 2; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; }

.timeline-dot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4px; }
.timeline-dot-inner {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--burgundy);
    border: 3px solid var(--gold-dark);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 4px rgba(200,164,90,.12), var(--shadow-burg);
}
.timeline-dot-inner svg { width: 15px; height: 15px; stroke: var(--gold-light); }
.timeline-year { font-size: .68rem; font-weight: 700; color: var(--gold-dark); letter-spacing: .08em; }

.timeline-content {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cream-mid);
    border-left: 3px solid var(--burgundy);
}
.timeline-item:nth-child(odd) .timeline-content { border-left: 1px solid var(--cream-mid); border-right: 3px solid var(--burgundy); }
.timeline-content h4 { margin-bottom: 6px; font-size: .95rem; color: var(--ink); }
.timeline-content p  { font-size: .875rem; margin: 0; }

/* ============================================================
   MEMBERS
   ============================================================ */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 18px; margin: 40px 0; }
.member-card {
    text-align: center;
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 22px 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--cream-mid);
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(200,164,90,.3); }
.member-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--gold-dark); }
.member-photo-placeholder {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: var(--burgundy-dark);
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--gold-dark);
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold-light);
    font-weight: 700;
}
.member-card h4 { font-size: .93rem; margin-bottom: 3px; color: var(--ink); }
.member-card .role { font-size: .72rem; color: var(--burgundy); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }

/* ============================================================
   GALERIJA STRANICA
   ============================================================ */
.albums-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 18px; }
.album-card { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); background: var(--white); border: 1px solid var(--cream-mid); }
.album-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.album-cover { aspect-ratio: 4/3; overflow: hidden; background: var(--ink-mid); position: relative; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.album-card:hover .album-cover img { transform: scale(1.05); }
.album-count { position: absolute; bottom: 8px; right: 8px; background: rgba(13,27,62,.75); color: var(--gold-light); padding: 3px 9px; border-radius: 2px; font-size: .7rem; font-weight: 600; backdrop-filter: blur(4px); }
.album-info { padding: 16px; }
.album-info h3 { font-size: 1rem; margin-bottom: 4px; color: var(--ink); }
.album-date { font-size: .76rem; color: var(--text-light); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(13,27,62,.97); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: var(--cream);
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.16);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev  { top: 50%; left: 22px; transform: translateY(-50%); }
.lightbox-next  { top: 50%; right: 22px; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(204,32,39,.5); border-color: var(--burgundy); }
.lightbox-prev svg, .lightbox-next svg, .lightbox-close svg { width: 21px; height: 21px; stroke: currentColor; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-section { padding: 80px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
.contact-info h3 { margin-bottom: 22px; }
.contact-info-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-info-item { display: flex; gap: 13px; align-items: flex-start; }
.contact-info-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(204,32,39,.07);
    border: 1px solid rgba(204,32,39,.12);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--burgundy);
}
.contact-info-icon svg { width: 17px; height: 17px; }
.contact-info-item h5 { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-light); margin-bottom: 3px; font-family: var(--font-body); font-weight: 600; }
.contact-info-item p, .contact-info-item a { font-size: .92rem; color: var(--ink); font-weight: 500; margin: 0; }

.contact-form {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 42px;
    box-shadow: var(--shadow);
    border: 1px solid var(--cream-mid);
    border-top: 3px solid var(--burgundy);
}
.contact-form h3 { margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .72rem; font-weight: 700; color: var(--ink-mid); margin-bottom: 6px; letter-spacing: .08em; text-transform: uppercase; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .92rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(204,32,39,.10); }
.form-group textarea { min-height: 126px; resize: vertical; }
.form-submit { width: 100%; padding: 14px; font-size: .88rem; }

.flash { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; font-size: .88rem; }
.flash-success { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; border-left: 3px solid #16a34a; }
.flash-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; border-left: 3px solid #dc2626; }

.map-wrapper { border-radius: var(--radius-sm); overflow: hidden; height: 260px; background: var(--cream-mid); margin-top: 24px; border: 1px solid var(--cream-dark); }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; filter: sepia(.3) contrast(.88); }

/* ============================================================
   NEWS SINGLE
   ============================================================ */
.article-content { max-width: 760px; margin: 0 auto; padding: 80px 0; }
.article-header { margin-bottom: 40px; }
.article-header h1 { margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--cream-mid); }
.article-cover { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/7; margin-bottom: 40px; border: 1px solid var(--cream-mid); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body p { margin-bottom: 22px; font-size: 1.03rem; line-height: 1.9; }
.article-body h2 { margin: 40px 0 14px; }
.article-body h3 { margin: 30px 0 10px; color: var(--burgundy); }
.article-body blockquote {
    border-left: 4px solid var(--burgundy);
    padding: 14px 22px; margin: 30px 0;
    background: var(--cream);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-style: italic;
    color: var(--ink);
}

/* ============================================================
   CTA BOX
   ============================================================ */
.cta-box {
    background: var(--burgundy);
    border-radius: var(--radius-sm);
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(200,164,90,.1) 0%, transparent 70%);
    pointer-events: none;
}
.cta-box::after {
    content: '';
    position: absolute; inset: 8px;
    border: 1px solid rgba(200,164,90,.18);
    border-radius: 2px;
    pointer-events: none;
}
.cta-box h3, .cta-box h2 { color: var(--cream); margin-bottom: 10px; position: relative; z-index: 1; }
.cta-box p  { color: rgba(255,255,255,.65); margin-bottom: 24px; max-width: 440px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.cta-box .btn { position: relative; z-index: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); }
.footer-top {
    padding: 68px 0 52px;
    border-top: 5px solid var(--burgundy-dark);
    box-shadow: inset 0 3px 0 var(--gold-dark);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }

.footer-tagline { font-size: .86rem; color: rgba(255,255,255,.4); margin: 14px 0 20px; line-height: 1.75; font-style: italic; }

.social-links { display: flex; gap: 9px; }
.social-links a {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    color: rgba(255,255,255,.45);
}
.social-links a:hover { background: var(--burgundy-dark); border-color: var(--burgundy); color: var(--cream); }
.social-links svg { width: 15px; height: 15px; }

.footer-col h4 {
    font-family: var(--font-body);
    font-size: .68rem; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(200,164,90,.12);
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.42); font-size: .86rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); padding-left: 4px; }

.footer-contact-list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.42); font-size: .86rem; margin-bottom: 11px; }
.footer-contact-list svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 3px; stroke: var(--gold-dark); }
.footer-contact-list a { color: rgba(255,255,255,.42); transition: var(--transition); }
.footer-contact-list a:hover { color: var(--gold-light); }

.footer-logo .logo-name { color: rgba(255,255,255,.90); }
.footer-logo .logo-tagline { color: var(--gold); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 20px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.28); margin: 0; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
    position: fixed; bottom: 26px; right: 26px;
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--burgundy);
    color: var(--gold-light);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-burg);
    transition: var(--transition);
    opacity: 0; transform: translateY(12px);
    pointer-events: none; z-index: 900;
    border: 1px solid var(--gold-dark);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--burgundy-dark); transform: translateY(-2px); }
.scroll-top svg { width: 17px; height: 17px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   TABS
   ============================================================ */
.tab-nav { display: flex; gap: 0; border-bottom: 2px solid var(--cream-mid); margin-bottom: 32px; }
.tab-nav [data-tab] {
    padding: 11px 22px;
    font-size: .75rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-light); cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}
.tab-nav [data-tab]:hover { color: var(--burgundy); }
.tab-nav [data-tab].active { color: var(--burgundy); border-bottom-color: var(--burgundy); }
[data-panel] { display: none; }
[data-panel].active { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .pub-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 900px) {
    :root { --header-h: 66px; }
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: 0;
        background: var(--white);
        padding: calc(var(--header-h) + 20px) 20px 40px;
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
        display: flex; flex-direction: column;
        border-left: 4px solid var(--burgundy);
        box-shadow: -4px 0 40px rgba(13,27,62,.12);
    }
    .main-nav.open { transform: translateX(0); }
    .nav-list { flex-direction: column; gap: 1px; align-items: stretch; }
    .nav-link { padding: 13px 14px; font-size: .85rem; }
    .dropdown {
        position: static; transform: none;
        opacity: 1; visibility: visible;
        box-shadow: none;
        background: var(--cream);
        border-top: none;
        border-left: 2px solid var(--burgundy);
        border-radius: 0; padding: 4px 0;
        display: none;
        margin: 4px 0 4px 18px;
    }
    .dropdown.open { display: block; }
    .dropdown li a { color: var(--text-muted); font-size: .78rem; padding: 9px 14px; }
    .dropdown li a:hover { background: var(--cream-mid); color: var(--burgundy); padding-left: 20px; }
    .about-strip-inner { grid-template-columns: 1fr; gap: 48px; }
    .sections-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 26px 18px; }
    .pub-grid { grid-template-columns: repeat(2,1fr); }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .gallery-masonry { grid-template-columns: repeat(3,1fr); grid-template-rows: auto; }
    .gallery-item:first-child { grid-column: span 2; grid-row: 1; }
    .cta-box { padding: 32px 18px; }
}

@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; }
    .pub-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-item::after { display: none; }
    .gallery-masonry { grid-template-columns: 1fr 1fr; }
    .gallery-item:first-child { grid-column: 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .hero-year { display: none; }
    .about-year-badge { width: 78px; height: 78px; bottom: -12px; right: -12px; }
    .about-year-badge .year-big { font-size: 1.3rem; }
    .timeline::before { left: 19px; }
    .timeline-item { grid-template-columns: 42px 1fr; gap: 0 12px; }
    .timeline-item:nth-child(odd)  .timeline-content,
    .timeline-item:nth-child(even) .timeline-content { grid-column: 2; text-align: left; border-left: 3px solid var(--burgundy); border-right: none; }
    .timeline-item:nth-child(odd)  .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot { grid-column: 1; grid-row: 1; }
    .timeline-item:nth-child(odd)  .timeline-empty,
    .timeline-item:nth-child(even) .timeline-empty { display: none; }
}
