:root {
  --article-border: rgba(255, 255, 255, 0.08);
  --article-card-bg: rgba(15, 15, 15, 0.82);
  --article-glow: rgba(255, 0, 0, 0.15);
}

body.light-theme {
  --article-border: rgba(214, 0, 0, 0.12);
  --article-card-bg: rgba(255, 255, 255, 0.98);
  --article-glow: rgba(214, 0, 0, 0.08);
}

body.blog-article-page main {
  padding-bottom: 6rem;
}

.article-hero {
  padding: 8rem 6% 3rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 7, 0.96) 0%,
    rgba(5, 5, 7, 0.9) 60%,
    rgba(5, 5, 7, 0.85) 100%
  );
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 3rem 10% auto;
  height: 320px;
  border-radius: 32px;
  background: radial-gradient(circle, var(--article-glow) 0%, transparent 70%);
  filter: blur(25px);
  z-index: -1;
  pointer-events: none;
}

.article-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--article-border);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  font-weight: 600;
}

body.light-theme .article-hero .hero-eyebrow {
  background: rgba(214, 0, 0, 0.12);
}

.article-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 1.5rem 0;
}

.article-hero .hero-lede {
  max-width: 760px;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
}

body.light-theme .article-hero .hero-lede {
  color: rgba(0, 0, 0, 0.8);
}

.article-hero .hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-hero .hero-actions .cta-button.secondary {
  background: transparent;
  border: 1px solid var(--article-border);
  color: var(--text-light);
}

.article-hero .hero-scorecards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-scorecard {
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--article-border);
  background: var(--article-card-bg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

body.light-theme .hero-scorecard {
  box-shadow: 0 20px 45px rgba(214, 0, 0, 0.18);
}

.hero-scorecard strong {
  font-size: 2rem;
  display: block;
}

.hero-scorecard span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

body.light-theme .hero-scorecard span {
  color: rgba(0, 0, 0, 0.6);
}

.article-layout {
  padding: 0 6%;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 2.5rem;
}

.quick-links {
  margin-bottom: 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    145deg,
    rgba(8, 8, 12, 0.92),
    rgba(4, 4, 6, 0.92)
  );
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
}

.quick-links h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.quick-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.quick-links a::before {
  content: "→";
  color: var(--accent-red);
}

.article-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
}

.article-toc {
  border: 1px solid var(--article-border);
  border-radius: 22px;
  padding: 1.5rem;
  background: var(--article-card-bg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
}

.article-toc strong {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  display: block;
  margin-bottom: 1rem;
}

.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.article-toc li a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  display: block;
  padding: 0.35rem 0;
}

.article-toc li a:hover {
  color: var(--accent-red);
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.article-section {
  padding: 0;
  margin-bottom: 2.5rem;
}

.article-section:last-of-type {
  margin-bottom: 0;
}

.article-section h2,
.article-section h3 {
  margin-top: 0;
}

.article-section h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article-section h2::before {
  content: attr(data-icon);
  font-size: 1.2rem;
  color: var(--accent-red);
}

.pull-quote {
  margin: 1.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--accent-red);
  background: rgba(255, 255, 255, 0.04);
  font-style: italic;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.pull-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
}

.article-section p {
  margin: 0.75rem 0;
}

.article-section ul,
.article-section ol {
  margin: 1rem 0 0.5rem 1.4rem;
}

.callout-card,
.checklist-card,
.case-study-card {
  position: relative;
  border-radius: 24px;
  padding: 1.75rem;
  background: linear-gradient(
    145deg,
    rgba(10, 10, 14, 0.92),
    rgba(4, 4, 6, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 35px 65px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.callout-card::before,
.checklist-card::before,
.case-study-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(214, 0, 0, 0.35), transparent 55%);
  opacity: 0.4;
  pointer-events: none;
}

.callout-card > *,
.checklist-card > *,
.case-study-card > * {
  position: relative;
  z-index: 1;
}

body.light-theme .callout-card,
body.light-theme .checklist-card,
body.light-theme .case-study-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(250, 250, 252, 0.92)
  );
  border-color: rgba(214, 0, 0, 0.15);
  box-shadow: 0 30px 60px rgba(214, 0, 0, 0.15);
}

body.light-theme .callout-card::before,
body.light-theme .checklist-card::before,
body.light-theme .case-study-card::before {
  background: linear-gradient(120deg, rgba(214, 0, 0, 0.12), transparent 55%);
  opacity: 1;
}

.callout-card strong {
  font-size: 1.05rem;
}

.scenario-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.scenario-stack article {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 1.75rem;
  background: linear-gradient(
    145deg,
    rgba(12, 12, 18, 0.9),
    rgba(4, 4, 6, 0.9)
  );
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  position: relative;
}

.scenario-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

body.light-theme .scenario-stack article {
  border-color: rgba(214, 0, 0, 0.12);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(248, 248, 252, 0.92)
  );
  box-shadow: 0 20px 45px rgba(214, 0, 0, 0.12);
}

