/*
Theme Name: Dr Siveregi
Theme URI: https://drsiveregi.co.za
Author: Dr A. Siveregi Practice
Description: The official WordPress blog theme for Dr Siveregi, Specialist Ob/Gyn — matches drsiveregi.co.za design system.
Version: 1.0.0
License: Private
Text Domain: drsiveregi
*/

/* ════════════════════════════════════════════
   RESET & VARIABLES
════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0F172A;
  --ink-mid: #1E3A8A;
  --ink-light: #334155;
  --bg-light: #F8FAFC;
  --bg-medium: #F1F5F9;
  --blue-primary: #0EA5E9;
  --blue-accent: #0284C7;
  --blue-light: #38BDF8;
  --blue-pale: #E0F2FE;
  --white: #FFFFFF;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --line: rgba(14, 165, 233, 0.2);

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

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

body {
  font-family: var(--ff-body);
  background: var(--bg-light);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.65;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--blue-primary); border-radius: 4px; }
::selection { background: var(--blue-pale); color: var(--ink); }

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

/* ════════════════════════════════════════════
   NAV
════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 0 60px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(248, 250, 252, 0.97);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand a { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.nav-brand-logo { height: 60px; width: auto; object-fit: contain; }
.nav-brand-name {
  font-family: var(--ff-display); font-size: 1.45rem; font-weight: 600;
  color: var(--ink); letter-spacing: 0.01em;
}
.nav-brand-role {
  font-size: 0.68rem; font-weight: 500; color: var(--blue-primary);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.82rem; font-weight: 500;
  color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.1em;
  position: relative; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--blue-primary);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.current-menu-item { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.current-menu-item::after { width: 100%; }

.nav-cta {
  background: var(--ink) !important; color: var(--bg-light) !important;
  padding: 9px 22px !important; border-radius: 2px; font-size: 0.75rem !important;
  letter-spacing: 0.12em !important; transition: background 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--blue-primary) !important; color: var(--ink) !important; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-burger span { width: 24px; height: 1.5px; background: var(--ink); display: block; }

.mobile-nav {
  position: fixed; inset: 0; background: var(--ink); z-index: 800;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  transform: translateX(-100%); transition: transform 0.5s var(--ease-out);
}
.mobile-nav.open { transform: none; }
.mobile-nav a {
  font-family: var(--ff-display); font-size: 2.4rem; font-weight: 300;
  color: var(--bg-light); text-decoration: none; transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--blue-primary); }

/* ════════════════════════════════════════════
   HERO (Blog Index)
════════════════════════════════════════════ */
.blog-hero {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  background: var(--ink); position: relative; overflow: hidden;
  padding: 140px 60px 80px; text-align: center;
}
.blog-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(14,165,233,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero-deco {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--ff-display); font-size: 25vw; font-weight: 300;
  color: rgba(255,255,255,0.02); line-height: 1; pointer-events: none; user-select: none;
}
.hero-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.9s 0.2s var(--ease-out) forwards;
}
.hero-eyebrow-line { width: 40px; height: 1px; background: var(--blue-primary); }
.hero-eyebrow-text {
  font-size: 0.72rem; font-weight: 500; color: var(--blue-primary);
  text-transform: uppercase; letter-spacing: 0.18em;
}
.blog-hero h1 {
  font-family: var(--ff-display); font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1.1; color: var(--bg-light);
  margin-bottom: 1.2rem; opacity: 0; animation: fadeUp 0.9s 0.35s var(--ease-out) forwards;
}
.blog-hero h1 em { font-style: italic; color: var(--blue-light); }
.blog-hero p {
  font-size: 1.05rem; color: var(--slate-light); max-width: 640px;
  margin: 0 auto; line-height: 1.7;
  opacity: 0; animation: fadeUp 0.9s 0.5s var(--ease-out) forwards;
}

