/* ============================================================
   site.css — Shared styles for SEO pages & blog posts
   Serbian Fitness / BMI Calculator Website
   Design: Apple/Stripe-inspired minimalist, Inter font
   Accent: #f97316 (orange)
   ============================================================ */

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


/* ============================================================
   2. CSS VARIABLES
   ============================================================ */
:root {
  /* Brand colors */
  --orange:        #f97316;
  --orange-dark:   #ea6c0a;
  --orange-light:  #fff7ed;
  --black:         #080808;
  --white:         #ffffff;

  /* Backgrounds */
  --bg:            #f7f8fa;
  --bg-card:       #ffffff;
  --bg-dark:       #0f172a;

  /* Text */
  --text:          #0f172a;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --text-on-dark:  #e2e8f0;

  /* Borders */
  --border:        #e2e8f0;
  --border-light:  #f1f5f9;

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:     0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-orange: 0 4px 20px rgba(249, 115, 22, 0.30);

  /* Spacing */
  --space-xs:      4px;
  --space-sm:      8px;
  --space-md:      16px;
  --space-lg:      24px;
  --space-xl:      28px;
  --space-2xl:     48px;
  --space-3xl:     64px;

  /* Border radius */
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-pill:   9999px;

  /* Typography */
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'SF Mono', 'Fira Code', 'Fira Mono', monospace;

  /* Transitions */
  --transition:    0.2s ease;
  --transition-md: 0.3s ease;

  /* Layout */
  --nav-height:    64px;
}


/* ============================================================
   3. RESET & BASE
   ============================================================ */
*,
*::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);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange-dark);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: var(--font);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ============================================================
   4. CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container--narrow {
  max-width: 740px;
}

.container--wide {
  max-width: 1280px;
}


/* ============================================================
   5. NAVIGATION (.site-nav)
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--orange);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg);
}

.nav-links a.active {
  color: var(--orange);
  background: var(--orange-light);
}

.nav-links .nav-cta {
  background: var(--orange);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  margin-left: var(--space-xs);
}

.nav-links .nav-cta:hover {
  background: var(--orange-dark);
  color: #fff;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-hamburger:hover {
  background: var(--bg);
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition-md), opacity var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

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

.nav-mobile a {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover {
  color: var(--orange);
}


/* ============================================================
   6. BUTTONS (.btn, .btn-orange, .btn-outline)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

/* Orange (primary) */
.btn-orange {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: var(--shadow-orange);
}

.btn-orange:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #fff;
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.40);
  transform: translateY(-1px);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn-outline:hover {
  background: var(--orange-light);
  color: var(--orange-dark);
  transform: translateY(-1px);
}

/* Ghost / subtle */
.btn-ghost {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--border-light);
  color: var(--text);
}

/* Sizes */
.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}


/* ============================================================
   7. HERO SECTION (.page-hero)
   ============================================================ */
.page-hero {
  background: var(--white);
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero .breadcrumb {
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.page-hero-tag {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  max-width: 760px;
  margin: 0 auto var(--space-md);
}

.page-hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.page-hero .hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.page-hero .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.page-hero .hero-meta {
  margin-top: var(--space-xl);
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.page-hero .hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}


/* ============================================================
   8. ARTICLE LAYOUT (.article-wrap + .blog-with-sidebar)
   ============================================================ */
.article-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

/* Blog layout with sidebar */
.blog-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 52px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.blog-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.sidebar-widget-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.sidebar-post {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}
.sidebar-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sidebar-post:first-of-type { padding-top: 0; }

.sidebar-post-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.sidebar-post-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  transition: color var(--transition);
}

.sidebar-post:hover .sidebar-post-title {
  color: var(--orange);
}

.sidebar-post-date {
  font-size: 0.73rem;
  color: var(--text-light);
}

.sidebar-cta {
  background: var(--bg-dark);
  border-color: transparent;
  text-align: center;
}
.sidebar-cta-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 8px;
}
.sidebar-cta strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.sidebar-cta p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .blog-with-sidebar {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: var(--space-xl) var(--space-md);
  }
  .blog-sidebar {
    position: static;
  }
}

