/* =========================================================
   DAKSHA COACHING CENTRE — v3 new design
   Mobile-first, modern, accessible
   ========================================================= */

:root {
  /* Brand palette — based on logo colours #29166e (deep indigo-purple) + #0094dd (sky blue) */
  --brand-ink: #1a0a4a;           /* darkest — used for deepest backgrounds */
  --brand-primary: #29166e;       /* logo purple — main brand */
  --brand-primary-soft: #4f2aa8;  /* lighter purple for hovers */
  --brand-accent: #0094dd;        /* logo blue — CTAs, highlights */
  --brand-accent-soft: #3cb4ee;   /* lighter blue — gradient pair, hovers */
  --brand-gold: #f5b400;          /* kept — stars, rank badges */
  --brand-success: #1fbf75;
  --text-900: #0b1020;
  --text-700: #2a3149;
  --text-500: #5b6378;
  --text-400: #8a92a6;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --surface-softer: #eef1f8;
  --border: #e3e7f1;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(15, 18, 69, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 18, 69, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 18, 69, 0.14);
  --container: 1180px;
  --nav-h: 64px;
  --mobile-bar-h: 64px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text-700);
  background: var(--surface);
  line-height: 1.55;
  min-height: 100vh;
  padding-bottom: var(--mobile-bar-h); /* leave room for mobile bottom nav */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { color: var(--text-900); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }

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

/* Utility */
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 5vw, 38px); margin-bottom: 10px; }
.section-lead { color: var(--text-500); max-width: 640px; margin: 0 auto 28px; font-size: 16px; }

/* ============== HEADER ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand-ink);
}
.brand img { height: 42px; width: auto; border-radius: 6px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text span:first-child { font-size: 16px; letter-spacing: 0.02em; }
.brand-text span:last-child { font-size: 10px; color: var(--text-500); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }

/* Footer brand override */
.site-footer .brand img { height: 52px; }

@media (min-width: 900px) {
  .brand img { height: 50px; }
}

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 4px; align-items: center; }
.nav-desktop a {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-700);
  transition: background 0.2s, color 0.2s;
}
.nav-desktop a:hover { background: var(--surface-soft); color: var(--brand-ink); }
.nav-desktop a.active { color: var(--brand-primary); background: var(--surface-soft); }

.header-cta { display: none; }
.header-cta .btn { padding: 9px 16px; font-size: 14px; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--brand-ink);
  font-size: 18px;
}

