/* =========================================================
   Luminary Academy — Design System
   ========================================================= */

:root {
  --color-primary: #0E9F6E;
  --color-primary-dark: #0b8058;
  --color-secondary: #ffffff;
  --color-accent: #1E293B;
  --color-bg: #F8FAFC;
  --color-surface: #ffffff;
  --color-success: #10B981;
  --color-cta: #0F766E;
  --color-text: #1E293B;
  --color-text-muted: #55627a;
  --color-border: #e6ebf1;

  --grad-primary: linear-gradient(135deg, #0E9F6E 0%, #0F766E 100%);
  --grad-hero: radial-gradient(1200px 600px at 15% -10%, rgba(14,159,110,.18), transparent 60%),
               radial-gradient(1000px 600px at 100% 0%, rgba(15,118,110,.16), transparent 55%),
               linear-gradient(180deg, #F8FAFC 0%, #eef7f3 100%);

  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow-md: 0 8px 24px rgba(15,23,42,.10);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.14);
  --shadow-glow: 0 10px 30px rgba(14,159,110,.28);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-heading: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --nav-h: 78px;
  --ease: cubic-bezier(.22,1,.36,1);
}

:root[data-theme="dark"] {
  --color-bg: #0b1220;
  --color-surface: #101a2c;
  --color-text: #eef2f7;
  --color-text-muted: #a3aec2;
  --color-border: #22304a;
  --color-secondary: #101a2c;
  --grad-hero: radial-gradient(1200px 600px at 15% -10%, rgba(14,159,110,.22), transparent 60%),
               radial-gradient(1000px 600px at 100% 0%, rgba(15,118,110,.20), transparent 55%),
               linear-gradient(180deg, #0b1220 0%, #0d1a17 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s var(--ease), color .3s var(--ease);
}
h1,h2,h3,h4 { font-family: var(--font-heading); color: var(--color-text); line-height: 1.15; margin: 0; }
p { color: var(--color-text-muted); line-height: 1.7; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 10px 0 14px; }
.section-sub { font-size: 16.5px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-primary); font-weight: 700; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow svg { width: 14px; height: 14px; }
.text-gradient { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary); color: #fff;
  padding: 10px 16px; z-index: 9999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(14,159,110,.38); }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

.ripple { position: relative; }
.ripple .ripple-circle {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,.55);
  transform: scale(0); animation: ripple .6s var(--ease) forwards; pointer-events: none;
}
@keyframes ripple { to { transform: scale(3); opacity: 0; } }

.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); transition: all .25s var(--ease);
}
.icon-btn:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

