/* ==========================================================================
   Klub Knjige – stil po uzoru na moderni "club" raspored:
   plutajući meni, ogromni naslovi, zaobljene kartice, dosta praznog prostora.
   Boje su iz logotipa: crvena (srce, korice) i plava (stranice knjige).
   ========================================================================== */
:root {
    --red: #9a191e;
    --red-dark: #6f1115;
    --red-soft: #f6e8e8;
    --blue: #719ab6;
    --blue-dark: #3f6786;
    --blue-soft: #e8f0f6;
    --ink: #1b1a1f;
    --muted: #6c6b72;
    --line: #e3e1dd;
    --bg: #f4f2ef;
    --panel: #ebe9e5;
    --card: #ffffff;
    --r-sm: 10px;
    --r: 18px;
    --r-lg: 28px;
    --shadow: 0 1px 2px rgba(20,20,30,.04), 0 8px 24px rgba(20,20,30,.06);
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
.center { text-align: center; }
.arr { display: inline-block; transition: transform .2s; }
a:hover .arr { transform: translate(2px, -2px); }

/* ---------- Male oznake ("pill") ---------- */
.pill { display: inline-block; padding: 6px 16px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 18px; }
.pill-dark { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }

/* ---------- Dugmad ---------- */
.btn, .btn-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; padding: 12px 24px; border-radius: 999px; font: 700 .95rem var(--font); text-decoration: none; border: 1.5px solid var(--red); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover, .btn-submit:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--card); color: var(--red); border-color: var(--red); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--red-dark); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ==========================================================================
   Zaglavlje – plutajuća zaobljena traka
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 20px 0; }
.nav-shell { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 20px; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px 10px 18px; box-shadow: 0 4px 18px rgba(20,20,30,.05); }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name .red { color: var(--red); } .brand-name .blue { color: var(--blue); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.tabs { list-style: none; display: flex; align-items: center; gap: 2px; }
.tab { position: relative; }
.tab-link { display: flex; align-items: center; gap: 4px; padding: 9px 13px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .93rem; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.tab:hover > .tab-link, .tab:focus-within > .tab-link { background: var(--bg); color: var(--red); }
.caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); display: inline-block; margin-left: 4px; opacity: .7; }
.caret.side { transform: rotate(-45deg); margin-left: auto; }
.mobile-only { display: none; }

.dropdown { list-style: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px rgba(20,20,30,.14); padding: 8px; display: none; z-index: 60; }
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* most za miša */
.dropdown a { display: flex; align-items: center; padding: 9px 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; white-space: nowrap; }
.dropdown a:hover { background: var(--red-soft); color: var(--red); }
.dropdown .has-sub { position: relative; }
.dropdown.sub { top: -9px; left: calc(100% + 8px); transform: none; }
.dropdown.sub::before { left: -12px; top: 0; bottom: 0; width: 12px; height: auto; right: auto; }
.tab:hover > .dropdown, .tab:focus-within > .dropdown, .tab.open > .dropdown,
.dropdown .has-sub:hover > .dropdown, .dropdown .has-sub:focus-within > .dropdown, .dropdown .has-sub.open > .dropdown { display: block; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.btn-join { padding: 9px 18px; font-size: .9rem; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span { display: block; width: 16px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ==========================================================================
   Sadržaj – opšte
   ========================================================================== */
main { padding: 34px 20px 70px; min-height: 50vh; }
.wide { max-width: 1240px; margin: 0 auto; }
.container { background: var(--card); padding: 48px 52px; border-radius: var(--r-lg); border: 1px solid var(--line); max-width: 820px; margin: 0 auto; box-shadow: var(--shadow); }
.container h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 22px; }
.container h2 { margin: 34px 0 10px; font-size: 1.35rem; }
.container p { margin-bottom: 14px; color: var(--muted); font-size: 1.05rem; }
.page-title { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.035em; margin-bottom: 14px; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; margin-bottom: 20px; }
.section-title.big { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 34px; max-width: 680px; }
.small-h { margin: 44px 0 14px; font-size: 1.2rem; }
.crumbs { font-size: .9rem; margin-bottom: 18px; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--muted); } .crumbs a:hover { color: var(--red); }

.callout { background: var(--blue-soft); border-radius: var(--r); padding: 18px 22px; margin: 18px 0; color: var(--ink); }
.callout.soon { background: var(--card); border: 1px dashed #cfccc6; }
.callout.ok { background: #e9f4ec; color: #1f5134; text-align: center; }
.callout.err { background: var(--red-soft); color: var(--red-dark); }

/* Kartice oblasti */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card { background: var(--card); padding: 26px; border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; min-height: 210px; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--red); opacity: 0; transition: opacity .2s; }
.card:nth-child(even)::after { background: var(--blue); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 1.45rem; }
.card p { color: var(--muted); flex: 1; }
.more { font-weight: 700; color: var(--red); display: flex; justify-content: space-between; align-items: center; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; transition: .15s; }
.chips a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Stavka (poster + opis) */
.item { display: flex; gap: 36px; align-items: center; background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); padding: 26px; margin-bottom: 22px; scroll-margin-top: 110px; }
.item:target { box-shadow: 0 0 0 3px var(--blue); }
.item > img { flex: 0 0 280px; width: 280px; border-radius: var(--r); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.item h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 12px; }
.item p { color: var(--muted); margin-bottom: 12px; }
.badge { display: inline-block; background: var(--blue-soft); color: var(--blue-dark); font-size: .8rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.slide-info { list-style: none; font-size: .95rem; }
.item .slide-info li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); }

