/* ========================================
   Self-Hosted Fonts (GDPR Compliant)

   ======================================== */

/* --- Inter (Body Font) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* --- Playfair Display (Heading Font) --- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/playfair-display-v40-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/playfair-display-v40-latin-700.woff2') format('woff2');
}


/* ========================================
   ClinTech Strategy Partners - Brand CSS
   Premium, Professional, Warm
   ======================================== */

/* --- CSS Variables (Brand Tokens) --- */
:root {
  /* Primary Colors */
  --ctp-burgundy: #6B1E3B;
  --ctp-burgundy-dark: #4F162B;
  --ctp-burgundy-light: #8B3A5B;
  --ctp-burgundy-tint: #FAF5F7;
  
  /* Neutral Colors */
  --ctp-charcoal: #232323;
  --ctp-slate: #46525A;
  --ctp-slate2: #5F6B73;
  --ctp-slate-light: #888888;
  --ctp-line: #E6E8EA;
  --ctp-bg: #FFFFFF;
  --ctp-bg2: #F4F5F6;
  --ctp-warm-bg: #e8e0da;
  
  /* Accent Colors */
  --ctp-steel: #4A6F8A;
  --ctp-steel-dark: #3F6076;
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 2.5rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(35, 35, 35, 0.06);
  --shadow-md: 0 4px 16px rgba(35, 35, 35, 0.08);
  --shadow-lg: 0 8px 32px rgba(35, 35, 35, 0.12);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ctp-charcoal);
  background-color: var(--ctp-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ctp-charcoal);
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--ctp-slate);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--ctp-slate);
}

.text-burgundy {
  color: var(--ctp-burgundy);
}

.text-slate {
  color: var(--ctp-slate2);
}

/* --- Links --- */
a {
  color: var(--ctp-steel);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--ctp-steel-dark);
  text-decoration: underline;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--ctp-burgundy);
  color: white;
}

.btn-primary:hover {
  background: var(--ctp-burgundy-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--ctp-burgundy);
  border: 1.5px solid rgba(107, 30, 59, 0.4);
}

.btn-secondary:hover {
  background: var(--ctp-burgundy-tint);
  border-color: rgba(107, 30, 59, 0.6);
  color: var(--ctp-burgundy);
  text-decoration: none;
}

.btn-white {
  background: white;
  color: var(--ctp-burgundy);
}

.btn-white:hover {
  background: var(--ctp-burgundy-tint);
  color: var(--ctp-burgundy-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: 800px;
}

.section {
  padding: var(--space-xl) 0;
}

.section-tint {
  background: var(--ctp-burgundy-tint);
}

.section-gray {
  background: var(--ctp-bg2);
}

/* --- Page Header (for inner pages) --- */
.page-header {
  padding-top: calc(80px + var(--space-xl));
  padding-bottom: var(--space-xl);
  background: var(--ctp-burgundy-tint);
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--space-xs);
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ctp-line);
  transition: all var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 45px;
  width: auto;
}

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ctp-charcoal);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ctp-burgundy);
  transition: width var(--transition-base);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover {
  color: var(--ctp-burgundy);
  text-decoration: none;
}

.nav-cta {
  padding: 0.625rem 1.25rem !important;
  background: var(--ctp-burgundy);
  color: white !important;
  border-radius: var(--radius-md);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--ctp-burgundy-dark);
  color: white !important;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ctp-charcoal);
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--ctp-line);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav a {
    font-size: 1.125rem;
    padding: 0.75rem 0;
  }
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(80px + var(--space-2xl));
  padding-bottom: var(--space-xl);
  background: linear-gradient(180deg, var(--ctp-burgundy-tint) 0%, var(--ctp-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(107, 30, 59, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ctp-burgundy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--ctp-burgundy);
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero .lead {
  margin-bottom: var(--space-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

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

.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--ctp-burgundy);
  border-radius: var(--radius-xl);
  opacity: 0.3;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-eyebrow {
    justify-content: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  .hero-image img {
    max-width: 300px;
  }
}

/* --- Credential Bar --- */
.credentials-bar {
  background: var(--ctp-charcoal);
  padding: var(--space-md) 0;
}

.credentials-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  color: white;
  font-size: 0.9rem;
}

.credentials-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.credentials-list .number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ctp-burgundy-light);
}

