/* ==========================================================================
   DesammyFx Academy - Modern Institutional Forex Theme
   Primary Brand: Emerald Green (#10b981 / #059669)
   Full Light Mode & Dark Mode Support with CSS Variables
   ========================================================================== */

/* Default Dark Theme Variables */
:root, [data-theme="dark"] {
  --bg-primary: #071018;
  --bg-secondary: #0b1924;
  --bg-tertiary: #132433;
  --bg-card: rgba(11, 25, 36, 0.88);
  --bg-card-hover: rgba(19, 36, 51, 0.95);
  --bg-glass: rgba(7, 16, 24, 0.75);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --heading-color: #ffffff;
  
  /* Primary Green Brand */
  --brand-green: #10b981;
  --brand-green-light: #34d399;
  --brand-green-dark: #059669;
  --brand-green-darker: #047857;
  --brand-green-glow: rgba(16, 185, 129, 0.25);
  --brand-green-subtle: rgba(16, 185, 129, 0.12);
  
  /* Accents */
  --accent-gold: #f59e0b;
  --bear-red: #ef4444;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-brand: rgba(16, 185, 129, 0.35);
  --border-active: rgba(16, 185, 129, 0.7);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.65);
  --shadow-brand: 0 0 25px rgba(16, 185, 129, 0.25);
  
  --ticker-bg: #04090f;
  --header-bg: rgba(7, 16, 24, 0.92);
  --header-scrolled-bg: rgba(7, 16, 24, 0.98);
  --input-bg: rgba(7, 16, 24, 0.85);
  --input-text: #ffffff;
  --theme-toggle-bg: rgba(255, 255, 255, 0.08);
  --theme-toggle-border: rgba(255, 255, 255, 0.15);
  --theme-toggle-icon: #facc15;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --heading-color: #0f172a;
  
  /* Primary Green Brand */
  --brand-green: #059669;
  --brand-green-light: #10b981;
  --brand-green-dark: #047857;
  --brand-green-darker: #064e3b;
  --brand-green-glow: rgba(5, 150, 105, 0.2);
  --brand-green-subtle: rgba(16, 185, 129, 0.1);
  
  /* Accents */
  --accent-gold: #d97706;
  --bear-red: #dc2626;
  
  --border-color: rgba(15, 23, 42, 0.1);
  --border-brand: rgba(5, 150, 105, 0.35);
  --border-active: rgba(5, 150, 105, 0.7);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
  --shadow-brand: 0 0 20px rgba(5, 150, 105, 0.2);
  
  --ticker-bg: #e2e8f0;
  --header-bg: rgba(248, 250, 252, 0.92);
  --header-scrolled-bg: rgba(248, 250, 252, 0.98);
  --input-bg: #ffffff;
  --input-text: #0f172a;
  --theme-toggle-bg: #e2e8f0;
  --theme-toggle-border: #cbd5e1;
  --theme-toggle-icon: #0f172a;
}

/* Constants */
:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1240px;
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Atmospheric Glow Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--brand-green-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Color Utilities */
.text-green { color: var(--brand-green) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-red { color: var(--bear-red) !important; }
.text-center { text-align: center; }
.bg-secondary { background-color: var(--bg-secondary); }

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--theme-toggle-bg);
  border: 1px solid var(--theme-toggle-border);
  color: var(--theme-toggle-icon);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  transform: rotate(20deg) scale(1.08);
  border-color: var(--brand-green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
}

/* Green Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--brand-green-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-green-light), var(--brand-green));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--brand-green-subtle);
  border-color: var(--brand-green);
  color: var(--brand-green);
  transform: translateY(-2px);
}

.btn-outline-green {
  border: 1.5px solid var(--brand-green);
  color: var(--brand-green);
  background: transparent;
}

.btn-outline-green:hover {
  background: var(--brand-green);
  color: #ffffff;
  transform: translateY(-2px);
}

/* For backwards compatibility with existing outline gold */
.btn-outline-gold {
  border: 1.5px solid var(--brand-green);
  color: var(--brand-green);
  background: transparent;
}

