/* ==========================================================================
   Halo Halo (halohalo.rs) — Edukativni magazin o mobilnoj tehnologiji
   CSS Stilovi — Usklađeno sa briefom: topla bela, tamnoplava, tirkizna, akcent narandžasta
   ========================================================================== */

:root {
  --bg-main: #F7F8FA;
  --bg-card: #FFFFFF;
  --bg-subtle: #EEF2F6;
  --bg-dark: #10233B;
  --bg-footer: #0D1B2A;

  --text-main: #172033;
  --text-muted: #53627A;
  --text-light: #F7F8FA;
  --text-caption: #718096;

  --primary: #163B65;
  --primary-light: #1E4E85;
  --primary-subtle: #EBF2FA;
  --accent-teal: #087F8C;
  --accent-teal-subtle: #E6F6F8;
  --accent-orange: #CF5B1B;
  --accent-orange-subtle: #FDF1EA;

  --border-color: #E2E8F0;
  --border-light: #EDF2F7;
  --border-dark: #23354E;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Cambria", "Times New Roman", Times, serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --shadow-sm: 0 1px 3px rgba(16, 35, 59, 0.05);
  --shadow-md: 0 4px 12px rgba(16, 35, 59, 0.08);
  --shadow-lg: 0 10px 25px rgba(16, 35, 59, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container-max: 1200px;
  --article-max: 760px;
}

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

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.68;
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

a:hover {
  color: var(--accent-teal);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --------------------------------------------------------------------------
   HEADER & NAV
   -------------------------------------------------------------------------- */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  text-decoration: none;
}

@keyframes phone-vibrate {
  0%, 80%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  82% {
    transform: rotate(-10deg) translate(-1px, 0);
  }
  84% {
    transform: rotate(10deg) translate(1px, -1px);
  }
  86% {
    transform: rotate(-8deg) translate(-1px, 1px);
  }
  88% {
    transform: rotate(8deg) translate(1px, 0);
  }
  90% {
    transform: rotate(-5deg) translate(-0.5px, -0.5px);
  }
  92% {
    transform: rotate(5deg) translate(0.5px, 0.5px);
  }
  94% {
    transform: rotate(0deg) translate(0, 0);
  }
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transform-origin: center center;
  animation: phone-vibrate 5s ease-in-out infinite;
}

.site-logo:hover .logo-icon {
  animation: phone-vibrate 0.8s ease-in-out infinite;
}

.brand-tagline {
  display: none;
  font-size: 13px;
  color: var(--text-muted);
  border-left: 1px solid var(--border-color);
  padding-left: 12px;
}

@media (min-width: 900px) {
  .brand-tagline {
    display: inline-block;
  }
}

.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
  }
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-teal);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-trigger-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-trigger-btn:hover {
  background: #FFFFFF;
  border-color: var(--accent-teal);
  color: var(--primary);
}

.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
  padding: 4px;
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile nav panel */
.mobile-nav-panel {
  display: none;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-list a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  display: block;
  padding: 4px 0;
}

/* --------------------------------------------------------------------------
   HERO / EDITORIAL LEAD
   -------------------------------------------------------------------------- */
.hero-magazine {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-main) 100%);
  padding: 40px 0 32px 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 36px;
  }
}

/* Hero Lead Card with Featured Image */
.lead-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lead-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lead-card-media-wrap {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  background-color: #0F172A;
  display: block;
}

.lead-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.lead-card:hover .lead-card-img {
  transform: scale(1.03);
}

.lead-badge-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lead-card-body {
  padding: 24px 26px 22px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.lead-cat-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-teal);
  margin-bottom: 6px;
}

.lead-card-title {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.25;
  color: var(--primary);
  margin: 0 0 10px 0;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.lead-card-title a {
  color: inherit;
  text-decoration: none;
}

.lead-card-title a:hover {
  color: var(--accent-teal);
}

.lead-card-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-caption);
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  margin-top: auto;
}

.lead-tag {
  color: var(--accent-teal);
  font-weight: 600;
}

.lead-read-btn {
  margin-left: auto;
  font-weight: 700;
  color: var(--accent-teal);
  text-decoration: none;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lead-read-btn:hover {
  color: var(--primary);
}

/* Side Picks with Thumbnails */
.side-picks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-pick-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all 0.2s ease;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.side-pick-card:hover {
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.side-pick-thumb-wrap {
  width: 110px;
  height: 85px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #E2E8F0;
  flex-shrink: 0;
}

.side-pick-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.side-pick-card:hover .side-pick-thumb {
  transform: scale(1.06);
}

.side-pick-content {
  min-width: 0;
}

.side-pick-card .cat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-teal);
  margin-bottom: 4px;
}

.side-pick-card h3 {
  font-size: 16px;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 6px;
  font-weight: 700;
}

.side-pick-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stat Box top row with Shuffle Button */
.stat-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.stat-shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stat-shuffle-btn:hover {
  background: #E2E8F0;
  color: var(--primary);
  border-color: #94A3B8;
  transform: rotate(15deg);
}

