﻿/* ============================================================
   EduPrime Academy — Premium Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #2a9d5c;
  --primary-dark: #1e7a45;
  --secondary: #f5c518;
  --accent: #3dd68c;
  --success: #2ecc71;
  --warning: #f5c518;
  --danger: #ef4444;
  --deep: #0a2e1a;

  --bg: #f0f7f3;
  --bg-alt: #e6f2ec;
  --surface: #ffffff;
  --surface-2: #eaf5ef;
  --border: rgba(42, 157, 92, 0.18);
  --border-glass: rgba(255, 255, 255, 0.6);

  --text-primary: #0a2e1a;
  --text-secondary: #2d6a4f;
  --text-muted: #74a98a;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 20px rgba(42,157,92,.15), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 60px rgba(42,157,92,.18), 0 8px 24px rgba(0,0,0,.07);
  --shadow-xl: 0 40px 80px rgba(42,157,92,.20);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --font-body: 'Inter', sans-serif;
  --font-head: 'Plus Jakarta Sans', sans-serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height: 85px;
  --container-max: 1280px;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg: #071a0f;
  --bg-alt: #0d2b18;
  --surface: #0f3d20;
  --surface-2: #133825;
  --border: rgba(42, 157, 92, 0.22);
  --border-glass: rgba(255, 255, 255, 0.06);

  --text-primary: #e8f5ee;
  --text-secondary: #7ec8a0;
  --text-muted: #3a7a55;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.6);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

html { overflow-x: hidden; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #0d3b2e;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Logo + spinning ring wrapper */
.loader-logo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The actual logo */
.loader-logo-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  animation: logoPulse 1.8s ease-in-out infinite;
}

/* Spinning ring around the logo */
.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #3dd68c;
  border-right-color: rgba(61,214,140,0.3);
  animation: spinRing 1.2s linear infinite;
}
.loader-ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: #f5c518;
  border-left-color: rgba(245,197,24,0.2);
  animation: spinRing 1.8s linear infinite reverse;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.96); opacity: 0.85; }
}

/* Progress bar */
.loader-bar {
  width: 160px; height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, #2a9d5c, #3dd68c, #f5c518);
  border-radius: var(--radius-full);
  animation: loaderAnim 1.8s ease forwards;
}
@keyframes loaderAnim {
  0%   { width: 0 }
  60%  { width: 70% }
  100% { width: 100% }
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.9375rem;
  transition: all var(--transition-bounce);
  white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 16px rgba(42,157,92,.4);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(42,157,92,.55);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
}
.btn-whatsapp:hover {
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Typography / Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Section Commons ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: linear-gradient(135deg, rgba(42,157,92,.12), rgba(61,214,140,.12));
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(42,157,92,.2);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Scroll Reveal ---------- */
[data-reveal], [data-reveal-right] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal-right] { transform: translateX(40px); }
[data-reveal].visible, [data-reveal-right].visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   ANNOUNCEMENT TICKER
   ============================================================ */
