/* ============================================================
   Article Page — Medical Website
   Design: premium, clean, gold accents, generous whitespace
   ============================================================ */

/* ─── Design Tokens ─── */
:root {
  --bg: #F1F1F1;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-soft: #4A4A4A;
  --text-muted: #6B6155;
  --gold: #B8976A;
  --gold-light: #D4BFA0;
  --gold-dark: #9A7B55;
  --border: #DCDCDC;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Lora', serif;
  --header-h: 72px;
  --sidebar-w: 320px;
  --transition: 0.25s ease;
}


/* ─── 1. Reset + Body + Typography ─── */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography classes */
.t-display {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.t-h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.t-h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 600;
}

.t-h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
}

.t-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
}

.t-small {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 400;
}

.t-caption {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--text-muted);
}


/* ─── 2. Container ─── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}


/* Header styles are in shared/header.css — no duplicates here */


/* ─── 8. Breadcrumbs ─── */

.breadcrumbs {
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 12px;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumbs-item a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumbs-item a:hover {
  color: var(--gold);
}

.breadcrumbs-separator {
  color: var(--border);
  font-size: 0.75rem;
}

.breadcrumbs-item:last-child {
  color: var(--text-soft);
  font-weight: 500;
}


/* ─── 9. Article Hero ─── */

.article-hero {
  padding: 48px 0 64px;
}

/* Grid is on .article-hero-grid, not .container */

.article-hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(184, 151, 106, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  width: fit-content;
}

.article-hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.article-hero-excerpt {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.article-hero-meta svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.article-hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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


/* ─── 10. Quick Answer Box ─── */

.quick-answer {
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.quick-answer-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 12px;
}

.quick-answer-label svg {
  width: 18px;
  height: 18px;
}

.quick-answer-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.quick-answer-text strong {
  color: var(--text);
  font-weight: 600;
}


/* ─── 11. Table of Contents (standalone) ─── */

.toc-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.toc-card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.toc-list {
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.toc-list li {
  counter-increment: toc-counter;
}

.toc-list li a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(220, 220, 220, 0.5);
  transition: color var(--transition);
}

.toc-list li:last-child a {
  border-bottom: none;
}

.toc-list li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 24px;
}

.toc-list li a:hover {
  color: var(--gold);
}


/* ─── 12. Article Layout ─── */

.article-layout {
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 48px;
  align-items: start;
}

.article-layout .container {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 48px;
  align-items: start;
}

.article-main {
  min-width: 0;
}


/* ─── 13. Article Content ─── */

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 20px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 20px;
}

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

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 8px;
  padding-left: 4px;
}

.article-content li::marker {
  color: var(--gold);
}

.article-content img {
  border-radius: var(--radius);
  margin: 24px 0;
  width: 100%;
}

.article-content a {
  color: var(--gold);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(184, 151, 106, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.article-content a:hover {
  text-decoration-color: var(--gold);
}

/* Info cards */
.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
  border-left: 4px solid var(--border);
}

.info-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.info-card-title svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.info-card p {
  margin-bottom: 0;
}

.info-card.warning {
  border-left-color: #E5A84B;
  background: rgba(229, 168, 75, 0.05);
}

.info-card.warning .info-card-title {
  color: #C48E2C;
}

.info-card.tip {
  border-left-color: var(--gold);
  background: rgba(184, 151, 106, 0.05);
}

.info-card.tip .info-card-title {
  color: var(--gold);
}


/* ─── 14. Sidebar ─── */

.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sidebar CTA card */
.sidebar-cta {
  background: var(--text);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  color: #fff;
}

.sidebar-cta-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.sidebar-cta-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
}

/* Sidebar TOC card */
.sidebar-toc {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.sidebar-toc-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.sidebar-toc-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-toc-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
}

.sidebar-toc-list li a:hover {
  color: var(--text-soft);
  border-left-color: var(--gold-light);
}

.sidebar-toc-list li.active a {
  color: var(--gold);
  border-left-color: var(--gold);
  font-weight: 500;
}