/* ════════════════════════════════════════════
   TICKER
════════════════════════════════════════════ */
.ticker-wrap {
  overflow: hidden; border-bottom: 1px solid var(--line);
  background: var(--blue-pale); padding: 16px 0;
}
.ticker-inner {
  display: flex; animation: ticker 35s linear infinite; width: max-content;
}
.ticker-item {
  white-space: nowrap; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--blue-accent); padding: 0 2.5rem;
  display: flex; align-items: center; gap: 2.5rem;
}
.ticker-item::after { content: '◆'; font-size: 0.5rem; color: var(--blue-primary); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ════════════════════════════════════════════
   SHARED LAYOUT
════════════════════════════════════════════ */
.section { padding: 100px 0; }
.section-alt { background: var(--white); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 60px; }

.section-header {
  margin-bottom: 56px; display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 20px;
}
.section-label {
  font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--blue-primary); margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; width: 28px; height: 1px; background: var(--blue-primary); }
.section-title {
  font-family: var(--ff-display); font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300; color: var(--ink); line-height: 1.12;
}
.section-title em { font-style: italic; color: var(--blue-primary); }

/* ════════════════════════════════════════════
   REVEAL ANIMATIONS
════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ════════════════════════════════════════════
   BLOG CARDS
════════════════════════════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.featured-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; margin-bottom: 32px; }

.blog-card {
  background: var(--white); border: 1px solid var(--bg-medium); border-radius: 4px;
  overflow: hidden; transition: all 0.4s var(--ease-out); display: flex; flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15,23,42,0.08);
  border-color: var(--blue-primary);
}
.blog-card-img {
  width: 100%; aspect-ratio: 16/9; background: var(--bg-medium);
  position: relative; overflow: hidden;
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out);
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--blue-primary); color: var(--ink);
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 12px; border-radius: 2px;
}
.blog-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.72rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.blog-card-title {
  font-family: var(--ff-display); font-size: 1.4rem; font-weight: 500;
  color: var(--ink); line-height: 1.3; margin-bottom: 12px;
  transition: color 0.2s; text-decoration: none; display: block;
}
.blog-card:hover .blog-card-title { color: var(--blue-primary); }
.blog-card-excerpt {
  font-size: 0.88rem; color: var(--slate); line-height: 1.7; margin-bottom: 20px; flex: 1;
}
.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; border-top: 1px solid var(--bg-medium);
}
.author-info { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 600; color: var(--blue-primary); font-size: 0.8rem;
  overflow: hidden; flex-shrink: 0;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.read-more {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--blue-primary); text-decoration: none; display: flex; align-items: center; gap: 6px;
  transition: gap 0.3s var(--ease-out);
}
.read-more:hover { gap: 10px; }

.blog-card.featured .blog-card-img { aspect-ratio: auto; height: 280px; }
.blog-card.featured .blog-card-title { font-size: 1.8rem; }
.blog-card.featured .blog-card-excerpt { font-size: 0.95rem; }

/* ════════════════════════════════════════════
   SINGLE POST
════════════════════════════════════════════ */
.post-hero {
  background: var(--ink); padding: 140px 60px 80px;
  text-align: center; position: relative; overflow: hidden;
}
.post-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(14,165,233,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.post-category-badge {
  display: inline-block; background: var(--blue-primary); color: var(--ink);
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 16px; border-radius: 2px; margin-bottom: 1.5rem;
}
.post-hero h1 {
  font-family: var(--ff-display); font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300; color: var(--bg-light); line-height: 1.1;
  max-width: 860px; margin: 0 auto 1.5rem;
}
.post-meta {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.08em;
}
.post-meta span { display: flex; align-items: center; gap: 6px; }

.post-featured-img {
  width: 100%; max-height: 540px; object-fit: cover;
  display: block;
}

.post-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 60px;
  max-width: 1240px; margin: 0 auto; padding: 80px 60px;
  align-items: start;
}