.announcement-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: linear-gradient(135deg, #0d3b2e 0%, #1b6b3a 50%, #0d3b2e 100%);
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(61,214,140,0.25);
}
.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #3dd68c;
  background: rgba(0,0,0,0.25);
  height: 100%;
  white-space: nowrap;
  border-right: 1px solid rgba(61,214,140,0.2);
}
.ticker-label i { font-size: 0.8rem; animation: tickerStar 1.4s ease-in-out infinite; }
@keyframes tickerStar {
  0%, 100% { transform: scale(1) rotate(0deg); color: #3dd68c; }
  50%       { transform: scale(1.3) rotate(15deg); color: #f5c518; }
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2f5ea;
  letter-spacing: 0.01em;
}
.ticker-item i { color: #f5c518; font-size: 0.8rem; flex-shrink: 0; }
.ticker-item a {
  color: #3dd68c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ticker-sep {
  display: inline-flex;
  align-items: center;
  color: rgba(61,214,140,0.4);
  font-size: 1rem;
  padding: 0 8px;
  user-select: none;
}
.ticker-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  border: none;
  border-left: 1px solid rgba(61,214,140,0.15);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}
.ticker-close:hover { background: rgba(0,0,0,0.4); color: #fff; }

/* Push navbar below the ticker */
.navbar { top: 36px !important; }
/* When ticker is hidden, reset */
body.ticker-hidden .announcement-bar { display: none; }
body.ticker-hidden .navbar { top: 0 !important; }

@media (max-width: 768px) {
  .announcement-bar { height: 32px; }
  .ticker-label { padding: 0 10px; font-size: 0.65rem; gap: 5px; }
  .ticker-item { font-size: 0.75rem; padding: 0 20px; }
  .navbar { top: 32px !important; }
  body.ticker-hidden .navbar { top: 0 !important; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(240,247,243,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
[data-theme="dark"] .navbar {
  background: rgba(7,26,15,0.95);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
}
.logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}
.logo-edu { color: var(--primary); }
.logo-prime { color: var(--secondary); }
.logo-academy { color: var(--text-secondary); font-weight: 500; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(42,157,92,.08);
}

/* ---- Dropdown Menu ---- */
.nav-item {
  position: relative;
  list-style: none;
}
.nav-item.has-dropdown > .nav-link {
  display: flex; align-items: center; gap: 5px;
}
.nav-item.has-dropdown > .nav-link .drop-arrow {
  font-size: 0.65rem;
  transition: transform var(--transition);
  margin-top: 1px;
}
.nav-item.has-dropdown:hover > .nav-link .drop-arrow,
.nav-item.has-dropdown.open > .nav-link .drop-arrow {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.13), 0 4px 16px rgba(42,157,92,0.10);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2000;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
/* Bridge the gap so mouse doesn't lose hover when moving into dropdown */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown.open .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown group label */
.drop-group-label {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 10px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.drop-item:hover {
  background: rgba(42,157,92,0.08);
  color: var(--primary);
  transform: translateX(3px);
}
.drop-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(42,157,92,0.12), rgba(61,214,140,0.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: all var(--transition);
}
.drop-item:hover .drop-icon {
  background: var(--primary);
  color: #fff;
}
.drop-text strong {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: inherit;
  line-height: 1.3;
}
.drop-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Dropdown section divider */
.drop-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* Bottom CTA strip inside dropdown */
.drop-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(42,157,92,0.08), rgba(245,197,24,0.08));
  border: 1px solid rgba(42,157,92,0.15);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 4px;
  gap: 12px;
}
.drop-cta p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}
.drop-cta p strong { color: var(--text-primary); }

/* Dark mode dropdown */
[data-theme="dark"] .dropdown {
  background: var(--surface);
  border-color: var(--border-glass);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Mobile dropdown */
@media (max-width: 768px) {
  .dropdown {
    position: static;
    transform: none;
    min-width: unset;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    background: transparent;
    grid-template-columns: 1fr;
    display: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-item.has-dropdown.open .dropdown { display: grid; }
  .drop-group-label { display: none; }
  .drop-divider { display: none; }
  .drop-cta { display: none; }
  .drop-item { padding: 8px 12px; border-radius: var(--radius-sm); }
}

.nav-actions {
  display: flex; align-items: center; gap: 12px;
}
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  transition: all var(--transition);
}
.theme-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
/* ---- Hero Light Pattern ---- */

/* Canvas for JS particles */
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* Radial spotlight base */
.hero-bg-orbs {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}

/* Sweeping beam rays */
.orb {
  position: absolute;
  transform-origin: bottom center;
  pointer-events: none;
}

/* Beam 1 — wide green sweep from top-right */
.orb-1 {
  width: 3px;
  height: 160%;
  top: -30%; right: 20%;
  background: linear-gradient(
    180deg,
    rgba(42,157,92,0) 0%,
    rgba(42,157,92,0.5) 30%,
    rgba(61,214,140,0.32) 70%,
    rgba(42,157,92,0) 100%
  );
  filter: blur(3px);
  box-shadow: 0 0 60px 20px rgba(42,157,92,0.15), 0 0 120px 60px rgba(42,157,92,0.07);
  transform-origin: top center;
  animation: beamSweep1 9s ease-in-out infinite;
}

/* Beam 2 — gold accent from left */
.orb-2 {
  width: 2px;
  height: 140%;
  top: -20%; left: 35%;
  background: linear-gradient(
    180deg,
    rgba(245,197,24,0) 0%,
    rgba(245,197,24,0.48) 40%,
    rgba(245,197,24,0.18) 75%,
    rgba(245,197,24,0) 100%
  );
  filter: blur(2px);
  box-shadow: 0 0 40px 16px rgba(245,197,24,0.12), 0 0 90px 40px rgba(245,197,24,0.05);
  transform-origin: top center;
  animation: beamSweep2 12s ease-in-out infinite;
  animation-delay: -4s;
}

/* Beam 3 — deep green from center-right */
.orb-3 {
  width: 2px;
  height: 120%;
  top: -10%; right: 45%;
  background: linear-gradient(
    180deg,
    rgba(30,122,69,0) 0%,
    rgba(30,122,69,0.42) 35%,
    rgba(42,157,92,0.22) 70%,
    rgba(30,122,69,0) 100%
  );
  filter: blur(2px);
  box-shadow: 0 0 30px 10px rgba(30,122,69,0.10), 0 0 70px 30px rgba(30,122,69,0.04);
  transform-origin: top center;
  animation: beamSweep3 10s ease-in-out infinite;
  animation-delay: -7s;
}

/* Extra ambient glow pools */
.hero-bg-orbs::before,
.hero-bg-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-bg-orbs::before {
  width: 700px; height: 700px;
  top: -220px; right: -140px;
  background: radial-gradient(circle at 50% 50%, rgba(42,157,92,0.13) 0%, transparent 65%);
  animation: glowPulse 7s ease-in-out infinite;
}
.hero-bg-orbs::after {
  width: 500px; height: 500px;
  bottom: -80px; left: -80px;
  background: radial-gradient(circle at 50% 50%, rgba(245,197,24,0.10) 0%, transparent 65%);
  animation: glowPulse 9s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes beamSweep1 {
  0%   { transform: rotate(-22deg) scaleY(1);   opacity: 0.7; }
  25%  { transform: rotate(-8deg)  scaleY(1.05); opacity: 1;   }
  50%  { transform: rotate(6deg)   scaleY(0.95); opacity: 0.75; }
  75%  { transform: rotate(-5deg)  scaleY(1.08); opacity: 0.9; }
  100% { transform: rotate(-22deg) scaleY(1);   opacity: 0.7; }
}
@keyframes beamSweep2 {
  0%   { transform: rotate(18deg)  scaleY(1);    opacity: 0.6; }
  30%  { transform: rotate(4deg)   scaleY(1.1);  opacity: 0.95; }
  60%  { transform: rotate(-12deg) scaleY(0.92); opacity: 0.65; }
  100% { transform: rotate(18deg)  scaleY(1);    opacity: 0.6; }
}
@keyframes beamSweep3 {
  0%   { transform: rotate(10deg)  scaleY(0.9);  opacity: 0.5; }
  40%  { transform: rotate(-15deg) scaleY(1.12); opacity: 0.9; }
  70%  { transform: rotate(5deg)   scaleY(1);    opacity: 0.6; }
  100% { transform: rotate(10deg)  scaleY(0.9);  opacity: 0.5; }
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1);    opacity: 0.8; }
  50%       { transform: scale(1.15); opacity: 1; }
}

/* Dot grid — tight, crisp */
.hero-grid-pattern {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(42,157,92,0.16) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 100%);
}
[data-theme="dark"] .hero-grid-pattern {
  background-image: radial-gradient(circle, rgba(42,157,92,0.24) 1px, transparent 1px);
}

.hero-container {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 60px;
}

/* Hero Content */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(42,157,92,.1), rgba(245,197,24,.1));
  border: 1px solid rgba(42,157,92,.25);
  border-radius: var(--radius-full);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42,157,92,.3); }
  50% { box-shadow: 0 0 0 8px rgba(42,157,92,.0); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; color: var(--text-secondary);
}
.trust-avatars {
  display: flex;
}
.trust-avatars img {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -10px;
  object-fit: cover;
}
.trust-avatars img:first-child { margin-left: 0; }
.hero-trust strong { color: var(--text-primary); }

/* Hero Visual */
.hero-visual { position: relative; }
.hero-card-stack { position: relative; }