/* ─── 15. Cases Section ─── */

.cases-section {
  padding: 64px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-soft);
  margin-bottom: 40px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
}

.case-image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

.case-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 100px;
}

.case-images::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--surface);
  transform: translateX(-50%);
}

.case-body {
  padding: 20px 24px;
}

.case-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.case-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ─── 16. Reviews Section ─── */

.reviews-section {
  padding: 64px 0;
  background: var(--surface);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  flex-direction: column;
}

.review-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
}

.review-stars svg.empty {
  fill: var(--border);
}

.review-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-soft);
}


/* ─── 17. FAQ Section ─── */

.faq-section {
  padding: 64px 0;
  text-align: center;
}
.faq-section .faq-list {
  text-align: left;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.faq-icon::before {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 2px;
  transform: translateX(-50%);
}

.faq-item.open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-soft);
}


/* ─── 18. CTA Section ─── */

.cta-section {
  padding: 96px 0;
  text-align: center;
}

.cta-section .container {
  max-width: 700px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.cta-description {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}


/* ─── 19. Related Articles ─── */

.related-section {
  padding: 64px 0;
  background: var(--surface);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 50%;
}

.related-body {
  padding: 20px 24px 24px;
}

.related-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
  transition: color var(--transition);
}

.related-card:hover .related-title {
  color: var(--gold);
}

.related-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ─── 20. Footer ─── */

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--gold);
}


/* ─── 21. Responsive ─── */

