/* ================================================
   BLOG OVERVIEW (.astro-blog)
   Nutzt .astro-cat-* Klassen fuer Karten, Count,
   Divider, Pagination. Eigene Klassen nur fuer Hero.
   ================================================ */

/* ===== BLOG HERO ===== */
.astro-blog-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 48px 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(100,80,200,0.12) 0%, transparent 60%), var(--astro-bg);
  transition: background 0.5s;
}

body.astro-light-theme .astro-blog-hero {
  background: linear-gradient(170deg, #fff, #faf8f4, #f0e6d0);
}

.astro-blog-overline {
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--astro-accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.astro-blog-title {
  font-family: 'Cinzel', serif;
  font-size: 44px;
  font-weight: 400;
  color: var(--astro-text);
  letter-spacing: 4px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.astro-blog-subtitle {
  font-size: 15px;
  color: var(--astro-text-mid);
  max-width: 540px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.astro-blog-breadcrumb {
  font-size: 12px;
  color: var(--astro-text-dim);
  text-align: center;
}

.astro-blog-breadcrumb a {
  color: var(--astro-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.astro-blog-breadcrumb a:hover {
  color: var(--astro-accent);
}

.astro-blog-breadcrumb span:last-of-type {
  color: var(--astro-accent);
}

body.astro-light-theme .astro-blog-breadcrumb span:last-of-type {
  color: #b8942e;
}

@media (max-width: 768px) {
  .astro-blog-hero {
    padding: 50px 20px 40px;
  }

  .astro-blog-title {
    font-size: 28px;
    letter-spacing: 3px;
  }

  .astro-blog-subtitle {
    font-size: 13px;
  }
}

/* ================================================
   CATEGORY PAGE (.astro-category)
   Extrahiert aus mockups/astromantie-kategorie.jsx
   ================================================ */

/* ===== CATEGORY HERO ===== */
.astro-cat-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 48px 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(100,80,200,0.12) 0%, transparent 60%), var(--astro-bg);
  transition: 0.5s;
}

body.astro-light-theme .astro-cat-hero {
  background: linear-gradient(170deg, #fff, #faf8f4, #f0e6d0);
}

.astro-cat-starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

body.astro-light-theme .astro-cat-starfield {
  display: none;
}

.astro-cat-stars-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 100%;
  animation: skyDrift 50s linear infinite;
}

.astro-cat-hero-inner {
  position: relative;
  z-index: 1;
}

.astro-cat-overline {
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--astro-accent-dark);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}

.astro-cat-title {
  font-family: 'Cinzel', serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--astro-text);
  text-transform: uppercase;
  letter-spacing: 6px;
  margin-bottom: 18px;
}

.astro-cat-breadcrumb {
  font-size: 12px;
  color: var(--astro-text-dim);
}

.astro-cat-breadcrumb a {
  color: var(--astro-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.astro-cat-breadcrumb a:hover {
  color: var(--astro-accent);
}

/* ===== CATEGORY IMAGE ===== */
.astro-cat-image-wrap {
  max-width: 1060px;
  margin: -24px auto 0;
  padding: 0 48px;
}

.astro-cat-image {
  width: 100%;
  height: 400px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--astro-surface-border);
  border-top: none;
}

.astro-cat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.astro-cat-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 0%, transparent 50%, rgba(10,10,26,0.6) 100%);
  pointer-events: none;
}

body.astro-light-theme .astro-cat-image-overlay {
  background: linear-gradient(transparent 0%, transparent 50%, rgba(250,248,244,0.4) 100%);
}

/* ===== CATEGORY DESCRIPTION ===== */
.astro-cat-description {
  max-width: 1060px;
  margin: 0 auto;
  padding: 44px 48px;
}

.astro-cat-description-text {
  font-size: 16px;
  color: var(--astro-text);
  line-height: 1.9;
  text-align: center;
}

.astro-cat-description-text p {
  color: var(--astro-text);
  font-size: 16px;
  line-height: 1.9;
}

/* ===== CATEGORY DIVIDER ===== */
.astro-cat-divider {
  max-width: 760px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.2), transparent);
}

body.astro-light-theme .astro-cat-divider {
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.2), transparent);
}

