/* ===== Amit's Academy — Premium UI + Side Drawer ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #0f172a;
  --primary-deep: #020617;
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.4);
  --success: #10b981;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --nav-bg: rgba(255, 255, 255, 0.88);
  --drawer-bg: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-full: 9999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.35s var(--ease);
  --container: 1140px;
  --drawer-width: min(300px, 82vw);
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-dark: #f1f5f9;
  --primary-deep: #020617;
  --accent: #fbbf24;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --bg: #0b1120;
  --bg-soft: #111827;
  --bg-card: #1e293b;
  --border: #1e293b;
  --nav-bg: rgba(11, 17, 32, 0.92);
  --drawer-bg: #111827;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
body.drawer-open { overflow: hidden; }

img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.visible .stagger-children > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal.visible .stagger-children > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: none; }
.reveal.visible .stagger-children > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: none; }
.reveal.visible .stagger-children > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: none; }
.reveal.visible .stagger-children > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: none; }
.reveal.visible .stagger-children > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: none; }

/* ===== Logo Ring ===== */
.logo-ring {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), #6366f1, var(--accent), var(--primary));
  animation: logoSpin 4s linear infinite;
  z-index: 0;
}
.logo-ring::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--bg);
  z-index: 1;
  transition: background 0.4s;
}
.logo-img, .footer-logo {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  background: #0f2a4a;
}
.logo-ring-sm { width: 42px; height: 42px; }
.logo-ring-sm .logo-img,
.logo-ring-sm .footer-logo {
  width: 32px;
  height: 32px;
}
@keyframes logoSpin { to { transform: rotate(360deg); } }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.4s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  z-index: 1002;
}
.logo strong { color: var(--primary); }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.nav-links .drawer-header { display: none; }
.nav-links a {
  padding: 8px 13px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 10px;
  white-space: nowrap;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 13px; right: 13px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--primary); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  margin-left: 6px;
  border-radius: 10px !important;
}
.nav-cta:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 1002;
}

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.theme-toggle:hover { border-color: var(--primary); transform: scale(1.08); }
.theme-icon {
  position: absolute;
  font-size: 1.05rem;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.theme-icon.sun { opacity: 1; transform: rotate(0) scale(1); }
.theme-icon.moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
[data-theme="dark"] .theme-icon.sun { opacity: 0; transform: rotate(90deg) scale(0.4); }
[data-theme="dark"] .theme-icon.moon { opacity: 1; transform: rotate(0) scale(1); }

.lang-switcher {
  display: flex;
  background: var(--bg-soft);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid var(--border);
}
.lang-btn {
  background: transparent;
  border: none;
  padding: 6px 11px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.lang-btn:hover { color: var(--primary); }
.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  position: relative;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.nav-toggle:hover { border-color: var(--primary); }
.nav-toggle .bar {
  display: block;
  width: 18px; height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.35s var(--ease);
}
.nav-toggle .bar:nth-child(1) { top: 14px; }
.nav-toggle .bar:nth-child(2) { top: 20px; }
.nav-toggle .bar:nth-child(3) { top: 26px; }
.nav-toggle.open .bar:nth-child(1) { top: 20px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; transform: translateX(-50%) scaleX(0); }
.nav-toggle.open .bar:nth-child(3) { top: 20px; transform: translateX(-50%) rotate(-45deg); }

/* Drawer overlay — below navbar so drawer links stay clickable */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  pointer-events: none;
}
.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===== Hero ===== */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 5% 15%, rgba(37, 99, 235, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 85%, rgba(245, 158, 11, 0.07) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 90% 70% at 5% 15%, rgba(59, 130, 246, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 85%, rgba(251, 191, 36, 0.07) 0%, transparent 50%),
    linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
}
.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  animation: fadeSlideDown 0.7s var(--ease-out) both;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--primary-dark);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  animation: fadeSlideUp 0.75s 0.08s var(--ease-out) both;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 30px;
  line-height: 1.7;
  animation: fadeSlideUp 0.75s 0.16s var(--ease-out) both;
}
.hero-desc strong { color: var(--text); }
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeSlideUp 0.75s 0.24s var(--ease-out) both;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}
.btn-primary:hover {
  background: #1ebe57;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(37, 99, 235, 0.28);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.btn-large { padding: 15px 30px; font-size: 1.02rem; }

.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
  animation: fadeSlideUp 0.9s 0.2s var(--ease-out) both;
}
.image-wrapper {
  position: relative;
  width: 290px;
  height: 360px;
}
.image-wrapper::before {
  content: '';
  position: absolute;
  inset: -14px;
  background: linear-gradient(135deg, var(--primary), #6366f1, var(--accent));
  border-radius: 28px;
  opacity: 0.18;
  z-index: 0;
  filter: blur(22px);
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.14; transform: scale(1); }
  50% { opacity: 0.26; transform: scale(1.04); }
}
.teacher-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
  position: relative;
  z-index: 1;
}
.image-badge {
  position: absolute;
  bottom: -12px; right: -12px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  z-index: 2;
  border: 3px solid var(--bg-card);
}
.image-badge span { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1; }
.image-badge small { font-size: 0.7rem; opacity: 0.9; font-weight: 500; }