.hero-dash-card {
  padding: 28px;
  max-width: 420px;
  margin: 0 auto;
  animation: heroCardFloat 4s ease-in-out infinite;
}
@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.dash-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.dash-avatar img {
  width: 52px; height: 52px;
  border-radius: 50%; object-fit: cover; object-position: top center;
  border: 2.5px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(42,157,92,0.18);
}
.dash-name { font-weight: 700; font-size: 0.9375rem; color: var(--text-primary); margin-bottom: 2px; }
.dash-role { font-size: 0.72rem; color: var(--text-secondary); line-height: 1.4; }
.dash-badge {
  margin-left: auto; flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.dash-badge.placed {
  background: rgba(16,185,129,.15);
  color: #059669;
  border: 1px solid rgba(16,185,129,.3);
}

.dash-progress { margin-bottom: 20px; }
.dash-progress p { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 8px; }
.progress-bar {
  height: 8px; background: var(--bg-alt);
  border-radius: var(--radius-full); overflow: hidden;
  margin-bottom: 6px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  animation: progressFill 2s ease forwards;
}
@keyframes progressFill {
  from { width: 0 }
}
.dash-progress span { font-size: 0.75rem; color: var(--primary); font-weight: 600; }

.dash-stats-row {
  display: flex; gap: 0;
}
.dash-stat {
  flex: 1; text-align: center;
  padding: 12px 8px;
  border-right: 1px solid var(--border);
}
.dash-stat:last-child { border-right: none; }
.dash-stat strong { display: block; font-size: 1.125rem; font-weight: 800; color: var(--text-primary); }
.dash-stat span { font-size: 0.75rem; color: var(--text-secondary); }

/* Float Badges */
.float-badge {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--text-primary);
  animation: floatBadge 3s ease-in-out infinite;
}
.float-badge i { color: var(--primary); }

.badge-cert   { top: -20px; left: -30px; animation-delay: -1s; }
.badge-intern { top: -16px; right: -20px; animation-delay: -2s; }
.badge-live   { top: 42%;  right: -44px; animation-delay: -0.5s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: livePulse 1.5s ease infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* Hero Stats Bar */
.hero-stats {
  position: relative; z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.stat-item {
  text-align: center;
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-item > span:first-child {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-item > span:nth-child(2) {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
}
.stat-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-visual { position: relative; }
.about-image-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.about-image-frame img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.about-img-badge {
  position: absolute; bottom: 20px; left: 20px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .about-img-badge {
  background: rgba(26,26,46,0.95);
}
.about-img-badge i {
  font-size: 1.5rem; color: var(--warning);
}
.about-img-badge strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.about-img-badge span { font-size: 0.8rem; color: var(--text-secondary); }

.about-side-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 20px;
}
.side-stat {
  padding: 20px;
  text-align: center;
}
.side-stat i { font-size: 1.5rem; color: var(--primary); margin-bottom: 8px; display: block; }
.side-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.side-stat span { font-size: 0.8125rem; color: var(--text-secondary); }

.mission-vision {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 36px;
}
.mv-card { padding: 20px; }
.mv-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 12px;
}
.mv-card h4 { font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.mv-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

.about-content h3 {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.why-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.why-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--transition);
}
.why-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42,157,92,.08);
  transform: translateX(4px);
}
.why-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(42,157,92,.12), rgba(61,214,140,.12));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.125rem;
}
.why-item strong { display: block; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.why-item p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; }

.partners-strip p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 12px; font-weight: 500; }
.partner-logos {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.partner-logos span {
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.partner-logos span:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================================
   COURSES
   ============================================================ */
.courses-filter {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface);
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(42,157,92,.35);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.course-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
}
.course-card.hidden { display: none; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.course-banner {
  padding: 36px 28px;
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.course-banner i {
  font-size: 2.75rem;
  color: rgba(255,255,255,0.9);
}
.course-level {
  background: rgba(255,255,255,.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
}

.course-body { padding: 24px 24px 20px; flex: 1; display: flex; flex-direction: column; }
.course-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(42,157,92,.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.course-body h3 {
  font-family: var(--font-head);
  font-size: 1.125rem; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.course-body p {
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 16px; flex: 1;
}
.course-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.course-meta span {
  font-size: 0.8125rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 4px;
}
.course-meta i { color: var(--primary); font-size: 0.75rem; }

.course-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.price-old {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: line-through;
  display: block;
}
.price-new {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

/* ============================================================
   INTERNSHIP
   ============================================================ */
.internship-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.intern-card {
  padding: 32px 24px;
  text-align: center;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
}
.intern-card .btn {
  margin-top: auto;
  align-self: center;
}
.intern-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.75rem; color: #fff;
  box-shadow: 0 8px 24px rgba(42,157,92,.3);
}
.intern-card h3 {
  font-family: var(--font-head);
  font-size: 1.125rem; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.intern-card > p {
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 20px;
}
.intern-benefits {
  text-align: left; margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.intern-benefits li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--text-secondary);
}
.intern-benefits i { color: var(--success); font-size: 0.875rem; flex-shrink: 0; }

/* Roadmap / Timeline */
.roadmap { max-width: 860px; margin: 0 auto; }
.roadmap-title {
  font-family: var(--font-head);
  font-size: 1.75rem; font-weight: 800;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 48px;
}
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 28px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s cubic-bezier(0.4,0,0.2,1);
}
.timeline.tl-visible::before { transform: scaleY(1); }

.timeline-item {
  display: flex; gap: 32px;
  margin-bottom: 32px;
  position: relative;
  /* scroll animation start state */
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.timeline-item.tl-item-visible {
  opacity: 1;
  transform: translateX(0);
}

.tl-dot {
  width: 56px; height: 56px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  box-shadow: 0 4px 16px rgba(42,157,92,.4);
  position: relative; z-index: 1;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.timeline-item.tl-item-visible .tl-dot {
  animation: dotPop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes dotPop {
  0%   { transform: scale(0.5); box-shadow: 0 0 0 0 rgba(42,157,92,.6); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1);   box-shadow: 0 4px 16px rgba(42,157,92,.4); }
}

.tl-content {
  flex: 1; padding: 20px 24px;
  border-radius: var(--radius-md);
  position: relative;
}
.tl-content h4 {
  font-weight: 700; font-size: 1rem;
  color: var(--text-primary); margin-bottom: 6px;
}
.tl-content p { font-size: 0.875rem; color: var(--text-secondary); }
.tl-step {
  position: absolute; top: 20px; right: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700;
}

/* ============================================================
   REGISTER FORM
   ============================================================ */
.register-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.register-info .section-tag { display: inline-block; }
.register-info .section-title { text-align: left; margin-bottom: 16px; }
.register-info > p {
  color: var(--text-secondary); margin-bottom: 32px; line-height: 1.7;
}

.reg-perks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.reg-perk {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9375rem; color: var(--text-secondary);
}
.reg-perk i { color: var(--success); font-size: 1rem; }

.reg-guarantee {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(42,157,92,.08), rgba(245,197,24,.08));
  border: 1px solid rgba(42,157,92,.2);
  border-radius: var(--radius-md);
  font-weight: 600; color: var(--primary);
}
.reg-guarantee i { font-size: 1.25rem; }

.register-form { padding: 40px 36px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 8px;
}
.input-wrapper {
  position: relative;
  display: flex; align-items: center;
}
.input-wrapper i {
  position: absolute; left: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  z-index: 1;
  transition: color var(--transition);
  /* Default: vertically centered for single-line inputs */
  top: 50%; transform: translateY(-50%);
}
/* For textarea: pin icon to top */
.input-wrapper:has(textarea) i {
  top: 14px; transform: none;
}
.input-wrapper input,
.input-wrapper textarea,
.input-wrapper select {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: all var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.input-wrapper textarea {
  padding-top: 14px;
  resize: vertical;
  align-self: flex-start;
  padding-left: 40px;
  min-height: 120px;
}
.input-wrapper select { cursor: pointer; }
.select-wrapper::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute; right: 14px;
  color: var(--text-muted);
  font-size: 0.75rem;
  pointer-events: none;
}
.input-wrapper input:focus,
.input-wrapper textarea:focus,
.input-wrapper select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42,157,92,.1);
  background: var(--surface);
}
.input-wrapper:focus-within i { color: var(--primary); }
.input-wrapper.error input,
.input-wrapper.error select { border-color: var(--danger); }

.form-error {
  display: block; font-size: 0.8rem; color: var(--danger);
  margin-top: 6px; min-height: 18px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: var(--radius-md);
  margin-top: 16px;
}
.form-success.visible { display: block; }
.form-success i { font-size: 2rem; color: var(--success); margin-bottom: 8px; display: block; }
.form-success strong { color: var(--text-primary); }
.form-success p { color: var(--text-secondary); font-size: 0.875rem; margin-top: 4px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-wrapper { position: relative; }
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  overflow: hidden;
  transition: all var(--transition);
}
.testi-card {
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  position: relative;
}
.testi-quote {
  font-size: 2rem; color: var(--primary);
  opacity: 0.4;
  margin-bottom: 16px;
  line-height: 1;
}
.testi-text {
  font-size: 0.9375rem; color: var(--text-secondary);
  line-height: 1.75; margin-bottom: 16px;
  font-style: italic;
}
.testi-rating {
  font-size: 1rem; color: var(--warning);
  letter-spacing: 2px; margin-bottom: 20px;
}
.testi-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testi-author img {
  width: 52px; height: 52px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--primary);
}
.testi-author strong { display: block; font-weight: 700; color: var(--text-primary); }
.testi-author span { font-size: 0.8125rem; color: var(--primary); display: block; }
.testi-author small { font-size: 0.75rem; color: var(--text-muted); }

.testi-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 40px;
}
.testi-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  font-size: 0.9rem;
}
.testi-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.testi-dots { display: flex; gap: 8px; }
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  transition: all var(--transition);
}
.testi-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   GALLERY  — Featured Hero + Asymmetric Bento Grid
   ============================================================ */