.post-content {
  font-size: 1.05rem; color: var(--ink-light); line-height: 1.85;
}
.post-content h2 {
  font-family: var(--ff-display); font-size: 2rem; font-weight: 400;
  color: var(--ink); margin: 2.5rem 0 1rem; line-height: 1.2;
}
.post-content h3 {
  font-family: var(--ff-display); font-size: 1.5rem; font-weight: 500;
  color: var(--ink); margin: 2rem 0 0.8rem;
}
.post-content h4 {
  font-family: var(--ff-body); font-size: 1rem; font-weight: 600;
  color: var(--ink); margin: 1.5rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.post-content p { margin-bottom: 1.4rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.4rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content strong { color: var(--ink); font-weight: 600; }
.post-content em { font-style: italic; color: var(--blue-accent); }
.post-content a { color: var(--blue-primary); text-decoration: underline; text-decoration-thickness: 1px; }
.post-content a:hover { color: var(--blue-accent); }
.post-content blockquote {
  border-left: 3px solid var(--blue-primary); padding: 20px 28px;
  background: var(--blue-pale); margin: 2rem 0; border-radius: 0 4px 4px 0;
  font-family: var(--ff-display); font-size: 1.25rem; font-style: italic; color: var(--ink);
}
.post-content img {
  width: 100%; border-radius: 4px; margin: 2rem 0;
}
.post-content hr {
  border: none; border-top: 1px solid var(--line); margin: 2.5rem 0;
}
.post-content table {
  width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.9rem;
}
.post-content th {
  background: var(--ink); color: var(--bg-light); padding: 12px 16px;
  text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.post-content td { padding: 12px 16px; border-bottom: 1px solid var(--bg-medium); }
.post-content tr:nth-child(even) td { background: var(--bg-light); }

/* Post tags */
.post-tags { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.post-tag {
  background: var(--blue-pale); color: var(--ink); border: 1px solid var(--blue-primary);
  padding: 5px 14px; border-radius: 2px; font-size: 0.75rem; font-weight: 500;
  text-decoration: none; letter-spacing: 0.04em; transition: all 0.2s;
}
.post-tag:hover { background: var(--blue-primary); color: var(--ink); }

/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
.post-sidebar { position: sticky; top: 92px; }
.sidebar-widget {
  background: var(--white); border: 1px solid var(--bg-medium); border-radius: 4px;
  padding: 28px; margin-bottom: 28px;
}
.sidebar-widget-title {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--blue-primary); margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.sidebar-post {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--bg-medium);
}
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-img {
  width: 64px; height: 64px; border-radius: 2px; object-fit: cover; flex-shrink: 0;
}
.sidebar-post-title {
  font-family: var(--ff-display); font-size: 0.95rem; font-weight: 500;
  color: var(--ink); text-decoration: none; line-height: 1.3;
  display: block; transition: color 0.2s;
}
.sidebar-post-title:hover { color: var(--blue-primary); }
.sidebar-post-date { font-size: 0.7rem; color: var(--slate); margin-top: 4px; }

.sidebar-cta {
  background: var(--ink); border-radius: 4px; padding: 28px; text-align: center;
}
.sidebar-cta h3 {
  font-family: var(--ff-display); font-size: 1.4rem; font-weight: 300;
  color: var(--bg-light); margin-bottom: 8px;
}
.sidebar-cta p { font-size: 0.82rem; color: var(--slate); margin-bottom: 20px; line-height: 1.6; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue-primary); color: var(--ink);
  padding: 14px 30px; font-family: var(--ff-body); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none;
  border-radius: 2px; transition: all 0.3s var(--ease-out); border: none; cursor: pointer;
  width: 100%; justify-content: center;
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); }

/* ════════════════════════════════════════════
   DOCTOR'S NOTE SECTION
════════════════════════════════════════════ */
.doctor-note {
  background: var(--ink); border-radius: 4px; padding: 64px;
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.doctor-note::before {
  content: '"'; position: absolute; top: -40px; right: 40px;
  font-family: var(--ff-display); font-size: 20rem; color: rgba(255,255,255,0.03); line-height: 1;
}
.doctor-note-img {
  width: 100%; aspect-ratio: 3/4; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.doctor-note-img img { width: 100%; height: 100%; object-fit: cover; }
.doctor-note-content h2 {
  font-family: var(--ff-display); font-size: 2.2rem; font-weight: 300;
  color: var(--bg-light); margin-bottom: 24px; line-height: 1.2;
}
.doctor-note-content h2 em { color: var(--blue-light); font-style: italic; }
.doctor-note-content p { font-size: 0.95rem; color: var(--slate-light); line-height: 1.8; margin-bottom: 16px; }
.doctor-sig {
  font-family: var(--ff-display); font-size: 1.4rem; font-style: italic;
  color: var(--blue-primary); margin-top: 24px;
}

/* ════════════════════════════════════════════
   CTA BANNER
════════════════════════════════════════════ */
.cta-banner {
  background: var(--ink); border-radius: 4px; padding: 56px 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(14,165,233,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner h2 {
  font-family: var(--ff-display); font-size: 2rem; font-weight: 300;
  color: var(--bg-light); line-height: 1.2;
}
.cta-banner h2 em { font-style: italic; color: var(--blue-light); }
.cta-banner p { font-size: 0.88rem; color: var(--slate); margin-top: 8px; }
.cta-banner .btn-primary { width: auto; }

/* ════════════════════════════════════════════
   NEWSLETTER
════════════════════════════════════════════ */
.newsletter-box {
  background: var(--blue-pale); border-radius: 4px; padding: 64px;
  text-align: center; max-width: 800px; margin: 0 auto;
}
.newsletter-box h2 {
  font-family: var(--ff-display); font-size: 2.2rem; font-weight: 300;
  color: var(--ink); margin-bottom: 12px;
}
.newsletter-box p { font-size: 0.95rem; color: var(--slate); margin-bottom: 32px; }

/* ════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════ */
.pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 60px;
}
.pagination a,
.pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--bg-medium);
  border-radius: 2px; font-size: 0.85rem; font-weight: 500;
  text-decoration: none; color: var(--ink-light); transition: all 0.2s;
}
.pagination a:hover { border-color: var(--blue-primary); color: var(--blue-primary); }
.pagination .current { background: var(--ink); color: var(--bg-light); border-color: var(--ink); }

/* ════════════════════════════════════════════
   ARCHIVE / CATEGORY HEADER
════════════════════════════════════════════ */
.archive-hero {
  background: var(--ink); padding: 120px 60px 60px; text-align: center;
}
.archive-hero h1 {
  font-family: var(--ff-display); font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 300; color: var(--bg-light); line-height: 1.1; margin-bottom: 0.8rem;
}
.archive-hero h1 em { font-style: italic; color: var(--blue-light); }
.archive-hero p { font-size: 0.95rem; color: var(--slate-light); max-width: 560px; margin: 0 auto; }

/* ════════════════════════════════════════════
   404
════════════════════════════════════════════ */
.not-found {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 60px 80px;
}
.not-found h1 {
  font-family: var(--ff-display); font-size: 8rem; font-weight: 300;
  color: var(--blue-pale); line-height: 1;
}
.not-found h2 {
  font-family: var(--ff-display); font-size: 2rem; font-weight: 400;
  color: var(--ink); margin-bottom: 1rem;
}
.not-found p { color: var(--slate); margin-bottom: 2rem; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
footer { background: var(--ink); padding: 72px 0 40px; }
.footer-inner {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 48px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand-name { font-family: var(--ff-display); font-size: 1.3rem; color: var(--bg-light); margin-bottom: 8px; }
.footer-brand-desc { font-size: 0.82rem; color: var(--slate); line-height: 1.7; max-width: 240px; }
.footer-col h4 { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--blue-primary); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { text-decoration: none; font-size: 0.83rem; color: var(--slate); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--bg-light); }
.footer-col p { font-size: 0.83rem; color: var(--slate); line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.75rem; color: rgba(100,116,139,0.7); }
.footer-blue-dot { display: inline-block; width: 6px; height: 6px; background: var(--blue-primary); border-radius: 50%; margin: 0 8px; vertical-align: middle; }

/* ════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; padding: 60px 40px; }
  .post-sidebar { position: static; }
  .doctor-note { grid-template-columns: 1fr; padding: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .container { padding: 0 24px; }
  .section { padding: 70px 0; }
  .blog-hero, .post-hero, .archive-hero { padding: 120px 24px 60px; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-layout { padding: 40px 24px; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta-banner .btn-primary { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .newsletter-box { padding: 40px 28px; }
  .doctor-note { padding: 32px 24px; }
}
