/* ==========================================================================
   Studentski centar u Slavonskom Brodu – javni dio
   Boje preuzete iz novog logotipa (crvena / plava) + tamnoplava iz stare stranice
   ========================================================================== */
:root {
  --navy-900: #0c2338;
  --navy-800: #123a5a;
  --navy-700: #194466;
  --navy-600: #24597f;
  --blue: #0b5fc6;
  --blue-600: #0a52ab;
  --blue-50: #eaf2fd;
  --red: #d8141f;
  --red-600: #b80f19;
  --red-50: #fdecec;
  --ink: #1b2533;
  --ink-2: #4a5668;
  --muted: #6b7686;
  --line: #e2e7ee;
  --bg: #f4f6f9;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 32, 56, .06), 0 6px 20px rgba(16, 32, 56, .07);
  --shadow-lg: 0 10px 40px rgba(16, 32, 56, .16);
  --container: 1220px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy-800); margin: 0 0 .6em; }
:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }
.muted { color: var(--muted); }

/* ---------- gornja traka ---------- */
.topbar { background: var(--navy-900); color: #c8d4e2; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar__info { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.topbar i { color: #7fb0ec; }
.topbar__links { display: flex; gap: 4px; }
.topbar__links a { color: #fff; padding: 6px 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 7px; }
.topbar__links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- zaglavlje ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%); box-shadow: 0 2px 14px rgba(0, 0, 0, .18); }
.site-header::after { content: ""; display: block; height: 3px; background: var(--blue); }
.site-header__inner { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; transition: padding .25s; }
.brand { display: flex; align-items: center; gap: 16px; color: #fff; margin-right: auto; min-width: 0; }
.brand:hover { color: #fff; }
.brand__logo { width: 76px; height: 76px; flex: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); transition: width .25s, height .25s; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; font-family: "Montserrat", var(--font); }
.brand__l1 { font-size: 13px; letter-spacing: .04em; color: #a9c4e2; font-weight: 500; }
.brand__l2 { font-size: 27px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.brand__l3 { font-size: 17px; font-weight: 500; color: #dbe6f3; }
.header-search { display: flex; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; overflow: hidden; width: 280px; }
.header-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 10px 16px; font: inherit; font-size: 14px; }
.header-search input::placeholder { color: #b9c9db; }
.header-search input:focus { outline: none; }
.header-search:focus-within { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); }
.header-search button { background: transparent; border: 0; color: #fff; padding: 0 16px; cursor: pointer; }
.uni-logo img { width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); display: block; }
.nav-toggle { display: none; }

.site-header.is-compact .site-header__inner { padding-top: 6px; padding-bottom: 6px; }
.site-header.is-compact .brand__logo { width: 52px; height: 52px; }

/* ---------- glavni izbornik ---------- */
.main-nav { background: rgba(0, 0, 0, .22); border-top: 1px solid rgba(255, 255, 255, .08); }
.main-nav > .container > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav > .container > ul > li > a { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 14.5px; padding: 13px 16px; letter-spacing: .01em; position: relative; }
.main-nav > .container > ul > li > a .fa-chevron-down { font-size: 10px; opacity: .7; }
.main-nav > .container > ul > li > a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.main-nav > .container > ul > li:hover > a::after, .main-nav > .container > ul > li.active > a::after { transform: scaleX(1); }
.main-nav li.active > a { color: #fff; }
.main-nav .sub-toggle { display: none; }
.main-nav .sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 300px; background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { display: block; padding: 9px 12px; color: var(--ink); border-radius: 7px; font-size: 14.5px; }
.main-nav .sub a:hover { background: var(--blue-50); color: var(--blue); }
.ext { font-size: 10px; opacity: .6; margin-left: 4px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-800); }
.hero__slides, .hero__slide, .hero__shade { position: absolute; inset: 0; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade { background: linear-gradient(90deg, rgba(10, 30, 50, .88) 0%, rgba(10, 30, 50, .55) 45%, rgba(10, 30, 50, .1) 100%), linear-gradient(0deg, rgba(10, 30, 50, .5), transparent 50%); }
.hero__content { position: relative; padding-top: 70px; padding-bottom: 80px; }
.hero__eyebrow { display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; padding: 5px 12px; border-left: 3px solid var(--red); background: rgba(255, 255, 255, .08); }
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; max-width: 680px; margin-bottom: 14px; letter-spacing: -.01em; }
.hero__text { font-size: 18px; max-width: 560px; color: #dbe6f3; margin: 0 0 26px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__dots { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 8px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; transition: .2s; }
.hero__dots button.is-active { background: #fff; width: 26px; border-radius: 6px; }

/* ---------- gumbi ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: .18s; font-family: inherit; line-height: 1.2; }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-600); color: #fff; transform: translateY(-1px); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-600); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy-800); }

/* ---------- brze poveznice ---------- */
.quick-links { margin-top: -46px; position: relative; z-index: 2; }
.quick-links__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-link { display: flex; gap: 14px; align-items: center; background: var(--card); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); border-bottom: 3px solid transparent; transition: .2s; }
.quick-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-bottom-color: var(--red); color: var(--ink); }
.quick-link__icon { flex: none; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy-700)); }
.quick-link:nth-child(even) .quick-link__icon { background: linear-gradient(135deg, var(--red), #8f0a12); }
.quick-link strong { display: block; color: var(--navy-800); font-size: 16px; }
.quick-link small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }

/* ---------- raspored ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-top: 40px; padding-bottom: 60px; align-items: start; }
.layout--subnav { grid-template-columns: 280px minmax(0, 1fr); }
.content { min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 26px; margin: 0; position: relative; padding-left: 14px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: linear-gradient(var(--red) 50%, var(--blue) 50%); }
.link-more { font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 7px; }
.link-more i { transition: transform .2s; }
.link-more:hover i { transform: translateX(3px); }

/* ---------- novosti ---------- */
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); background: var(--blue-50); padding: 3px 9px; border-radius: 999px; }
.tag:hover { background: var(--blue); color: #fff; }
.tag--red { color: var(--red); background: var(--red-50); }
.news-card__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.news-featured { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; }
.news-featured__img { background: #e9eef4; display: block; height: 320px; overflow: hidden; }
.news-featured__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.news-featured__body { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.news-featured h3 { font-size: 22px; margin-bottom: 10px; }
.news-featured h3 a { color: var(--navy-800); }
.news-featured h3 a:hover { color: var(--blue); }
.news-featured p { color: var(--ink-2); margin: 0 0 18px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-grid--sm { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.news-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card__img { display: block; aspect-ratio: 16 / 10; background: #e9eef4; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .4s; }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__body { padding: 16px 18px 20px; flex: 1; }
.news-card h3 { font-size: 16.5px; margin: 0 0 8px; }
.news-card h3 a { color: var(--navy-800); }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.news-card.compact h3 { font-size: 15px; margin: 0; }
.news-card.compact .news-card__body { padding: 12px 14px 16px; }

/* ---------- traka "o nama" ---------- */
.about-strip { margin-top: 36px; background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); color: #dbe6f3; border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.about-strip::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; background: url("../img/logo-192.png") center / contain no-repeat; opacity: .08; }
.about-strip h2 { color: #fff; }
.about-strip p { margin: 0 0 18px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.stats li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 14px 16px; }
.stats strong { display: block; font-size: 28px; color: #fff; line-height: 1.1; }
.stats span { font-size: 13px; }

/* ---------- bočna traka ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.widget h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; display: flex; align-items: center; gap: 9px; }
.widget h2 i { color: var(--red); }
.widget--notices ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.notice { padding: 12px 14px 12px 16px; border-radius: 10px; background: var(--blue-50); border-left: 4px solid var(--blue); font-size: 14.5px; }
.notice--vazno { background: var(--red-50); border-left-color: var(--red); }
.notice p, .notice div { margin: 0; }
.notice a { font-weight: 600; }
.hours { margin: 0 0 12px; }
.hours div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.hours dt { color: var(--ink-2); }
.hours dd { margin: 0; font-weight: 700; color: var(--navy-800); }
.hours .hours__head dt { font-weight: 700; color: var(--navy-800); }
.fb-frame { border-radius: 10px; overflow: hidden; }
.fb-frame iframe { width: 100%; height: 480px; border: 0; display: block; }

/* ---------- banner podstranica ---------- */
.page-banner { background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); color: #fff; padding: 34px 0 30px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: 4%; top: 50%; width: 260px; height: 260px; transform: translateY(-50%); background: url("../img/logo-192.png") center / contain no-repeat; opacity: .1; }
.page-banner h1 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin: 6px 0 0; font-weight: 800; position: relative; z-index: 1; }
.page-banner .lead { color: #cfe0f2; max-width: 720px; margin: 8px 0 0; }
.breadcrumbs { font-size: 13.5px; color: #a9c4e2; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.breadcrumbs a { color: #dbe6f3; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- podizbornik ---------- */
.subnav { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 12px; position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; }
.subnav h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 10px 10px; }
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 14.5px; font-weight: 500; border-left: 3px solid transparent; }
.subnav a:hover { background: var(--bg); color: var(--blue); }
.subnav a.active { background: var(--blue-50); color: var(--blue); border-left-color: var(--red); font-weight: 700; }

/* ---------- tekst stranica ---------- */
.prose { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 38px; font-size: 16.5px; overflow-wrap: anywhere; }
.content.prose, .content > .prose { min-width: 0; }
.prose h1 { font-size: 28px; }
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: 10px; margin: 6px 0; max-height: 460px; object-fit: cover; }
.prose p > img:only-child { width: 100%; }
.prose .news-card a, .prose .doc-group a, .prose .link-more { text-decoration: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 1.4em; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #e9eef4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; max-height: none; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; background: rgba(6, 16, 28, .92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 20px; cursor: pointer; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); right: auto; }
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { left: auto; right: 16px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 15px; display: block; overflow-x: auto; }
.prose table:not(:has(td + td + td + td)) { display: table; }
.prose td, .prose th { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose tr:nth-child(even) td { background: #fafbfd; }
.prose th { background: var(--blue-50); color: var(--navy-800); }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--blue); background: var(--blue-50); border-radius: 0 10px 10px 0; }
.prose a { text-decoration: underline; text-decoration-color: rgba(11, 95, 198, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose .updated { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.page-cover { width: 100%; border-radius: 12px; margin-bottom: 20px; }

/* shortcode: novosti unutar stranice */
.sc-news { background: var(--bg); border-radius: 12px; padding: 20px; margin: 0 0 1.6em; }
.sc-news h2 { margin-top: 0; font-size: 19px; }
.sc-news .news-card { box-shadow: none; border: 1px solid var(--line); }
.sc-news .link-more { margin-top: 14px; text-decoration: none; }

/* shortcode: dokumenti */
.doc-group { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; overflow: hidden; background: #fff; }
.doc-group summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--navy-800); display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #f8fafc; list-style: none; }
.doc-group summary::-webkit-details-marker { display: none; }
.doc-group summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px; color: var(--muted); transition: transform .2s; }
.doc-group[open] summary::after { transform: rotate(180deg); }
.doc-group summary .count { flex: none; white-space: nowrap; margin-left: auto; font-size: 12px; background: var(--blue-50); color: var(--blue); border-radius: 999px; padding: 2px 9px; }
.doc-list { list-style: none; margin: 0; padding: 6px; }
.doc-list li { margin: 0; }
.prose .doc-list a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.prose .doc-list a:hover { background: var(--blue-50); color: var(--blue); }
.doc-list i { font-size: 20px; color: var(--red); flex: none; width: 22px; text-align: center; }
.doc-list span { flex: 1; }
.doc-list time { font-size: 13px; color: var(--muted); }

/* shortcode: kontakti */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 1.6em; }
.contact-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; border-top: 4px solid var(--blue); }
.contact-card:nth-child(odd) { border-top-color: var(--red); }
.contact-card h3 { margin: 0 0 4px; font-size: 17px; }
.contact-card .name { margin: 0 0 10px; color: var(--ink-2); font-weight: 600; }
.prose .contact-card a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 3px 0; font-size: 15px; overflow-wrap: anywhere; }
.contact-card i { color: var(--muted); width: 16px; }
.map { margin: 1em 0; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: 12px; display: block; }
.map a { display: inline-block; margin-top: 8px; font-size: 14px; }

/* shortcode: poslovi, jelovnik */
.job-list { display: flex; flex-direction: column; gap: 16px; }
.job { border: 1px solid var(--line); border-radius: 12px; padding: 20px; border-left: 4px solid var(--blue); }
.job header h3 { margin: 0; }
.job__meta { color: var(--muted); font-size: 14.5px; }
.job__body { margin: 12px 0; }
.job footer { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-2); }
.food-menu table { display: table; }
.food-menu__week { font-weight: 600; color: var(--navy-800); }
.empty-state { text-align: center; padding: 30px 10px; }
.empty-state > i { font-size: 44px; color: var(--line); margin-bottom: 10px; }

/* ---------- članak ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-image { margin: 0 0 20px; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; }
.article-image img { display: block; margin: 0 auto; max-height: 520px; object-fit: contain; }
.share { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--muted); font-size: 14px; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow); border: 0; cursor: pointer; color: var(--navy-800); font-size: 15px; }
.share a:hover, .share button:hover { background: var(--blue); color: #fff; }
.share button.copied { background: #1a8f4c; color: #fff; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.article-nav a { background: var(--card); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); color: var(--navy-800); font-weight: 600; font-size: 14.5px; }
.article-nav a small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.article-nav .next { text-align: right; }
.related { margin-top: 30px; }
.related h2 { font-size: 20px; }

/* ---------- popis novosti / pretraživanje ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font-size: 14px; font-weight: 600; }
.chip span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip.active, .chip:hover { background: var(--navy-800); color: #fff; }
.chip.active span, .chip:hover span { color: #a9c4e2; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pagination a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow); font-weight: 600; color: var(--ink); }
.pagination a.active, .pagination a:hover { background: var(--blue); color: #fff; }
.search-big { display: flex; gap: 10px; margin-bottom: 18px; }
.search-big input { flex: 1; min-width: 0; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.search-results li { background: var(--card); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); }
.search-results small { display: block; color: var(--red); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.search-results a { font-weight: 700; font-size: 17px; }
.search-results p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- podnožje ---------- */
.site-footer { background: var(--navy-900); color: #b6c5d6; margin-top: 20px; font-size: 14.5px; }
.footer-accent { height: 4px; background: var(--blue); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.1fr 1fr 1.2fr; gap: 36px; padding-top: 48px; padding-bottom: 40px; }
.footer-brand img { display: block; margin-bottom: 12px; }
.footer-title { color: #fff; font-weight: 700; font-size: 17px; margin: 0 0 8px; }
.site-footer h2 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-list, .footer-links { list-style: none; margin: 0; padding: 0; }
.footer-list li { display: flex; gap: 12px; margin-bottom: 10px; }
.footer-list i { color: #7fb0ec; margin-top: 4px; width: 16px; }
.site-footer a { color: #dbe6f3; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { position: relative; padding-left: 14px; }
.footer-links a::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-admin { opacity: .6; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--red); color: #fff; box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; z-index: 40; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================================
   Prilagodba za manje zaslone
   ========================================================================== */
@media (max-width: 1100px) {
  .header-search { width: 220px; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .site-header { position: relative; }
  .site-header__inner { flex-wrap: wrap; gap: 12px; }
  .header-search { order: 5; width: 100%; }
  .uni-logo { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; cursor: pointer; padding: 0 11px; }
  .nav-toggle span:not(.sr-only) { display: block; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav > .container > ul { flex-direction: column; padding: 8px 0 14px; }
  .main-nav > .container > ul > li > a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .main-nav > .container > ul > li > a .fa-chevron-down { display: none; }
  .main-nav > .container > ul > li > a::after { display: none; }
  .main-nav .sub-toggle { display: grid; place-items: center; position: absolute; right: 0; top: 4px; width: 42px; height: 42px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; border-radius: 8px; cursor: pointer; }
  .main-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; background: rgba(255, 255, 255, .06); border-radius: 8px; margin: 6px 0; min-width: 0; }
  .main-nav li.open > .sub { display: block; }
  .main-nav li:hover > .sub { display: none; }
  .main-nav li.open:hover > .sub { display: block; }
  .main-nav .sub a { color: #dbe6f3; }
  .main-nav .sub a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .layout, .layout--subnav { grid-template-columns: 1fr; }
  .sidebar, .subnav { position: static; max-height: none; }
  .subnav { padding: 10px; }
  .subnav h2 { display: none; }
  .subnav ul { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .subnav li { flex: none; }
  .subnav a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; background: var(--bg); }
  .subnav a.active { border-bottom-color: var(--red); }
  .quick-links__grid { grid-template-columns: 1fr 1fr; }
  .news-featured { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .topbar__info span.hide-sm, .topbar__info span:first-child { display: none; }
  .brand { gap: 10px; }
  .brand__logo { width: 56px; height: 56px; }
  .brand__l2 { font-size: 17px; letter-spacing: .03em; }
  .brand__l3 { font-size: 13px; }
  .brand__l1 { font-size: 10px; letter-spacing: 0; }
  .hero { min-height: 400px; }
  .hero__content { padding-top: 40px; padding-bottom: 70px; }
  .hero__text { font-size: 16px; }
  .quick-links { margin-top: -30px; }
  .quick-links__grid { grid-template-columns: 1fr; gap: 10px; }
  .quick-link { padding: 14px; }
  .news-grid { grid-template-columns: 1fr; }
  .prose { padding: 22px 18px; font-size: 16px; }
  .article-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .page-banner::after { display: none; }
  .search-big { flex-direction: column; }
  .stats strong { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .main-nav, .sidebar, .subnav, .site-footer, .to-top, .header-search, .share, .article-nav { display: none !important; }
  .site-header { position: static; background: none; box-shadow: none; }
  .brand, .brand__l1, .brand__l3 { color: #000; }
  .layout { display: block; }
  .prose { box-shadow: none; padding: 0; }
}