.stat-box-fade {
  animation: statFadeIn 0.35s ease;
}

@keyframes statFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   START HERE STRIP (Krenite odavde)
   -------------------------------------------------------------------------- */
.start-here-section {
  padding: 36px 0;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-teal);
}

.start-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 600px) {
  .start-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .start-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.start-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.start-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.start-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 8px;
}

.start-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.start-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   TIMELINE TEASER & FULL TIMELINE
   -------------------------------------------------------------------------- */
.timeline-teaser-section {
  padding: 48px 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
}

.timeline-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .timeline-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .timeline-track {
    grid-template-columns: repeat(4, 1fr);
  }
}

.timeline-node {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.timeline-year {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-teal);
  margin-bottom: 6px;
}

.timeline-node h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.timeline-node p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 8. boks: CTA poziv na celu vremensku liniju */
.timeline-cta-node {
  background: linear-gradient(145deg, #163B65 0%, #0c233e 100%);
  border: 1px solid #163B65;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(22, 59, 101, 0.18);
}

.timeline-cta-node .timeline-year {
  color: var(--accent-orange);
}

.timeline-cta-node h4 {
  color: #FFFFFF;
}

.timeline-cta-node p {
  color: #CBD5E1;
}

.timeline-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent-orange);
  color: #0F172A;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}

.timeline-cta-btn:hover {
  background-color: #E76F51;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   ARTICLES GRID / MAGAZINE CARDS
   -------------------------------------------------------------------------- */
.magazine-section {
  padding: 48px 0;
}

.magazine-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .magazine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .magazine-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-article {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease-in-out;
}

.card-article:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-teal);
  transform: translateY(-2px);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 8px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 12px;
}

.card-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-caption);
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   DATA IN NUMBERS (Mobilni svet u brojkama)
   -------------------------------------------------------------------------- */
.data-numbers-section {
  padding: 48px 0;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.data-banner-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 800px) {
  .data-banner-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 4px solid var(--accent-teal);
  padding-left: 18px;
}

.stat-number {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.stat-source {
  font-size: 13px;
  color: var(--text-caption);
}

/* --------------------------------------------------------------------------
   ARTICLE PAGE TYPOGRAPHY & LAYOUT
   -------------------------------------------------------------------------- */
.article-header {
  padding: 40px 0 24px 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
  font-size: 14px;
  color: var(--text-caption);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent-teal);
}

.breadcrumbs .sep {
  color: var(--text-caption);
}

.article-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.article-lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: var(--article-max);
}

.article-byline-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-caption);
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  flex-wrap: wrap;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-name {
  font-weight: 600;
  color: var(--text-main);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 0 60px 0;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, var(--article-max)) 300px;
    align-items: start;
  }
}

.article-main {
  min-width: 0;
}

/* Key takeaways box */
.key-takeaways-box {
  background: var(--primary-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 36px;
}

.key-takeaways-box h3 {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 12px;
}

.key-takeaways-box ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.key-takeaways-box li {
  font-size: 16px;
  color: var(--text-main);
}

/* Article Body Typography */
.article-body h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.35;
}

.article-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 26px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-featured-figure {
  margin: 0 0 36px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.article-featured-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.article-featured-figure figcaption {
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-thumbnail {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: #E2E8F0;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.card-article:hover .card-thumbnail img {
  transform: scale(1.05);
}

.article-body p {
  margin-bottom: 22px;
  font-size: 18px;
  line-height: 1.72;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.article-body blockquote {
  border-left: 4px solid var(--accent-teal);
  background: var(--bg-subtle);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-main);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
}

.article-body th, .article-body td {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.article-body th {
  background-color: var(--bg-subtle);
  font-weight: 700;
  color: var(--primary);
}

.article-body tr:nth-child(even) td {
  background-color: #FAFAFC;
}

/* Aside sticky TOC */
.article-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .article-sidebar {
    display: block;
    position: sticky;
    top: 90px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
  }
}

.toc-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-link {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

.toc-link:hover, .toc-link.active {
  color: var(--accent-teal);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   EDITORIAL SOURCES & VERIFICATION CARD
   -------------------------------------------------------------------------- */
.editorial-sources-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  margin-top: 48px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.sources-card-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

@media (min-width: 640px) {
  .sources-card-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sources-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sources-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #EBF8FA;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sources-card-heading {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 3px 0;
}

.sources-card-subheading {
  font-size: 13px;
  color: var(--text-caption);
  margin: 0;
}

.factcheck-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  align-self: flex-start;
}

.sources-card-body {
  padding-top: 20px;
}

.sources-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-caption);
  margin-bottom: 10px;
}

.sources-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.source-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-main);
  font-weight: 600;
}

.source-badge-tag svg {
  color: var(--accent-teal);
  flex-shrink: 0;
}

.sources-methodology-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border: 1px solid var(--border-light);
}

