/* style.css — Victory Prep Tutors Blog */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* VPT Brand Colors */
  --color-navy:       #0d1b2a;
  --color-navy-light: #1a1a2e;
  --color-navy-mid:   #1b2a4a;
  --color-accent:     #e8601c;
  --color-accent-hover: #d4520f;
  --color-accent-light: #fdf0e9;
  --color-bg:         #fafaf8;
  --color-surface:    #ffffff;
  --color-surface-2:  #f5f5f3;
  --color-text:       #1a1a2e;
  --color-text-muted: #5a6178;
  --color-text-faint: #9ca3af;
  --color-text-inverse: #ffffff;
  --color-border:     #e5e7eb;
  --color-divider:    #eef0f2;

  /* Category Colors */
  --cat-sat:          #e8601c;
  --cat-isee:         #7c3aed;
  --cat-psat:         #0891b2;
  --cat-admissions:   #059669;
  --cat-study:        #d97706;
  --cat-parent:       #dc2626;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body:    'General Sans', 'Inter', sans-serif;

  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl:   clamp(1.375rem, 1.1rem + 1vw, 2rem);
  --text-2xl:  clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --text-3xl:  clamp(2.25rem, 1rem + 3.5vw, 3.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --content-narrow: 720px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-max: 1320px;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(13, 27, 42, 0.12);
  --shadow-card: 0 1px 3px rgba(13, 27, 42, 0.04), 0 1px 2px rgba(13, 27, 42, 0.06);
  --shadow-card-hover: 0 10px 30px rgba(13, 27, 42, 0.1), 0 4px 10px rgba(13, 27, 42, 0.05);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-mid: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text-inverse);
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.7em;
  letter-spacing: 0.12em;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-6);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a.active {
  color: #fff;
}

.nav-phone {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-fast);
}

.nav-phone:hover { color: #fff; }

.nav-phone svg {
  width: 16px;
  height: 16px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.625rem 1.375rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 96, 28, 0.3);
}

.btn-cta:active {
  transform: translateY(0);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 110;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.mobile-toggle.active span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   TOP BAR (Become a Tutor / Log In)
   ============================================ */
.vpt-blog-topbar {
  background: #0d1b2a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
}
.vpt-blog-topbar-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vpt-blog-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
}
.vpt-blog-topbar-left a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.vpt-blog-topbar-sep {
  color: rgba(255,255,255,0.25);
}
.vpt-blog-topbar-right {
  display: flex;
  gap: 6px;
}
.vpt-blog-topbar-right a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 3px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  transition: all var(--transition-interactive);
}
.vpt-blog-topbar-right a:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}
@media (max-width: 768px) {
  .vpt-blog-topbar { display: none; }
}

/* ============================================
   BREADCRUMB (Back to Blog)
   ============================================ */
.blog-breadcrumb {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.blog-breadcrumb-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 12px var(--space-6);
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--color-accent);
}

.breadcrumb-link svg {
  flex-shrink: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--color-navy);
  padding: var(--space-6) var(--space-6) var(--space-8);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(26, 26, 46, 0.85));
  z-index: 1;
}

/* -- Delivery strip (In-Person & Online + metros) -- */
.hero-delivery-strip {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin: 0 auto var(--space-6);
  text-align: center;
}

.hero-delivery-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.hero-badge--inperson {
  background: rgba(232, 96, 28, 0.18);
  color: var(--color-accent);
  border: 1px solid rgba(232, 96, 28, 0.30);
}

.hero-badge--online {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.hero-delivery-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  font-weight: 500;
}

.hero-metros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 2px;
}

.hero-metro {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.5s ease, text-shadow 0.5s ease;
  padding: 2px 4px;
  white-space: nowrap;
}

.hero-metro.is-active {
  color: var(--color-accent);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(232, 96, 28, 0.35);
}

.hero-metro-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  user-select: none;
}

.hero-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

/* -- Trending bar at bottom of hero -- */
.hero-trending {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin: var(--space-8) auto 0;
  display: flex;
  align-items: stretch;
  gap: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-6);
}

.hero-trending-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  white-space: nowrap;
  display: flex;
  align-items: center;
  padding: 0 2px;
}

.hero-trending-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}

.hero-trend-item {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  text-decoration: none;
  color: #fff;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.hero-trend-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero-trend-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.hero-trend-info {
  flex: 1;
  min-width: 0;
}

.hero-trend-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-trend-item:hover .hero-trend-title {
  color: #fff;
}