/* ===== CATEGORY COUNT ===== */
.astro-cat-count {
  text-align: center;
  padding: 32px 48px;
}

.astro-cat-count-text {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--astro-text);
}

.astro-cat-count-num {
  font-weight: 600;
}

/* ===== CATEGORY ARTICLE CARDS ===== */
.astro-cat-articles {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 48px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.astro-cat-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--astro-surface-border);
  background: var(--astro-card-surface);
  transition: all 0.3s;
  animation: fadeInUp 0.5s ease both;
}

.astro-cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--astro-accent);
}

.astro-cat-card-link {
  display: grid;
  grid-template-columns: 280px 1fr;
  text-decoration: none;
  color: inherit;
}

.astro-cat-card-thumb {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.astro-cat-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.astro-cat-card-thumb-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.15;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(167,139,250,0.05));
}

body.astro-light-theme .astro-cat-card-thumb-placeholder {
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(232,201,106,0.05));
}

.astro-cat-card-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.astro-cat-card-tag {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.5);
  color: var(--astro-accent);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(167,139,250,0.2);
}

body.astro-light-theme .astro-cat-card-tag {
  background: rgba(255,255,255,0.85);
  border-color: rgba(201,168,76,0.2);
}

.astro-cat-card-content {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.astro-cat-card-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--astro-text);
  line-height: 1.35;
  margin-bottom: 10px;
}

.astro-cat-card-excerpt {
  font-size: 13px;
  color: var(--astro-text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.astro-cat-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.astro-cat-card-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.astro-cat-card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

body.astro-light-theme .astro-cat-card-avatar {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
}

.astro-cat-card-meta-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--astro-text-dim);
  flex-wrap: wrap;
}

.astro-cat-card-meta-info svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.astro-cat-card-dot {
  margin: 0 2px;
  opacity: 0.4;
}

.astro-cat-card-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--astro-accent);
  white-space: nowrap;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.astro-cat-card:hover .astro-cat-card-arrow {
  transform: translateX(3px);
}

.astro-cat-card-arrow {
  transition: transform 0.2s;
}

/* ===== CATEGORY PAGINATION ===== */
.astro-cat-pagination {
  text-align: center;
  padding: 0 48px 80px;
}

.astro-cat-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.astro-cat-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--astro-text-mid);
  background: var(--astro-card-surface);
  border: 1px solid var(--astro-surface-border);
  text-decoration: none;
  transition: all 0.2s;
}

.astro-cat-pagination .page-numbers:hover {
  border-color: var(--astro-accent);
  color: var(--astro-accent);
}

.astro-cat-pagination .page-numbers.current {
  background: var(--astro-btn-gradient);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

/* ===== NO POSTS ===== */
.astro-cat-no-posts {
  text-align: center;
  font-size: 16px;
  color: var(--astro-text-dim);
  padding: 60px 0;
}

/* ===== CATEGORY MOBILE ===== */
@media (max-width: 768px) {
  .astro-cat-hero {
    padding: 50px 20px 40px;
  }

  .astro-cat-title {
    font-size: 28px;
    letter-spacing: 3px;
  }

  .astro-cat-image-wrap {
    padding: 0 16px;
  }

  .astro-cat-image {
    height: 220px;
    border-radius: 16px;
  }

  .astro-cat-description {
    padding: 32px 20px;
  }

  .astro-cat-count {
    padding: 24px 20px;
  }

  .astro-cat-articles {
    padding: 0 16px 40px;
  }

  .astro-cat-card-link {
    grid-template-columns: 1fr;
  }

  .astro-cat-card-thumb {
    min-height: 160px;
    max-height: 180px;
  }

  .astro-cat-card-content {
    padding: 20px;
  }

  .astro-cat-card-title {
    font-size: 17px;
  }

  .astro-cat-pagination {
    padding: 0 16px 60px;
  }
}


/* ================================================
   TAG ARCHIVE (.astro-tag)
   Tag-Seite nutzt eigene Klassen fuer Hero, Titel,
   Breadcrumb und Badge. Restliche Elemente (Cards,
   Pagination, Count, Divider) nutzen .astro-cat-* Klassen.
   ================================================ */

.astro-tag-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 48px 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(100,80,200,0.12) 0%, transparent 60%), var(--astro-bg);
}

