/* ══════════════════════════════════════════
   MAHABHALA DRIVING SCHOOL – style.css
   Aesthetic: Bold Industrial + Warm Amber
   ══════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --black:    #0d0d0d;
  --charcoal: #1a1a1a;
  --dark:     #222222;
  --amber:    #f59e0b;
  --amber-lt: #fbbf24;
  --amber-dk: #d97706;
  --white:    #fafafa;
  --grey:     #a0a0a0;
  --light-bg: #f5f0e8;
  --card-bg:  #ffffff;
  --border:   #e8e0d0;
  --shadow:   0 8px 32px rgba(0,0,0,0.12);
  --radius:   12px;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-h: 72px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  line-height: 1.65;
  width: 100%;
}
html, body { max-width: 100%; }
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: inherit; }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-dk);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--black);
  margin-bottom: 20px;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-desc { color: #555; font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 6px;
  transition: var(--transition);
  border: 2px solid var(--amber);
}
.btn-primary:hover { background: var(--amber-dk); border-color: var(--amber-dk); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  transition: var(--transition);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.32); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; font-size: 1rem; padding: 16px; }
.whatsapp-icon-sm { width: 20px; height: 20px; flex: 0 0 auto; }

/* ══ NAVBAR ══ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--navbar-h);
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  background: var(--black);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--amber), #60d5d5);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(245,158,11,0.22);
}
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: var(--font-head); font-size: 1.4rem; letter-spacing: 0.08em; color: var(--amber); line-height: 1; }
.logo-sub { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.12em; color: rgba(255,255,255,0.7); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--amber); }
.nav-cta {
  background: var(--amber) !important;
  color: var(--black) !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: var(--transition) !important;
}
.nav-cta:hover { background: var(--amber-dk) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══ HERO ══ */
.hero {
  position: relative; min-height: 100svh;
  background: #030712;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding-top: var(--navbar-h);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 24% 18%, rgba(245,158,11,0.22), transparent 28%),
    radial-gradient(circle at 76% 30%, rgba(96,213,213,0.18), transparent 30%),
    linear-gradient(120deg, rgba(255,255,255,0.03), transparent 36%),
    linear-gradient(120deg, rgba(245,158,11,0.12), transparent 32%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: auto, auto, auto, 84px 84px, 84px 84px;
  opacity: 0.95;
}
.road-lines {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,7,18,0.08) 0%, rgba(3,7,18,0.64) 56%, #020617 100%),
    linear-gradient(90deg, rgba(245,158,11,0.1), transparent 30%, rgba(96,213,213,0.08)),
    repeating-linear-gradient(168deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 14px);
}

.hero-content {
  position: relative; z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) 24px 72px;
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.4);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.6rem, 10.4vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: 0;
  color: #fff7cd;
  margin-bottom: 30px;
  max-width: 1040px;
  text-transform: uppercase;
  text-wrap: balance;
  background: linear-gradient(90deg, #fff4c2 0%, #fff176 48%, #74d7d1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 60px rgba(0,0,0,0.28);
}
.hero-desc {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 2vw, 1.28rem);
  max-width: 840px;
  margin: 0 auto 42px;
  line-height: 1.75;
  text-wrap: balance;
}
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; min-width: 140px; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--amber);
  line-height: 1;
}
.quick-num {
  font-family: var(--font-head);
  font-size: clamp(2.35rem, 4.4vw, 3.2rem);
  color: var(--amber);
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); font-weight: 500; letter-spacing: 0.06em; margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.15); }

.hero-car {
  position: absolute; right: -20px; bottom: 60px; z-index: 1;
  animation: carDrive 6s ease-in-out infinite;
}
.car-icon { font-size: clamp(6rem, 14vw, 12rem); filter: drop-shadow(0 20px 40px rgba(245,158,11,0.3)); }
.car-shadow {
  width: 180px; height: 20px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.5) 0%, transparent 70%);
  margin: 0 auto;
  animation: shadowPulse 6s ease-in-out infinite;
}
@keyframes carDrive { 0%,100%{transform:translateY(0) translateX(0);} 50%{transform:translateY(-12px) translateX(-6px);} }
@keyframes shadowPulse { 0%,100%{transform:scaleX(1);opacity:0.5;} 50%{transform:scaleX(0.85);opacity:0.25;} }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.scroll-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(var(--amber), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0;transform:scaleY(0) translateY(-100%);} 50%{opacity:1;transform:scaleY(1) translateY(0);} }