.grid { display: grid; gap: 24px; }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 10000; background: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
#loader.hide { opacity: 0; visibility: hidden; }
.loader-mark { position: relative; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; }
.loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--color-border); border-top-color: var(--color-primary);
  animation: spin 1s linear infinite;
}
.loader-logo { font-family: var(--font-heading); font-weight: 800; color: var(--color-primary); font-size: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll progress / cursor ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-primary); z-index: 9998; transition: width .1s linear;
}
#cursor-glow {
  position: fixed; width: 380px; height: 380px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(14,159,110,.14), transparent 70%);
  transform: translate(-50%, -50%); z-index: 1; transition: opacity .3s;
  left: -400px; top: -400px;
}
@media (max-width: 900px), (hover: none) { #cursor-glow { display: none; } }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--nav-h); display: flex; align-items: center;
  background: color-mix(in srgb, var(--color-bg) 70%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .35s var(--ease), background .35s, border-color .35s, box-shadow .35s;
}
.navbar.scrolled { height: 64px; border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { color: var(--color-primary); }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 19px; color: var(--color-text); }
.brand-name span { color: var(--color-primary); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 14.5px; color: var(--color-text); position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--color-primary); transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
.nav-burger { display: none; }

@media (max-width: 960px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0; background: var(--color-bg);
    flex-direction: column; padding: 40px 30px; gap: 22px; font-size: 18px;
    transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-gradient { position: absolute; inset: 0; background: var(--grad-hero); }
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.particle {
  position: absolute; border-radius: 30%; background: var(--color-primary); opacity: .15;
  animation: float-particle linear infinite;
}
@keyframes float-particle {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-120vh) rotate(320deg); }
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 60px 24px 80px; }
.hero-title { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.02em; }
.hero-sub { margin-top: 20px; font-size: 18px; max-width: 520px; }
.hero-typing { margin-top: 18px; font-family: var(--font-heading); font-weight: 600; font-size: 20px; color: var(--color-text); }
.typing-word { color: var(--color-primary); border-right: 2px solid var(--color-primary); padding-right: 4px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; }
.hero-stars { color: var(--color-success); font-weight: 600; font-size: 14px; }
.hero-stars strong { color: var(--color-text); }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.hero-art { width: min(420px, 90%); filter: drop-shadow(var(--shadow-lg)); animation: bob 6s ease-in-out infinite; }
.hero-illustration { width: 100%; height: auto; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.floating-card {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--color-surface) 78%, transparent);
  backdrop-filter: blur(10px); border: 1px solid var(--color-border);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  box-shadow: var(--shadow-md); animation: float-card 5s ease-in-out infinite;
}
.floating-card svg { width: 16px; height: 16px; color: var(--color-primary); }
.fc-1 { top: 6%; left: -2%; animation-delay: 0s; }
.fc-2 { top: 18%; right: -6%; animation-delay: .6s; }
.fc-3 { bottom: 20%; left: -8%; animation-delay: 1.2s; }
.fc-4 { bottom: 4%; right: 0%; animation-delay: 1.8s; }
@keyframes float-card { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--color-text-muted); animation: bounce-cue 2s ease-in-out infinite;
}
@keyframes bounce-cue { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { margin-top: 40px; min-height: 320px; }
  .floating-card { font-size: 12px; padding: 8px 12px; }
}

/* ---------- Stats ---------- */
.stats { padding: 60px 0; background: var(--color-accent); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(26px, 3vw, 38px); color: #fff; }
.stat-label { color: #b7c2d6; font-size: 13.5px; font-weight: 500; }
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Why choose us ---------- */
.why-grid { grid-template-columns: repeat(4, 1fr); }
.feature-card { padding: 30px 24px; text-align: left; }
.feature-card svg { width: 30px; height: 30px; color: var(--color-primary); }
.feature-card h3 { margin: 16px 0 8px; font-size: 17px; }
.feature-card p { font-size: 14.5px; }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--color-primary); }
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Courses ---------- */
.courses-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--color-border);
  background: var(--color-surface); font-weight: 600; font-size: 13.5px; color: var(--color-text-muted);
  transition: all .25s var(--ease);
}
.tab:hover { color: var(--color-primary); border-color: var(--color-primary); }
.tab.active { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }

.courses-controls { display: flex; gap: 12px; align-items: center; }
.search-box {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--color-border);
  border-radius: 999px; padding: 9px 16px; background: var(--color-surface); min-width: 220px;
}
.search-box svg { width: 16px; height: 16px; color: var(--color-text-muted); }
.search-box input { border: none; outline: none; background: transparent; width: 100%; color: var(--color-text); font-size: 14px; }
#course-sort, #cf-course, #sch-qual, #sch-income {
  border: 1px solid var(--color-border); border-radius: 999px; padding: 10px 16px;
  background: var(--color-surface); color: var(--color-text); font-size: 13.5px; font-weight: 600;
}

.course-grid { grid-template-columns: repeat(3, 1fr); }
.course-card { overflow: hidden; display: flex; flex-direction: column; }
.course-thumb {
  height: 150px; background: var(--grad-primary); position: relative; display: flex; align-items: center; justify-content: center;
}
.course-thumb svg { width: 44px; height: 44px; color: #fff; opacity: .9; }
.course-level {
  position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.92); color: var(--color-accent);
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.course-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-body h3 { font-size: 17.5px; }
.course-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--color-text-muted); font-weight: 500; }
.course-meta span { display: inline-flex; align-items: center; gap: 4px; }
.course-meta svg { width: 13px; height: 13px; }
.course-rating { color: #f59e0b; font-weight: 700; font-size: 13px; }
.course-rating span { color: var(--color-text-muted); font-weight: 500; }
.course-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.course-price { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--color-text); }
.course-price small { font-weight: 500; font-size: 12px; color: var(--color-text-muted); }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--color-primary); }
.no-results { text-align: center; color: var(--color-text-muted); padding: 40px; grid-column: 1/-1; }