/* Slide-in mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 18, 69, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu .panel {
  position: absolute;
  top: 0; right: 0;
  width: min(84vw, 340px);
  height: 100%;
  background: #fff;
  padding: 22px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
}
.mobile-menu.open .panel { transform: translateX(0); }
.mobile-menu .close {
  align-self: flex-end;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 20px;
  color: var(--text-700);
}
.mobile-menu a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text-700);
}
.mobile-menu a:hover, .mobile-menu a.active {
  background: var(--surface-soft);
  color: var(--brand-primary);
}
.mobile-menu .cta-row { margin-top: 14px; display: flex; gap: 8px; }
.mobile-menu .cta-row .btn { flex: 1; justify-content: center; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-accent) 0%, #3cb4ee 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 148, 221, 0.30);
}
.btn-primary:hover { box-shadow: 0 14px 26px rgba(0, 148, 221, 0.42); }
.btn-dark {
  background: var(--brand-ink);
  color: #fff;
}
.btn-dark:hover { background: #3a1f8f; }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-900);
}
.btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-ghost { color: var(--brand-primary); padding: 8px 0; }
.btn-ghost:hover { color: var(--brand-ink); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ============== HERO ============== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1100px 600px at 80% -20%, #0094dd 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 110%, #4f2aa8 0%, transparent 55%),
              linear-gradient(180deg, #1a0a4a 0%, #29166e 100%);
  color: #fff;
  padding: clamp(60px, 9vw, 110px) 0 clamp(70px, 9vw, 110px);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  z-index: 0;
}
.hero::before { width: 320px; height: 320px; background: #0094dd; top: -60px; right: -60px; }
.hero::after  { width: 380px; height: 380px; background: #4f2aa8; bottom: -120px; left: -80px; }
.hero .inner { position: relative; z-index: 1; display: grid; gap: 36px; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: #fff;
  backdrop-filter: blur(10px);
}
.hero-badge i { color: var(--brand-gold); }
.hero h1 {
  color: #fff;
  font-size: clamp(30px, 6.5vw, 56px);
  line-height: 1.08;
  margin-top: 14px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #ffd668 0%, #f5b400 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin-top: 16px;
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
}
.hero .ctas {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero .btn-outline {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.hero .btn-outline:hover { background: rgba(255,255,255,0.16); }
.hero-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 520px;
}
.hero-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}
.hero-stat strong { display: block; font-size: 22px; color: #fff; }
.hero-stat span { font-size: 12px; color: rgba(255,255,255,0.75); }

.hero-visual {
  position: relative;
  display: none;
}
.hero-visual .card {
  position: absolute;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.92);
  color: var(--text-900);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(10px);
}
.hero-visual .card i { color: var(--brand-success); font-size: 18px; }
.hero-visual .card.top { top: 40px; left: 20px; }
.hero-visual .card.bottom { bottom: 40px; right: 30px; }
.hero-visual .main-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,0.2);
}

/* ===== Animated SVG hero illustration =====
   IMPORTANT: every inner animated <g>/<circle> sits inside a
   wrapper <g transform="translate(...)"> that handles positioning.
   The CSS animation only manipulates a child element's transform,
   so it never collides with the positioning transform above it. */
.hero-illustration {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  max-width: 560px;
  margin: 0 auto;
}
.hero-illustration svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Shared origin helpers */
.hero-illustration .anim-bob,
.hero-illustration .anim-bob-slow,
.hero-illustration .anim-pulse,
.hero-illustration .anim-twinkle,
.hero-illustration .anim-spin-slow,
.hero-illustration .anim-wiggle,
.hero-illustration .anim-rise {
  transform-origin: center;
  transform-box: fill-box;
}

/* Individual animations */
.hero-illustration .anim-bob       { animation: heroBob 4s ease-in-out infinite; }
.hero-illustration .anim-bob-slow  { animation: heroBob 5.5s ease-in-out infinite; }
.hero-illustration .anim-pulse     { animation: heroPulse 3s ease-in-out infinite; }
.hero-illustration .anim-twinkle   { animation: heroTwinkle 2.8s ease-in-out infinite; }
.hero-illustration .anim-spin-slow { animation: heroSpin 40s linear infinite; }
.hero-illustration .anim-wiggle    { animation: heroWiggle 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
.hero-illustration .anim-rise      { animation: heroRise 6s ease-in infinite; opacity: 0; }

/* Staggered delays (applied via same classes on any animation) */
.hero-illustration .anim-delay-1 { animation-delay: 0.6s; }
.hero-illustration .anim-delay-2 { animation-delay: 1.2s; }
.hero-illustration .anim-delay-3 { animation-delay: 1.8s; }
.hero-illustration .anim-delay-4 { animation-delay: 2.4s; }

@keyframes heroBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1);    opacity: 0.55; }
  50%      { transform: scale(1.14); opacity: 0.15; }
}
@keyframes heroTwinkle {
  0%, 100% { transform: scale(0.8); opacity: 0.3; }
  50%      { transform: scale(1.25); opacity: 1; }
}
@keyframes heroSpin {
  to { transform: rotate(360deg); }
}
@keyframes heroWiggle {
  0%, 100% { transform: rotate(-6deg); }
  50%      { transform: rotate(6deg); }
}
@keyframes heroRise {
  0%   { transform: translateY(0);     opacity: 0; }
  15%  { opacity: 0.9; }
  100% { transform: translateY(-120px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-illustration [class*="anim-"] { animation: none !important; }
}

/* ============== PAGE BANNER ============== */
.page-banner {
  position: relative;
  background: linear-gradient(135deg, #1a0a4a 0%, #29166e 100%);
  color: #fff;
  padding: clamp(50px, 8vw, 80px) 0 clamp(38px, 6vw, 54px);
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 90% 10%, rgba(0,148,221,0.35), transparent 60%);
}
.page-banner .inner { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: clamp(28px, 5.2vw, 44px); }
.crumbs { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,0.8); }
.crumbs a { color: var(--brand-accent-soft); }
.crumbs a:hover { text-decoration: underline; }

/* ============== SECTIONS ============== */
.section { padding: clamp(54px, 8vw, 92px) 0; }
.section.soft { background: var(--surface-soft); }
.section-head { text-align: center; margin-bottom: 38px; }

/* ============== CARDS / GRID ============== */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.card-feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-feature .ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8e0ff 0%, #d4eeff 100%);
  color: var(--brand-primary);
  font-size: 20px;
  margin-bottom: 14px;
}
.card-feature h3 { font-size: 17px; margin-bottom: 6px; }
.card-feature p { font-size: 14px; color: var(--text-500); }

