/* ==========================================================================
   OKKS – javni sajt
   Obrtnička komora Kantona Sarajevo
   ========================================================================== */

:root {
    --navy-900: #081a3d;
    --navy-800: #0b2452;
    --navy: #0f2f6b;
    --navy-600: #1d4391;
    --navy-100: #e6ecf7;
    --navy-50: #f2f5fb;
    --gold: #f5b700;
    --gold-600: #d99e00;
    --gold-100: #fff4d1;
    --ink: #162033;
    --ink-2: #334058;
    --muted: #5b6b86;
    --line: #e3e8f1;
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 47, 107, .06), 0 2px 8px rgba(15, 47, 107, .05);
    --shadow: 0 10px 30px -12px rgba(15, 47, 107, .25);
    --shadow-lg: 0 24px 50px -20px rgba(8, 26, 61, .35);
    --container: 1240px;
    --header-h: 76px;
    --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (max-width: 575px) { .container { padding: 0 16px; } }

/* ----- SPAPP ----- */
main#spapp > section { display: none; min-height: 50vh; }

/* ==========================================================================
   Buttons, chips, badges
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
    font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1;
    transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: #ffc61a; color: var(--navy-900); box-shadow: 0 8px 20px -8px rgba(245, 183, 0, .7); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-600); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }

.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .7rem; border-radius: 999px;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: var(--navy-100); color: var(--navy);
}
.chip-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--font-head); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold-600);
}
.eyebrow::before { content: ''; width: 26px; height: 3px; border-radius: 3px; background: var(--gold); }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar { background: var(--navy-900); color: #b9c6e0; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: #dbe3f3; }
.topbar a:hover { color: var(--gold); }
.topbar-list { display: flex; gap: 1.4rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.topbar-list li { display: inline-flex; align-items: center; gap: .45rem; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }
@media (max-width: 767px) { .topbar .hide-sm { display: none !important; } }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(8, 26, 61, .35); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: .02em; color: var(--navy); }
.brand-text span { font-size: .72rem; font-weight: 600; color: var(--muted); margin-top: 3px; letter-spacing: .01em; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.main-nav li { position: relative; }
.main-nav > ul > li > a, .main-nav > ul > li > button {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .6rem .7rem; border-radius: 10px; border: 0; background: none; white-space: nowrap;
    font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink-2);
    transition: color .15s, background .15s;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > button:hover,
.main-nav > ul > li:focus-within > button, .main-nav > ul > li.active > a, .main-nav > ul > li.active > button {
    color: var(--navy); background: var(--navy-50);
}
.main-nav .caret { width: 14px; height: 14px; transition: transform .2s; }
.main-nav li:hover > button .caret { transform: rotate(180deg); }

.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
    margin: 0; padding: .5rem; list-style: none;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.dropdown::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.main-nav li:hover > .dropdown, .main-nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .6rem .8rem; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--ink-2);
}
.dropdown a::after { content: '→'; opacity: 0; transform: translateX(-4px); transition: .15s; color: var(--gold-600); }
.dropdown a:hover { background: var(--navy-50); color: var(--navy); }
.dropdown a:hover::after { opacity: 1; transform: none; }

.header-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.icon-btn {
    width: 42px; height: 42px; display: inline-grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
    transition: .15s;
}
.icon-btn:hover { border-color: var(--navy); color: var(--navy); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }

@media (max-width: 1240px) {
    .main-nav, .header-actions .btn { display: none; }
    .menu-toggle { display: inline-grid; }
    .header-actions { margin-left: auto; }
}
@media (max-width: 420px) {
    .brand-text span { display: none; }
    .brand img { width: 40px; height: 40px; }
}

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(8, 26, 61, .5); opacity: 0; visibility: hidden; transition: .25s; z-index: 90; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); z-index: 100;
    background: #fff; transform: translateX(100%); transition: transform .3s var(--ease);
    display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-body { overflow-y: auto; padding: .75rem; flex: 1; }
.drawer-nav, .drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav > li { border-bottom: 1px solid var(--line); }
.drawer-nav a, .drawer-nav summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: .85rem .6rem; font-family: var(--font-head); font-weight: 700; color: var(--ink); cursor: pointer; list-style: none;
}
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav details[open] summary .caret { transform: rotate(180deg); }
.drawer-nav .caret { width: 16px; height: 16px; transition: .2s; }
.drawer-nav ul a { font-family: var(--font-body); font-weight: 500; color: var(--ink-2); padding: .55rem .6rem .55rem 1.2rem; }
.drawer-nav ul { padding-bottom: .5rem; }
.drawer-foot { padding: 1rem 1.2rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); display: grid; gap: .4rem; }

/* Search overlay */
.search-overlay {
    position: fixed; inset: 0; z-index: 120; background: rgba(8, 26, 61, .92);
    display: grid; place-items: start center; padding-top: 18vh;
    opacity: 0; visibility: hidden; transition: .2s;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay form { width: min(720px, 92vw); position: relative; }
.search-overlay input {
    width: 100%; padding: 1.2rem 4rem 1.2rem 1.5rem; border-radius: 999px; border: 0;
    font-size: 1.2rem; font-family: var(--font-head); outline: none;
}
.search-overlay button[type=submit] { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--gold); display: grid; place-items: center; }
.search-overlay .close { position: absolute; top: 24px; right: 24px; background: none; border: 0; color: #fff; }
.search-overlay .hint { color: #9fb0d3; text-align: center; margin-top: 1rem; font-size: .9rem; }

/* ==========================================================================
   Hero (naslovna)
   ========================================================================== */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(245, 183, 0, .18), transparent 60%),
        radial-gradient(900px 600px at -10% 120%, rgba(29, 67, 145, .9), transparent 60%),
        linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 60%, var(--navy-800) 100%);
}
.hero::before {
    content: ''; position: absolute; inset: 0; opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M0 24h48M24 0v48' stroke='%23fff' stroke-width='.6'/%3E%3C/svg%3E");
}
.hero-orbit {
    position: absolute; right: -180px; top: 50%; width: 760px; height: 300px; transform: translateY(-30%) rotate(-12deg);
    border: 3px solid rgba(245, 183, 0, .35); border-radius: 50%; pointer-events: none;
}
.hero-orbit::after { content: ''; position: absolute; inset: 30px 60px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; margin: 1rem 0 1.1rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 1.12rem; color: #c9d6ee; max-width: 560px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-card {
    position: relative; display: block; border-radius: 22px; overflow: hidden; color: #fff;
    aspect-ratio: 4 / 3.1; background: var(--navy-800); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6);
    border: 1px solid rgba(255,255,255,.1);
}
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hero-card:hover img { transform: scale(1.04); }
.hero-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,26,61,0) 35%, rgba(8,26,61,.92) 100%); }
.hero-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; z-index: 1; }
.hero-card-body .chip { background: var(--gold); color: var(--navy-900); }
.hero-card h2 { color: #fff; font-size: clamp(1.15rem, 2vw, 1.5rem); margin: .7rem 0 .4rem; }
.hero-card time { font-size: .85rem; color: #c9d6ee; }
.hero-card:hover { color: #fff; }

@media (max-width: 991px) {
    .hero .container { grid-template-columns: 1fr; gap: 2.2rem; padding-top: 3rem; padding-bottom: 3rem; }
    .hero-orbit { display: none; }
}

/* Brzi linkovi ispod heroja */
.quick-links { position: relative; z-index: 2; margin-top: -2.2rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.quick-card {
    display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.25rem;
    background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow); color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.quick-card:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--ink); box-shadow: var(--shadow-lg); }
.quick-icon { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); transition: .2s; }
.quick-card:hover .quick-icon { background: var(--gold); color: var(--navy-900); }
.quick-icon svg { width: 24px; height: 24px; }
.quick-card strong { display: block; font-family: var(--font-head); font-size: .98rem; line-height: 1.25; }
.quick-card span { font-size: .82rem; color: var(--muted); }
@media (max-width: 991px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .quick-grid { grid-template-columns: 1fr; } .quick-links { margin-top: -1.5rem; } }

/* ==========================================================================
   Sekcije
   ========================================================================== */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; margin: .55rem 0 0; }
