:root {
  --primary: #123456;
  --primary-2: #1d4a7a;
  --accent: #18b7a0;
  --gold: #c8a95b;
  --gold-soft: rgba(200,169,91,.18);
  --gold-strong: #8b6b22;
  --white: #ffffff;
  --surface: #f5f8fb;
  --surface-2: #edf3f8;
  --surface-card-1: #f7fbff;
  --surface-card-2: #eef5fb;
  --border: rgba(18,52,86,.11);
  --text: #1c2733;
  --muted: #66788a;
  --shadow: 0 14px 40px rgba(18,52,86,.10);
  --shadow-soft: 0 8px 24px rgba(18,52,86,.07);
  --shadow-hover: 0 20px 50px rgba(18,52,86,.14);
  --radius: 20px;
  --container: 1240px;
  --hero-text: #ffffff;
  --footer-text: #d9e5f2;
  --copyright-bg: #081422;
  --copyright-text: #bccbdd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--white); line-height:1.65; }
a { color: inherit; }
a, button, input { font: inherit; }
img { max-width:100%; height:auto; }
.container { width:min(calc(100% - 32px), var(--container)); margin-inline:auto; }
.site-wrap { overflow-x: clip; }
.topbar { background: linear-gradient(90deg, var(--primary), var(--primary-2)); color:#d9e8f4; font-size:14px; }
.topbar-inner { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.header { position:sticky; top:0; z-index:1000; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom:1px solid rgba(18,52,86,.08); }
.header-inner { min-height:86px; display:flex; align-items:center; justify-content:space-between; gap:24px; position:relative; }
.brand-fallback { text-decoration:none; font-size:1.35rem; font-weight:800; color:var(--primary); letter-spacing:.2px; }
.menu ul { list-style:none; margin:0; padding:0; display:flex; gap:28px; align-items:center; }
.menu a { text-decoration:none; color:var(--primary); font-weight:700; position:relative; }
.menu a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background:var(--accent); transition:width .22s ease; }
.menu a:hover::after, .menu a:focus::after { width:100%; }
.hamburger { display:none; border:1px solid var(--border); background:var(--white); color:var(--primary); border-radius:14px; width:48px; height:48px; cursor:pointer; box-shadow: var(--shadow-soft); }
.pattern-bg { background-image: radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 22%, transparent), transparent 25%), radial-gradient(circle at left center, color-mix(in srgb, var(--gold) 18%, transparent), transparent 20%), linear-gradient(135deg, color-mix(in srgb, var(--primary) 98%, black), color-mix(in srgb, var(--primary-2) 92%, black)); position:relative; }
.pattern-bg::before { content:""; position:absolute; inset:0; background-image:url('../images/geometric-pattern.svg'); background-size:260px auto; background-repeat:repeat; opacity:.15; pointer-events:none; mix-blend-mode:screen; }
.hero { color:var(--hero-text); }
.hero-grid { position:relative; z-index:1; min-height:600px; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:28px; align-items:center; padding:96px 0 112px; }
.kicker { display:inline-block; padding:8px 14px; border-radius:999px; margin-bottom:18px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08); color:#ebf8f4; font-size:.92rem; }
.hero h1 { margin:0 0 16px; font-size:clamp(2.3rem, 5vw, 4.8rem); line-height:1.03; letter-spacing:-.035em; }
.hero p { margin:0; max-width:700px; color:rgba(255,255,255,.90); font-size:clamp(1rem, 2vw, 1.15rem); }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:28px; }
.glass-card { background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08)); border:1px solid rgba(255,255,255,.18); box-shadow:0 24px 50px rgba(0,0,0,.14); backdrop-filter:blur(14px); border-radius:22px; }
.hero-panel { padding:24px; }
.panel-title { font-weight:800; margin-bottom:12px; }
.quick-links { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.quick-links a { display:block; text-decoration:none; padding:14px 16px; border-radius:16px; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.12); transition: transform .2s ease, background .2s ease; }
.quick-links a:hover { background:rgba(255,255,255,.16); transform:translateX(4px); }
.glass-strip { padding:12px 0 0; }
.notice-row { background:#fff; border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow-soft); padding:16px 20px; display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.badge-gold { display:inline-flex; align-items:center; justify-content:center; padding:6px 10px; border-radius:999px; background: var(--gold-soft); color: var(--gold-strong); font-weight:800; }
.main-content { padding:36px 0 64px; background: linear-gradient(var(--white), var(--surface)); }
.card-section { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:28px; margin-top:24px; transition: transform .2s ease, box-shadow .2s ease; }
.card-section:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.section-head { margin-bottom:18px; }
.section-head h2 { margin:0 0 6px; color:var(--primary); font-size:clamp(1.5rem, 2vw, 2rem); }
.section-head p { margin:0; color:var(--muted); }
.schedule-grid, .feature-grid, .cards-3, .donation-grid, .gallery-grid { display:grid; gap:18px; }
.schedule-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.schedule-card { padding:20px; border-radius:18px; background: linear-gradient(180deg, var(--surface-card-1), var(--surface-card-2)); border:1px solid var(--border); box-shadow:var(--shadow-soft); display:flex; flex-direction:column; gap:8px; transition: transform .2s ease; }
.schedule-card:hover { transform: translateY(-3px); }
.schedule-card strong { color:var(--primary); }
.feature-grid, .cards-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.feature-card, .news-card { padding:22px; border-radius:18px; border:1px solid var(--border); box-shadow:var(--shadow-soft); background: linear-gradient(180deg, var(--white), var(--surface-2)); position:relative; overflow:hidden; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover, .news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.feature-card::after, .news-card::after { content:""; position:absolute; top:-40px; right:-40px; width:120px; height:120px; border-radius:50%; background:radial-gradient(circle, var(--gold-soft), transparent 65%); }
.feature-card h3, .news-card h3 { margin:0 0 8px; color:var(--primary); }
.feature-card p, .news-card p { margin:0; color:var(--muted); }
.meta { display:inline-block; color:var(--gold-strong); background:var(--gold-soft); padding:5px 10px; border-radius:999px; font-weight:800; margin-bottom:12px; }
.donation { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:var(--hero-text); border-color:rgba(255,255,255,.08); }
.section-head-light h2, .section-head-light p { color:var(--hero-text); }
.donation-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.donation-card { padding:22px; border-radius:20px; background: rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.12); }
.gallery-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.masonry-like .gallery-box:nth-child(1) { grid-row: span 2; min-height:380px; }
.masonry-like .gallery-box:nth-child(2), .masonry-like .gallery-box:nth-child(5) { grid-column: span 2; min-height:180px; }
.gallery-box { min-height:180px; border-radius:18px; border:1px solid var(--border); box-shadow:var(--shadow-soft); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, transparent), color-mix(in srgb, var(--accent) 10%, transparent)), url('../images/ornament-lines.svg') center/cover no-repeat; transition: transform .2s ease, box-shadow .2s ease; }
.gallery-box:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--shadow-hover); }
.newsletter-block { background: linear-gradient(180deg, var(--white), var(--surface-2)); }
.newsletter-form { display:flex; gap:12px; flex-wrap:wrap; }
.newsletter-form input { flex:1 1 320px; min-height:50px; padding: 0 16px; border-radius:999px; border:1px solid var(--border); outline:none; }
.content-grid { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; margin-top:24px; }
.contact-list { display:grid; gap:12px; }
.contact-pill { display:block; text-decoration:none; padding:14px 16px; border-radius:16px; background:var(--surface); border:1px solid var(--border); font-weight:700; transition: transform .2s ease, background .2s ease; }
.contact-pill:hover { background:var(--surface-2); transform: translateX(4px); }
.btn { appearance:none; border:0; border-radius:999px; padding:14px 22px; font-weight:800; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); opacity:.98; }
.btn-primary { background:var(--accent); color:#fff; box-shadow:0 14px 30px rgba(24,183,160,.28); }
.btn-secondary { background:rgba(255,255,255,.14); color:var(--hero-text); border:1px solid rgba(255,255,255,.16); }
.btn-secondary.solid { background: rgba(255,255,255,.16); }
.btn-outline { background:transparent; color:var(--hero-text); border:1px solid rgba(255,255,255,.24); }
.pattern-footer { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 96%, black), color-mix(in srgb, var(--primary-2) 100%, black)), url('../images/geometric-pattern.svg') center/280px repeat; }
.footer { color:var(--footer-text); padding:54px 0; margin-top:40px; }
.footer-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:24px; }
.footer-grid h3, .footer-grid h4 { color:#fff; margin-top:0; }
.footer-grid a { color:inherit; text-decoration:none; }
.copyright { background:var(--copyright-bg); color:var(--copyright-text); padding:16px 0; }
.copyright-inner p { margin:0; }
.floating-contact { position:fixed; right:20px; bottom:20px; width:56px; height:56px; border-radius:50%; display:grid; place-items:center; background:var(--accent); color:#fff; text-decoration:none; box-shadow:0 14px 30px rgba(24,183,160,.28); z-index:1001; }
.module-title, .page-header h1 { color:var(--primary); }
.reveal { opacity:0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity:1; transform:none; }
.fade-left { transform: translateX(24px); }
.fade-left.in-view { transform:none; }
@media (max-width:1080px) { .hero-grid, .feature-grid, .cards-3, .schedule-grid, .gallery-grid, .footer-grid { grid-template-columns:repeat(2, minmax(0,1fr)); } .masonry-like .gallery-box:nth-child(2), .masonry-like .gallery-box:nth-child(5) { grid-column: span 1; } }
@media (max-width:920px) { .content-grid, .donation-grid, .hero-grid { grid-template-columns:1fr; } }
@media (max-width:820px) { .hamburger { display:inline-grid; place-items:center; } .menu { display:none; position:absolute; left:0; right:0; top:calc(100% + 10px); background:var(--white); border:1px solid var(--border); box-shadow:var(--shadow); border-radius:18px; padding:16px; margin:0 16px; } .menu.is-open { display:block; } .menu ul { flex-direction:column; align-items:flex-start; gap:14px; } .gallery-grid { grid-template-columns:1fr 1fr; } .masonry-like .gallery-box:nth-child(1), .masonry-like .gallery-box:nth-child(2), .masonry-like .gallery-box:nth-child(5) { grid-row:auto; grid-column:auto; min-height:180px; } }
@media (max-width:640px) { .schedule-grid, .feature-grid, .cards-3, .donation-grid, .gallery-grid, .footer-grid { grid-template-columns:1fr; } .container { width:min(calc(100% - 24px), var(--container)); } .card-section { padding:22px; } }
/* =========================================
   ✅ MENU OVERRIDE (SIGURNO & STABILNO)
   ========================================= */

/* DESKTOP */
@media (min-width: 821px) {

  /* samo TOP LEVEL horizontalno */
  .menu > ul {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .menu > ul > li {
    position: relative;
  }

  /* SUBMENU = dropdown */
  .menu > ul > li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 220px;
    padding: 10px 0;

    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
    z-index: 1000;
  }

  .menu > ul > li:hover > ul {
    display: block;
  }

  .menu > ul > li > ul li {
    display: block;
  }

  .menu > ul > li > ul a {
    display: block;
    padding: 10px 18px;
    font-weight: 600;
    white-space: nowrap;
  }

  .menu > ul > li > ul a:hover {
    background: #f5f8fb;
  }

  .hamburger {
    display: none;
  }
}

/* MOBILE */
@media (max-width: 820px) {

  .hamburger {
    display: inline-grid;
    place-items: center;
  }

  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    background: var(--white);
    border-radius: 18px;
    padding: 16px;
    margin: 0 16px;
    box-shadow: var(--shadow);
  }

  .menu.is-open {
    display: block;
  }

  .menu ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .menu ul ul {
    display: block;
    padding-left: 14px;
  }
}
/* ===== DESKTOP KLIX MEGA MENU ===== */
@media (min-width: 821px) {

  .menu > ul > li {
    position: relative;
  }

  .menu > ul > li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    padding: 18px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
    z-index: 2000;
  }

  .menu > ul > li:hover > ul {
    display: block;
  }

  .menu > ul > li > ul > li + li {
    margin-top: 10px;
  }

  .menu > ul > li > ul a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    background: #f7fbff;
  }

  .menu > ul > li > ul a:hover,
  .menu > ul > li > ul a.active {
    background: #eef5fb;
  }
}
/* FORCE LOGO MODULE VISIBLE */
.header .brand {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 52px;
  width: auto;
  display: block;
}
/* =========================================
   ✅ MENU ACTIVE STATE (JOOMLA)
   ========================================= */