/* --- Cards --- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--ctp-line);
  transition: all var(--transition-base);
}

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

.card h3 {
  margin-bottom: var(--space-xs);
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* --- Challenge Cards (Page 2 style) --- */
.challenge-card {
  background: var(--ctp-bg2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border-left: 4px solid var(--ctp-burgundy);
}

.challenge-card h4 {
  color: var(--ctp-charcoal);
  margin-bottom: var(--space-xs);
}

.challenge-card p {
  margin-bottom: 0;
  font-size: 0.925rem;
}

/* --- Service Cards --- */
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--ctp-line);
  position: relative;
  transition: all var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(107, 30, 59, 0.2);
}

.service-number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ctp-burgundy);
  color: white;
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.9rem;
}

.service-duration {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--ctp-burgundy-tint);
  color: var(--ctp-burgundy);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.service-card h3 {
  padding-right: 50px;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--ctp-burgundy);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--space-sm);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

/* --- CTA Panel (inline) --- */
.cta-panel {
  background: var(--ctp-burgundy-tint);
  border: 1px solid rgba(107, 30, 59, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.cta-panel h3 {
  margin-bottom: var(--space-sm);
}

.cta-panel p {
  max-width: 500px;
  margin: 0 auto var(--space-md);
}

/* --- About Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.milestone-list {
  list-style: none;
}

.milestone-list li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--ctp-slate);
}

.milestone-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--ctp-burgundy);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* --- Differentiators --- */
.differentiator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.differentiator-item {
  background: var(--ctp-bg2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border-left: 4px solid var(--ctp-burgundy);
}

.differentiator-item h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.differentiator-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info h3 {
  margin-bottom: var(--space-md);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ctp-burgundy-tint);
  border-radius: var(--radius-sm);
  color: var(--ctp-burgundy);
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact-detail p {
  margin-bottom: 0;
}

.contact-detail a {
  color: var(--ctp-steel);
}

.contact-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--ctp-line);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--ctp-charcoal);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--ctp-line);
  border-radius: var(--radius-md);
  color: var(--ctp-charcoal);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(74, 111, 138, 0.6);
  box-shadow: 0 0 0 3px rgba(74, 111, 138, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
.footer {
  background: var(--ctp-charcoal);
  color: white;
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
  font-size: 0.9rem;
}

.footer-links h4 {
  color: white;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.footer-links ul {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand p {
    max-width: 100%;
  }
}

/* =============================================
   INSIGHTS PAGE STYLES
   ============================================= */

/* Blog Grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Blog Card */
.blog-card {
  background: var(--ctp-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.blog-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--ctp-warm-bg);
  position: relative;
}

.blog-card .blog-card-image img {
  width: 100%;
  height: 220px;
  max-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

/* Placeholder image styling */
.blog-card-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ctp-burgundy-light) 0%, var(--ctp-burgundy) 50%, var(--ctp-burgundy-dark) 100%);
  position: relative;
}

.blog-card-image.placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.blog-card-image.placeholder .placeholder-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.blog-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ctp-charcoal);
  line-height: 1.4;
  margin-bottom: 0.85rem;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-body h3 {
  color: var(--ctp-burgundy);
}

.blog-card-body .excerpt {
  font-size: 0.95rem;
  color: var(--ctp-slate2);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-card-body .read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ctp-burgundy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.blog-card:hover .read-more {
  gap: 10px;
}

.read-more-arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.blog-card:hover .read-more-arrow {
  transform: translateX(2px);
}

/* Coming Soon State */
.blog-card.coming-soon {
  opacity: 0.75;
  pointer-events: none;
}

.blog-card.coming-soon .blog-card-body .coming-soon-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ctp-burgundy);
  background: rgba(107, 30, 59, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* =============================================
   ARTICLE PAGE STYLES
   (Blog articles / Insights detail pages)
   ============================================= */

/* Article Hero */
.article-hero {
  padding: calc(80px + 3rem) 0 3rem;
  background: linear-gradient(135deg, var(--ctp-burgundy-tint) 0%, #f3eeea 100%);
}

.article-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--ctp-slate-light);
  margin-bottom: 1.5rem;
}