/* Course card */
.course-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.course-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #29166e 0%, #0094dd 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.course-card .thumb span {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.course-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.course-card h3 { font-size: 18px; margin-bottom: 8px; }
.course-card .meta { display: flex; gap: 14px; color: var(--text-500); font-size: 13px; margin-bottom: 12px; }
.course-card .meta i { margin-right: 4px; color: var(--brand-primary); }
.course-card p { font-size: 14px; color: var(--text-500); margin-bottom: 14px; }
.course-card ul.learn { font-size: 13.5px; color: var(--text-700); margin-bottom: 14px; }
.course-card ul.learn li { position: relative; padding-left: 22px; margin-bottom: 5px; }
.course-card ul.learn li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 1px;
  color: var(--brand-success);
  font-size: 12px;
}
.course-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* Tabs */
.tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}
.tab {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-700);
  transition: all 0.2s;
}
.tab:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.tab.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* ============== STATS ============== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stat-tile {
  background: #fff;
  padding: 22px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
}
.stat-tile strong {
  display: block;
  font-size: clamp(24px, 5vw, 36px);
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 6px;
  font-weight: 800;
}
.stat-tile span { font-size: 13px; color: var(--text-500); }

/* ============== ABOUT SPLIT ============== */
.split { display: grid; gap: 30px; align-items: center; }
.split .media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.split h2 { font-size: clamp(26px, 5vw, 36px); margin-bottom: 14px; }
.split p { color: var(--text-500); margin-bottom: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-700);
  font-size: 15px;
}
.check-list li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 1px;
  color: var(--brand-success);
  font-size: 18px;
}

