/* ==========================================================================
   Gojaznost.org — Glavni stilovi (Main CSS)
   Savremen, smiren zdravstveni magazin sa praktičnim vodičima
   ========================================================================== */

:root {
  --bg-page: #F7F8F5;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F1F4F0;
  --text-main: #22312E;
  --text-muted: #566762;
  --text-light: #768681;
  --primary: #245B4B;
  --primary-hover: #1A4438;
  --primary-light: #EBF2EE;
  --accent: #B76D4D;
  --accent-hover: #985538;
  --accent-light: #FBF2EE;
  --border: #E2E6E1;
  --border-strong: #CBD2CA;
  --danger-bg: #FDF1F0;
  --danger-border: #E8A8A4;
  --danger-text: #8E231D;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --shadow-sm: 0 1px 3px rgba(34, 49, 46, 0.05);
  --shadow-md: 0 4px 12px rgba(34, 49, 46, 0.07);
  --shadow-lg: 0 8px 24px rgba(34, 49, 46, 0.09);
  
  --max-w-page: 1200px;
  --max-w-content: 780px;
}

/* Reset i osnova */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip link za pristupačnost */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* Tipografija */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.65rem; margin-top: 2.5rem; margin-bottom: 0.85rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.3rem; margin-top: 1.75rem; margin-bottom: 0.65rem; }
h4 { font-size: 1.1rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.75;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover {
  color: var(--primary-hover);
  text-decoration-thickness: 2px;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}
li {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.65;
}

strong {
  font-weight: 600;
}

/* Kontejneri */
.container {
  width: 100%;
  max-width: var(--max-w-page);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   Zaglavlje sajta (Header & Navigation)
   ========================================================================== */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.brand-name {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-name span {
  color: var(--accent);
}
.brand-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.header-search-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.25rem;
}

.nav-mobile-drawer {
  display: none;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 1rem;
}
.nav-mobile-drawer.open {
  display: block;
}
.nav-mobile-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-mobile-drawer li {
  margin-bottom: 0.5rem;
}
.nav-mobile-drawer a {
  display: block;
  padding: 0.6rem 0.85rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
}
.nav-mobile-drawer a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumbs {
  padding: 0.85rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.4rem;
}
.breadcrumbs li::after {
  content: "›";
  margin-left: 0.4rem;
  color: var(--text-light);
}
.breadcrumbs li:last-child::after {
  content: "";
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ==========================================================================
   Članak — Struktura i Kolone (Article Layout)
   ========================================================================== */
.article-page {
  padding-bottom: 4rem;
}

.article-header {
  max-width: var(--max-w-content);
  margin-bottom: 2rem;
}

.article-category-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.article-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-hero-figure {
  margin: 1.5rem 0 2.5rem 0;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.article-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.article-hero-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.65rem 1rem;
  font-style: italic;
  border-top: 1px solid var(--border);
}

/* Glavna mreža članka: Sadržaj (TOC) levo, tekst desno */
.article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

/* Sidebar TOC (Desktop Sticky) */
.article-sidebar {
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.toc-list a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  line-height: 1.35;
}
.toc-list a:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.toc-list a.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
  border-left: 3px solid var(--primary);
}

/* TOC Mobilni (sklopiv) */
.toc-mobile {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  padding: 0.85rem 1rem;
}
.toc-mobile summary {
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  font-size: 1rem;
}

/* Telo članka */
.article-body {
  max-width: var(--max-w-content);
  min-width: 0;
  background: var(--bg-surface);
  padding: 2.5rem 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow-wrap: break-word;
}

.article-body figure {
  margin: 2.25rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface-subtle);
}
.article-body figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.article-body figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Praktični prikazi i boksevi (Custom Displays & Callouts)
   ========================================================================== */
.practical-display {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}
.display-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.display-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary);
}

/* Tabela u prikazu */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.75rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
.article-body table,
.custom-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 0.925rem;
  line-height: 1.55;
  text-align: left;
  background: transparent;
  margin: 0;
}
.article-body table th,
.custom-table th {
  background: #EEF6F2;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #D0E0D6;
  border-right: 1px solid #E2EDE6;
  vertical-align: bottom;
}
.article-body table th:last-child,
.custom-table th:last-child {
  border-right: none;
}
.article-body table td,
.custom-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #E8EEE9;
  border-right: 1px solid #EEF3EF;
  vertical-align: top;
  color: var(--text-main);
}
.article-body table td:last-child,
.custom-table td:last-child {
  border-right: none;
}
.article-body table tr:last-child td,
.custom-table tr:last-child td {
  border-bottom: none;
}
.article-body table tbody tr:nth-child(even),
.custom-table tbody tr:nth-child(even) {
  background-color: #FAFCFB;
}
.article-body table tbody tr:hover,
.custom-table tbody tr:hover {
  background-color: #F0F7F2;
  transition: background-color 0.15s ease-in-out;
}
.article-body table td:first-child strong,
.custom-table td:first-child strong {
  color: var(--primary);
  font-weight: 600;
}

