/* ================================================================
   SHREEWAVE CAPITAL — DESIGN SYSTEM
   Full dark + light theme with CSS custom properties
   ================================================================ */

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

/* ================================================================
   1. CSS VARIABLES — DARK THEME (Default)
   ================================================================ */
:root,
[data-theme="dark"] {
  --bg-primary:       #050D1A;
  --bg-secondary:     rgba(10, 22, 40, 0.65);
  --bg-card:          rgba(15, 30, 53, 0.72);
  --bg-card-hover:    rgba(20, 36, 64, 0.85);
  --bg-input:         rgba(10, 22, 40, 0.80);
  --border:           rgba(201, 149, 42, 0.22);
  --border-subtle:    rgba(255, 255, 255, 0.08);
  --border-input:     rgba(255, 255, 255, 0.14);

  --gold:             #C9952A;
  --gold-light:       #E8B84B;
  --gold-dim:         #9A7220;
  --gold-gradient:    linear-gradient(135deg, #C9952A 0%, #E8B84B 50%, #C9952A 100%);
  --gold-glow:        0 0 40px rgba(201, 149, 42, 0.35);

  --navy:             #0A1628;
  --navy-deep:        #050D1A;

  --text-primary:     #FFFFFF;
  --text-secondary:   #C0D0E0;
  --text-muted:       #6B80A0;
  --text-label:       #C9952A;

  --green:            #00C853;
  --green-bg:         rgba(0, 200, 83, 0.12);
  --red:              #FF5252;
  --red-bg:           rgba(255, 82, 82, 0.12);
  --blue-accent:      #4A90E2;
  --blue-bg:          rgba(74, 144, 226, 0.14);

  --nav-height:       80px;
  --nav-bg:           rgba(5, 13, 26, 0.82);
  --nav-border:       rgba(201, 149, 42, 0.18);
  --nav-blur:         blur(24px);

  --shadow-sm:        0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:        0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:        0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-gold:      0 4px 24px rgba(201, 149, 42, 0.25);
  --shadow-card:      0 8px 32px rgba(0, 0, 0, 0.38);

  --radius-sm:        8px;
  --radius-md:        16px;
  --radius-lg:        24px;
  --radius-xl:        32px;
  --radius-full:      9999px;

  --transition:       all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast:  all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:  all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Wave divider fill */
  --wave-fill:        #0A1628;
  --hero-overlay:     linear-gradient(135deg, rgba(5,13,26,0.92) 0%, rgba(10,22,40,0.80) 100%);
}

/* ================================================================
   2. CSS VARIABLES — LIGHT THEME
   ================================================================ */
[data-theme="light"] {
  --bg-primary:       #EEF2F8;
  --bg-secondary:     rgba(255, 255, 255, 0.70);
  --bg-card:          rgba(255, 255, 255, 0.82);
  --bg-card-hover:    rgba(245, 248, 255, 0.95);
  --bg-input:         #F8FAFC;
  --border:           rgba(184, 129, 26, 0.25);
  --border-subtle:    rgba(0, 0, 0, 0.08);
  --border-input:     rgba(0, 0, 0, 0.14);

  --gold:             #B8811A;
  --gold-light:       #C9952A;
  --gold-dim:         #8A6010;
  --gold-gradient:    linear-gradient(135deg, #B8811A 0%, #C9952A 50%, #B8811A 100%);
  --gold-glow:        0 0 40px rgba(184, 129, 26, 0.20);

  --navy:             #0A1628;
  --navy-deep:        #050D1A;

  --text-primary:     #0A1628;
  --text-secondary:   #2D4060;
  --text-muted:       #5A7090;
  --text-label:       #B8811A;

  --green:            #00A040;
  --green-bg:         rgba(0, 160, 64, 0.10);
  --red:              #D32F2F;
  --red-bg:           rgba(211, 47, 47, 0.10);
  --blue-accent:      #1565C0;
  --blue-bg:          rgba(21, 101, 192, 0.10);

  --nav-bg:           rgba(255, 255, 255, 0.88);
  --nav-border:       rgba(0, 0, 0, 0.08);

  --shadow-sm:        0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md:        0 8px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg:        0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-gold:      0 4px 24px rgba(184, 129, 26, 0.18);
  --shadow-card:      0 4px 20px rgba(0, 0, 0, 0.09);

  --wave-fill:        #FFFFFF;
  --hero-overlay:     linear-gradient(135deg, rgba(238,242,248,0.97) 0%, rgba(255,255,255,0.90) 100%);
}

/* ================================================================
   3. THEME TRANSITION OVERLAY
   ================================================================ */
*, *::before, *::after {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

/* ================================================================
   4. RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ================================================================
   4.1 GLOBAL 3D TOPOLOGY BACKGROUND
   ================================================================ */
.global-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-primary);
}

.global-bg-glow {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 149, 42, 0.14) 0%, rgba(56, 189, 248, 0.07) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

[data-theme="light"] .global-bg-glow {
  background: radial-gradient(circle, rgba(184, 129, 26, 0.09) 0%, rgba(21, 101, 192, 0.05) 50%, transparent 70%);
}

.global-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: none;
}

/* Ensure page content layers on top of 3D canvas */
header, main, footer, section, .hero, .page-hero, .section, .section-sm, .services-strip, .about-section, .home-about {
  position: relative;
  z-index: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ================================================================
   5. TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.7rem); }
