/* ===== SIMPLIFIER TUTORIALS — REDESIGNED CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

:root {
  --blue-deep: #0B1F4B;
  --blue-mid: #1E3A8A;
  --blue-bright: #2563EB;
  --blue-light: #DBEAFE;
  --blue-pale: #EFF6FF;
  --orange: #F97316;
  --orange-dark: #EA580C;
  --orange-light: #FFF7ED;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(11,31,75,.12);
  --shadow-lg: 0 12px 40px rgba(11,31,75,.18);
  --shadow-xl: 0 24px 64px rgba(11,31,75,.22);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: var(--blue-deep);
  color: #fff;
  text-align: center;
  padding: 0.55rem 3rem;
  font-size: 0.82rem;
  font-weight: 500;
  display: none;
  position: relative;
  z-index: 501;
}
.announcement-bar button {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.7); font-size: 1rem; padding: 0.2rem 0.5rem;
}
.announcement-bar.show { display: block; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
#navbar.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: 0 4px 20px rgba(11,31,75,.1);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 72px;
}
.nav-logo img { height: 52px; border-radius: 8px; }

/* Desktop Navigation */
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--gray-600); border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--blue-bright); background: var(--blue-pale); }
.nav-links a.active { color: var(--blue-bright); }
.nav-cta {
  background: var(--orange) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 0.6rem 1.2rem !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  box-shadow: 0 4px 14px rgba(249,115,22,.3);
  transition: var(--transition) !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249,115,22,.4) !important; }

/* ===== HAMBURGER (mobile only) ===== */
.hamburger {
  display: none;
  flex-shrink: 0;
  position: relative;
  z-index: 900;
}

/* Mobile Menu Overlay - FIXED (no blur on content) */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 800;
}

.mobile-menu-overlay.active {
  display: block;
}

.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

#home {
  padding-top: 72px;
}

/* Mobile fix */
@media (max-width: 768px) {
  .nav-logo img {
    height: 42px;
  }
}