.gallery { background: var(--deep); position: relative; overflow: hidden; }
.gallery .section-tag { background: rgba(42,157,92,.15); border-color: rgba(42,157,92,.3); color: #3dd68c; }
.gallery .section-title { color: #e8f5ee; }
.gallery .section-sub { color: #7ec8a0; }
.gallery .gallery-filter .filter-btn { border-color: rgba(255,255,255,.12); color: #7ec8a0; background: rgba(255,255,255,.04); }
.gallery .gallery-filter .filter-btn:hover,
.gallery .gallery-filter .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.gallery .gallery-filter { margin-bottom: 8px; }

/* Subtle noise texture on dark bg */
.gallery::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.gallery .container { position: relative; z-index: 1; }

/* ---- Bento Grid Layout ---- */
.gallery-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 280px 280px;
  gap: 20px;
  margin-top: 32px;
}

/* Featured large card – spans 5 cols, 2 rows */
.gb-item {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #1c1917;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gb-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.gb-item.hidden { display: none; }
.gb-featured   { grid-column: span 5; grid-row: span 2; }
.gb-tall        { grid-column: span 3; grid-row: span 2; }
.gb-wide        { grid-column: span 7; grid-row: span 1; }
.gb-small       { grid-column: span 4; grid-row: span 1; }
.gb-med         { grid-column: span 4; grid-row: span 1; }

.gb-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1), filter 0.6s ease;
  filter: brightness(0.88) saturate(1.1);
}
.gb-item:hover img { transform: scale(1.07); filter: brightness(1) saturate(1.2); }

/* Overlay */
.gb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(12,10,9,0.85) 0%,
    rgba(12,10,9,0.2)  45%,
    transparent        75%
  );
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gb-item:hover .gb-overlay,
.gb-featured .gb-overlay { opacity: 1; }
.gb-featured .gb-overlay {
  background: linear-gradient(
    to top,
    rgba(12,10,9,0.9)  0%,
    rgba(12,10,9,0.35) 50%,
    transparent        80%
  );
}

.gb-cat {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 99px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 8px;
  width: fit-content;
}
.gb-title {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  color: #fff; line-height: 1.3;
}
.gb-featured .gb-title { font-size: 1.4rem; }
.gb-sub {
  font-size: 0.8125rem; color: rgba(255,255,255,.7);
  margin-top: 4px; line-height: 1.4;
}

/* Number badge on corner */
.gb-num {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
}

/* Play icon for featured */
.gb-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.8);
  width: 56px; height: 56px;
  background: rgba(42,157,92,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--transition-bounce);
  box-shadow: 0 0 0 12px rgba(42,157,92,.25);
}
.gb-featured:hover .gb-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* Stats bar below gallery */
.gallery-stats {
  display: flex; gap: 0;
  margin-top: 40px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
}
.gstat {
  flex: 1; padding: 28px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
}
.gstat:last-child { border-right: none; }
.gstat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.gstat span { font-size: 0.8125rem; color: #7ec8a0; }

/* ============================================================
   CONTACT  — Full-width Split with Map Hero
   ============================================================ */
.contact { background: var(--bg); }

.contact-hero-strip {
  background: linear-gradient(135deg, var(--deep) 0%, #1c0a04 60%, #0c1a2e 100%);
  border-radius: var(--radius-xl);
  padding: 56px 56px 0;
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 48px;
  align-items: end;
  overflow: hidden;
  position: relative;
}
.contact-hero-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(42,157,92,.12) 0%, transparent 65%);
  pointer-events: none;
}