.article-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.article-meta time {
  font-weight: 500;
}

/* Article typography */
.article-body h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.article-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body strong {
  font-weight: 600;
  color: var(--text);
}

.article-body em {
  font-style: italic;
}

/* Lists */
.article-body ul,
.article-body ol {
  margin: var(--space-md) 0 var(--space-lg) var(--space-xl);
  list-style: revert;
}

.article-body ul {
  list-style-type: disc;
}

.article-body ol {
  list-style-type: decimal;
}

.article-body li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 6px;
  padding-left: 4px;
}

.article-body li::marker {
  color: var(--orange);
}

/* Blockquote */
.article-body blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--orange);
  background: var(--orange-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-body blockquote p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  font-style: italic;
  margin-bottom: 0;
}

.article-body blockquote cite {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
}

/* Code */
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg);
  color: var(--orange-dark);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.article-body pre {
  background: var(--bg-dark);
  color: #e2e8f0;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-lg) 0;
}

.article-body pre code {
  background: none;
  border: none;
  color: inherit;
  font-size: 0.9rem;
  padding: 0;
}

/* Horizontal rule */
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-2xl) 0;
}


/* ============================================================
   9. STAT CARDS (.stat-cards)
   ============================================================ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}

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

.stat-card-number {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--orange);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-card-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.stat-card-sub {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}


/* ============================================================
   10. FAQ SECTION (.faq-list)
   ============================================================ */
.faq-section {
  padding: var(--space-2xl) 0;
}

.faq-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item.open {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  user-select: none;
  transition: background var(--transition);
}

.faq-q:hover {
  background: var(--bg);
}

.faq-item.open .faq-q {
  color: var(--orange);
  background: var(--orange-light);
}

/* Chevron icon */
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition-md);
}

.faq-item.open .faq-icon {
  background: var(--orange);
  transform: rotate(180deg);
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition);
}

.faq-item.open .faq-icon svg {
  stroke: #fff;
}

/* Accordion answer */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding var(--transition-md);
  padding: 0 var(--space-lg);
}

.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 var(--space-lg) var(--space-lg);
}

.faq-a p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-muted);
  padding-top: var(--space-sm);
}

.faq-a a {
  color: var(--orange);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ============================================================
   11. CTA BOX (.cta-box)
   ============================================================ */
.cta-box {
  background: var(--black);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  margin: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

/* Subtle orange glow decoration */
.cta-box::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box-tag {
  display: inline-block;
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
}

.cta-box h2,
.cta-box h3 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--text-on-dark);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.cta-box .btn-orange {
  font-size: 1rem;
  padding: 14px 36px;
}


/* ============================================================
   12. RELATED LINKS / INTERNAL LINKS (.related-links)
   ============================================================ */
.related-links {
  padding: var(--space-2xl) 0;
}

.related-links-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

.related-link-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition-md);
}

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

.related-link-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--orange-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  transition: background var(--transition), color var(--transition);
}
.related-link-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.related-link-card:hover .related-link-icon {
  background: var(--orange);
  color: white;
}


/* ============================================================
   13. BLOG CARD (.blog-card)
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}

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

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--orange-light) 0%, #fde8d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-image-placeholder {
  color: var(--orange);
  opacity: 0.6;
}
.blog-card-image-placeholder svg {
  width: 40px;
  height: 40px;
}

.blog-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.blog-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--orange);
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: var(--space-sm);
  text-decoration: none;
  display: block;
  transition: color var(--transition);
}

.blog-card-title:hover {
  color: var(--orange);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: gap var(--transition);
}

.blog-card-link:hover {
  gap: 8px;
  color: var(--orange-dark);
}


/* ============================================================
   14. BREADCRUMB (.breadcrumb)
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-light);
  padding: var(--space-md) 0;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb-sep {
  color: var(--border);
  font-size: 0.75rem;
  user-select: none;
}

.breadcrumb-current {
  color: var(--text-muted);
  font-weight: 500;
}


/* ============================================================
   15. TAG (.tag)
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: opacity var(--transition);
  cursor: default;
}

.tag:hover {
  opacity: 0.8;
}

/* Variants */
.tag-orange {
  background: var(--orange-light);
  color: var(--orange);
}