body.astro-light-theme .astro-tag-hero {
  background: linear-gradient(170deg, #fff, #faf8f4, #f0e6d0);
}

.astro-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--astro-accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.astro-tag-badge svg {
  flex-shrink: 0;
}

.astro-tag-title {
  font-family: 'Cinzel', serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--astro-text);
  margin-bottom: 18px;
  letter-spacing: 4px;
}

.astro-tag-breadcrumb {
  font-size: 12px;
  color: var(--astro-text-dim);
  text-align: center;
}

.astro-tag-breadcrumb a {
  color: var(--astro-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.astro-tag-breadcrumb a:hover {
  color: var(--astro-accent);
}

/* Letztes Element (aktueller Tag-Name) in Accent */
.astro-tag-breadcrumb span:last-of-type {
  color: var(--astro-accent);
}

body.astro-light-theme .astro-tag-breadcrumb span:last-of-type {
  color: #b8942e;
}

@media (max-width: 768px) {
  .astro-tag-hero {
    padding: 50px 20px 40px;
  }

  .astro-tag-title {
    font-size: 28px;
    letter-spacing: 3px;
  }
}


/* ================================================
   SINGLE ARTICLE (.astro-article)
   ================================================ */

/* --- Gradient Text Utility --- */
.astro-grad-text {
  background: linear-gradient(135deg, #a78bfa, #e8c96a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

body.astro-light-theme .astro-grad-text {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #a07c2a;
  color: #a07c2a;
}

.astro-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Breadcrumb */
.astro-article-breadcrumb {
  padding: 20px 0 0;
  font-size: 12px;
  color: var(--astro-text-dim);
  line-height: 1.5;
}

.astro-article-breadcrumb span {
  opacity: 0.7;
}

.astro-article-breadcrumb span a {
  color: var(--astro-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.astro-article-breadcrumb span a:hover {
  color: var(--astro-accent);
  opacity: 1;
}

/* Letztes Span = aktueller Artikel → Accent-Farbe */
.astro-article-breadcrumb span:last-of-type {
  color: var(--astro-accent);
  opacity: 1;
}

body.astro-light-theme .astro-article-breadcrumb span:last-of-type {
  color: #b8942e;
}

/* Article Header */
.astro-article-header {
  padding: 14px 0 28px;
}

.astro-article-title {
  font-family: 'Cinzel', serif;
  font-size: 38px;
  font-weight: 500;
  color: var(--astro-text);
  line-height: 1.25;
  margin-bottom: 20px;
}

/* Byline */
.astro-article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.astro-article-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

body.astro-light-theme .astro-article-avatar {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
}

.astro-article-author {
  font-size: 13px;
  font-weight: 500;
  color: var(--astro-text);
}

.astro-article-meta {
  font-size: 11px;
  color: var(--astro-text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.astro-article-meta svg {
  flex-shrink: 0;
}

.astro-article-meta a {
  color: var(--astro-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.astro-article-meta a:hover {
  color: var(--astro-accent);
}

.astro-meta-dot {
  opacity: 0.4;
}

.astro-article-meta a:hover {
  color: var(--astro-accent);
  opacity: 1;
}

.astro-article-meta-dot {
  opacity: 0.4;
}

/* Featured Image */
.astro-article-featured-image {
  width: 100%;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--astro-card-border);
  margin-bottom: 40px;
}

.astro-article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Article Body Typografie --- */
.astro-article-body {
  animation: fadeUp 0.6s ease-out both;
}

.astro-article-body p {
  font-size: 16px;
  color: var(--astro-text);
  line-height: 1.85;
  margin-bottom: 24px;
}

.astro-article-body h2 {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--astro-text);
  line-height: 1.3;
  margin-bottom: 20px;
  margin-top: 40px;
}

.astro-article-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--astro-text);
  line-height: 1.35;
  margin-bottom: 16px;
  margin-top: 32px;
}

.astro-article-body a {
  color: var(--astro-accent);
  transition: opacity 0.2s;
}

.astro-article-body img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--astro-card-border);
  margin-bottom: 28px;
  height: auto;
}

.astro-article-body ul,
.astro-article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

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

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

.astro-article-body li {
  font-size: 16px;
  color: var(--astro-text);
  line-height: 1.85;
  margin-bottom: 8px;
}

/* Blockquote */
.astro-article-body blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
  background: var(--astro-card-surface);
  border: 1px solid var(--astro-card-border);
  border-left: 3px solid var(--astro-accent-dark);
}

body.astro-light-theme .astro-article-body blockquote {
  border-left-color: var(--astro-accent);
}

.astro-article-body blockquote p {
  font-size: 17px;
  font-style: italic;
  color: var(--astro-text);
  line-height: 1.75;
  margin: 0;
}

.astro-article-body blockquote cite,
.astro-article-body blockquote p:last-child:not(:first-child) {
  font-size: 12px;
  color: var(--astro-text-dim);
  margin-top: 10px;
  font-style: normal;
  display: block;
}

/* Code */
.astro-article-body code {
  background: var(--astro-input-bg);
  color: var(--astro-gold);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

body.astro-light-theme .astro-article-body code {
  color: #8b6914;
}

.astro-article-body pre {
  background: var(--astro-input-bg);
  border: 1px solid var(--astro-card-border);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 28px;
}

.astro-article-body pre code {
  background: none;
  padding: 0;
}

/* --- Table of Contents Override (Easy TOC Plugin) --- */
/* !important noetig weil Easy TOC eigene Styles mit hoher Spezifitaet setzt */
div#ez-toc-container {
  display: block !important;
  width: 100% !important;
  padding: 24px 28px !important;
  border-radius: 14px !important;
  background: var(--astro-card-surface) !important;
  border: 1px solid var(--astro-card-border) !important;
  margin-bottom: 40px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

div#ez-toc-container p.ez-toc-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--astro-text) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

div#ez-toc-container .ez-toc-title-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
  border-bottom: none !important;
  padding: 0 !important;
}

div#ez-toc-container .ez-toc-title-toggle {
  margin-left: 12px;
}

div#ez-toc-container .ez-toc-title-toggle a,
div#ez-toc-container .ez-toc-title-toggle a span {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--astro-accent) !important;
  text-decoration: none !important;
}

div#ez-toc-container nav {
  margin: 0 !important;
  padding: 0 !important;
}

