/* =====================================================================
   MAGZIN EDITORIAL BLOG STYLES - AEGON TOOLS
   Identical recreation of the ultra-modern magazine editorial design
   ===================================================================== */

:root {
  --mag-bg-glow-1: rgba(255, 218, 204, 0.45);
  --mag-bg-glow-2: rgba(235, 215, 255, 0.35);
  --mag-glass-bg: rgba(255, 255, 255, 0.82);
  --mag-glass-border: rgba(255, 255, 255, 0.7);
  --mag-glass-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  --mag-card-surface: #ffffff;
  --mag-card-border: rgba(15, 23, 42, 0.08);
  --mag-pill-bg: #f8fafc;
  --mag-pill-border: rgba(15, 23, 42, 0.08);
  --mag-ink: #0f172a;
  --mag-ink-muted: #64748b;
  --mag-radius-xl: 26px;
  --mag-radius-lg: 20px;
  --mag-radius-pill: 999px;
}

[data-theme="dark"] {
  --mag-bg-glow-1: rgba(124, 92, 255, 0.16);
  --mag-bg-glow-2: rgba(236, 72, 153, 0.12);
  --mag-glass-bg: rgba(20, 24, 38, 0.85);
  --mag-glass-border: rgba(255, 255, 255, 0.12);
  --mag-glass-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.4);
  --mag-card-surface: #131726;
  --mag-card-border: rgba(255, 255, 255, 0.09);
  --mag-pill-bg: #1a2035;
  --mag-pill-border: rgba(255, 255, 255, 0.1);
  --mag-ink: #f8fafc;
  --mag-ink-muted: #94a3b8;
}

/* ═══════════════════════════════════════════════
   1. EDITORIAL TOP TICKER STRIP (FIXED ON TOP)
════════════════════════════════════════════════ */
.mag-ticker-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 42px;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 9999;
}
[data-theme="dark"] .mag-ticker-wrap {
  background: #0a0d17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mag-ticker-inner {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  gap: 20px;
}

/* Position floating navbar cleanly below fixed ticker */
body[data-page="blog"] .site-header {
  top: 54px !important;
}

/* Offset hero so it is never obscured by ticker or navbar */
body[data-page="blog"] .mag-hero-section {
  padding-top: 140px !important;
}

/* Ensure no ancestor transform breaks fixed positioning */
body[data-page="blog"] .site-main {
  transform: none !important;
  perspective: none !important;
}

@media (max-width: 900px) {
  .mag-ticker-wrap {
    height: 38px;
  }
  .mag-ticker-inner {
    height: 38px;
  }
  body[data-page="blog"] .site-header {
    top: 48px !important;
  }
  body[data-page="blog"] .mag-hero-section {
    padding-top: 120px !important;
  }
}
.mag-ticker-left {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mag-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.mag-ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  box-shadow: 0 0 8px #ef4444;
  animation: magPulse 1.8s infinite;
}
@keyframes magPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.mag-ticker-story {
  color: #f1f5f9;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mag-ticker-story:hover {
  color: #93c5fd;
}
.mag-ticker-navs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  flex-shrink: 0;
}
.mag-ticker-nav-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.mag-ticker-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.mag-ticker-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  font-size: 12.5px;
  color: #94a3b8;
}
.mag-ticker-sub-link {
  color: #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.mag-ticker-sub-link:hover {
  color: #ffffff;
}
.mag-ticker-sep {
  opacity: 0.3;
}

@media (max-width: 768px) {
  .mag-ticker-right { display: none; }
}

/* ═══════════════════════════════════════════════
   2. HERO SECTION & GLOW
════════════════════════════════════════════════ */
.mag-hero-section {
  position: relative;
  padding: 60px 0 35px 0;
  text-align: center;
  overflow: hidden;
}
.mag-hero-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 94vw);
  height: 380px;
  background: radial-gradient(ellipse at 50% 30%, var(--mag-bg-glow-1) 0%, var(--mag-bg-glow-2) 45%, transparent 75%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}
.mag-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}
.mag-main-title {
  font-family: var(--font-display, 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--mag-ink);
  margin: 0 0 14px 0;
}
.mag-main-sub {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--mag-ink-muted);
  font-weight: 400;
  margin: 0 auto;
  max-width: 650px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   3. TOP FEATURED 3-CARDS ROW (FROSTED GLASS)
════════════════════════════════════════════════ */
.mag-featured-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
  margin-bottom: 50px;
}
.mag-feat-card {
  position: relative;
  border-radius: var(--mag-radius-xl);
  overflow: hidden;
  height: 520px;
  display: block;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: #1e293b;
}
.mag-feat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.14);
}
.mag-feat-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.mag-feat-card:hover .mag-feat-card-img {
  transform: scale(1.04);
}
.mag-feat-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 50%);
  pointer-events: none;
}