/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--orange); color: #fff;
  padding: 0.8rem 1.8rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.925rem;
  box-shadow: 0 4px 14px rgba(249,115,22,.3);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--blue-bright); color: #fff;
  padding: 0.8rem 1.8rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.925rem;
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
  transition: var(--transition);
}
.btn-secondary:hover { background: var(--blue-mid); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--blue-bright);
  border: 2px solid var(--blue-bright);
  padding: 0.75rem 1.6rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.925rem;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--blue-bright); color: #fff; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25D366; color: #fff;
  padding: 0.8rem 1.6rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.925rem;
  transition: var(--transition);
}
.btn-wa:hover { background: #128C7E; transform: translateY(-2px); }
.full-width { width: 100%; justify-content: center; }

/* ===== SECTION COMMONS ===== */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.section-label {
  display: inline-block;
  background: var(--blue-pale); color: var(--blue-bright);
  padding: 0.35rem 1rem; border-radius: 30px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 0.75rem;
  border: 1px solid var(--blue-light);
}
.section-title {
  font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--blue-deep); line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-title span { color: var(--blue-bright); }
.section-subtitle { font-size: 1rem; color: var(--gray-600); line-height: 1.7; max-width: 560px; }
.section-center { text-align: center; }
.section-center .section-subtitle { margin: 0 auto; }

/* ===== FADE-IN ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-left.visible { opacity: 1; transform: none; }
.fade-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-right.visible { opacity: 1; transform: none; }

/* ===== HERO ===== */
#home {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 50%, #1a4fa0 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding-top: 72px;
  isolation: auto;
}
.hero-bg-image {
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 40px 40px;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.orb1 { width: 500px; height: 500px; top: -150px; right: -100px; background: rgba(37,99,235,.35); }
.orb2 { width: 400px; height: 400px; bottom: -100px; left: -80px; background: rgba(249,115,22,.2); }
.orb3 { width: 300px; height: 300px; top: 40%; left: 30%; background: rgba(255,255,255,.06); }

/* hero wave at bottom */
.hero-wave {
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 80px;
}
.hero-wave svg { width: 100%; height: 100%; display: block; }

.hero-content {
  max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem 6rem;
  display: grid; grid-template-columns: 1fr 420px; gap: 4rem; align-items: center;
  position: relative; z-index: 2; width: 100%;
}
.hero-left { color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
  padding: 0.45rem 1rem; border-radius: 30px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 1.5rem;
  animation: fadeDown 0.6s ease both;
}
.badge-pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.5; transform:scale(1.3)} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:none} }
@keyframes fadeLeft { from{opacity:0;transform:translateX(-30px)} to{opacity:1;transform:none} }
@keyframes fadeRight { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:none} }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700; line-height: 1.15;
  color: #fff; margin-bottom: 1.25rem;
  animation: fadeLeft 0.7s 0.1s ease both;
}
.hero-title .hl-blue { color: #93C5FD; }
.hero-title .hl-orange { color: #FDBA74; }
.hero-subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,.8); line-height: 1.75;
  margin-bottom: 2rem; max-width: 520px;
  animation: fadeLeft 0.7s 0.2s ease both;
}
.hero-buttons {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeLeft 0.7s 0.3s ease both;
  margin-bottom: 2.5rem;
}
.hero-trust {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  animation: fadeLeft 0.7s 0.4s ease both;
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,.85); font-size: 0.85rem; font-weight: 600;
}
.trust-item .ti-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.trust-num { font-size: 1.1rem; font-weight: 800; color: #FDBA74; }

/* HERO FORM CARD */
.hero-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: fadeRight 0.7s 0.2s ease both;
}
.form-card-header {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  padding: 1.5rem 1.75rem;
  color: #fff;
}
.form-card-header h3 {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem;
}
.form-card-header h3 span { color: #FDBA74; }
.form-card-header p { font-size: 0.82rem; color: rgba(255,255,255,.75); }
.form-card-body { padding: 1.5rem 1.75rem; }
.form-group { margin-bottom: 0.85rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.success-msg {
  display: none; margin-top: 0.75rem;
  background: #dcfce7; color: #166534;
  padding: 0.6rem 0.85rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid #bbf7d0;
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: var(--blue-deep); padding: 0;
}
.trust-strip-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid rgba(255,255,255,.1);
}
.trust-item-strip {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,.1);
  color: #fff;
}
.trust-item-strip:last-child { border-right: none; }
.tis-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.tis-num { font-size: 1.5rem; font-weight: 800; color: #FDBA74; line-height: 1; }
.tis-label { font-size: 0.78rem; color: rgba(255,255,255,.7); margin-top: 0.15rem; }

/* ===== ABOUT ===== */
#about { padding: 6rem 0; background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-left .section-subtitle { margin-bottom: 2rem; }
.about-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 2rem;
}
.about-feature {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
}
.about-feature:hover { border-color: var(--blue-light); background: var(--blue-pale); }
.about-feature .af-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-pale); display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.about-feature h4 { font-size: 0.875rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 0.15rem; }
.about-feature p { font-size: 0.78rem; color: var(--gray-600); }

.about-image-block { position: relative; }
.about-img-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-img-placeholder {
  width: 100%; height: 100%; min-height: 300px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,.4);
}
.about-badge-float {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  background: #fff; border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 0.75rem;
}
.abf-icon { font-size: 1.75rem; }
.abf-num { font-size: 1.4rem; font-weight: 800; color: var(--blue-bright); line-height: 1; }
.abf-label { font-size: 0.75rem; color: var(--gray-600); }
.about-badge-float2 {
  position: absolute; top: -1rem; right: -1rem;
  background: var(--orange); color: #fff;
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem; text-align: center;
  box-shadow: 0 8px 24px rgba(249,115,22,.35);
}
.abf2-num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.abf2-label { font-size: 0.72rem; opacity: .85; }

/* ===== COURSES ===== */
#courses { padding: 6rem 0; background: var(--gray-50); }
.courses-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem; flex-wrap: wrap; gap: 1.5rem;
}
.courses-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.course-card {
  background: #fff; border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  padding: 2rem 1.75rem;
  transition: var(--transition); cursor: pointer;
  display: flex; flex-direction: column; gap: 0.75rem;
  position: relative; overflow: hidden;
}
.course-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue-bright), #60a5fa);
  transform: scaleX(0); transform-origin: left;
  transition: var(--transition);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-light); }