/* Stats */
.stats {
  padding: 32px 0;
  background: var(--primary-deep);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  top: -50%; left: -15%;
  width: 55%; height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
  position: relative;
}
.stat-item { transition: transform 0.4s var(--ease); padding: 8px; }
.stat-item:hover { transform: scale(1.07); }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2px;
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.78); font-weight: 500; }

/* Sections */
.section-header { text-align: center; margin-bottom: 44px; }
.section-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  border: 1px solid rgba(37, 99, 235, 0.12);
}
.section-header h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.about { padding: 90px 0; background: var(--bg); }
.about-text p {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.75;
}
.about-text strong { color: var(--text); }
.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-soft);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.highlight:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.highlight-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.highlight strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.highlight small { color: var(--text-muted); font-size: 0.8rem; }

.courses { padding: 90px 0; background: var(--bg-soft); }
.monthly-highlight {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #6ee7b7;
  border-radius: var(--radius);
  padding: 20px 26px;
  margin-bottom: 36px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
  transition: transform 0.4s var(--ease);
}
.monthly-highlight:hover { transform: scale(1.015); }
[data-theme="dark"] .monthly-highlight {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border-color: #059669;
}
[data-theme="dark"] .monthly-text h3 { color: #a7f3d0; }
[data-theme="dark"] .monthly-text p { color: #6ee7b7; }
.monthly-icon { font-size: 2.1rem; flex-shrink: 0; }
.monthly-text h3 { font-size: 1.1rem; font-weight: 700; color: #065f46; margin-bottom: 4px; }
.monthly-text p { color: #047857; font-size: 0.92rem; margin: 0; line-height: 1.55; }

.course-fee {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
[data-theme="dark"] .course-fee { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.course-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.25);
}
.course-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, var(--bg-card) 40%);
}
.course-badge {
  position: absolute;
  top: -11px; right: 16px;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px var(--accent-glow);
}
.course-icon { font-size: 2rem; margin-bottom: 12px; }
.course-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 3px; }
.course-class { color: var(--primary); font-weight: 600; font-size: 0.88rem; margin-bottom: 14px; }
.course-card ul { margin-bottom: 18px; flex-grow: 1; }
.course-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.course-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
}
.course-btn {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 11px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.course-btn:hover { filter: brightness(1.1); transform: scale(1.02); }
.courses-note { text-align: center; margin-top: 26px; color: var(--text-muted); font-size: 0.85rem; }

.why { padding: 90px 0; background: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card {
  background: var(--bg-soft);
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transition: height 0.4s var(--ease);
  border-radius: 0 2px 2px 0;
}
.why-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
  background: var(--bg-card);
}
.why-card:hover::before { height: 100%; }
.why-icon { font-size: 1.7rem; margin-bottom: 12px; }
.why-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--primary-dark); }
.why-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.materials { padding: 90px 0; background: var(--bg-soft); }
.materials-placeholder {
  text-align: center;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 52px 28px;
  max-width: 540px;
  margin: 0 auto;
  transition: var(--transition);
}
.materials-placeholder:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.placeholder-icon { font-size: 2.6rem; margin-bottom: 12px; }
.materials-placeholder h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--primary-dark); font-weight: 700; }
.materials-placeholder p { color: var(--text-muted); margin-bottom: 10px; }
.placeholder-note { font-size: 0.85rem !important; margin-bottom: 20px !important; }