/* ============== FACULTY ============== */
.faculty-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
.faculty-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.faculty-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.faculty-card .photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-soft);
}
.faculty-card .photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.faculty-card:hover .photo img { transform: scale(1.05); }
.faculty-card .info { padding: 20px; }
.faculty-card h3 { font-size: 19px; margin-bottom: 2px; }
.faculty-card .role {
  display: inline-block;
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.faculty-card p { font-size: 14px; color: var(--text-500); }

/* ============== TESTIMONIALS ============== */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 22px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card .quote {
  color: var(--brand-primary-soft);
  font-size: 34px;
  line-height: 1;
  opacity: 0.25;
  margin-bottom: 10px;
}
.testimonial-card p { font-size: 14.5px; color: var(--text-700); margin-bottom: 16px; }
.testimonial-card .person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card .person img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-accent);
}
.testimonial-card .person h4 { font-size: 15px; }
.testimonial-card .person span { color: var(--text-500); font-size: 12px; }
.rating { color: var(--brand-gold); font-size: 13px; margin-top: 4px; letter-spacing: 2px; }
.badge-rank {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffd369 0%, #f5b400 100%);
  color: #5a3a00;
  margin-bottom: 10px;
}
.badge-rank.silver { background: linear-gradient(135deg, #dde1eb, #b8bed0); color: #2d3449; }

/* ============== GALLERY ============== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15,18,69,0.6));
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .cap {
  position: absolute; bottom: 10px; left: 12px; right: 12px;
  color: #fff; font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 2;
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(11, 16, 32, 0.92);
  z-index: 120;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 86vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox .close-lb, .lightbox .nav-lb {
  position: absolute;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
}
.lightbox .close-lb:hover, .lightbox .nav-lb:hover { background: rgba(255,255,255,0.25); }
.lightbox .close-lb { top: 20px; right: 20px; }
.lightbox .nav-lb.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .nav-lb.next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Marquee strip */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-track {
  display: flex;
  gap: 14px;
  animation: scroll 40s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track img {
  width: 180px; height: 120px; object-fit: cover;
  border-radius: var(--radius-sm);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============== FAQ ============== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item.open { border-color: var(--brand-primary); box-shadow: var(--shadow-sm); }
.faq-q {
  display: flex; width: 100%;
  align-items: center; justify-content: space-between;
  padding: 16px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--text-900);
  font-size: 15px;
  gap: 12px;
}
.faq-q .plus {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--brand-primary);
  transition: transform 0.25s, background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-q .plus {
  background: var(--brand-primary);
  color: #fff;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-500);
  font-size: 14.5px;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a > div { padding: 0 18px 18px; }
.faq-a ul { padding-left: 18px; list-style: disc; }
.faq-a li { margin-bottom: 4px; }

/* ============== RESULTS TABLE ============== */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}
.results-table th {
  background: var(--surface-soft);
  text-align: left;
  padding: 14px 16px;
  color: var(--text-900);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.results-table td { padding: 14px 16px; border-top: 1px solid var(--border); }
.results-table tbody tr:hover { background: var(--surface-soft); }

/* ============== CONTACT ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 38px;
}
.contact-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.contact-tile .ico {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8e0ff, #d4eeff);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-primary);
  font-size: 22px;
}
.contact-tile h4 { font-size: 16px; margin-bottom: 8px; }
.contact-tile p { font-size: 14px; color: var(--text-500); }

.form-wrap {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.form-card, .map-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.form-card h3, .map-card h3 { font-size: 20px; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-700); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text-900);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(43, 47, 158, 0.12);
}
.field textarea { min-height: 120px; resize: vertical; }
.map-card iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius-sm); }

.success-note {
  background: #e7fbf1;
  color: #0d7a47;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 12px;
  display: none;
}
.success-note.show { display: block; }

/* ============== CTA BAND ============== */
.cta-band {
  position: relative;
  background: radial-gradient(600px 300px at 20% 20%, rgba(0,148,221,0.35), transparent 55%),
              linear-gradient(135deg, #1a0a4a 0%, #29166e 100%);
  color: #fff;
  padding: clamp(50px, 7vw, 80px) 0;
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><circle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.07)'/></svg>") repeat;
  opacity: 0.6;
}
.cta-band .inner { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 5vw, 40px); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 24px; }
.cta-band .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); background: transparent; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ============== FOOTER ============== */
.site-footer {
  background: #10063a;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
  font-size: 14.5px;
}
.site-footer .credit {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}
.site-footer .credit a {
  color: var(--brand-accent-soft);
  font-weight: 600;
  transition: color 0.2s;
}
.site-footer .credit a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}
.site-footer h4 {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer .brand-block p { margin-top: 12px; color: rgba(255,255,255,0.65); }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.site-footer ul a:hover { color: var(--brand-accent-soft); }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.socials a:hover { background: var(--brand-accent); transform: translateY(-2px); }
.contact-line { display: flex; gap: 10px; margin-bottom: 10px; color: rgba(255,255,255,0.72); font-size: 13.5px; }
.contact-line i { color: var(--brand-accent-soft); margin-top: 3px; width: 16px; flex-shrink: 0; }

.copyright {
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.55);
}

/* ============== FLOATING HELPERS ============== */
.whatsapp-fab, .call-fab {
  position: fixed;
  z-index: 70;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
}
.whatsapp-fab {
  background: #25d366;
  bottom: calc(var(--mobile-bar-h) + 16px);
  right: 16px;
}
.call-fab {
  background: var(--brand-accent);
  bottom: calc(var(--mobile-bar-h) + 80px);
  right: 16px;
}
.whatsapp-fab:hover, .call-fab:hover { transform: scale(1.08); }

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.mobile-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 2px;
  font-size: 10.5px;
  color: var(--text-500);
  font-weight: 600;
}
.mobile-bottom-nav a i { font-size: 18px; }
.mobile-bottom-nav a.active { color: var(--brand-primary); }
.mobile-bottom-nav a.active i { color: var(--brand-accent); }