.course-card:hover::before { transform: scaleX(1); }
.course-icon-wrap {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
}
.course-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue-deep); line-height: 1.35; }
.course-card p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.65; flex: 1; }
.course-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  background: var(--blue-pale); color: var(--blue-bright);
  padding: 0.25rem 0.6rem; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600;
}
.course-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--blue-bright); font-weight: 700; font-size: 0.875rem;
  padding: 0.5rem 0;
  transition: var(--transition);
  margin-top: auto;
}
.course-cta:hover { color: var(--orange); gap: 0.7rem; }

/* ===== WHY CHOOSE US ===== */
#why { padding: 6rem 0; background: var(--white); }
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  margin-top: 3rem;
}
.why-card {
  padding: 2rem 1.5rem; border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  background: #fff; text-align: center;
  transition: var(--transition);
}
.why-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.why-icon {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.why-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 0.5rem; }
.why-card p { font-size: 0.82rem; color: var(--gray-600); line-height: 1.6; }

/* ===== HOW IT WORKS ===== */
#how { padding: 6rem 0; background: var(--blue-deep); }
#how .section-title { color: #fff; }
#how .section-title span { color: #93C5FD; }
#how .section-subtitle { color: rgba(255,255,255,.7); }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-top: 3.5rem; position: relative;
}
.steps-grid::before {
  content: ''; position: absolute;
  top: 40px; left: 15%; right: 15%; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.3) 50%, rgba(255,255,255,.1) 100%);
}
.step-card { text-align: center; position: relative; }
.step-num-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; position: relative; z-index: 1;
  font-size: 1.6rem;
}
.step-num-badge {
  position: absolute; top: -6px; right: -6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-size: 0.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-card h4 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.875rem; color: rgba(255,255,255,.65); line-height: 1.65; }

/* ===== RESULTS ===== */
#results { padding: 6rem 0; background: var(--gray-50); }
.results-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  margin-top: 2.5rem;
}
.result-card {
  background: #fff; border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
}
.result-card:hover { border-color: var(--orange); box-shadow: 0 8px 24px rgba(249,115,22,.15); transform: translateY(-4px); }
.result-score {
  font-family: var(--font-head);
  font-size: 1.8rem; font-weight: 700;
  color: var(--orange); margin-bottom: 0.25rem;
}
.result-name { font-weight: 700; font-size: 0.9rem; color: var(--blue-deep); margin-bottom: 0.15rem; }
.result-subject { font-size: 0.78rem; color: var(--gray-600); }
.result-loc { font-size: 0.72rem; color: var(--gray-400); margin-top: 0.3rem; }

/* ===== TESTIMONIALS ===== */
#testimonials { padding: 6rem 0; background: var(--white); overflow: hidden; }
.testimonial-track-wrap { margin-top: 3rem; overflow: hidden; }
.testimonial-track {
  display: flex; gap: 1.5rem;
  width: max-content;
  animation: scrollLeft 30s linear infinite;
}
.testimonial-track.reverse { animation: scrollRight 35s linear infinite; margin-top: 1.25rem; }
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes scrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.testimonial-track:hover, .testimonial-track.reverse:hover { animation-play-state: paused; }
.testi-card {
  flex-shrink: 0; width: 320px;
  background: var(--gray-50); border-radius: var(--radius);
  padding: 1.5rem;
  border: 1.5px solid var(--gray-200);
}
.testi-stars { color: #FBBF24; font-size: 0.8rem; margin-bottom: 0.65rem; letter-spacing: 1px; }
.testi-text { font-size: 0.875rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-photo {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--blue-light);
}
.testi-photo-placeholder {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 0.875rem; color: var(--blue-deep); }
.testi-loc { font-size: 0.75rem; color: var(--gray-400); }

/* ===== GALLERY ===== */
#gallery { padding: 6rem 0; background: var(--gray-50); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-item {
  border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 1; position: relative; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,31,75,.7) 0%, transparent 50%);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-size: 0.85rem; font-weight: 600; }
.gallery-placeholder {
  width: 100%; height: 100%; min-height: 140px;
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--blue-bright);
}