/* Floating Frosted Glass Card */
.mag-glass-card {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--mag-glass-bg);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--mag-glass-border);
  border-radius: var(--mag-radius-lg);
  padding: 20px 22px;
  box-shadow: var(--mag-glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s;
}
.mag-glass-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mag-ink-muted);
}
.mag-pill-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
[data-theme="dark"] .mag-pill-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}
.mag-dot {
  opacity: 0.5;
  font-size: 11px;
}
.mag-bookmark-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--mag-ink-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s, transform 0.2s;
}
.mag-bookmark-btn:hover {
  color: var(--mag-ink);
  transform: scale(1.1);
}
.mag-glass-title {
  font-family: var(--font-display, 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--mag-ink);
  line-height: 1.25;
  margin: 2px 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mag-glass-exc {
  font-size: 12.5px;
  color: var(--mag-ink-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mag-glass-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
[data-theme="dark"] .mag-glass-footer {
  border-top-color: rgba(255, 255, 255, 0.07);
}
.mag-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--mag-ink-muted);
}
.mag-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mag-stat-item svg {
  opacity: 0.75;
}
.mag-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.25s, background 0.25s, color 0.25s;
  flex-shrink: 0;
}
[data-theme="dark"] .mag-circle-btn {
  background: #252b42;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}
.mag-feat-card:hover .mag-circle-btn,
.mag-circle-btn:hover {
  transform: translateX(3px);
  background: #0f172a;
  color: #ffffff;
}
[data-theme="dark"] .mag-feat-card:hover .mag-circle-btn,
[data-theme="dark"] .mag-circle-btn:hover {
  background: #ffffff;
  color: #0f172a;
}

@media (max-width: 1080px) {
  .mag-featured-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .mag-featured-row {
    grid-template-columns: 1fr;
  }
  .mag-feat-card {
    height: 480px;
  }
}

/* ═══════════════════════════════════════════════
   4. CATEGORY PILLS RIBBON
════════════════════════════════════════════════ */
.mag-categories-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 4px 28px 4px;
  margin: 10px 0 40px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.mag-categories-ribbon::-webkit-scrollbar {
  display: none;
}
.mag-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--mag-radius-pill);
  background: var(--mag-card-surface);
  border: 1px solid var(--mag-pill-border);
  color: var(--mag-ink);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.mag-cat-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: rgba(15, 23, 42, 0.2);
}
.mag-cat-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}
[data-theme="dark"] .mag-cat-pill.active {
  background: #7c5cff;
  border-color: #7c5cff;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3);
}
.mag-cat-count {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--mag-ink-muted);
  transition: all 0.2s;
}
[data-theme="dark"] .mag-cat-count {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}
.mag-cat-pill.active .mag-cat-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ═══════════════════════════════════════════════
   5. "✦ LATEST NEWS" SECTION
════════════════════════════════════════════════ */
.mag-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.mag-sec-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mag-sec-title {
  font-family: var(--font-display, 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--mag-ink);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mag-sec-star {
  font-size: 18px;
  color: var(--mag-ink);
}
.mag-sec-subtitle {
  font-size: 13.5px;
  color: var(--mag-ink-muted);
  font-weight: 400;
}
.mag-view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
[data-theme="dark"] .mag-view-more-btn {
  background: #252b42;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.mag-view-more-btn:hover {
  transform: translateY(-2px);
  background: #1e293b;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
}
[data-theme="dark"] .mag-view-more-btn:hover {
  background: #333b5c;
}
.mag-view-more-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Asymmetrical Grid: 1 Big Left Card + 2 Stacked Right Cards */
.mag-latest-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 26px;
  margin-bottom: 50px;
}

/* Left Big Card */
.mag-lead-banner {
  position: relative;
  border-radius: var(--mag-radius-xl);
  overflow: hidden;
  height: 440px;
  display: block;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
  background: #1e293b;
}
.mag-lead-banner:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.15);
}
.mag-lead-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.mag-lead-banner:hover .mag-lead-banner-img {
  transform: scale(1.04);
}
.mag-lead-glass {
  position: absolute;
  bottom: 20px;
  left: 20px;
  max-width: calc(100% - 40px);
  width: 440px;
  background: var(--mag-glass-bg);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--mag-glass-border);
  border-radius: var(--mag-radius-lg);
  padding: 22px 24px;
  box-shadow: var(--mag-glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mag-lead-glass-title {
  font-family: var(--font-display, 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--mag-ink);
  line-height: 1.25;
  margin: 0;
}
.mag-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mag-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--mag-ink-muted);
}
.mag-author-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
}