body.light-theme .scenario-icon {
  background: rgba(214, 0, 0, 0.12);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

body.light-theme .fact-pill {
  background: rgba(214, 0, 0, 0.12);
}

.two-column-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.two-column-highlights > div {
  border-radius: 24px;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    145deg,
    rgba(11, 11, 16, 0.9),
    rgba(6, 6, 9, 0.9)
  );
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.two-column-highlights > div::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(110deg, rgba(214, 0, 0, 0.28), transparent 60%);
  opacity: 0.35;
  pointer-events: none;
}

.two-column-highlights > div > * {
  position: relative;
  z-index: 1;
}

body.light-theme .two-column-highlights > div {
  border-color: rgba(214, 0, 0, 0.12);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(248, 248, 252, 0.92)
  );
  box-shadow: 0 24px 55px rgba(214, 0, 0, 0.12);
}

body.light-theme .two-column-highlights > div::before {
  background: linear-gradient(110deg, rgba(214, 0, 0, 0.12), transparent 60%);
  opacity: 1;
}

.case-study-card h3 {
  margin-bottom: 0.5rem;
}

.article-cta {
  margin: 0 6%;
  margin-top: 3rem;
  border-radius: 32px;
  padding: 3rem;
  border: 1px solid var(--article-border);
  background: linear-gradient(
    135deg,
    rgba(255, 0, 0, 0.25),
    rgba(0, 0, 0, 0.85)
  );
  text-align: center;
}

body.light-theme .article-cta {
  background: linear-gradient(
    135deg,
    rgba(214, 0, 0, 0.14),
    rgba(255, 255, 255, 0.95)
  );
}

.article-cta h2 {
  margin-bottom: 0.75rem;
}

.article-cta p {
  margin-bottom: 1.5rem;
}

.article-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-cta .cta-button.secondary {
  background: transparent;
  border: 1px solid var(--article-border);
}

.article-meta-footer {
  margin: 3rem 6% 0;
  padding: 2rem;
  border-radius: 24px;
  border: 1px dashed var(--article-border);
  background: rgba(0, 0, 0, 0.4);
}

body.light-theme .article-meta-footer {
  background: rgba(255, 255, 255, 0.9);
}

.article-meta-footer h3 {
  margin-top: 0;
}

.article-meta-footer ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.article-meta-footer li {
  margin-bottom: 0.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.related-grid article {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem;
  background: linear-gradient(
    145deg,
    rgba(12, 12, 18, 0.9),
    rgba(6, 6, 10, 0.9)
  );
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.related-grid h3 {
  margin-top: 0;
}

.related-grid a {
  text-decoration: none;
  color: inherit;
}

.related-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
}

body.light-theme .related-grid article {
  border-color: rgba(214, 0, 0, 0.12);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(248, 248, 252, 0.92)
  );
  box-shadow: 0 20px 45px rgba(214, 0, 0, 0.1);
}

body.light-theme .related-grid p {
  color: rgba(5, 5, 7, 0.7);
}

.sticky-cta {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-red), #ff3737);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 20px 45px rgba(255, 0, 0, 0.35);
  z-index: 50;
}

.sticky-cta::before {
  content: "☎";
}

body.light-theme .sticky-cta {
  box-shadow: 0 20px 45px rgba(214, 0, 0, 0.25);
}

@media (max-width: 1024px) {
  .sticky-cta {
    display: none;
  }
}

.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.92);
  border-top: 1px solid var(--article-border);
  display: none;
  z-index: 1000;
}

body.light-theme .mobile-sticky-cta {
  background: rgba(255, 255, 255, 0.92);
}

.mobile-sticky-cta a {
  padding: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  gap: 0.5rem;
}

.mobile-sticky-cta a + a {
  border-left: 1px solid var(--article-border);
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .article-content {
    max-width: none;
  }

  .quick-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .article-hero,
  .article-layout,
  .article-cta,
  .article-meta-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin-left: 0;
    margin-right: 0;
  }

  .article-layout {
    padding-top: 0;
  }

  .article-section {
    padding: 1.5rem;
  }

  .article-hero {
    padding-top: 7rem;
  }

  .mobile-sticky-cta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-accordion {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    135deg,
    rgba(10, 10, 14, 0.9),
    rgba(4, 4, 6, 0.9)
  );
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.faq-accordion details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-accordion details:last-of-type {
  border-bottom: none;
}

.faq-accordion summary {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  position: relative;
  list-style: none;
}

.faq-accordion summary::marker,
.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: "＋";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--accent-red);
  transition: transform 0.3s ease;
}

.faq-accordion details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-accordion details p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

body.light-theme .faq-accordion {
  border-color: rgba(214, 0, 0, 0.12);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96),
    rgba(248, 248, 252, 0.92)
  );
  box-shadow: 0 24px 55px rgba(214, 0, 0, 0.12);
}

body.light-theme .faq-accordion details {
  border-color: rgba(214, 0, 0, 0.12);
}

body.light-theme .faq-accordion details p {
  color: rgba(5, 5, 7, 0.75);
}
