/* =========================================================
   SPM IPE Training Centre — Global Stylesheet
   Brand: #0C447C (Blue) · #F5A623 (Amber CTA) · #1F2A44 (Navy)
   ========================================================= */

:root {
  --blue: #0C447C;
  --blue-dark: #093561;
  --blue-light: #1565b0;
  --amber: #F5A623;
  --amber-dark: #d98e0c;
  --navy: #1F2A44;
  --ink: #1a2233;
  --muted: #5b6577;
  --line: #e4e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-soft2: #eef3fa;
  --white: #ffffff;
  --green: #25D366;
  --shadow-sm: 0 2px 8px rgba(12, 68, 124, .08);
  --shadow-md: 0 8px 24px rgba(12, 68, 124, .12);
  --shadow-lg: 0 18px 50px rgba(12, 68, 124, .18);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

section { position: relative; }
.section-pad { padding: 72px 0; }
@media (max-width: 700px) { .section-pad { padding: 48px 0; } }

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--ink); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber-dark); margin-bottom: 12px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.text-amber { color: var(--amber); }
.text-blue { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px; font-weight: 600; font-size: .98rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap; min-height: 46px;
}
.btn:active { transform: scale(.97); }
.btn-amber { background: var(--amber); color: #3a2a00; box-shadow: 0 6px 18px rgba(245,166,35,.35); }
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245,166,35,.45); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--blue); }
.btn-outline-blue { border: 2px solid var(--blue); color: var(--blue); background: transparent; }
.btn-outline-blue:hover { background: var(--blue); color: #fff; }
.btn-ghost { color: var(--blue); font-weight: 600; }
.btn-ghost:hover { color: var(--amber-dark); }
.btn-sm { padding: 9px 18px; font-size: .9rem; min-height: 40px; }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; transition: all .3s var(--ease);
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
}
.nav.scrolled { height: 62px; background: #fff; box-shadow: var(--shadow-sm); }
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--blue); }
.logo-img { height: 50px; width: auto; max-width: 240px; transition: height .3s var(--ease); display: block; }
.nav.scrolled .logo-img { height: 42px; }
@media (max-width: 480px) { .logo-img { height: 40px; max-width: 180px; } .nav.scrolled .logo-img { height: 36px; } }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem;
}
.logo small { display: block; font-size: .62rem; font-weight: 500; color: var(--muted); letter-spacing: .05em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: .95rem; color: var(--ink);
  position: relative; transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--blue); border-radius: 2px;
}
.nav-links .btn { display: none; } /* in-menu Enrol Now: mobile only */
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; width: 44px; height: 44px; border-radius: 8px; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.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); }

@media (max-width: 940px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 16px 20px 28px; gap: 2px; box-shadow: var(--shadow-md);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: .35s var(--ease);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
  .nav-links a.active { background: var(--bg-soft2); }
  .nav-links a.active::after { display: none; }
  .nav-links .btn { display: inline-flex; margin-top: 10px; }
  .hamburger { display: flex; }
  .nav-cta .btn:not(.hamburger) { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 60px; color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(120deg, rgba(12,68,124,.93), rgba(31,42,68,.85)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='%230C447C'/%3E%3Cpath d='M0 0h30v30H0zM30 30h30v30H30z' fill='%23093561'/%3E%3C/svg%3E");
  background-size: cover, 60px 60px;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245,166,35,.25), transparent 45%);
}
.hero-inner { max-width: 720px; }
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem); color: #fff; letter-spacing: -.01em;
  opacity: 0; transform: translateY(24px); animation: rise .8s var(--ease) .15s forwards;
}
.hero h1 .hl { color: var(--amber); }
.hero .sub {
  font-size: clamp(1rem, 2.4vw, 1.2rem); color: #dbe6f5; margin-top: 18px; max-width: 600px;
  opacity: 0; transform: translateY(24px); animation: rise .8s var(--ease) .35s forwards;
}
.exam-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
  opacity: 0; transform: translateY(24px); animation: rise .8s var(--ease) .5s forwards; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 50px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); font-weight: 600;
  font-size: .85rem; backdrop-filter: blur(4px);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px;
  opacity: 0; transform: translateY(24px); animation: rise .8s var(--ease) .65s forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* Countdown */