h4 { font-size: clamp(0.95rem, 1.8vw, 1.15rem); font-weight: 600; }
p  { color: var(--text-secondary); font-size: 0.95rem; }

.gold-text { color: var(--gold); }
.text-muted { color: var(--text-muted); font-size: 0.85rem; }
.text-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ================================================================
   6. LAYOUT
   ================================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 48px 0;
}

.section-sm {
  padding: 32px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.section-header .eyebrow::before,
.section-header .eyebrow::after {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--gold);
}

.section-header p {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

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

/* ================================================================
   7. NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: var(--nav-blur);
  backdrop-filter: var(--nav-blur);
  border-bottom-color: var(--nav-border);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img,
.nav-logo-full {
  height: 48px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

.nav-logo:hover .nav-logo-img,
.nav-logo:hover .nav-logo-full {
  transform: scale(1.03);
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

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

.logo-text .logo-name {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.logo-text .logo-name span { color: var(--gold); }

.logo-text .logo-sub {
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Nav Actions (right side) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-social {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  font-size: 0.85rem;
}

.nav-social:hover {
  color: var(--gold);
  border-color: var(--border);
  background: rgba(201, 149, 42, 0.08);
}

/* Theme Toggle */
.theme-toggle {
  width: 56px; height: 30px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--gold); }

.theme-toggle-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: var(--gold-gradient);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; justify-content: center;
  color: #050D1A;
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .theme-toggle-knob {
  transform: translateX(26px);
}

/* Show moon in dark mode, sun in light mode */
.toggle-moon { display: block; }
.toggle-sun  { display: none; }

[data-theme="light"] .toggle-moon { display: none; }
[data-theme="light"] .toggle-sun  { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: var(--transition);
}

.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--gold);
  padding-left: 24px;
}

.mobile-menu-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* ================================================================
   7.1 MOBILE MODULES QUICK BAR (Always visible on mobile)
   ================================================================ */
.mobile-modules-bar {
  display: none;
  width: 100%;
  padding: 6px 16px 10px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: var(--nav-blur);
  backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-modules-bar::-webkit-scrollbar {
  display: none;
}

.mobile-modules-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 0 auto;
  padding: 0 4px;
}

.mobile-module-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(15, 30, 53, 0.72);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

[data-theme="light"] .mobile-module-chip {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.1);
}

.mobile-module-chip:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.mobile-module-chip.active {
  background: var(--gold-gradient) !important;
  color: #050D1A !important;
  font-weight: 700 !important;
  border-color: transparent !important;
  box-shadow: 0 2px 10px rgba(201, 149, 42, 0.4);
}

@media (max-width: 768px) {
  .mobile-modules-bar {
    display: block;
  }
  .navbar {
    height: auto !important;
  }
  .nav-container {
    height: 68px;
  }
  .hero {
    padding-top: 114px !important;
  }
  .page-hero {
    padding-top: 120px !important;
  }
  .mobile-menu {
    top: 114px !important;
  }
}

/* ================================================================
   8. HERO SECTION
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Animated gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(201, 149, 42, 0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(10, 22, 40, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

/* Animated grid pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 149, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 149, 42, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridShift 25s linear infinite;
  pointer-events: none;
}

@keyframes gridShift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(50px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-left { max-width: 580px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 14px;
  background: rgba(201, 149, 42, 0.10);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero-eyebrow span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title .highlight {
  display: inline-block;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding: 10px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 149, 42, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero right - chart image */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-lg), var(--gold-glow);
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.hero-chart-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: var(--gold-gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-chart-img {
  width: 100%;
  max-width: 540px;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
}

/* Floating stats badge */
.hero-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float2 5s ease-in-out infinite;
}

.hero-badge-1 { bottom: 30px; left: -20px; animation-delay: 0s; }
.hero-badge-2 { top: 20px; right: -10px; animation-delay: 2.5s; }

@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-8px) rotate(1deg); }
}

.hero-badge-icon { font-size: 1.3rem; }
.hero-badge-text { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); }
.hero-badge-sub  { font-size: 0.68rem; color: var(--text-muted); }

/* ================================================================
   9. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gold-gradient);
  color: #050D1A;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 149, 42, 0.4);
}

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

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 8px 0;
}

.btn-ghost:hover { opacity: 0.7; }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-arrow:hover { gap: 10px; }
.btn-arrow::after { content: '→'; }

/* ================================================================
   10. SERVICES STRIP
   ================================================================ */
.services-strip {
  background: var(--bg-secondary);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 48px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-item {
  padding: 32px 40px;
  position: relative;
  transition: var(--transition);
}

.service-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border-subtle);
}

.service-item:hover { background: var(--bg-card-hover); }

.service-icon {
  width: 48px; height: 48px;
  background: rgba(201, 149, 42, 0.10);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-item:hover .service-icon {
  background: rgba(201, 149, 42, 0.18);
  border-color: var(--gold);
}

.service-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ================================================================
   11. CARDS
   ================================================================ */
.card {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

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

/* Analysis Card — Sleek Compact 3-Column Design */
.analysis-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  height: 100%;
}

.analysis-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.45), 0 0 18px rgba(201, 149, 42, 0.22);
  transform: translateY(-5px);
}

.analysis-card-img {
  position: relative;
  overflow: hidden;
  height: 170px;
  min-height: 170px;
  max-height: 170px;
  width: 100%;
  background: #070d18;
  border-left: none;
  border-bottom: 1px solid var(--border-subtle);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.analysis-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.analysis-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--border-subtle);
  pointer-events: none;
}

