/* SafarTrade Reusable Landing Page Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800;900&family=Playfair+Display:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  /* Color Palette - Customized brand dark emerald/pine green theme */
  --bg-main: #06090a;
  --bg-surface: #0a0f10;
  --bg-surface-elevated: #0f1516;
  --border-color: rgba(255, 255, 255, 0.04);
  --border-glow: rgba(16, 185, 129, 0.12);
  
  --primary: #10b981;
  --primary-rgb: 16, 185, 129;
  --primary-hover: #059669;
  --secondary: #fb7185;
  --secondary-rgb: 251, 113, 133;
  --accent-green: #34d399;
  --accent-green-rgb: 52, 211, 153;
  
  --text-primary: #ffffff;
  --text-muted: #94a3b8;
  --text-faded: #4b5563;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #124c41 0%, #10b981 100%); /* Brand teal to bright emerald */
  --grad-pain: linear-gradient(135deg, #da1b60 0%, #ff8a00 100%);
  --grad-success: linear-gradient(135deg, #059669 0%, #34d399 100%);
  --grad-dark: linear-gradient(180deg, #0a0f10 0%, #06090a 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 70%);

  /* Shadow & Glass */
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(6, 9, 10, 0.7);
  --glass-blur: blur(14px);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-muted);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

strong {
  color: var(--text-primary);
}

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

/* Background Gradients & Accents */
.bg-ambient-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 900px;
  background: var(--grad-glow);
  z-index: -1;
  pointer-events: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  position: relative;
  padding: 6rem 0;
}

/* Header & Glassmorphic Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}

.navbar.scrolled {
  height: 70px;
  background: rgba(10, 12, 16, 0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.logo-image {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text {
  font-size: 1.25rem;
  letter-spacing: 4px;
  color: var(--text-primary);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.logo-subtext {
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: #000;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge {
  align-self: flex-start;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.3;
}

.hero-subheadline {
  font-size: 1.1rem;
  color: var(--text-muted);
}

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

/* Video Section */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Pain Points / Problems Section */
.pain-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(20, 10, 15, 0.6) 100%);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title-large {
  font-size: 2.75rem;
  font-weight: 800;
  background: var(--grad-pain);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title-cool {
  font-size: 2.75rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pain-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pain-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 56, 96, 0.3);
  box-shadow: 0 12px 30px rgba(255, 56, 96, 0.15);
}

.pain-card-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 56, 96, 0.2);
  line-height: 1;
}

.pain-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Features Section */
.features-section {
  background: var(--bg-main);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.features-grid .feature-card:nth-child(4),
.features-grid .feature-card:nth-child(5) {
  grid-column: span 1;
}

/* On wider screens, if we have 5 features, we center the last row */
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .feature-card {
    grid-column: span 2;
  }
  .features-grid .feature-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .features-grid .feature-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.15);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.feature-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Gallery Showcase Section */
.gallery-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-surface) 100%);
}

.gallery-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-surface-elevated);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.gallery-image-container {
  width: 100%;
  display: block;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-normal);
}