.contact-hero-left { padding-bottom: 56px; position: relative; z-index: 1; }
.contact-hero-left .section-tag { background: rgba(42,157,92,.15); border-color: rgba(42,157,92,.3); color: #3dd68c; }
.contact-hero-left h2 {
  font-family: var(--font-head);
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 900; color: #fff;
  line-height: 1.2; margin: 16px 0 20px;
}
.contact-hero-left p { color: #7ec8a0; line-height: 1.7; max-width: 420px; }

.contact-quick-links {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 32px;
}
.cq-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-full);
  color: #e7e5e4; font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.cq-link i { color: var(--primary); }
.cq-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.cq-link:hover i { color: #fff; }

/* Map card sits at bottom of strip */
.contact-map-card {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  height: 300px;
  border: 1px solid rgba(255,255,255,.08);
  border-bottom: none;
  box-shadow: 0 -8px 40px rgba(0,0,0,.4);
  position: relative; z-index: 1;
}
.contact-map-card iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Info + Form grid below the strip */
.contact-bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.cinfo-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cinfo-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.cinfo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.cinfo-card:hover::before { transform: scaleX(1); }

.cinfo-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(42,157,92,.12), rgba(61,214,140,.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; color: var(--primary);
  margin-bottom: 16px;
}
.cinfo-card h4 { font-weight: 700; font-size: 0.9375rem; color: var(--text-primary); margin-bottom: 8px; }
.cinfo-card p, .cinfo-card a { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; display: block; word-break: break-word; overflow-wrap: anywhere; }
.cinfo-card a { color: var(--primary); transition: color var(--transition); word-break: break-word; overflow-wrap: anywhere; }
.cinfo-card a:hover { color: var(--primary-dark); }

/* Contact form — full-width with side panel */
.contact-form-section {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.contact-form-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 40px;
  box-shadow: var(--shadow-md);
}
.contact-form-main h3 {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 800;
  color: var(--text-primary); margin-bottom: 6px;
}
.contact-form-main > p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 28px; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.contact-side-panel {
  display: flex; flex-direction: column; gap: 16px;
}
.csp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.csp-card h4 { font-weight: 700; font-size: 1rem; color: var(--text-primary); margin-bottom: 12px; }
.csp-hours { display: flex; flex-direction: column; gap: 8px; }
.csp-hour {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.875rem;
}
.csp-hour span:first-child { color: var(--text-secondary); }
.csp-hour span:last-child { font-weight: 600; color: var(--text-primary); }
.csp-hour.today span:last-child { color: var(--primary); }

.csp-social h4 { margin-bottom: 14px; }
.csp-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.csp-social-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.csp-social-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.csp-social-link i { font-size: 0.875rem; }

.csp-wa {
  background: linear-gradient(135deg, #128c7e, #25d366);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  color: #fff;
}
.csp-wa i { font-size: 2.5rem; margin-bottom: 12px; display: block; opacity: 0.9; }
.csp-wa h4 { font-weight: 800; margin-bottom: 6px; color: #fff; }
.csp-wa p { font-size: 0.8125rem; opacity: 0.85; margin-bottom: 16px; }
.csp-wa .btn { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 100%; justify-content: center; }
.csp-wa .btn:hover { background: rgba(255,255,255,.3); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(42,157,92,.06); }
.faq-item.open { border-color: var(--primary); }

.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 0.9375rem; font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: rgba(42,157,92,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: var(--primary);
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.7;
}

.faq-contact {
  padding: 40px 32px;
  text-align: center;
  position: sticky; top: calc(var(--nav-height) + 20px);
}
.faq-contact-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem; color: #fff;
  box-shadow: 0 8px 24px rgba(42,157,92,.35);
}
.faq-contact h3 {
  font-family: var(--font-head);
  font-size: 1.375rem; font-weight: 800;
  color: var(--text-primary); margin-bottom: 10px;
}
.faq-contact > p {
  font-size: 0.9rem; color: var(--text-secondary);
  margin-bottom: 28px; line-height: 1.6;
}
.faq-contact .btn { width: 100%; justify-content: center; margin-bottom: 12px; }
.faq-quick {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-md);
  font-size: 0.8125rem; color: var(--text-secondary);
}
.faq-quick strong { color: var(--success); }

/* ============================================================
   CONTACT
   ============================================================ */

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-top { padding: 80px 0 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.7; margin: 16px 0 24px;
  max-width: 280px;
}
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 0.875rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-weight: 700; font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.9rem; color: var(--text-secondary);
  transition: color var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-col a:hover { color: var(--primary); padding-left: 4px; }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 0.875rem; color: var(--text-secondary); }
.footer-badges {
  display: flex; gap: 12px;
}
.footer-badges span {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; color: var(--text-muted);
  padding: 4px 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
.footer-badges i { color: var(--success); }

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 100px; right: 28px; z-index: 900;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: all var(--transition-bounce);
}
.whatsapp-fab:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,.65);
}
.fab-tooltip {
  position: absolute;
  right: 68px;
  background: var(--text-primary);
  color: var(--surface);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem; font-weight: 600;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transform: translateX(8px);
  transition: all var(--transition);
}
.fab-tooltip::after {
  content: '';
  position: absolute; right: -6px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--text-primary);
}
.whatsapp-fab:hover .fab-tooltip { opacity: 1; transform: translateX(0); }