.tag-gray {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.tag-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.tag-green {
  background: #f0fdf4;
  color: #16a34a;
}

.tag-blue {
  background: #eff6ff;
  color: #2563eb;
}

/* Tag group */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}


/* ============================================================
   16. TABLE (.content-table)
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.93rem;
}

.content-table thead {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

.content-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.content-table td {
  padding: 13px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.content-table tr:last-child td {
  border-bottom: none;
}

.content-table tbody tr {
  transition: background var(--transition);
}

.content-table tbody tr:hover {
  background: var(--bg);
}

.content-table .highlight-row td {
  background: var(--orange-light);
  font-weight: 600;
  color: var(--orange-dark);
}

.content-table .col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}


/* ============================================================
   17. FOOTER (.site-footer)
   ============================================================ */
.site-footer {
  background: var(--black);
  color: var(--text-on-dark);
  padding: var(--space-3xl) 0 0;
  margin-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer brand column */
.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--orange);
  color: #fff;
}

/* Footer nav columns */
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--orange);
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}


/* ============================================================
   18. UTILITY CLASSES
   ============================================================ */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-orange  { color: var(--orange); }
.text-muted   { color: var(--text-muted); }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.text-lg      { font-size: 1.125rem; }

.font-bold    { font-weight: 700; }
.font-medium  { font-weight: 500; }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

.section {
  padding: var(--space-2xl) 0;
}

.section-lg {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ============================================================
   19. ANIMATIONS
   ============================================================ */

/* Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Animation utility classes */
.animate {
  animation-duration: 0.55s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-fade-in {
  animation-name: fadeIn;
}

.animate-slide-up {
  animation-name: slideUp;
}

.animate-slide-down {
  animation-name: slideDown;
}

.animate-scale-in {
  animation-name: scaleIn;
}

/* Staggered delays for lists of items */
.animate-delay-1 { animation-delay: 0.05s; }
.animate-delay-2 { animation-delay: 0.10s; }
.animate-delay-3 { animation-delay: 0.15s; }
.animate-delay-4 { animation-delay: 0.20s; }
.animate-delay-5 { animation-delay: 0.25s; }
.animate-delay-6 { animation-delay: 0.30s; }

/* Reduced motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
  .animate,
  .animate-fade-in,
  .animate-slide-up,
  .animate-slide-down,
  .animate-scale-in {
    animation: none !important;
    transition: none !important;
  }
}


/* ============================================================
   20. MOBILE RESPONSIVE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Navigation */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .page-hero {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .page-hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-hero .hero-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }

  /* Article */
  .article-wrap {
    padding: var(--space-xl) var(--space-md);
  }

  .article-body h1 { font-size: 1.8rem; }
  .article-body h2 { font-size: 1.35rem; }
  .article-body h3 { font-size: 1.1rem; }

  /* Stat cards: 1-col on small, 2-col on medium */
  .stat-cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .stat-card-number {
    font-size: 2rem;
  }

  /* Blog grid */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Related links */
  .related-links-grid {
    grid-template-columns: 1fr;
  }

  /* CTA box */
  .cta-box {
    padding: var(--space-2xl) var(--space-md);
    border-radius: var(--radius-lg);
  }

  /* FAQ */
  .faq-q {
    font-size: 0.95rem;
  }

  /* Footer grid: single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  /* Table */
  .content-table th,
  .content-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  /* Containers */
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  /* Sections */
  .section {
    padding: var(--space-xl) 0;
  }

  .section-lg {
    padding: var(--space-2xl) 0;
  }

  /* Buttons */
  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* Tablet breakpoint: 2-col stat cards */
@media (min-width: 480px) and (max-width: 768px) {
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   END OF site.css
   ============================================================ */