.countdown { margin-top: 34px; opacity: 0; animation: rise .8s var(--ease) .8s forwards; }
.countdown .cd-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #c9d8ee; margin-bottom: 10px; }
.cd-grid { display: flex; gap: 12px; }
.cd-box {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 12px;
  padding: 12px 6px; min-width: 68px; text-align: center; backdrop-filter: blur(4px);
}
.cd-box b { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.cd-box span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #c9d8ee; }
@media (max-width: 480px) { .cd-box { min-width: 0; flex: 1; padding: 10px 4px; } .cd-box b { font-size: 1.4rem; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--blue), var(--navy)); color: #fff;
  padding: calc(var(--nav-h) + 48px) 0 56px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(245,166,35,.22), transparent 40%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 3rem); }
.page-hero p { color: #d7e3f4; margin-top: 14px; font-size: 1.1rem; max-width: 640px; margin-inline: auto; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; font-size: .85rem; color: #aec5e3; margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .6; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--navy); color: #fff; padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; color: var(--amber); font-variant-numeric: tabular-nums; }
.stat span { font-size: .92rem; color: #c5d2e6; margin-top: 4px; display: block; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 940px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

/* Exam stream cards */
.exam-card { border-top: 4px solid var(--blue); text-align: left; }
.exam-card .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--bg-soft2); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 16px; }
.exam-card.neet { border-top-color: #1aa179; }
.exam-card.neet .ic { color: #1aa179; background: #e6f6f0; }
.exam-card.cet { border-top-color: var(--amber); }
.exam-card.cet .ic { color: var(--amber-dark); background: #fdf2dd; }
.exam-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.exam-card p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }

/* USP cards */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .usp-grid { grid-template-columns: 1fr; } }
.usp { display: flex; gap: 16px; align-items: flex-start; }
.usp .ic { width: 50px; height: 50px; border-radius: 12px; flex: none; background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff; display: grid; place-items: center; }
.usp h4 { font-size: 1.08rem; margin-bottom: 4px; }
.usp p { color: var(--muted); font-size: .92rem; }

/* Ranker cards */
.ranker { text-align: center; position: relative; overflow: hidden; cursor: pointer; padding: 0; }
.ranker .photo { aspect-ratio: 4/4; background: linear-gradient(135deg, #cfe0f3, #e8eef7); position: relative; }
.ranker .photo .ph-init { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: rgba(12,68,124,.35); }
.air-badge { position: absolute; top: 12px; right: 12px; background: var(--amber); color: #3a2a00;
  font-weight: 800; font-size: .8rem; padding: 5px 12px; border-radius: 50px; box-shadow: var(--shadow-sm); z-index: 2; }
.ranker .info { padding: 16px; }
.ranker .info b { display: block; font-size: 1.05rem; }
.ranker .info .col { color: var(--blue); font-size: .85rem; font-weight: 600; margin-top: 2px; }
.ranker .info .exam { color: var(--muted); font-size: .8rem; margin-top: 2px; }

/* ---------- Testimonials slider ---------- */
.tslider-wrap { overflow: hidden; }
.tabs { display: inline-flex; background: var(--bg-soft2); border-radius: 50px; padding: 5px; margin: 0 auto 32px; }
.tab { padding: 9px 24px; border-radius: 50px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: .2s; }
.tab.active { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.tslider { display: flex; gap: 24px; transition: transform .5s var(--ease); }
.tcard { flex: 0 0 calc((100% - 48px) / 3); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); }
@media (max-width: 940px) { .tcard { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .tcard { flex-basis: 100%; } }
.tcard .stars { color: var(--amber); margin-bottom: 12px; letter-spacing: 2px; }
.tcard q { display: block; font-style: italic; color: var(--ink); font-size: .98rem; quotes: '"' '"'; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tcard .who .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.tcard .who b { font-size: .95rem; } .tcard .who span { font-size: .82rem; color: var(--muted); display: block; }
.slider-nav { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.slider-nav button { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  color: var(--blue); display: grid; place-items: center; transition: .2s; }
.slider-nav button:hover { background: var(--blue); color: #fff; }

/* ---------- Lead CTA banner ---------- */
.lead-cta { background: linear-gradient(120deg, var(--blue), var(--blue-dark)); color: #fff; }
.lead-cta h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.3rem); text-align: center; }
.lead-form { display: flex; gap: 12px; max-width: 760px; margin: 28px auto 0; flex-wrap: wrap; }
.lead-form input, .lead-form select {
  flex: 1; min-width: 160px; padding: 14px 16px; border-radius: 12px; border: none; font-size: .95rem; font-family: inherit;
}
.lead-form .btn { flex: none; }
.lead-alt { text-align: center; margin-top: 18px; color: #cfe0f3; font-size: .95rem; }
.lead-alt a { color: var(--amber); font-weight: 600; }
@media (max-width: 640px) { .lead-form input, .lead-form select, .lead-form .btn { flex-basis: 100%; width: 100%; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .95rem; font-family: inherit;
  background: #fff; transition: border-color .2s, box-shadow .2s; min-height: 46px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(12,68,124,.12);
}
.field .err { color: #d33; font-size: .8rem; display: none; }
.field.invalid input, .field.invalid select { border-color: #d33; }
.field.invalid .err { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c5d2e6; padding: 56px 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer a { color: #c5d2e6; font-size: .92rem; display: inline-block; padding: 4px 0; transition: color .2s; }
.footer a:hover { color: var(--amber); }
.footer .f-logo { color: #fff; font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer .f-logo-img { background: #fff; border-radius: 12px; padding: 12px 16px; display: inline-block; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.footer .f-logo-img img { height: 54px; width: auto; max-width: 100%; display: block; }
.footer .tagline { font-size: .9rem; max-width: 260px; margin-bottom: 18px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--amber); color: var(--navy); }
.footer ul li a { display: block; }
.f-contact p { font-size: .9rem; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.f-contact .ic { color: var(--amber); flex: none; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.footer-bottom a { padding: 0; }

/* ---------- Floating WhatsApp + mobile bar ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 24px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; z-index: 90;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); animation: wapulse 2.2s infinite;
}
@keyframes wapulse { 0%,100% { box-shadow: 0 8px 24px rgba(37,211,102,.45); } 50% { box-shadow: 0 8px 30px rgba(37,211,102,.75), 0 0 0 10px rgba(37,211,102,.12); } }
@media (max-width: 768px) { .wa-float { bottom: 76px; } }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: none;
  background: var(--blue); height: 58px; transition: transform .3s var(--ease);
}
.mobile-bar.hidden { transform: translateY(100%); }
.mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #fff; font-size: .72rem; font-weight: 600; border-right: 1px solid rgba(255,255,255,.15); }
.mobile-bar a:last-child { border-right: none; }
.mobile-bar a:active { background: var(--blue-dark); }
@media (max-width: 768px) { .mobile-bar { display: flex; } body { padding-bottom: 0; } }

/* ---------- Modal / Lightbox ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity .3s; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(.98); transition: transform .3s var(--ease); position: relative; }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-soft2); display: grid; place-items: center; color: var(--ink); z-index: 2; }
.modal-close:hover { background: var(--blue); color: #fff; }
.modal-body { padding: 32px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 30px; left: 50%; translate: -50% calc(100% + 50px);
  background: #16a34a; color: #fff; padding: 14px 22px; border-radius: 50px; font-weight: 600; font-size: .95rem;
  box-shadow: var(--shadow-lg); z-index: 300; display: flex; align-items: center; gap: 10px;
  transition: translate .4s var(--ease); max-width: 90vw; pointer-events: none;
}
.toast.show { translate: -50% 0; pointer-events: auto; }

/* ---------- AOS-lite scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }
[data-reveal][data-delay="4"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.bg-soft { background: var(--bg-soft); }
.bg-soft2 { background: var(--bg-soft2); }
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-24 { margin-top: 24px; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 50px; font-size: .78rem; font-weight: 600;
  background: var(--bg-soft2); color: var(--blue); }
.chip.green { background: #e6f6f0; color: #1aa179; }
.chip.amber { background: #fdf2dd; color: var(--amber-dark); }
.badge-pop { background: var(--amber); color: #3a2a00; font-size: .72rem; font-weight: 800; padding: 4px 12px;
  border-radius: 50px; text-transform: uppercase; letter-spacing: .04em; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .wrap { flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 8px 0; }

/* SVG icon sizing */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 30px; height: 30px; }

/* =========================================================
   Page-specific components
   ========================================================= */

/* Two-column overview */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 840px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.media-box { aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(135deg, #cfe0f3, #e8eef7);
  position: relative; overflow: hidden; box-shadow: var(--shadow-md); display: grid; place-items: center; }
.media-box .ph { color: rgba(12,68,124,.4); text-align: center; }
.media-box .ph svg { width: 64px; height: 64px; margin-bottom: 8px; }

.mini-chips { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 24px; }
@media (max-width: 640px) { .mini-chips { grid-template-columns: repeat(2,1fr); } }
.mini-chip { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; text-align: center; }
.mini-chip b { display: block; font-size: 1.4rem; color: var(--blue); font-weight: 800; }
.mini-chip span { font-size: .78rem; color: var(--muted); }

/* Director message */
.director { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
@media (max-width: 740px) { .director { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.director .avatar { width: 200px; height: 200px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: grid; place-items: center; color: #fff; font-size: 4rem; font-weight: 800; box-shadow: var(--shadow-md); }
.director .avatar small { display:block; }
.pull-quote { font-size: clamp(1.2rem, 3vw, 1.6rem); font-style: italic; color: var(--blue); font-weight: 600; line-height: 1.4; }
.vm-box { padding: 22px 24px; border-radius: var(--radius); margin-top: 20px; color: #fff; }
.vm-box.vision { background: var(--blue); }
.vm-box.mission { background: var(--navy); }
.vm-box h4 { color: var(--amber); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }

/* Timeline */
.timeline { display: flex; gap: 0; overflow-x: auto; padding: 20px 4px 30px; scroll-snap-type: x mandatory; }
.timeline::-webkit-scrollbar { height: 6px; } .timeline::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.tl-node { flex: 0 0 230px; scroll-snap-align: start; position: relative; padding: 0 18px; }
.tl-node::before { content: ''; position: absolute; top: 14px; left: 0; right: 0; height: 3px; background: var(--line); }
.tl-node:first-child::before { left: 50%; } .tl-node:last-child::before { right: 50%; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--amber); border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--amber); position: relative; z-index: 1; margin: 6px auto 16px; }
.tl-year { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; padding: 4px 14px; border-radius: 50px; font-size: .85rem; }
.tl-node p { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.tl-node { text-align: center; }
@media (max-width: 700px) {
  .timeline { flex-direction: column; gap: 0; overflow: visible; padding-left: 14px; }
  .tl-node { flex: none; width: 100%; text-align: left; padding: 0 0 26px 28px; }
  .tl-node::before { top: 0; bottom: 0; left: 7px; right: auto; width: 3px; height: auto; }
  .tl-node:first-child::before { top: 8px; } .tl-node:last-child::before { bottom: auto; height: 20px; }
  .tl-dot { position: absolute; left: 0; top: 4px; margin: 0; }
}

/* Course filter tabs (sticky) */
.filter-bar { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.filter-row::-webkit-scrollbar { display: none; } .filter-row { scrollbar-width: none; }
.filter-tab { padding: 9px 18px; border-radius: 50px; font-weight: 600; font-size: .9rem; color: var(--muted);
  white-space: nowrap; border: 1.5px solid var(--line); transition: .2s; flex: none; }
.filter-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.filter-tab:hover { color: var(--blue); }

/* Course cards */
.course-card { display: flex; flex-direction: column; position: relative; }
.course-card .ch { display: flex; justify-content: space-between; align-items: start; margin-bottom: 14px; }
.course-card h3 { font-size: 1.2rem; }
.course-card .meta { margin: 4px 0 16px; }
.course-card .meta li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.course-card .meta li b { color: var(--muted); font-weight: 500; min-width: 96px; }
.course-card .meta li span { font-weight: 600; }
.course-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.course-card .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.course-card .actions .btn { flex: 1; }
.crash-banner { background: linear-gradient(120deg, var(--amber), var(--amber-dark)); color: #3a2a00; border: none; }
.crash-banner h3 { color: #3a2a00; }

/* Stepper / methodology */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 860px) { .stepper { grid-template-columns: 1fr; gap: 10px; } }
.step { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px 18px; cursor: pointer;
  transition: .25s; text-align: center; }
.step:hover, .step.active { border-color: var(--blue); box-shadow: var(--shadow-md); }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft2); color: var(--blue);
  font-weight: 800; display: grid; place-items: center; margin: 0 auto 12px; transition: .25s; }
.step.active .num { background: var(--blue); color: #fff; }
.step h4 { font-size: .98rem; } .step .detail { display: none; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.step.active .detail { display: block; }
@media (max-width: 860px) { .step { text-align: left; display: flex; gap: 14px; align-items: start; flex-wrap: wrap; }
  .step .num { margin: 0; } .step h4 { flex: 1; } .step .detail { flex-basis: 100%; } }

/* Scholarship tiers */
.tier-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 760px) { .tier-grid { grid-template-columns: 1fr; } }
.tier { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; transition: .25s; }
.tier:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tier.featured { border-color: var(--amber); position: relative; }
.tier .pct { font-size: 2.4rem; font-weight: 800; color: var(--blue); }
.tier h4 { margin: 8px 0; } .tier p { color: var(--muted); font-size: .9rem; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
table.data thead th { background: var(--blue); color: #fff; font-weight: 600; }
table.data tbody tr:nth-child(even) { background: var(--bg-soft); }
table.data tbody td:first-child { font-weight: 600; color: var(--blue); }

/* Faculty grid */
.faculty-card { text-align: center; }
.faculty-card .photo { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light)); display: grid; place-items: center;
  color: #fff; font-size: 2.4rem; font-weight: 800; }
.faculty-card h4 { font-size: 1.1rem; } .faculty-card .qual { color: var(--muted); font-size: .85rem; margin: 4px 0 10px; }
.faculty-card .exp { font-size: .82rem; color: var(--blue); font-weight: 600; margin-bottom: 14px; }

/* Filter pills */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.fpill { padding: 9px 20px; border-radius: 50px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem;
  color: var(--muted); transition: .2s; }
.fpill.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.fpill:hover { color: var(--blue); }

/* Logo strip */
.logo-strip { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.logo-strip .lg { padding: 14px 22px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; color: var(--muted);
  filter: grayscale(1); opacity: .6; transition: .25s; background: #fff; }
.logo-strip .lg:hover { filter: none; opacity: 1; color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
@media (max-width: 600px) { .logo-strip { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; } .logo-strip .lg { flex: none; } }

/* Bar chart */
.barchart { display: flex; gap: 24px; align-items: flex-end; height: 240px; padding: 20px; background: var(--bg-soft);
  border-radius: var(--radius); }
.bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; justify-content: flex-end; }
.bars { display: flex; gap: 6px; align-items: flex-end; height: 100%; }
.bar { width: 26px; border-radius: 6px 6px 0 0; background: var(--blue); transition: height 1s var(--ease); position: relative; }
.bar.jee { background: var(--blue); } .bar.neet { background: #1aa179; } .bar.cet { background: var(--amber); }
.bar span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: .75rem; font-weight: 700; color: var(--ink); }
.bar-group .yr { font-size: .82rem; font-weight: 600; color: var(--muted); }
.legend { display: flex; gap: 18px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* Accordion (FAQ + methodology mobile) */
.accordion { max-width: 800px; margin: 0 auto; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: #fff; }
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px;
  font-weight: 600; font-size: 1rem; text-align: left; color: var(--ink); }
.acc-head .ico { flex: none; transition: transform .3s; color: var(--blue); }
.acc-item.open .acc-head .ico { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-body p { padding: 0 22px 20px; color: var(--muted); font-size: .94rem; }

/* Photo grid / gallery */
.gallery { columns: 2; column-gap: 18px; }
@media (max-width: 700px) { .gallery { columns: 1; } }
.gallery .gitem { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  position: relative; background: linear-gradient(135deg, #cfe0f3, #e8eef7); }
.gallery .gitem .ph { aspect-ratio: var(--ar, 4/3); display: grid; place-items: center; color: rgba(12,68,124,.4); }
.gallery .gitem .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; color: #fff;
  background: linear-gradient(transparent, rgba(15,23,42,.75)); font-weight: 600; font-size: .9rem;
  opacity: 0; transition: .25s; transform: translateY(8px); }
.gallery .gitem:hover .cap { opacity: 1; transform: none; }
.gcat-badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.9); color: var(--blue);
  font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; display: flex; gap: 5px; align-items: center; }

/* Contact info cards */
.contact-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-card .ic { width: 60px; height: 60px; border-radius: 16px; background: var(--bg-soft2); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 16px; }
.contact-card.wa .ic { background: #e6f6f0; color: var(--green); }
.contact-card h4 { font-size: 1.1rem; } .contact-card p { color: var(--muted); margin: 6px 0 16px; }

/* Map */
.map-embed { width: 100%; height: 450px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (max-width: 600px) { .map-embed { height: 280px; } }

/* Process steps (admissions) */
.process { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; position: relative; }
@media (max-width: 800px) { .process { grid-template-columns: 1fr; } }
.pstep { text-align: center; position: relative; }
.pstep .circ { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff; display: grid; place-items: center; margin: 0 auto 16px; font-weight: 800; font-size: 1.3rem; position: relative; z-index: 1; }
.pstep:not(:last-child)::after { content: ''; position: absolute; top: 32px; left: 60%; width: 80%; height: 2px;
  background: var(--line); z-index: 0; }
@media (max-width: 800px) { .pstep:not(:last-child)::after { display: none; } }
.pstep h4 { font-size: 1.02rem; margin-bottom: 4px; } .pstep p { color: var(--muted); font-size: .88rem; }

/* Scholarship quiz */
.quiz { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 640px; margin: 32px auto 0; }
.quiz h4 { margin-bottom: 18px; } .quiz .qrow { margin-bottom: 16px; }
.quiz-result { margin-top: 18px; padding: 16px 20px; border-radius: 12px; background: #e6f6f0; color: #1aa179;
  font-weight: 600; display: none; }
.quiz-result.show { display: block; }

/* CTA strip generic */
.cta-strip { background: linear-gradient(120deg, var(--blue), var(--blue-dark)); color: #fff; text-align: center; }
.cta-strip h2 { color: #fff; } .cta-strip p { color: #cfe0f3; margin-top: 10px; }
.cta-strip .btns { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* QR placeholder */
.qr { width: 130px; height: 130px; border-radius: 12px; background:
  repeating-conic-gradient(var(--navy) 0% 25%, #fff 0% 50%) 0 0 / 18px 18px; border: 6px solid #fff; box-shadow: var(--shadow-sm); }