@media (min-width: 640px) {
  .sources-methodology-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.methodology-col .col-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.methodology-col p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   RECNIK / GLOSSARY PAGE
   -------------------------------------------------------------------------- */
.glossary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .glossary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.glossary-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.glossary-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-teal);
  background: var(--accent-teal-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 8px;
}

.glossary-term {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.glossary-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   FOOTER (23 odredišta + 4 pravna)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-footer);
  color: #C5D1E0;
  padding: 56px 0 32px 0;
  border-top: 4px solid var(--primary);
  font-size: 15px;
}

/* Top row: 3 widgets */
.footer-widgets-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-widgets-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-widget-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-widget-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent-teal);
  transform: translateY(-2px);
}

.widget-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.widget-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-teal);
}

.widget-title {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
}

.widget-desc {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.45;
  margin-bottom: 14px;
}

.widget-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Middle: Useful links & 16 additional links */
.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-links-grid {
    grid-template-columns: 1fr 2.5fr;
  }
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #FFFFFF;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent-teal);
  display: inline-block;
  padding-bottom: 4px;
}

.footer-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-ul a {
  color: #A0AEC0;
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-ul a:hover {
  color: #FFFFFF;
}

.extra-links-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 24px;
}

/* Bottom copyright bar */
.footer-bottom-bar {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: #718096;
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-links a {
  color: #A0AEC0;
}

.legal-links a:hover {
  color: #FFFFFF;
}

.disclaimer-note {
  font-size: 12px;
  color: #64748B;
  line-height: 1.5;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   SEARCH MODAL / OVERLAY
   -------------------------------------------------------------------------- */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 27, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  padding: 40px 20px;
  overflow-y: auto;
}

.search-modal.active {
  display: block;
}

.search-box-card {
  max-width: 640px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-input-wrap {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input-field {
  width: 100%;
  border: none;
  outline: none;
  font-size: 18px;
  font-family: inherit;
  color: var(--text-main);
}

.search-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.search-results-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 12px 16px;
  list-style: none;
}

.search-result-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: block;
  transition: background 0.1s ease;
}

.search-result-item:hover {
  background: var(--bg-subtle);
}

.search-result-item .res-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-teal);
}

.search-result-item .res-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 2px 0 4px 0;
}

.search-result-item .res-excerpt {
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   DATA CHARTS & VISUALIZATIONS
   -------------------------------------------------------------------------- */
.editorial-chart-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  margin: 36px 0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.chart-header {
  margin-bottom: 20px;
}

.chart-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-teal);
  background: #EBF8FA;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.chart-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.chart-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.chart-legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--text-main);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.chart-svg-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 12px 0;
}

.responsive-svg-chart {
  width: 100%;
  height: auto;
  min-width: 580px;
  display: block;
}

.chart-axis-val {
  font-size: 11px;
  fill: #64748B;
  font-family: inherit;
}

.chart-x-lbl {
  font-size: 12px;
  fill: #475569;
  font-family: inherit;
  font-weight: 600;
}

.chart-point-lbl {
  font-size: 11px;
  fill: #1E293B;
  font-family: inherit;
  font-weight: 700;
}

/* Horizontal Bar Chart */
.horizontal-bars-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.hbar-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hbar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.hbar-val {
  font-weight: 800;
  color: var(--primary);
}

.hbar-track {
  width: 100%;
  height: 18px;
  background: #EEF2F6;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.hbar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.hbar-item.hbar-benchmark {
  background: #FFFBEB;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-orange);
  margin: 6px 0;
  border-top: 1px solid #FEF3C7;
  border-right: 1px solid #FEF3C7;
  border-bottom: 1px solid #FEF3C7;
}

.hbar-item.hbar-benchmark .hbar-name {
  color: #78350F;
  font-weight: 700;
}

.hbar-val.benchmark-val {
  color: #D97706;
  font-weight: 900;
  font-size: 15px;
}

.hbar-fill.hbar-fill-benchmark {
  background: linear-gradient(90deg, #F59E0B, #EA580C) !important;
}

/* Column Chart */
.growth-highlight-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
}

.growth-metric {
  font-size: 28px;
  font-weight: 900;
  color: #C2410C;
  line-height: 1;
}

.growth-desc {
  font-size: 13px;
  color: #7C2D12;
  line-height: 1.45;
}

.column-chart-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: flex-end;
  height: 220px;
  padding: 20px 0 10px 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 12px;
}

.cchart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.cchart-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  white-space: nowrap;
}

.cchart-val.current-val {
  color: #0D9488;
  font-size: 13px;
  font-weight: 800;
}

.cchart-bar {
  width: 80%;
  max-width: 48px;
  border-radius: 6px 6px 0 0;
  min-height: 12px;
}

.cchart-lbl {
  font-size: 11.5px;
  color: var(--text-caption);
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
}

.chart-footer-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-caption);
  line-height: 1.5;
  padding-top: 14px;
  margin-top: 16px;
  border-top: 1px solid var(--border-light);
}

.chart-footer-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-teal);
}