/* Lista događaja – naziv levo, datum desno */
.events { list-style: none; }
.events li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.events li:first-child { border-top: 1px solid var(--line); }
.events .ev-title { font-weight: 600; color: var(--ink); }
.events .date { flex: none; color: var(--muted); font-size: .92rem; font-weight: 600; text-align: right; }

/* ==========================================================================
   Početna
   ========================================================================== */
.hero { position: relative; max-width: 1240px; margin: 0 auto; padding: 46px 20px 0; text-align: center; }
.hero .pill { margin-bottom: 20px; }
.hero-title { font-size: clamp(2.5rem, 7.4vw, 6.4rem); letter-spacing: -0.045em; line-height: 1.0; font-weight: 800; margin: 0 auto 44px; max-width: 1100px; }
.hero-title span { display: block; }
.hero-title span:last-child { color: var(--red); }
.hero-stage { position: relative; }

.hero-card { position: relative; height: clamp(560px, 62vw, 640px); border-radius: var(--r-lg); overflow: hidden; background: var(--red-dark); text-align: left; box-shadow: 0 30px 60px -30px rgba(60,10,12,.45); }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 56px 64px 96px; background-size: cover; background-position: center; color: #fff; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(60,8,11,.88) 0%, rgba(80,12,16,.55) 55%, rgba(30,40,60,.35) 100%); z-index: 0; }
.slide.active { opacity: 1; visibility: visible; }
.slide > * { position: relative; z-index: 1; }
.slide .tag { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #cfe3f2; margin-bottom: 14px; }
.slide h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.035em; margin-bottom: 16px; }
.slide p { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 520px; margin-bottom: 16px; }
.slide .slide-info { color: rgba(255,255,255,.9); margin-bottom: 22px; max-width: 520px; }
.slide .slide-info li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: .92rem; }
.slide-img { justify-self: center; display: block; }
.slide-img img { display: block; max-height: 440px; width: auto; border-radius: var(--r); box-shadow: 0 30px 60px rgba(0,0,0,.45); transform: rotate(2deg); transition: transform .4s; }
.slide.active .slide-img img { animation: rise .8s ease both; }
@keyframes rise { from { transform: translateY(20px) rotate(4deg); opacity: .4; } to { transform: rotate(2deg); opacity: 1; } }
.slider-controls { position: absolute; left: 64px; bottom: 30px; z-index: 5; display: flex; align-items: center; gap: 10px; color: #fff; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: transparent; color: #fff; font-size: 1.15rem; cursor: pointer; transition: .15s; }
.round:hover { background: #fff; color: var(--red-dark); border-color: #fff; }
.dots { display: flex; gap: 6px; margin-left: 10px; }
.dot { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.dot.active { width: 26px; background: #fff; }
.counter { margin-left: 12px; font-size: .9rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.counter b { color: #fff; }

.home > section { margin-top: 90px; }
.home > section:first-child { margin-top: 30px; }

.home-events { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.events-photo { display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--panel); aspect-ratio: 4 / 5; max-height: 640px; }
.events-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .6s; }
.events-photo:hover img { transform: scale(1.03); }

.panel { background: var(--panel); border-radius: var(--r-lg); padding: 16px; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 8px 10px 18px; flex-wrap: wrap; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.filter-tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600; }
.filter-tabs a:hover { background: var(--card); }
.filter-tabs a.active { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.panel-tagline { text-align: right; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.panel .center { padding: 22px 0 8px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bcard { position: relative; background: var(--card); border-radius: var(--r); min-height: 380px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.bcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bcard.wide-card { grid-column: span 2; }
.bcard .label { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--red-soft); color: var(--red); font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.bcard .label.blue { background: var(--blue-soft); color: var(--blue-dark); }
.bcard-media { flex: 1; display: flex; align-items: center; justify-content: center; padding: 50px 30px 20px; background: radial-gradient(circle at 50% 60%, #fbfaf8, #f1efeb); }
.bcard-media img { max-height: 290px; width: auto; border-radius: 8px; box-shadow: 0 16px 30px rgba(0,0,0,.18); transition: transform .4s; }
.bcard:hover .bcard-media img { transform: scale(1.03) rotate(-1deg); }
.bcard-info { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 10px 10px; padding: 12px 14px; background: var(--bg); border-radius: var(--r-sm); }
.bcard-info strong { display: block; font-size: .98rem; }
.bcard-info span { font-size: .84rem; color: var(--muted); }
.bcard-info .arr { font-size: 1.1rem; color: var(--ink); }
.type-card .type-body { flex: 1; padding: 64px 28px 20px; }
.type-card h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.035em; margin-bottom: 12px; color: #fff; }
.type-card p { color: rgba(255,255,255,.82); max-width: 460px; }
.type-card.red { background: linear-gradient(150deg, var(--red) 0%, var(--red-dark) 100%); }
.type-card.blue { background: linear-gradient(150deg, var(--blue) 0%, var(--blue-dark) 100%); }
.type-card .label { background: rgba(255,255,255,.18); color: #fff; }
.type-card .label.blue { background: rgba(255,255,255,.18); color: #fff; }
.type-card .bcard-info { background: rgba(255,255,255,.14); }
.type-card .bcard-info strong, .type-card .bcard-info .arr { color: #fff; }
.type-card .bcard-info span { color: rgba(255,255,255,.75); }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.mini-chips span { font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; }

.home-topics { text-align: center; }
.home-topics .chips { justify-content: center; }

.cta { background: linear-gradient(120deg, var(--red-dark), var(--red) 60%, #a8333a); color: #fff; border-radius: var(--r-lg); padding: 52px 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; background: rgba(113,154,182,.28); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.82); }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.contact-card { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); padding: 26px; }
.contact-card h3 { margin-bottom: 10px; font-size: 1.1rem; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.contact-card p { color: var(--ink); }
.phone-num { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.contact-actions, .social-list { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-viber { background: #7360f2; border-color: #7360f2; } .btn-viber:hover { background: #5b49d1; border-color: #5b49d1; }
.social-list a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink); transition: .15s; }
.social-list a:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

/* ==========================================================================
   Forma "Učlani se"
   ========================================================================== */
.container form { text-align: left; margin-top: 10px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .95rem; color: var(--ink); }
.form-group input[type=text], .form-group input[type=email], .form-group input[type=tel], .form-group textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; font: inherit; transition: .15s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.req { color: var(--red); font-weight: 600; font-size: .82rem; }
.checks { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.checks legend { padding: 0 6px; font-weight: 700; }
.checks small { font-weight: 500; color: var(--muted); }
label.check, .form-group label.check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-weight: 500; color: var(--ink); cursor: pointer; }
label.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--red); }
.form-group.has-error input[type=text] { border-color: var(--red); background: #fff; }
.field-error { color: var(--red) !important; font-size: .92rem !important; margin: 6px 0 0 !important; font-weight: 600; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.btn-submit { width: 100%; margin-top: 12px; padding: 15px; font-size: 1rem; }

/* Admin */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); margin-top: 16px; }
.admin-table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.admin-table th { background: var(--bg); font-weight: 700; }

/* ==========================================================================
   Mapa i podnožje
   ========================================================================== */
.map-section { max-width: 1240px; margin: 0 auto; padding: 0 20px 60px; }
.map-section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; margin-bottom: 20px; }
.map-section iframe { display: block; width: 100%; height: 440px; border: 0; border-radius: var(--r-lg); background: var(--panel); filter: grayscale(.25); }

.site-footer { background: var(--ink); color: rgba(255,255,255,.75); margin: 0 20px 20px; border-radius: var(--r-lg); padding: 48px 52px 26px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #cfe3f2; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-emblem { height: 44px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand strong { display: block; color: #fff; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.footer-h { display: block; color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer-col p { margin-bottom: 8px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: #fff; transition: .15s; }
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-copy { max-width: 1140px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

/* ==========================================================================
   Tablet / telefon
   ========================================================================== */
@media (max-width: 1080px) {
    .tab-link { padding: 8px 9px; font-size: .88rem; }
    .btn-join { display: none; }
}
@media (max-width: 900px) {
    .site-header { padding: 10px 12px 0; }
    .nav-shell { flex-wrap: wrap; padding: 8px 8px 8px 14px; gap: 10px; }
    .brand-name { font-size: 1rem; }
    .nav-actions { margin-left: auto; }
    .menu-toggle { display: flex; }
    .main-nav { display: none; order: 3; flex-basis: 100%; }
    .main-nav.open { display: block; }
    .tabs { flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 4px; border-top: 1px solid var(--line); }
    .tab-link { justify-content: space-between; padding: 12px 10px; font-size: 1rem; border-radius: var(--r-sm); }
    .mobile-only { display: block; }
    .tab.join .tab-link { background: var(--red); color: #fff; justify-content: center; margin-top: 6px; }
    .dropdown, .dropdown.sub { position: static; transform: none; display: none; box-shadow: none; border: 0; border-left: 2px solid var(--red-soft); border-radius: 0; margin: 0 0 6px 12px; min-width: 0; padding: 2px 0 2px 6px; }
    .dropdown::before { display: none; }
    .tab:hover > .dropdown, .tab:focus-within > .dropdown, .dropdown .has-sub:hover > .dropdown, .dropdown .has-sub:focus-within > .dropdown { display: none; }
    .tab.open > .dropdown, .dropdown .has-sub.open > .dropdown { display: block; }

    .hero { padding-top: 34px; }
    .hero-title { margin-bottom: 28px; }
    .hero-title { margin-bottom: 44px; }
    .hero-card { height: auto; min-height: 0; }
    .slide { position: relative; display: none; grid-template-columns: 1fr; padding: 34px 24px 100px; gap: 26px; text-align: left; }
    .slide.active { display: grid; }
    .slide-img { order: -1; }
    .slide-img img { max-height: 300px; }
    .slider-controls { left: 24px; bottom: 26px; }
    .counter { display: none; }

    .home > section { margin-top: 64px; }
    .home-events { grid-template-columns: 1fr; }
    .events-photo { display: none; }
    .events-photo { aspect-ratio: 4 / 5; }
    .bento { grid-template-columns: 1fr; }
    .bcard.wide-card { grid-column: auto; }
    .bcard { min-height: 340px; }
    .panel-tagline { text-align: left; }
    .cta { padding: 36px 28px; }

    .container { padding: 30px 22px; border-radius: var(--r); }
    .item { flex-direction: column; align-items: stretch; padding: 18px; }
    .item > img { width: 70%; flex: initial; align-self: center; }
    .events li { flex-direction: column; gap: 2px; }
    .events .date { text-align: left; }
    .map-section iframe { height: 320px; }
    .site-footer { margin: 0 10px 10px; padding: 36px 24px 22px; }
    .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 420px) {
    .brand-logo { height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Sadržaj: teme, biblioteka, medioteka, događaji
   ========================================================================== */
.pill-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-block; font-size: .76rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--red-soft); color: var(--red); text-decoration: none; }
.tag-blue { background: var(--blue-soft); color: var(--blue-dark); }
a.tag:hover { filter: brightness(.96); }
.link-arrow { font-weight: 700; color: var(--red); text-decoration: none; white-space: nowrap; }
.link-arrow:hover { color: var(--red-dark); }

.theme-intro { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; max-width: 860px; color: var(--ink); margin: 6px 0 40px; font-weight: 500; }

/* Tri izbora na stranici teme */
.pick3, .type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.type-cards { grid-template-columns: repeat(3, 1fr); margin-bottom: 26px; }
.pick { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 210px; padding: 26px; border-radius: var(--r-lg); color: #fff; text-decoration: none; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.pick:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(0,0,0,.45); }
.pick.red { background: linear-gradient(150deg, var(--red), var(--red-dark)); }
.pick.blue { background: linear-gradient(150deg, var(--blue), var(--blue-dark)); }
.pick.dark { background: linear-gradient(150deg, #3a3a46, var(--ink)); }
.pick.ink { background: linear-gradient(150deg, #34323a, var(--ink)); }
.pick-k { font-size: .82rem; font-weight: 700; opacity: .7; }
.pick h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; margin-top: auto; }
.pick p { color: rgba(255,255,255,.8); font-size: .95rem; }
.pick > .arr { position: absolute; top: 22px; right: 24px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

.theme-sec { margin-top: 70px; scroll-margin-top: 100px; }
.ev-current-sec { scroll-margin-top: 100px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 4px; }

/* Knjige */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.book { display: flex; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; scroll-margin-top: 110px; }
.book:target { box-shadow: 0 0 0 3px var(--blue); }
.book-cover { flex: 0 0 120px; }
.book-body h3 { font-size: 1.25rem; margin: 2px 0 4px; }
.book-author { color: var(--muted); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.book-desc { color: var(--muted); font-size: .95rem; }
.cover-img { width: 100%; display: block; border-radius: 6px; box-shadow: 0 10px 22px rgba(0,0,0,.2); }
.cover { position: relative; aspect-ratio: 2 / 3; border-radius: 4px 8px 8px 4px; padding: 14px 12px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; box-shadow: 0 10px 22px rgba(0,0,0,.22), inset 6px 0 0 rgba(0,0,0,.18); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.14), transparent 40%); pointer-events: none; }
.cover-red { background: var(--red); } .cover-wine { background: var(--red-dark); }
.cover-blue { background: var(--blue-dark); } .cover-navy { background: #26445e; } .cover-ink { background: #2a2930; }
.cover-author { font-size: .62rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.cover-title { font-size: .95rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.cover-mark { width: 46%; opacity: .9; filter: brightness(0) invert(1); align-self: center; }
.cover.big { padding: 26px 22px; } .cover.big .cover-title { font-size: 1.6rem; } .cover.big .cover-author { font-size: .8rem; }

/* Istaknuta knjiga */
.featured-book { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: center; padding: 50px 56px; border-radius: var(--r-lg); color: #fff; background: radial-gradient(circle at 15% 30%, #a52a30 0%, var(--red-dark) 55%, #3e0a0d 100%); scroll-margin-top: 110px; }
.fb-cover .cover-img.big { box-shadow: 0 30px 60px rgba(0,0,0,.45); transform: rotate(-2deg); border-radius: 8px; }
.fb-body .label { display: inline-block; font-size: .8rem; font-weight: 700; padding: 5px 13px; border-radius: 999px; background: rgba(255,255,255,.16); margin-bottom: 16px; }
.fb-body h2 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -0.035em; margin-bottom: 6px; }
.fb-author { color: #cfe3f2; font-weight: 700; margin-bottom: 16px; }
.fb-body p { color: rgba(255,255,255,.85); max-width: 620px; margin-bottom: 10px; }
.fb-note { font-size: .92rem; opacity: .8; }
.card-list { list-style: none; font-size: .9rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; }
.card-list li { padding: 3px 0; font-weight: 600; } .card-list span { color: var(--muted); font-weight: 500; }

/* Filteri */
.filter-panel { margin-bottom: 22px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.type-tabs, .theme-filter { display: flex; flex-wrap: wrap; gap: 4px; }
.type-tabs a, .theme-filter a { padding: 8px 15px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.type-tabs a { font-weight: 700; }
.type-tabs a:hover, .theme-filter a:hover { background: var(--card); }
.type-tabs a.active { background: var(--ink); color: #fff; }
.theme-filter a.active { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.08); color: var(--red); }
.theme-sec > .theme-filter { background: var(--panel); border-radius: 999px; padding: 6px; margin-bottom: 16px; display: inline-flex; }

/* Snimci */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.media-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 110px; }
.media-card:target { box-shadow: 0 0 0 3px var(--blue); }
.media-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 60%, #f7f5f1, var(--panel)); overflow: hidden; text-decoration: none; }
.media-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .5s; }
.media-thumb:hover img { transform: scale(1.04); }
.media-thumb.no-img { background: linear-gradient(140deg, var(--blue-dark), #26445e); display: flex; align-items: center; justify-content: center; padding: 30px; }
.media-thumb-title { color: #fff; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; text-align: center; line-height: 1.2; }
.play { position: absolute; left: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--red); display: flex; align-items: center; justify-content: center; font-size: .95rem; padding-left: 3px; box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .2s; }
.media-thumb:hover .play { transform: scale(1.08); }
.media-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.media-body h3 { font-size: 1.3rem; margin-bottom: 4px; }
.meta { color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.media-desc { color: var(--muted); font-size: .95rem; flex: 1; margin-bottom: 12px; }

/* Događaji – lista */
.ev-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ev-link { display: flex; align-items: center; gap: 18px; padding: 14px 18px 14px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.ev-link:hover { border-color: transparent; box-shadow: var(--shadow); }
.ev-date { flex: none; width: 62px; height: 62px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ev-date b { font-size: 1.45rem; font-weight: 800; } .ev-date small { font-size: .78rem; font-weight: 700; text-transform: uppercase; margin-top: 3px; }
.ev-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ev-name { font-weight: 800; font-size: 1.08rem; }
.ev-meta { color: var(--muted); font-size: .88rem; }
.ev-cta { flex: none; font-weight: 700; color: var(--red); font-size: .92rem; }
.ev-row.past .ev-date { background: var(--panel); color: var(--muted); }
.ev-row.past .ev-cta { color: var(--blue-dark); }
.home-events .ev-title { text-decoration: none; color: var(--ink); }
.home-events .ev-title:hover { color: var(--red); }

/* Događaj – istaknuti panel sa prijavom */
.ev-feature { display: grid; grid-template-columns: 260px 1fr 380px; gap: 32px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; margin: 0 0 10px; scroll-margin-top: 100px; }
.ev-feature-media img { width: 100%; border-radius: var(--r); box-shadow: 0 16px 30px rgba(0,0,0,.2); display: block; }
.ev-bigdate { aspect-ratio: 4 / 5; border-radius: var(--r); background: linear-gradient(150deg, var(--red), var(--red-dark)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ev-bigdate b { font-size: 4.4rem; font-weight: 800; line-height: 1; } .ev-bigdate span { font-size: 1.3rem; font-weight: 700; text-transform: uppercase; }
.ev-bigdate img { width: 50%; margin-top: 18px; filter: brightness(0) invert(1); opacity: .85; }
.ev-feature-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; margin: 4px 0 12px; }
.ev-desc { color: var(--muted); margin-bottom: 18px; }
.ev-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.ev-facts dt { color: var(--muted); font-weight: 600; } .ev-facts dd { font-weight: 600; }
.ev-feature-form { background: var(--bg); border-radius: var(--r); padding: 22px; }
.ev-feature-form h3 { font-size: 1.25rem; margin-bottom: 4px; }
.form-intro { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.ev-feature-form .form-group input[type=text] { background: #fff; }
.ev-feature-form .btn { margin-top: 12px; }
.reg-form label.check { font-size: .9rem; }

@media (max-width: 1080px) {
    .ev-feature { grid-template-columns: 200px 1fr; }
    .ev-feature-form { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .pick3, .type-cards { grid-template-columns: 1fr; }
    .pick { min-height: 170px; }
    .featured-book { grid-template-columns: 1fr; padding: 30px 24px; gap: 28px; }
    .fb-cover { max-width: 220px; }
    .book-grid, .media-grid { grid-template-columns: 1fr; }
    .book-cover { flex-basis: 96px; }
    .ev-feature { grid-template-columns: 1fr; padding: 18px; }
    .ev-feature-media { max-width: 240px; }
    .ev-link { flex-wrap: wrap; gap: 12px; }
    .ev-cta { width: 100%; padding-left: 74px; }
    .theme-sec { margin-top: 54px; }
    .theme-sec > .theme-filter { border-radius: var(--r); }
}


/* ---------- Izbor jezika: planeta + padajući meni sa zastavama ---------- */
.lang-menu { position: relative; }
.lang-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--card); color: var(--blue-dark); border-color: var(--blue); }
.lang-list { list-style: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px rgba(20,20,30,.14); padding: 6px; display: none; z-index: 70; }
.lang-menu.open .lang-list { display: block; }
.lang-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; }
.lang-list a:hover { background: var(--bg); }
.lang-list a.active { background: var(--blue-soft); color: var(--blue-dark); }
.lang-list .flag { flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.lang-name { flex: 1; }
.lang-code { font-size: .74rem; font-weight: 700; color: var(--muted); }
.lang-list a.active .lang-code::after { content: " ✓"; color: var(--blue-dark); }
.slide .tag { background: none; padding: 0; border-radius: 0; color: #cfe3f2; font-size: .8rem; }

/* Imejl + telefon: bar jedno je obavezno */
.contact-pair { border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 4px; margin: 0 0 18px; min-width: 0; }
.contact-pair legend { float: left; width: 100%; padding: 0; margin: 0 0 6px; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.contact-pair legend + * { clear: both; }
.contact-pair.has-error { border-color: var(--red); }
.pair-hint { color: var(--muted); font-size: .86rem; margin: 0 0 10px !important; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-pair .form-group { margin-bottom: 12px; }
.contact-pair > .field-error { margin: 0 0 12px !important; }
.form-group.has-error input { border-color: var(--red); background: #fff; }
.ev-feature-form .form-row { grid-template-columns: 1fr; gap: 0; }
.ev-feature-form .contact-pair { background: #fff; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* Slika sa providnom pozadinom (npr. 3D prikaz knjige) – bez okvira, samo senka oblika */
.ev-feature-media.cutout img { box-shadow: none; border-radius: 0; filter: drop-shadow(0 18px 24px rgba(0,0,0,.22)); }

/* ---------- YouTube plejer i delovi serije ---------- */
.yt { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-facade { position: absolute; inset: 0; display: block; background-size: cover; background-position: center; }
.yt-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.45)); transition: opacity .2s; }
.yt-facade .play { z-index: 1; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 68px; height: 68px; font-size: 1.3rem; background: var(--red); color: #fff; }
.yt-facade:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.media-thumb.video { aspect-ratio: auto; background: #000; }
.media-card.has-video { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; }
.media-card.has-video .media-thumb.video { display: flex; align-items: center; }
.parts { list-style: none; margin: 4px 0 14px; border-top: 1px solid var(--line); }
.parts li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.part-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }
.parts li.has-video .part-n { background: var(--red-soft); color: var(--red); }
.parts li.current .part-n { background: var(--red); color: #fff; }
.part-main { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.part-main b { font-size: .95rem; } .part-main small { color: var(--muted); font-size: .8rem; }
.part-btn { flex: none; border: 1px solid var(--red); background: transparent; color: var(--red); border-radius: 999px; padding: 6px 13px; font: 700 .82rem var(--font); cursor: pointer; transition: .15s; }
.part-btn:hover, .parts li.current .part-btn { background: var(--red); color: #fff; }
.part-soon { flex: none; font-size: .8rem; font-weight: 600; color: var(--muted); }
.parts li.soon .part-main b { color: var(--muted); }

.ev-videos { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 4px; scroll-margin-top: 100px; }
.ev-videos h3 { font-size: 1.4rem; margin-bottom: 14px; }
.ev-videos-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
.ev-player .yt { border-radius: var(--r); }
.ev-videos-grid.single { grid-template-columns: minmax(0, 860px); }
.parts-h { display: block; font-weight: 700; color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
@media (max-width: 900px) {
    .media-card.has-video { grid-template-columns: 1fr; }
    .ev-videos-grid { grid-template-columns: 1fr; }
}

/* ---------- Blog ---------- */
.pick4 { grid-template-columns: repeat(4, 1fr); }
.pick.wine { background: linear-gradient(150deg, #7c2a4a, #4a1426); }
.title-sub { color: var(--red); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative; transition: transform .2s, box-shadow .2s, border-color .2s; }
.post-card::before { content: ""; display: block; height: 6px; background: var(--red); }
.post-card.theme-zdravlje::before, .post-card.theme-drustvo::before, .post-card.theme-porodica::before { background: var(--blue); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.post-link { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; height: 100%; text-decoration: none; color: var(--ink); }
.post-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.post-date { color: var(--muted); font-size: .85rem; font-weight: 600; }
.post-card h3 { font-size: 1.45rem; letter-spacing: -0.02em; }
.post-card p { color: var(--muted); flex: 1; }

.post { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 48px 56px; }
.post h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.035em; margin: 14px 0 10px; }
.post-meta { color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.post-lead { font-size: 1.2rem; line-height: 1.55; font-weight: 500; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.post-body p { font-size: 1.08rem; line-height: 1.75; margin-bottom: 18px; color: #2f2e35; }
.post-links { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 1080px) { .pick4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
    .pick4 { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .post { padding: 28px 22px; border-radius: var(--r); }
}

/* ---------- Slajder iz sadržaja ---------- */
.slide { background: var(--red-dark); }
.slide-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(38px) brightness(.55) saturate(1.1); transform: scale(1.1); z-index: 0; }
.slide::before { z-index: 0; }
.slide.no-img { grid-template-columns: 1fr; }
.slide-img.cutout img { box-shadow: none; border-radius: 0; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.slide-img.wide img { max-height: none; width: 100%; max-width: 460px; aspect-ratio: 16 / 9; object-fit: cover; }
.events-photo img.cutout { object-fit: contain; padding: 30px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.25)); }
.bcard-cover { width: 170px; }
.bcard-media.yt-thumb img { max-height: none; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Administratorski panel ---------- */
.adm-nav { display: flex; flex-wrap: wrap; gap: 4px; background: var(--ink); padding: 6px; border-radius: 999px; margin-bottom: 30px; }
.adm-nav a { color: rgba(255,255,255,.75); text-decoration: none; font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 999px; }
.adm-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.adm-nav a.active { background: #fff; color: var(--ink); }
.adm-nav .adm-site { margin-left: auto; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.adm-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.adm-card .btn-row { margin-top: auto; padding-top: 10px; }
.adm-card .btn { padding: 9px 16px; font-size: .88rem; }
.adm-count { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--red); }
.adm-hint { color: var(--muted); font-size: .92rem; }
.adm-list { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.adm-list li { display: flex; gap: 16px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.adm-list li:last-child { border-bottom: 0; }
.adm-list li span { color: var(--muted); min-width: 170px; font-size: .9rem; }
.adm-list li b { flex: 1; }
.adm-table td { vertical-align: middle; }
.adm-table tr.is-past td { color: var(--muted); }
.adm-thumb { width: 64px; } .adm-thumb img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; display: block; background: var(--bg); }
.adm-table a { color: var(--ink); }
.adm-actions { white-space: nowrap; display: flex; gap: 14px; align-items: center; }
.adm-actions a { color: var(--red); font-weight: 700; text-decoration: none; font-size: .9rem; }
.adm-actions form { display: inline; }
.link-danger { background: none; border: 0; color: #8a8a90; font: 700 .9rem var(--font); cursor: pointer; padding: 0; }
.link-danger:hover { color: var(--red); text-decoration: underline; }
.nowrap { white-space: nowrap; }
.adm-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 34px; }
.adm-field { padding: 16px 0; border-bottom: 1px solid var(--line); }
.adm-field.has-error { background: var(--red-soft); margin: 0 -16px; padding: 16px; border-radius: 12px; }
.adm-label { display: block; font-weight: 800; margin-bottom: 8px; }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-two small, .adm-help { display: block; color: var(--muted); font-size: .8rem; margin: 4px 0; }
.adm-form input[type=text], .adm-form input[type=date], .adm-form select, .adm-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; font: inherit; }
.adm-form textarea { resize: vertical; line-height: 1.5; }
.adm-form input:focus, .adm-form select:focus, .adm-form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.adm-form input.short { max-width: 140px; }
.adm-form select, .adm-form input[type=date] { max-width: 360px; }
.adm-cyr { background: var(--blue-soft); padding: 10px 14px !important; border-radius: 12px; margin: 0 0 6px !important; }
.adm-cyr small { color: var(--muted); }
.adm-image { display: flex; gap: 18px; align-items: flex-start; }
.adm-image img { width: 120px; max-height: 170px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.adm-image small { display: block; color: var(--muted); font-size: .82rem; margin: 6px 0; }
.adm-parts { display: flex; flex-direction: column; gap: 6px; }
.adm-parts-head, .adm-part { display: grid; grid-template-columns: 24px 1.3fr 1fr 150px 1.5fr; gap: 8px; align-items: center; }
.adm-parts-head span { font-size: .78rem; color: var(--muted); font-weight: 700; }
.adm-submit { position: sticky; bottom: 0; background: var(--card); padding: 16px 0 4px; margin-top: 10px; }
.adm-group { border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px; margin: 14px 0; }
.adm-group summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; padding: 12px 0; }
.adm-group .adm-field:last-child { border-bottom: 0; }
@media (max-width: 900px) {
    .adm-nav { border-radius: var(--r); }
    .adm-nav .adm-site { margin-left: 0; }
    .adm-form { padding: 20px 16px; }
    .adm-two { grid-template-columns: 1fr; }
    .adm-parts-head { display: none; }
    .adm-part { grid-template-columns: 1fr; padding: 10px 0; border-bottom: 1px dashed var(--line); }
    .adm-actions { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Knjige sa providnom pozadinom (uklonjena pozadina) – bez okvira, samo senka oblika */
.cover-img.cutout, .fb-cover .cover-img.big.cutout, .bcard-media img.cutout { box-shadow: none; border-radius: 0; filter: drop-shadow(0 14px 18px rgba(0,0,0,.25)); }
.fb-cover .cover-img.big.cutout { filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.adm-image > div > small { display: block; }
.adm-image label.check small { display: block; margin: 2px 0 0; }

/* Admin: veze i teme */
.adm-heading { font-size: 1.3rem; margin: 30px 0 4px; padding-top: 18px; border-top: 3px solid var(--ink); }
.adm-themes { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.adm-themes label.check { margin: 4px 0; }
.adm-related { margin-top: 18px; padding: 14px 16px; background: var(--blue-soft); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.adm-related a { color: var(--red); font-weight: 700; }

/* Veze između stavki */
.book-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: .9rem; }
.book-links a { color: var(--red); font-weight: 700; text-decoration: none; }
.book-links a:hover { text-decoration: underline; }
.media-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ev-links { margin-top: 14px; }
.adm-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.adm-jump a { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; text-decoration: none; color: var(--ink); }
.adm-sec { margin-top: 34px; scroll-margin-top: 90px; }
.adm-sec h2 { font-size: 1.4rem; margin-bottom: 10px; }
.admin-table tr.sel td { background: var(--red-soft); }

/* Naruči knjigu */
.order-layout { display: grid; grid-template-columns: 1fr 440px; gap: 30px; align-items: start; margin-top: 10px; }
.order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.order-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 16px 12px 12px; transition: border-color .15s, box-shadow .15s; scroll-margin-top: 110px; }
.order-item.sel { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.order-cover .cover-img, .order-cover .cover { width: 64px !important; height: 92px !important; max-width: none; object-fit: contain; }
.order-cover .cover { padding: 6px; border-radius: 6px; }
.order-cover .cover .cover-author, .order-cover .cover .cover-mark { display: none; }
.order-cover .cover .cover-title { font-size: .55rem; }
.order-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-info b { font-size: 1.05rem; }
.order-info span { color: var(--muted); font-size: .92rem; }
.order-info small { color: var(--blue-dark); font-weight: 600; font-size: .8rem; }
.order-pick { padding: 9px 18px; font-size: .88rem; }
.order-pick .when-on, .order-item.sel .order-pick .when-off { display: none; }
.order-item.sel .order-pick .when-on { display: inline; }
.order-item.sel .order-pick { background: var(--red-dark); }
.order-card { position: sticky; top: 100px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; scroll-margin-top: 100px; }
.order-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.order-sub { font-size: 1rem; margin: 6px 0 10px; }
.order-card .form-row { gap: 12px; }
.order-book-row { grid-template-columns: 1fr 90px !important; }
.order-card .form-row.addr { grid-template-columns: 1fr 100px; }
.order-card .form-row.addr2 { grid-template-columns: 1fr 140px; }
.order-card select { width: 100%; }
@media (max-width: 980px) {
    .order-layout { grid-template-columns: 1fr; }
    .order-card { position: static; }
}
@media (max-width: 600px) {
    .order-item { grid-template-columns: 52px 1fr; }
    .order-cover .cover-img, .order-cover .cover { width: 52px !important; height: 76px !important; }
    .order-pick { grid-column: 1 / -1; }
    .order-card .form-row.addr, .order-card .form-row.addr2, .order-book-row { grid-template-columns: 1fr 100px !important; gap: 10px; }
}
.adm-read { display: grid; gap: 8px; }
.adm-read label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.form-group select { width: 100%; padding: 13px 40px 13px 16px; border: 1px solid var(--line); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; border-radius: 12px; font: inherit; appearance: none; -webkit-appearance: none; color: var(--ink); }
.form-group select:focus { outline: none; border-color: var(--blue); background-color: #fff; }
.form-group.has-error select { border-color: var(--red); }