.btn-outline-gold:hover {
  background: var(--brand-green);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-green {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--brand-green-glow);
}

.btn-green:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.08rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-green {
  background: var(--brand-green-subtle);
  color: var(--brand-green);
  border: 1px solid var(--border-brand);
}

.badge-gold {
  background: var(--brand-green-subtle);
  color: var(--brand-green);
  border: 1px solid var(--border-brand);
}

/* Top Announcement Bar */
.top-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.45rem 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar a:hover {
  color: var(--brand-green);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-scrolled {
  box-shadow: var(--shadow-md);
  background: var(--header-scrolled-bg);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--heading-color);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: 42px;
  width: auto;
  max-width: 190px;
  display: block;
  transition: var(--transition);
}

.brand-logo:hover img {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-green);
}

.nav-link.active::after, .nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-green);
  border-radius: 2px;
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  list-style: none;
  z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.dropdown-link:hover {
  background: var(--brand-green-subtle);
  color: var(--brand-green);
  padding-left: 1.5rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Ticker */
.ticker-wrap {
  background: var(--ticker-bg);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.ticker-content {
  display: inline-flex;
  gap: 2.5rem;
  animation: tickerSlide 40s linear infinite;
}

.ticker-wrap:hover .ticker-content {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.ticker-pair {
  font-weight: 700;
  color: var(--heading-color);
}

.ticker-val {
  color: var(--text-secondary);
}

.ticker-change.up {
  color: var(--brand-green);
  font-weight: 600;
}

.ticker-change.down {
  color: var(--bear-red);
  font-weight: 600;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Section */
.hero {
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content .badge {
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.trust-item svg {
  color: var(--brand-green);
  flex-shrink: 0;
}

/* Hero Visual & Trading Card */
.hero-visual {
  position: relative;
}

.trading-card-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  backdrop-filter: blur(16px);
}

.trading-card-preview::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-green), transparent);
}

.trade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.trade-pair {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--heading-color);
}

.trade-signal-badge {
  background: var(--brand-green-subtle);
  color: var(--brand-green);
  border: 1px solid var(--border-brand);
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
}

.chart-mockup {
  height: 180px;
  background: linear-gradient(180deg, var(--brand-green-subtle) 0%, transparent 100%);
  border: 1px dashed var(--border-brand);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.chart-svg {
  width: 100%;
  height: 100px;
}

.trade-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}

.trade-stat {
  background: var(--bg-tertiary);
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.trade-stat .label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.trade-stat .val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--heading-color);
}

.floating-stat-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-md);
}

.floating-stat-badge .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-green-subtle);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.floating-stat-badge .meta h5 {
  font-size: 1.15rem;
  margin-bottom: 0.1rem;
}

.floating-stat-badge .meta span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-header .badge {
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* Stats Bar */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-box h3 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--brand-green);
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
}

.stat-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Course Cards */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.course-card:hover {
  border-color: var(--brand-green);
  transform: translateY(-6px);
  box-shadow: var(--shadow-brand);
}

.course-card.featured {
  border-color: var(--brand-green);
  box-shadow: var(--shadow-brand);
}

.course-card.featured::before {
  content: "FLAGSHIP MASTERCLASS";
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--brand-green);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  z-index: 10;
}

.course-card-body {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-category {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.course-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
}

.course-card-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.course-features {
  list-style: none;
  margin-bottom: 1.8rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.course-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.course-features li svg {
  color: var(--brand-green);
  flex-shrink: 0;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.course-price {
  display: flex;
  flex-direction: column;
}

.price-currency {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-amount {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand-green);
  font-family: var(--font-mono);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.feature-box:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-brand);
  transform: translateY(-4px);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--brand-green-subtle);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--border-brand);
}

.feature-box h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.feature-box p {
  font-size: 0.95rem;
}