/* --- TOP LEVEL ACTIVE --- */
.menu > ul > li.active > a,
.menu > ul > li.current > a,
.menu > ul > li.alias-parent-active > a {
  color: var(--accent);
}

/* underline za active */
.menu > ul > li.active > a::after,
.menu > ul > li.current > a::after,
.menu > ul > li.alias-parent-active > a::after {
  width: 100%;
}

/* --- SUBMENU ACTIVE --- */
.menu ul ul li.active > a,
.menu ul ul li.current > a {
  background: #eef5fb;
  color: var(--primary);
  font-weight: 700;
}

/* mala linija lijevo (Klix feel) */
.menu ul ul li.active > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}
/* Ako hero ima samo jedan sadržaj (nema panela) */
.hero-grid:has(> :only-child) {
  grid-template-columns: 1fr !important;
}

/* fallback za browsere bez :has() */
.hero-grid > .hero-panel:empty {
  display: none;
}
/* =========================================
   ✅ HERO GRID – UKLONI PRAZAN PROSTOR
   ========================================= */

/* default (početna – 2 kolone) */
.hero-grid.has-panel {
  grid-template-columns: 1.35fr 0.65fr;
}

/* ostale stranice – 1 kolona */
.hero-grid.no-panel {
  grid-template-columns: 1fr !important;
}
/* ✅ UKLONI PRAZAN PROSTOR NA NE-HOME STRANICAMA */
body:not(.home) .main-content {
  padding-top: 0;
}
/* =========================================
   ✅ INNER PAGES – FINI TOP SPACING
   ========================================= */