.section-head p { color: var(--muted); max-width: 560px; margin: .5rem 0 0; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.link-more svg { width: 18px; height: 18px; transition: transform .2s; }
.link-more:hover svg { transform: translateX(3px); }
@media (max-width: 767px) { .section { padding: 3.5rem 0; } }

/* ==========================================================================
   Kartice vijesti
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.news-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .news-grid.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) { .news-grid, .news-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid, .news-grid.cols-4 { grid-template-columns: 1fr; } }

.card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--navy-50); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .chip { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.95); box-shadow: var(--shadow-sm); }
.card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.2rem 1.25rem 1.35rem; flex: 1; }
.card-meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); }
.card-meta svg { width: 14px; height: 14px; }
.card h3 { font-size: 1.06rem; font-weight: 700; line-height: 1.35; margin: 0; }
.card h3 a { color: var(--ink); }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--navy); }
.card p { font-size: .92rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Placeholder kad vijest nema sliku */
.ph {
    position: absolute; inset: 0; display: grid; place-items: center;
    background:
        radial-gradient(400px 200px at 100% 0%, rgba(245,183,0,.25), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
}
.ph img { width: 64px !important; height: 64px !important; opacity: .9; object-fit: contain !important; transform: none !important; }

/* Istaknuta (velika) kartica */
.news-lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.6rem; margin-bottom: 1.6rem; }
.card-xl { flex-direction: row; }
.card-xl .card-media { aspect-ratio: auto; flex: 1.2; min-height: 340px; }
.card-xl .card-body { flex: 1; padding: 2rem; justify-content: center; }
.card-xl h3 { font-size: 1.5rem; }
.news-stack { display: grid; gap: 1rem; }
.card-row { flex-direction: row; align-items: stretch; }
.card-row .card-media { width: 150px; flex: none; aspect-ratio: auto; }
.card-row .card-body { padding: .9rem 1rem; gap: .35rem; justify-content: center; }
.card-row h3 { font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 991px) {
    .news-lead { grid-template-columns: 1fr; }
    .card-xl { flex-direction: column; }
    .card-xl .card-media { min-height: 0; aspect-ratio: 16/9; }
    .card-xl .card-body { padding: 1.4rem; }
}
@media (max-width: 480px) { .card-row .card-media { width: 110px; } }

/* Lista obavještenja */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 991px) { .split { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.panel-head h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.3rem; margin: 0; }
.panel-head h3 .quick-icon { width: 40px; height: 40px; }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li + li { border-top: 1px dashed var(--line); }
.notice-list a { display: grid; grid-template-columns: 58px 1fr; gap: 1rem; align-items: center; padding: .9rem 0; color: var(--ink); }
.notice-list a:hover strong { color: var(--navy); }
.date-box { text-align: center; border-radius: 12px; background: var(--navy-50); padding: .45rem 0; line-height: 1; }
.date-box b { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); }
.date-box small { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.notice-list strong { font-weight: 600; font-size: .95rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }

/* Usluge */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 991px) { .services { grid-template-columns: 1fr; } }
.service {
    position: relative; padding: 2rem; border-radius: 18px; background: #fff; border: 1px solid var(--line);
    color: var(--ink); overflow: hidden; transition: .25s var(--ease);
}
.service::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--gold-100); transition: .3s var(--ease); }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.service:hover::after { transform: scale(1.4); }
.service > * { position: relative; z-index: 1; }
.service .quick-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--navy); color: #fff; margin-bottom: 1.3rem; }
.service h3 { font-size: 1.25rem; }
.service p { color: var(--muted); font-size: .95rem; }
.service .link-more { margin-top: .5rem; }