@media (max-width: 960px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .course-grid { grid-template-columns: 1fr; } .courses-toolbar { flex-direction: column; align-items: stretch; } }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 26px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-border) 0 8px, transparent 8px 14px);
}
.timeline-step { text-align: center; position: relative; }
.tl-num {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--grad-primary); color: #fff; font-weight: 800; font-family: var(--font-heading);
  box-shadow: var(--shadow-glow); position: relative; z-index: 1;
}
.tl-num svg { width: 22px; height: 22px; }
.timeline-step h3 { font-size: 15.5px; margin-bottom: 4px; }
.timeline-step p { font-size: 13px; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .timeline::before { display: none; }
}
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr 1fr; } }

/* ---------- Mentors ---------- */
.mentor-grid { grid-template-columns: repeat(4, 1fr); }
.mentor-card { padding: 26px; text-align: center; position: relative; }
.mentor-avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-heading);
  font-weight: 700; font-size: 26px; box-shadow: var(--shadow-glow);
}
.mentor-card h3 { font-size: 16.5px; margin-bottom: 2px; }
.mentor-role { color: var(--color-primary); font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.mentor-meta { font-size: 12.5px; color: var(--color-text-muted); }
.mentor-links { display: flex; justify-content: center; gap: 8px; margin-top: 14px; opacity: 0; transform: translateY(8px); transition: all .3s var(--ease); }
.mentor-card:hover .mentor-links { opacity: 1; transform: translateY(0); }
.mentor-links a {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--color-bg); border: 1px solid var(--color-border);
}
.mentor-links svg { width: 14px; height: 14px; }
.mentor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
@media (max-width: 960px) { .mentor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mentor-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.google-rating { margin-top: 8px; color: #f59e0b; font-weight: 700; }
.google-rating strong { color: var(--color-text); }
.testimonial-slider { position: relative; max-width: 760px; margin: 0 auto; }
.testimonial-track { display: flex; transition: transform .5s var(--ease); }
.testimonial-slide { min-width: 100%; padding: 8px; }
.testimonial-card { padding: 36px; text-align: center; }
.t-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-family: var(--font-heading);
}
.testimonial-card .stars { color: #f59e0b; margin-bottom: 10px; }
.testimonial-card p.quote { font-size: 16.5px; color: var(--color-text); font-style: italic; }
.testimonial-card h4 { margin-top: 16px; font-size: 15px; }
.testimonial-card span { font-size: 12.5px; color: var(--color-text-muted); }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-surface); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.slider-btn.prev { left: -10px; } .slider-btn.next { right: -10px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.slider-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); border: none; padding: 0; }
.slider-dots button.active { background: var(--color-primary); width: 22px; border-radius: 4px; }

/* ---------- Marquee / Partners ---------- */
.marquee { overflow: hidden; position: relative; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee-scroll 30s linear infinite; }
.marquee-track span { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--color-text-muted); white-space: nowrap; opacity: .7; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Internships ---------- */
.internship-grid { grid-template-columns: repeat(3, 1fr); }
.intern-card { padding: 28px; }
.intern-card svg { width: 28px; height: 28px; color: var(--color-primary); }
.intern-card h3 { margin: 14px 0 6px; font-size: 16.5px; }
.intern-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .internship-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .internship-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.masonry { columns: 4 220px; column-gap: 16px; }
.masonry-item {
  break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
  position: relative; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease);
}
.masonry-item:hover { transform: scale(1.02); }
.masonry-item .ph {
  width: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
  font-family: var(--font-heading); font-size: 13px; text-align: center; padding: 20px 10px;
}
@media (max-width: 640px) { .masonry { columns: 2 160px; } }