.analysis-card:hover .analysis-card-img img {
  transform: scale(1.06);
}

.analysis-card-body {
  padding: 16px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  flex: 1 1 auto;
}

.analysis-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-top: 6px;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-family: 'Playfair Display', Georgia, serif;
}

.analysis-card .card-subtitle {
  font-size: 0.78rem;
  margin-bottom: 6px;
  color: var(--gold);
  font-weight: 600;
  line-height: 1.3;
}

.analysis-card .card-description {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.analysis-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Education Card */
.edu-card {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.edu-card:hover::before { transform: scaleX(1); }

.edu-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
}

.edu-card-icon {
  width: 56px; height: 56px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.edu-level-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: var(--green-bg);
  color: var(--green);
}

.edu-level-badge.intermediate {
  background: var(--blue-bg);
  color: var(--blue-accent);
}

.edu-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.edu-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.edu-topics {
  margin-bottom: 24px;
}

.edu-topic {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 0;
}

.edu-topic::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ================================================================
   12. BADGES
   ================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.badge-green {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(0, 200, 83, 0.25);
}

.badge-blue {
  background: var(--blue-bg);
  color: var(--blue-accent);
  border: 1px solid rgba(74, 144, 226, 0.25);
}

.badge-commodity {
  background: rgba(255, 152, 0, 0.12);
  color: #FF9800;
  border: 1px solid rgba(255, 152, 0, 0.28);
}

.badge-gold {
  background: rgba(201, 149, 42, 0.12);
  color: var(--gold);
  border: 1px solid var(--border);
}

.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ================================================================
   13. ABOUT SECTION (Home Page)
   ================================================================ */
.about-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.about-banner {
  position: relative;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  padding: 84px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(5, 13, 26, 0.82) 0%, rgba(5, 13, 26, 0.65) 50%, rgba(5, 13, 26, 0.88) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 212, 136, 0.08) 0%, transparent 70%),
    url('../assets/charts/about_wave_bg.png') center center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
}

.about-banner:hover {
  border-color: rgba(0, 212, 136, 0.35);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 212, 136, 0.15);
}

[data-theme="light"] .about-banner {
  background:
    linear-gradient(180deg, rgba(248, 250, 253, 0.88) 0%, rgba(240, 245, 250, 0.80) 50%, rgba(248, 250, 253, 0.94) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 168, 107, 0.06) 0%, transparent 70%),
    url('../assets/charts/about_wave_bg.png') center center / cover no-repeat;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .about-banner:hover {
  border-color: rgba(0, 168, 107, 0.35);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12), 0 0 35px rgba(0, 168, 107, 0.1);
}

.about-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--gold);
}

.about-banner .about-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.75rem;
  letter-spacing: 3.5px;
  margin-bottom: 22px;
}

.about-banner .about-eyebrow::before,
.about-banner .about-eyebrow::after {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
  opacity: 0.85;
}

.about-banner h2 {
  font-family: var(--font-display, serif);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 800px;
  text-align: center;
  color: var(--text-primary);
}

.about-banner .gold-text {
  background: linear-gradient(135deg, #FFDF73 0%, #D4AF37 50%, #B8972E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.about-banner p {
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 660px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--text-secondary);
}

[data-theme="dark"] .about-banner p {
  color: rgba(226, 232, 240, 0.88);
}

[data-theme="light"] .about-banner p {
  color: #334155;
}

.about-banner #home-about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.about-banner #home-about-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 136, 0.25);
}

/* ================================================================
   14. WHY FOLLOW US
   ================================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.trust-item:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.trust-icon {
  width: 52px; height: 52px;
  background: var(--green-bg);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.2rem;
  color: var(--green);
}

.trust-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

/* ================================================================
   15. NEWSLETTER / STAY UPDATED
   ================================================================ */
.newsletter {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  padding: 72px 0;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 32px auto 0;
  width: 100%;
  align-items: stretch;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 13px 20px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 149, 42, 0.12);
}

.newsletter-input::placeholder { color: var(--text-muted); }

.newsletter-form .btn-primary,
.newsletter-form .btn {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 700;
  padding: 13px 20px;
  min-width: 140px;
  justify-content: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  box-sizing: border-box;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
    width: 100%;
    max-width: 100% !important;
    gap: 12px;
    margin: 24px auto 0;
  }

  .newsletter-input {
    width: 100%;
    height: 48px;
    font-size: 0.95rem;
  }

  .newsletter-form .btn-primary,
  .newsletter-form .btn {
    width: 100%;
    min-width: 0;
    height: 48px;
    font-size: 0.95rem;
    padding: 0 16px;
    white-space: nowrap;
    overflow: visible;
  }
}

/* ================================================================
   16. FOOTER
   ================================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 36px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 16px 0 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col ul a:hover { color: var(--text-primary); }

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition);
}

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

/* Footer logo */
.footer-logo {
  height: 36px;
  object-fit: contain;
  margin-bottom: 16px;
}

/* ================================================================
   17. WAVE SVG DIVIDER
   ================================================================ */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -1px;
}

.wave-divider svg { display: block; width: 100%; }

/* ================================================================
   18. SCROLL ANIMATIONS (Cinematic Soft Blur & Spring Rise)
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  filter: blur(8px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.60s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-36px) scale(0.97);
  filter: blur(8px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px) scale(0.97);
  filter: blur(8px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0) scale(1);
  filter: blur(0px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ================================================================
   19. PAGE HERO (Inner Pages)
   ================================================================ */