/* Partneri */
.partners-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1rem; align-items: center; }
.partner { display: grid; place-items: center; height: 96px; padding: .6rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); transition: .2s; }
.partner img { max-height: 76px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .25s; mix-blend-mode: multiply; }
.partner:hover img { filter: none; opacity: 1; }
@media (max-width: 1080px) { .partners-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .partners-strip { grid-template-columns: repeat(2, 1fr); } }

/* CTA band */
.cta-band {
    position: relative; overflow: hidden; border-radius: 24px; padding: 3rem;
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-600) 100%); color: #fff;
    display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.cta-band::before { content: ''; position: absolute; width: 520px; height: 220px; right: -120px; top: -60px; border: 3px solid rgba(245,183,0,.45); border-radius: 50%; transform: rotate(-12deg); }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .4rem; }
.cta-band p { color: #c9d6ee; margin: 0; max-width: 620px; }
.cta-band .hero-cta { position: relative; }
@media (max-width: 767px) { .cta-band { grid-template-columns: 1fr; padding: 2rem 1.5rem; } }

/* ==========================================================================
   Page header (podstranice)
   ========================================================================== */
.page-hero {
    position: relative; overflow: hidden; color: #fff; padding: 3.2rem 0 3.4rem;
    background:
        radial-gradient(700px 300px at 90% 0%, rgba(245,183,0,.16), transparent 60%),
        linear-gradient(135deg, var(--navy-900), var(--navy));
}
.page-hero::after { content: ''; position: absolute; width: 520px; height: 200px; right: -140px; bottom: -110px; border: 3px solid rgba(245,183,0,.35); border-radius: 50%; transform: rotate(-10deg); }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 800; margin: .7rem 0 0; max-width: 900px; }
.page-hero p { color: #c9d6ee; margin: .8rem 0 0; max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; color: #9fb0d3; list-style: none; margin: 0; padding: 0; }
.crumbs a { color: #dbe3f3; }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: '/'; margin-right: .5rem; opacity: .5; }

/* ==========================================================================
   Lista vijesti – filteri, paginacija
   ========================================================================== */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chips a {
    padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
    font-size: .88rem; font-weight: 600; color: var(--ink-2); transition: .15s;
}
.filter-chips a:hover { border-color: var(--navy); color: var(--navy); }
.filter-chips a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-chips a small { opacity: .6; margin-left: .25rem; }
.search-inline { position: relative; min-width: 260px; flex: 0 1 320px; }
.search-inline input { width: 100%; padding: .75rem 1rem .75rem 2.6rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.search-inline input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--navy-100); }
.search-inline svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
@media (max-width: 600px) { .search-inline { flex: 1 1 100%; } }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 3rem; }
.pagination a, .pagination span {
    min-width: 44px; height: 44px; padding: 0 .8rem; display: inline-grid; place-items: center;
    border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--ink-2);
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .gap { border: 0; background: none; min-width: 20px; }

