/*
Theme Name: Lepenička Dolina
Description: Moderna tema informativnog portala Lepenička Dolina – vijesti iz Lepeničke doline, BiH i svijeta.
Version: 2.0.0
Requires PHP: 8.0
Text Domain: lepenicka
*/

:root {
  --night: #0b1020;
  --night-2: #141b2e;
  --accent: #e11d48;
  --blue: #2563eb;
  --ink: #0f172a;
  --ink-2: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f1f5f9;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --read: Charter, "Iowan Old Style", Georgia, serif;
  --wrap: 1280px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; letter-spacing: -.015em; line-height: 1.18; margin: 0; color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- zaglavlje (tamno) ---------- */
.topbar { background: var(--night); color: var(--muted); font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 28px; gap: 16px; font-size: 12px; }
.topbar a { color: #e2e8f0; }
.topbar a:hover { color: #fff; }
.topbar__links { display: flex; gap: 18px; }

.masthead { background: var(--night); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 9px; padding-bottom: 9px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand img, .brand .custom-logo { height: 50px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 24px; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; font-style: italic; }
.brand__name b { color: #fff; background: var(--accent); padding: 0 8px; margin-left: 2px; border-radius: 4px; }
.brand__tag { margin-top: 5px; font-size: 10px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: #93c5fd; }
/* Vodoravni logo (slika s prozirnom pozadinom) */
.brand .brand__wide { height: 66px; width: auto; max-width: 100%; }
.searchform { display: flex; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.searchform input { border: 0; background: transparent; color: #fff; padding: 8px 16px; font: inherit; width: 260px; outline: none; }
.searchform input::placeholder { color: var(--muted); }
.searchform button { border: 0; background: var(--accent); color: #fff; padding: 0 20px; cursor: pointer; font: inherit; font-weight: 700; }
.empty .searchform { background: var(--bg-soft); border-color: var(--line); max-width: 460px; margin: 0 auto 20px; }
.empty .searchform input { color: var(--ink); }

/* ---------- navigacija rubrika ---------- */
.mainnav { background: var(--night-2); position: sticky; top: 0; z-index: 50; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.mainnav ul::-webkit-scrollbar { display: none; }
.mainnav li { flex: none; }
.mainnav a { display: block; padding: 11px 11px 9px; font-weight: 700; font-size: 14px; color: #cbd5e1; border-bottom: 3px solid transparent; white-space: nowrap; }
.mainnav a:hover, .mainnav .is-active > a, .mainnav .current-menu-item > a { color: #fff; border-bottom-color: var(--c, var(--accent)); }
.mainnav .home-link a { color: #fff; }
.masthead__tools { display: flex; align-items: center; gap: 12px; }
.btn-posalji { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; height: 38px; border: 0; border-radius: 999px; background: #facc15; color: #111827; font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
.btn-posalji::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13M22 2l-7 20-4-9-9-4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13M22 2l-7 20-4-9-9-4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn-posalji:hover { background: #fde047; color: #111827; }
.posalji__form { display: grid; gap: 16px; max-width: 740px; margin-top: 8px; }
.posalji__form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.posalji__form input:not([type=checkbox]), .posalji__form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); width: 100%; box-sizing: border-box; }
.posalji__form input:focus, .posalji__form textarea:focus { outline: 2px solid var(--blue); background: #fff; }
.posalji__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.posalji__check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 14px !important; }
.posalji__check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.posalji__btn { justify-self: start; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 900; font-size: 16px; padding: 14px 28px; cursor: pointer; }
.posalji__btn:disabled { opacity: .6; cursor: wait; }
.posalji__note { color: var(--muted); font-size: 13px; margin: 0; }
.posalji__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.posalji__ok { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 14px; padding: 20px 22px; font-size: 17px; }
.posalji__ok .btn { margin-top: 12px; background: var(--accent); color: #fff; }
.posalji__err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 12px; padding: 12px 16px; }
@media (max-width: 600px) { .posalji__row { grid-template-columns: 1fr; } .masthead__tools .searchform { flex: 1; } .btn-posalji { padding: 0 14px; font-size: 12px; } }

/* ---------- traka "Najnovije" ---------- */
.ticker { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 14px; }
.ticker .wrap { display: flex; align-items: center; gap: 14px; height: 36px; overflow: hidden; }
.ticker__label { flex: none; display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.ticker__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker__items { display: inline-flex; gap: 40px; white-space: nowrap; animation: ticker 70s linear infinite; padding-right: 40px; font-weight: 600; }
.ticker__items:hover { animation-play-state: paused; }
.ticker__items a::before { content: "/"; color: var(--accent); margin-right: 12px; font-weight: 800; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__items, .ticker__label::before { animation: none; } }

/* ---------- oznaka rubrike i meta ---------- */
.cat-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--c, var(--blue)); }
.cat-label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--blue)); }
.cat-label:hover { color: var(--ink); }
.meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; font-weight: 500; }

/* ---------- kartice vijesti ---------- */
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card__media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
/* vlastite fotke urednika: cijela slika, bez rezanja i zumiranja */
.card__media--cijela { background: var(--night); }
.card__media--cijela img { object-fit: contain; object-position: center top; }
.card:hover .card__media--cijela img { transform: none; }
.card__body { display: flex; flex-direction: column; gap: 6px; }
.card__title { font-size: 19px; }
.card__excerpt { margin: 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }

/* glavna vijest: tekst preko fotografije */
.card--lead { position: relative; border-radius: 16px; overflow: hidden; background: var(--night); min-height: 350px; justify-content: flex-end; }
.card--lead .card__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.card--lead .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,16,32,0) 30%, rgba(11,16,32,.55) 60%, rgba(11,16,32,.95)); }
.card--lead .card__body { position: relative; padding: 22px 24px; gap: 8px; pointer-events: none; }
.card--lead .card__body a { pointer-events: auto; }
.card--lead .cat-label { color: #fff; background: var(--c, var(--accent)); padding: 4px 10px; border-radius: 999px; align-self: flex-start; }
.card--lead .cat-label::before { display: none; }
.card--lead .card__title { font-size: clamp(22px, 2.5vw, 32px); color: #fff; }
.card--lead .card__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card--lead .card__excerpt { color: #cbd5e1; font-size: 15px; max-width: 760px; -webkit-line-clamp: 2; line-clamp: 2; }
.card--lead .meta { color: #94a3b8; }

.card--side { flex-direction: row; gap: 14px; align-items: flex-start; }
.card--side .card__media { flex: none; width: 92px; aspect-ratio: 4 / 3; border-radius: 10px; }
.card--side .card__title { font-size: 15px; }

.card--list { padding: 14px 0; border-bottom: 1px solid var(--line); gap: 4px; }
.card--list:last-child { border-bottom: 0; }
.card--list .card__title { font-size: 16px; font-weight: 700; }

/* zamjenska slika kad vijest nema fotografiju */
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; background: radial-gradient(circle at 80% 15%, rgba(255,255,255,.22), transparent 45%), linear-gradient(135deg, var(--c, var(--blue)), var(--night)); }
.ph img { width: 30%; max-width: 96px; height: auto; border-radius: 50%; box-shadow: 0 8px 22px rgba(0,0,0,.35); }

/* ---------- naslovnica ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 22px; padding: 18px 0 20px; }
.hero__side { display: flex; flex-direction: column; gap: 12px; }
.hero__side .card { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
/* red najnovijih ispod glavne vijesti: više vijesti odmah na ekranu */
.latest-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0 0 26px; }
.latest-row .card { gap: 8px; }
.latest-row .card__title { font-size: 15px; }
.latest-row .card__media { aspect-ratio: 16 / 10; }
.hero__side .card:last-child { border-bottom: 0; padding-bottom: 0; }

.section { padding: 34px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section__title { font-size: 24px; font-weight: 900; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.section__title::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--c, var(--accent)); }
.section__more { font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.section__more:hover { color: var(--c, var(--accent)); }

.local-band { background: var(--night); }
.local-band .section__title, .local-band .card__title { color: #fff; }
.local-band .section__title::before { display: none; }
.local-band .section__title img { width: 34px; height: 34px; border-radius: 50%; }
.local-band .section__more { color: #cbd5e1; }
.local-band .card__title a:hover { color: #93c5fd; }
.local-band .cat-label { color: #93c5fd; }
.local-band .cat-label::before { background: #93c5fd; }
.local-band .meta { color: #64748b; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; }
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.block { padding: 30px 0; border-bottom: 1px solid var(--line); }
.block__inner { display: flex; flex-direction: column; gap: 6px; }
.block--wide { grid-column: 1 / -1; }
.block--wide .block__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }

/* ---------- bočna traka ---------- */
.sidebar { padding-top: 30px; }
.sidebar__sticky { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 24px; }
.ldkutak { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 200px; padding: 20px; text-align: center; border: 2px dashed var(--line); border-radius: 16px; color: var(--muted); transition: border-color .2s, color .2s; }
.ldkutak:hover { border-color: var(--accent); color: var(--ink); }
.ldkutak__label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.ldkutak__text { font-size: 14px; line-height: 1.4; max-width: 220px; }
.ldkutak__mail { font-size: 13px; font-weight: 700; color: var(--accent); word-break: break-all; }
.ldkutak__pre { color: var(--muted); font-weight: 600; word-break: normal; }
.ldkutak--compact { min-height: 0; padding: 7px 12px; gap: 2px 8px; flex: none; flex-direction: row; flex-wrap: wrap; border-width: 1px; }
.ldkutak--compact .ldkutak__text { display: none; }
.ldkutak--compact .ldkutak__text { max-width: none; font-size: 13px; }
/* Obavijesti u pregledniku: gumb u gornjoj traci i prozorčić dolje desno */
.ldpush-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.ldpush-btn:hover { color: #fff; }
.ldpush { position: fixed; right: 16px; bottom: 16px; z-index: 9999; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: min(380px, calc(100vw - 32px)); padding: 16px; background: #0b1020; color: #e5e9f0; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.35); transform: translateY(20px); opacity: 0; transition: transform .3s, opacity .3s; }
.ldpush.is-open { transform: none; opacity: 1; }
.ldpush img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.ldpush__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.4; }
.ldpush__txt b { font-size: 14px; color: #fff; }
.ldpush__btns { display: flex; gap: 8px; width: 100%; justify-content: flex-end; }
.ldpush__btns a { border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 800; text-decoration: none; }
.ldpush__btns button { border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.ldpush__da { background: #e11d48; color: #fff; }
.ldpush__ne { background: transparent; color: #9aa3b0; }
.ldpush--toast { width: auto; max-width: calc(100vw - 32px); padding: 12px 16px; font-size: 13px; transform: none; opacity: 1; }

/* Oglašivač: tamni okvir u bojama oglašivača, mala oznaka "Oglas" */
.ldpartner { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 200px; padding: 26px 20px 20px; text-align: center; background: #0b0e12; border: 1px solid #1b222a; border-radius: 16px; color: #c9d1d9; transition: border-color .2s, transform .2s; }
.ldpartner:hover { border-color: #efbc58; transform: translateY(-1px); }
.ldpartner__oznaka { position: absolute; top: 8px; right: 10px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7480; }
.ldpartner__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: .04em; }
.ldpartner__logo { width: 64px; height: auto; }
.ldpartner__tekst { font-size: 14px; line-height: 1.4; max-width: 230px; }
.ldpartner__gumb { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #efbc58; color: #15120a; font-size: 13px; font-weight: 800; }
.ldpartner--compact { flex-direction: row; flex-wrap: wrap; min-height: 0; padding: 14px 52px 14px 16px; gap: 8px 12px; flex: none; text-align: left; }
.ldpartner--compact .ldpartner__logo { width: 44px; }
.ldpartner--compact .ldpartner__brand { font-size: 17px; gap: 8px; }
.ldpartner--compact .ldpartner__tekst { flex: 1; min-width: 140px; max-width: none; font-size: 13px; }
.ldpartner--compact .ldpartner__gumb { padding: 6px 12px; font-size: 12px; }
.widget { background: var(--bg-soft); border-radius: 16px; padding: 18px 20px; }
.widget__title { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; color: var(--accent); }
.numbered { counter-reset: n; list-style: none; margin: 0; padding: 0; }
.numbered li { counter-increment: n; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.numbered li:last-child { border-bottom: 0; }
.numbered li::before { content: counter(n, decimal-leading-zero); font-size: 15px; font-weight: 900; color: var(--accent); min-width: 22px; line-height: 1.4; }
.numbered a { font-weight: 700; font-size: 15px; line-height: 1.35; }
.numbered .meta { margin-top: 3px; }
.widget--about { background: linear-gradient(135deg, var(--blue), #1e1b4b); color: #dbeafe; }
.widget--about .widget__title { color: #fff; }
.widget--about p { margin: 0 0 14px; font-size: 14px; }
.btn { display: inline-block; background: #fff; color: var(--ink); font-weight: 800; padding: 10px 18px; border-radius: 999px; font-size: 14px; }
.btn:hover { color: var(--accent); }
.empty .btn { background: var(--accent); color: #fff; }

/* ---------- članak ---------- */
.article { padding: 32px 0 10px; }
.article__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.article__title { font-size: clamp(28px, 4.2vw, 46px); font-weight: 900; letter-spacing: -.025em; }
.article__lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0; font-weight: 500; }
.article__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article__figure { margin: 0 0 28px; }
.article__figure .card__media { aspect-ratio: 16 / 9; border-radius: 16px; }
.article__figure figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
.article__content { font-family: var(--read); font-size: 20px; line-height: 1.72; color: #1e293b; max-width: 740px; }
.article__content p { margin: 0 0 1.15em; }
.article__content h2, .article__content h3 { margin: 1.6em 0 .6em; }
.article__content a { color: var(--blue); text-decoration: underline; }

.share { display: flex; gap: 8px; }
.share a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 14px; transition: transform .15s; }
.share a:hover { color: #fff; transform: translateY(-2px); }
.share .fb { background: #1877f2; }
.share .wa { background: #128c7e; }
.share .x { background: #000; }
.share .vb { background: #7360f2; }
.share .em { background: var(--ink-2); }

.related { padding: 36px 0; }

/* ---------- arhiva rubrike ---------- */
.archive-head { padding: 34px 0 24px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.archive-head h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 900; letter-spacing: -.03em; display: flex; align-items: center; gap: 14px; }
.archive-head h1::before { content: ""; width: 10px; height: 38px; border-radius: 5px; background: var(--c, var(--accent)); }
.archive-head p { margin: 8px 0 0; color: var(--ink-2); font-size: 17px; }
.archive-lead { margin-bottom: 32px; }
.pagination { display: flex; gap: 6px; justify-content: center; padding: 34px 0 10px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); border-radius: 10px; font-weight: 700; padding: 0 12px; }
.pagination .current { background: var(--night); color: #fff; }
.empty { padding: 60px 0; text-align: center; color: var(--ink-2); }
.empty h1 { margin-bottom: 10px; }

/* ---------- podnožje ---------- */
.footer { background: var(--night); color: var(--muted); margin-top: 48px; font-size: 14px; }
.footer a { color: #e2e8f0; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; padding: 48px 16px 34px; }
.footer__brand img { width: min(100%, 300px); height: auto; margin-bottom: 16px; }
.footer__cats { columns: 3; column-gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer__cats li { padding: 5px 0; break-inside: avoid; }
.footer__title { color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.footer__bottom ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }

/* ---------- prilagodba ekranima ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar__sticky { position: static; }
  .grid-4, .latest-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .card--lead { min-height: 320px; }
  .blocks { grid-template-columns: minmax(0, 1fr); }
  .block--wide .block__inner { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__cats { columns: 2; }
}
@media (max-width: 600px) {
  /* Niže zaglavlje na mobitelu: bez trake s datumom, manji logo, uži razmaci */
  .topbar { display: none; }
  .masthead .wrap { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 6px; padding-bottom: 8px; }
  .brand img, .brand .custom-logo { height: 40px; }
  .brand__name { font-size: 19px; }
  .brand__tag { display: none; }
  .brand--wide { justify-content: center; }
  .brand .brand__wide { height: auto; width: min(72%, 300px); }
  .btn-posalji { height: 30px; padding: 0 12px; font-size: 11px; gap: 5px; }
  .btn-posalji svg { width: 13px; height: 13px; }
  .searchform input { padding-top: 4px; padding-bottom: 4px; font-size: 14px; }
  .searchform button { padding: 0 14px; font-size: 13px; }
  .mainnav a { padding: 9px 10px 7px; font-size: 13.5px; }
  .ticker .wrap { height: 32px; }
  .ticker__label { padding: 3px 9px; font-size: 11px; }
  .searchform, .searchform input { width: 100%; }
  .grid-4, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .card--lead { min-height: 260px; }
  .latest-row { gap: 14px; }
  .card--lead .card__body { padding: 20px; }
  .card--lead .card__excerpt { display: none; }
  .card--side .card__media { width: 84px; }
  .article__content { font-size: 18px; }
  .article__lead { font-size: 18px; }
}
