/* ============================================================
   Afirmativa Portal — Main CSS
   Brand: #c40000 (brand-red), Inter font, bijela pozadina
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --brand-red:    #c40000;
  --foreground:   #1a1b2e;
  --background:   #ffffff;
  --muted:        #f7f7f8;
  --muted-fg:     #6b7280;
  --border:       #e5e7eb;
  --card:         #ffffff;
  --footer-bg:    #0a0a0a;
  --footer-fg:    #f1f1f4;
  --ad-bg:        rgba(196,0,0,0.07);
  --ad-border:    rgba(196,0,0,0.3);
  --radius:       0.25rem;
  --max-w:        1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Layout ─────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── HEADER ─────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--background); box-shadow: 0 1px 0 var(--border); }
.header-grid { display: none; }
@media (min-width: 1024px) { .header-grid { display: grid; grid-template-columns: 280px 1fr; } }
.header-logo-block { grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--border); padding: 1rem 1.5rem; }
.header-logo-block img { height: 96px; width: auto; }
.header-top-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 80px; border-bottom: 1px solid var(--border); padding-left: 1.5rem; }
.header-top-left  { display: flex; align-items: center; gap: 1rem; }
.header-top-right { display: flex; align-items: center; gap: 1rem; padding-right: 0.5rem; }
.header-date { font-size: 0.75rem; color: var(--muted-fg); text-transform: capitalize; }
.header-socials { display: flex; align-items: center; gap: 0.75rem; color: var(--muted-fg); }
.header-socials a { display: flex; align-items: center; }
.header-socials a:hover { color: var(--brand-red); }
.header-socials svg { width: 1rem; height: 1rem; }
.header-divider { width: 1px; height: 2rem; background: var(--border); }
.header-nav {
  display: flex;
  flex-direction: column;
  height: auto;
  padding-left: 1.5rem;
  gap: 0;
}
.header-nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
  height: 44px;
}
.header-nav__list::-webkit-scrollbar { display: none; }
.header-nav__list a { white-space: nowrap; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--foreground); padding: 0; transition: color 0.15s; }
.header-nav__list a:hover, .header-nav__list a.active { color: var(--brand-red); }
.header-nav__list--secondary {
  border-top: 1px solid var(--border);
  background: transparent;
  gap: 1.5rem;
  padding-left: 0;
  height: 40px;
}
.header-nav__list--secondary a {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--foreground) !important;
}
.header-nav__list--secondary a:hover,
.header-nav__list--secondary a.active {
  color: var(--brand-red) !important;
}
.header-search-btn { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin-left: auto; color: var(--foreground); transition: color 0.15s; }
.header-search-btn:hover { color: var(--brand-red); }
.header-search-btn svg { width: 1.25rem; height: 1.25rem; }
.header-mobile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; }
@media (min-width: 1024px) { .header-mobile { display: none; } }
.header-mobile img { height: 2.5rem; width: auto; }
.header-mobile-btn { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; color: var(--foreground); }
.header-mobile-btn:hover { color: var(--brand-red); }
.header-mobile-btn svg { width: 1.25rem; height: 1.25rem; }
.search-bar { display: none; background: var(--muted); border-top: 1px solid var(--border); }
.search-bar.open { display: block; }
.search-bar form { display: flex; align-items: center; gap: 0.5rem; max-width: var(--max-w); margin: 0 auto; padding: 0.75rem 1rem; }
.search-bar input { flex: 1; background: transparent; border: none; outline: none; font-size: 0.875rem; font-family: inherit; color: var(--foreground); }
.search-bar input::placeholder { color: var(--muted-fg); }
.search-bar svg { width: 1rem; height: 1rem; color: var(--muted-fg); flex-shrink: 0; }
.search-bar button[type=submit] { background: var(--brand-red); color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.75rem; border-radius: var(--radius); }
.mobile-menu {
  display: none;
  background: var(--card);
  border-top: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 0;
}
.mobile-menu.open { display: block; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu ul { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu a { display: block; padding: 0.35rem 0; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--foreground); }
.mobile-menu a:hover { color: var(--brand-red); }

/* ── BREAKING TICKER ─────────────────────────────── */
.breaking-ticker { border-bottom: 1px solid var(--border); background: var(--background); }
.breaking-ticker__inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: stretch; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; }
.breaking-ticker__badge { display: flex; align-items: center; gap: 0.5rem; background: var(--brand-red); color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.5rem 1rem; border-radius: var(--radius); white-space: nowrap; flex-shrink: 0; }
.breaking-ticker__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #fff; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.breaking-ticker__mask { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; touch-action: pan-x; }
.breaking-ticker__track { display: flex; align-items: center; gap: 2.5rem; white-space: nowrap; padding: 0.5rem 1.5rem; animation: ticker-scroll 75s linear infinite; }
.breaking-ticker__track:hover { animation-play-state: paused; }
.breaking-ticker__track a { color: var(--foreground); }
.breaking-ticker__track a:hover { color: var(--brand-red); }
.breaking-ticker__bullet { color: var(--brand-red); margin-right: 0.5rem; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTION TITLE ───────────────────────────────── */
.section-title { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 0.75rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--foreground); }
.section-title__bar { display: inline-block; width: 0.25rem; height: 1rem; background: var(--brand-red); flex-shrink: 0; }
.section-title__more { margin-left: auto; font-size: 0.7rem; color: var(--muted-fg); }
.section-title__more:hover { color: var(--brand-red); }