/* Ne-home stranice */
body:not(.home) .main-content {
  padding-top: 24px; /* umjesto 0 ili 36px */
}

/* Dodatni odmak za prvi card (Kontakt, itd.) */
body:not(.home) .main-content > .container > .card-section:first-child,
body:not(.home) .main-content > .container > .content-grid:first-child {
  margin-top: 12px;
}

/* Naslov stranice (Kontakt, O nama…) */
body:not(.home) .page-header h1,
body:not(.home) .component-content h1,
body:not(.home) h1:first-child {
  margin-top: 0;
}
/* =========================================
   ✅ HERO LAYOUT – BRZI LINKOVI DESNO
   ========================================= */

/* Desktop: 2 kolone */
@media (min-width: 921px) {

  .hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
  }

  /* lijeva kolona – tekst */
  .hero-copy {
    grid-column: 1;
  }

  /* desna kolona – brzi linkovi */
  .hero-panel {
    grid-column: 2;
  }
}

/* Mobile: sve ispod jedno ispod drugog */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    margin-top: 24px;
  }
}
/* =========================================
   ✅ HERO – ISPRAVAN REDOSLIJED
   ========================================= */

@media (min-width: 921px) {

  .hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
  }

  /* TEKST LIJEVO */
  .hero-copy {
    order: 1;
    grid-column: 1;
  }

  /* BRZI LINKOVI DESNO */
  .hero-panel {
    order: 2;
    grid-column: 2;
  }
}