div#ez-toc-container nav ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

div#ez-toc-container nav ul li {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

div#ez-toc-container nav ul li a {
  font-size: 14px !important;
  color: var(--astro-accent) !important;
  padding: 6px 0 !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent !important;
  transition: border-color 0.2s !important;
  background: none !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}

div#ez-toc-container nav ul li a:hover {
  border-bottom-color: var(--astro-accent) !important;
  opacity: 1 !important;
}

div#ez-toc-container nav ul li a:visited {
  color: var(--astro-accent) !important;
}

div#ez-toc-container nav ul li a::before {
  color: #ffffff !important;
  min-width: 20px !important;
  flex-shrink: 0 !important;
  text-align: right !important;
}

/* Unterebene-Nummern (z.B. "3.1.") brauchen mehr Platz */
div#ez-toc-container nav ul ul li a::before {
  min-width: 30px !important;
}

/* Unterebene (H3 etc.) einruecken */
div#ez-toc-container nav ul ul {
  padding-left: 24px !important;
}

/* Light Mode spezifisch */
body.astro-light-theme div#ez-toc-container {
  background: var(--astro-card-surface) !important;
  border-color: var(--astro-card-border) !important;
}

body.astro-light-theme div#ez-toc-container p.ez-toc-title {
  color: var(--astro-text) !important;
}

body.astro-light-theme div#ez-toc-container nav ul li a {
  color: #b8942e !important;
}

body.astro-light-theme div#ez-toc-container nav ul li a::before {
  color: #9a8e7f !important;
}

body.astro-light-theme div#ez-toc-container nav ul li a:hover {
  border-bottom-color: #b8942e !important;
}

body.astro-light-theme div#ez-toc-container .ez-toc-title-toggle a,
body.astro-light-theme div#ez-toc-container .ez-toc-title-toggle a span {
  color: #b8942e !important;
}

/* Toggle-Icon SVG im Light Mode dunkel machen (3 Striche + Pfeil)
   Plugin setzt inline style="fill:#fff;color:#fff" auf SVGs,
   deshalb !important auf fill UND color noetig, plus path-Override */