.hero-trend-meta {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

.hero-content {
  color: var(--color-text-inverse);
}

.hero-tag {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-5);
  color: #fff;
}

.hero-excerpt {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-6);
  max-width: 50ch;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.hero-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero-author-info {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
}

.hero-author-name {
  color: #fff;
  font-weight: 600;
  display: block;
}

.hero-date {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

.hero-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.hero-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-read-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.hero-read-link:hover {
  gap: var(--space-3);
  color: #f59e4f;
}

.hero-read-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.hero-read-link:hover svg {
  transform: translateX(2px);
}

/* ============================================
   CATEGORY FILTER BAR
   ============================================ */
.filter-bar {
  display: none; /* Replaced by visual category sections */
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-6);
  position: sticky;
  top: 72px;
  z-index: 50;
}

.filter-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.filter-inner::-webkit-scrollbar { display: none; }

.filter-pill {
  padding: 0.45rem 1.125rem;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

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

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(var(--space-8), 4vw, var(--space-12)) var(--space-6);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-10);
}

.content-primary {
  min-width: 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ============================================
   CATEGORY JUMP NAV
   ============================================ */
.cat-jump {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 72px;
  z-index: 90;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: box-shadow 0.3s var(--ease-out);
}

.cat-jump::-webkit-scrollbar { display: none; }

.cat-jump.is-stuck {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cat-jump-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cat-jump-inner::-webkit-scrollbar { display: none; }

.cat-jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.125rem;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
}

.cat-jump-pill:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.cat-jump-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.25s;
}

/* Active states — each pill gets its category color */
.cat-jump-pill.active {
  color: var(--color-text);
  font-weight: 700;
}

.cat-jump-pill--sat.active {
  border-color: var(--cat-sat);
  background: rgba(232, 96, 28, 0.08);
}

.cat-jump-pill--isee.active {
  border-color: var(--cat-isee);
  background: rgba(124, 58, 237, 0.08);
}

.cat-jump-pill--college.active {
  border-color: var(--cat-admissions);
  background: rgba(5, 150, 105, 0.08);
}

.cat-jump-pill.active .cat-jump-dot {
  opacity: 1;
}

/* Scroll margin for jump targets (header 72px + jump bar ~48px + padding) */
.category-section {
  scroll-margin-top: 132px;
}

/* ============================================
   CATEGORY SECTIONS
   ============================================ */
.category-section {
  margin-bottom: var(--space-10);
}

.category-section:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-border);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.category-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  margin: 0;
}

.category-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: var(--space-1) 0 0;
  line-height: 1.4;
}

/* ============================================
   ARTICLE CARDS
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.article-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.article-card:hover .card-image img {
  transform: scale(1.04);
}

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

.card-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  width: fit-content;
}

.card-tag[data-cat="sat-prep"] {
  background: rgba(232, 96, 28, 0.1);
  color: var(--cat-sat);
}
.card-tag[data-cat="isee-ssat"] {
  background: rgba(124, 58, 237, 0.1);
  color: var(--cat-isee);
}
.card-tag[data-cat="psat-national-merit"] {
  background: rgba(8, 145, 178, 0.1);
  color: var(--cat-psat);
}
.card-tag[data-cat="college-admissions"] {
  background: rgba(5, 150, 105, 0.1);
  color: var(--cat-admissions);
}
.card-tag[data-cat="study-tips"] {
  background: rgba(217, 119, 6, 0.1);
  color: var(--cat-study);
}
.card-tag[data-cat="parent-resources"] {
  background: rgba(220, 38, 38, 0.1);
  color: var(--cat-parent);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-2);
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-4);
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-3);
  margin-top: auto;
}

.card-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}

.card-author-name {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
}

.card-meta-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.7rem;
  color: var(--color-text-faint);
}

.card-meta-right svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-self: start;
  position: sticky;
  top: 132px; /* header 72px + jump bar ~48px + 12px breathing room */
  max-height: calc(100vh - 144px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar { display: none; }

.sidebar-widget {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
}

.widget-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-accent);
}

.popular-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.popular-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-3) 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--color-divider);
  transition: background var(--transition-fast);
}

.popular-item:last-child {
  border-bottom: none;
}

.popular-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.4;
  min-width: 30px;
}

.popular-info {
  flex: 1;
  min-width: 0;
}

.popular-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 2px;
}

.popular-meta {
  font-size: 0.7rem;
  color: var(--color-text-faint);
}