/* Tablet: sidebar becomes 2-col grid below content */
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 280px;
  }

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

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .article-hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .article-hero-title {
    font-size: 2rem;
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .t-display {
    font-size: 2.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Header responsive styles are in shared/header.css */

  /* Hero: single column */
  .article-hero .container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-hero-title {
    font-size: 1.75rem;
  }

  .article-hero-image {
    aspect-ratio: 16 / 10;
  }

  .article-hero-meta {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Sidebar: single column */
  .article-sidebar {
    grid-template-columns: 1fr;
  }

  /* Quick answer */
  .quick-answer {
    padding: 20px 20px;
  }

  /* Cases */
  .cases-grid {
    grid-template-columns: 1fr;
  }

  /* Reviews */
  .reviews-grid {
    grid-template-columns: 1fr;
  }

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

  /* CTA */
  .cta-section {
    padding: 64px 0;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  /* Footer */
  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Typography scale down */
  .t-display {
    font-size: 2rem;
  }

  .t-h1 {
    font-size: 1.75rem;
  }

  .t-h2 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
  }

  .article-content h3 {
    font-size: 1.125rem;
  }

  /* FAQ */
  .faq-question {
    padding: 16px 20px;
    font-size: 0.9375rem;
  }

  .faq-answer-inner {
    padding: 0 20px 16px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .case-images {
    grid-template-columns: 1fr 1fr;
  }

  .case-image-wrap {
    aspect-ratio: 1 / 1;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  .article-hero-badge {
    font-size: 0.6875rem;
  }

  .breadcrumbs {
    padding-top: calc(var(--header-h) + 16px);
  }
}


/* ============================================================
   HTML Compatibility Layer
   Maps HTML class names to CSS styles
   ============================================================ */

/* Breadcrumbs — HTML uses flat <a> + <span> children */
.breadcrumbs { font-size: 0.875rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs > .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumbs > .container > span:last-child { color: var(--text-soft); font-weight: 500; }

/* Article Hero — HTML uses .article-hero-grid > .article-hero-content + .article-hero-img */
.article-hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 56px; align-items: center;
}
.article-hero .t-caption {
  display: inline-block;
  color: var(--gold);
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(184, 151, 106, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(184, 151, 106, 0.2);
}
.article-hero .t-display { margin-bottom: 20px; font-size: 4rem; line-height: 1.08; }
.article-lead { font-size: 1.25rem; line-height: 1.65; color: var(--text-soft); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.article-hero-img { border-radius: var(--radius); overflow: hidden; }
.article-hero-img { width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12); }
.article-hero-img img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; display: block; }

/* Quick Answer — HTML uses h2 + p directly */
.quick-answer h2 {
  font-size: 0.875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold); margin-bottom: 12px;
}
.quick-answer p { font-size: 0.9375rem; line-height: 1.7; color: var(--text-soft); margin: 0; }

/* Sidebar — HTML uses .sidebar-cta, .sidebar-toc directly */
.sidebar-cta {
  background: linear-gradient(180deg, #2A2A2A 0%, var(--text) 100%);
  color: white; border-radius: var(--radius);
  padding: 36px 28px; text-align: center; margin-bottom: 24px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.sidebar-cta h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.sidebar-cta p { font-size: 0.875rem; opacity: 0.8; margin-bottom: 16px; }
.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  transition: all var(--transition);
}
.sidebar-cta .btn:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

.sidebar-toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.sidebar-toc h3 {
  font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 16px; color: var(--text);
}
.sidebar-toc a {
  display: block; padding: 8px 0 8px 12px;
  font-size: 0.875rem; color: var(--text-soft);
  text-decoration: none; border-left: 2px solid transparent;
  transition: all var(--transition);
}
.sidebar-toc a:hover, .sidebar-toc a.active {
  color: var(--gold); border-left-color: var(--gold);
}

/* Cases — HTML uses .cases-grid#casesList, .case-card */
.cases-section .t-caption { color: var(--gold); margin-bottom: 8px; }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; }
.case-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.case-images { display: grid; grid-template-columns: 1fr 1fr; }
.case-images img { width: 100%; height: 200px; object-fit: cover; }
.case-images .label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 8px; text-align: center; }
.case-images .before .label { background: var(--bg); color: var(--text-muted); }
.case-images .after .label { background: var(--gold); color: white; }
.case-body { padding: 16px; }
.case-body h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 4px; }
.case-body p { font-size: 0.875rem; color: var(--text-soft); margin: 0; }
.cases-empty, .reviews-empty { text-align: center; padding: 48px; color: var(--text-muted); font-size: 0.9375rem; }

/* Reviews — HTML uses .reviews-grid#reviewsList, .review-card */
.reviews-section .t-caption { color: var(--gold); margin-bottom: 8px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-name { font-weight: 700; font-size: 0.9375rem; }
.review-date { font-size: 0.8125rem; color: var(--text-muted); }
.review-stars { color: var(--gold); font-size: 0.875rem; margin-bottom: 8px; }
.review-text { font-size: 0.9375rem; line-height: 1.7; color: var(--text-soft); }

/* CTA Section */
.cta-section { padding: 64px 0; text-align: center; }
.cta-section .t-h1 { margin-bottom: 16px; }
.cta-section p { color: var(--text-soft); margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Related Articles */
.related-section .t-caption { color: var(--gold); margin-bottom: 8px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.related-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--text); display: block;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.related-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 48px rgba(184,151,106,0.12); }
.related-card-img { height: 180px; overflow: hidden; background: var(--bg); }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.related-card:hover .related-card-img img { transform: scale(1.05); }
.related-card-body { padding: 16px; }
.related-card-body .num { font-size: 0.6875rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.1em; }
.related-card-body h3 { font-size: 1rem; font-weight: 700; margin: 4px 0; }
.related-card-body p { font-size: 0.875rem; color: var(--text-soft); line-height: 1.5; margin: 0; }

/* Mobile overrides for compatibility */
@media (max-width: 768px) {
  .article-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-hero-img { order: -1; }
  .article-hero-img img { height: 250px; }
  .cases-grid, .reviews-grid, .related-grid { grid-template-columns: 1fr; }
}

/* .muted helper */
.muted { color: var(--text-muted); }

/* ─── Base Button Styles ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { background: #333; transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }

.btn-ghost {
  color: var(--text);
  padding: 14px 0;
  background: none;
}
.btn-ghost:hover { color: var(--gold); }
.btn-ghost svg { transition: transform 0.3s ease; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ─── Blog Header Fix: solid background on load ─── */
body .header {
  background: rgba(241, 241, 241, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