/* ---------- Batches ---------- */
.batch-list { display: flex; flex-direction: column; gap: 16px; }
.batch-card {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr auto; align-items: center; gap: 16px;
  padding: 20px 24px; border-radius: var(--radius-md);
}
.batch-card h3 { font-size: 16px; }
.batch-card .b-label { display: block; font-size: 11px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.batch-card .b-val { font-weight: 600; font-size: 14px; }
.batch-countdown { font-variant-numeric: tabular-nums; color: var(--color-primary); font-weight: 700; }
.seats-low { color: #ef4444; }
@media (max-width: 900px) { .batch-card { grid-template-columns: 1fr 1fr; } }

/* ---------- Pricing ---------- */
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 44px; font-weight: 600; font-size: 14px; }
.pricing-toggle em { color: var(--color-primary); font-style: normal; font-size: 12px; }
.switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider-toggle { position: absolute; inset: 0; background: var(--color-border); border-radius: 999px; transition: .3s; cursor: pointer; }
.slider-toggle::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .3s; }
.switch input:checked + .slider-toggle { background: var(--color-primary); }
.switch input:checked + .slider-toggle::before { transform: translateX(22px); }

.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
.price-card { padding: 34px 28px; position: relative; }
.price-card.featured { border-color: var(--color-primary); box-shadow: var(--shadow-glow); transform: scale(1.04); }
.price-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-primary); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 5px 16px; border-radius: 999px;
}
.price-card h3 { font-size: 19px; }
.price { margin: 14px 0 22px; font-family: var(--font-heading); font-weight: 800; font-size: 32px; color: var(--color-text); }
.price small { font-size: 13px; font-weight: 500; color: var(--color-text-muted); }
.hidden { display: none !important; }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.price-features li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--color-text); }
.price-features svg { width: 16px; height: 16px; color: var(--color-success); flex-shrink: 0; }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } .price-card.featured { transform: none; } }