.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty svg { width: 54px; height: 54px; color: var(--line); margin: 0 auto 1rem; }

/* Skeleton */
.skeleton { position: relative; overflow: hidden; background: #eef2f8; border-radius: 10px; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { height: 360px; border-radius: var(--radius); }

/* ==========================================================================
   Članak / stranica
   ========================================================================== */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; align-items: start; }
@media (max-width: 1080px) { .article-layout { grid-template-columns: 1fr; gap: 2.5rem; } }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; color: #c9d6ee; font-size: .9rem; margin-top: 1.1rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta svg { width: 16px; height: 16px; opacity: .8; }
.article-meta .chip { background: var(--gold); color: var(--navy-900); }
.article-cover { border-radius: 18px; overflow: hidden; margin: -5.5rem 0 2.2rem; position: relative; z-index: 2; box-shadow: var(--shadow-lg); background: #fff; }
.article-cover img { width: 100%; max-height: 620px; object-fit: contain; background: var(--navy-50); }
.has-cover .page-hero { padding-bottom: 7.5rem; }

.prose { font-size: 1.06rem; line-height: 1.8; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 2rem 0 .8rem; }
.prose h2 { font-size: 1.55rem; }
.prose h3 { font-size: 1.25rem; }
.prose p { margin: 0 0 1.15em; }
.prose a { color: var(--navy-600); text-decoration: underline; text-decoration-color: rgba(29,67,145,.3); text-underline-offset: 3px; font-weight: 500; }
.prose a:hover { text-decoration-color: var(--gold); }
.prose a[href$=".pdf"], .prose a[href$=".doc"], .prose a[href$=".docx"], .prose a[href$=".xls"], .prose a[href$=".xlsx"] {
    display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; margin: .2rem 0;
    border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); text-decoration: none; font-weight: 600; color: var(--navy);
    word-break: break-word;
}
.prose a[href$=".pdf"]::before, .prose a[href$=".doc"]::before, .prose a[href$=".docx"]::before, .prose a[href$=".xls"]::before, .prose a[href$=".xlsx"]::before {
    content: ''; width: 18px; height: 18px; flex: none;
    background: var(--gold-600);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.prose a[href$=".pdf"]:hover { border-color: var(--gold); background: var(--gold-100); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--gold-600); }
