/* =========================================================
   AMOT – javni sajt
   Boje brenda (--primary, --accent) se podešavaju iz administracije.
   ========================================================= */
:root {
  --primary: #12355b;
  --accent: #c9a24b;
  --ink: #16202c;
  --ink-2: #44515f;
  --muted: #6b7785;
  --line: #e3e7ec;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-tint: color-mix(in srgb, var(--primary) 5%, #fff);
  --primary-dark: color-mix(in srgb, var(--primary) 78%, #000);
  --primary-light: color-mix(in srgb, var(--primary) 12%, #fff);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -8px rgba(16, 24, 40, .12);
  --shadow-lg: 0 24px 48px -16px rgba(16, 24, 40, .25);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
html.nav-open { overflow: hidden; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, #fff); outline-offset: 2px; border-radius: 4px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link { position: absolute; left: 1rem; top: -60px; background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }

/* ---------- Dugmad ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .72rem 1.25rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; line-height: 1.2; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 60%, transparent); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #1b1404; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, #000); color: #000; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-light { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: #fff; color: var(--primary); border-color: var(--primary-light); }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--primary-dark); color: rgba(255, 255, 255, .82); font-size: .84rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar-contact, .topbar-social { display: flex; gap: 1.25rem; align-items: center; }
.topbar .icon { width: 15px; height: 15px; }
.topbar-admin { background: rgba(255, 255, 255, .12); padding: .15rem .6rem; border-radius: 99px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 20px -12px rgba(16, 24, 40, .25); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand-logo { max-height: 52px; width: auto; }
.brand-mark { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font: 700 1.35rem var(--font-head); box-shadow: inset 0 -3px 0 var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font: 700 1.25rem var(--font-head); letter-spacing: .02em; }
.brand-text small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: .15rem; }
.main-nav a { display: flex; align-items: center; gap: .25rem; padding: .55rem .8rem; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .95rem; text-decoration: none; position: relative; }
.main-nav > ul > li > a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); transform-origin: left; }
.main-nav > ul > li > a:hover, .main-nav li.active > a { color: var(--primary); }
.main-nav > ul > li.active > a::after, .main-nav > ul > li > a:hover::after { transform: scaleX(1); }
.main-nav .has-sub { position: relative; }
.main-nav .sub { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { padding: .5rem .75rem; }
.main-nav .sub a:hover { background: var(--bg-tint); }
.header-actions { display: flex; gap: .4rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: .2s; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary-light); }
.nav-toggle { display: none; }
.nav-toggle .icon-shut, .nav-toggle[aria-expanded=true] .icon-open { display: none; }
.nav-toggle[aria-expanded=true] .icon-shut { display: block; }
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 1rem 0; }
.search-form { display: flex; align-items: center; gap: .75rem; }
.search-form input { flex: 1; border: 0; font-size: 1.15rem; padding: .6rem 0; outline: none; background: transparent; }
.search-form .icon { color: var(--muted); }

.preview-bar { background: #fff4d6; color: #6b4e00; text-align: center; padding: .6rem 1rem; font-size: .9rem; border-bottom: 1px solid #f2d78c; }
.flash-wrap { margin-top: 1rem; }
.flash { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: .6rem; font-weight: 500; border: 1px solid; }
.flash-success { background: #ecfdf3; color: #05603a; border-color: #abefc6; }
.flash-error { background: #fef3f2; color: #912018; border-color: #fecdca; }
.flash-info { background: var(--bg-tint); color: var(--primary); border-color: var(--primary-light); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--primary-dark); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, color-mix(in srgb, var(--primary-dark) 94%, transparent) 0%, color-mix(in srgb, var(--primary) 75%, transparent) 55%, color-mix(in srgb, var(--primary) 35%, transparent) 100%); }
.hero:not(.has-image) .hero-bg { background: radial-gradient(1200px 600px at 85% 10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%), radial-gradient(900px 500px at 0% 100%, color-mix(in srgb, var(--primary) 70%, #4b8bd1), transparent 60%), var(--primary-dark); }
.hero-pattern { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); }
.hero-inner { padding: clamp(4.5rem, 10vw, 8.5rem) 24px clamp(3.5rem, 8vw, 6.5rem); }
.hero-copy { max-width: 760px; animation: rise .9s var(--ease) both; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 600; margin-bottom: .35em; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .86); max-width: 640px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; background: rgba(255, 255, 255, .16); border-radius: var(--radius); overflow: hidden; max-width: 900px; animation: rise 1.1s .15s var(--ease) both; }
.hero-stats div { background: rgba(10, 20, 35, .35); backdrop-filter: blur(6px); padding: 1.2rem 1.4rem; }
.hero-stats dt { font: 600 2rem/1 var(--font-head); color: #fff; }
.hero-stats dd { margin: .4rem 0 0; font-size: .86rem; color: rgba(255, 255, 255, .75); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Sekcije ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: .6rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; font-size: .95rem; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow.back { margin-top: 2rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }

/* Obavještenja */
.notices { background: var(--bg-tint); border-bottom: 1px solid var(--line); padding: 1.6rem 0; }
.notices-head { display: flex; align-items: center; gap: .6rem; color: var(--primary); margin-bottom: .9rem; }
.notices-head h2 { font-family: var(--font); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin: 0; color: inherit; }
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.notice { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 10px; padding: .85rem 1.1rem; }
.notice > div { flex: 1; display: flex; flex-direction: column; }
.notice > div span { color: var(--ink-2); font-size: .94rem; }
.notice-important { border-left-color: var(--accent); }
.notice-urgent { border-left-color: #d92d20; }
.notice-urgent .notice-ico { color: #d92d20; }
.notice-ico { color: var(--primary); display: flex; }
.notice-link { font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; white-space: nowrap; }

/* O nama */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-media { position: relative; }
.about-media img, .about-ph { border-radius: var(--radius); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.about-media::before { content: ""; position: absolute; inset: auto -18px -18px auto; width: 55%; height: 55%; border: 2px solid var(--accent); border-radius: var(--radius); z-index: -1; }
.about-ph { display: grid; place-items: center; background: linear-gradient(140deg, var(--primary), var(--primary-dark)); color: rgba(255,255,255,.9); font: 700 clamp(3rem, 8vw, 5.5rem) var(--font-head); letter-spacing: .08em; }
.about-copy .prose { margin-bottom: 1.6rem; }

/* Kartice vijesti */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.news-card { display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: color-mix(in srgb, var(--primary) 40%, #fff); background: linear-gradient(135deg, var(--bg-tint), var(--primary-light)); }
.ph .icon { width: 42px; height: 42px; }
.card-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; font-size: .82rem; color: var(--muted); margin-bottom: .65rem; }
.badge { --badge: var(--primary); display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .6rem; border-radius: 99px; background: color-mix(in srgb, var(--badge) 12%, #fff); color: color-mix(in srgb, var(--badge) 85%, #000); text-decoration: none; }
.card-title { font-size: 1.2rem; margin-bottom: .5rem; }
.card-title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s; }
.card:hover .card-title a { background-size: 100% 1px; }
.card-text { color: var(--ink-2); font-size: .95rem; flex: 1; }
.more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--primary); text-decoration: none; margin-top: auto; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.card-grid.cols-2-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.featured-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.6rem; margin-bottom: 1.6rem; }
.news-card-wide .card-media { aspect-ratio: 16/9.5; }
.news-card-wide .card-title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.featured-side { display: grid; gap: 1.6rem; align-content: start; }
.featured-side .card-media { aspect-ratio: 16/8; }
.featured-side .card-title { font-size: 1.08rem; }

/* Aktivnosti */
.activities-section { background: var(--bg-soft); }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.activity-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; text-decoration: none; color: var(--ink); transition: .3s var(--ease); overflow: hidden; }
.activity-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.activity-card:hover::after { transform: scaleX(1); }
.activity-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); margin-bottom: 1.2rem; }
.activity-icon .icon { width: 26px; height: 26px; }
.activity-card h2, .activity-card h3 { font-size: 1.2rem; }
.activity-card p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.activity-card.with-image { padding-top: 0; }
.activity-img { display: block; margin: 0 -1.8rem 1.2rem; aspect-ratio: 16/9; overflow: hidden; }
.activity-img img { width: 100%; height: 100%; object-fit: cover; }
.activity-card.with-image .activity-icon { margin-top: -2.9rem; position: relative; background: #fff; box-shadow: var(--shadow); }

/* Događaji */
.events-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.events-intro p { color: var(--ink-2); }
.event-list { display: grid; gap: .8rem; }
.event-row { display: flex; align-items: center; gap: 1.2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: .25s var(--ease); }
.event-row:hover { border-color: var(--primary-light); box-shadow: var(--shadow); transform: translateX(4px); color: var(--ink); }
.date-badge { flex: none; width: 64px; height: 68px; border-radius: 12px; background: var(--primary); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-badge strong { font: 600 1.6rem var(--font-head); }
.date-badge small { text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; margin-top: .3rem; opacity: .85; }
.event-info { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.event-info strong { font-size: 1.05rem; }
.event-meta { color: var(--muted); font-size: .86rem; display: inline-flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.chev { color: var(--muted); }
.empty { color: var(--muted); }
.event-cards { display: grid; gap: 1.4rem; }
.event-card { display: grid; grid-template-columns: 320px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.event-card-media { position: relative; display: block; min-height: 200px; background: var(--bg-soft); }
.event-card-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.event-card-media .date-badge { position: absolute; top: 1rem; left: 1rem; width: auto; padding: 0 .9rem; box-shadow: var(--shadow); }
.event-card-body { padding: 1.6rem; }
.event-card-body h2 { font-size: 1.4rem; }
.event-card-body h2 a { color: inherit; text-decoration: none; }
.event-facts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.event-facts li { display: flex; gap: .8rem; align-items: flex-start; }
.event-facts .icon { color: var(--primary); margin-top: 3px; }
.event-facts small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

/* Galerija */
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.photo { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--bg-soft); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.photo:hover img { transform: scale(1.06); filter: brightness(.9); }
.photo-grid.masonry { display: block; columns: 3 260px; column-gap: .8rem; }
.photo-grid.masonry .photo { aspect-ratio: auto; margin-bottom: .8rem; break-inside: avoid; }
.photo-grid.masonry .photo img { height: auto; }
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.album-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; text-decoration: none; color: #fff; background: var(--primary); }
.album-media, .album-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.album-card:hover .album-media img { transform: scale(1.05); }
.album-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.2rem 1.1rem; background: linear-gradient(transparent, rgba(5, 12, 24, .85)); display: flex; flex-direction: column; }
.album-info strong { font: 600 1.2rem var(--font-head); }
.album-info small { opacity: .85; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 10, 18, .94); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: rgba(255, 255, 255, .8); margin-top: .8rem; font-size: .95rem; }
.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; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* Kontakt traka */
.contact-band { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.contact-band h2 { color: #fff; }
.contact-band-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--primary-light); color: var(--primary); }
.contact-list small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-band .contact-list .icon { background: rgba(255, 255, 255, .1); color: var(--accent); }
.contact-band .contact-list small { color: rgba(255, 255, 255, .6); }
.contact-band .contact-list a, .contact-band .contact-list span { color: #fff; }
.map-wrap { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/11; background: rgba(255, 255, 255, .06); box-shadow: var(--shadow-lg); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-full { aspect-ratio: 21/8; margin-top: 2.5rem; }
.contact-art { aspect-ratio: 16/11; border-radius: var(--radius); display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.14), transparent 60%), rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.contact-art .icon { width: 120px; height: 120px; color: var(--accent); opacity: .7; stroke-width: 1.1; }

/* Newsletter */
.newsletter { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 3rem 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.newsletter h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.newsletter p { color: var(--ink-2); margin: 0; }
.newsletter-form { display: flex; gap: .6rem; background: #fff; padding: .4rem; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.newsletter-form input[type=email] { flex: 1; border: 0; padding: .6rem 1rem; outline: none; background: transparent; min-width: 0; }

/* Footer */
.site-footer { background: #0c1622; color: rgba(255, 255, 255, .72); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2.5rem; padding: 4rem 24px 3rem; }
.site-footer h3 { color: #fff; font: 600 .82rem var(--font); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.2rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer .brand-logo { max-height: 46px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-contact li { display: flex; gap: .6rem; }
.footer-contact .icon { color: var(--accent); width: 18px; margin-top: 3px; }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .07); }
.footer-social a:hover { background: var(--accent); color: #111; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; padding-bottom: 1.2rem; font-size: .86rem; flex-wrap: wrap; }

/* ---------- Unutrašnje stranice ---------- */
.page-head { position: relative; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.2rem, 5vw, 3.5rem); overflow: hidden; isolation: isolate; }
.page-head::after { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, .05); z-index: -1; }
.page-head.has-bg .page-head-bg { position: absolute; inset: 0; z-index: -2; }
.page-head.has-bg .page-head-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-head h1 { color: #fff; margin: 0; max-width: 900px; }
.page-head .lead { color: rgba(255, 255, 255, .82); margin: .8rem 0 0; max-width: 760px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .84rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumbs a { color: inherit; opacity: .8; text-decoration: none; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.sidebar { position: sticky; top: 100px; display: grid; gap: 1.4rem; }
.widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; background: #fff; }
.widget-title { font: 700 .8rem var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1rem; }
.widget-list { list-style: none; margin: 0 0 .8rem; padding: 0; }
.widget-list a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); text-decoration: none; font-size: .95rem; flex-wrap: wrap; }
.widget-list li:last-child a { border-bottom: 0; }
.widget-list a:hover, .widget-list a.active { color: var(--primary); font-weight: 600; }
.widget-list small { width: 100%; color: var(--muted); font-size: .8rem; }
.widget-list.icons a { justify-content: flex-start; }
.count { background: var(--bg-soft); color: var(--muted); font-size: .76rem; padding: .1rem .5rem; border-radius: 99px; font-weight: 600; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; background: var(--bg-soft); padding: 1.1rem; border-radius: var(--radius); margin-bottom: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; flex: 1 1 160px; }
.filter-bar .field { margin: 0; }
.field.grow { flex: 2 1 240px; }
.field.actions { flex: 0 0 auto; flex-direction: row; gap: .5rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
input[type=text], input[type=email], input[type=search], input[type=date], input[type=tel], input:not([type]), select, textarea { width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.has-error input, .has-error textarea { border-color: #d92d20; }
.err { color: #b42318; font-size: .84rem; }
.result-count { color: var(--muted); font-size: .9rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state .icon { width: 40px; height: 40px; margin: 0 auto .6rem; opacity: .6; }
.tabs { display: inline-flex; gap: .3rem; background: var(--bg-soft); padding: .3rem; border-radius: 99px; margin-bottom: 1.8rem; }
.tabs a { padding: .5rem 1.2rem; border-radius: 99px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.tabs a.active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }

.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 2.5rem 0 0; justify-content: center; }
.pagination a, .pagination span { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 .8rem; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.pagination .active a { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled span { opacity: .45; }
.pagination .gap span { border: 0; }

/* Članak */
.article-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; background: linear-gradient(var(--bg-tint), #fff); }
.article-head .breadcrumbs { color: var(--muted); }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: .8rem 0 .5rem; }
.article-lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--ink-2); font-family: var(--font-head); line-height: 1.5; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); font-size: .9rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.article-meta span { display: inline-flex; gap: .4rem; align-items: center; }
.article-hero { max-width: 1100px; margin-bottom: 2.5rem; }
.article-hero img { border-radius: var(--radius); width: 100%; max-height: 640px; object-fit: cover; }
.article-hero figcaption, .content-figure figcaption { color: var(--muted); font-size: .86rem; margin-top: .6rem; }
.content-figure { margin: 0 0 2rem; }
.content-figure img { border-radius: var(--radius); width: 100%; }
.article-gallery { margin: 3rem 0 1rem; }
.article-gallery h2 { font-size: 1.4rem; }
.article-gallery .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 2rem 0 1rem; color: var(--muted); }
.tag { background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); padding: .25rem .75rem; border-radius: 99px; font-size: .84rem; text-decoration: none; }
.tag:hover { border-color: var(--primary); color: var(--primary); }
.share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: 1.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 1rem; }
.share > span { display: inline-flex; gap: .4rem; align-items: center; color: var(--muted); font-size: .9rem; margin-right: .4rem; }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); background: #fff; cursor: pointer; transition: .2s; }
.share a:hover, .share button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.share .icon { width: 18px; height: 18px; }
.share button.copied { background: #12b76a; color: #fff; border-color: #12b76a; }
.related { background: var(--bg-soft); }

/* Tipografija sadržaja (WYSIWYG) */
.prose { font-size: 1.06rem; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.12rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--primary); }
.prose blockquote { margin: 1.6em 0; padding: 1rem 1.4rem; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 10px 10px 0; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink-2); }
.prose img { border-radius: 10px; }
.prose .img-left { float: left; margin: .3em 1.4em 1em 0; max-width: 45%; }
.prose .img-right { float: right; margin: .3em 0 1em 1.4em; max-width: 45%; }
.prose .img-center { margin-left: auto; margin-right: auto; }
.prose .img-full { width: 100%; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 600; }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose a { font-weight: 500; }
.prose::after { content: ""; display: table; clear: both; }
.text-center { text-align: center; } .text-right { text-align: right; } .text-justify { text-align: justify; }
.intro-prose { max-width: 820px; margin-bottom: 2.5rem; }

/* Dokumenti */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.doc { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .25s; }
.doc:hover { box-shadow: var(--shadow); border-color: transparent; }
.doc-ico { position: relative; width: 52px; height: 60px; flex: none; display: grid; place-items: center; color: var(--primary); background: var(--primary-light); border-radius: 10px; }
.doc-ico .icon { width: 28px; height: 28px; }
.doc-ico b { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .62rem; padding: .1rem .35rem; border-radius: 4px; letter-spacing: .04em; }
.doc-ico[data-ext=PDF] b { background: #d92d20; }
.doc-info { flex: 1; min-width: 0; }
.doc-info h2 { font: 600 1.05rem var(--font); margin: 0 0 .2rem; }
.doc-info p { margin: 0 0 .2rem; color: var(--ink-2); font-size: .92rem; }
.doc-info small { color: var(--muted); }

/* Pretraga */
.search-big { display: flex; gap: .6rem; margin-bottom: 1.6rem; }
.search-big input { font-size: 1.1rem; padding: .9rem 1.1rem; }
.search-group { font: 700 .82rem var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 2rem 0 .8rem; display: flex; gap: .5rem; align-items: center; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.search-results a { text-decoration: none; font-size: 1.1rem; }
.search-results small { display: block; color: var(--muted); margin: .2rem 0; }
.search-results p { margin: .3rem 0 0; color: var(--ink-2); font-size: .95rem; }

/* Kontakt stranica */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-form { padding: clamp(1.4rem, 3vw, 2.2rem); }
.contact-form:hover { transform: none; }
.contact-form h2 { font-size: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); margin: .2rem 0 1.3rem; cursor: pointer; }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--primary); }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4rem; }
.archive-year { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.archive-year ul { list-style: none; padding: 0; margin: 0; }
.archive-year a { display: flex; justify-content: space-between; padding: .4rem 0; text-decoration: none; color: var(--ink-2); }
.center-box { text-align: center; padding: 3rem 0; }
.error-code { display: block; font: 600 clamp(5rem, 14vw, 9rem)/1 var(--font-head); color: var(--primary-light); -webkit-text-stroke: 2px var(--primary); }
.error-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Animacija pojavljivanja (diskretna; isključena za korisnike koji ne žele pokrete) */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ---------- Responzivnost ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav a { padding: .5rem .55rem; font-size: .9rem; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: grid; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; box-shadow: var(--shadow-lg); padding: 5.5rem 1.2rem 2rem; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; overflow-y: auto; z-index: 60; }
  .main-nav.open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: .85rem .8rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav > ul > li > a::after { display: none; }
  .main-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(6, 12, 24, .45); z-index: 55; }
  .main-nav { height: 100vh; height: 100dvh; overscroll-behavior: contain; }
  .nav-toggle[aria-expanded=true] { position: relative; z-index: 70; background: #fff; }
  .card-grid, .activity-grid, .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid, .events-grid, .about-grid, .contact-band-grid, .contact-grid, .newsletter-inner { grid-template-columns: 1fr; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-media::before { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .topbar-contact a span { display: none; }
  .topbar-contact { gap: .9rem; }
  .header-inner { min-height: 66px; gap: .8rem; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.15rem; }
  .brand-text small { display: none; }
  .brand-logo { max-height: 42px; }
  .card-grid, .card-grid.cols-2-3, .activity-grid, .album-grid { grid-template-columns: 1fr; }
  .photo-grid, .article-gallery .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .photo-grid.masonry { columns: 2; column-gap: .5rem; }
  .event-card { grid-template-columns: 1fr; }
  .event-card-media { min-height: 190px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius); }
  .newsletter-form .btn { justify-content: center; }
  .doc { flex-wrap: wrap; }
  .doc .btn { width: 100%; justify-content: center; }
  .notice { flex-wrap: wrap; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero-stats div { padding: 1rem; }
  .hero-stats dt { font-size: 1.6rem; }
  .search-big { flex-direction: column; }
  .lb-prev, .lb-next { top: auto; bottom: 1.2rem; transform: none; }
  .prose .img-left, .prose .img-right { float: none; max-width: 100%; margin: 1em 0; }
  .map-full { aspect-ratio: 4/3; }
  .prose table { display: block; overflow-x: auto; }
}
@media print {
  .topbar, .site-header, .newsletter, .site-footer, .share, .sidebar, .filter-bar { display: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .page-head { background: none; color: #000; } .page-head h1 { color: #000; }
}