.page-hero {
  background: var(--bg-secondary);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: calc(var(--nav-height) + 28px) 0 28px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(201, 149, 42, 0.05) 0%, transparent 60%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; max-width: 560px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--text-muted); }

/* ================================================================
   20. ANALYSIS PAGE SPECIFICS & HORIZONTAL CAROUSEL
   ================================================================ */
.analysis-controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.analysis-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 149, 42, 0.08);
}

/* Horizontal Scroll Controls & Arrows */
.carousel-nav-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  user-select: none;
  flex-shrink: 0;
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.carousel-arrow.prev:hover:not(:disabled) svg {
  transform: translateX(-2px);
}

.carousel-arrow.next:hover:not(:disabled) svg {
  transform: translateX(2px);
}

.carousel-arrow:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(201, 149, 42, 0.16);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 149, 42, 0.35);
}

.carousel-arrow:active:not(:disabled) {
  transform: scale(0.92);
}

.carousel-arrow:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

/* Analysis Scroll Track — 3 Visible Analysis Blocks on Desktop */
.analysis-scroll-wrap {
  position: relative;
  width: 100%;
}

.analysis-grid,
.featured-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 4px 24px 4px;
  cursor: grab;
  user-select: none;
}

.analysis-grid.is-dragging,
.featured-grid.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.analysis-grid .analysis-card,
.featured-grid .analysis-card {
  flex: 0 0 calc((100% - 44px) / 3) !important;
  min-width: 300px;
  max-width: 400px;
  flex-shrink: 0 !important;
  scroll-snap-align: start;
}