.gallery-caption {
  padding: 1.5rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Pricing Section */
.pricing-section {
  background: var(--bg-main);
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: var(--card-shadow);
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.pricing-card.popular {
  background: var(--bg-surface-elevated);
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.15);
}

.pricing-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--grad-primary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.plan-name {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.plan-subtitle {
  font-size: 0.9rem;
  color: var(--text-faded);
  margin-bottom: 1.5rem;
}

.plan-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.price-strike {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: var(--text-faded);
  font-weight: 500;
}

.price-now {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: baseline;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.25rem;
}

.price-savings {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.pricing-card.popular .price-savings {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  align-items: center;
}

.plan-feature-icon {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card.popular .plan-feature-icon {
  color: var(--primary);
}

.pricing-card .btn {
  width: 100%;
}

/* Footer Section */
.footer {
  background: #06070a;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  max-width: 320px;
  color: var(--text-faded);
  font-size: 0.9rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-links-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link a {
  transition: var(--transition-fast);
  color: var(--text-muted);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-faded);
  font-size: 0.8rem;
}

.social-links {
  display: flex;
  gap: 1.25rem;
}

.social-icon {
  transition: var(--transition-fast);
}

.social-icon:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .badge {
    align-self: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .pain-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .features-grid .feature-card:nth-child(4),
  .features-grid .feature-card:nth-child(5) {
    grid-column: span 1;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-desc {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .section-title-large, .section-title-cool {
    font-size: 2.25rem;
  }
  .navbar .nav-links {
    display: none; /* Can build a hamburger or keep it clean/simple for landing pages */
  }
  .footer-bottom {
    flex-direction: column-reverse;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Home Page Specific Elements */
.hero-center-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#home-headline {
  background: linear-gradient(180deg, #ffffff 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.suite-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-surface) 100%);
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

.suite-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  text-align: left;
}

.suite-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.15);
}

.suite-card-badge {
  align-self: flex-start;
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  color: var(--accent-green);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.suite-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.suite-card-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.suite-card-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  margin-top: 1rem;
}

/* ==========================================================================
   Academy & Blog Specific Styles (Additive)
   ========================================================================== */

/* Blog directory / Academy list view */
.academy-hero {
  padding-bottom: 3rem;
  text-align: center;
}

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

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.article-card-media {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-surface-elevated);
  position: relative;
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
  opacity: 0.85;
}

.article-card:hover .article-card-media img {
  transform: scale(1.05);
  opacity: 1;
}

.article-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.article-card-badge {
  align-self: flex-start;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--accent-green);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.article-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.article-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-faded);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

/* Article detail reading view */
.article-reader-section {
  padding-top: 8rem;
}

.article-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.back-to-academy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  transition: var(--transition-fast);
}

.back-to-academy-link:hover {
  color: var(--primary);
  transform: translateX(-4px);
}

.article-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-faded);
  margin-bottom: 1rem;
}

.article-header-badge {
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  color: var(--accent-green);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.article-main-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.article-body p {
  margin-bottom: 1.75rem;
}

.article-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}

.article-body h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

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

.article-body blockquote {
  background: var(--bg-surface-elevated);
  border-left: 4px solid var(--accent-green);
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 2.5rem 0;
  font-style: italic;
}

.article-body blockquote strong {
  display: block;
  margin-bottom: 0.5rem;
  font-style: normal;
  color: var(--accent-green);
}

/* Call to action conversion banner */
.article-cta-banner {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-elevated) 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 4rem 0 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.05);
}

.article-cta-banner h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.article-cta-banner p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta-banner .btn {
  display: inline-block;
}

@media (max-width: 768px) {
  .article-main-title {
    font-size: 2.25rem;
  }
  .article-body h2 {
    font-size: 1.5rem;
  }
  .article-cta-banner {
    padding: 2rem 1.5rem;
  }
}

/* Reader Grid Layout & Sticky Sidebar TOC */
.article-reader-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 2rem;
}

.article-sidebar {
  position: sticky;
  top: 100px;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border-color);
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faded);
  margin-bottom: 1rem;
}

.sidebar-toc {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toc-item-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  line-height: 1.4;
  display: block;
}

.toc-item-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.toc-item-link.active {
  color: var(--primary);
  font-weight: 600;
}

.article-main-content {
  min-width: 0;
  max-width: 760px; /* Optimal reading measure standard */
}

@media (max-width: 900px) {
  .article-reader-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .article-sidebar {
    position: static;
    border-right: none;
    padding-right: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
  }
}

/* Newsletter Sign-up Panel (FTMO inspired, customized dark emerald theme) */
.newsletter-box {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-elevated) 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  margin: 5rem 0 3.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--card-shadow);
}

.newsletter-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -5rem auto 1.5rem;
  color: var(--accent-green);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1);
}

.newsletter-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.newsletter-box h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.newsletter-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.newsletter-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.bullet-check {
  color: var(--accent-green);
  font-weight: bold;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 450px;
  margin: 0 auto 2rem;
}

.newsletter-input {
  background: rgba(6, 9, 10, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
  text-align: center;
}

.newsletter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.2);
}

.newsletter-btn {
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.newsletter-divider {
  height: 1px;
  background: var(--border-color);
  margin-bottom: 2rem;
}

.newsletter-community p {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.newsletter-community span {
  font-size: 0.85rem;
  color: var(--text-faded);
  display: block;
  margin-bottom: 1.25rem;
}

.community-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.community-socials a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.community-socials a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Mobile Hamburger Button & Menu Drawer Overlay */
.hamburger-btn {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }
  
  .hamburger-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
  }
  
  .mobile-menu-overlay {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 9, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    padding: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .mobile-menu-overlay.open {
    transform: translateY(0);
  }
  
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .hamburger-close-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-fast);
  }
  
  .hamburger-close-btn:hover {
    color: var(--primary);
  }
  
  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    margin-top: 1.5rem;
  }
  
  .mobile-menu-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
    font-family: 'Outfit', sans-serif;
    width: 100%;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  .mobile-menu-link:hover,
  .mobile-menu-link.active {
    color: var(--primary);
    padding-left: 4px;
  }
  
  .mobile-menu-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 2rem;
  }
  
  .newsletter-box {
    padding: 2.5rem 1.5rem;
  }
  
  .newsletter-bullets {
    flex-direction: column;
    gap: 0.75rem;
  }
}