/* Kartice vežbi / kretanja */
.exercise-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.exercise-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.exercise-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}
.exercise-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}
.exercise-card-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  font-weight: 600;
}
.exercise-steps {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
}
.exercise-tip {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  margin-top: 0.5rem;
}

/* Pozivni boksevi (Callouts) */
.disclaimer-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
  font-size: 0.95rem;
  color: var(--text-main);
}
.disclaimer-box strong {
  color: var(--primary);
}

.red-flag-box {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-left: 5px solid var(--danger-text);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  color: var(--danger-text);
}
.red-flag-box h4 {
  color: var(--danger-text);
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.example-box {
  background: #F9FAF7;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 2rem 0;
}
.example-box h4 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* SVG dijagram kontejner */
.svg-diagram-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}
.svg-diagram-wrapper svg {
  max-width: 100%;
  height: auto;
}

/* FAQ sekcija */
.faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.faq-item {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  padding: 1rem 1.25rem;
}
.faq-question {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.faq-answer {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0;
}

/* Reference / Izvori */
.sources-section {
  margin-top: 3.5rem;
  padding: 2rem;
  background: #F9FAF8;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.sources-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.sources-header h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin: 0;
  font-weight: 700;
}
.sources-intro {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.sources-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.source-card {
  display: flex;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.source-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.source-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}
.source-content {
  flex: 1;
}
.source-title-row {
  margin-bottom: 0.25rem;
}
.source-name {
  font-size: 0.95rem;
  color: var(--text-main);
  margin: 0 0 0.15rem 0;
  font-weight: 700;
}
.source-org {
  font-size: 0.825rem;
  color: var(--accent);
  font-weight: 600;
}
.source-scope {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0.25rem 0 0.5rem 0;
}
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.source-link:hover {
  text-decoration: underline;
}

/* Povezani članci — tačno 4 u 2x2 rasporedu */
.related-articles-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}
@media (max-width: 640px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}
.related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.related-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.related-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

/* ==========================================================================
   Početna strana (Homepage Layout)
   ========================================================================== */
.hero-home {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-page) 100%);
  padding: 3.5rem 0 2.5rem 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero-home h1 {
  font-size: 2.75rem;
  max-width: 800px;
  margin: 0 auto 1rem auto;
  color: var(--primary);
}
.hero-home-lead {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2rem auto;
}

/* Glavna traka za pretragu */
.search-bar-home {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  font-size: 1.1rem;
  border: 2px solid var(--border-strong);
  border-radius: 30px;
  background: var(--bg-surface);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.search-icon-inside {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.2rem;
  pointer-events: none;
}

/* 4 Glavna ulaza (Action Cards) */
.home-entry-paths {
  margin: 3rem 0;
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.entry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.entry-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.entry-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1rem;
}
.entry-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}
.entry-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.entry-card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.45;
}
.entry-card-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Centralni vodiči na početnoj */
.home-section {
  margin: 3.5rem 0;
}
.section-header {
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}
.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
}
.guide-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.guide-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.guide-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}
.guide-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Rubrike kartice — 2 u redu sa ikonama */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}
.category-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.category-card:hover {
  border-color: var(--primary);
  background: #FCFDFB;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.category-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}
.category-card-content {
  flex: 1;
}
.category-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 0 0 0.35rem 0;
  font-weight: 700;
}
.category-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   Modal za pretragu (Search Overlay)
   ========================================================================== */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(34, 49, 46, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9000;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.search-modal.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.search-modal-content {
  background: var(--bg-surface);
  width: 100%;
  max-width: 650px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 3rem;
  border: 1px solid var(--border);
}
.search-modal-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.search-modal-input {
  flex: 1;
  border: none;
  font-size: 1.15rem;
  color: var(--text-main);
  outline: none;
}
.search-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.search-results-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.75rem;
}
.search-result-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: block;
  transition: background 0.1s;
}
.search-result-item:hover, .search-result-item:focus {
  background: var(--primary-light);
}
.search-result-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.search-result-snippet {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Podnožje sajta (Footer)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: #1C2725;
  color: #D3DAD8;
  padding: 3.5rem 0 2rem 0;
  border-top: 3px solid var(--primary);
  font-size: 0.925rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #2F3E3B;
  padding-bottom: 0.4rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #A6B4B1;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li {
  margin-bottom: 0.5rem;
}
.footer-nav a {
  color: #CBD5D3;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* 13 Korisnih linkova — raspoređeni u 2 unutrašnje kolone */
.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links-grid li {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}
.footer-links-grid a {
  color: #CBD5D3;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links-grid a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #2F3E3B;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
  color: #8C9C98;
}

/* ==========================================================================
   Prilagodljivost (Responsive Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .article-sidebar {
    display: none;
  }
  .toc-mobile {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }
  .nav-desktop { display: none; }
  .nav-mobile-toggle { display: block; }
  .article-body {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }
  p, li { font-size: 1.05rem; }
}
