:root {
    --navy: #0b1f33;
    --navy-2: #102c48;
    --teal: #0b8585;
    --teal-dark: #076868;
    --sky: #65c9d0;
    --ink: #162433;
    --muted: #637282;
    --line: #dfe7eb;
    --mist: #f3f7f9;
    --white: #fff;
    --shadow: 0 18px 50px rgba(11, 31, 51, .10);
    --radius: 22px;
    --radius-sm: 14px;
    --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--navy); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
    clip: auto !important; width: auto; height: auto; margin: 0;
    top: 8px; left: 8px; z-index: 99999; padding: 12px 16px;
    color: var(--white); background: var(--navy); border-radius: 8px;
}
:focus-visible { outline: 3px solid #f1b83a; outline-offset: 4px; }

.site-shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.site-shell--narrow { width: min(calc(100% - 40px), 780px); }

.topbar { background: var(--navy); color: #dfeaf3; font-size: .84rem; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__links { display: flex; gap: 18px; }
.topbar a { color: #dfeaf3; text-decoration: none; }
.topbar a:hover { color: var(--white); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(11,31,51,.08); backdrop-filter: blur(14px); }
.site-header__inner { min-height: 86px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand__fallback { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand__mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px 14px 14px 4px; background: linear-gradient(145deg, var(--teal), var(--sky)); color: var(--white); font-size: 1.8rem; font-weight: 900; letter-spacing: -.06em; box-shadow: 0 9px 24px rgba(11,133,133,.22); }
.brand__mark--small { width: 38px; height: 38px; border-radius: 11px 11px 11px 3px; font-size: 1.35rem; }
.brand__text { display: grid; line-height: 1; }
.brand__text strong { font-size: 1.4rem; letter-spacing: .05em; }
.brand__text small { margin-top: 7px; font-size: .62rem; letter-spacing: .13em; color: var(--muted); font-weight: 700; }
.brand__custom-logo .custom-logo-link { display: block; }
.brand__custom-logo img { max-height: 62px; width: auto; }

.primary-nav .menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.primary-nav .menu-item > a { display: block; padding: 12px 10px; border-radius: 10px; color: var(--navy); text-decoration: none; font-size: .92rem; font-weight: 700; }
.primary-nav .menu-item > a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { background: var(--mist); color: var(--teal-dark); }
.menu-toggle { display: none; align-items: center; gap: 9px; border: 0; border-radius: 12px; background: var(--navy); color: var(--white); padding: 10px 13px; font-weight: 800; }
.menu-toggle__icon { width: 20px; display: grid; gap: 4px; }
.menu-toggle__icon span { height: 2px; background: currentColor; border-radius: 2px; }

.hero { overflow: hidden; position: relative; background: linear-gradient(115deg, #071a2b 0%, var(--navy) 54%, #0e4851 100%); color: var(--white); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -210px; top: -220px; background: rgba(101,201,208,.18); filter: blur(2px); }
.hero__grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 54px; align-items: center; min-height: 610px; padding-block: 68px; }
.hero__intro h1 { max-width: 760px; margin: 13px 0 18px; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.055em; }
.hero__intro p { max-width: 620px; margin: 0; color: #dce8ef; font-size: 1.12rem; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.eyebrow { display: inline-block; color: var(--teal-dark); font-size: .74rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow--light { color: #8de0e4; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; background: var(--teal); color: var(--white); font-weight: 800; text-decoration: none; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.button:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-1px); }
.button--ghost { background: transparent; border-color: rgba(255,255,255,.42); }
.button--ghost:hover { background: rgba(255,255,255,.1); }
.button--light { background: var(--white); color: var(--navy); }
.button--light:hover { background: #e9f6f6; color: var(--navy); }
.button--outline-light { background: transparent; border-color: rgba(255,255,255,.38); color: var(--white); }

.hero-story__media { position: relative; display: block; min-height: 440px; overflow: hidden; border-radius: 28px 28px 28px 8px; box-shadow: 0 28px 60px rgba(0,0,0,.28); color: var(--white); text-decoration: none; background: #122f45; }
.hero-story__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-story__fallback { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(145deg, #17495d, #0a7477); }
.hero-story__fallback span { font-size: 14rem; line-height: 1; font-weight: 950; color: rgba(255,255,255,.10); transform: rotate(-8deg); }
.hero-story__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(4,18,31,.88) 100%); }
.hero-story__content { position: absolute; left: 28px; right: 28px; bottom: 27px; display: grid; gap: 8px; }
.hero-story__content strong { font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.12; }
.hero-story__content small { color: #dce8ef; }

.content-section { padding: 76px 0; }
.content-section--tint { background: var(--mist); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.section-heading h2, .archive-header h1 { margin: 5px 0 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.035em; }
.text-link { color: var(--teal-dark); font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--navy); text-decoration: underline; }

.story-grid { display: grid; gap: 24px; }
.story-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(11,31,51,.04); transition: transform .2s ease, box-shadow .2s ease; }
.story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.story-card__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--mist); }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.story-card:hover .story-card__media img { transform: scale(1.025); }
.story-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #dceef0, #e9f1f5); }
.story-card__placeholder span { font-size: 5rem; font-weight: 950; color: rgba(11,133,133,.18); }
.story-card__body { padding: 22px; }
.story-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; color: var(--muted); font-size: .79rem; font-weight: 650; }
.story-card__meta a { color: var(--teal-dark); text-decoration: none; }
.story-card__title { margin: 0 0 10px; color: var(--navy); font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; }
.story-card__title a { color: inherit; text-decoration: none; }
.story-card__title a:hover { color: var(--teal-dark); }
.story-card__body p { margin: 0 0 15px; color: var(--muted); }

.empty-card { display: flex; gap: 18px; align-items: center; padding: 25px; border: 1px dashed #b8cbd3; border-radius: var(--radius); background: linear-gradient(135deg, #f8fbfc, #eef8f8); }
.empty-card__mark { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: var(--teal); color: var(--white); font-size: 1.6rem; font-weight: 900; }
.empty-card h3 { margin: 0 0 4px; color: var(--navy); }
.empty-card p { margin: 0; color: var(--muted); }

.podcast-section { padding: 78px 0; background: linear-gradient(120deg, #071a2b, #0d3148); color: var(--white); }
.podcast-section__grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 65px; align-items: center; }
.podcast-intro h2 { margin: 9px 0 17px; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.podcast-intro p { color: #d6e4ec; }
.podcast-list { display: grid; gap: 12px; }
.podcast-item, .podcast-empty { display: flex; align-items: center; gap: 17px; min-height: 88px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.06); }
.podcast-item__play { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 46px; border-radius: 50%; background: var(--teal); font-size: .85rem; }
.podcast-item span, .podcast-empty span { color: #a9c1d0; font-size: .8rem; }
.podcast-item h3 { margin: 3px 0 0; font-size: 1.08rem; }
.podcast-item a { color: var(--white); text-decoration: none; }
.podcast-empty { display: grid; }

.collab-section { padding: 0 0 80px; }
.collab-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px; border-radius: 28px 28px 28px 8px; background: linear-gradient(110deg, var(--teal-dark), #0a3f55); color: var(--white); box-shadow: var(--shadow); }
.collab-card h2 { margin: 7px 0 8px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.collab-card p { max-width: 720px; margin: 0; color: #d9eeef; }

.site-footer { padding: 64px 0 26px; background: #061522; color: #d4e0e8; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 55px; }
.footer-brand__line { display: flex; align-items: center; gap: 12px; color: var(--white); font-size: 1.35rem; letter-spacing: .06em; }
.footer-brand p { max-width: 460px; color: #aebfca; }
.footer-title { margin: 0 0 13px; color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-menu a, .site-footer a { color: #d4e0e8; }
.footer-menu a:hover, .site-footer a:hover { color: var(--white); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #8fa5b3; font-size: .82rem; }

.archive-header { padding: 10px 0 30px; }
.archive-description { max-width: 720px; color: var(--muted); }
.navigation.pagination { margin-top: 35px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; min-width: 42px; min-height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px; text-decoration: none; }
.page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }

.article-shell { padding: 70px 0 80px; }
.single-article__header h1 { margin: 10px 0 20px; color: var(--navy); font-size: clamp(2.4rem, 6vw, 4.7rem); line-height: 1.03; letter-spacing: -.055em; }
.single-article__lead { margin: 0; color: var(--muted); font-size: 1.25rem; }
.single-article__image { margin-top: 38px; }
.single-article__image img { width: 100%; max-height: 700px; object-fit: cover; border-radius: 26px 26px 26px 8px; }
.entry-content { padding-top: 42px; font-size: 1.08rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--navy); line-height: 1.18; margin-top: 1.8em; }
.entry-content a { font-weight: 650; }
.entry-content blockquote { margin: 2em 0; padding: 8px 0 8px 24px; border-left: 5px solid var(--teal); color: #354b5b; font-size: 1.15rem; }
.entry-content pre { overflow: auto; padding: 18px; border-radius: 12px; background: #071a2b; color: #e8f1f4; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--line); text-align: left; }
.single-article__footer { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.tag-list a { display: inline-block; margin: 4px; padding: 5px 9px; border-radius: 999px; background: var(--mist); text-decoration: none; }
.post-navigation { margin-top: 35px; }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { font-weight: 800; text-decoration: none; }
.comments-area { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.comment-list { padding-left: 24px; }
.comment-body { margin-bottom: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.comment-form input:not([type="submit"]), .comment-form textarea, .search-form input[type="search"] { width: 100%; padding: 12px 14px; border: 1px solid #b9c8cf; border-radius: 10px; }
.comment-form .submit, .search-form input[type="submit"] { border: 0; border-radius: 10px; padding: 11px 16px; background: var(--teal); color: var(--white); font-weight: 800; }
.search-form { display: flex; gap: 8px; max-width: 620px; margin: 22px 0 35px; }
.search-form label { flex: 1; }
.search-results-grid { margin-top: 34px; }
.not-found { padding: 100px 0; text-align: center; }
.not-found__inner { display: grid; justify-items: center; }
.not-found__number { color: var(--teal); font-size: clamp(5rem, 15vw, 10rem); line-height: .8; font-weight: 950; opacity: .18; }
.not-found h1 { color: var(--navy); font-size: 2.4rem; }


/* One-page section navigation. */
#pocetna, #vesti, #projekti, #video, #intervjui, #podkasti, #mladi-i-studenti, #o-nama, #kontakt {
    scroll-margin-top: 112px;
}

.about-section { padding: 76px 0; background: var(--mist); }
.about-section__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 52px; align-items: start; }
.about-section h2 { margin: 8px 0 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.03; }
.about-section__copy { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.about-section__copy p { margin-top: 0; margin-bottom: 18px; }

@media (max-width: 1100px) {
    .primary-nav .menu-item > a { padding-inline: 7px; font-size: .85rem; }
    .hero__grid { gap: 32px; }
}

@media (max-width: 980px) {
    .about-section__grid { grid-template-columns: 1fr; gap: 24px; }
    .topbar__links { display: none; }
    .site-header__inner { min-height: 74px; }
    .menu-toggle { display: inline-flex; }
    .primary-nav { position: absolute; left: 0; right: 0; top: 100%; max-height: 0; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(11,31,51,.08); transition: max-height .25s ease; }
    .menu-open .primary-nav { max-height: 80vh; overflow-y: auto; }
    .primary-nav .menu { width: min(calc(100% - 40px), var(--shell)); margin: 0 auto; padding: 14px 0 20px; display: grid; }
    .primary-nav .menu-item > a { padding: 11px 12px; font-size: 1rem; }
    .hero__grid, .podcast-section__grid { grid-template-columns: 1fr; }
    .hero__grid { min-height: auto; padding-block: 54px; }
    .hero-story__media { min-height: 390px; }
    .story-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.2fr 1fr; }
    .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .site-shell, .site-shell--narrow { width: min(calc(100% - 28px), var(--shell)); }
    .brand__text small { display: none; }
    .brand__mark { width: 42px; height: 42px; font-size: 1.55rem; }
    .menu-toggle__label { display: none; }
    .hero__intro h1 { font-size: clamp(2.55rem, 13vw, 4.1rem); }
    .hero-story__media { min-height: 330px; }
    .hero-story__content { left: 20px; right: 20px; bottom: 20px; }
    .content-section { padding: 58px 0; }
    .section-heading { align-items: start; flex-direction: column; gap: 10px; }
    .story-grid--3 { grid-template-columns: 1fr; }
    .podcast-section { padding: 60px 0; }
    .collab-card { padding: 30px 24px; align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .footer-grid > :last-child { grid-column: auto; }
    .site-footer__bottom { flex-direction: column; }
    .single-article__header h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
    .entry-content { font-size: 1rem; }
    .search-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