body.astro-light-theme div#ez-toc-container svg {
  fill: #2a2018 !important;
  color: #2a2018 !important;
}

body.astro-light-theme div#ez-toc-container svg path,
body.astro-light-theme div#ez-toc-container svg rect,
body.astro-light-theme div#ez-toc-container svg line {
  fill: #2a2018 !important;
  stroke: #2a2018 !important;
}

body.astro-light-theme div#ez-toc-container nav ul li a:visited {
  color: #b8942e !important;
}

@media (max-width: 768px) {
  div#ez-toc-container {
    padding: 20px 16px !important;
  }
}

/* --- Inline CTA [astro_cta] --- */
.astro-inline-cta {
  margin: 44px 0;
  padding: 36px 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1) 0%, rgba(232,201,106,0.06) 100%);
  border: 1px solid rgba(167,139,250,0.18);
  position: relative;
  overflow: hidden;
  text-align: center;
}

body.astro-light-theme .astro-inline-cta {
  background: linear-gradient(135deg, rgba(201,168,76,0.07) 0%, rgba(201,168,76,0.02) 100%);
  border-color: rgba(201,168,76,0.15);
}

.astro-inline-cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(167,139,250,0.08) 0%, transparent 60%);
}

body.astro-light-theme .astro-inline-cta-glow {
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 60%);
}

.astro-inline-cta-inner {
  position: relative;
  z-index: 1;
}

.astro-inline-cta-overline {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--astro-accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.astro-inline-cta-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--astro-text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.astro-inline-cta-text {
  font-size: 14px;
  color: var(--astro-text-mid);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.astro-inline-cta-btn {
  display: inline-block;
  padding: 13px 36px;
  border-radius: 50px;
  background: var(--astro-btn-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 24px var(--astro-accent-glow);
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}

.astro-inline-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--astro-accent-glow);
  opacity: 1;
}

/* --- Tags --- */
.astro-article-tags {
  padding: 28px 0;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.astro-light-theme .astro-article-tags {
  border-top-color: rgba(201,168,76,0.1);
}

.astro-article-tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.15);
  color: var(--astro-accent);
  cursor: pointer;
  transition: all 0.3s;
}

body.astro-light-theme .astro-article-tag {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.15);
}

.astro-article-tag:hover {
  background: rgba(167,139,250,0.2);
  transform: translateY(-1px);
  opacity: 1;
}

body.astro-light-theme .astro-article-tag:hover {
  background: rgba(201,168,76,0.15);
}

/* --- Prev/Next Navigation --- */
.astro-article-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

body.astro-light-theme .astro-article-pagination {
  border-top-color: rgba(201,168,76,0.1);
}

.astro-article-pag-card {
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--astro-card-surface);
  border: 1px solid var(--astro-card-border);
  cursor: pointer;
  transition: all 0.3s;
  display: block;
}

.astro-article-pag-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--astro-accent-glow);
  opacity: 1;
}

.astro-article-pag-empty {
  border: none;
  background: none;
  cursor: default;
}

.astro-article-pag-empty:hover {
  transform: none;
  box-shadow: none;
}

.astro-article-pag-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--astro-text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.astro-article-pag-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--astro-text);
  line-height: 1.4;
}

.astro-article-pag-cat {
  font-size: 11px;
  color: var(--astro-text-dim);
  margin-top: 6px;
}

.astro-article-pag-next {
  text-align: right;
}

/* --- Related Articles --- */
.astro-related {
  background: var(--astro-section-alt);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 60px 48px;
}

body.astro-light-theme .astro-related {
  border-top-color: rgba(201,168,76,0.06);
}

.astro-related-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.astro-related-title {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--astro-text);
  text-align: center;
  margin-bottom: 40px;
}

.astro-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.astro-related-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--astro-card-surface);
  border: 1px solid var(--astro-card-border);
  cursor: pointer;
  transition: all 0.4s;
  display: block;
}

.astro-related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--astro-accent-glow);
  opacity: 1;
}

.astro-related-card-image {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), transparent);
}

body.astro-light-theme .astro-related-card-image {
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.02));
}