/* ===== CTA BANNER ===== */
#cta-banner { padding: 6rem 0; background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%); position: relative; overflow: hidden; }
#cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.08) 1px, transparent 0);
  background-size: 32px 32px;
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-inner h2 { font-family: var(--font-head); font-size: clamp(1.8rem,4vw,2.8rem); color: #fff; font-weight: 700; margin-bottom: 0.5rem; }
.cta-inner p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: var(--orange-dark);
  padding: 0.85rem 1.8rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.925rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ===== CONTACT ===== */
#contact { padding: 6rem 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; }
.contact-info h3 { font-size: 1.2rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 1.5rem; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  margin-bottom: 0.85rem;
  transition: var(--transition);
}
.contact-detail:hover { border-color: var(--blue-light); background: var(--blue-pale); }
.cd-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-pale); color: var(--blue-bright);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.cd-label { font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 0.15rem; }
.cd-value { font-weight: 600; font-size: 0.9rem; color: var(--blue-deep); }
.contact-form-card {
  background: var(--gray-50); border-radius: var(--radius);
  padding: 2rem; border: 1.5px solid var(--gray-200);
}
.contact-form-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 1.25rem; }

/* ===== JOIN AS TEACHER ===== */
#teachers { padding: 6rem 0; background: var(--gray-50); }
.teacher-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.teacher-perks { margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.perk-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--gray-600); }
.perk-icon { color: var(--blue-bright); font-size: 1rem; }
.teacher-form-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); border: 1.5px solid var(--gray-200); }
.teacher-form-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 1.25rem; }

/* ===== FOOTER ===== */
footer { background: var(--blue-deep); color: rgba(255,255,255,.75); padding: 4rem 0 0; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { font-size: 0.85rem; line-height: 1.75; margin-top: 1rem; max-width: 280px; }
.footer-social { display: flex; gap: 0.65rem; margin-top: 1.25rem; }
.soc-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.75);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.1);
}
.soc-btn:hover { background: var(--blue-bright); color: #fff; border-color: var(--blue-bright); }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; color: #fff; margin-bottom: 1rem; letter-spacing: .03em; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.82rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,.4);
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-bottom a:hover { color: #fff; }

/* ===== FLOATING BUTTONS ===== */
.floating-wa {
  position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 998;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: var(--transition);
}
.floating-wa:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.5); }
.floating-call {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 998;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue-bright);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,99,235,.35);
  font-size: 1.3rem; transition: var(--transition); text-decoration: none;
}
.floating-call:hover { transform: scale(1.1); }

/* ===== STICKY BAR ===== */
.sticky-demo-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 997;
  background: var(--blue-deep);
  padding: 0.75rem 2rem;
  display: flex; align-items: center; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
  transform: translateY(100%); transition: var(--transition);
  border-top: 2px solid var(--blue-bright);
}
.sticky-demo-bar.visible { transform: none; }
.sticky-demo-bar p { color: rgba(255,255,255,.85); font-size: 0.875rem; }
.sticky-demo-bar strong { color: #FDBA74; }

/* ===== POPUP ===== */
.popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(11,31,75,.6);
  backdrop-filter: blur(8px);
  display: none; place-items: center;
}
.popup-overlay.active { display: grid; }
.popup-card {
  background: #fff; border-radius: var(--radius-lg);
  width: min(500px, 95vw); max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: var(--shadow-xl);
  animation: popIn 0.35s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn { from{opacity:0;transform:scale(.85)} to{opacity:1;transform:none} }
.popup-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray-100); color: var(--gray-600);
  font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); z-index: 1;
}
.popup-close:hover { background: var(--gray-200); }
.popup-header {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  padding: 1.75rem 2rem 1.5rem; color: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.popup-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.popup-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.25rem; }
.popup-sub { font-size: 0.85rem; color: rgba(255,255,255,.75); }
.popup-body { padding: 1.5rem 2rem 2rem; }