/* Thank you */
.thankyou {
  text-align: center;
  padding: clamp(60px, 10vw, 120px) 20px;
}
.thankyou .ico {
  width: 110px; height: 110px;
  background: linear-gradient(135deg, #1fbf75, #12a15e);
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 54px;
  margin-bottom: 22px;
  box-shadow: 0 20px 40px rgba(31,191,117,0.35);
}
.thankyou h1 { font-size: clamp(32px, 6vw, 48px); margin-bottom: 14px; }
.thankyou p { max-width: 520px; margin: 0 auto 10px; color: var(--text-500); }
.thankyou .btns { margin-top: 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Video tiles */
.video-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.video-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.video-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.video-tile:hover img { transform: scale(1.04); }
.video-tile .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(15,18,69,0.15), rgba(15,18,69,0.55));
  color: #fff;
  font-size: 22px;
}
.video-tile .play span {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  color: var(--brand-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  padding-left: 6px;
  transition: transform 0.2s;
}
.video-tile:hover .play span { transform: scale(1.1); }
.video-tile .vt-title {
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  color: #fff; font-size: 14px; font-weight: 600;
  z-index: 2;
}

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.chip {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-700);
  transition: all 0.2s;
}
.chip.active, .chip:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* ============== PHASE 2 COMMENTS ==============
   Future enhancements (Phase 2):
   - Student login portal (/login, /dashboard)
   - Online mock tests & result dashboards
   - Downloadable study material (PDFs) after login
   - Payment gateway for fee payment
   - Video lecture library (live + recorded)
   - Admin/teacher CMS backend
   - Events & batch calendar
   - Blog & current affairs section
   - Email/SMS newsletter signup (backend)
   - Google reviews integration
   - Multilingual (English / Kannada)
============================================== */

/* ============== RESPONSIVE (DESKTOP UP) ============== */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-bottom-nav { display: none; }
  .menu-btn { display: none; }
  .nav-desktop { display: flex; }
  .header-cta { display: flex; gap: 8px; }
  .split { grid-template-columns: 1fr 1fr; gap: 50px; }
  .hero .inner { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .hero-visual { display: block; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
  .form-wrap { grid-template-columns: 1fr 1fr; }
  .whatsapp-fab, .call-fab { bottom: 24px; }
  .whatsapp-fab { right: 24px; }
  .call-fab { right: 24px; bottom: 88px; }
  .hero-stats { max-width: none; }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Small tweak: reduce heavy hero padding on ultra-small phones */
@media (max-width: 360px) {
  .btn { padding: 10px 16px; font-size: 14px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* Print */
@media print {
  .site-header, .mobile-bottom-nav, .whatsapp-fab, .call-fab, .cta-band { display: none; }
}