/* Right Stacked 2 Compact Cards */
.mag-latest-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}
.mag-split-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--mag-card-surface);
  border: 1px solid var(--mag-card-border);
  border-radius: var(--mag-radius-lg);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  flex: 1;
}
.mag-split-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}
.mag-split-thumb {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.4s;
}
.mag-split-card:hover .mag-split-thumb {
  transform: scale(1.03);
}
.mag-split-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  height: 100%;
  padding-right: 4px;
}
.mag-split-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mag-ink-muted);
}
.mag-split-title {
  font-family: var(--font-display, 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--mag-ink);
  line-height: 1.3;
  margin: 8px 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mag-split-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

@media (max-width: 960px) {
  .mag-latest-grid {
    grid-template-columns: 1fr;
  }
  .mag-lead-banner {
    height: 380px;
  }
}
@media (max-width: 580px) {
  .mag-split-card {
    flex-direction: column;
    align-items: stretch;
  }
  .mag-split-thumb {
    width: 100%;
    height: 180px;
  }
}

/* ═══════════════════════════════════════════════
   6. DETAILED ARTICLE CARDS (2-COLUMN GRID)
════════════════════════════════════════════════ */
.mag-detailed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 60px;
}
.mag-detail-card {
  background: var(--mag-card-surface);
  border: 1px solid var(--mag-card-border);
  border-radius: var(--mag-radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.mag-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.1);
}
.mag-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mag-detail-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--mag-ink-muted);
}
.mag-detail-title {
  font-family: var(--font-display, 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--mag-ink);
  line-height: 1.25;
  margin: 0 0 18px 0;
}
.mag-detail-media {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--mag-radius-lg);
  overflow: hidden;
  margin-bottom: 18px;
}
.mag-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.mag-detail-card:hover .mag-detail-img {
  transform: scale(1.04);
}
.mag-detail-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: transform 0.3s, background 0.3s;
}
.mag-detail-card:hover .mag-detail-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ffffff;
}
.mag-detail-exc {
  font-size: 14px;
  color: var(--mag-ink-muted);
  line-height: 1.6;
  margin: 0 0 22px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mag-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--mag-card-border);
}
.mag-detail-card:hover .mag-circle-btn {
  transform: translateX(3px);
  background: #0f172a;
  color: #ffffff;
}
[data-theme="dark"] .mag-detail-card:hover .mag-circle-btn {
  background: #ffffff;
  color: #0f172a;
}

@media (max-width: 900px) {
  .mag-detailed-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   7. BOTTOM NEWSLETTER SECTION (CENTERED)
════════════════════════════════════════════════ */
.mag-newsletter-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 60px;
}

/* Standalone Centered Newsletter Card */
.mag-news-card {
  background: var(--mag-card-surface);
  border: 1px solid var(--mag-card-border);
  border-radius: var(--mag-radius-xl);
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.04);
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.mag-news-dot-pattern {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 140px;
  height: 110px;
  background-image: radial-gradient(rgba(15, 23, 42, 0.15) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
  opacity: 0.6;
}
[data-theme="dark"] .mag-news-dot-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.5px, transparent 1.5px);
}
.mag-news-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mag-ink-muted);
  margin: 0 auto 16px auto;
}
.mag-news-title {
  font-family: var(--font-display, 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--mag-ink);
  line-height: 1.25;
  margin: 0 auto 26px auto;
  max-width: 520px;
  text-align: center;
}
.mag-news-form {
  display: flex;
  align-items: center;
  background: var(--mag-pill-bg);
  border: 1px solid var(--mag-pill-border);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.mag-news-form:focus-within {
  border-color: #7c5cff;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}
.mag-news-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--mag-ink);
}
.mag-news-input::placeholder {
  color: var(--mag-ink-muted);
}
.mag-news-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
[data-theme="dark"] .mag-news-btn {
  background: #7c5cff;
}
.mag-news-btn:hover {
  transform: scale(1.02);
  background: #1e293b;
}
[data-theme="dark"] .mag-news-btn:hover {
  background: #6a46f9;
}

/* Generous bottom spacer so page background extends well below the card before footer */
.mag-page-bottom-spacer {
  height: 120px;
  width: 100%;
  clear: both;
}
body[data-page="blog"] .site-main {
  padding-bottom: 40px;
}

/* ═══════════════════════════════════════════════
   8. PAGINATION & FILTER RESULTS
════════════════════════════════════════════════ */
.mag-filter-status {
  margin-bottom: 30px;
  font-size: 15px;
  color: var(--mag-ink-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--mag-card-surface);
  border: 1px solid var(--mag-card-border);
  border-radius: 16px;
}
.mag-clear-link {
  color: #7c5cff;
  font-weight: 600;
  text-decoration: none;
}
.mag-clear-link:hover {
  text-decoration: underline;
}
.mag-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 50px 0 20px 0;
}
.mag-pg-btn {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--mag-card-surface);
  border: 1px solid var(--mag-card-border);
  color: var(--mag-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.mag-pg-btn:hover:not(.disabled) {
  border-color: #0f172a;
  transform: translateY(-2px);
}
.mag-pg-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
[data-theme="dark"] .mag-pg-btn.active {
  background: #7c5cff;
  border-color: #7c5cff;
}
.mag-pg-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