/* Hide horizontal scrollbar while preserving full scrollability */
.analysis-grid,
.featured-grid {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.analysis-grid::-webkit-scrollbar,
.featured-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

/* Featured Header with Arrows (Centered Title) */
.featured-header-with-arrows {
  position: relative;
  text-align: center;
  margin-bottom: 36px;
  display: block;
}

.featured-header-with-arrows .featured-header-text {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.featured-header-with-arrows .carousel-nav-arrows {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .featured-header-with-arrows .carousel-nav-arrows {
    position: static;
    justify-content: center;
    margin-top: 16px;
  }
}

/* ================================================================
   21. ABOUT PAGE SPECIFICS
   ================================================================ */
.about-page-section {
  padding: 96px 0;
}

.founder-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}

.founder-photo-wrapper {
  position: relative;
}

.founder-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.founder-photo-border {
  position: absolute;
  inset: -8px;
  border: 2px solid var(--gold);
  border-radius: calc(var(--radius-lg) + 8px);
  opacity: 0.4;
}

.founder-credentials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.credential-item::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.founder-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.stat-box {
  text-align: center;
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.quote-block {
  margin: 32px 0;
  padding: 24px 32px;
  background: rgba(201, 149, 42, 0.06);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote-block p {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Mission pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pillar-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.pillar-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.pillar-card h4 {
  color: var(--gold);
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================================================================
   22. CONTACT PAGE SPECIFICS
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info { padding: 48px 0; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-icon {
  width: 48px; height: 48px;
  background: rgba(201, 149, 42, 0.10);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-value {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-social-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.contact-social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.contact-social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  font-family: 'Inter', sans-serif;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 149, 42, 0.10);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

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

/* ================================================================
   23. TESTIMONIALS
   ================================================================ */
.testimonials-section { background: var(--bg-secondary); }

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #050D1A;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ================================================================
   24. EDUCATION PAGE SPECIFIC
   ================================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ================================================================
   25. UTILITY CLASSES
   ================================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-4       { gap: 16px; }
.gap-6       { gap: 24px; }
.mt-4        { margin-top: 16px; }
.mt-8        { margin-top: 32px; }
.mb-4        { margin-bottom: 16px; }
.mb-8        { margin-bottom: 32px; }
.w-full      { width: 100%; }
.hidden      { display: none !important; }

/* ================================================================
   26. RESPONSIVE — TABLET (≤1024px)
   ================================================================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-left    { max-width: 100%; }
  .hero-right   { order: -1; }
  .hero-chart-card { max-width: 500px; margin: 0 auto; }
  .hero-cta     { justify-content: center; }
  .hero-badge-1, .hero-badge-2 { display: none; }

  .services-grid  { grid-template-columns: 1fr; }
  .service-item::after { display: none; }
  .service-item { border-bottom: 1px solid var(--border-subtle); }
  .service-item:last-child { border-bottom: none; }

  .about-banner { padding: 60px 32px; border-radius: 16px; }
  .about-banner h2 { font-size: 2rem; }
  .about-banner p { font-size: 0.95rem; margin-bottom: 28px; }

  .trust-grid { grid-template-columns: repeat(3, 1fr); }

  .analysis-grid .analysis-card,
  .featured-grid .analysis-card {
    flex: 0 0 calc((100% - 20px) / 2) !important;
    min-width: 280px !important;
    max-width: 440px !important;
  }
  .analysis-card-img {
    height: 160px;
    min-height: 160px;
    max-height: 160px;
  }

  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 320px; margin: 0 auto; display: block; }

  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   27. RESPONSIVE — MOBILE (≤768px)
   ================================================================ */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* Global typography reduction on mobile */
  h1 { font-size: 1.65rem !important; line-height: 1.25 !important; }
  h2 { font-size: 1.35rem !important; line-height: 1.3 !important; }
  h3 { font-size: 1.1rem !important; line-height: 1.35 !important; }
  h4 { font-size: 0.95rem !important; }
  p  { font-size: 0.88rem !important; line-height: 1.55 !important; }

  .container  { padding: 0 16px !important; }
  .section    { padding: 32px 0 !important; }
  .section-sm { padding: 22px 0 !important; }

  .section-header {
    margin-bottom: 20px !important;
  }
  .section-header .eyebrow {
    margin-bottom: 8px !important;
  }
  .section-header p {
    font-size: 0.84rem !important;
    margin-top: 6px !important;
  }

  /* Navbar on mobile */
  .nav-container { padding: 0 14px !important; height: 60px !important; }
  .nav-logo-img,
  .nav-logo-full {
    height: 34px !important;
    max-width: 155px !important;
  }
  .nav-links  { display: none !important; }
  .hamburger  { display: flex !important; }
  .nav-social { display: none !important; }

  /* Hero Section on Mobile */
  .hero {
    min-height: auto !important;
    padding: 104px 0 28px !important;
  }
  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 12px 14px 20px !important;
    text-align: center;
  }
  .hero-left {
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-eyebrow {
    margin-bottom: 12px !important;
    padding: 4px 12px !important;
    font-size: 0.68rem !important;
  }
  .hero-title {
    font-size: clamp(1.55rem, 6.2vw, 2.1rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
  }
  .hero-subtitle {
    font-size: 0.92rem !important;
    margin-bottom: 8px !important;
    line-height: 1.45 !important;
  }
  .hero-tagline {
    font-size: 0.78rem !important;
    margin-bottom: 18px !important;
    padding: 6px 12px !important;
    text-align: left;
    max-width: 92%;
  }
  .hero-cta {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100%;
    flex-wrap: wrap;
  }
  .hero-right {
    width: 100%;
    margin-top: 8px;
  }
  .hero-chart-card {
    max-width: 290px !important;
    margin: 0 auto;
    padding: 4px;
    border-radius: var(--radius-md) !important;
  }
  .hero-chart-img {
    max-height: 175px;
    object-fit: cover;
  }

  /* Buttons on mobile */
  .btn {
    padding: 9px 18px !important;
    font-size: 0.82rem !important;
    border-radius: var(--radius-sm) !important;
  }

  /* Services strip */
  .services-strip {
    padding: 24px 0 !important;
  }
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .service-item {
    padding: 16px 14px !important;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-card);
  }
  .service-item:not(:last-child)::after { display: none !important; }
  .service-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
  }
  .service-item h3 { font-size: 1rem !important; margin-bottom: 4px !important; }
  .service-item p { font-size: 0.82rem !important; margin-bottom: 8px !important; }

  /* Cards on mobile */
  .card { border-radius: var(--radius-md) !important; }
  .analysis-grid .analysis-card,
  .featured-grid .analysis-card {
    flex: 0 0 min(330px, 86vw) !important;
    min-width: 260px !important;
    max-width: 340px !important;
  }
  .analysis-card {
    border-radius: var(--radius-md) !important;
  }
  .analysis-card-img {
    height: 145px !important;
    min-height: 145px !important;
    max-height: 145px !important;
  }
  .analysis-card-body {
    padding: 14px 14px 16px 14px !important;
  }
  .analysis-card h3 { font-size: 1.02rem !important; margin-bottom: 4px !important; }
  .analysis-card p { font-size: 0.8rem !important; line-height: 1.45 !important; }
  .analysis-card-meta { margin-top: 10px !important; font-size: 0.72rem !important; }

  /* Education card */
  .edu-card {
    padding: 20px 16px !important;
    border-radius: var(--radius-md) !important;
  }
  .edu-card-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.3rem !important;
    margin-bottom: 14px !important;
  }
  .edu-card h3 { font-size: 1.08rem !important; margin-bottom: 6px !important; }
  .edu-card p { font-size: 0.82rem !important; margin-bottom: 14px !important; }
  .edu-topics { margin-bottom: 14px !important; }
  .edu-topic { font-size: 0.78rem !important; }

  /* About banner */
  .about-banner {
    padding: 28px 16px !important;
    border-radius: var(--radius-md) !important;
  }
  .about-banner .about-eyebrow {
    font-size: 0.68rem !important;
    margin-bottom: 12px !important;
  }
  .about-banner h2 {
    font-size: 1.35rem !important;
    margin-bottom: 10px !important;
    line-height: 1.25 !important;
  }
  .about-banner p {
    font-size: 0.84rem !important;
    line-height: 1.55 !important;
    margin-bottom: 18px !important;
  }

  /* Inner Page Hero */
  .page-hero {
    padding: 100px 0 20px !important;
  }
  .page-hero h1 { font-size: 1.55rem !important; margin-bottom: 6px !important; }
  .page-hero p { font-size: 0.86rem !important; }
  .breadcrumb { margin-bottom: 8px !important; font-size: 0.75rem !important; }

  /* Founder section on mobile */
  .founder-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .founder-photo { max-width: 200px !important; margin: 0 auto 16px !important; }
  .founder-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }
  .stat-card {
    padding: 12px 6px !important;
  }
  .stat-value { font-size: 1.25rem !important; }
  .stat-label { font-size: 0.68rem !important; }

  /* Contact & Forms */
  .contact-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .contact-form-wrapper { padding: 20px 16px !important; }
  .form-group { margin-bottom: 14px !important; }
  .form-label { font-size: 0.78rem !important; margin-bottom: 4px !important; }
  .form-input, .form-textarea { padding: 10px 12px !important; font-size: 0.86rem !important; }

  /* Footer on mobile */
  .footer { padding: 36px 0 20px !important; }
  .footer-main { grid-template-columns: 1fr !important; gap: 24px !important; }
  .footer-links-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .footer-bottom { flex-direction: column !important; gap: 10px !important; text-align: center; }

  /* Grids */
  .edu-grid     { grid-template-columns: 1fr !important; gap: 16px !important; }
  .trust-grid   { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .pillars-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .testimonials-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .what-we-do-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 16px !important; }
}

/* Extra small mobile adjustments (≤480px) */
@media (max-width: 480px) {
  h1 { font-size: 1.45rem !important; }
  h2 { font-size: 1.22rem !important; }
  h3 { font-size: 1.02rem !important; }
  .hero-title { font-size: 1.45rem !important; }
  .hero-cta { flex-direction: column !important; width: 100%; }
  .hero-cta .btn { width: 100% !important; justify-content: center !important; }
  .footer-links-grid { grid-template-columns: 1fr !important; }
}

/* ================================================================
   28. LIGHT THEME ADJUSTMENTS
   ================================================================ */
[data-theme="light"] .hero-bg {
  background: linear-gradient(135deg, #EEF2F8 0%, #F5F8FF 100%);
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(10, 22, 40, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 22, 40, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .page-hero::before {
  background: radial-gradient(ellipse at 20% 50%, rgba(184, 129, 26, 0.06) 0%, transparent 60%);
}

/* Logo visibility per theme */
.logo-dark { display: block; }
.logo-light { display: none; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* ================================================================
   29. SHIMMER ANIMATION (Gold heading effect)
   ================================================================ */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.gold-shimmer {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease infinite;
}

/* ================================================================
   30. LOADING STATE
   ================================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-load 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-load {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ─────────────────────────────────────────────────────────────
   ARTICLE READER MODAL (Hidden by default, displayed on click)
   ───────────────────────────────────────────────────────────── */
.article-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 9, 18, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.article-modal-backdrop.active {
  display: flex !important;
}

.article-modal {
  background: var(--bg-card, #0a1628);
  border: 1px solid var(--border, rgba(201, 149, 42, 0.25));
  border-radius: var(--radius-lg, 16px);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(201, 149, 42, 0.15);
  color: var(--text-primary, #ffffff);
  padding: 32px;
  position: relative;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.article-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.article-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  color: var(--text-primary, #ffffff);
  font-size: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.article-modal-close:hover {
  background: rgba(201, 149, 42, 0.2);
  color: var(--gold, #c9952a);
  border-color: var(--gold, #c9952a);
}

.article-modal-img-wrap {
  width: 100%;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.3);
}

.article-modal-img-wrap img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.article-rich-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary, #cbd5e1);
}

.article-rich-content p {
  margin-bottom: 1rem;
}

.article-rich-content h3, .article-rich-content h4 {
  color: var(--text-primary, #ffffff);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────
   EDUCATION DETAILS EXPANDING DRAWER
   ───────────────────────────────────────────────────────────── */
.edu-detail-section {
  display: none;
  margin-top: 36px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card), 0 0 30px rgba(201, 149, 42, 0.08);
  animation: eduDrawerSlide 0.3s ease-out forwards;
}

.edu-detail-section.active {
  display: block !important;
}

@keyframes eduDrawerSlide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.edu-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.edu-detail-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.edu-detail-close:hover {
  background: rgba(201, 149, 42, 0.2);
  border-color: var(--gold);
  color: var(--gold);
}

.edu-card {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.edu-card.active {
  border-color: var(--gold) !important;
  box-shadow: 0 0 24px rgba(201, 149, 42, 0.25) !important;
  transform: translateY(-4px);
}

.edu-rule-box {
  background: rgba(201, 149, 42, 0.08);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}

.edu-rule-box h4 {
  color: var(--gold);
  margin-bottom: 6px;
  font-size: 1rem;
}

.edu-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.edu-table th,
.edu-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.edu-table th {
  background: rgba(201, 149, 42, 0.12);
  color: var(--gold);
  font-weight: 600;
}

.edu-tip-box {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid #38bdf8;
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}

.edu-tip-box h4 {
  color: #38bdf8;
  margin-bottom: 6px;
  font-size: 1rem;
}

.edu-takeaway-box {
  background: rgba(34, 197, 94, 0.08);
  border-left: 4px solid #22c55e;
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}

.edu-takeaway-box h4 {
  color: #22c55e;
  margin-bottom: 6px;
  font-size: 1rem;
}

.edu-takeaway-box ul {
  margin: 8px 0 0 18px;
  color: var(--text-secondary);
}

.edu-takeaway-box li {
  margin-bottom: 6px;
}

.edu-highlight {
  background: rgba(201, 149, 42, 0.25);
  color: var(--gold-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.edu-figure {
  margin: 24px 0;
  text-align: center;
}

.edu-figure img {
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.edu-figure figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────
   COURSE DETAIL PAGE STYLES
/* ─────────────────────────────────────────────────────────────
   COURSE DETAIL & HIERARCHICAL SYLLABUS STYLES
   ───────────────────────────────────────────────────────────── */
.course-detail-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 80px 20px;
}

.course-back-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.course-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(201, 149, 42, 0.08);
  border: 1px solid rgba(201, 149, 42, 0.25);
  transition: var(--transition);
}

.course-back-btn:hover {
  background: var(--gold);
  color: #050D1A;
  transform: translateX(-3px);
}

/* Course Track Hero */
.course-hero-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.course-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.course-hero-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.course-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(201, 149, 42, 0.12);
  border: 1px solid rgba(201, 149, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}

.course-hero-info {
  flex: 1;
  min-width: 240px;
}

.course-meta-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.course-module-tag {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.course-topics-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.course-topic-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* 2-Column Responsive Layout: Syllabus Sidebar + Lesson Reader */
.course-layout-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sticky Syllabus Sidebar */
.syllabus-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.syllabus-sidebar-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.syllabus-progress-wrap {
  margin-top: 12px;
}

.syllabus-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 6px;
}

.syllabus-progress-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Module Accordion */
.syllabus-modules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.syllabus-module-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  overflow: hidden;
  transition: var(--transition);
}

.syllabus-module-card.active-module {
  border-color: rgba(201, 149, 42, 0.4);
}

.syllabus-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
}

.syllabus-module-header:hover {
  background: rgba(201, 149, 42, 0.06);
}

.syllabus-module-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.syllabus-module-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201, 149, 42, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.syllabus-module-toggle-icon {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.syllabus-module-card.open .syllabus-module-toggle-icon {
  transform: rotate(180deg);
}

.syllabus-lessons-list {
  display: none;
  flex-direction: column;
  padding: 6px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.syllabus-module-card.open .syllabus-lessons-list {
  display: flex;
}

.syllabus-lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 20px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.86rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.syllabus-lesson-item:hover {
  background: rgba(201, 149, 42, 0.05);
  color: var(--gold-light);
}

.syllabus-lesson-item.active {
  background: rgba(201, 149, 42, 0.12);
  color: var(--gold);
  font-weight: 600;
  border-left-color: var(--gold);
}

.syllabus-lesson-item .lesson-status-icon {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 8px;
}

.syllabus-lesson-item.completed .lesson-status-icon {
  color: #22c55e;
}

.syllabus-lesson-duration {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Right Lesson Content Pane */
.lesson-reader-pane {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
}

.lesson-reader-header {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.lesson-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.lesson-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.lesson-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.btn-complete-lesson {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  transition: var(--transition);
}

.btn-complete-lesson:hover {
  background: #22c55e;
  color: #050D1A;
}

.btn-complete-lesson.is-completed {
  background: #22c55e;
  color: #050D1A;
}

.course-prev-next-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0 48px 0;
}

.course-nav-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
  cursor: pointer;
}

.course-nav-link-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.course-nav-link-card.next {
  text-align: right;
  align-items: flex-end;
}

.course-nav-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 600;
}

.course-nav-title {
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 600;
}

.other-courses-section {
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.other-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* Mobile Syllabus Floating Toggle Button */
.syllabus-mobile-toggle-btn {
  display: none;
  width: 100%;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

/* Education Hub Category Modules Accordion Preview & Bullet Points */
.hub-track-modules {
  margin: 16px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-track-module-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
}

.hub-track-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hub-track-lessons-preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hub-lesson-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--text-secondary);
}

/* Education Track Overview Card Learning Points List */
.edu-card-bullets-wrap {
  margin: 14px 0 22px 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  flex: 1;
}

.edu-bullets-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.edu-bullets-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.edu-bullets-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.edu-bullet-check {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 992px) {
  .course-layout-grid {
    grid-template-columns: 1fr;
  }
  .syllabus-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 24px;
    display: none;
  }
  .syllabus-sidebar.mobile-open {
    display: block;
  }
  .syllabus-mobile-toggle-btn {
    display: flex;
  }
  .lesson-reader-pane {
    padding: 24px 20px;
  }
}

@media (max-width: 768px) {
  .course-hero-card { padding: 18px 16px !important; }
  .course-hero-card h1 { font-size: 1.4rem !important; }
  .course-hero-card p { font-size: 0.86rem !important; }
  .lesson-reader-pane { padding: 20px 16px !important; }
  .course-prev-next-nav { grid-template-columns: 1fr !important; gap: 10px !important; }
  .course-nav-link-card.next { text-align: left !important; align-items: flex-start !important; }
}

/* ════════════════════════════════════════════════════════════════
   19. NOTION-STYLE ANALYSIS METADATA, TREND CHIPS & READER STYLES
   ════════════════════════════════════════════════════════════════ */

/* Checkbox Chip Toggle Inputs in Admin */
.chip-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 0.82rem;
  margin: 0;
}

.chip-checkbox input[type="checkbox"] {
  display: none;
}

.chip-checkbox span {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.chip-checkbox input[type="checkbox"]:checked + span {
  background: rgba(201, 149, 42, 0.18);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(201, 149, 42, 0.15);
}

.chip-checkbox:hover span {
  border-color: var(--gold);
}

/* Trend Bias Chips */
.trend-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.trend-bullish {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.trend-bearish {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.trend-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Category Badges for Crypto & Educational */
.badge-crypto {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Card Meta Pill Badges */
.card-timeframe-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.card-symbol-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201, 149, 42, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(201, 149, 42, 0.25);
}

.card-method-pill {
  font-size: 0.74rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Article Reader Modal Metadata Header */
.article-modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.article-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.article-meta-val {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Key Levels Callout Banner in Article Reader */
.article-key-levels-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(201, 149, 42, 0.08);
  border: 1px solid rgba(201, 149, 42, 0.3);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.article-level-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-level-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.article-level-target {
  font-size: 1.1rem;
  font-weight: 800;
  color: #22c55e;
}

.article-level-stop {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ef4444;
}

/* Tags Cloud at Footer of Modal */
.article-tags-cloud {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  margin-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.article-tag-chip {
  font-size: 0.78rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.article-tag-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ================================================================
   26. RICH ARTICLE CONTENT, MULTI-IMAGE FIGURES & TYPOGRAPHY
   ================================================================ */
.article-rich-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-secondary, #cbd5e1);
}

.article-rich-content p {
  margin-bottom: 1.25rem;
}

.article-rich-content h2,
.article-rich-content h3,
.article-rich-content h4 {
  color: var(--text-primary, #ffffff);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
}

.article-rich-content h2 { font-size: 1.55rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 8px; }
.article-rich-content h3 { font-size: 1.3rem; }
.article-rich-content h4 { font-size: 1.1rem; color: var(--gold); }

/* Font Family Classes */
.font-sans, .article-rich-content.font-sans { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; }
.font-serif, .article-rich-content.font-serif { font-family: "Merriweather", "Georgia", "Playfair Display", serif !important; }
.font-mono, .article-rich-content.font-mono { font-family: "Fira Code", "Roboto Mono", Consolas, monospace !important; }

/* Text Color Utility Classes */
.text-gold { color: var(--gold, #c9952a) !important; }
.text-green { color: #22c55e !important; }
.text-red { color: #ef4444 !important; }
.text-blue { color: #3b82f6 !important; }
.text-white { color: #ffffff !important; }
.text-muted { color: var(--text-muted, #94a3b8) !important; }

/* Text Highlight Pills */
.highlight-gold, mark.highlight-gold {
  background: rgba(201, 149, 42, 0.22);
  color: #ffd700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(201, 149, 42, 0.4);
  font-weight: 600;
}

.highlight-green, mark.highlight-green {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-weight: 600;
}

.highlight-red, mark.highlight-red {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-weight: 600;
}

.highlight-glass, mark.highlight-glass {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* Callout Boxes */
.callout-box {
  padding: 18px 22px;
  border-radius: var(--radius-md, 12px);
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary, rgba(15, 23, 42, 0.6));
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.callout-box.callout-wave {
  border-left: 4px solid var(--gold);
  background: rgba(201, 149, 42, 0.08);
}

.callout-box.callout-target {
  border-left: 4px solid #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

.callout-box.callout-warning {
  border-left: 4px solid #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.callout-box.callout-tip {
  border-left: 4px solid #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.callout-box h4 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

/* Multi-Image Figure Card */
.article-chart-figure {
  position: relative;
  margin: 28px 0;
  background: var(--bg-card, #0a1628);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.article-chart-figure:hover {
  border-color: rgba(201, 149, 42, 0.4);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), 0 0 20px rgba(201, 149, 42, 0.1);
}

.article-chart-figure .chart-header-title {
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-chart-figure .chart-header-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(201, 149, 42, 0.15);
  color: var(--gold);
  border: 1px solid rgba(201, 149, 42, 0.3);
}

.article-chart-figure .chart-img-wrap {
  position: relative;
  background: #020617;
  overflow: hidden;
}

.article-chart-figure img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.article-chart-figure img:hover {
  transform: scale(1.015);
}

.article-chart-figure .chart-caption {
  padding: 10px 18px;
  font-size: 0.86rem;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-weight: 500;
  line-height: 1.5;
}

/* Image Position & Width Variations */
.article-chart-figure.full-width {
  width: 100%;
  margin: 32px 0;
}

.article-chart-figure.center {
  max-width: 760px;
  margin: 28px auto;
}

.article-chart-figure.width-75 {
  width: 75%;
  margin: 28px auto;
}

.article-chart-figure.width-50 {
  width: 50%;
  margin: 28px auto;
}

.article-chart-figure.float-left {
  float: left;
  width: 48%;
  margin: 8px 24px 20px 0;
}

.article-chart-figure.float-right {
  float: right;
  width: 48%;
  margin: 8px 0 20px 24px;
}

/* 2-Column Side-by-Side Chart Comparison Grid */
.chart-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.chart-comparison-grid .article-chart-figure {
  margin: 0;
}

@media (max-width: 768px) {
  .chart-comparison-grid {
    grid-template-columns: 1fr;
  }
  .article-chart-figure.float-left,
  .article-chart-figure.float-right,
  .article-chart-figure.width-75,
  .article-chart-figure.width-50 {
    float: none;
    width: 100%;
    margin: 24px 0;
  }
}

/* Responsive Table in Article */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.article-table th {
  background: rgba(201, 149, 42, 0.12);
  color: var(--gold);
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.article-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.article-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Interactive Image Lightbox Modal */
.chart-lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(2, 6, 15, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  animation: modalFadeIn 0.2s ease-out;
}

.chart-lightbox-backdrop.active {
  display: flex !important;
}

.chart-lightbox-content {
  max-width: 95vw;
  max-height: 92vh;
  position: relative;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-lightbox-content img {
  max-width: 95vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 14px 60px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(201, 149, 42, 0.3);
}

.chart-lightbox-caption {
  margin-top: 14px;
  color: var(--gold);
  font-size: 0.96rem;
  font-weight: 600;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
}

.chart-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chart-lightbox-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}