/* ---------- Scholarship ---------- */
.scholarship-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.scholarship-form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; max-width: 420px; }
.scholarship-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--color-text); }
.scholarship-form select, .scholarship-form input {
  border: 1px solid var(--color-border); border-radius: 10px; padding: 11px 14px; background: var(--color-surface); color: var(--color-text);
}
.scholarship-result { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.sch-ring { position: relative; width: 160px; height: 160px; }
.sch-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--color-border); stroke-width: 10; }
.ring-fg { fill: none; stroke: url(#none); stroke: var(--color-primary); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1s var(--ease); }
.sch-ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; font-family: var(--font-heading); color: var(--color-primary); }
@media (max-width: 900px) { .scholarship-inner { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 760px; }
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: none; padding: 20px 4px; font-size: 15.5px; font-weight: 600; color: var(--color-text); text-align: left;
}
.accordion-trigger svg { width: 18px; height: 18px; color: var(--color-primary); transition: transform .3s var(--ease); flex-shrink: 0; }
.accordion-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.accordion-panel p { padding: 0 4px 20px; font-size: 14.5px; }

/* ---------- Blog ---------- */
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.blog-card { overflow: hidden; }
.blog-thumb { height: 140px; background: var(--grad-primary); opacity: .85; }
.blog-body { padding: 20px; }
.blog-cat { color: var(--color-primary); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.blog-body h3 { font-size: 16px; margin: 8px 0; }
.blog-body p { font-size: 13.5px; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; }
.contact-form { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--color-text); }
.field input, .field select, .field textarea {
  border: 1px solid var(--color-border); border-radius: 10px; padding: 12px 14px; background: var(--color-surface); color: var(--color-text); font-size: 14.5px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.error-msg { display: none; color: #ef4444; font-size: 12px; }
.field.invalid input, .field.invalid select { border-color: #ef4444; }
.field.invalid .error-msg { display: block; }
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.map-embed { border-radius: var(--radius-md); overflow: hidden; height: 220px; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.contact-cards { display: flex; flex-direction: column; gap: 10px; }
.contact-mini {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 12px;
  background: var(--color-surface); border: 1px solid var(--color-border); font-weight: 600; font-size: 14px;
  transition: all .25s var(--ease);
}
.contact-mini:hover { border-color: var(--color-primary); color: var(--color-primary); }
.contact-mini svg { width: 17px; height: 17px; color: var(--color-primary); }
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--color-accent); color: #cbd5e1; padding: 70px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer p { color: #93a2ba; font-size: 13.5px; margin: 12px 0 16px; }
.footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 18px; }
.footer a { display: block; color: #a8b4c8; font-size: 13.5px; margin-bottom: 12px; transition: color .2s; }
.footer a:hover { color: var(--color-primary); }
.footer-brand .brand-name { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; margin: 0; }
.footer-social svg { width: 15px; height: 15px; }
.newsletter-form { display: flex; gap: 8px; margin-bottom: 18px; }
.newsletter-form input { flex: 1; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); padding: 10px 14px; color: #fff; font-size: 13px; }
.footer-contact p { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.footer-contact svg { width: 14px; height: 14px; color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 24px; display: flex; align-items: center;
  justify-content: space-between; max-width: 1240px; margin: 0 auto; font-size: 13px; color: #93a2ba; flex-wrap: wrap; gap: 10px;
}
.footer-auth { display: flex; gap: 18px; }
.link-btn { background: none; border: none; color: #a8b4c8; font-size: 13px; }
.link-btn:hover { color: var(--color-primary); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating widgets ---------- */
.fab {
  position: fixed; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); z-index: 900; border: none; transition: transform .25s var(--ease), opacity .25s;
}
.fab svg { width: 24px; height: 24px; }
.fab-whatsapp { background: #25D366; color: #fff; right: 26px; bottom: 26px; }
.fab-top { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); right: 26px; bottom: 92px; opacity: 0; pointer-events: none; }
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab-chat { background: var(--grad-primary); color: #fff; left: 26px; bottom: 26px; }
.fab:hover { transform: translateY(-4px) scale(1.05); }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 890; background: var(--color-accent); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 20px; padding: 12px 20px;
  transform: translateY(100%); transition: transform .4s var(--ease);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta p { color: #cbd5e1; font-size: 13.5px; }
.sticky-cta .icon-btn { background: transparent; border-color: rgba(255,255,255,.2); color: #fff; width: 32px; height: 32px; }
@media (max-width: 640px) { .sticky-cta { flex-wrap: wrap; text-align: center; } }

/* ---------- Chat window ---------- */
.chat-window {
  position: fixed; left: 26px; bottom: 96px; width: 320px; max-width: calc(100vw - 40px); height: 420px; z-index: 920;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none; transition: all .3s var(--ease);
}
.chat-window.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-header { background: var(--grad-primary); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; }
.chat-header span { display: flex; align-items: center; gap: 8px; }
.chat-header .icon-btn { background: rgba(255,255,255,.15); border: none; color: #fff; width: 28px; height: 28px; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.chat-msg.bot { background: var(--color-bg); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--grad-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input { display: flex; border-top: 1px solid var(--color-border); }
.chat-input input { flex: 1; border: none; padding: 12px 14px; background: transparent; color: var(--color-text); outline: none; }
.chat-input button { background: none; border: none; color: var(--color-primary); padding: 0 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); background: var(--color-accent); color: #fff;
  padding: 13px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg);
  z-index: 950; opacity: 0; pointer-events: none; transition: all .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Exit modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(4px); z-index: 970;
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--color-surface); border-radius: var(--radius-lg); padding: 40px; max-width: 400px; width: 90%; text-align: center;
  position: relative; transform: scale(.92); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg);
}
.modal-overlay.show .modal { transform: scale(1); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; }
.modal-icon { width: 40px; height: 40px; color: var(--color-primary); margin: 0 auto 12px; }
.modal h3 { font-size: 21px; margin-bottom: 8px; }
.exit-form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.exit-form input { border: 1px solid var(--color-border); border-radius: 10px; padding: 12px 14px; background: var(--color-bg); color: var(--color-text); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 980; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox-content { max-width: 80vw; max-height: 80vh; border-radius: 12px; overflow: hidden; }
.lightbox-close { position: fixed; top: 24px; right: 24px; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }

/* ---------- Reveal animations ---------- */
.reveal-up, .reveal-pop {
  opacity: 0; transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal-up { transform: translateY(28px); }
.reveal-pop { transform: scale(.9); }
.reveal-up.in-view, .reveal-pop.in-view { opacity: 1; transform: none; }

@media (max-width: 700px) {
  .section { padding: 70px 0; }
  .stats-grid { gap: 28px 16px; }
}