/* Mobile – normalno jedan ispod drugog */
@media (max-width: 920px) {
  .hero-copy,
  .hero-panel {
    order: initial;
  }
}
/* =========================================
   ✅ HERO GRID – ISPRAVAN RASPORED MODULA
   ========================================= */

/* Joomla modul wrapper NE SMIJE biti grid item */
.hero-grid > .moduletable,
.hero-grid > .module,
.hero-grid > .moduletable-hero {
  display: contents;
}

/* Grid radi nad stvarnim sadržajem */
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: center;
}

/* Eksplicitno poravnanje */
.hero-copy {
  grid-column: 1;
}

.hero-panel {
  grid-column: 2;
}

/* Mobile fallback */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    margin-top: 24px;
  }
}
/* =========================================
   ✅ HERO – FINIŠ: MANJA VISINA
   ========================================= */

/* Smanji vertikalni padding hero sekcije */
.hero {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Smanji minimalnu visinu grida */
.hero-grid {
  min-height: 420px; /* prije je bilo 600px */
  padding: 64px 0 72px; /* prije 96px 0 112px */
}

/* Još kompaktnije na manjim ekranima */
@media (max-width: 1200px) {
  .hero-grid {
    min-height: 360px;
    padding: 48px 0 56px;
  }
}

/* Mobile – prirodno, bez velike visine */
@media (max-width: 920px) {
  .hero-grid {
    min-height: auto;
    padding: 40px 0;
  }
}
/* =========================================
   ✅ FINAL HERO SIZE OVERRIDE (ZAKLJUČANO)
   ========================================= */

.hero .hero-grid {
  min-height: 340px !important;
  padding: 48px 0 56px !important;
}

/* Tablet */
@media (max-width: 1200px) {
  .hero .hero-grid {
    min-height: 300px !important;
    padding: 40px 0 48px !important;
  }
}

/* Mobile */
@media (max-width: 920px) {
  .hero .hero-grid {
    min-height: auto !important;
    padding: 32px 0 !important;
  }
}
/* =========================================
   ✅ HARD RESET HERO VISINE (FINAL)
   ========================================= */

/* ukloni SVE fiksne visine */
.hero,
.hero-grid {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

/* dodatno – smanji razmak u samom modulu */
.hero .hero-copy {
  margin-bottom: 16px !important;
}

.hero .hero-panel {
  margin-top: 0 !important;
}
/* =========================================
   ✅ HERO – FINAL KOMPAKTNI IZGLED
   ========================================= */

/* smanji gornji i donji prostor */
.hero .hero-grid {
  min-height: auto !important;
  padding: 40px 0 48px !important;
}

/* naslov – manji, ali i dalje moćan */
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem) !important;
  line-height: 1.05;
  margin-bottom: 12px !important;
}