.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px; z-index: 900;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.875rem;
  box-shadow: 0 4px 16px rgba(42,157,92,.4);
  opacity: 0; transform: translateY(16px);
  transition: all var(--transition-bounce);
  pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(42,157,92,.55); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .internship-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .hero-card-stack {
    padding: 28px 20px 16px;
  }
  /* Keep float badges visible but pull them in so they don't overflow */
  .badge-intern { top: -10px; right: 0; }
  .badge-live   { top: 44%; right: 0; }
  .hero-dash-card { max-width: 100%; }
  .hero-content { text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-subtitle { margin: 0 auto 36px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .register-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-contact { position: static; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }

  .gallery-bento { grid-template-columns: repeat(6, 1fr); grid-template-rows: 240px 240px; gap: 16px; }
  .gb-featured { grid-column: span 4; grid-row: span 2; }
  .gb-tall { grid-column: span 2; grid-row: span 2; }
  .gb-wide { grid-column: span 4; }
  .gb-small { grid-column: span 2; }
  .gb-med { grid-column: span 3; }

  .contact-hero-strip { grid-template-columns: 1fr; padding: 40px 36px 0; }
  .contact-map-card { height: 260px; border-radius: 20px; margin-bottom: 0; }
  .contact-bottom-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form-section { grid-template-columns: 1fr; }
  .contact-side-panel { display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .contact-side-panel .csp-card { flex: 1 1 calc(50% - 8px); }
}

/* ---- 768px — Full Mobile ---- */
@media (max-width: 768px) {
  :root { --nav-height: 100px; }
  .section { padding: 56px 0; }

  /* === NAVBAR === */
  .navbar {
    height: var(--nav-height);
    background: rgba(240,247,243,0.97) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  }
  [data-theme="dark"] .navbar {
    background: rgba(7,26,15,0.97) !important;
  }
  .nav-container {
    height: var(--nav-height);
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .nav-logo { flex-shrink: 0; }
  .logo-img {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain;
    border-radius: 50%;
  }

  /* === MOBILE MENU OVERLAY === */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-height));
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, visibility 0.22s, transform 0.22s ease;
    pointer-events: none;
    gap: 0;
    z-index: 999;
    border-top: 3px solid var(--primary);
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  }
  [data-theme="dark"] .nav-links { background: #0f2b1a; }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-item { width: 100%; list-style: none; }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    transition: background 0.18s, color 0.18s;
  }
  .nav-link:hover,
  .nav-link.active {
    color: var(--primary);
    background: rgba(42,157,92,0.06);
  }
  .nav-item:last-child > .nav-link { border-bottom: none; }

  /* === MOBILE DROPDOWN === */
  .dropdown {
    position: static !important;
    transform: none !important;
    min-width: unset !important;
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 4px 0 8px 20px;
    margin: 0;
    background: var(--bg-alt);
    border: none;
    border-left: 3px solid var(--primary);
    border-radius: 0;
    box-shadow: none;
  }
  .nav-item.has-dropdown.open .dropdown { display: grid; }

  .drop-item {
    padding: 13px 14px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transform: none !important;
  }
  .drop-item:hover { background: rgba(42,157,92,0.08); color: var(--primary); }
  .drop-icon { width: 28px; height: 28px; font-size: 0.72rem; background: rgba(42,157,92,0.1); color: var(--primary); }
  .drop-text strong { color: var(--text-primary); font-size: 0.875rem; }
  .drop-text span { color: var(--text-muted); font-size: 0.75rem; }
  .drop-arrow { color: var(--text-muted); font-size: 0.7rem; }
  .drop-group-label, .drop-divider, .drop-cta { display: none; }

  /* === HAMBURGER === */
  .hamburger { display: flex; }
  .hamburger span { background: var(--text-primary); }

  /* === NAV ACTIONS === */
  .nav-actions { gap: 8px; align-items: center; }
  .btn-sm { padding: 8px 14px; font-size: 0.8rem; white-space: nowrap; }
  .theme-toggle {
    width: 36px; height: 36px;
    background: var(--bg-alt);
    border-color: var(--border);
    color: var(--text-secondary);
  }
  /* === HERO === */
  .hero { padding-top: calc(var(--nav-height) + 32px); padding-bottom: 0; }
  .hero-content { text-align: left; padding: 0 4px; }
  .hero-title { font-size: 2rem; line-height: 1.2; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 28px; }
  .hero-badge { font-size: 0.75rem; padding: 6px 12px; }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  .hero-trust { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }

  /* Hero card — show on mobile, full width, no overflow */
  .hero-visual {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0 4px;
  }
  .hero-card-stack {
    padding: 16px 8px 8px;
    overflow: visible;
  }
  .hero-dash-card {
    max-width: 100%;
    padding: 20px 16px;
    animation: none; /* stop float on mobile to avoid layout shift */
  }
  .dash-header { gap: 10px; }
  .dash-name { font-size: 0.875rem; }
  .dash-role { font-size: 0.68rem; }
  .dash-stats-row { gap: 0; }
  .dash-stat strong { font-size: 1rem; }
  .dash-stat span { font-size: 0.7rem; }
  /* Pull float badges in on mobile */
  .float-badge { font-size: 0.75rem; padding: 8px 12px; }
  .badge-intern { top: -8px; right: 4px; }
  .badge-live   { top: 46%; right: 4px; }

  /* Hero stats bar */
  .hero-stats { padding: 24px 0; }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .stat-item {
    padding: 16px 12px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
  }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-item p { font-size: 0.75rem; }
  .stat-item i { font-size: 1.25rem !important; }

  /* === SECTION HEADERS === */
  .section-title { font-size: 1.6rem; line-height: 1.3; }
  .section-sub { font-size: 0.9rem; }
  .section-tag { font-size: 0.7rem; }

  /* === ABOUT GRID === */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image-frame { max-width: 100%; border-radius: var(--radius-lg); }
  .about-image-frame img { width: 100%; border-radius: var(--radius-lg); }
  .about-side-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .side-stat { padding: 16px 12px; }
  .side-stat strong { font-size: 1rem; }
  .about-img-badge {
    bottom: 12px; left: 12px; right: 12px;
    padding: 10px 12px;
    font-size: 0.75rem;
  }
  .mission-vision { grid-template-columns: 1fr; gap: 12px; }
  .mv-card { padding: 20px 16px; }

  /* === COURSES GRID === */
  .courses-grid { grid-template-columns: 1fr; gap: 16px; }
  .courses-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .filter-btn { font-size: 0.8rem; padding: 7px 14px; }
  .course-card { border-radius: var(--radius-md); }
  .course-banner { padding: 20px 16px; }
  .course-body { padding: 16px; }
  .course-footer { flex-wrap: wrap; gap: 8px; }

  /* === INTERNSHIP / WHY CARDS === */
  .internship-grid { grid-template-columns: 1fr; gap: 16px; }
  .intern-card { padding: 24px 20px; }
  .intern-icon { width: 52px; height: 52px; font-size: 1.25rem; margin-bottom: 16px; }

  /* === TIMELINE === */
  .timeline { padding-left: 0; }
  .timeline-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: start;
    padding-left: 0;
  }
  .tl-dot {
    width: 44px; height: 44px;
    font-size: 0.875rem;
    flex-shrink: 0;
    position: static;
    margin: 0;
  }
  .tl-content {
    padding: 16px;
    position: relative;
  }
  .tl-step {
    position: static;
    display: inline-block;
    margin-top: 8px;
    font-size: 0.7rem;
    padding: 3px 10px;
  }
  .tl-content h4 { font-size: 0.95rem; padding-right: 0; }

  /* === REGISTER / FORM === */
  .register-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .register-form { padding: 24px 16px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .reg-perks { gap: 10px; }
  .reg-perk { font-size: 0.875rem; }
  .reg-guarantee { padding: 12px 14px; font-size: 0.8rem; }

  /* === GALLERY === */
  .gallery-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
    margin-top: 24px;
  }
  .gb-featured,
  .gb-tall,
  .gb-wide,
  .gb-small,
  .gb-med {
    grid-column: span 1;
    grid-row: span 1;
    height: auto;
    min-height: 280px;
    border-radius: 18px;
  }
  .gb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
  /* For portrait images — show full image without cropping */
  .gb-item {
    aspect-ratio: 3 / 4;
    height: auto !important;
  }
  .gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0 4px;
  }
  .gallery .gallery-filter .filter-btn {
    flex: 0 0 calc(33.333% - 8px);
    text-align: center;
    justify-content: center;
    padding: 11px 8px;
    font-size: 0.85rem;
    border-radius: 99px;
    min-width: 0;
  }
  /* Last 2 buttons share the row centred — each 47% wide */
  .gallery .gallery-filter .filter-btn:nth-child(4),
  .gallery .gallery-filter .filter-btn:nth-child(5) {
    flex: 0 0 calc(47% - 5px);
  }
  .gallery-stats {
    flex-wrap: wrap;
    gap: 0;
    margin-top: 24px;
  }
  .gstat {
    min-width: 50%;
    padding: 20px 12px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .gstat:nth-child(2n) { border-right: none; }
  .gstat i { margin-bottom: 8px; }
  .gstat span { font-size: 0.8rem; color: #7ec8a0; }

  /* === CONTACT === */
  .contact-hero-strip {
    padding: 20px 16px 0;
    flex-direction: column;
    gap: 20px;
    border-radius: var(--radius-md);
    margin: 0 0 24px;
  }
  .contact-hero-left { padding-bottom: 0; }
  .contact-hero-left h2 { font-size: 1.5rem; line-height: 1.3; word-break: break-word; }
  .contact-hero-left p { font-size: 0.875rem; max-width: 100%; }
  .contact-map-card { height: 200px; border-radius: var(--radius-md); margin: 0 0 20px; }
  .contact-quick-links { flex-direction: column; gap: 8px; }
  .cq-link {
    justify-content: flex-start;
    font-size: 0.875rem;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: rgba(42,157,92,0.08);
    border: 1px solid rgba(42,157,92,0.15);
  }

  /* Contact info cards */
  .contact-bottom-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .cinfo-card { padding: 18px 16px; }
  .cinfo-card h4 { font-size: 0.9rem; margin-bottom: 8px; }
  .cinfo-card p, .cinfo-card a { font-size: 0.8rem; word-break: break-word; overflow-wrap: anywhere; }

  /* Form + side panel */
  .contact-form-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Main form */
  .contact-form-main {
    padding: 20px 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  .contact-form-main h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    word-break: break-word;
    margin-bottom: 6px;
  }
  .contact-form-main > p { font-size: 0.82rem; margin-bottom: 16px; }
  .cf-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .form-group { margin-bottom: 12px; }
  .form-group:last-of-type { margin-bottom: 16px; }
  .form-group label { font-size: 0.82rem; margin-bottom: 5px; display: block; }
  .input-wrapper {
    border-radius: var(--radius-md);
  }
  .input-wrapper input,
  .input-wrapper select,
  .input-wrapper textarea {
    font-size: 0.875rem;
    padding: 11px 11px 11px 38px;
  }
  .btn-full {
    padding: 14px 20px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  /* Side panel — stack all vertically, full width */
  .contact-side-panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
    width: 100%;
  }
  .contact-side-panel .csp-card {
    flex: none !important;
    width: 100%;
  }
  .csp-wa { width: 100%; }
  .csp-card {
    padding: 18px 16px;
    border-radius: var(--radius-md);
    width: 100%;
  }
  .csp-card h4 { font-size: 0.9rem; margin-bottom: 10px; }
  .csp-hour { font-size: 0.82rem; padding: 6px 0; }
  .csp-hour span:last-child { font-weight: 700; }
  .csp-social-links { gap: 8px; }
  .csp-social-link {
    padding: 9px 12px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
  }
  .csp-wa {
    padding: 20px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    width: 100%;
  }
  .csp-wa i { font-size: 2rem; margin-bottom: 8px; }
  .csp-wa h4 { font-size: 1rem; margin-bottom: 6px; }
  .csp-wa p { font-size: 0.82rem; margin-bottom: 14px; }
  .csp-wa .btn { padding: 12px 20px; font-size: 0.875rem; }

  /* === FAQ === */
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-question { padding: 16px; font-size: 0.9rem; }
  .faq-answer { padding: 0 16px 16px; }
  .faq-contact { padding: 28px 20px; }

  /* === FEATURES GRID === */
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 20px 16px; }
  .feat-icon { width: 44px; height: 44px; font-size: 1rem; margin-bottom: 12px; }

  /* === RESULT STATS === */
  .result-stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rstat-card { padding: 20px 14px; }
  .rstat-num { font-size: 1.25rem !important; }
  .rstat-label { font-size: 0.75rem; }

  /* === SUBJECT TABS === */
  .subject-tabs {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .subj-tab { padding: 8px 14px; font-size: 0.8rem; }
  .subj-panel-inner { grid-template-columns: 1fr; gap: 28px; }
  .subj-image { display: none; }
  .subj-stat-cards { display: none; }

  /* === SCHEDULE GRID === */
  .schedule-grid { grid-template-columns: 1fr; gap: 12px; }
  .sch-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; padding: 14px 16px; }
  .sch-time { font-size: 0.8rem; font-weight: 700; color: var(--primary); padding-top: 2px; }
  .sch-event h4 { font-size: 0.875rem; margin-bottom: 4px; }
  .sch-event p { font-size: 0.8rem; }

  /* === FACULTY GRID === */
  .faculty-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .faculty-card { padding: 16px 12px; }
  .faculty-card img { width: 72px; height: 72px; }
  .faculty-card h4 { font-size: 0.875rem; }
  .faculty-tags { flex-wrap: wrap; gap: 4px; }
  .faculty-tags span { font-size: 0.65rem; padding: 2px 8px; }

  /* === TOPPERS GRID === */
  .toppers-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .topper-card { padding: 16px 12px; }
  .topper-rank { font-size: 0.75rem; padding: 4px 10px; }

  /* === PARTNERS / COLLEGES === */
  .partner-logos { flex-wrap: wrap; gap: 8px; }
  .colleges-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .college-pill { font-size: 0.8rem; padding: 8px 12px; }

  /* === FOOTER === */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-top { padding: 48px 0 36px; }
  .footer-brand p { max-width: 100%; }
  .footer-col h4 { margin-bottom: 12px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer-badges { flex-wrap: wrap; justify-content: center; }

  /* === FLOATING BUTTONS — avoid overlap === */
  .whatsapp-fab {
    bottom: 80px;
    right: 16px;
    width: 50px; height: 50px;
    font-size: 1.25rem;
  }
  .scroll-top {
    bottom: 20px;
    right: 16px;
    width: 42px; height: 42px;
    font-size: 0.8rem;
  }
  .fab-tooltip { display: none; }

  /* === COMPARE TABLE === */
  .compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table { min-width: 480px; font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 10px 10px; }

  /* === PAGE HERO === */
  .page-hero { padding: 100px 0 40px; }
  .page-hero-content h1 { font-size: 1.75rem; }
  .page-hero-content p { font-size: 0.9rem; }
  .page-breadcrumb { font-size: 0.8rem; margin-bottom: 12px; }

  /* === ROADMAP === */
  .roadmap { padding: 0; }
  .roadmap-title { font-size: 1.25rem; margin-bottom: 28px; }

  /* === WHY LIST === */
  .why-list { gap: 14px; }
  .why-item { gap: 12px; }
  .why-icon { width: 38px; height: 38px; font-size: 0.875rem; flex-shrink: 0; }
  .why-item strong { font-size: 0.9rem; }
  .why-item p { font-size: 0.8rem; }

  /* === INTERN BENEFITS === */
  .intern-benefits { gap: 8px; }
  .intern-benefits li { font-size: 0.85rem; }

  /* === SECTION HEADERS === */
  .section-header { margin-bottom: 36px; }

  /* === PARENTING MISSION VISION === */
  .mission-vision { grid-template-columns: 1fr; }

  /* === ABOUT PAGE SPECIFICS === */
  .about-side-stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

  /* === CENTRES GRID === */
  .centres-grid { grid-template-columns: 1fr; gap: 14px; }
  .centre-card { padding: 20px 16px; }
}

/* ---- 480px — Small phones ---- */
@media (max-width: 480px) {
  :root { --nav-height: 100px; }

  .hero-title { font-size: 1.75rem; }
  .section-title { font-size: 1.4rem; }
  .hero-ctas .btn { padding: 13px 16px; font-size: 0.9rem; }

  /* Hero card compact on small phones */
  .hero-dash-card { padding: 16px 12px; }
  .dash-header { gap: 8px; margin-bottom: 14px; }
  .dash-progress p { font-size: 0.75rem; }
  .float-badge { font-size: 0.7rem; padding: 6px 10px; gap: 5px; }
  .badge-intern { top: -6px; right: 2px; }
  .badge-live   { right: 2px; }

  /* Single column for very small screens */
  .faculty-grid { grid-template-columns: 1fr; }
  .toppers-grid { grid-template-columns: 1fr; }
  .result-stats-grid { grid-template-columns: 1fr 1fr; }
  .about-side-stats { grid-template-columns: 1fr; }

  .gallery-bento { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .gb-featured, .gb-tall, .gb-wide, .gb-small, .gb-med {
    height: auto !important;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
  }
  .gallery-filter {
    gap: 10px;
    margin-bottom: 16px;
  }
  .gallery .gallery-filter .filter-btn {
    flex: 0 0 calc(33.333% - 8px);
    padding: 10px 6px;
    font-size: 0.8rem;
  }
  .gallery .gallery-filter .filter-btn:nth-child(4),
  .gallery .gallery-filter .filter-btn:nth-child(5) {
    flex: 0 0 calc(47% - 5px);
  }
  .gallery-stats { margin-top: 20px; }

  /* Stats bar single column */
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Nav brand area */
  .logo-img { width: 100px !important; height: 100px !important; }
  .btn-sm { padding: 7px 12px; font-size: 0.75rem; }

  /* Reduce padding on cards */
  .glass-card { padding: 16px 14px; }
  .intern-card { padding: 20px 16px; }
  .course-body { padding: 14px; }

  /* Timeline compact */
  .tl-dot { width: 38px; height: 38px; font-size: 0.75rem; }
  .tl-content { padding: 12px 14px; }
  .tl-content h4 { font-size: 0.875rem; }
  .tl-content p { font-size: 0.8rem; }

  /* Footer */
  .footer-top { padding: 36px 0 28px; }
  .footer-col ul { gap: 8px; }
  .footer-col a { font-size: 0.85rem; }

  /* Floating buttons */
  .whatsapp-fab { width: 46px; height: 46px; bottom: 74px; right: 14px; font-size: 1.1rem; }
  .scroll-top { width: 38px; height: 38px; bottom: 18px; right: 14px; }

  /* Register & contact form */
  .register-form, .contact-form-main { padding: 18px 14px; }
  .contact-form-main h3 { font-size: 1.1rem; }
  .form-group { margin-bottom: 12px; }
  .form-group label { font-size: 0.78rem; }
  .input-wrapper input, .input-wrapper select, .input-wrapper textarea {
    font-size: 0.85rem;
    padding: 10px 10px 10px 34px;
  }

  /* Page hero */
  .page-hero-content h1 { font-size: 1.5rem; }
  .page-hero { padding: 90px 0 32px; }

  /* Section tags */
  .section-tag { font-size: 0.65rem; padding: 4px 12px; }

  /* Colleges grid */
  .colleges-grid { grid-template-columns: 1fr; }
  .compare-table { min-width: 420px; font-size: 0.75rem; }
}

