/* =============================================
   BAZAART — Design System
   ============================================= */

:root {
  --bg:         #f8f6f2;
  --surface:    #ffffff;
  --border:     #e0ddd8;
  --text:       #1a1a1a;
  --text-muted: #888888;
  --accent:     #c44444;
  --dark:       #1a1a1a;

  --cat-projekti-bg:    #dbeafe;
  --cat-projekti-fg:    #2563a8;
  --cat-konferencija-bg:#fde8e8;
  --cat-konferencija-fg:#c44444;
  --cat-edukacija-bg:   #dcfce7;
  --cat-edukacija-fg:   #2a7a2a;
  --cat-produkcije-bg:  #f3e8ff;
  --cat-produkcije-fg:  #7a2a7a;
  --cat-izdanja-bg:     #fef3c7;
  --cat-izdanja-fg:     #7a5a1a;
  --cat-arhiva-bg:      #f0f0f0;
  --cat-arhiva-fg:      #666666;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   NAVIGATION
   ============================================= */

.nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  max-width: 100%;
  display: block;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(196,68,68,0.2);
}

.nav-links a.active { color: var(--accent); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  display: block;
  transition: transform 0.2s;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 60px 0; }
.section-sm { padding: 32px 0; }

/* =============================================
   CATEGORY TAGS
   ============================================= */

.tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.tag-projekti    { background: var(--cat-projekti-bg);    color: var(--cat-projekti-fg); }
.tag-konferencija{ background: var(--cat-konferencija-bg); color: var(--cat-konferencija-fg); }
.tag-edukacija   { background: var(--cat-edukacija-bg);   color: var(--cat-edukacija-fg); }
.tag-produkcije  { background: var(--cat-produkcije-bg);  color: var(--cat-produkcije-fg); }
.tag-izdanja     { background: var(--cat-izdanja-bg);     color: var(--cat-izdanja-fg); }
.tag-arhiva      { background: var(--cat-arhiva-bg);      color: var(--cat-arhiva-fg); }
.tag-default     { background: #e8e8e8;                    color: #555; }

/* =============================================
   PAGE HEADER
   ============================================= */

.page-header {
  background: var(--dark);
  color: #fff;
  padding: 48px 0 40px;
  border-bottom: 3px solid var(--accent);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-header p {
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
  font-size: 1rem;
}

.page-header .stats-row {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-item .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-item .lbl {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* =============================================
   HERO SPLIT (index) — 70% slider / 30% sidebar
   ============================================= */

.hero-split {
  display: grid;
  grid-template-columns: 70% 30%;
  min-height: 420px;
  border-bottom: 3px solid var(--accent);
}

/* ── LEFT: Slider ── */

.hero-slider {
  position: relative;
  background: #111;
  overflow: hidden;
  min-height: 420px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slide-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.55) 80%,
    rgba(0,0,0,0.80) 100%
  );
}

.slide-category {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  z-index: 2;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 22px;
  z-index: 2;
}

.slide-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.slide-readmore {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.slide-readmore:hover { color: #fff; }

/* Slider arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 40px;
  height: 60px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}

.slider-btn:hover { background: rgba(196,68,68,0.75); }
.slider-btn.prev { left: 0; border-radius: 0 3px 3px 0; }
.slider-btn.next { right: 0; border-radius: 3px 0 0 3px; }

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}

.slider-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* ── RIGHT: Sidebar blocks ── */

.hero-sidebar {
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.sidebar-block {
  border-bottom: 1px solid var(--border);
  flex: 1;
}

.sidebar-block:last-child { border-bottom: none; }

.sidebar-block-header {
  background: var(--dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 9px 16px;
}

.sidebar-block-body {
  padding: 14px 16px;
}

.sidebar-block-body p,
.sidebar-block-body a {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}

.sidebar-block-body a {
  display: block;
  margin-bottom: 8px;
  transition: color 0.12s;
}

.sidebar-block-body a:hover { color: var(--accent); }

.sidebar-block-body .sb-link-title {
  font-weight: 600;
  font-size: 0.88rem;
}

.sidebar-block-body .sb-link-meta {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.15s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #a83333;
  color: #fff;
}

.btn-ghost {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* =============================================
   PILLARS STRIP
   ============================================= */

.pillars {
  background: #252525;
  padding: 28px 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.pillar {
  text-align: center;
  padding: 20px 16px;
  color: rgba(255,255,255,0.75);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.pillar:last-child { border-right: none; }

.pillar-icon { font-size: 1.6rem; margin-bottom: 8px; }

.pillar-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* =============================================
   POST CARDS (recent / listing)
   ============================================= */

.posts-list { display: flex; flex-direction: column; gap: 0; }

.post-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 80px 1fr 24px;
  gap: 16px;
  align-items: start;
  transition: box-shadow 0.15s, border-color 0.15s;
  margin-bottom: 8px;
}

.post-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(196,68,68,0.08);
}

.post-item.milestone { border-left: 3px solid var(--accent); }

.post-date-col {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: right;
  padding-top: 3px;
  line-height: 1.4;
}

.post-main h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.post-main h3 a:hover { color: var(--accent); }

.post-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.post-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  align-self: center;
  flex-shrink: 0;
}

/* =============================================
   PROJECT CARDS GRID
   ============================================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.project-card-top {
  height: 5px;
}

.project-card-body { padding: 20px; }

.project-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-count-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
}

.status-aktivan  { background: #dcfce7; color: #2a7a2a; }
.status-arhiva   { background: #f0f0f0; color: #666; }

.project-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.eu-flag {
  font-size: 0.7rem;
  background: #003399;
  color: #ffcc00;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* =============================================
   ABOUT SNIPPET
   ============================================= */

.about-snippet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
}

.about-snippet h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-snippet p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-snippet .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* =============================================
   SECTION HEADERS
   ============================================= */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.section-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* =============================================
   TIMELINE
   ============================================= */

.timeline-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 32px;
  margin: 24px 0;
  overflow-x: auto;
}

.timeline-track {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 800px;
  position: relative;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 0;
}

.year-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
  cursor: default;
}

.year-dot .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  transition: transform 0.15s;
}

.year-dot.has-posts .dot {
  background: var(--accent);
  border-color: var(--accent);
}

.year-dot.milestone .dot {
  background: var(--dark);
  border-color: var(--dark);
  width: 14px;
  height: 14px;
}

.year-dot .year-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
  white-space: nowrap;
}

.year-dot.has-posts .year-label { color: var(--text); }

.year-dot .tooltip {
  display: none;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: #fff;
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;
}

.year-dot:hover .tooltip { display: block; }
.year-dot:hover .dot { transform: scale(1.4); }

a.year-dot { text-decoration: none; color: inherit; }
.year-dot.active .dot { box-shadow: 0 0 0 3px var(--dark); }

/* =============================================
   ARCHIVE PAGE LAYOUT
   ============================================= */

.archive-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
}

.sidebar {
  position: sticky;
  top: 72px;
}

.sidebar-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.sidebar-section h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sidebar-list { list-style: none; }

.sidebar-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.8rem;
}

.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li:hover { color: var(--accent); }

.sidebar-list li.active { color: var(--accent); font-weight: 600; }

.sidebar-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 10px;
}

.decade-group { margin-bottom: 8px; }
.decade-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 0;
}

/* =============================================
   ARCHIVE FILTER BAR
   ============================================= */

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.12s;
  letter-spacing: 0.04em;
}

.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.search-input {
  flex: 1;
  min-width: 180px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }

/* =============================================
   ARCHIVE MAIN AREA
   ============================================= */

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.results-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.year-group-header {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.year-group-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =============================================
   PAGINATION
   ============================================= */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  transition: all 0.12s;
}

.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn.wide { width: auto; padding: 0 12px; }