/* opis – kraći razmak */
.hero p {
  font-size: 1rem !important;
  margin-bottom: 18px !important;
  max-width: 620px;
}

/* desni panel – kompaktniji */
.hero-panel {
  padding: 16px 18px !important;
}

/* brzi linkovi – manji i gušći */
.quick-links {
  gap: 10px !important;
}

.quick-links a {
  padding: 10px 14px !important;
  font-size: 0.95rem !important;
}

/* mobile – prirodno, bez velikog bloka */
@media (max-width: 920px) {
  .hero .hero-grid {
    padding: 28px 0 !important;
  }
}
/* =========================================
   ✅ HERO – STVARNO MANJI (NEWS PORTAL STIL)
   ========================================= */

/* brutalno smanji vertikalni prostor */
.hero .hero-grid {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
  min-height: auto !important;
}

/* naslov – znatno manji */
.hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem) !important;
  margin-bottom: 8px !important;
  line-height: 1.05;
}

/* opis – kraći */
.hero p {
  font-size: 0.95rem !important;
  margin-bottom: 12px !important;
  max-width: 560px;
}

/* brzi linkovi – kompaktniji */
.hero-panel {
  padding: 14px !important;
}

.quick-links a {
  padding: 8px 12px !important;
  font-size: 0.9rem !important;
}

/* mobile – još kompaktnije */
@media (max-width: 920px) {
  .hero .hero-grid {
    padding: 20px 0 !important;
  }
}
/* =========================================
   ✅ HERO – FINALNI FINIŠ (PRIBIJ GORE)
   ========================================= */

/* sadržaj gore, ne u sredini */
.hero-grid {
  align-items: flex-start !important;
}

/* još manji vertikalni prostor */
.hero .hero-grid {
  padding-top: 24px !important;
  padding-bottom: 32px !important;
}

/* tekst bliže vrhu */
.hero-copy {
  margin-top: 0 !important;
}

/* desni panel NE centriraj vertikalno */
.hero-panel {
  margin-top: 0 !important;
  align-self: flex-start !important;
}

/* opcionalno: skrati vizuelni gradient */
.hero.pattern-bg {
  background-size: auto 70%;
}
/* =========================================
   ✅ HERO – SKRATI POZADINU (PRAVI KRAJ)
   ========================================= */

/* hero neka se prilagodi sadržaju */
.hero {
  padding-bottom: 0 !important;
}