.contact { padding: 90px 0; background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  transition: transform 0.3s var(--ease);
}
.contact-item:hover { transform: translateX(4px); }
.contact-icon {
  font-size: 1.3rem;
  width: 46px; height: 46px;
  background: var(--bg-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.contact-item:hover .contact-icon {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}
.contact-item strong { display: block; margin-bottom: 2px; font-size: 0.92rem; }
.contact-item p { color: var(--text-muted); font-size: 0.92rem; }
.contact-item a { color: var(--primary); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }

.contact-cta {
  background: linear-gradient(145deg, var(--primary-deep) 0%, #0f172a 50%, #1e3a5f 100%);
  color: #fff;
  padding: 36px 32px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.contact-cta:hover { transform: scale(1.02); }
.contact-cta::before {
  content: '';
  position: absolute;
  top: -40%; right: -30%;
  width: 70%; height: 140%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, transparent 70%);
  pointer-events: none;
}
.contact-cta h3 { font-size: 1.4rem; margin-bottom: 10px; font-weight: 700; position: relative; }
.contact-cta p { opacity: 0.88; margin-bottom: 22px; position: relative; font-size: 0.95rem; }
.contact-cta .btn-primary { position: relative; }
.response-note { margin-top: 14px !important; font-size: 0.8rem !important; opacity: 0.7 !important; }

/* Footer */
.footer {
  background: var(--primary-deep);
  color: #fff;
  padding: 44px 0 26px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer .logo-ring::after { background: var(--primary-deep); }
.footer-content p { opacity: 0.75; margin-bottom: 5px; font-size: 0.92rem; }
.footer-location { margin-top: 10px !important; font-size: 0.85rem !important; }
.footer-bottom {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  opacity: 0.55;
}
.footer-note { margin-top: 5px; font-size: 0.78rem; }
.footer-credit {
  margin-top: 12px;
  font-size: 0.85rem;
  opacity: 0.85;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.floating-wa {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: var(--transition);
  animation: waPulse 2.5s ease-in-out infinite;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 6px 32px rgba(37, 211, 102, 0.7); }
}
.floating-wa:hover {
  transform: scale(1.12);
  animation: none;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
}

/* ===== Responsive + Side Drawer ===== */
@media (max-width: 1024px) {
  .nav-links a { padding: 8px 9px; font-size: 0.8rem; }
  .container { padding: 0 20px; }
}

@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .image-wrapper { width: 250px; height: 320px; }
  .courses-grid, .why-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .about-highlights { grid-template-columns: 1fr; max-width: 400px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .logo-text { display: none; }

  /* Keep top bar clean — theme + lang stay, menu slides from side */
  .nav-right {
    gap: 8px;
  }

  /* SIDE DRAWER — fully isolated from navbar flex */
  .nav-links {
    position: fixed !important;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: var(--drawer-width);
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0 0 24px;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--drawer-bg);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
    transform: translateX(110%);
    transition: transform 0.38s var(--ease);
    z-index: 1003;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0;
    border: none;
    border-left: 1px solid var(--border);
    pointer-events: none;
    visibility: hidden;
  }

  .nav-links.active {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
  }

  .nav-links .drawer-header {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 18px 20px;
    margin: 0;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    background: var(--drawer-bg);
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .nav-links .drawer-header .logo-ring-sm::after {
    background: var(--drawer-bg);
  }

  .nav-links > li {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-shrink: 0;
  }

  .nav-links > li:not(.drawer-header) {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: flex !important;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 16px 22px !important;
    margin: 0 !important;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--text) !important;
    white-space: normal;
    line-height: 1.4;
  }

  .nav-links a:not(.nav-cta)::after {
    display: none !important;
  }

  .nav-links a:hover,
  .nav-links a:active {
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--primary) !important;
  }

  /* CTA as full-width button at bottom of list */
  .nav-links li:has(.nav-cta),
  .nav-links a.nav-cta {
    border-bottom: none !important;
  }

  .nav-links a.nav-cta {
    display: flex !important;
    justify-content: center;
    margin: 20px 16px 8px !important;
    padding: 14px 20px !important;
    width: calc(100% - 32px) !important;
    border-radius: 12px !important;
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
  }

  .nav-links a.nav-cta:hover {
    background: var(--primary-hover) !important;
    color: #fff !important;
  }

  /* Overlay stays below navbar (998) so links inside drawer work */
  .drawer-overlay {
    z-index: 998;
  }

  /* Navbar + drawer above overlay */
  .navbar {
    z-index: 1000;
  }

  .nav-links {
    z-index: 1001;
  }

  .nav-toggle {
    z-index: 1002;
    position: relative;
  }

  .monthly-highlight {
    flex-direction: column;
    text-align: center;
    padding: 18px;
  }
  .hero { padding: 100px 0 56px; }
  .hero h1 { font-size: 1.8rem; }
  .stats { padding: 26px 0; }
  .stat-number { font-size: 1.65rem; }
  .about, .courses, .why, .materials, .contact { padding: 64px 0; }
  .section-header { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .image-wrapper { width: 220px; height: 280px; }
  .image-badge { right: -6px; bottom: -8px; padding: 9px 12px; }
  .btn { padding: 12px 18px; font-size: 0.9rem; }
  .floating-wa { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .theme-toggle { width: 36px; height: 36px; }
  .lang-btn { padding: 5px 8px; font-size: 0.68rem; }
  .logo-ring { width: 42px; height: 42px; }
  .logo-img { width: 32px; height: 32px; }
  .nav-container { height: 64px; }
} 