/* =============================================
   O NAMA PAGE
   ============================================= */

.content-body {
  max-width: 760px;
}

.content-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.content-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 20px 0 8px;
}

.content-body p {
  color: #333;
  line-height: 1.75;
  margin-bottom: 14px;
}

.content-body ul {
  margin: 8px 0 14px 20px;
}

.content-body li {
  color: #333;
  line-height: 1.6;
  margin-bottom: 4px;
}

.donor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.donor-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* =============================================
   KONTAKT
   ============================================= */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.contact-card .name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-card .role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-detail {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-detail a:hover { color: var(--accent); }

.map-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 360px;
  background: #e8e4dc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================================
   IZDANJA
   ============================================= */

.izdanja-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.izdanje-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.izdanje-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.izdanje-cover {
  height: 180px;
  background: linear-gradient(135deg, #f0ede8, #e8e4dc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.izdanje-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.izdanje-body { padding: 16px; }

.izdanje-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.izdanje-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 12px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  transition: all 0.12s;
}

.download-link:hover {
  background: var(--accent);
  color: #fff;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 14px;
  /* Logo SVG has transparent bg — white text shows on dark footer */
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }

.footer-col li {
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.footer-col a {
  color: rgba(255,255,255,0.55);
  transition: color 0.12s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-sidebar { border-left: none; border-top: 1px solid var(--border); }
  .hero-slider { min-height: 300px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 63px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 16px 24px;
    border-bottom: 3px solid var(--accent);
    z-index: 99;
  }
  .nav-hamburger { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .post-item { grid-template-columns: 60px 1fr 20px; gap: 10px; }
  .section { padding: 40px 0; }
  .hero-slider { min-height: 260px; }
  .slide-title { font-size: 1rem; }
}

/* =============================================
   POST PAGE
   ============================================= */

.post-page {
  padding: 40px 0 80px;
}

.post-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.post-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.post-breadcrumb a:hover { color: var(--accent); }
.post-breadcrumb span { color: var(--text); }

.post-article {
  max-width: 780px;
  margin: 0 auto;
}

.post-header-article {
  margin-bottom: 32px;
}
.post-header-article h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 12px 0 8px;
  color: var(--text);
}
.post-date-display {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.post-hero-img {
  margin-bottom: 32px;
  border-radius: 6px;
  overflow: hidden;
}
.post-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

.post-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.post-content p { margin: 0 0 1.2em; }
.post-content h2, .post-content h3, .post-content h4 {
  font-weight: 800;
  margin: 1.8em 0 0.6em;
  color: var(--text);
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 12px 0;
  display: block;
}
.post-content a {
  color: var(--accent);
  text-decoration: underline;
}
.post-content a:hover { opacity: 0.8; }
.post-content ul, .post-content ol {
  padding-left: 1.5em;
  margin: 0 0 1.2em;
}
.post-content li { margin-bottom: 0.4em; }
.post-content strong { font-weight: 700; }
.post-content em { font-style: italic; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5em 0;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--text-muted);
  font-style: italic;
}
/* Override WP inline white/colored text so it's readable */
.post-content [style*="color: #ffffff"],
.post-content [style*="color:#ffffff"],
.post-content [style*="color: white"] {
  color: var(--text) !important;
}
.post-content .entry { /* WP entry wrapper */ }
.post-content .alignleft {
  float: left;
  margin: 0 20px 12px 0;
}
.post-content .alignright {
  float: right;
  margin: 0 0 12px 20px;
}
.post-content .aligncenter {
  display: block;
  margin: 0 auto 12px;
}
.post-content::after { content: ''; display: table; clear: both; }

.post-prevnext {
  max-width: 780px;
  margin: 48px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.prevnext-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  max-width: 48%;
  line-height: 1.4;
}
.prevnext-link:hover { color: var(--accent); }
.prevnext-newer { text-align: right; margin-left: auto; }

@media (max-width: 640px) {
  .post-prevnext { flex-direction: column; }
  .prevnext-link { max-width: 100%; }
  .prevnext-newer { text-align: left; margin-left: 0; }
}

/* =============================================
   HERO CARDS (desna strana hero sekcije)
   ============================================= */

.hero-sidebar--cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: stretch;
  padding: 0;
  background: var(--dark);
}

.hero-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 20px;
  text-decoration: none;
  color: #f0ede8;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s, transform 0.2s;
  position: relative;
  flex: 1;
}
.hero-card:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.hero-card--alt {
  background: rgba(196, 68, 68, 0.08);
  border-top: 2px solid var(--accent);
  border-bottom: none;
  flex: 1.2;
}
.hero-card--alt:hover { background: rgba(196,68,68,0.15); }

.hero-card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
}
.hero-card-body { flex: 1; min-width: 0; }
.hero-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.hero-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #fff;
}
.hero-card-excerpt {
  font-size: 0.78rem;
  color: rgba(240,237,232,0.65);
  line-height: 1.45;
  margin: 0;
}
.hero-card-arrow {
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  align-self: center;
  transition: transform 0.2s;
}
.hero-card:hover .hero-card-arrow { transform: translateX(3px); }