/* grid bez viška zraka */
.hero .hero-grid {
  padding-bottom: 16px !important;
}

/* SKRATI POZADINSKI GRADIENT + PATTERN */
.hero.pattern-bg {
  background-size: auto 55% !important;
}

/* ukloni donji dio patterna */
.hero.pattern-bg::before {
  bottom: 45% !important;
}
/* =========================================
   ✅ HERO – BALANS GORNJE PLAVE POZADINE
   ========================================= */

.hero.pattern-bg {
  background-position: center 32px !important;
}

.hero.pattern-bg::before {
  top: 32px !important;
}

/* malo više zraka za tekst */
.hero .hero-grid {
  padding-top: 16px !important;
}
/* ================================
   ✅ CTA DUGME – VAZIFA
   ================================ */

.vazifa-cta {
  margin-top: 24px;
  text-align: center; /* centrirano ispod QR-a */
}

.btn-doniraj {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 38px;
  background: linear-gradient(135deg, #22c1a6, #18b7a0);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 999px; /* pill oblik */
  text-decoration: none;
  letter-spacing: .3px;
  box-shadow: 0 12px 28px rgba(24,183,160,.35);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn-doniraj:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(24,183,160,.45);
  opacity: .95;
}
/* ================================
   ✅ ČLANARINA – SECONDARY BUTTON
   ================================ */

/* sekundarni CTA kao dugme */
.clanarina-actions a[href*="ing.nl/payreq"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;

  /* outline stil */
  color: var(--accent);
  background: transparent;
  border: 2px solid rgba(24,183,160,.35);

  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}

.clanarina-actions a[href*="ing.nl/payreq"]:hover {
  background: rgba(24,183,160,.12);
  color: var(--accent);
  transform: translateY(-1px);
}
/* ================================
   ✅ DONATION – MOBILE CTA FLOW
   ================================ */

@media (max-width: 640px) {

  .donation .clanarina-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .donation .clanarina-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .donation .clanarina-actions .cta-text {
    font-size: 0.9rem;
    opacity: 0.85;
    text-align: center;
  }

  .donation .clanarina-actions .btn-vazifa {
    width: 100%;
    justify-content: center;
  }
}
/* ================================
   ✅ DONATION – ČLANARINA CTA
   ================================ */

.donation-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* sekundarno dugme */
.btn-vazifa {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  background: rgba(24,183,160,.10);
  border: 2px solid rgba(24,183,160,.35);
  text-decoration: none;
  white-space: nowrap;
}

.btn-vazifa:hover {
  background: rgba(24,183,160,.18);
}

/* helper tekst */
.cta-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 📱 MOBILE */
@media (max-width: 640px) {
  .donation-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .donation-actions a {
    width: 100%;
    justify-content: center;
  }
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
}
/* ================================
   ✅ TOPBAR – FINAL (STABLE)
   ================================ */

.topbar {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #d9e8f4;
  font-size: 14px;
}

.topbar-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap; /* NEMA DRUGOG REDA */
}

.topbar p {
  margin: 0;
  white-space: nowrap;
}

.topbar p a {
  text-decoration: none;
}

.topbar p a:hover {
  text-decoration: underline;
}

/* social icons – u ISTOM REDU */
.topbar-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-icons a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.topbar-icons a:hover {
  opacity: 1;
}

/* icons */
.icon-facebook::before {
  content: "f";
  font-weight: 800;
  font-size: 1.05rem;
  color: #d9e8f4;
}

.icon-whatsapp::before {
  content: "W";
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  background: #25D366;
  border-radius: 50%;
}

.icon-phone::before {
  content: "☎";
  font-size: 1rem;
  color: #d9e8f4;
}
/* =========================================
   ✅ MENU – JEDNOSTAVAN & STABILAN
   ========================================= */

/* Header kao referenca */
.header {
  position: sticky;
  top: 0;
  z-index: 5000;
}

.header-inner {
  position: relative;
}

/* Reset */
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Glavni meni */
.menu > ul {
  display: flex;
  gap: 28px;
  align-items: center;
}

.menu > ul > li {
  position: relative;
}

.menu a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

/* =========================
   PRVI DROPDOWN
   ========================= */