.prose img { border-radius: 12px; margin: 1.5rem auto; height: auto; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--gold); background: var(--bg-soft); border-radius: 0 12px 12px 0; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.prose th, .prose thead td { background: var(--navy-50); font-weight: 700; color: var(--ink); }
.prose iframe { max-width: 100%; border: 0; border-radius: 12px; }
.prose .blocks-gallery-grid, .prose .wp-block-gallery ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.prose .blocks-gallery-grid img { margin: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.prose .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.prose .wp-block-button__link { display: inline-block; padding: .7rem 1.3rem; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; }
.prose .okks-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; margin: 1.5rem 0; }
.prose .okks-gallery a { display: block; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 12px; overflow: hidden; }
.prose .okks-gallery a::before { display: none !important; }
.prose .okks-gallery img { margin: 0; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s var(--ease); }
.prose .okks-gallery a:hover img { transform: scale(1.05); }
.prose .okks-embed { position: relative; aspect-ratio: 16/9; margin: 1.5rem 0; }
.prose .okks-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose .okks-link-card a {
    display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 4px solid var(--gold);
    border-radius: 12px; background: var(--bg-soft); text-decoration: none; font-size: .92rem; word-break: break-all;
}
.prose .okks-link-card span { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; word-break: normal; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: 1.4rem 0; margin-top: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share strong { font-family: var(--font-head); margin-right: .4rem; }
.share a, .share button { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: .15s; }
.share a:hover, .share button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.share svg { width: 18px; height: 18px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.post-nav a { display: block; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); transition: .2s; }
.post-nav a:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.post-nav small { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-600); margin-bottom: .3rem; }
.post-nav strong { font-family: var(--font-head); font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; } }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.4rem; }
.side-box { border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; background: #fff; }
.side-box h4 { font-size: 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.side-box h4::before { content: ''; width: 4px; height: 18px; border-radius: 4px; background: var(--gold); }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.side-nav a { display: block; padding: .6rem .8rem; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.side-nav a:hover { background: var(--navy-50); color: var(--navy); }
.side-nav a.active { background: var(--navy); color: #fff; }
.side-contact { background: linear-gradient(135deg, var(--navy), var(--navy-600)); color: #dbe3f3; border: 0; }
.side-contact h4 { color: #fff; }
.side-contact a { color: #fff; font-weight: 600; }
.side-contact p { margin: 0 0 .6rem; font-size: .92rem; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.mini-list a { display: grid; grid-template-columns: 72px 1fr; gap: .8rem; align-items: center; color: var(--ink); }
.mini-list .thumb { position: relative; width: 72px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--navy-50); }
.mini-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-list .ph img { width: 28px !important; height: 28px !important; }
.mini-list strong { font-size: .88rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-list small { color: var(--muted); font-size: .76rem; }
.mini-list a:hover strong { color: var(--navy); }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 991px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; padding: 1.3rem; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.contact-card .quick-icon { background: var(--gold-100); color: var(--gold-600); }
.contact-card h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; }
.contact-card p { margin: 0; font-weight: 600; color: var(--ink); }
.contact-card a { color: var(--ink); }
.contact-card a:hover { color: var(--navy); }
.form-card { padding: 2.2rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 1.4rem; } }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink-2); }
.field input, .field textarea {
    width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--bg-soft);
    transition: .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px var(--navy-100); }
.field textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #e7f7ee; color: #146c43; }
.form-status.err { display: block; background: #fdecee; color: #b42318; }
.map { margin-top: 2rem; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); height: 380px; background: var(--navy-50); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: #a9b7d3; margin-top: 0; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; left: -200px; top: -120px; width: 620px; height: 260px; border: 3px solid rgba(245,183,0,.18); border-radius: 50%; transform: rotate(-10deg); }
.footer-main { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 4.5rem 0 3rem; }
@media (max-width: 991px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer-main { grid-template-columns: 1fr; padding-top: 3rem; } }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text span { color: #a9b7d3; }
.site-footer h5 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; letter-spacing: .02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #cdd7ea; }
.site-footer a:hover { color: var(--gold); }
.footer-about { font-size: .93rem; margin: 1.2rem 0 1.4rem; max-width: 360px; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: .15s; }
.socials a:hover { background: var(--gold); color: var(--navy-900); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
    border: 0; background: var(--gold); color: var(--navy-900); display: grid; place-items: center; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* Page loader bar */
.route-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold); z-index: 200; transition: width .3s var(--ease), opacity .3s; }

/* Reveal animacije */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(8,26,61,.94); display: none; place-items: center; padding: 2rem; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 22px; height: 22px; }

@media print {
    .topbar, .site-header, .site-footer, .sidebar, .share, .post-nav, .to-top { display: none !important; }
    .page-hero { background: none; color: #000; padding: 0; }
    .page-hero h1 { color: #000; }
}
.topbar-list li > span { display: inline-flex; align-items: center; gap: .45rem; }

/* ==========================================================================
   Mapa sajta
   ========================================================================== */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; margin-bottom: 3rem; }
.sitemap-col { border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; background: #fff; }
.sitemap-col h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.sitemap-col h3::before { content: ''; width: 4px; height: 18px; border-radius: 4px; background: var(--gold); }
.sitemap-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.sitemap-col a { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem .5rem; border-radius: 8px; color: var(--ink-2); font-size: .94rem; }
.sitemap-col a:hover { background: var(--navy-50); color: var(--navy); }
.sitemap-col a small { color: var(--muted); }
.sitemap-archive details { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: .7rem; overflow: hidden; }
.sitemap-archive summary { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.3rem; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; }
.sitemap-archive summary::-webkit-details-marker { display: none; }
.sitemap-archive summary span { font-family: var(--font-body); font-weight: 600; font-size: .82rem; color: var(--muted); background: var(--navy-50); padding: .2rem .6rem; border-radius: 999px; }
.sitemap-archive details[open] summary { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.sitemap-archive ol { list-style: none; margin: 0; padding: .6rem 1.3rem 1rem; columns: 2; column-gap: 2rem; }
.sitemap-archive li { break-inside: avoid; display: grid; grid-template-columns: 92px 1fr; gap: .6rem; padding: .4rem 0; font-size: .92rem; border-bottom: 1px dashed var(--line); }
.sitemap-archive li time { color: var(--muted); font-size: .82rem; }
.sitemap-archive li a { color: var(--ink-2); }
.sitemap-archive li a:hover { color: var(--navy); }
@media (max-width: 767px) { .sitemap-archive ol { columns: 1; } }