/* ── HERO SECTION ────────────────────────────────── */
.hero-section { padding: 1.5rem 0; }
.hero-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1.4fr 1fr; } }
.hero-main { position: relative; display: block; overflow: hidden; }
.hero-main img { width: 100%; height: 420px; object-fit: cover; transition: transform 0.5s; }
.hero-main:hover img { transform: scale(1.02); }
.hero-main__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.3) 50%, transparent); }
.hero-main__content { position: absolute; inset: auto 0 0 0; padding: 1.25rem; color: #fff; }
.hero-cat-badge { display: inline-block; background: var(--brand-red); color: #fff; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.5rem; margin-bottom: 0.75rem; }
.hero-main__title { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .hero-main__title { font-size: 1.875rem; } }
.hero-main__excerpt { font-size: 0.875rem; color: rgba(255,255,255,.85); margin-bottom: 0.75rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hero-main__meta { font-size: 0.75rem; color: rgba(255,255,255,.7); display: flex; gap: 0.75rem; }
.hero-side { display: flex; flex-direction: column; }
.hero-side__list { display: flex; flex-direction: column; border: 1px solid var(--border); }
.hero-side__item { display: flex; gap: 0.75rem; padding: 0.75rem; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.hero-side__item:last-child { border-bottom: none; }
.hero-side__item:hover { background: var(--muted); }
.hero-side__img { width: 110px; height: 72px; object-fit: cover; flex-shrink: 0; }
.hero-side__title { font-size: 0.875rem; font-weight: 600; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hero-side__item:hover .hero-side__title { color: var(--brand-red); }
.hero-side__excerpt { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hero-side__date { font-size: 0.75rem; color: var(--muted-fg); margin-top: auto; }

/* ── NEWS SECTION ────────────────────────────────── */
.news-section { padding: 2rem 0; }
.news-layout { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .news-layout { grid-template-columns: 1fr 320px; } }
.news-duo { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .news-duo { grid-template-columns: 1.1fr 1fr; } }
.news-big img { width: 100%; height: 16rem; object-fit: cover; transition: transform 0.5s; overflow: hidden; }
.news-big:hover img { transform: scale(1.03); }
.news-big__title { margin-top: 0.75rem; font-size: 1.25rem; font-weight: 700; line-height: 1.35; color: var(--foreground); }
.news-big:hover .news-big__title { color: var(--brand-red); }
.news-big__date { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-fg); }
.news-big__excerpt { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-fg); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.news-list { display: flex; flex-direction: column; }
.news-list__item { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.news-list__item:first-child { padding-top: 0; }
.news-list__img { width: 6rem; height: 4rem; object-fit: cover; flex-shrink: 0; }
.news-list__title { font-size: 0.875rem; font-weight: 600; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-list__item:hover .news-list__title { color: var(--brand-red); }
.news-list__date { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }

/* ── SIDEBAR ─────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card { border: 1px solid var(--border); background: var(--card); }
.sidebar-card__header { border-bottom: 1px solid var(--border); background: var(--muted); padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.sidebar-card__item { display: flex; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.sidebar-card__item:last-child { border-bottom: none; }
.sidebar-card__rank { font-size: 1.5rem; font-weight: 900; line-height: 1; color: var(--brand-red); flex-shrink: 0; }
.sidebar-card__title { font-size: 0.875rem; font-weight: 500; line-height: 1.4; }
.sidebar-card__item:hover .sidebar-card__title { color: var(--brand-red); }

/* ── DUO SECTION ─────────────────────────────────── */
.duo-section { padding: 2rem 0; }
.duo-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .duo-grid { grid-template-columns: 1fr 1fr 320px; } }
.duo-col__big img { width: 100%; height: 13rem; object-fit: cover; }
.duo-col__big-title { margin-top: 0.75rem; font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.duo-col__big:hover .duo-col__big-title { color: var(--brand-red); }
.duo-col__big-date { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }
.duo-col__list { margin-top: 1rem; border-top: 1px solid var(--border); }
.duo-col__list-item { padding: 0.625rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; font-weight: 500; }
.duo-col__list-item:hover { color: var(--brand-red); }
.follow-widget__title { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.follow-widget__icons { display: flex; gap: 0.5rem; }
.follow-widget__icon { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; background: var(--brand-red); color: #fff; }
.follow-widget__icon:hover { opacity: 0.85; }
.follow-widget__icon svg { width: 1rem; height: 1rem; }

/* ── CATEGORY GRID (homepage) ───────────────────── */
.cat-grid-section { padding: 2rem 0; }
.cat-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }

/* ── ARTICLE PAGE ────────────────────────────────── */
.article-page { padding: 1.5rem 0; }
.article-breadcrumb { font-size: 0.75rem; color: var(--muted-fg); margin-bottom: 1rem; }
.article-breadcrumb a:hover { color: var(--brand-red); }
.article-breadcrumb span.sep { margin: 0 0.25rem; }
.article-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: 1fr 320px; } }
.article-cat-badge { display: inline-block; background: var(--brand-red); color: #fff; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.5rem; }
.article-title { margin-top: 0.75rem; font-size: 1.875rem; font-weight: 900; line-height: 1.2; }
@media (min-width: 768px) { .article-title { font-size: 2.25rem; } }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.75rem 0; margin-top: 1rem; font-size: 0.875rem; color: var(--muted-fg); }
.article-meta__author { color: var(--foreground); font-weight: 600; }
.article-meta__share { margin-left: auto; display: flex; gap: 0.5rem; }
.article-meta__share-btn { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; background: var(--muted); color: var(--foreground); transition: background 0.15s, color 0.15s; }
.article-meta__share-btn:hover { background: var(--brand-red); color: #fff; }
.article-meta__share-btn svg { width: 1rem; height: 1rem; }
.article-meta__views { display: flex; align-items: center; gap: 0.25rem; }
.article-meta__views svg { width: 1rem; height: 1rem; }
.article-cover { margin-top: 1.25rem; width: 100%; }
.article-body { margin-top: 1.5rem; font-size: 1rem; line-height: 1.8; color: var(--foreground); }
.article-body img { max-width: 100%; height: auto; margin: 1rem 0; cursor: zoom-in; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.article-body td, .article-body th { border: 1px solid var(--border); padding: .5rem .75rem; }
.article-body th { background: var(--muted); font-weight: 700; }
.article-body ul { list-style: disc; padding-left: 1.5rem; margin: .75rem 0; }
.article-body ol { list-style: decimal; padding-left: 1.5rem; margin: .75rem 0; }
.article-body li { margin-bottom: .25rem; }
.article-body h2 { font-size: 1.375rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.article-body h3 { font-size: 1.125rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.article-body h4 { font-size: 1rem; font-weight: 700; margin: 1rem 0 .5rem; }
.article-body blockquote { border-left: 3px solid var(--brand-red); padding: .5rem 1rem; color: var(--muted-fg); font-style: italic; margin: 1rem 0; background: var(--muted); }
.article-body a { color: var(--brand-red); text-decoration: underline; }
.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.article-tags__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-fg); }
.article-tags__tag { border: 1px solid var(--border); background: var(--muted); padding: 0.25rem 0.5rem; font-size: 0.75rem; font-weight: 500; color: var(--foreground); }
.article-tags__tag:hover { border-color: var(--brand-red); color: var(--brand-red); }
.related-section { margin-top: 2.5rem; }
.related-section__title { display: flex; align-items: center; gap: 0.5rem; border-bottom: 2px solid var(--foreground); padding-bottom: 0.5rem; margin-bottom: 1rem; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.related-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── ARTICLE CARD ────────────────────────────────── */
.article-card { display: block; }
.article-card__img-wrap { overflow: hidden; }
.article-card__img-wrap img { width: 100%; height: 10rem; object-fit: cover; transition: transform 0.5s; display: block; }
.article-card:hover .article-card__img-wrap img { transform: scale(1.03); }
.article-card__cat { display: inline-block; background: var(--brand-red); color: #fff; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; padding: 0.2rem 0.4rem; margin-top: 0.5rem; }
.article-card__title { margin-top: 0.25rem; font-size: 0.9375rem; font-weight: 700; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.article-card:hover .article-card__title { color: var(--brand-red); }
.article-card__excerpt { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card__date { display: block; margin-top: 0.375rem; font-size: 0.75rem; color: var(--muted-fg); }

/* ── CATEGORY PAGE ───────────────────────────────── */
.category-page { padding: 1.5rem 0; }
.category-heading { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 2px solid var(--foreground); padding-bottom: 0.75rem; margin-bottom: 1.5rem; }
.category-heading h1 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.category-heading h1 .bar { display: inline-block; width: 0.375rem; height: 1.5rem; background: var(--brand-red); }
.category-heading__count { font-size: 0.875rem; color: var(--muted-fg); }
.cat-page__heading { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 2px solid var(--foreground); padding-bottom: 0.75rem; margin-bottom: 2rem; }
.cat-page__title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.cat-page__title-bar { display: inline-block; width: 0.375rem; height: 1.75rem; background: var(--brand-red); flex-shrink: 0; }
.cat-page__count { font-size: 0.875rem; color: var(--muted-fg); }
.cat-page__layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .cat-page__layout { grid-template-columns: 1fr 320px; } }

/* ── CAT HERO ────────────────────────────────────── */
.cat-hero { position: relative; display: block; overflow: hidden; margin-bottom: 2rem; }
.cat-hero__img-wrap { overflow: hidden; }
.cat-hero__img-wrap img { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform 0.5s; }
@media (min-width: 768px) { .cat-hero__img-wrap img { height: 420px; } }
.cat-hero:hover .cat-hero__img-wrap img { transform: scale(1.02); }
.cat-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.2) 55%, transparent); }
.cat-hero__content { position: absolute; inset: auto 0 0 0; padding: 1.5rem; color: #fff; }
.cat-hero__badge { display: inline-block; background: var(--brand-red); color: #fff; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.2rem 0.5rem; margin-bottom: 0.75rem; }
.cat-hero__title { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .cat-hero__title { font-size: 2rem; } }
.cat-hero__excerpt { font-size: 0.9375rem; color: rgba(255,255,255,.85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-hero__meta { font-size: 0.75rem; color: rgba(255,255,255,.65); margin-top: 0.5rem; }
.cat-article-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .cat-article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-article-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── PAGINATION ──────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 0.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination__btn { display: flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem; border: 1px solid var(--border); font-size: 0.875rem; font-weight: 600; color: var(--foreground); transition: border-color 0.15s, background 0.15s, color 0.15s; }
.pagination__btn:hover { border-color: var(--brand-red); color: var(--brand-red); }
.pagination__btn--active { border-color: var(--brand-red); background: var(--brand-red); color: #fff; }

/* ── BANERI / ADS ────────────────────────────────── */
.banner-wrap { display: block; overflow: hidden; margin: 0 auto; }
.ad-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin: 0 auto; border: 1px dashed var(--ad-border); background: var(--ad-bg); }
.ad-slot__label { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(196,0,0,.8); }
.ad-slot__size { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--brand-red); }
.footer-main { padding: 2.5rem 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; } }
.footer-logo { height: 2.5rem; width: auto; margin-bottom: 0.75rem; }
.footer-about { font-size: 0.875rem; color: rgba(255,255,255,.7); }
.footer-socials { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.footer-social-btn { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: 1px solid rgba(255,255,255,.2); color: #fff; transition: border-color 0.15s, color 0.15s; }
.footer-social-btn:hover { border-color: var(--brand-red); color: var(--brand-red); }
.footer-social-btn svg { width: 1rem; height: 1rem; }
.footer-col-title { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 0.75rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col li { font-size: 0.875rem; }
.footer-contact { font-size: 0.875rem; color: rgba(255,255,255,.7); line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; }
.footer-bottom__inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,.6); }
@media (min-width: 768px) { .footer-bottom__inner { flex-direction: row; } }
.footer-bottom__links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1rem; max-width: 100%; }


/* ── DODATNI CSS ZA LOGIN BUTTON ─────────────────────────────────── */

/* ── FOOTER ADMIN LOGIN ─────────────────────────── */

.site-footer .footer-admin-login {
  display: block;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.16);
}

.site-footer .footer-admin-login__title {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-footer .footer-admin-login p {
  margin: 0 0 14px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer .footer-contact .footer-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 5px;
  background: #c40000;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .2s ease, transform .2s ease;
}

.site-footer .footer-contact .footer-admin-btn:hover {
  background: #9f0000;
  color: #ffffff !important;
  transform: translateY(-1px);
}
/* ── DODATNI CSS ZA LOGIN BUTTON ─────────────────────────────────── */


/* ── SEARCH PAGE ─────────────────────────────────── */
.search-page { padding: 2rem 0; }
.search-page h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.search-form { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.search-form input { flex: 1; border: 1px solid var(--border); padding: 0.625rem 0.75rem; font-size: 0.875rem; font-family: inherit; outline: none; }
.search-form input:focus { border-color: var(--brand-red); }
.search-form button { background: var(--brand-red); color: #fff; padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 600; }
.search-results-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .search-results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .search-results-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── UTILITIES ───────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }

/* ── STATIC PAGES ────────────────────────────────── */
.static-page { max-width: 760px; margin: 0 auto; padding: 2rem 1rem; }
.static-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.static-page h2 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.static-page p  { margin-bottom: 0.875rem; color: var(--muted-fg); line-height: 1.8; }
.static-page a  { color: var(--brand-red); }

/* ── ADMIN LINK ──────────────────────────────────── */
.admin-link { position: fixed; bottom: 1rem; right: 1rem; background: rgba(0,0,0,.6); color: #fff; font-size: 0.7rem; padding: 0.3rem 0.6rem; border-radius: 0.25rem; z-index: 100; opacity: 0.4; }
.admin-link:hover { opacity: 1; }

/* ── MOBILE STICKY BANNER ────────────────────────── */
.mobile-sticky-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--background); border-top: 1px solid var(--border); justify-content: center; padding: 0.25rem 0; }
@media (max-width: 767px) { .mobile-sticky-banner { display: flex; } }

/* ── HEADER WEATHER WIDGET ──────────────────────── */
.header-weather { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; transition: opacity 0.2s; }
.header-weather__emoji { font-size: 1.5rem; line-height: 1; }
.header-weather__body { display: flex; flex-direction: column; line-height: 1.3; }
.header-weather__temp { font-weight: 600; font-size: 0.875rem; color: var(--foreground); }
.header-weather__select-wrap { position: relative; display: flex; align-items: center; }
.header-weather__select { border: none; background: transparent; font: inherit; font-size: 0.75rem; color: var(--muted-fg); outline: none; cursor: pointer; padding: 0; }
.header-weather__select:hover { color: var(--brand-red); }

/* ── HEADER CURRENCY ─────────────────────────────── */
.header-currency { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--muted-fg); }
.header-currency svg { flex-shrink: 0; }

/* ── PODCAST CAROUSEL ───────────────────────────── */
.podcast-section { background: #0a0a0a; color: #fff; padding: 2rem 0; }
.podcast-section .section-title { border-bottom-color: rgba(255,255,255,.1); color: #fff; margin-bottom: 1.25rem; }
.podcast-section .section-title__more { color: rgba(255,255,255,.5); }
.podcast-section .section-title__more:hover { color: var(--brand-red); }
.podcast-nav-btn { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid rgba(255,255,255,.25); color: #fff; background: transparent; cursor: pointer; transition: border-color .15s; }
.podcast-nav-btn:hover { border-color: #fff; }
.podcast-nav-btn svg { width: 1rem; height: 1rem; }
.podcast-carousel { display: flex; gap: 1rem; overflow-x: auto; scroll-behavior: smooth; padding-bottom: .5rem; scrollbar-width: none; }
.podcast-carousel::-webkit-scrollbar { display: none; }
.podcast-card { display: block; width: 260px; flex-shrink: 0; color: #fff; text-decoration: none; }
.podcast-card__thumb { position: relative; overflow: hidden; }
.podcast-card__thumb img { width: 100%; height: 11rem; object-fit: cover; display: block; transition: transform .5s; }
.podcast-card:hover .podcast-card__thumb img { transform: scale(1.05); }
.podcast-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.podcast-card__play span { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--brand-red); color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.5); transition: transform .15s; }
.podcast-card:hover .podcast-card__play span { transform: scale(1.1); }
.podcast-card__play svg { width: 1.25rem; height: 1.25rem; margin-left: .125rem; }
.podcast-card__duration { position: absolute; bottom: .375rem; right: .375rem; background: rgba(0,0,0,.8); color: #fff; font-size: .6875rem; font-weight: 600; padding: .15rem .45rem; }
.podcast-card__title { margin-top: .625rem; font-size: .8125rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-transform: uppercase; letter-spacing: .01em; }
.podcast-card:hover .podcast-card__title { color: var(--brand-red); }
.podcast-sponsor { padding: 1.5rem 0 2rem; }

/* ── CAT CARD (overlay stil, homepage grid) ──────── */
.cat-card { border: 1px solid var(--border); overflow: hidden; }
.cat-card__hero { position: relative; display: block; overflow: hidden; }
.cat-card__hero img { width: 100%; height: 11rem; object-fit: cover; transition: transform .5s; display: block; }
.cat-card:hover .cat-card__hero img { transform: scale(1.05); }
.cat-card__header { position: absolute; top: 0; left: 0; right: 0; background: rgba(0,0,0,.85); padding: .5rem .75rem; display: flex; align-items: center; gap: .375rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.cat-card__header .bar { display: inline-block; width: .1875rem; height: .875rem; background: var(--brand-red); flex-shrink: 0; }
.cat-card__list { padding: .75rem; background: var(--background); }
.cat-card__list-item { display: block; border-bottom: 1px solid var(--border); padding: .5rem 0; font-size: .875rem; line-height: 1.35; color: var(--foreground); }
.cat-card__list-item:last-child { border-bottom: none; }
.cat-card__list-item:first-child { font-weight: 700; }
.cat-card__list-item:not(:first-child) { font-weight: 500; color: var(--muted-fg); }
.cat-card__list-item:hover { color: var(--brand-red); }

/* ── WEATHER WIDGET (sidebar) ────────────────────── */
.weather { border: 1px solid var(--border); background: var(--card); }
.weather__hd { border-bottom: 1px solid var(--border); padding: .5rem 1rem; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.weather__main { display: flex; align-items: center; justify-content: space-between; padding: .875rem 1rem; }
.weather__city { font-size: .9375rem; font-weight: 700; }
.weather__desc { font-size: .75rem; color: var(--muted-fg); margin-top: .125rem; }
.weather__select { border: none; background: transparent; font: inherit; font-size: .75rem; color: var(--muted-fg); outline: none; cursor: pointer; margin-top: .125rem; width: 100%; }
.weather__right { display: flex; align-items: center; gap: .5rem; }
.weather__emoji { font-size: 2.25rem; line-height: 1; }
.weather__temp { font-size: 2.25rem; font-weight: 800; line-height: 1; }
.weather__daily { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: .75rem 1rem; border-top: 1px solid var(--border); }
.weather__day { border: 1px solid var(--border); padding: .5rem .25rem; text-align: center; font-size: .75rem; }
.weather__day-name { font-weight: 600; color: var(--foreground); }
.weather__day-ico { font-size: 1.125rem; margin: .25rem 0; }
.weather__day-temp { color: var(--muted-fg); }

/* ── GALERIJA ─────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .375rem;
}
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }
.gallery-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--muted);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.gallery-thumb:hover img { transform: scale(1.07); }
.gallery-thumb__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: .6875rem;
  padding: .25rem .5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity .2s;
}
.gallery-thumb:hover .gallery-thumb__caption { opacity: 1; }

/* ── HERO CAROUSEL ──────────────────────── */
.hero-slide { display: none; }
.hero-slide--active { display: block; }
.hero-carousel { position: relative; overflow: hidden; }

/* Strelice NA slici (overlay) */
.hero-nav-overlay {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 .75rem;
}
.hero-nav-overlay button { pointer-events: all; }

/* Strelice u section-title (gore) */
.hero-nav-btn--top {
  display: flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem;
  border: 1px solid var(--border); background: var(--background);
  cursor: pointer; color: var(--foreground); transition: all .15s;
  padding: 0;
}
.hero-nav-btn--top:hover { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }

/* Strelice overlay (na slici) */
.hero-nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border: 2px solid rgba(255,255,255,.8); background: rgba(0,0,0,.45);
  cursor: pointer; color: #fff; transition: all .2s;
  padding: 0;
}
.hero-nav-btn:hover { background: var(--brand-red); border-color: var(--brand-red); }
.hero-nav-btn svg { width: 1.25rem; height: 1.25rem; }

/* Dots */
.hero-dots { display: flex; align-items: center; gap: .375rem; margin-top: .625rem; }
.hero-dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: background .2s, transform .2s; padding: 0;
}
.hero-dot--active { background: var(--brand-red); transform: scale(1.3); }


/* Automatska rotacija banera */
.banner-rotation {
  position: relative;
  overflow: hidden;
}
.banner-rotation .banner-rotation__item {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease, visibility .45s ease;
}
.banner-rotation .banner-rotation__item.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.banner-rotation .banner-rotation__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================================
   FIX: HERO / FEATURED SLIDER MOBILE OVERFLOW
   ============================================================ */
.hero-grid > * {
  min-width: 0;
}

.hero-carousel,
.hero-slide,
.hero-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-main img {
  width: 100%;
  max-width: 100%;
}

.hero-main__content,
.hero-main__title,
.hero-main__excerpt,
.hero-main__meta {
  min-width: 0;
  max-width: 100%;
}

.hero-dots {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero-section .container,
  .hero-grid,
  .hero-grid > div,
  .hero-carousel,
  .hero-slide,
  .hero-main {
    min-width: 0;
    max-width: 100%;
  }

  .hero-main__meta {
    flex-wrap: wrap;
    gap: .35rem .75rem;
  }
}