/* ===== ADMIN LOGIN OVERLAY ===== */
.admin-login-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(11,31,75,.65);
  backdrop-filter: blur(8px);
  display: none; place-items: center;
}
.admin-login-overlay.active { display: grid; }
.login-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 2.5rem; width: min(420px, 92vw);
  text-align: center; box-shadow: var(--shadow-xl);
  animation: popIn 0.35s cubic-bezier(.34,1.56,.64,1) both;
}
.login-card h2 { font-size: 1.4rem; font-weight: 800; color: var(--blue-deep); margin-bottom: 0.25rem; }
.login-card > p { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 1.5rem; }
.login-card .form-group { text-align: left; }
.login-error { display: none; color: #dc2626; font-size: 0.82rem; margin-bottom: 0.75rem; }
.login-cancel { margin-top: 0.75rem; color: var(--gray-400); font-size: 0.85rem; padding: 0.5rem 1rem; }
.login-cancel:hover { color: var(--gray-600); }
.login-hint { margin-top: 1rem; font-size: 0.78rem; color: var(--gray-400); }

/* ===== NOTICE BANNER ===== */
.notice-bar-shown .announcement-bar { display: block; }

/* ===== PAGE HEADER (for sub-pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  padding: 8rem 0 4rem; text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.05) 1px, transparent 0);
  background-size: 32px 32px;
}
.page-header-content { position: relative; z-index: 1; }
.page-header h1 { font-family: var(--font-head); font-size: clamp(2rem,4vw,3rem); font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.page-header p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; justify-content: center; margin-bottom: 1rem; font-size: 0.82rem; color: rgba(255,255,255,.55); }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }

/* ===== CAROUSEL ===== */
.carousel-section { padding: 4rem 0; background: var(--blue-pale); }
.carousel-wrap { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.carousel-inner { display: flex; transition: transform 0.5s cubic-bezier(.4,0,.2,1); }
.carousel-slide { flex: 0 0 100%; position: relative; }
.carousel-slide img { width: 100%; height: 460px; object-fit: cover; display: block; }
.carousel-slide-placeholder {
  width: 100%; height: 460px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,.3);
}
.carousel-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(11,31,75,.85) 0%, transparent 100%);
  padding: 3rem 2rem 1.5rem; color: #fff;
}
.carousel-caption h3 { font-size: 1.3rem; font-weight: 700; }
.carousel-caption p { font-size: 0.875rem; opacity: .75; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--blue-deep);
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: var(--transition); z-index: 2;
}
.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }
.carousel-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); transition: var(--transition); cursor: pointer; }
.carousel-dot.active { background: var(--blue-bright); width: 20px; border-radius: 4px; }

