/* ==========================================================================
   The Madan Lal Khurana Foundation — theme on top of Bootstrap 5.3
   Libraries: Bootstrap, Bootstrap Icons, Swiper, AOS, GLightbox, GSAP, Typed.js, CountUp.js
   ========================================================================== */

/* ---------- Tokens + Bootstrap variable overrides ---------- */
:root {
  --navy: #14356b;
  --navy-700: #0f2a57;
  --navy-900: #0a1d3d;
  --saffron: #f47a1f;
  --saffron-600: #dd660f;
  --gold: #f5b53a;
  --green: #1e9a4f;
  --red: #d92330;
  --cream: #fff8f1;
  --lilac: #f6f2fb;
  --sky: #eef4ff;
  --ink: #1b2333;
  --muted: #5f6b7c;
  --line: #e6e9f0;
  --grad: linear-gradient(90deg, #f47a1f 0%, #f5b53a 100%);
  --grad-navy: linear-gradient(135deg, #14356b 0%, #0a1d3d 100%);
  --shadow: 0 10px 30px rgba(20, 53, 107, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 53, 107, 0.16);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hindi: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  --hindi-serif: 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', serif;
  --r: 16px;
  --r-lg: 24px;

  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-body-line-height: 1.7;
  --bs-heading-color: var(--navy-900);
  --bs-link-color: var(--navy);
  --bs-link-hover-color: var(--saffron-600);
  --bs-link-color-rgb: 20, 53, 107;
  --bs-link-hover-color-rgb: 221, 102, 15;
  --bs-border-color: var(--line);
  --bs-primary: #14356b;
  --bs-primary-rgb: 20, 53, 107;
  --bs-secondary-color: var(--muted);
  --swiper-theme-color: var(--saffron);
  --bs-focus-ring-color: rgba(245, 181, 58, 0.5);
  --swiper-navigation-size: 18px;
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
/* overflow-x: clip (with hidden as the fallback) stops sideways panning on phones during AOS slide-ins
   without turning body into a scroll container, so the sticky navbar keeps working. */
body { overflow-x: hidden; overflow-x: clip; background: #fff; }
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }
.hindi { font-family: var(--hindi); }
.hindi-serif { font-family: var(--hindi-serif); }
.text-gold { color: var(--gold) !important; }
.text-saffron { color: var(--saffron) !important; }
.text-navy { color: var(--navy) !important; }
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-muted { color: var(--muted) !important; }
.bg-cream { background: var(--cream); }
.bg-lilac { background: var(--lilac); }
.bg-sky { background: var(--sky); }
.bg-navy { background: var(--grad-navy); color: #dbe4f3; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .typed-fallback { display: none; }
.tricolor { height: 3px; background: linear-gradient(90deg, var(--saffron) 0%, var(--saffron) 30%, #e6e9f0 50%, var(--green) 70%, var(--green) 100%); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Preloader + scroll progress ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 3000; background: #fff; display: grid; place-items: center;
  transition: opacity .5s ease, visibility .5s;
  animation: preloader-hide .5s ease 4s forwards; /* no-JS / slow-network fallback */
}
#preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__inner { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.preloader__inner img { width: 54px; animation: pulse 1.4s ease-in-out infinite; }
.preloader__inner span {
  position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--saffron);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .7; } }
@keyframes preloader-hide { to { opacity: 0; visibility: hidden; } }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 2500; transition: width .1s linear; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; padding: .8rem 1.6rem; border-radius: 999px; transition: transform .2s ease, box-shadow .2s ease, background .2s, color .2s; }
.btn i { transition: transform .2s ease; }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-brand { background: var(--grad); color: #fff; border: 2px solid transparent; box-shadow: 0 8px 20px rgba(244, 122, 31, 0.3); }
.btn-brand:hover, .btn-brand:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(244, 122, 31, 0.42); }
.btn-navy { background: var(--navy); color: #fff; border: 2px solid transparent; }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-700); color: #fff; transform: translateY(-2px); }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); border: 2px solid transparent; }
.btn-white:hover { color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::after {
  content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: rgba(255, 255, 255, 0.35);
  transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0% { left: -60%; } 60%, 100% { left: 130%; } }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 96px) 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head.text-start { margin-left: 0; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }
.bg-navy .section-head p { color: #c7d3e8; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--saffron); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--grad); }
.section-head:not(.text-start) .eyebrow::after { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--grad); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: #cdd8ea; font-size: .82rem; min-height: 40px; display: flex; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #cdd8ea; }
.topbar__item i { color: var(--gold); }
.topbar a:hover { color: #fff; }

/* ---------- Navbar ---------- */
.site-navbar { background: #fff; padding: 12px 0; transition: box-shadow .25s ease, padding .25s ease; }
.site-navbar.is-scrolled { box-shadow: 0 6px 24px rgba(10, 29, 61, 0.1); padding: 6px 0; }
.site-navbar .tricolor { position: absolute; left: 0; right: 0; bottom: 0; }
.brand-logo { width: 64px; height: 64px; object-fit: contain; transition: width .25s, height .25s; }
.site-navbar.is-scrolled .brand-logo { width: 54px; height: 54px; }
.brand-text { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.2; }
.brand-text strong { color: var(--navy-900); font-size: 1rem; white-space: nowrap; letter-spacing: -.01em; }
.brand-text small { color: var(--saffron); font-weight: 600; font-size: .8rem; margin-top: 3px; word-spacing: .35em; }
.navbar-nav .nav-link { font-weight: 500; color: var(--ink); padding: .6rem .9rem; border-radius: 999px; position: relative; transition: color .2s, background .2s; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--navy); background: var(--sky); }
.navbar-toggler { border: 0; background: var(--sky); border-radius: 12px; padding: 8px 10px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(245, 181, 58, 0.5); }
.dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px; min-width: 270px; }
.dropdown-item { border-radius: 10px; padding: 10px 14px; font-size: .92rem; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.dropdown-item i { color: var(--saffron); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--sky); color: var(--navy); }
.offcanvas { width: min(360px, 88%) !important; }
@media (max-width: 1199.98px) { .offcanvas-body .nav-link { padding: .8rem 1rem; font-size: 1.02rem; } }
@media (min-width: 1200px) {
  .site-navbar .offcanvas { width: auto !important; }
  .dropdown-menu-animate { display: block; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; margin-top: 8px !important; }
  .dropdown:hover > .dropdown-menu-animate, .dropdown:focus-within > .dropdown-menu-animate, .dropdown-menu-animate.show { opacity: 1; visibility: visible; transform: translateY(0); }
  .dropdown::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; }
}
@media (max-width: 1199.98px) {
  .site-navbar .dropdown-menu { position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; background: var(--sky); margin: 4px 0 8px; }
  .brand-text strong { font-size: .92rem; }
  .brand-text small { font-size: .74rem; }
  .brand-logo { width: 54px; height: 54px; }
}
@media (max-width: 400px) {
  .navbar-brand { flex: 1 1 0; min-width: 0; margin-right: 8px; }
  .brand-text { min-width: 0; }
  .brand-text strong { white-space: normal; font-size: .82rem; line-height: 1.15; }
  .navbar-toggler { flex: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(55% 60% at 8% 12%, #f1e6ff 0, transparent 60%),
    radial-gradient(45% 50% at 92% 18%, #ffe6ee 0, transparent 60%),
    radial-gradient(40% 45% at 70% 95%, #e2efff 0, transparent 60%), #fff;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 46%; pointer-events: none; z-index: 0;
  background: url("../img/wave-decor.png") center top / 100% auto no-repeat; opacity: .5;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: 0; }
.hero-blob--1 { width: 360px; height: 360px; background: #ffd9b8; top: -120px; left: -100px; }
.hero-blob--2 { width: 300px; height: 300px; background: #cfe0ff; bottom: -80px; right: 10%; }
.hero-blob--3 { width: 220px; height: 220px; background: #d8f5e3; top: 30%; right: -60px; }
.hero-swiper { position: relative; z-index: 1; }
.hero-swiper .swiper-slide { height: auto; display: flex; align-items: center; } /* stretches to the tallest slide, no JS height measuring */
.hero-row { min-height: 620px; padding: 56px 0 130px; }
.hero-pill { width: min(420px, 100%); margin-bottom: 26px; filter: drop-shadow(0 8px 20px rgba(20, 53, 107, 0.12)); }
.hero-text h1, .hero-text h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; }
.hero-text .lead { color: var(--muted); font-size: 1.1rem; margin-top: 20px; max-width: 560px; }
.hero-media { position: relative; }
.hero-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.hero-frame img { width: 100%; height: 420px; object-fit: cover; display: block; }
.float-card {
  position: absolute; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-lg);
  display: flex; gap: 12px; align-items: center; max-width: 340px; z-index: 2;
}
.float-card img { width: 46px; height: 46px; object-fit: contain; }
.float-card strong { display: block; color: var(--navy-900); font-size: .95rem; line-height: 1.25; }
.float-card span { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.float-card--bl { left: -24px; bottom: -22px; }
.float-card--tr { right: -20px; top: -22px; }
.float-card--tr span { color: var(--navy-900); font-size: .95rem; font-weight: 600; line-height: 1.35; }
.portrait-wrap { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 460px; }
.portrait-wrap::before {
  content: ""; position: absolute; inset: 40px 12% 40px; border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
  background: linear-gradient(160deg, #ffd8b3, #ffb27a 45%, #f47a1f); filter: blur(2px); opacity: .85; animation: blob 9s ease-in-out infinite;
}
@keyframes blob { 0%, 100% { border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; } 50% { border-radius: 55% 45% 52% 48% / 45% 55% 45% 55%; } }
.portrait-wrap img { position: relative; width: min(440px, 100%); filter: drop-shadow(0 20px 30px rgba(10, 29, 61, 0.25)); }
.speech {
  position: relative; background: #fff; border-radius: 22px; padding: 26px 30px 26px 56px; box-shadow: var(--shadow-lg);
  font-family: var(--hindi-serif); font-size: 1.3rem; line-height: 1.7; color: var(--navy-900); margin-top: 22px; max-width: 580px;
}
.speech i { position: absolute; top: 18px; left: 20px; font-size: 1.6rem; color: var(--saffron); }
.speech em { font-style: normal; color: var(--red); }
.cite { margin-top: 22px; display: flex; flex-direction: column; }
.cite strong { color: var(--red); font-size: 1.15rem; }
.cite span { color: var(--muted); font-size: .95rem; }
.poster { width: min(380px, 100%); margin-inline: auto; display: block; border-radius: 18px; box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.hero-swiper .swiper-pagination { bottom: 92px; }
.swiper-pagination-bullet { width: 10px; height: 10px; background: #c9d3e6; opacity: 1; transition: all .25s; }
.swiper-pagination-bullet-active { width: 30px; border-radius: 999px; background: var(--saffron); }
.hero-swiper .swiper-button-prev, .hero-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev, .gallery-swiper .swiper-button-next {
  width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: var(--shadow); transition: .2s;
}
.hero-swiper .swiper-button-prev:hover, .hero-swiper .swiper-button-next:hover,
.gallery-swiper .swiper-button-prev:hover, .gallery-swiper .swiper-button-next:hover { background: var(--navy); color: #fff; }
.swiper-button-prev::after, .swiper-button-next::after { font-weight: 700; }
.hero-swiper .swiper-button-prev { left: 14px; } .hero-swiper .swiper-button-next { right: 14px; }

/* ---------- Impact numbers ---------- */
.impact { position: relative; z-index: 2; }
.impact--overlap { margin-top: -76px; }
.impact-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 36px 40px; }
.impact-head .eyebrow { margin-bottom: 6px; }
.impact-head h3 { font-size: 1.35rem; margin-bottom: 8px; }
.impact-head p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.impact-item { background: #fff; padding: 22px 16px; text-align: center; transition: background .25s; }
.impact-item:hover { background: var(--cream); }
.impact-item i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 1.25rem; margin-bottom: 10px; background: #fff0e3; color: var(--saffron-600); transition: transform .3s; }
.impact-item:nth-child(3n+2) i { background: var(--sky); color: var(--navy); }
.impact-item:nth-child(3n) i { background: #e6f6ec; color: var(--green); }
.impact-item:hover i { transform: scale(1.1); }
.impact-item strong { display: block; font-size: 2rem; font-weight: 700; color: var(--navy-900); line-height: 1.1; }
.impact-item span { display: block; margin-top: 6px; font-size: .84rem; color: var(--muted); line-height: 1.35; }

/* ---------- About ---------- */
.oval-wrap { position: relative; }
.oval { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-lg); border: 8px solid #fff; }
.seal { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); width: 120px; height: 120px; background: #fff; border-radius: 50%; padding: 8px; box-shadow: var(--shadow-lg); }
.seal img { width: 100%; height: 100%; object-fit: contain; }
.pull { border-left: 4px solid var(--saffron); padding: 6px 0 6px 18px; font-weight: 500; color: var(--navy-900); margin: 22px 0; }

/* ---------- Cards ---------- */
.feature-card {
  background: #fff; border-radius: var(--r); padding: 28px 24px; border: 1px solid var(--line); height: 100%;
  box-shadow: 0 4px 14px rgba(20, 53, 107, 0.04); transition: transform .3s ease, box-shadow .3s ease, border-color .3s; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.feature-card:hover::after { transform: scaleX(1); }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.feature-card .num { position: absolute; top: 16px; right: 20px; font-size: 2.4rem; font-weight: 700; color: var(--sky); line-height: 1; }
.icon-box { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--sky); color: var(--navy); font-size: 1.5rem; transition: transform .3s; }
.feature-card:hover .icon-box { transform: rotate(-8deg) scale(1.08); }
.icon-box--saffron { background: #fff0e3; color: var(--saffron-600); }
.icon-box--green { background: #e6f6ec; color: var(--green); }
.icon-box--red { background: #fde8ea; color: var(--red); }
.icon-box--lilac { background: var(--lilac); color: #6b3fa0; }
.icon-box--sm { width: 46px; height: 46px; font-size: 1.3rem; border-radius: 12px; margin-bottom: 14px; }

/* ---------- Split / chips ---------- */
.split-media { position: relative; }
.split-media img.main { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.split-media .pill { position: absolute; top: -26px; left: -20px; width: min(320px, 70%); filter: drop-shadow(0 12px 20px rgba(20, 53, 107, 0.2)); z-index: 2; }
.badge-float { position: absolute; right: -16px; bottom: 28px; background: var(--grad); color: #fff; padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; line-height: 1.25; font-size: .95rem; z-index: 2; }
.badge-float small { display: block; font-weight: 400; opacity: .9; font-size: .78rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .86rem; font-weight: 500; color: var(--navy-900); box-shadow: 0 2px 8px rgba(20, 53, 107, 0.05); transition: transform .2s, box-shadow .2s;
}
.chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); }
.chip:nth-child(3n)::before { background: var(--green); }
.chip:nth-child(3n+2)::before { background: var(--navy); }
.chips--lg .chip { padding: 12px 20px; font-size: .95rem; }

/* ---------- Courses ---------- */
.course-card {
  background: #fff; border-radius: var(--r-lg); padding: 32px 28px; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative; overflow: hidden; height: 100%; transition: transform .3s, box-shadow .3s;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--grad); }
.course-card--featured::before { background: linear-gradient(90deg, var(--navy), #3b6fd1); }
.course-card__icon { width: 64px; height: 64px; object-fit: contain; }
.course-tag { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--sky); padding: 6px 12px; border-radius: 999px; }
.course-card h3 { color: var(--red); font-size: 1.3rem; line-height: 1.25; }
.course-card h3 small { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: 6px; }
.course-sub { color: var(--navy-900); font-weight: 600; font-size: .92rem; margin: 12px 0 16px; }
.course-meta { list-style: none; padding: 16px 0; margin: 0 0 18px; display: grid; gap: 10px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.course-meta li { display: flex; gap: 10px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.course-meta li i { color: var(--saffron); margin-top: 2px; }
.course-meta li strong { color: var(--ink); font-weight: 600; }
.course-card p { color: var(--muted); font-size: .93rem; }
.course-card .btn { margin-top: auto; align-self: flex-start; }
.course-partner { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); margin-top: 16px; }
.course-partner img { height: 34px; width: auto; }
/* ---------- Video cards ---------- */
.video-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; height: 100%; transition: transform .3s, box-shadow .3s; }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.video-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #0b1530; border: 8px solid #0b1530; border-width: 10px 0; overflow: hidden; }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-card:hover .video-card__media img { transform: scale(1.05); }
.video-card__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); border: 3px solid rgba(0, 0, 0, 0.15); display: grid; place-items: center; color: var(--navy-900); font-size: 1.9rem; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); transition: transform .25s, background .25s, color .25s; }
.video-card__play i { margin-left: 4px; }
.video-card:hover .video-card__play { transform: translate(-50%, -50%) scale(1.1); background: var(--saffron); color: #fff; }
.video-card__body { padding: 16px 18px 20px; text-align: center; }
.video-card__body h3 { color: var(--red); font-size: 1rem; margin-bottom: 4px; line-height: 1.35; }
.video-card__body p { color: var(--muted); font-size: .88rem; margin: 0; }
/* keep every card's button on the same baseline: partner note sits above the button */
.course-card:has(.course-partner) .course-partner { order: 1; margin: auto 0 18px; }
.course-card:has(.course-partner) .btn { order: 2; margin-top: 0; }
@media (min-width: 992px) {
  /* equal title heights so text below lines up across a row */
  .col-lg-4 > .course-card h3 { min-height: 4.8rem; }
  .col-lg-3 > .feature-card h3 { min-height: 2.6em; }
  .col > .track-card h4 { min-height: 2.5em; }
}

/* ---------- Tracks ---------- */
.track-card { background: #fff; border-radius: var(--r); padding: 22px 20px; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(20, 53, 107, 0.04); height: 100%; transition: transform .3s, box-shadow .3s; }
.track-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.track-card h4 { margin-bottom: 12px; font-size: 1rem; }
.track-card ul { list-style: none; padding: 0; margin: 0; }
.track-card li { font-size: .88rem; color: var(--muted); padding: 5px 0 5px 18px; position: relative; line-height: 1.45; }
.track-card li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li i { width: 24px; height: 24px; border-radius: 50%; background: #e6f6ec; color: var(--green); display: grid; place-items: center; font-size: .8rem; flex: none; margin-top: 2px; }
.check-list--light li { color: #e3eaf6; }
.check-list--light li i { background: rgba(255, 255, 255, 0.14); color: var(--gold); }

/* ---------- Quote ---------- */
.quote-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.quote-media { position: relative; }
.quote-media .pill { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); width: min(300px, 80%); filter: drop-shadow(0 10px 20px rgba(20, 53, 107, 0.2)); }
.quote { position: relative; margin: 0; font-family: var(--hindi-serif); font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.8; color: var(--navy-900); padding-left: 56px; }
.quote > i { position: absolute; left: 0; top: 0; font-size: 2.4rem; color: var(--saffron); line-height: 1; }
.quote--en { font-family: var(--font); font-size: 1.15rem; }
.quote-cite { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-left: 56px; }
.quote-cite::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--grad); flex: none; }
.quote-cite strong { color: var(--navy-900); display: block; }
.quote-cite span { color: var(--muted); font-size: .9rem; }

/* ---------- Ambassador ---------- */
.ambassador { background: linear-gradient(135deg, #eaf2ff 0%, #f6f2fb 55%, #fff5ea 100%); border-radius: var(--r-lg); overflow: hidden; padding: 48px; position: relative; box-shadow: var(--shadow); }
.ambassador::after { content: ""; position: absolute; right: 0; bottom: 0; width: 60%; height: 40%; background: url("../img/delhi-skyline.jpg") right bottom / contain no-repeat; opacity: .12; pointer-events: none; }
.ambassador .row { position: relative; z-index: 1; }
.ambassador__poster { width: min(360px, 100%); margin-inline: auto; display: block; border-radius: 16px; box-shadow: var(--shadow-lg); transform: rotate(-2.5deg); transition: transform .4s; }
.ambassador:hover .ambassador__poster { transform: rotate(0) scale(1.02); }
.ambassador h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.ambassador .w1 { color: var(--navy); } .ambassador .w2 { color: var(--saffron); } .ambassador .w3 { color: var(--green); }
.ambassador .name { font-size: 1.5rem; font-weight: 700; color: var(--navy-900); letter-spacing: .04em; text-transform: uppercase; margin-top: 18px; }
.ambassador .role { color: var(--muted); font-weight: 500; }
.ambassador .tag { font-size: 1.05rem; margin-top: 14px; }
.ambassador .tag b:nth-of-type(1) { color: var(--saffron); } .ambassador .tag b:nth-of-type(2) { color: var(--green); } .ambassador .tag b:nth-of-type(3) { color: #3b6fd1; }
.ambassador__logos { display: flex; align-items: center; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.ambassador__logos div { font-size: .72rem; color: var(--muted); }
.ambassador__logos img { height: 44px; width: auto; margin-top: 4px; display: block; }

/* ---------- Vision ---------- */
.timeline { list-style: none; position: relative; padding-left: 28px; margin: 24px 0 0; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--saffron), var(--green)); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--saffron); }
.timeline li:last-child::before { border-color: var(--green); }
.timeline strong { display: block; color: var(--navy-900); }
.timeline span { color: var(--muted); font-size: .93rem; }
.big-num { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; color: var(--gold); line-height: 1; }
.impact-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r-lg); padding: 32px; }
.impact-card p { color: #c7d3e8; }

/* ---------- Gallery ---------- */
.gallery-swiper { padding: 20px 0 60px; }
.gallery-swiper .swiper-slide { width: min(560px, 82vw); }
.g-item { position: relative; display: block; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.g-item img { width: 100%; height: 340px; object-fit: cover; display: block; transition: transform .6s ease, opacity .3s; }
.g-item:hover img { transform: scale(1.06); opacity: .85; }
.g-item figcaption, .g-item .cap {
  position: absolute; inset: auto 0 0; padding: 30px 16px 16px; color: #fff; font-size: .9rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(10, 29, 61, 0.85)); pointer-events: none;
}
.g-item .zoom { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: var(--navy); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: .3s; }
.g-item:hover .zoom { opacity: 1; transform: scale(1); }
.gallery-swiper .swiper-pagination { bottom: 10px; }
.gallery-grid .g-item img { height: 280px; }
.gallery-grid .g-item--tall img { height: 100%; min-height: 280px; }

/* ---------- Partners ---------- */
.marquee { overflow: hidden; position: relative; padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 64px; width: auto; filter: grayscale(1); opacity: .7; transition: .3s; }
.marquee__track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 20px; text-align: center; transition: .3s; box-shadow: 0 4px 14px rgba(20, 53, 107, 0.04); height: 100%; }
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.partner-card img { height: 74px; width: auto; max-width: 100%; margin: 0 auto 14px; object-fit: contain; display: block; }
.partner-card strong { display: block; color: var(--navy-900); font-size: .95rem; }
.partner-card span { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.rasci-card { background: linear-gradient(135deg, #5b3a8c, #3d2566); color: #e8e0f5; border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-lg); }
.rasci-card h3 { color: #fff; margin-bottom: 18px; font-size: 1.3rem; }
.rasci-card .logo-box { background: #fff; border-radius: 12px; padding: 14px 18px; display: inline-block; margin-bottom: 22px; }
.rasci-card .logo-box img { height: 60px; width: auto; }
.rasci-card p { font-size: .95rem; }
.rasci-card b { color: #ffd27a; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { color: #fff; padding: 56px 0; position: relative; overflow: hidden; background: linear-gradient(270deg, #f47a1f, #f5b53a, #f47a1f, #e8590c); background-size: 300% 300%; animation: gradient-move 10s ease infinite; }
@keyframes gradient-move { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("../img/robot-hand.png") left -40px center / 420px auto no-repeat; opacity: .12; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: url("../img/human-hand.png") right -40px center / 360px auto no-repeat; opacity: .12; transform: scaleX(-1); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band .hindi { font-size: 1.25rem; opacity: .95; margin-top: 8px; font-weight: 500; }
.phone-pill { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--navy-900); padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1.2rem; box-shadow: var(--shadow-lg); transition: transform .2s; }
.phone-pill:hover { transform: translateY(-2px); color: var(--navy-900); }
.phone-pill i { color: var(--saffron); }
.cta-band .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #b9c7e0; font-size: .92rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--grad); }
.footer__logo { width: 250px; background: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #b9c7e0; transition: color .2s, padding-left .2s; display: inline-flex; align-items: baseline; gap: 8px; }
.footer ul a i { color: var(--saffron); font-size: .8rem; flex-shrink: 0; }
.footer ul a:hover { color: #fff; padding-left: 4px; }
.footer address { line-height: 1.7; margin: 0; }
.footer .contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer .contact-line i { color: var(--gold); margin-top: 4px; }
.footer .contact-line a { color: #fff; font-weight: 600; }
.footer__partners { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 24px 0; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer__partners span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #8fa2c4; }
.footer__partners img { height: 44px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; transition: transform .2s; }
.footer__partners img:hover { transform: translateY(-3px); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: .82rem; color: #8fa2c4; }
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; z-index: 900;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--saffron); color: #fff; }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--grad-navy); color: #dbe4f3; padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; }
.page-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 122, 31, 0.35), transparent 65%); animation: pulse-soft 6s ease-in-out infinite; }
@keyframes pulse-soft { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.25rem); }
.page-hero p { max-width: 720px; font-size: 1.05rem; margin-top: 14px; color: #c7d3e8; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #6f83a8; font-size: .82rem; margin-bottom: 14px; }
.page-hero .breadcrumb a { color: #9fb0cf; } .page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: #dbe4f3; }

/* ---------- Prose, leader, table, forms, contact ---------- */
.prose p { color: var(--muted); }
.lead-text { font-size: 1.12rem; color: var(--ink) !important; }
.leader-photo { position: relative; background: linear-gradient(160deg, #ffe4cc, #ffb27a 60%, #f47a1f); border-radius: 30px 30px 200px 200px / 30px 30px 120px 120px; overflow: hidden; max-width: 380px; }
.leader-photo img { position: relative; width: 100%; margin-top: 30px; display: block; }
.table-brand { --bs-table-bg: #fff; font-size: .92rem; }
.table-brand thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .04em; border: 0; padding: 16px 18px; }
.table-brand td { padding: 16px 18px; vertical-align: top; border-color: var(--line); }
.table-brand td:first-child { font-weight: 600; color: var(--navy-900); }
.form-card { background: #fff; border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-label { font-size: .85rem; font-weight: 600; color: var(--navy-900); }
.form-control, .form-select { border-radius: 12px; padding: .8rem 1rem; border: 1.5px solid var(--line); font-size: .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(244, 122, 31, 0.15); }
.form-success { display: none; }
.form-success.is-visible { display: block; }
.info-card { background: #fff; border-radius: var(--r); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; gap: 18px; margin-bottom: 18px; transition: transform .25s, box-shadow .25s; }
.info-card:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.info-card h4 { margin-bottom: 6px; font-size: 1.05rem; }
.info-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.info-card a { color: var(--navy); font-weight: 600; }
.map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-glow::after, .marquee__track, .cta-band, .portrait-wrap::before, .page-hero::after, .preloader__inner img, .preloader__inner span { animation: none !important; }
  .feature-card, .course-card, .track-card, .partner-card, .chip, .impact-item, .impact-item i, .info-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1299.98px) {
  .hero-swiper .swiper-button-prev, .hero-swiper .swiper-button-next { display: none; }
}
@media (max-width: 1199.98px) {
  .hero-row { min-height: 560px; }
}
@media (max-width: 991.98px) {
  .hero-row { min-height: 0; padding: 40px 0 124px; }
  .hero-media { max-width: 560px; margin-inline: auto; }
  .float-card--bl { left: 12px; bottom: -18px; }
  .float-card--tr { right: 12px; top: -18px; }
  .oval-wrap { max-width: 520px; margin: 0 auto 50px; }
  .impact--overlap { margin-top: -64px; }
  .impact-panel { padding: 28px 24px; }
  .impact-head { text-align: center; }
  .ambassador { padding: 32px; }
  .split-media { margin-bottom: 30px; }
}
@media (max-width: 767.98px) {
  .hero-frame img { height: 280px; }
  .speech { font-size: 1.1rem; padding: 22px 20px 22px 48px; }
  .quote { padding-left: 0; } .quote > i { position: static; display: block; margin-bottom: 10px; } .quote-cite { padding-left: 0; }
  .cta-band::before, .cta-band::after { display: none; }
  .ambassador { padding: 24px; }
  .section-head { margin-bottom: 32px; }
  .split-media .pill { position: static; width: min(300px, 90%); margin: 0 auto 18px; display: block; }
  .badge-float { right: 8px; bottom: 12px; }
  .hero::after { height: 30%; }
  .map iframe { height: 320px; }
  .form-card { padding: 26px; }
  .g-item img { height: 240px; }
  .gallery-swiper .swiper-slide { width: 86vw; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-item strong { font-size: 1.6rem; }
  .impact-panel { padding: 20px 14px; border-radius: var(--r); }
}