.astro-related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.astro-related-card-placeholder {
  font-size: 36px;
  opacity: 0.15;
  color: var(--astro-text);
}

.astro-related-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.5);
  color: var(--astro-accent);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(167,139,250,0.2);
  z-index: 1;
}

body.astro-light-theme .astro-related-card-tag {
  background: rgba(255,255,255,0.85);
  border-color: rgba(201,168,76,0.2);
}

.astro-related-card-content {
  padding: 20px;
}

.astro-related-card-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--astro-text);
  line-height: 1.35;
  margin-bottom: 12px;
}

.astro-related-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.astro-related-card-date {
  font-size: 11px;
  color: var(--astro-text-dim);
}

.astro-related-card-read {
  font-size: 12px;
  font-weight: 600;
  color: var(--astro-accent);
}

/* --- Bottom CTA Banner --- */
.astro-bottom-cta {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 48px;
  text-align: center;
}

.astro-bottom-cta-card {
  padding: 48px 40px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(232,201,106,0.04));
  border: 1px solid rgba(124,58,237,0.15);
  position: relative;
  overflow: hidden;
}

body.astro-light-theme .astro-bottom-cta-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.06), rgba(201,168,76,0.02));
  border-color: rgba(201,168,76,0.1);
}

.astro-bottom-cta-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(167,139,250,0.08), transparent 60%);
}

body.astro-light-theme .astro-bottom-cta-glow {
  background: radial-gradient(circle, rgba(201,168,76,0.06), transparent 60%);
}

.astro-bottom-cta-inner {
  position: relative;
  z-index: 1;
}

.astro-bottom-cta-title {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--astro-text);
  margin-bottom: 14px;
  line-height: 1.3;
}

.astro-bottom-cta-text {
  font-size: 15px;
  color: var(--astro-text-mid);
  margin-bottom: 28px;
  line-height: 1.7;
}

.astro-bottom-cta-btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  background: var(--astro-btn-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 30px var(--astro-accent-glow);
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.astro-bottom-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 35px var(--astro-accent-glow);
  opacity: 1;
}


/* ================================================
   MOBILE OVERRIDES — SINGLE ARTICLE & RELATED
   ================================================ */
@media (max-width: 768px) {

  /* Article */
  .astro-article {
    padding: 0 20px;
  }

  .astro-article-breadcrumb {
    padding-top: 16px;
  }

  .astro-article-header {
    padding: 12px 0 20px;
  }

  .astro-article-title {
    font-size: 26px;
  }

  .astro-article-featured-image {
    height: 200px;
    margin-bottom: 28px;
  }

  /* Article Body */
  .astro-article-body p {
    font-size: 15px;
  }

  .astro-article-body h2 {
    font-size: 22px;
  }

  .astro-article-body h3 {
    font-size: 18px;
  }

  .astro-article-body blockquote {
    padding: 20px 16px 20px 20px;
  }

  .astro-article-body blockquote p {
    font-size: 15px;
  }

  /* Inline CTA */
  .astro-inline-cta {
    padding: 28px 20px;
  }

  .astro-inline-cta-title {
    font-size: 18px;
  }

  .astro-inline-cta-text {
    font-size: 12px;
  }

  .astro-inline-cta-btn {
    padding: 12px 28px;
  }

  /* Prev/Next */
  .astro-article-pagination {
    grid-template-columns: 1fr;
  }

  .astro-article-pag-card {
    padding: 16px;
  }

  .astro-article-pag-next {
    text-align: left;
  }

  /* Related Articles */
  .astro-related {
    padding: 48px 20px;
  }

  .astro-related-title {
    font-size: 22px;
    margin-bottom: 28px;
  }

  .astro-related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .astro-related-card-image {
    height: 140px;
  }

  .astro-related-card-content {
    padding: 16px 14px;
  }

  .astro-related-card-title {
    font-size: 14px;
  }

  /* Bottom CTA */
  .astro-bottom-cta {
    padding: 48px 20px;
  }

  .astro-bottom-cta-card {
    padding: 36px 20px;
  }

  .astro-bottom-cta-title {
    font-size: 22px;
  }

  .astro-bottom-cta-text {
    font-size: 13px;
  }

  .astro-bottom-cta-btn {
    padding: 14px 32px;
  }
}