/* ===== RESPONSIVE ===== */
/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 5rem; padding-bottom: 4rem; }
  .hero-form-card { max-width: 500px; width: 100%; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .teacher-grid { grid-template-columns: 1fr; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { gap: 1.5rem; }
  .steps-grid::before { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (768px and below) - FIXED VERSION */
@media (max-width: 768px) {
  /* Hamburger button */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    background: #fff;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 901;
    padding: 0;
    flex-shrink: 0;
  }
  .hamburger span {
    display: block;
    height: 2px;
    background: #0B1F4B;
    border-radius: 3px;
    transition: all 0.32s cubic-bezier(.4,0,.2,1);
    transform-origin: center;
  }
  .hamburger span:nth-child(1) { width: 22px; }
  .hamburger span:nth-child(2) { width: 16px; margin-left: -6px; align-self: flex-start; }
  .hamburger span:nth-child(3) { width: 22px; }
  .hamburger.open {
    background: #0B1F4B;
    border-color: #0B1F4B;
  }
  .hamburger.open span {
    background: #fff;
    width: 22px !important;
    margin-left: 0 !important;
    align-self: center !important;
  }
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

  /* Drawer panel */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 310px);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    gap: 0;
    transform: translateX(110%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    z-index: 901;
    box-shadow: -8px 0 32px rgba(0,0,0,.15);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  
  /* REMOVE all pseudo-elements that cause issues */
  .nav-links::before,
  .nav-links::after {
    display: none !important;
    content: none !important;
  }

  /* Drawer header */
  .nav-drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #0B1F4B, #1E3A8A);
    margin-bottom: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .drawer-logo-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .drawer-logo-area img {
    height: 42px;
    border-radius: 8px;
  }
  .drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .drawer-close i {
    color: #fff;
    font-size: 1.1rem;
  }
  .drawer-close:hover {
    background: rgba(255,255,255,0.25);
  }

  /* Individual nav items */
  .nav-links li {
    border-bottom: 1px solid #F1F5F9;
    display: block;
  }
  .nav-links li:last-child {
    border-bottom: none;
    padding: 0.75rem 1rem 1.5rem;
  }
  .nav-links li.nav-drawer-header {
    border-bottom: none;
    padding: 0;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1E293B;
    border-radius: 0;
  }
  .nav-links a i {
    width: 24px;
    font-size: 1.1rem;
    color: var(--gray-400);
  }
  .nav-links a::after {
    display: none;
  }
  .nav-links a:hover {
    background: #EFF6FF;
    color: #2563EB;
  }
  .nav-links a:hover i {
    color: #2563EB;
  }
  .nav-links a.active {
    background: linear-gradient(90deg, #EFF6FF, #fff);
    color: #2563EB;
    border-left: 3px solid #2563EB;
    padding-left: calc(1.5rem - 3px);
  }

  /* CTA button in drawer */
  .nav-cta-item {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem !important;
  }
  .nav-cta {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: linear-gradient(135deg, #F97316, #EA580C) !important;
    color: #fff !important;
    border-radius: 14px !important;
    padding: 1rem 1.5rem !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    text-align: center !important;
    box-shadow: 0 6px 18px rgba(249,115,22,.35) !important;
    width: 100% !important;
  }
  .nav-cta i {
    color: #fff !important;
  }
  .nav-cta:hover {
    background: linear-gradient(135deg, #EA580C, #C2410C) !important;
    transform: translateY(-2px);
  }
  
  /* Grids */
  .courses-grid,
  .why-grid,
  .gallery-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .trust-strip-inner {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  .trust-item-strip {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 1.25rem 1rem;
  }
  .trust-item-strip:last-child { border-bottom: none; }
  
  /* Hero adjustments */
  .hero-title {
    font-size: 1.8rem;
    text-align: center;
  }
  .hero-subtitle {
    text-align: center;
    font-size: 0.9rem;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-badge {
    margin: 0 auto 1.5rem;
    display: inline-flex;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
    gap: 1rem;
  }
  .hero-content {
    padding: 2rem 1rem 4rem;
  }
  
  /* Form adjustments */
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-card-header h3 {
    font-size: 1.1rem;
  }
  .form-card-body {
    padding: 1.2rem;
  }
  
  /* Section padding */
  section {
    padding: 3rem 0 !important;
  }
  .section-container {
    padding: 0 1rem;
  }
  
  /* Page header */
  .page-header {
    padding: 6rem 1rem 3rem;
  }
  .page-header h1 {
    font-size: 1.6rem;
  }
  
  /* Hide decorative badges on mobile */
  .about-badge-float,
  .about-badge-float2 {
    display: none;
  }
  
  /* Footer */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  /* Floating buttons */
  .floating-wa {
    width: 48px;
    height: 48px;
    bottom: 5rem;
    right: 1rem;
  }
  .floating-call {
    width: 48px;
    height: 48px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1rem;
  }
  
  /* Sticky bar */
  .sticky-demo-bar {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }
  .sticky-demo-bar p {
    font-size: 0.75rem;
  }
  .sticky-demo-bar .btn-primary,
  .sticky-demo-bar .btn-wa {
    padding: 0.4rem 1rem !important;
    font-size: 0.75rem !important;
  }
  
  /* Popup */
  .popup-card {
    width: 95%;
    margin: 1rem;
  }
  .popup-header {
    padding: 1.2rem 1.5rem;
  }
  .popup-body {
    padding: 1.2rem 1.5rem;
  }
  
  /* Carousel */
  .carousel-slide img,
  .carousel-slide-placeholder {
    height: 250px;
  }
  .carousel-caption h3 {
    font-size: 1rem;
  }
  .carousel-caption p {
    font-size: 0.75rem;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  /* Videos grid */
  .videos-grid {
    grid-template-columns: 1fr !important;
  }

  /* Global overflow prevention */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .section-container {
    padding: 0 1rem;
    max-width: 100%;
  }

  /* About grid */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .about-features {
    grid-template-columns: 1fr;
  }

  /* Contact form */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .contact-info-grid {
    grid-template-columns: 1fr !important;
  }
  .contact-form-card {
    padding: 1.5rem 1rem;
  }

  /* Teacher form */
  .teacher-form-card {
    padding: 1.5rem 1rem;
  }
  .team-benefits {
    grid-template-columns: 1fr !important;
  }

  /* Why grid */
  .why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr !important;
    padding: 2rem 1rem;
  }
  .footer-col { margin-top: 1rem; }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem !important;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-wa {
    width: 100%;
    justify-content: center;
  }
  .hero-trust {
    flex-wrap: wrap;
  }
  .trust-item {
    flex: 1;
    min-width: 100px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr !important;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet Portrait (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-form-card {
    max-width: 450px;
    margin: 0 auto;
  }
}

/* Desktop Large (1400px and above) */
@media (min-width: 1400px) {
  .section-container {
    max-width: 1300px;
  }
  .hero-content {
    max-width: 1300px;
  }
}

/* iOS Safari Fix */
@supports (-webkit-touch-callout: none) {
  .hero-content,
  .hero-form-card,
  .popup-card {
    transform: translateZ(0);
  }
}

/* Prevent input zoom on mobile */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Enhanced Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(249,115,22,0.3); }
  50% { box-shadow: 0 0 20px rgba(249,115,22,0.6); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.course-card, .why-card, .result-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover, .why-card:hover, .result-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(11,31,75,0.15);
}

/* Particle background for hero */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* ===== BOARD LOGO IMAGES STYLES ===== */
.why-icon-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-light));
  border-radius: 50%;
  transition: all 0.3s ease;
}
.why-card:hover .why-icon-img {
  transform: scale(1.05);
  background: linear-gradient(135deg, var(--blue-light), var(--blue-pale));
  box-shadow: 0 8px 20px rgba(37,99,235,.15);
}
.board-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: all 0.3s ease;
}
.why-card:hover .board-logo {
  transform: scale(1.05);
}

/* Alternative: For Font Awesome Icons */
.why-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-light));
  border-radius: 50%;
  font-size: 2rem;
  color: var(--blue-bright);
  transition: all 0.3s ease;
}
.why-card:hover .why-icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, var(--blue-light), var(--blue-pale));
  box-shadow: 0 8px 20px rgba(37,99,235,.15);
  color: var(--orange);
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .why-icon-img {
    width: 60px;
    height: 60px;
  }
  .board-logo {
    width: 38px;
    height: 38px;
  }
  .why-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