/* Newsletter widget */
.newsletter-widget {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  border-color: transparent;
}

.newsletter-widget .widget-title {
  color: #fff;
  border-bottom-color: var(--color-accent);
}

.newsletter-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.newsletter-input {
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.newsletter-btn {
  padding: 0.7rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.newsletter-btn:hover {
  background: var(--color-accent-hover);
}

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, var(--color-accent), #d4520f);
  color: #fff;
  border-color: transparent;
  text-align: center;
}

.cta-widget .widget-title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.cta-widget-text {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  opacity: 0.9;
}

.cta-widget-phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  display: block;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7rem 1.5rem;
  background: #fff;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-cta-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(var(--space-10), 5vw, var(--space-16)) var(--space-6) var(--space-8);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-8);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.5);
  max-width: 32ch;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.social-icons {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.social-icon:hover {
  background: var(--color-accent);
  color: #fff;
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ARTICLE PAGE STYLES
   ============================================ */
.article-header {
  background: var(--color-navy);
  padding: clamp(var(--space-10), 5vw, var(--space-16)) var(--space-6) var(--space-10);
  color: var(--color-text-inverse);
}

.article-header-inner {
  max-width: var(--content-narrow);
  margin: 0 auto;
  text-align: center;
}

.article-header .hero-tag {
  margin-bottom: var(--space-5);
}

.article-page-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  color: #fff;
}

.article-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 60ch;
  margin-inline: auto;
}

.article-author-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.article-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
}

.article-author-details {
  text-align: left;
}

.article-author-details .name {
  font-weight: 700;
  color: #fff;
  font-size: var(--text-sm);
}

.article-author-details .role {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

.article-meta-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

.article-meta-group span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-meta-group svg {
  width: 14px;
  height: 14px;
}

.share-buttons {
  display: flex;
  gap: var(--space-2);
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

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

.share-btn svg {
  width: 14px;
  height: 14px;
}

/* Article hero image */
.article-hero-image {
  max-width: var(--content-wide);
  margin: 0 auto;
  margin-top: calc(-1 * var(--space-8));
  padding: 0 var(--space-6);
  position: relative;
  z-index: 5;
}

.article-hero-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Article layout with TOC */
.article-layout {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-10) var(--space-6);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-10);
}

.toc-sidebar {
  position: relative;
}

.toc-wrapper {
  position: sticky;
  top: calc(72px + var(--space-6));
}

.toc-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-4);
}

.toc-list a {
  display: block;
  padding: 0.35rem 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: 1.4;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--color-accent);
}

.toc-list a.active {
  font-weight: 600;
}

/* Article body typography */
.article-body {
  max-width: var(--content-narrow);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  scroll-margin-top: calc(72px + var(--space-4));
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.article-body p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.article-body ul, .article-body ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.article-body li {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.article-body strong {
  font-weight: 700;
  color: var(--color-navy);
}

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--color-accent-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-navy);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Tip box */
.tip-box {
  padding: var(--space-5) var(--space-6);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
}

.tip-box-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: #15803d;
  margin-bottom: var(--space-3);
}

.tip-box-header svg {
  width: 18px;
  height: 18px;
  color: #22c55e;
}

.tip-box p {
  font-size: var(--text-sm);
  color: #166534;
  margin-bottom: 0;
}

/* Warning box */
.warning-box {
  padding: var(--space-5) var(--space-6);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
}

.warning-box-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: #c2410c;
  margin-bottom: var(--space-3);
}

.warning-box-header svg {
  width: 18px;
  height: 18px;
  color: #f97316;
}

.warning-box p {
  font-size: var(--text-sm);
  color: #9a3412;
  margin-bottom: 0;
}

/* Author bio */
.author-bio {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  margin-top: var(--space-12);
  border: 1px solid var(--color-border);
}

.author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}

.author-bio-content h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
  margin-top: 0;
}

.author-bio-content .role {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-3);
}

.author-bio-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Related articles */
.related-section {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) clamp(var(--space-10), 5vw, var(--space-16));
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* Article bottom CTA */
.article-cta-banner {
  background: var(--color-navy);
  padding: clamp(var(--space-10), 5vw, var(--space-16)) var(--space-6);
  text-align: center;
}

.article-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.article-cta-inner h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-4);
}

.article-cta-inner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
  max-width: none;
}

.cta-phone-large {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-6);
  text-decoration: none;
}