.menu > ul > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  padding: 6px 0;
  min-width: 200px;
  z-index: 6000;
}

/* hover */
.menu > ul > li:hover > ul {
  display: block;
}

/* hover buffer (da ne bježi) */
.menu > ul > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 12px;
}

/* =========================
   DRUGI DROPDOWN
   ========================= */
.menu > ul > li > ul > li {
  position: relative;
}

.menu > ul > li > ul > li > ul {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  padding: 6px 0;
  min-width: 200px;
  z-index: 6100;
}

.menu > ul > li > ul > li:hover > ul {
  display: block;
}

/* ako nema mjesta desno */
.menu > ul > li:last-child > ul > li > ul {
  left: auto;
  right: 100%;
}

/* =========================
   LINKOVI
   ========================= */
.menu > ul > li > ul a {
  display: block;
  padding: 8px 14px;
}

.menu > ul > li > ul a:hover {
  background: #f5f8fb;
}
.menu > ul > li > ul,
.menu > ul > li > ul > li > ul {
  min-width: 160px;
  max-width: 190px;
}
/* ✅ DROPDOWN ŠIRINA PO TEKSTU */
.menu > ul > li > ul,
.menu > ul > li > ul > li > ul {
  width: max-content;     /* ← ključ */
  min-width: unset;       /* ukloni forsiranje */
  max-width: none;        /* nema plafona */
}

/* malo manji padding da izgleda elegantno */
.menu > ul > li > ul a {
  padding: 6px 12px;
}

/* =================================
   ✅ TOPBAR – HARD FIX (UVIJEK 1 RED)
   ================================= */

/* roditelj */
.topbar {
  position: relative;
}

/* tekst ostaje lijevo */
.topbar-inner {
  white-space: nowrap;
  overflow: hidden;
  padding-right: 120px; /* prostor za ikone */
}

/* IKONE – FORSIRANO DESNO */
.topbar-icons {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
}
/* =========================================
   ✅ UKLONI PRAZAN PROSTOR IZNAD FOOTERA
   ========================================= */

/* smanji razmak ispod contenta */
.main-content {
  padding-bottom: 0 !important;
}

/* ukloni gornji margin footera */
.footer {
  margin-top: 0 !important;
}
/* =========================================
   ✅ FORCE ARTICLE NAVIGATION VISIBLE
   ========================================= */

.pagenavigation {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}