.particle {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: floatParticle 20s infinite linear;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ===== MOBILE NAV CRITICAL OVERRIDES (must be last) ===== */
@media (max-width: 768px) {
  /* Ensure nothing traps the drawer or overlay */
  #home, section, .page-header, footer {
    transform: none !important;
    isolation: auto !important;
  }
  
  /* Drawer z-index final authority */
  #navLinks.open {
    z-index: 901 !important;
    transform: translateX(0) !important;
  }
  #mobileOverlay.active {
    z-index: 800 !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Ensure hamburger is always clickable */
  #hamburgerBtn {
    position: relative;
    z-index: 902 !important;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Fix any section that has inline overflow:hidden */
  body > * {
    max-width: 100vw;
    overflow-x: clip;
  }
  
  /* Body no scroll when menu open */
  body.menu-open {
    overflow: hidden;
  }
}

/* ===== JOIN TEAM SECTION STYLES ===== */
.join-team-section {
  background: linear-gradient(135deg, #0B1F4B, #1E3A8A);
  padding: 5rem 0;
}
.join-team-card {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.join-team-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #0B1F4B;
}

/* ===== MOBILE NAV FIX ===== */
@media (max-width: 768px) {

  /* Hide logo inside opened menu */
  .nav-links .nav-logo {
    display: none;
  }

  /* Remove duplicate header area if any */
  .nav-links::before,
  .nav-links::after {
    display: none !important;
  }

  /* Fix nav links container */
  .nav-links {
    position: fixed;
    top: 72px; /* below navbar */
    right: -100%;
    width: 80%;
    height: calc(100vh - 72px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1rem;
    transition: 0.3s ease;
    z-index: 850;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  /* Ensure hamburger stays single */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

}


/* ===== SHARED FORM VALIDATION STYLES — include in each course page <style> ===== */
.form-group input,
.form-group select,
.form-group textarea,
.dependent-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #fff;
    color: #1E293B;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.form-group select,
.dependent-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 1rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.dependent-group select:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.dependent-group { margin-bottom: 1rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.field-error {
    color: #ef4444;
    font-size: .78rem;
    margin-top: .3rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* Map Responsive */
.map-responsive {
    position: relative;
    overflow: hidden;
    padding-bottom: 45%; /* 16:9 aspect ratio on desktop */
    height: 0;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .map-responsive {
        padding-bottom: 60%;
    }
    
    .map-container > div:last-child {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .map-responsive {
        padding-bottom: 75%;
    }
}