.cta-phone-large:hover {
  color: #f59e4f;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-trending-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-trending-list .hero-trend-item:nth-child(n+4) {
    display: none;
  }

  .main-content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .sidebar .cta-widget {
    grid-column: 1 / -1;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }

  .nav-main {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Mobile menu */
  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-navy);
    padding: var(--space-8) var(--space-6);
    gap: var(--space-6);
    z-index: 99;
    animation: slideDown 0.3s var(--ease-out);
  }

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

  .nav-main.open .nav-links {
    flex-direction: column;
    gap: var(--space-4);
  }

  .nav-main.open .nav-links a {
    font-size: var(--text-lg);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero-image-wrap {
    order: -1;
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .hero {
    padding-top: var(--space-3);
  }

  .hero-delivery-strip {
    margin-bottom: var(--space-3);
  }

  .hero-metros {
    gap: 3px 1px;
  }

  .hero-metro {
    font-size: 0.6rem;
    padding: 1px 3px;
  }

  .hero-trending {
    display: none;
  }

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

  .filter-bar {
    top: 64px;
  }

  .cat-jump {
    top: 64px;
  }

  .cat-jump-inner {
    padding: var(--space-2) var(--space-4);
    gap: var(--space-2);
  }

  .cat-jump-pill {
    font-size: 0.75rem;
    padding: 0.4rem 0.875rem;
  }

  .category-section {
    scroll-margin-top: 120px;
  }

  .category-header {
    gap: var(--space-3);
  }

  .category-icon {
    width: 40px;
    height: 40px;
    font-size: 0.7rem;
  }

  .category-title {
    font-size: var(--text-lg);
  }

  .category-desc {
    font-size: var(--text-xs);
  }

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

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .article-page-title {
    font-size: var(--text-2xl);
  }

  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-author-row {
    flex-direction: column;
    gap: var(--space-3);
  }

  .article-meta-group {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-8) var(--space-4);
  }

  .card-body {
    padding: var(--space-4);
  }

  .sidebar-widget {
    padding: var(--space-5);
  }
}

/* ============================================
   INLINE CTA BOX (soft sell)
   ============================================ */
.inline-cta {
  margin: var(--space-8) 0;
  padding: var(--space-6) 1.75rem;
  background: linear-gradient(135deg, #0f172a 0%, #1a2744 100%);
  border-radius: 14px;
  border-left: 4px solid var(--color-accent);
}

.article-body .inline-cta-text,
.inline-cta-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin: 0 0 var(--space-4) 0;
}

.inline-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.inline-cta-link:hover {
  gap: 10px;
}

/* ============================================
   ARTICLE NAV ARROWS (Prev / Next)
   ============================================ */
.article-nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.article-nav-arrow.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.article-nav-arrow--prev { left: 12px; }
.article-nav-arrow--next { right: 12px; }

.article-nav-arrow__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.article-nav-arrow:hover .article-nav-arrow__btn {
  background: rgba(15, 23, 42, 0.92);
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.article-nav-arrow__btn svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
}

.article-nav-arrow__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  padding: 0;
  border-radius: 10px;
  transition: max-width 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-nav-arrow:hover .article-nav-arrow__label {
  max-width: 240px;
  padding: 10px 16px;
  opacity: 1;
}

.article-nav-arrow__label-dir {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
}

.article-nav-arrow__label-title {
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Prev: label slides out to the right of the button */
.article-nav-arrow--prev .article-nav-arrow__label {
  margin-left: 6px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Next: label slides out to the left of the button */
.article-nav-arrow--next {
  flex-direction: row-reverse;
}
.article-nav-arrow--next .article-nav-arrow__label {
  margin-right: 6px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Mobile: smaller buttons, no label on hover */
@media (max-width: 1100px) {
  .article-nav-arrow--prev { left: 6px; }
  .article-nav-arrow--next { right: 6px; }
  .article-nav-arrow__btn {
    width: 36px;
    height: 36px;
    background: rgba(15, 23, 42, 0.6);
  }
  .article-nav-arrow__btn svg {
    width: 16px;
    height: 16px;
  }
  .article-nav-arrow:hover .article-nav-arrow__label {
    max-width: 0;
    padding: 0;
    opacity: 0;
  }
}

/* Hide arrows on very small screens to avoid overlap */
@media (max-width: 600px) {
  .article-nav-arrow {
    top: auto;
    bottom: 24px;
    transform: none;
  }
  .article-nav-arrow__btn {
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  }
  .article-nav-arrow__btn svg {
    width: 18px;
    height: 18px;
  }
}