/* ══ QUICK CONTACT ══ */
.quick-contact {
  background: #07111f;
  border-top: 1px solid rgba(245,158,11,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}
.quick-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.contact-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  transition: var(--transition);
}
.contact-pill:hover { border-color: var(--amber); transform: translateY(-2px); background: rgba(245,158,11,0.08); }
.contact-icon {
  grid-row: span 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--amber);
  color: var(--black);
  font-size: 0.68rem;
  font-weight: 800;
}
.contact-pill strong { font-size: 0.95rem; line-height: 1.2; }
.contact-pill small { color: rgba(255,255,255,0.58); overflow-wrap: anywhere; }

/* ══ MARQUEE ══ */
.marquee-strip {
  background: var(--amber);
  overflow: hidden; padding: 14px 0;
  border-top: 3px solid var(--amber-dk);
  border-bottom: 3px solid var(--amber-dk);
}
.marquee-track {
  display: flex; gap: 40px; align-items: center;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-track span { font-family: var(--font-head); font-size: 1rem; letter-spacing: 0.08em; color: var(--black); white-space: nowrap; }
.marquee-track .dot { font-size: 0.6rem; color: rgba(0,0,0,0.4); }
@keyframes marquee { from{transform:translateX(0);} to{transform:translateX(-50%);} }

/* ══ ABOUT ══ */
.about { background: var(--light-bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual { position: relative; }
.about-img-block {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--border);
  background: #fff;
}
.about-feature-image {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.img-placeholder {
  height: 340px;
  background: linear-gradient(135deg, var(--black) 0%, #333 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.road-illustration { width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; }
.road-main {
  width: 60%; height: 100%;
  background: #2a2a2a;
  position: relative;
  display: flex; flex-direction: column;
  justify-content: space-around; align-items: center;
  padding: 10px 0;
}
.lane-marking {
  width: 8px; height: 36px;
  background: var(--amber);
  border-radius: 4px;
  animation: laneScroll 1s linear infinite;
}
@keyframes laneScroll { from{transform:translateY(-20px);} to{transform:translateY(20px);} }
.road-car-illus { font-size: 4rem; z-index: 2; filter: drop-shadow(0 6px 16px rgba(245,158,11,0.5)); animation: carDrive 3s ease-in-out infinite; }

.about-card {
  position: absolute; top: -24px; right: -24px;
  background: var(--black); color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  z-index: 2;
  box-shadow: var(--shadow);
}
.about-card-icon { font-size: 2rem; }
.about-card-label { font-family: var(--font-head); font-size: 1rem; letter-spacing: 0.04em; margin-top: 8px; }
.about-card-sub { font-size: 0.75rem; color: var(--grey); }
.about-badge-bottom {
  margin-top: 16px; display: inline-flex;
  background: var(--amber); color: var(--black);
  padding: 8px 16px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 700;
}
.about-text p { color: #444; margin-bottom: 16px; }
.about-features { margin: 24px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.about-features li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.feature-icon { color: var(--amber); font-weight: 900; font-size: 1.1rem; }

/* ══ COURSES ══ */
.courses {
  background:
    radial-gradient(circle at 0 0, rgba(245,158,11,0.12), transparent 32%),
    linear-gradient(180deg, #fff 0%, #fff7e7 100%);
}
.course-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #07111f;
  color: var(--white);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
  border: 1px solid rgba(245,158,11,0.35);
  box-shadow: var(--shadow);
}
.course-highlight h3 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  margin: 8px 0;
  color: var(--white);
}
.course-highlight p { color: rgba(255,255,255,0.7); max-width: 680px; }
.course-ribbon {
  display: inline-block;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.course-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); border-color: var(--amber); box-shadow: 0 12px 40px rgba(245,158,11,0.15); }
.course-card.featured {
  background: var(--black);
  border-color: var(--amber);
  color: var(--white);
}
.course-card.featured h3 { color: var(--white); }
.course-card.featured p { color: rgba(255,255,255,0.65); }
.course-card.featured .course-details li { color: rgba(255,255,255,0.75); }
.course-icon { font-size: 2.8rem; margin-bottom: 12px; }
.course-tag {
  display: inline-block;
  background: var(--amber);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  width: fit-content;
}
.course-card h3 { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: 0.03em; margin-bottom: 12px; }
.course-card p { font-size: 0.9rem; color: #555; margin-bottom: 20px; flex: 1; }
.course-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.course-details li { font-size: 0.85rem; color: #444; }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.price-list strong { color: var(--amber-dk); white-space: nowrap; }
.featured .price-list li { border-bottom-color: rgba(255,255,255,0.12); }
.featured .price-list strong { color: var(--amber-lt); }
.course-price { margin-bottom: 20px; }
.price { font-family: var(--font-head); font-size: 2rem; color: var(--amber); }
.price-note { font-size: 0.8rem; color: var(--grey); margin-left: 6px; }
.btn-course {
  display: block; text-align: center;
  background: var(--amber); color: var(--black);
  font-weight: 700; font-size: 0.9rem;
  padding: 12px; border-radius: 8px;
  transition: var(--transition);
}
.btn-course:hover { background: var(--amber-dk); }

/* ══ INSTRUCTOR ══ */
.instructor {
  background:
    linear-gradient(135deg, #07111f 0%, #101827 58%, #1f2937 100%);
  color: var(--white);
}
.instructor .section-title { color: var(--white); }
.instructor-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.instructor-photo {
  position: relative;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 22%, rgba(245,158,11,0.46), transparent 19%),
    linear-gradient(160deg, #f59e0b 0%, #60d5d5 52%, #111827 53%);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 24px 70px rgba(0,0,0,0.32);
}
.instructor-photo::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -30px;
  width: 230px; height: 300px;
  transform: translateX(-50%);
  border-radius: 110px 110px 28px 28px;
  background: linear-gradient(180deg, #ffe6b8 0 34%, #111827 34% 100%);
  box-shadow: 0 0 0 12px rgba(255,255,255,0.08);
}
.instructor-avatar {
  position: absolute;
  left: 50%; top: 72px;
  transform: translateX(-50%);
  width: 108px; height: 108px;
  border-radius: 50%;
  background: #fff8d7;
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 4rem;
  z-index: 2;
}
.instructor-badge {
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
  z-index: 3;
  background: rgba(2,6,23,0.78);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.instructor-copy p { color: rgba(255,255,255,0.72); margin-bottom: 24px; }
.profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin: 26px 0 30px;
}
.profile-facts div {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
}
.profile-facts strong { display: block; color: var(--amber); font-size: 1.05rem; }
.profile-facts span { display: block; color: rgba(255,255,255,0.62); font-size: 0.82rem; margin-top: 4px; }

/* ══ WHY US ══ */
.why-us { background: var(--black); }
.why-us .section-title { color: var(--white); }
.why-us .section-eyebrow { color: var(--amber); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}
.why-card:hover { border-color: var(--amber); background: rgba(245,158,11,0.06); transform: translateY(-4px); }
.why-icon { font-size: 2.4rem; margin-bottom: 16px; }
.why-card h4 { font-family: var(--font-head); font-size: 1.2rem; color: var(--white); letter-spacing: 0.04em; margin-bottom: 10px; }
.why-card p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.65; }

/* ══ PROMOTIONAL GALLERY ══ */
.promotional-gallery { background: linear-gradient(135deg, #fafafa 0%, #fff7e7 100%); position: relative; }
.promotional-gallery .container { max-width: 1360px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 42px rgba(0,0,0,0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.gallery-item:hover { transform: translateY(-8px); box-shadow: 0 24px 56px rgba(0,0,0,0.16); }
.gallery-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 430px;
  overflow: hidden;
  background: linear-gradient(135deg, #f6f8fb 0%, #eef2f7 100%);
}
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
  padding: 10px;
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-image { transform: scale(1.02); }
.gallery-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
  background:
    radial-gradient(circle at 30% 20%, rgba(245,158,11,0.22), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(2,132,199,0.16), transparent 45%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}
.fallback-icon { font-size: 2.1rem; }
.fallback-text {
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  color: #1f2937;
  font-size: 1.05rem;
}
.gallery-image-wrapper.image-error .gallery-image { opacity: 0; }
.gallery-image-wrapper.image-error .gallery-image-fallback {
  opacity: 1;
  transform: scale(1);
}
.gallery-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.35));
  color: var(--white);
  padding: 20px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; transform: translateY(0); }
.gallery-cta { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }

/* ══ TRAFFIC SIGNALS ══ */
.traffic-accent {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  background: linear-gradient(to right, transparent, rgba(245,158,11,0.1), transparent);
  animation: trafficPulse 2s ease-in-out infinite;
}
.traffic-signal {
  font-size: 2.5rem;
  display: inline-block;
  animation: trafficBounce 1.5s ease-in-out infinite;
}
@keyframes trafficPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes trafficBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ══ TESTIMONIALS ══ */
.testimonials { background: var(--light-bg); }
.testimonial-track-wrap { position: relative; overflow: hidden; }
.review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.review-summary div {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}
.review-summary strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--amber-dk); line-height: 1; }
.review-summary span { color: #666; font-size: 0.84rem; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.testimonial-track {
  display: flex; gap: 0;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.testimonial-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  min-width: 100%;
  box-shadow: var(--shadow);
}
.stars { color: var(--amber); font-size: 1.05rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { font-size: 0.98rem; color: #333; line-height: 1.65; font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--amber); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.2rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-weight: 700; }
.testimonial-author span { font-size: 0.8rem; color: var(--grey); }
.testimonial-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 28px;
}
.tctrl {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 1.4rem; color: var(--black);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.tctrl:hover { border-color: var(--amber); color: var(--amber); }
.t-dots { display: flex; gap: 8px; }
.t-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: var(--transition);
  cursor: pointer; border: none;
}
.t-dot.active { background: var(--amber); width: 24px; border-radius: 100px; }

/* ══ ENROLL ══ */
.enroll { background: var(--white); }
.enroll-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.enroll-text p { color: #555; margin-bottom: 28px; }
.enroll-contact-quick { display: flex; flex-direction: column; gap: 12px; }
.quick-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--light-bg); border: 1.5px solid var(--border);
  padding: 12px 20px; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem;
  transition: var(--transition);
}
.quick-link:hover { border-color: var(--amber); background: rgba(245,158,11,0.06); }
.quick-link-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.enroll-form { background: var(--light-bg); border-radius: 16px; padding: 40px; border: 2px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: #333; letter-spacing: 0.03em; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--amber); }
.form-group input.invalid,
.form-group select.invalid { border-color: #ef4444; }
.form-error { font-size: 0.78rem; color: #ef4444; min-height: 16px; }
.form-success {
  display: none;
  background: #d1fae5;
  border: 1.5px solid #34d399;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #065f46;
  margin-top: 16px;
  font-weight: 500;
}

/* ══ LOCATION ══ */
.location { background: var(--light-bg); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.info-item { display: flex; gap: 20px; margin-bottom: 28px; }
.info-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.info-item strong { display: block; font-weight: 700; margin-bottom: 6px; }
.info-item p { color: #555; line-height: 1.6; }
.info-item a { color: var(--amber-dk); font-weight: 600; }
.info-item a:hover { text-decoration: underline; }
.map-embed {
  border-radius: 16px; overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}
.map-embed iframe { display: block; }

/* ══ FOOTER ══ */
.footer { background: var(--black); padding: 80px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.88rem; margin-top: 16px; max-width: 280px; line-height: 1.7; }
.footer-links h4,
.footer-courses h4,
.footer-contact h4 {
  font-family: var(--font-head);
  font-size: 0.95rem; letter-spacing: 0.08em;
  color: var(--amber); margin-bottom: 20px;
}
.footer-links ul li,
.footer-courses ul li { margin-bottom: 12px; }
.footer-links a,
.footer-courses a { color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover,
.footer-courses a:hover { color: var(--amber); }
.footer-contact p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-bottom: 10px; }
.footer-contact a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-contact a:hover { color: var(--amber); }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  width: 42px; height: 42px; border-radius: 10px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem; font-weight: 800;
  transition: var(--transition);
}
.social-links a:hover { border-color: var(--amber); color: var(--amber); }
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}
.footer-social-icon-img {
  width: 22px;
  height: 22px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
  color: rgba(255,255,255,0.3); font-size: 0.8rem;
}

/* ══ FLOATING BUTTONS ══ */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 62px; height: 62px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 32px rgba(37,211,102,0.42);
  transition: var(--transition);
  animation: waBounce 2.5s ease-in-out 3s infinite;
}
.whatsapp-float img { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.12); }
@keyframes waBounce { 0%,100%{transform:scale(1);} 50%{transform:scale(1.08);} }

.back-top {
  position: fixed; bottom: 90px; right: 24px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--black); color: var(--white);
  border: 2px solid rgba(255,255,255,0.2);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--amber); color: var(--black); border-color: var(--amber); }

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .about-card { top: -16px; right: -8px; }
  .quick-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-highlight { align-items: flex-start; flex-direction: column; }
  .instructor-grid { grid-template-columns: 1fr; gap: 32px; }
  .profile-facts { grid-template-columns: 1fr; }
  .enroll-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .location-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --navbar-h: 86px; }
  html { font-size: 15px; }
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .navbar { background: rgba(2,6,23,0.96); border-bottom: none; box-shadow: none; }
  .nav-inner { padding: 0 16px; }
  .logo { gap: 10px; }
  .nav-inner { height: var(--navbar-h); display: flex; align-items: center; }
  .logo { align-items: center; min-width: 0; max-width: calc(100% - 62px); }
  .logo-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 1rem; flex: 0 0 auto; }
  .logo-text { display: flex; flex-direction: column; min-width: 0; }
  .logo-main {
    font-size: 1.1rem;
    max-width: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    line-height: 1;
  }
  .logo-sub {
    display: block;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    line-height: 1;
  }
  .nav-links {
    position: fixed; top: var(--navbar-h); left: 0; right: 0;
    background: var(--black);
    flex-direction: column; gap: 0;
    max-height: calc(100svh - var(--navbar-h));
    overflow-y: auto;
    padding: 14px 0 22px;
    display: none;
    transform: none;
    transition: none;
    border-bottom: none;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px 24px; font-size: 1rem; }
  .nav-cta { margin: 8px 24px 0; display: block; }
  .hamburger { display: flex; }
  .hamburger { height: var(--navbar-h); align-items: center; padding: 8px; margin-left: 8px; flex: 0 0 auto; }
  .hero {
    min-height: auto;
    align-items: center;
    padding-top: var(--navbar-h);
  }
  .hero-content {
    width: 100%;
    padding: 56px 16px 44px;
  }
  .hero-badge {
    max-width: 100%;
    font-size: 0.64rem;
    line-height: 1.25;
    letter-spacing: 0.12em;
    padding: 8px 14px;
    margin-bottom: 20px;
  }
  .hero-title {
    font-size: clamp(2.9rem, 14.5vw, 4.35rem);
    max-width: 100%;
    line-height: 0.94;
    margin-bottom: 20px;
  }
  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.62;
    max-width: 100%;
    margin-bottom: 24px;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
  }
  .btn-primary, .btn-outline, .btn-ghost { width: 100%; justify-content: center; padding: 13px 18px; min-height: 50px; }
  .quick-contact { padding: 16px 0; }
  /* Hide the top contact card on mobile so the hamburger menu holds actions */
  .quick-contact { display: none; }
  .quick-contact-grid { grid-template-columns: 1fr; gap: 10px; }
  .contact-pill { padding: 13px; }
  .contact-icon { width: 38px; height: 38px; }
  .course-highlight { padding: 22px; border-radius: 12px; }
  .detailed-courses { grid-template-columns: 1fr; }
  .price-list li { align-items: flex-start; }
  .instructor-photo { min-height: 340px; }
  .instructor-avatar { top: 54px; width: 92px; height: 92px; font-size: 3.35rem; }
  .review-summary, .review-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 24px 20px; }
  .testimonial-card p { font-size: 0.94rem; line-height: 1.6; }
  .hero-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .stat { min-width: 0; padding: 0 10px; }
  .stat-divider { width: 1px; height: 46px; justify-self: center; display: none; }
  .quick-num { font-size: clamp(2.1rem, 11vw, 2.8rem); }
  .stat-label { font-size: 0.68rem; line-height: 1.25; }
  .scroll-hint { display: none; }
  .whatsapp-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .whatsapp-float img { width: 28px; height: 28px; }
  /* Avoid floating WhatsApp button overlapping the mobile navbar/menu */
  .whatsapp-float { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery-image-wrapper { min-height: 360px; }
  .gallery-overlay { font-size: 0.9rem; padding: 16px; }
  .traffic-signal { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.55rem, 13.5vw, 3.85rem); }
  .hero-content { padding-left: 14px; padding-right: 14px; }
  .hero-stats { width: 100%; }
  .stat { padding: 0 6px; }
  .section-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .enroll-form { padding: 24px 20px; }
  .course-card { padding: 24px 20px; }
  .gallery-image-wrapper { min-height: 320px; }
  .testimonial-card { padding: 22px 18px; }
}

@media (max-width: 360px) {
  .logo-main { font-size: 1rem; }
  .logo-sub { display: none; }
  .hero-title { font-size: clamp(2.2rem, 13vw, 3.25rem); }
  .hero-desc { font-size: 0.94rem; }
  .quick-num { font-size: 2rem; }
}