/* Steps Timeline */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.step-card:hover {
  border-color: var(--brand-green);
  transform: translateY(-4px);
}

.step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-green);
  font-family: var(--font-mono);
  margin-bottom: 0.8rem;
  opacity: 0.6;
}

.step-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.88rem;
}

/* Curriculum Accordion */
.curriculum-list {
  max-width: 900px;
  margin: 0 auto;
}

.curriculum-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.curriculum-header {
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.curriculum-header:hover {
  background: var(--brand-green-subtle);
}

.module-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.module-tag {
  background: var(--brand-green-subtle);
  color: var(--brand-green);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.module-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading-color);
}

.curriculum-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.curriculum-toggle-icon {
  transition: var(--transition);
  font-size: 1.2rem;
  color: var(--brand-green);
}

.curriculum-body {
  display: none;
  padding: 0 1.8rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.curriculum-item.active .curriculum-body {
  display: block;
}

.curriculum-item.active .curriculum-toggle-icon {
  transform: rotate(180deg);
}

.lessons-list {
  list-style: none;
  padding-top: 1rem;
}

.lesson-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.lesson-entry:last-child {
  border-bottom: none;
}

.lesson-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lesson-left svg {
  color: var(--brand-green);
}

.lesson-duration {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.rating-stars {
  color: var(--brand-green);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-darker));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.1rem;
}

.author-info h5 {
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.author-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Forms & Registration */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.input-control, select.input-control, textarea.input-control {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--input-text);
  transition: var(--transition);
}

.input-control:focus, select.input-control:focus, textarea.input-control:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-glow);
}

select.input-control option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.form-help {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Admission Request / Workflow Explainer Box */
.approval-workflow-box {
  background: var(--brand-green-subtle);
  border: 1px dashed var(--border-brand);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
}

.workflow-step-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
}

.workflow-step-row:last-child {
  margin-bottom: 0;
}

.workflow-badge {
  background: var(--brand-green);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary)), radial-gradient(circle at top right, var(--brand-green-glow), transparent);
  border: 1.5px solid var(--border-brand);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.cta-banner p {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  font-size: 1.15rem;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin: 1.2rem 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-links-title {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--heading-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--brand-green);
  padding-left: 0.3rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-contact-item svg {
  color: var(--brand-green);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.risk-disclaimer {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-card);
  border: 1.5px solid var(--brand-green);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalScale 0.3s ease-out;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-icon {
  width: 70px;
  height: 70px;
  background: var(--brand-green-subtle);
  color: var(--brand-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.2rem;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive Breakpoints */
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  .nav-container {
    height: 72px;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--border-brand);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.75rem 2.5rem;
    gap: 0.35rem;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
    animation: navSlideDown 0.25s ease-out forwards;
  }

  .nav-link {
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
  }

  .nav-link:hover, .nav-link.active {
    background: var(--brand-green-subtle);
    border-color: var(--border-brand);
    color: var(--brand-green);
  }

  .nav-link.active::after, .nav-link:hover::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border-brand);
    margin: 0.25rem 0 0.5rem 1rem;
    padding: 0.2rem 0;
    background: transparent;
    display: block;
  }

  .dropdown-link {
    padding: 0.55rem 1rem;
    font-size: 0.94rem;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--theme-toggle-bg);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.3rem;
    transition: var(--transition);
  }

  .mobile-toggle:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-container {
    height: 66px;
  }

  .brand-logo img {
    max-width: 150px;
    height: 35px;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-menu {
    top: 66px;
    max-height: calc(100vh - 66px);
    padding: 1.25rem 1.25rem 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .steps-timeline {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .top-bar {
    display: none;
  }
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 195px;
  display: block;
  object-fit: contain;
  transition: var(--transition);
}

[data-theme="light"] .brand-logo-img {
  content: url("../assets/images/logo-dark-text.png");
}

@media (max-width: 640px) {
  .brand-logo-img {
    height: 36px;
    max-width: 155px;
  }
}