.pagenavigation * {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 14px !important;
  color: #000 !important;
}
/* ✅ CENTER ARTICLE NAV */
.pagenavigation {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 32px;
}
/* ako nema prethodnog članka */
.pagenavigation .nav-prev:empty {
  display: none;
}
/* ✅ MOBILE STACK */
@media (max-width: 640px) {
  .pagenavigation {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}
/* ✅ LINK STYLE */
.pagenavigation a {
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

/* hover efekt */
.pagenavigation a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}
/* ✅ FINAL ARTICLE NAV */
.pagenavigation{
  display:flex;
  justify-content:center;
  gap:60px;
  margin-top:32px;
}

.pagenavigation a{
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-decoration:none;
  color:#000;
  transition:color .2s ease, transform .2s ease;
}

.pagenavigation a:hover{
  color:var(--accent);
  transform:translateY(-2px);
}

/* 📱 Mobile */
@media (max-width:640px){
  .pagenavigation{
    flex-direction:column;
    align-items:center;
    gap:16px;
  }
}
/* =========================================
   ✅ GEBEDSTIJDEN – MOBILE COLLAPSE (FINAL)
   ========================================= */

/* wrapper */
.hero-gebedstijden {
  margin-top: 16px;
}

/* toggle dugme */
.gebed-toggle {
  display: none; /* desktop */
  margin: 12px 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* iframe – desktop */

@media (min-width: 921px) {

  .hero-gebedstijden {
    max-width: 720px;     /* suzi widget */
  }

  .hero-gebedstijden iframe {
    height: 130px;        /* smanji visinu */
  }
}
/* =========================
   📱 MOBILE
   ========================= */
@media (max-width: 920px) {

  /* pokaži dugme */
  .gebed-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  /* sakrij widget po defaultu */
  .gebed-content {
    display: none;
  }

  /* otvori kad je kliknuto */
  .hero-gebedstijden.is-open .gebed-content {
    display: block;
    margin-top: 12px;
  }

  /* manja visina iframe-a */
  .hero-gebedstijden iframe {
    height: 120px;
  }
}
/* =========================================
   ✅ FIX ANCHOR SCROLL OFFSET (STICKY HEADER)
   ========================================= */

/* voor alle secties waar je naartoe scrollt */
section[id],
.card-section[id],
[id].card-section {
  scroll-margin-top: 120px;
}
/* =========================================
   ✅ VAKTIJA – MJESEČNI KALENDAR (PRO LOOK)
   ========================================= */

/* wrapper liste */
.category-list,
.com-content-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

/* naslov */
.category-list h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: var(--primary);
}

/* tabela */
.category-list table {
  width: 100%;
  border-collapse: collapse;
}

/* zaglavlje */
.category-list thead th {
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

/* redovi */
.category-list tbody tr {
  transition: background .2s ease;
}

.category-list tbody tr:hover {
  background: var(--surface);
}

/* ćelije */
.category-list td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

/* NAZIV MJESECA */
.category-list td a {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  text-decoration: none;
}

.category-list td a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* HITOVI – diskretno */
.category-list td:last-child {
  text-align: right;
  font-size: 0.9rem;
  color: var(--muted);
}

.category-list td:last-child::after {
  content: " pregleda";
  opacity: .6;
}

/* Prikaz # dropdown */
.limit {
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.limit select {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
}

/* =========================================
   ✅ VAKTIJA – MOBILE FIX (TABLE → CARDS)
   ========================================= */

@media (max-width: 640px) {

  /* SAKRI SAMO HEADER TABELE */
  .category-list thead {
    display: none;
  }

  /* tabela ostaje */
  .category-list table {
    display: table;
    width: 100%;
  }

  /* svaki red = kartica */
  .category-list tbody tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
  }

  /* ćelije vertikalno */
  .category-list td {
    display: block;
    width: 100%;
    border: none;
    padding: 6px 0;
  }

  /* naziv mjeseca */
  .category-list td:first-child a {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
  }

  /* hitovi ispod naziva */
  .category-list td:last-child {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: left;
  }

  .category-list td:last-child::after {
    content: " pregleda";
    opacity: .6;
  }
}
/* ✅ VAKTIJA – UKLONI ZAGLAVLJE TABELE */
.category-list thead {
  display: none;
}
/* =========================================
   ✅ VAKTIJA – IKONICA KALENDARA
   ========================================= */

.category-list td:first-child a::before {
  content: "📅";
  margin-right: 8px;
  opacity: 0.85;
}
/* =========================================
   ✅ VAKTIJA – FINAL ISTICANJE TRENUTNOG MJESECA
   ========================================= */

/* cijeli red */
.category-list tr.current-month {
  background: linear-gradient(
    90deg,
    rgba(24,183,160,.12),
    rgba(24,183,160,.04)
  );
}

/* lijevi akcent */
.category-list tr.current-month td:first-child {
  position: relative;
  padding-left: 18px;
}

.category-list tr.current-month td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}

/* naslov mjeseca */
.category-list tr.current-month td:first-child a {
  color: var(--accent);
  font-weight: 900;
}

/* 📅 ikonica – malo profinjenija */
.category-list td:first-child a::before {
  content: "📅";
  margin-right: 10px;
  opacity: 0.75;
}

/* hitovi malo tiši */
.category-list tr.current-month td:last-child {
  color: var(--muted);
}

/* =========================================
   ✅ VAKTIJA – IKONICA KOJA SE NE MOŽE SAKRITI
   ========================================= */

/* prvi stupac (naziv mjeseca) */
.category-list tbody tr td:first-child {
  padding-left: 44px; /* prostor za ikonu */
  position: relative;
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 16px 16px;

  /* SVG kalendar ikona */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2318b7a0'>\
<path d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 1-1Zm14 7H3v10a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V9Z'/>\
</svg>");
}

/* dodatno naglasi trenutni mjesec */
.category-list tr.current-month td:first-child {
  background-color: rgba(24,183,160,.08);
}
.visually-hidden,
.visually-hidden * {
    display: none !important;
}