/* =============================================
   TRAKA KATEGORIJA
   ============================================= */

.cat-strip {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip-inner {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
}
.cat-strip-inner::-webkit-scrollbar { display: none; }

.cat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-pill:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.cat-pill-icon { font-size: 1.25rem; line-height: 1; }
.cat-pill-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* =============================================
   NAJNOVIJE — 70/30 layout
   ============================================= */

.najnovije-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.najnovije-main { min-width: 0; }
.najnovije-side { min-width: 0; }

.side-section-hdr {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 16px;
}
.side-see-all {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}
.side-see-all:hover { text-decoration: underline; }

/* Preuzimanja kartice */
.preuz-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preuz-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--text);
  padding: 8px;
  border-radius: 6px;
  transition: background 0.18s;
}
.preuz-card:hover { background: var(--border); color: var(--accent); }
.preuz-img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--border);
}
.preuz-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preuz-img-ph {
  width: 100%;
  height: 100%;
  background: var(--border);
}
.preuz-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  padding-top: 2px;
}

/* =============================================
   KALENDAR DOGAĐAJA
   ============================================= */

.section--alt { background: var(--surface); }

.cal-nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cal-nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.cal-nav-btn:hover { background: var(--border); border-color: var(--accent); }
.cal-title-label {
  font-size: 0.92rem;
  font-weight: 700;
  min-width: 140px;
  text-align: center;
  color: var(--text);
  user-select: none;
}
.cal-title-label:hover { color: var(--accent); }
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.calendar-wrap { overflow-x: auto; }
.cal-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}
.cal-dh {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 6px 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-cell {
  min-height: 80px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-cell.cal-empty { background: transparent; border-color: transparent; }
.cal-cell.cal-today { border-color: var(--accent); background: #fff8f8; }
.cal-cell.has-event { background: var(--surface); cursor: pointer; }
.cal-cell.has-event a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
}
.cal-cell.has-event:hover { background: #f0ede8; }
.cal-cell-top {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.cal-day {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.cal-today .cal-day { color: var(--accent); }
.cal-event-title {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Status badges */
.cal-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 5px;
  border-radius: 3px;
}
.cal-uskoro   { background: #dbeafe; color: #2563a8; }
.cal-aktuelno { background: #fef3c7; color: #92400e; }
.cal-uzivo    { background: #d1fae5; color: #065f46; }
.cal-nedavno  { background: #f3e8ff; color: #7c3aed; }
.cal-zavrseno { background: #f0f0f0; color: #666; }
.cal-arhiva   { background: #e5e7eb; color: #9ca3af; }

/* =============================================
   LOGOS GRIDS (Donatori / Saradnici)
   ============================================= */

.logos-grid {
  display: grid;
  gap: 12px;
}
.logos-grid--lg { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.logos-grid--sm { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

.logo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 12px 10px;
  transition: border-color 0.2s, filter 0.2s;
  filter: grayscale(1);
  cursor: default;
  min-height: 64px;
}
.logo-ph--lg { min-height: 0; padding: 6px 8px; font-size: 0.8rem; border-style: solid; }
.logo-ph--sm { min-height: 56px; font-size: 0.72rem; border-style: solid; }
.logo-ph:hover { border-color: var(--accent); filter: grayscale(0); color: var(--text); }

/* =============================================
   PROJEKTI POST KARTICE
   ============================================= */

.proj-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.proj-post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow 0.2s, transform 0.2s;
}
.proj-post-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  color: var(--accent);
}
.proj-post-img {
  height: 160px;
  overflow: hidden;
  background: var(--border);
}
.proj-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.proj-post-card:hover .proj-post-img img { transform: scale(1.04); }
.proj-img-ph { width: 100%; height: 100%; background: var(--border); }
.proj-post-body { padding: 14px 16px; }
.proj-post-date { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 6px; }
.proj-post-title { font-size: 0.9rem; font-weight: 700; line-height: 1.35; }

/* =============================================
   NOVA RESPONSIVE — nove komponente
   ============================================= */

@media (max-width: 1024px) {
  .najnovije-layout { grid-template-columns: 1fr 260px; gap: 28px; }
}
@media (max-width: 900px) {
  .najnovije-layout { grid-template-columns: 1fr; }
  .najnovije-side { border-top: 1px solid var(--border); padding-top: 32px; }
  .proj-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cat-strip-inner { gap: 0; }
  .cat-pill { padding: 12px 12px; }
  .proj-posts-grid { grid-template-columns: 1fr; }
  .logos-grid--lg { grid-template-columns: repeat(2, 1fr); }
  .logos-grid--sm { grid-template-columns: repeat(2, 1fr); }
  .hero-sidebar--cards { display: none; }
  .hero-split { grid-template-columns: 1fr !important; }
}

/* =============================================
   WORDPRESS THEME — ADDITIONAL STYLES
   ============================================= */

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:last-child { color: var(--text); }
.bc-sep { color: var(--border); margin: 0 2px; }

/* Post page heading */
.post-heading {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 12px 0 8px;
  color: var(--text);
}

/* Post meta row (single.php) */
.post-meta-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.post-cpt-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
}
.post-status--aktivan { background: #dcfce7; color: #2a7a2a; }
.post-status--arhiva  { background: #f0f0f0; color: #666; }
.post-date-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Prev/Next navigation (single.php) */
.prevnext-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}
.prevnext-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 48%;
  text-decoration: none;
  color: var(--text);
  transition: color 0.12s;
}
.prevnext-item:hover { color: var(--accent); }
.prevnext-empty { flex: 1; }
.prevnext-next { text-align: right; margin-left: auto; }
.prevnext-dir {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.prevnext-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Site footer (WordPress) */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 40px;
}
.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.footer-nav-list {
  list-style: none;
}
.footer-nav-list li { margin-bottom: 8px; font-size: 0.82rem; }
.footer-nav-list a { color: rgba(255,255,255,0.55); transition: color 0.12s; }
.footer-nav-list a:hover { color: #fff; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.55);
}
.footer-contact-item a { color: rgba(255,255,255,0.7); transition: color 0.12s; }
.footer-contact-item a:hover { color: #fff; }
.footer-contact-icon { flex-shrink: 0; }
.footer-donors-list { list-style: none; }
.footer-donor-item { margin-bottom: 8px; font-size: 0.82rem; }
.footer-donor-logo { height: 28px; width: auto; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.footer-copyright a { color: rgba(255,255,255,0.5); }
.footer-copyright a:hover { color: #fff; }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}
.footer-legal a {
  color: rgba(255,255,255,0.4);
  transition: color 0.12s;
}
.footer-legal a:hover { color: #fff; }
.footer-legal span { color: rgba(255,255,255,0.2); }

/* Hero card link override */
.hero-card-title a {
  color: #fff;
  text-decoration: none;
}
.hero-card-title a:hover { color: var(--accent); }
.hero-card-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.hero-card-link:hover { text-decoration: underline; }

/* Section link */
.section-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* Section title */
.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Side components */
.side-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 16px;
}
.side-all-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.side-all-link:hover { text-decoration: underline; }
.preuz-info { flex: 1; min-width: 0; }
.preuz-dl {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

/* Archive sidebar */
.archive-sidebar {
  position: sticky;
  top: 72px;
}
.sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.sidebar-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  text-align: left;
  transition: color 0.12s;
}
.sidebar-link:hover { color: var(--accent); }
.archive-main { min-width: 0; }

/* Izdanje card extras */
.izdanje-date {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.izdanje-download,
.izdanje-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 12px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.12s;
}
.izdanje-download:hover,
.izdanje-view:hover {
  background: var(--accent);
  color: #fff;
}
.izdanje-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #f0ede8, #e8e4dc);
}

/* No posts message */
.no-posts {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 32px 0;
}

/* Cal nav */
.cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cal-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.cal-btn:hover { background: var(--border); border-color: var(--accent); }
.cal-month-title {
  font-size: 0.92rem;
  font-weight: 700;
  min-width: 140px;
  text-align: center;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.cal-month-title:hover { color: var(--accent); }
.cal-month-title.picker-open { color: var(--accent); }

/* Month/Year Picker */
.cal-picker {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.cal-picker.open { display: block; }

.cal-picker-years {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  max-height: 110px;
  overflow-y: auto;
  padding-bottom: 4px;
}
.cal-py-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cal-py-btn.has-events { color: var(--text); }
.cal-py-btn.active,
.cal-py-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.cal-picker-months {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.cal-pm-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cal-pm-btn.has-events { color: var(--text); border-color: rgba(196,68,68,0.3); }
.cal-pm-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal-pm-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Proj-post-img placeholder */
.proj-post-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e4dc, #d8d4cc);
}

/* Logos grid alias (donors use logos-grid--donors/partners) */
.logos-grid--donors { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: flex-start; }
.logos-grid--partners { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: flex-start; }
.logos-grid--partners .logo-ph { flex: 0 0 auto; min-width: 130px; width: max-content; }
.logos-grid--partners .logo-ph img { max-width: none; }

.logo-ph img {
  max-height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.2s, opacity 0.2s;
}
.logos-grid--donors .logo-ph img { max-height: 73px; }
.logo-ph:hover img { filter: grayscale(0); opacity: 1; }

/* About section */
.about-text p { margin-bottom: 12px; }
.about-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.about-link:hover { text-decoration: underline; }

/* WordPress pagination (paginate_links output) */
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.12s;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; pointer-events: none; }

/* Chips filter wrapper */
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.search-wrap { flex: 1; min-width: 180px; }

/* Responsive footer */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .prevnext-item { max-width: 100%; }
  .prevnext-next { text-align: left; margin-left: 0; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar { position: static; }
}

/* =============================================
   MOBILE POLISH
   ============================================= */

@media (max-width: 640px) {
  /* Uži padding da sadržaj ima više prostora */
  .container { padding: 0 16px; }

  /* Page header naslovi */
  .page-header { padding: 28px 0 24px; }
  .page-header h1 { font-size: 1.7rem; }
  .page-header .stats-row { gap: 16px; margin-top: 14px; }

  /* O nama blok */
  .about-snippet { padding: 24px 20px; }

  /* Kalendar — horizontalni scroll umjesto gnječenja na 7 kolona */
  #cal-root { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cal-day-headers,
  .calendar-grid { min-width: 520px; }

  /* Filter bar */
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-wrap,
  .search-input { min-width: 0; width: 100%; }
}