.article-hero .breadcrumb a {
  color: var(--ctp-burgundy);
  text-decoration: none;
}

.article-hero .breadcrumb a:hover {
  text-decoration: underline;
}

.article-hero .breadcrumb .sep {
  margin: 0 0.5rem;
  color: var(--ctp-line);
}

.article-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ctp-charcoal);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  max-width: 800px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--ctp-slate2);
  flex-wrap: wrap;
}

.article-meta .author {
  color: var(--ctp-charcoal);
  font-weight: 600;
}

@media (max-width: 768px) {
  .article-hero h1 {
    font-size: 1.85rem;
  }
}

/* Article Body */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ctp-slate);
  margin-bottom: 1.5rem;
}

.article-body p strong {
  color: var(--ctp-charcoal);
}

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ctp-charcoal);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ctp-charcoal);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

/* Question Blocks (10-questions article) */
.question-block {
  margin-top: 2.75rem;
  margin-bottom: 2rem;
}

.question-block .question-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ctp-burgundy);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.question-block .question-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ctp-slate);
  margin-bottom: 1rem;
}

/* How to Prepare Boxes */
.how-to-prepare {
  background: var(--ctp-burgundy-tint);
  border-left: 3px solid var(--ctp-burgundy);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 0.5rem;
}

.how-to-prepare p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.how-to-prepare .prep-label {
  font-weight: 700;
  color: var(--ctp-burgundy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  display: block;
}

/* Bottom Line Box */
.bottom-line {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--ctp-burgundy) 0%, var(--ctp-burgundy-dark) 100%);
  border-radius: var(--radius-sm);
  color: white;
}

.bottom-line h2 {
  color: white;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.55rem;
}

.bottom-line p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
}

.bottom-line p:last-of-type {
  margin-bottom: 0;
}

.bottom-line a {
  color: white;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bottom-line a:hover {
  opacity: 0.85;
}

/* Author Bio */
.author-bio {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ctp-line);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-bio-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio-text p {
  font-size: 0.95rem;
  color: var(--ctp-slate2);
  margin-bottom: 0.5rem;
}

.author-bio-text .author-name {
  font-weight: 700;
  color: var(--ctp-charcoal);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.author-bio-text a {
  color: var(--ctp-burgundy);
  text-decoration: none;
  font-weight: 600;
}

.author-bio-text a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Back to Insights Link */
.back-to-insights {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ctp-burgundy);
  text-decoration: none;
  margin-top: 3rem;
  transition: gap var(--transition-fast);
}

.back-to-insights:hover {
  gap: 10px;
}

/* --- Branded Bullet Lists ---
   Reusable burgundy bullet style.
   Apply .branded-bullets to any <ul> or container.
   ------------------------------------------------ */
.branded-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
}

.branded-bullets li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ctp-charcoal);
  line-height: 1.6;
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
}

.branded-bullets li::before {
  content: "\2022";
  color: var(--ctp-burgundy);
  font-size: 1rem;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* --- Utilities --- */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

/* --- Animations ---
   Scroll-triggered fade-in-up entrance animation.
   Elements start invisible and animate when scrolled into view.

   Usage:
   1. Add .animate-in to any element (it will be hidden until triggered).
   2. Stagger siblings with .delay-1 through .delay-6.
   3. Include the IntersectionObserver script (see index.html) which
      adds .is-visible when the element enters the viewport.

   Example HTML:
     <div class="card animate-in delay-2">...</div>

   The observer script:
     document.querySelectorAll('.animate-in').forEach(el => {
       new IntersectionObserver(([e]) => {
         if (e.isIntersecting) { el.classList.add('is-visible'); observer.disconnect(); }
       }, { threshold: 0.15 }).observe(el);
     });
   ------------------------------------------------ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hidden by default until scroll-triggered */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
}

/* Animate when IntersectionObserver adds .is-visible */
.animate-in.is-visible {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Skip animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-in {
    opacity: 1;
    transform: none;
  }
  .animate-in.is-visible {
    animation: none;
  }
}
