/* =========================================================
   REVOLUTION CLASSES — stylesheet
   1. Tokens & base          6. Faculty
   2. Motion system          7. Why choose us
   3. Navbar                 8. Library
   4. Hero                   9. Gallery
   5. About / Courses       10. Contact, footer, responsive
   11. Rotating outlines     12. Extra mobile polish
   ========================================================= */

/* ---------- 1. Tokens & base ---------- */
:root {
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --purple-light: #a78bfa;
  --purple-tint: #f4f0ff;
  --grad: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  --grad-soft: linear-gradient(135deg, #8b5cf6, #6d28d9);
  --ink: #1f2937;
  --ink-soft: #64748b;
  --line: #e9e1ff;
  --gold: #f5b400;
  --navy: #14213d;
  --shadow-sm: 0 12px 30px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 20px 50px rgba(31, 41, 55, 0.1);
  --shadow-purple: 0 22px 50px rgba(124, 58, 237, 0.18);
  --nav-h: 96px;
  --marquee-h: 48px;
  --header-h: calc(var(--nav-h) + var(--marquee-h));
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  /* clip (not hidden): keeps the phone viewport at device width even while
     reveal elements sit translated past the edge - no sideways shift, no cut-off navbar */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
  overflow-x: clip;
}

/* every section clips its own sideways overflow (slide-in reveals, decorative rings) */
main > section,
.site-footer {
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  color: var(--ink);
}

p {
  color: var(--ink-soft);
  line-height: 1.8;
}

img,
video {
  max-width: 100%;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

.section-padding {
  padding: 100px 0;
}

.section-padding h2,
.about-section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-intro {
  max-width: 650px;
}

.bg-light-soft {
  background: #faf8ff;
}

/* Eyebrow label above headings */
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--purple);
  text-transform: uppercase;
}

.eyebrow-pill {
  max-width: 100%;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--purple-tint);
  border: 1px solid rgba(124, 58, 237, 0.14);
  line-height: 1.45;
}

/* keeps a place name on one line when a label wraps */
.nowrap {
  white-space: nowrap;
}

/* a pill label sitting right above a heading needs a little breathing room */
.eyebrow-pill + h1,
.eyebrow-pill + h2 {
  margin-top: 14px;
}

/* Buttons */
.btn-primary-custom,
.btn-outline-custom {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 14px 26px;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.btn-primary-custom {
  border: 0;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.24);
}

.btn-primary-custom::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.55s ease;
}

.btn-primary-custom:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(124, 58, 237, 0.32);
}

.btn-primary-custom:hover::after {
  left: 120%;
}

.btn-outline-custom {
  border: 1.5px solid var(--purple);
  color: var(--purple);
  background: transparent;
}

.btn-outline-custom:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- 2. Motion system ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal[data-reveal="left"] {
  transform: translateX(-38px);
}

.reveal[data-reveal="right"] {
  transform: translateX(38px);
}

.reveal[data-reveal="zoom"] {
  transform: scale(0.94);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-y {
  50% {
    transform: translateY(-14px);
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ring-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes shine-sweep {
  0% {
    transform: translateX(-120%) skewX(-18deg);
  }
  60%,
  100% {
    transform: translateX(260%) skewX(-18deg);
  }
}

@keyframes nudge-x {
  50% {
    transform: translateX(7px);
  }
}

/* ---------- 3. Navbar ---------- */
#mainNav {
  top: var(--marquee-h);
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    padding 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

#mainNav.scrolled {
  padding: 9px 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.07);
}

.nav-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Poppins, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.navbar-brand span:not(.brand-icon) {
  color: var(--purple);
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--grad-soft);
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-brand:hover .brand-icon {
  transform: rotate(-10deg) scale(1.07);
}

.nav-link {
  position: relative;
  font-weight: 600;
  color: #34445b !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--purple) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  width: 50px;
  height: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--purple-tint);
  transition: background 0.25s ease;
}

.navbar-toggler[aria-expanded="true"] {
  background: var(--purple);
}

/* three bars that fold into an X while the menu is open */
.burger {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 3px;
  background: var(--purple);
  transition:
    top 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    background 0.25s ease;
}

.burger span:nth-child(1) {
  top: 0;
}

.burger span:nth-child(2) {
  top: 50%;
  margin-top: -1.25px;
}

.burger span:nth-child(3) {
  top: 100%;
  margin-top: -2.5px;
}

.navbar-toggler[aria-expanded="true"] .burger span {
  background: #fff;
}

.navbar-toggler[aria-expanded="true"] .burger span:nth-child(1) {
  top: 50%;
  margin-top: -1.25px;
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .burger span:nth-child(3) {
  top: 50%;
  margin-top: -1.25px;
  transform: rotate(-45deg);
}

/* ---------- 4. Hero ---------- */

/* page-load sequence */

/* orbit ring: rotating colour gradient, see section 11 */

/* ---------- 5. About / Courses ---------- */
.about-image-box {
  height: 520px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image-box:hover img {
  transform: scale(1.06);
}

.feature-list {
  margin-top: 25px;
}

.feature-list div {
  padding: 10px;
  color: #34445b;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.feature-list div:hover {
  transform: translateX(5px);
  color: var(--purple);
}

.program-card {
  position: relative;
  height: 100%;
  padding: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 5px solid var(--purple);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.program-card::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.07);
  transition: transform 0.45s ease;
}

.program-card:hover {
  transform: translateY(-10px);
  border-color: var(--purple-light);
  box-shadow: var(--shadow-purple);
}

.program-card:hover::before {
  transform: scale(1.5);
}

.program-card > * {
  position: relative;
  z-index: 1;
}

.program-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--purple-tint);
  font-size: 2rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.program-card:hover .program-icon {
  transform: translateY(-4px) rotate(-8deg);
}

.program-card h3 {
  font-size: 2rem;
}

.accent-line,
.faculty-bottom-line {
  width: 72px;
  height: 4px;
  border-radius: 10px;
  background: var(--grad);
}

.accent-line {
  margin: 22px 0;
  transition: width 0.4s ease;
}

.program-card:hover .accent-line {
  width: 110px;
}

.program-card ul {
  list-style: none;
  margin: 0;
  padding: 15px 0 20px;
}

.program-card li {
  padding: 8px 0;
  color: #34445b;
  font-weight: 600;
}

.program-btn {
  display: block;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  color: var(--purple);
  border: 1px solid var(--purple);
  border-radius: 14px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.program-btn:hover {
  background: var(--purple);
  color: #fff;
}

/* Subjects + goal */
.subjects-card {
  height: 100%;
  padding: 40px;
  border-radius: 30px;
  background: var(--ink);
  color: #fff;
}

.subjects-card .eyebrow {
  color: var(--purple-light);
}

.subjects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

.subjects-grid div {
  color: #e9edf5;
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.subjects-grid div:hover {
  transform: translateX(6px);
  color: var(--purple-light);
}

.goal-card {
  height: 100%;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 25px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
}

.goal-icon {
  font-size: 3rem;
  animation: float-y 5s ease-in-out infinite;
}

.goal-card .btn {
  margin-left: auto;
  white-space: nowrap;
}

/* ---------- 6. Faculty ---------- */
.faculty-slider {
  position: relative;
}

/* one horizontal, snap-scrolling track on every screen size */
#facultyGrid {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  padding: 14px 6px 34px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#facultyGrid::-webkit-scrollbar {
  display: none;
}

#facultyGrid > .faculty-col {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}

.faculty-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 12px 25px rgba(124, 58, 237, 0.28);
  transform: translateY(-50%);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.faculty-nav-prev {
  left: -25px;
}

.faculty-nav-next {
  right: -25px;
}

.faculty-nav:hover {
  background: var(--purple-dark);
  transform: translateY(-50%) scale(1.08);
}

.faculty-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.faculty-card:hover {
  transform: translateY(-8px);
  border-color: var(--purple-light);
  box-shadow: var(--shadow-purple);
}

.faculty-image {
  position: relative;
  height: 360px; /* three cards per row on desktop: taller photo keeps faces uncropped */
  overflow: hidden;
  background: #ede9fe;
}

.faculty-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.faculty-card:hover .faculty-image img {
  transform: scale(1.07);
}

.faculty-number {
  position: absolute;
  z-index: 3;
  right: 18px;
  top: 18px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.28);
  transition: transform 0.35s ease;
}

.faculty-card:hover .faculty-number {
  transform: scale(1.08) rotate(6deg);
}

.faculty-content {
  padding: 25px;
}

.faculty-name {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.faculty-qualification {
  margin-bottom: 22px;
  color: var(--ink-soft);
}

.faculty-bottom-line {
  transition: width 0.4s ease;
}

.faculty-card:hover .faculty-bottom-line {
  width: 110px;
}

.faculty-card {
  cursor: pointer;
}

.faculty-card:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.faculty-view-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, rgba(20, 33, 61, 0) 40%, rgba(109, 40, 217, 0.88) 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.faculty-card:hover .faculty-view-overlay,
.faculty-card:focus-visible .faculty-view-overlay {
  opacity: 1;
  transform: translateY(0);
}

.faculty-view-overlay i {
  font-size: 1.05rem;
}

/* ---------- Faculty detail modal ---------- */
.faculty-modal .modal-content {
  border: none;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-purple);
}

.faculty-modal .modal-body {
  padding: 0;
}

/* big, unmissable close button over the photo */
.faculty-modal-close {
  position: absolute;
  z-index: 6;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 10px 24px rgba(31, 17, 71, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.faculty-modal-close:hover,
.faculty-modal-close:focus-visible {
  transform: rotate(90deg) scale(1.06);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.45);
}

.faculty-modal-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* second close button at the end of the text, where the thumb is on phones */
.faculty-modal-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--purple-tint);
  color: var(--purple-dark);
  font-family: Poppins, "Noto Sans Devanagari", sans-serif;
  font-weight: 700;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.faculty-modal-done:hover,
.faculty-modal-done:focus-visible {
  background: var(--purple);
  color: #fff;
}

.faculty-modal-image {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: #ede9fe;
}

/* blurred copy of the same photo fills the space around a portrait */
.faculty-modal-image::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--modal-img) center / cover no-repeat;
  filter: blur(22px) saturate(1.2);
  opacity: 0.6;
}

/* the photo itself is never cropped */
.faculty-modal-image img {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 24px rgba(31, 41, 55, 0.25));
}

.faculty-modal-number {
  position: absolute;
  z-index: 3;
  left: 20px;
  bottom: -20px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.3);
  border: 3px solid #fff;
}

.faculty-modal-content {
  padding: 34px 30px 30px;
}

.faculty-modal-content h3 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.faculty-modal-qualification {
  margin: 0;
  color: var(--purple);
  font-weight: 600;
}

.faculty-modal-divider {
  width: 70px;
  height: 4px;
  margin: 18px 0;
  border-radius: 3px;
  background: var(--grad);
}

.faculty-modal-description {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.faculty-modal.fade .modal-dialog {
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.faculty-modal.show .modal-dialog {
  transform: scale(1) translateY(0);
}

/* ---------- 7. Why choose us ---------- */
.why-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #faf8ff 100%);
}

.why-section::before,
.why-section::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
  background: rgba(124, 58, 237, 0.06);
}

.why-section::before {
  left: -170px;
  top: 90px;
}

.why-section::after {
  right: -170px;
  bottom: 40px;
}

.why-section .container {
  position: relative;
  z-index: 1;
}

.why-heading {
  max-width: 780px;
  margin: 0 auto 55px;
}

.why-heading h2 {
  margin: 14px 0 16px;
}

.why-heading h2 span {
  color: var(--purple);
}

.why-heading p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.why-card {
  position: relative;
  height: 100%;
  min-height: 285px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid #e8e1fa;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(31, 41, 55, 0.055);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.why-card::before {
  content: "";
  position: absolute;
  right: -55px;
  top: -55px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.13), rgba(139, 92, 246, 0.025));
  transition: transform 0.4s ease;
}

.why-card:hover {
  transform: translateY(-9px);
  border-color: var(--purple-light);
  box-shadow: 0 24px 55px rgba(124, 58, 237, 0.15);
}

.why-card:hover::before {
  transform: scale(1.35);
}

.why-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.why-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #f3eeff, #ede9fe);
  border: 1px solid #ddd0fe;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.09);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-card:hover .why-icon {
  transform: translateY(-5px) scale(1.06);
}

.why-number {
  padding: 8px 11px;
  border-radius: 10px;
  background: #f7f4ff;
  font-family: Poppins, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--purple);
}

.why-card h4 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.why-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- 8. Library ---------- */
.library-section {
  overflow: hidden;
  background: linear-gradient(135deg, #f8f7ff 0%, #fff 50%, #f4f0ff 100%);
}

.library-title {
  font-family: Poppins, sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}

.library-title span {
  color: var(--purple);
}

.library-lead {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 1.05rem;
}

.library-focus-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px 26px;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 18px 40px rgba(20, 33, 61, 0.16);
}

.library-focus-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.8rem;
  animation: float-y 6s ease-in-out infinite;
}

.library-focus-banner strong {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.library-focus-banner strong span {
  margin: 0 7px;
  color: var(--gold);
}

.library-focus-banner p {
  margin: 4px 0 0;
  color: #d9ddea;
}

.library-discipline {
  margin-left: auto;
  text-align: right;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.library-discipline b {
  display: block;
  color: var(--gold);
}

.library-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.library-feature {
  display: flex;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.05);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.library-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(124, 58, 237, 0.13);
}

.library-feature-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.1);
  font-size: 1.25rem;
}

.library-feature h5 {
  margin: 1px 0 5px;
  font-size: 1rem;
  color: #17213a;
}

.library-feature p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
}

.library-panel {
  height: 100%;
  padding: 28px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
}

.library-panel h3 {
  margin-bottom: 18px;
  font-weight: 800;
  color: var(--navy);
}

.why-choose-library ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.why-choose-library li {
  position: relative;
  padding-left: 28px;
  color: #4d5568;
  font-weight: 600;
}

.why-choose-library li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 900;
}

.perfect-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.perfect-list > div {
  padding: 14px;
  border-radius: 15px;
  background: #f8f7ff;
  transition: transform 0.25s ease;
}

.perfect-list > div:hover {
  transform: translateY(-4px);
}

.perfect-list span {
  margin-right: 8px;
  font-size: 1.2rem;
}

.perfect-list b {
  color: #17213a;
}

.perfect-list p {
  margin: 7px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.library-bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.library-bottom-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 18px;
  background: #fff;
}

.library-bottom-item > span {
  font-size: 1.6rem;
}

.library-bottom-item small {
  display: block;
  color: var(--purple);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.library-bottom-item b {
  display: block;
  margin-top: 2px;
  color: var(--navy);
}

.library-bottom-item p {
  margin: 2px 0 0;
  font-size: 0.86rem;
}

/* ---------- Fee structure ---------- */
.fees-section {
  position: relative;
  background:
    radial-gradient(circle at 90% 8%, rgba(139, 92, 246, 0.12), transparent 32%),
    radial-gradient(circle at 6% 92%, rgba(236, 72, 153, 0.08), transparent 30%),
    linear-gradient(180deg, #faf8ff 0%, #fff 100%);
}

.fees-section h2 span {
  background: linear-gradient(92deg, #7c3aed 0%, #a855f7 45%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* --- Coaching / Library segmented switch --- */
.fees-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(440px, 100%);
  margin: 0 auto 36px;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.14);
}

.fees-tabs-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc(50% - 6px);
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.32);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.fees-tabs[data-active="library"] .fees-tabs-indicator {
  transform: translateX(100%);
}

.fees-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4b5563;
  font-family: Poppins, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.fees-tab:hover {
  color: var(--purple);
}

.fees-tab.is-active,
.fees-tab.is-active:hover {
  color: #fff;
}

.fees-tab:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.45);
  outline-offset: 2px;
}

/* panels: both visible without JS; the script hides the inactive one */
.fees-panel[hidden] {
  display: none !important;
}

.fees-panel.is-entering {
  animation: fees-panel-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fees-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Coaching fee cards --- */
.fee-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* soft purple glow in the top corner */
.fee-card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 70%);
  pointer-events: none;
  transition: transform 0.45s ease;
}

.fee-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-purple);
}

.fee-card:hover::after {
  transform: scale(1.4);
}

.fee-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.fee-card-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--purple-tint);
  font-size: 1.7rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fee-card:hover .fee-card-icon {
  transform: translateY(-3px) rotate(-8deg);
}

.fee-card-head h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.fee-card-sub {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.fee-price {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin: 22px 0 18px;
  padding: 16px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7f3ff 0%, #fdf2ff 100%);
}

.fee-price small {
  margin-top: 6px;
  color: var(--purple);
  font-family: Poppins, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
}

.fee-price b {
  font-family: Poppins, sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  background: linear-gradient(92deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.fee-price span {
  align-self: flex-end;
  margin: 0 0 4px 6px;
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}

.fee-points {
  position: relative;
  z-index: 1;
  flex: 1;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 11px;
}

.fee-points li {
  position: relative;
  padding-left: 30px;
  color: #34445b;
  font-weight: 600;
}

.fee-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-soft);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

.fee-card .program-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fee-card .program-btn i {
  transition: transform 0.3s ease;
}

.fee-card .program-btn:hover i {
  transform: translateX(4px);
}

/* demo class + girls teaser under the coaching cards */
.fees-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.fees-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #34445b;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.fees-strip-item > i:first-child {
  color: var(--purple);
  font-size: 1.1rem;
}

.fees-strip-item b {
  color: var(--ink);
}

.fees-strip-link {
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.fees-strip-link > i:first-child {
  color: #ec4899;
}

.fees-strip-link:hover {
  transform: translateY(-2px);
  border-color: var(--purple-light);
  box-shadow: var(--shadow-purple);
}

.fees-strip-link .bi-arrow-right-short {
  color: var(--purple);
  font-size: 1.3rem;
}

/* --- Library plan cards --- */
.fee-table-card {
  position: relative;
  height: 100%;
  padding: 26px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.fee-table-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.fee-table-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--grad-soft);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.25);
}

.fee-table-head h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.fee-table-head h3 em {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--purple-tint);
  color: var(--purple);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fee-table-head p {
  margin: 2px 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.plan-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f8f7ff;
  color: #34445b;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.plan-list li:hover {
  transform: translateX(4px);
  border-color: var(--line);
  background: #fff;
}

.plan-list li > span small {
  margin-left: 4px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-list b {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--purple-dark);
  font-family: Poppins, sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  white-space: nowrap;
}

.plan-list b small {
  color: var(--ink-soft);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
}

.plan-list li.is-best {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.28);
}

.plan-list li.is-best:hover {
  background: var(--grad);
}

.plan-list li.is-best b,
.plan-list li.is-best b small,
.plan-list li.is-best > span small {
  color: #fff;
}

.plan-list li.is-best b small,
.plan-list li.is-best > span small {
  opacity: 0.8;
}

.plan-list li.is-best i {
  color: var(--gold);
}

.fee-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--purple-dark);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* --- Special offer for girls --- */
.girls-offer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  padding: 26px 30px;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 20%, rgba(236, 72, 153, 0.38), transparent 42%),
    linear-gradient(120deg, #8b5cf6 0%, #7c3aed 45%, #5b21b6 100%);
  box-shadow: var(--shadow-purple);
}

.girls-offer::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: offer-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes offer-shine {
  0%,
  55% {
    transform: translateX(-120%) skewX(-18deg);
  }
  100% {
    transform: translateX(380%) skewX(-18deg);
  }
}

.girls-offer-medal {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  font-size: 2.1rem;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22);
  animation: float-y 5s ease-in-out infinite;
}

.girls-offer-text {
  position: relative;
  z-index: 1;
}

.girls-offer-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.girls-offer h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 800;
}

.girls-offer h3 b {
  color: #fde68a;
}

.girls-offer p {
  margin: 0;
  color: #ede9fe;
  font-weight: 500;
  line-height: 1.55;
}

.girls-offer-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

.girls-offer .girls-offer-btn,
.girls-offer .girls-offer-btn:hover,
.girls-offer .girls-offer-btn:active {
  background: #fff;
  color: var(--purple-dark);
  box-shadow: 0 12px 26px rgba(31, 17, 71, 0.25);
}

/* --- What every library plan includes --- */
.fee-includes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.fee-includes {
  position: relative;
  padding: 24px 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.fee-includes h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
}

.fee-includes h4 i {
  color: var(--purple);
}

.fee-includes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.fee-includes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--purple-tint);
  color: #3b2a6b;
  font-size: 0.88rem;
  font-weight: 600;
}

.fee-includes li i {
  color: var(--purple);
}

.fees-note {
  margin: 30px 0 0;
  text-align: center;
  font-weight: 600;
  color: #34445b;
}

.fees-note i,
.fees-note a {
  color: var(--purple);
}

.fees-note a {
  font-weight: 800;
  text-decoration: none;
}

.fees-note span {
  color: var(--ink-soft);
}

@media (max-width: 991.98px) {
  .fee-price b {
    font-size: 2.4rem;
  }
}

@media (max-width: 767.98px) {
  /* switch stays reachable while scrolling through long plan lists */
  .fees-tabs {
    position: sticky;
    top: calc(var(--header-h) + 10px);
    z-index: 20;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
  }

  .fees-tabs.is-stuck {
    box-shadow: 0 16px 34px rgba(31, 17, 71, 0.18);
  }

  .fees-tab {
    min-height: 44px;
    padding: 8px 6px;
    font-size: 0.88rem;
  }

  /* --- compact coaching cards: title + price on one row, points as chips --- */
  #feesPanelCoaching .row {
    --bs-gutter-y: 14px;
  }

  .fee-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px 12px;
    padding: 18px 16px 16px;
    border-radius: 22px;
  }

  .fee-card::after {
    top: -90px;
    right: -60px;
  }

  .fee-card:hover {
    transform: none;
  }

  .fee-card-head {
    gap: 11px;
  }

  .fee-card-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.35rem;
  }

  .fee-card-head h3 {
    font-size: 1.02rem;
  }

  /* the price already says "/ month"; the sub-label only squeezed the title */
  .fee-card-sub {
    display: none;
  }

  /* "₹500" on one line, "/ month" under it; the box is only as wide as the price */
  .fee-price {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: end;
    align-items: baseline;
    gap: 0 1px;
    margin: 0;
    padding: 7px 11px 5px;
    border-radius: 14px;
    text-align: right;
  }

  .fee-price small {
    margin-top: 0;
    font-size: 1rem;
  }

  .fee-price b {
    font-size: 1.85rem;
    letter-spacing: -0.5px;
  }

  .fee-price span {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.72rem;
  }

  .fee-points {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
  }

  .fee-points li {
    padding: 5px 10px 5px 25px;
    border-radius: 999px;
    background: var(--purple-tint);
    color: #3b2a6b;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .fee-points li::before {
    top: 50%;
    left: 5px;
    width: 16px;
    height: 16px;
    font-size: 0.58rem;
    transform: translateY(-50%);
  }

  .fee-card .program-btn {
    grid-column: 1 / -1;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
  }

  .fees-strip {
    gap: 10px;
    margin-top: 20px;
  }

  .fees-strip-item {
    width: 100%;
    justify-content: flex-start;
    padding: 11px 16px;
    border-radius: 16px;
    font-size: 0.88rem;
    text-align: left;
  }

  .fees-strip-link .bi-arrow-right-short {
    margin-left: auto;
  }

  /* --- library plans --- */
  .fee-table-card {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .fee-table-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .fee-table-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.15rem;
  }

  .fee-table-head h3 {
    font-size: 1.02rem;
  }

  .fee-table-head p {
    font-size: 0.8rem;
  }

  .plan-list {
    gap: 7px;
  }

  .plan-list li {
    padding: 11px 13px;
    border-radius: 13px;
    font-size: 0.92rem;
  }

  .plan-list li:hover {
    transform: none;
  }

  .plan-list b {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    font-size: 1.05rem;
  }

  /* --- girls' offer: medal beside the text, button underneath --- */
  .girls-offer {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 20px 18px;
    border-radius: 22px;
    text-align: left;
  }

  .girls-offer-medal {
    grid-row: span 2;
    width: 58px;
    height: 58px;
    font-size: 1.55rem;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
  }

  .girls-offer-tag {
    justify-self: start; /* grid items stretch by default; keep the pill tight */
    margin-bottom: 5px;
    padding: 4px 10px;
    font-size: 0.64rem;
    letter-spacing: 1px;
  }

  .girls-offer h3 {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .girls-offer p {
    grid-column: 1 / -1;
    font-size: 0.86rem;
  }

  .girls-offer-text {
    display: contents;
  }

  .girls-offer-text > * {
    position: relative;
    z-index: 1;
  }

  .girls-offer-text > :not(p) {
    grid-column: 2;
  }

  .girls-offer-btn {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
  }

  .fee-includes-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }

  .fee-includes {
    padding: 18px 16px;
  }

  .fee-includes li {
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .fees-note {
    margin-top: 22px;
    font-size: 0.92rem;
  }
}

/* ---------- 9. Gallery ---------- */
.gallery-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(124, 58, 237, 0.12), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(139, 92, 246, 0.1), transparent 26%),
    linear-gradient(180deg, #fff 0%, #faf8ff 100%);
}

.gallery-section .section-title {
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
}

.gallery-section .section-title span {
  color: var(--purple);
}

.gallery-section .section-description {
  max-width: 720px;
}

.gallery-carousel {
  position: relative;
  padding: 0 58px 46px;
}

.gallery-carousel .carousel-item {
  padding: 8px 2px 16px;
}

.gallery-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(31, 41, 55, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-9px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 26px 60px rgba(124, 58, 237, 0.16);
}

.gallery-media {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: #ede9fe;
}

.gallery-media img,
.gallery-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.08);
}

/* light sweep across the photo on hover */
.gallery-media::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
}

.gallery-card:hover .gallery-media::after {
  animation: shine-sweep 1.1s ease forwards;
}

.gallery-card-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 118px;
  padding: 20px 22px 22px;
}

.gallery-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-soft);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.22);
}

.gallery-card-body h4 {
  margin: 0 0 5px;
  font-size: 1.05rem;
}

.gallery-card-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.video-media {
  background: #14101d;
}

.video-media::after {
  display: none;
}

.gallery-control {
  width: 48px;
  height: 48px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  opacity: 1;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 12px 25px rgba(124, 58, 237, 0.22);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.gallery-control.carousel-control-prev {
  left: 0;
}

.gallery-control.carousel-control-next {
  right: 0;
}

.gallery-control:hover {
  background: var(--purple-dark);
  transform: translateY(-50%) scale(1.08);
}

.gallery-control .carousel-control-prev-icon,
.gallery-control .carousel-control-next-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.gallery-carousel .carousel-indicators {
  bottom: 0;
  margin-bottom: 0;
}

.gallery-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border: 0;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.3);
  opacity: 1;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}

.gallery-carousel .carousel-indicators .active {
  width: 28px;
  border-radius: 999px;
  background: var(--purple);
}

/* ---------- FAQ + map ---------- */
.faq-section h2 span {
  color: var(--purple);
}

.faq-accordion .accordion-item {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 18px !important;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-header {
  margin: 0;
}

.faq-accordion .accordion-button {
  padding: 18px 22px;
  font-family: Poppins, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--purple);
  background: var(--purple-tint);
}

.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.faq-accordion .accordion-button::after {
  background-size: 1rem;
}

.faq-accordion .accordion-body {
  padding: 4px 22px 20px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.faq-accordion .accordion-body a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}

.map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.map-card-body {
  padding: 20px 22px 22px;
}

.map-card-body b {
  display: block;
  font-family: Poppins, sans-serif;
  font-size: 1.08rem;
  color: var(--ink);
}

.map-card-body p {
  margin: 6px 0 14px;
  font-size: 0.94rem;
}

.map-card-body .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.directions-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
}

.directions-link:hover {
  text-decoration: underline;
  color: var(--purple-dark);
}

.footer-areas {
  margin: -6px 0 18px !important;
  font-size: 0.86rem;
  color: #aeb7c6 !important;
}

.footer-areas b {
  color: #c4b5fd;
}

/* ---------- 10. Contact ---------- */
.contact-section {
  background: linear-gradient(135deg, #fff 0%, #faf8ff 55%, #f3eeff 100%);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 0;
}

.contact-detail > span {
  font-size: 1.7rem;
}

.contact-detail small,
.footer-contact small {
  display: block;
  letter-spacing: 1px;
  font-weight: 800;
  color: #7f8da4;
}

.contact-detail b {
  display: block;
  font-size: 1.05rem;
}

.phone-link {
  display: block;
  width: max-content;
  max-width: 100%;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.phone-link:hover,
.phone-link:focus {
  color: var(--purple);
  text-decoration: underline;
}

.whatsapp-contact {
  display: inline-block;
  margin: 0 0 15px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.whatsapp-contact:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.3);
}

/* Enquiry form */
.contact-form {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, #fff 0%, #faf8ff 100%);
  box-shadow: 0 20px 55px rgba(31, 41, 55, 0.1);
}

.contact-form::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -110px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16), transparent 70%);
  pointer-events: none;
}

.enquiry-form-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.enquiry-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--grad);
  font-size: 23px;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.28);
}

.enquiry-form-title h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
}

.enquiry-form-title p {
  margin: 3px 0 0;
  font-size: 0.92rem;
}

.enquiry-field {
  position: relative;
  z-index: 1;
}

.enquiry-label {
  display: block;
  margin: 0 0 8px 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #344766;
  text-transform: uppercase;
}

.input-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.75;
  pointer-events: none;
}

.enquiry-field textarea + .field-icon {
  top: 22px;
  transform: none;
}

.contact-form .form-control,
.contact-form .form-select {
  min-height: 54px;
  padding: 0 16px 0 46px;
  border: 1.5px solid #e2dcf3;
  border-radius: 14px;
  background: #fff;
  color: #233754;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.contact-form .form-select {
  padding-left: 16px;
}

.contact-form textarea.form-control {
  min-height: 125px;
  padding-top: 15px;
}

.contact-form .form-control::placeholder {
  color: #9aa8bc;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
  transform: translateY(-1px);
}

.enquiry-submit {
  position: relative;
  z-index: 1;
  min-height: 56px;
  font-size: 1rem;
  font-weight: 800;
}

.enquiry-note {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.82rem;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 78px 0 0;
  background: linear-gradient(135deg, #111827 0%, #1e1b4b 48%, #111827 100%);
  color: #e5e7eb;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 12%, rgba(124, 58, 237, 0.25), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(59, 130, 246, 0.16), transparent 28%);
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr;
  gap: 55px;
  padding-bottom: 48px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Poppins, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.footer-brand span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--grad-soft);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.28);
}

.footer-brand em {
  font-style: normal;
  color: #c4b5fd;
}

.footer-brand-area > p {
  max-width: 500px;
  margin: 18px 0;
  color: #b8c0d0;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-instagram,
.footer-whatsapp,
.footer-youtube {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: 0.25s ease;
}

.footer-instagram:hover {
  background: #e1306c;
  border-color: #e1306c;
  color: #fff;
  transform: translateY(-4px);
}

.footer-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  transform: translateY(-4px);
}

.footer-youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
  transform: translateY(-4px);
}

.footer-column h5 {
  position: relative;
  margin: 4px 0 20px;
  padding-bottom: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-column h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.footer-links a {
  color: #b8c0d0;
  font-size: 0.96rem;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-links a::before {
  content: "→";
  margin-right: 7px;
  color: var(--purple-light);
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.footer-contact-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.22);
  color: #ddd6fe;
}

.footer-contact span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-contact small {
  color: var(--purple-light);
  font-size: 0.68rem;
}

.footer-contact b,
.footer-phone-link {
  color: #f3f4f6;
  font-weight: 600;
  line-height: 1.55;
  text-decoration: none;
}

.footer-phone-link:hover {
  color: #c4b5fd;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
  padding: 28px 32px;
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.23), rgba(255, 255, 255, 0.06));
}

.footer-cta-badge {
  display: inline-block;
  margin-bottom: 6px;
  color: #c4b5fd;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.footer-cta h4 {
  margin: 0 0 5px;
  color: #fff;
  font-weight: 800;
}

.footer-cta p {
  margin: 0;
  color: #cbd5e1;
}

.footer-enroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  white-space: nowrap;
  border-radius: 13px;
  background: #fff;
  color: #4c1d95;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  transition: 0.25s ease;
}

.footer-enroll-btn:hover {
  color: #4c1d95;
  transform: translateY(-3px);
}

.footer-enroll-btn i {
  animation: nudge-x 1.8s ease-in-out infinite;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aeb7c6;
  font-size: 0.92rem;
}

.footer-bottom b {
  color: #fff;
}

.footer-tagline {
  color: #c4b5fd;
  font-weight: 600;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  animation: ring-pulse 2.4s ease-out infinite;
  transition: transform 0.25s ease;
}

.floating-whatsapp:hover {
  color: #fff;
  transform: scale(1.1);
}

/* Slider dots show everywhere; the swipe hint is phone-only */
.swipe-hint {
  display: none;
}

.slider-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.28);
  transition:
    width 0.3s ease,
    background 0.3s ease;
}

.slider-dots button.active {
  width: 26px;
  background: var(--purple);
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */
@media (max-width: 991.98px) {
  :root {
    --nav-h: 82px;
    --marquee-h: 42px;
  }

  .section-padding {
    padding: 80px 0;
  }

  #mainNav {
    padding: 10px 0;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  #navbarMenu {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(31, 41, 55, 0.1);
  }

  .navbar-nav {
    gap: 2px !important;
  }

  .navbar-nav .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background: var(--purple-tint);
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  #navbarMenu > .btn {
    width: 100%;
    margin-top: 12px;
    text-align: center;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  /* menu never grows taller than the screen: it scrolls inside instead */
  #navbarMenu {
    max-height: calc(100vh - var(--header-h) - 12px);
    max-height: calc(100dvh - var(--header-h) - 12px);
    overflow-y: auto;
  }

  

  

  

  .about-image-box {
    height: 440px;
  }

  .program-card,
  .why-card,
  .subjects-card,
  .goal-card,
  .contact-form {
    padding: 28px;
  }

  .goal-card {
    flex-wrap: wrap;
  }

  .goal-card .btn {
    margin-left: 0;
  }

  .faculty-image {
    height: 300px;
  }

  .gallery-carousel {
    padding-left: 50px;
    padding-right: 50px;
  }

  .gallery-media {
    height: 280px;
  }

  .library-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-focus-banner {
    align-items: flex-start;
  }

  .library-bottom-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand-area {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE (≤767.98px)
   Faculty and gallery become swipeable photo cards.
   ========================================================= */
@media (max-width: 767.98px) {
  :root {
    --nav-h: 78px;
    --marquee-h: 38px;
  }

  body {
    font-size: 15px;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-padding {
    padding: 62px 0;
  }

  .row {
    --bs-gutter-x: 1rem;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
  }

  .eyebrow-pill {
    padding: 8px 14px;
    border-radius: 18px;
  }

  .section-intro {
    max-width: 100%;
    font-size: 0.95rem;
  }

  /* Nav */
  .navbar-brand {
    font-size: 1.05rem;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  /* Hero */
  

  

  

  

  

  

  

  

  

  

  

  

  

  /* Cards */
  .about-image-box {
    height: clamp(300px, 82vw, 400px);
    border-radius: 22px;
  }

  .program-card,
  .why-card,
  .subjects-card,
  .goal-card,
  .contact-form,
  .library-panel {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .program-card h3 {
    font-size: 1.55rem;
  }

  .program-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 20px;
    font-size: 1.6rem;
  }

  .why-card {
    min-height: auto;
  }

  .goal-card {
    display: block;
  }

  .goal-icon {
    margin-bottom: 14px;
  }

  .goal-card .btn {
    width: 100%;
    margin-top: 14px;
  }

  .subjects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 13px 10px;
    font-size: 0.95rem;
  }

  /* let the long library heading wrap naturally instead of on a forced break */
  .library-title br {
    display: none;
  }

  .library-title {
    font-size: clamp(1.7rem, 7.5vw, 2.2rem);
  }

  /* ----- Mobile faculty cards: swipeable photo cards ----- */
  #facultyGrid {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    margin: 0 -18px;
    padding: 6px 18px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #facultyGrid::-webkit-scrollbar {
    display: none;
  }

  #facultyGrid > .faculty-col {
    flex: 0 0 76%;
    max-width: 320px;
    padding: 0;
    scroll-snap-align: center;
  }

  .faculty-card {
    position: relative;
    height: auto;
    aspect-ratio: 3 / 4;
    border: 0;
    border-radius: 26px;
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.16);
  }

  .faculty-image {
    height: 100%;
  }

  /* scrim keeps the name readable over any photo */
  .faculty-image::after {
    content: "";
    position: absolute;
    inset: 38% 0 0;
    background: linear-gradient(180deg, transparent, rgba(23, 16, 45, 0.35) 45%, rgba(23, 16, 45, 0.9));
  }

  .faculty-number {
    left: 14px;
    right: auto;
    top: 14px;
    width: auto;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }

  .faculty-content {
    position: absolute;
    z-index: 2;
    inset: auto 0 0 0;
    padding: 18px 18px 20px;
  }

  .faculty-name {
    margin: 0 0 3px;
    color: #fff;
    font-size: 1.22rem;
  }

  .faculty-qualification {
    margin: 0 0 12px;
    color: #e4dcff;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .faculty-bottom-line {
    width: 46px;
    height: 3px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.25));
  }

  /* ----- Mobile gallery cards: one photo card per slide ----- */
  .gallery-carousel {
    padding: 0 0 12px;
  }

  .gallery-carousel .carousel-item {
    padding: 6px 0 14px;
  }

  .gallery-carousel .carousel-item > .row {
    margin-left: 0;
    margin-right: 0;
  }

  .gallery-carousel .carousel-item > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .gallery-control {
    display: none;
  }

  .gallery-card {
    max-width: 460px;
    margin: 0 auto;
    border: 0;
    border-radius: 26px;
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.16);
  }

  .gallery-media {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  /* caption sits on the photo */
  .gallery-card:not(.gallery-video-card) .gallery-media::before {
    content: "";
    position: absolute;
    inset: 42% 0 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(23, 16, 45, 0.36) 45%, rgba(23, 16, 45, 0.88));
  }

  .gallery-card:not(.gallery-video-card) .gallery-card-body {
    position: absolute;
    z-index: 2;
    inset: auto 0 0 0;
    align-items: center;
    min-height: 0;
    padding: 18px;
  }

  .gallery-card:not(.gallery-video-card) .gallery-card-body h4 {
    color: #fff;
    font-size: 1.1rem;
  }

  .gallery-card:not(.gallery-video-card) .gallery-card-body p {
    color: #e4dcff;
    font-size: 0.85rem;
  }

  .gallery-video-card .gallery-card-body {
    min-height: 0;
    padding: 16px 18px 18px;
  }

  .gallery-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  /* swipe affordances shared by both sliders */
  .slider-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
  }

  .slider-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.28);
    transition:
      width 0.3s ease,
      background 0.3s ease;
  }

  .slider-dots button.active {
    width: 24px;
    background: var(--purple);
  }

  .swipe-hint {
    display: block;
    margin: 10px 0 0;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--purple);
  }

  .swipe-hint span {
    display: inline-block;
    animation: nudge-x 1.6s ease-in-out infinite;
  }

  /* Library / contact / footer */
  .library-feature-grid,
  .why-choose-library ul,
  .perfect-list,
  .library-bottom-row {
    grid-template-columns: 1fr;
  }

  .library-focus-banner {
    flex-direction: column;
    padding: 20px;
    border-radius: 18px;
  }

  .library-focus-banner strong {
    font-size: 1.05rem;
  }

  .library-discipline {
    margin-left: 0;
    text-align: left;
    font-size: 0.9rem;
  }

  .contact-detail {
    padding: 15px 0;
  }

  .contact-form .form-control,
  .contact-form .form-select {
    min-height: 50px;
  }

  .contact-form .btn {
    width: 100%;
  }

  .site-footer {
    padding-top: 58px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px;
  }

  .footer-brand-area {
    grid-column: auto;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }

  .footer-enroll-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
  }

  /* ----- Faculty detail modal ----- */
  .faculty-modal .modal-dialog {
    margin: 12px;
    max-width: calc(100% - 24px);
  }

  .faculty-modal-image {
    height: min(62vh, 420px);
  }

  .faculty-modal-number {
    width: 46px;
    height: 46px;
    left: 16px;
    bottom: -18px;
    font-size: 0.9rem;
  }

  .faculty-modal-content {
    padding: 28px 20px 24px;
  }

  .faculty-modal-content h3 {
    font-size: 1.28rem;
  }

  .faculty-modal-description {
    font-size: 0.92rem;
  }

  .faculty-modal-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  /* ----- Announcement marquee ----- */
  .announce-track {
    gap: 2rem;
    animation-duration: 55s;
  }

  .announce-item {
    font-size: 0.82rem;
  }

  .announce-marquee::before,
  .announce-marquee::after {
    width: 32px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  

  

  #facultyGrid > .faculty-col {
    flex-basis: 82%;
  }

  .faculty-name {
    font-size: 1.12rem;
  }
}

/* Bigger tap targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .program-btn,
  .footer-links a,
  .phone-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Announcement Marquee (pinned above the navbar) ---------- */
.announce-marquee {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1031; /* one above Bootstrap's fixed-top navbar */
  height: var(--marquee-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.2);
}

.announce-marquee::before,
.announce-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.announce-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--purple-dark), transparent);
}

.announce-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--purple-dark), transparent);
}

.announce-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex: 0 0 auto; /* the strip is a flex row now: never let the track shrink */
  width: max-content;
  animation: marquee-scroll 85s linear infinite;
  will-change: transform;
}

.announce-marquee:hover .announce-track {
  animation-play-state: paused;
}

.announce-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0.95;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.announce-item:hover {
  transform: scale(1.08);
  opacity: 1;
}

.announce-item i {
  color: var(--gold);
  font-size: 1.05rem;
  animation: announce-pulse 1.8s ease-in-out infinite;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes announce-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

@media (max-width: 576px) {
  .announce-track {
    gap: 2rem;
    animation-duration: 58s;
  }

  .announce-item {
    font-size: 0.85rem;
  }
}

/* =========================================================
   11. ROTATING OUTLINES
   A conic-gradient ring drawn in a pseudo-element, masked to
   the border only, and spun by animating --ring-angle.
   Browsers without @property still show the (static) ring.
   ========================================================= */
@property --ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes ring-spin {
  to {
    --ring-angle: 360deg;
  }
}

:root {
  --ring-brand:
    #7c3aed 0%,
    #f5b400 22%,
    #ec4899 40%,
    #22d3ee 58%,
    #a78bfa 78%,
    #7c3aed 100%;
  --ring-light:
    rgba(255, 255, 255, 0.12) 0%,
    #fde68a 22%,
    #ffffff 40%,
    #f0abfc 58%,
    rgba(255, 255, 255, 0.12) 78%,
    rgba(255, 255, 255, 0.12) 100%;
  --ring-soft:
    #e9e1ff 0%,
    #c4b5fd 18%,
    #f5b400 32%,
    #f0abfc 46%,
    #c4b5fd 60%,
    #e9e1ff 72%,
    #e9e1ff 100%;
  --ring-dark:
    rgba(255, 255, 255, 0.06) 0%,
    #a78bfa 22%,
    #f5b400 40%,
    #a78bfa 58%,
    rgba(255, 255, 255, 0.06) 78%,
    rgba(255, 255, 255, 0.06) 100%;
}

/* every element that gets a ring must be a positioning context */
.btn-primary-custom,
.btn-outline-custom,
.program-btn,
.whatsapp-contact,
.footer-enroll-btn,
.navbar-toggler,
.footer-instagram,
.footer-whatsapp,
.footer-youtube,
.faculty-card,
.library-feature,
.library-panel,
.library-bottom-item,
.fee-card,
.fee-table-card,
.fee-includes,
.girls-offer,
.goal-card,
.subjects-card,
.footer-cta,
.footer-contact,
.map-card,
.faq-accordion .accordion-item,
.hero-stats,
.eyebrow-pill,
.enquiry-icon,
.brand-icon,
.footer-brand span,
.library-focus-banner {
  position: relative;
}

/* ring drawn in ::before (element's ::before is free) */
.btn-primary-custom::before,
.btn-outline-custom::before,
.program-btn::before,
.whatsapp-contact::before,
.footer-enroll-btn::before,
.gallery-control::before,
.faculty-nav::before,
.floating-whatsapp::before,
.navbar-toggler::before,
.footer-instagram::before,
.footer-whatsapp::before,
.footer-youtube::before,
.faculty-card::before,
.gallery-card::before,
.library-feature::before,
.library-panel::before,
.library-bottom-item::before,
.fee-card::before,
.fee-table-card::before,
.fee-includes::before,
.girls-offer::before,
.goal-card::before,
.subjects-card::before,
.footer-cta::before,
.footer-contact::before,
.map-card::before,
.faq-accordion .accordion-item::before,
.hero-stats::before,
.eyebrow-pill::before,
.enquiry-icon::before,
.brand-icon::before,
.footer-brand span::before,
.faculty-modal .modal-content::before,
#navbarMenu::before,
.program-card::after,
.why-card::after,
.contact-form::after,
.library-focus-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  padding: var(--ring-w, 2px);
  background: conic-gradient(from var(--ring-angle, 0deg), var(--ring, var(--ring-brand)));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ring-spin var(--ring-speed, 3.2s) linear infinite;
}

/* --- Buttons: vivid rings, old solid borders removed --- */
.btn-primary-custom,
.whatsapp-contact,
.gallery-control,
.faculty-nav,
.floating-whatsapp,
.footer-instagram,
.footer-whatsapp,
.footer-youtube,
.enquiry-icon,
.brand-icon,
.footer-brand span {
  --ring: var(--ring-light);
}

.btn-outline-custom,
.program-btn,
.navbar-toggler,
.footer-enroll-btn {
  --ring: var(--ring-brand);
  border-color: transparent;
}

.btn-outline-custom:hover,
.program-btn:hover {
  --ring: var(--ring-light);
}

.btn-primary-custom:active,
.btn-primary-custom.active {
  color: #fff;
  background: var(--grad);
}

.btn-primary-custom:hover,
.footer-enroll-btn:hover,
.whatsapp-contact:hover {
  --ring-w: 2.5px;
}

.navbar-toggler,
.footer-instagram,
.footer-whatsapp,
.footer-youtube {
  --ring-w: 1.5px;
  --ring-speed: 4s;
}

.floating-whatsapp {
  --ring-w: 3px;
  --ring-speed: 2.4s;
}

.brand-icon,
.footer-brand span,
.enquiry-icon {
  --ring-w: 1.5px;
  --ring-speed: 5s;
}

/* --- Cards: soft rings that brighten on hover --- */
.program-card,
.why-card,
.faculty-card,
.gallery-card,
.library-feature,
.library-panel,
.library-bottom-item,
.fee-card,
.fee-table-card,
.fee-includes,
.goal-card,
.contact-form,
.map-card,
.faq-accordion .accordion-item,
.hero-stats,
.eyebrow-pill,
.faculty-modal .modal-content {
  --ring: var(--ring-soft);
  --ring-w: 1.5px;
  --ring-speed: 7s;
  border-color: transparent;
}

.subjects-card,
.footer-cta,
.footer-contact,
.library-focus-banner {
  --ring: var(--ring-dark);
  --ring-w: 1.5px;
  --ring-speed: 7s;
  border-color: transparent;
}

.program-card:hover,
.why-card:hover,
.faculty-card:hover,
.gallery-card:hover,
.library-feature:hover,
.library-panel:hover,
.library-bottom-item:hover,
.goal-card:hover,
.fee-card:hover,
.fee-table-card:hover,
.contact-form:focus-within {
  --ring: var(--ring-brand);
  --ring-w: 2px;
  border-color: transparent;
}

.girls-offer {
  --ring: var(--ring-light);
  --ring-w: 2px;
  --ring-speed: 4s;
}

/* the course cards keep their thick purple top edge */
.program-card,
.program-card:hover {
  border-top-color: var(--purple);
}

/* --- Hero portrait: the orbit ring is a spinning colour ring --- */

/* the portrait frame itself is a slowly rotating gradient */

/* --- Extra style: gradient accent words, glowing scroll bar --- */
.hero-section h1 span,
.why-heading h2 span,
.library-title span,
.gallery-section .section-title span {
  background: linear-gradient(92deg, #7c3aed 0%, #a855f7 45%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nav-progress {
  background: linear-gradient(90deg, var(--purple), #ec4899, var(--gold));
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
}

.eyebrow-pill {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-primary-custom {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 45%, #6d28d9 100%);
  background-size: 160% 160%;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-position 0.5s ease,
    color 0.25s ease;
}

.btn-primary-custom:hover {
  background-position: 100% 100%;
}

.floating-whatsapp {
  background: linear-gradient(135deg, #34e07a, #1fb35a);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35);
}

#navbarMenu > .btn {
  white-space: nowrap;
}

/* the dropdown menu panel on phones/tablets gets a soft ring too */
#navbarMenu {
  --ring: var(--ring-soft);
  --ring-w: 1.5px;
  --ring-speed: 7s;
}

@media (max-width: 991.98px) {
  #navbarMenu {
    position: relative;
    border-color: transparent;
  }
}

@media (min-width: 992px) {
  #navbarMenu::before {
    display: none;
  }
}

/* =========================================================
   12. EXTRA MOBILE POLISH
   ========================================================= */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* tablets: keep the visual and the copy balanced */
@media (min-width: 768px) and (max-width: 991.98px) {
  

  

  

  

  

  .program-card h3 {
    font-size: 1.7rem;
  }

  .faculty-image {
    height: 340px;
  }

  #facultyGrid > .faculty-col {
    flex-basis: calc((100% - 24px) / 2);
  }

  .faculty-nav-prev {
    left: -14px;
  }

  .faculty-nav-next {
    right: -14px;
  }
}

@media (max-width: 767.98px) {
  /* stop iOS zooming into inputs: 16px is the threshold */
  .contact-form .form-control,
  .contact-form .form-select {
    font-size: 16px;
  }

  

  

  

  /* gallery arrows stay usable on phones: small, glassy, over the photo */
  .gallery-control {
    display: flex;
    width: 40px;
    height: 40px;
    --ring-w: 1.5px;
    background: rgba(124, 58, 237, 0.75);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 18px rgba(31, 41, 55, 0.25);
  }

  .gallery-control.carousel-control-prev {
    left: 6px;
  }

  .gallery-control.carousel-control-next {
    right: 6px;
  }

  .gallery-control .carousel-control-prev-icon,
  .gallery-control .carousel-control-next-icon {
    width: 0.95rem;
    height: 0.95rem;
  }

  .floating-whatsapp {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
  }

  .navbar-toggler {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  

  .faculty-modal .modal-dialog {
    margin: 12px auto;
  }

  .faculty-nav {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    --ring-w: 1.5px;
    background: rgba(124, 58, 237, 0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .faculty-nav-prev {
    left: -8px;
  }

  .faculty-nav-next {
    right: -8px;
  }

  .announce-item:hover {
    transform: none;
  }
}

/* narrow phones */
@media (max-width: 400px) {
  .navbar-brand {
    font-size: 0.95rem;
    gap: 6px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  /* slider bleed matches the 15px container padding used at this width */
  #facultyGrid {
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .navbar-toggler {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 340px) {
  .navbar-brand span:not(.brand-icon) {
    display: none;
  }
}

/* desktops just above the tablet breakpoint: arrows stay inside the clipped section,
   and the 8-link navbar is tightened so it never runs into the Enroll button */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-brand {
    font-size: 1.22rem;
    gap: 6px;
  }

  .navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  #mainNav .navbar-nav {
    gap: 0 !important;
  }

  #mainNav .nav-link {
    padding-left: 5px;
    padding-right: 5px;
    font-size: 0.88rem;
  }

  #mainNav .nav-link::after {
    left: 5px;
    right: 5px;
  }

  #navbarMenu > .btn {
    padding: 10px 14px !important;
    font-size: 0.86rem;
  }

  .faculty-nav-prev {
    left: -12px;
  }

  .faculty-nav-next {
    right: -12px;
  }
}

/* short landscape phones: pull the hero up so it fits the screen */

/* =========================================================
   13. LANGUAGE SWITCH (English / Hindi)
   ========================================================= */
.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  margin-right: 10px;
  padding: 3px;
  border-radius: 999px;
  background: var(--purple-tint);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.14);
}

.lang-btn {
  min-width: 40px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5b4a86;
  font-family: Poppins, "Noto Sans Devanagari", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.lang-btn:hover {
  color: var(--purple);
}

.lang-btn.is-active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.3);
}

.lang-btn:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.4);
  outline-offset: 2px;
}

/* desktop: the switch sits after the Enroll button */
@media (min-width: 992px) {
  .lang-switch {
    order: 5;
    margin: 0 0 0 12px;
  }
}

@media (max-width: 400px) {
  .lang-switch {
    margin-right: 8px;
  }

  .lang-btn {
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    font-size: 0.76rem;
  }
}

/* --- Hindi typography: Devanagari needs room for its matras and no tight tracking --- */
body {
  font-family: Inter, "Noto Sans Devanagari", system-ui, sans-serif;
}

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] h5 {
  font-family: Poppins, "Noto Sans Devanagari", sans-serif;
  line-height: 1.35;
}

html[lang="hi"] .hero-section h1 {
  letter-spacing: 0;
  line-height: 1.2;
}

html[lang="hi"] .eyebrow,
html[lang="hi"] .library-bottom-item small,
html[lang="hi"] .contact-detail small,
html[lang="hi"] .footer-contact small,
html[lang="hi"] .footer-cta-badge,
html[lang="hi"] .enquiry-label,
html[lang="hi"] .girls-offer-tag,
html[lang="hi"] .footer-column h5,
html[lang="hi"] .library-focus-banner strong,
html[lang="hi"] .library-discipline {
  letter-spacing: 0.3px;
}

html[lang="hi"] p,
html[lang="hi"] li {
  line-height: 1.85;
}

/* small desktops: compact switch so the 8-link menu still fits beside it */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .lang-switch {
    margin-left: 8px;
  }

  .lang-btn {
    min-width: 34px;
    height: 32px;
    padding: 0 8px;
  }
}

/* mid desktops (1140px container): trim the gap between links so the switch fits */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #mainNav .navbar-nav {
    gap: 2px !important;
  }

  #mainNav .nav-link {
    padding-left: 7px;
    padding-right: 7px;
  }

  #mainNav .nav-link::after {
    left: 7px;
    right: 7px;
  }
}

/* =========================================================
   14. HERO - photo built into a dark hero
   Photo fills the right half on desktop and the top on phones,
   fading into the background. No frame, card, float or entrance motion.
   ========================================================= */
.hero-section {
  --hero-bg: #0e0a1f;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(860px, 100vh);
  padding: calc(var(--header-h) + 56px) 0 72px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(124, 58, 237, 0.32), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(236, 72, 153, 0.14), transparent 36%),
    linear-gradient(135deg, #120c2b 0%, var(--hero-bg) 55%, #0b0819 100%);
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

/* --- the photo --- */
.hero-photo {
  position: absolute;
  z-index: 1;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: 54%;
  margin: 0;
}

/* photo + tint fade out together: towards the text (left), under the navbar (top)
   and into the next section (bottom), so no edge of the photo is ever visible */
.hero-photo-media {
  position: absolute;
  inset: 0;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 36%),
    linear-gradient(to bottom, transparent 0%, #000 5%),
    linear-gradient(to top, transparent 0%, #000 24%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 36%),
    linear-gradient(to bottom, transparent 0%, #000 5%),
    linear-gradient(to top, transparent 0%, #000 24%);
  mask-composite: intersect;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 0%;
}

/* tint the bright office background so the photo sits in the dark scene */
.hero-photo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(14, 10, 31, 0.7) 0%, rgba(14, 10, 31, 0.2) 40%, rgba(14, 10, 31, 0.08) 65%, rgba(14, 10, 31, 0.32) 100%),
    linear-gradient(to top, rgba(14, 10, 31, 0.75) 0%, rgba(14, 10, 31, 0) 35%);
}

.hero-photo-caption {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 56px;
  padding-left: 14px;
  border-left: 3px solid #a78bfa;
  text-align: left;
}

.hero-photo-caption h3 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.hero-photo-caption p {
  margin: 2px 0 0;
  color: #c4b5fd;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* --- the copy --- */
.hero-copy {
  position: relative;
}

.hero-section .eyebrow-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #d8ccff;
  border-color: rgba(196, 181, 253, 0.25);
}

.hero-section h1 {
  margin: 18px 0 22px;
  color: #fff;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -2.5px;
}

.hero-section h1 span {
  background: linear-gradient(92deg, #c4b5fd 0%, #a78bfa 40%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  max-width: 54ch;
  margin-bottom: 30px;
  color: #cbd5e1;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-section .btn-outline-custom {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.hero-section .btn-outline-custom:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 470px;
  margin-top: 40px;
  padding: 16px 6px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  --ring: var(--ring-dark);
}

.hero-stats > div {
  text-align: center;
}

.hero-stats > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats strong {
  display: block;
  font-family: Poppins, sans-serif;
  font-size: 1.9rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-stats span {
  color: #b8b2d6;
  font-size: 0.88rem;
}

/* tablets & phones: photo on top, text underneath */
@media (max-width: 991.98px) {
  .hero-section {
    display: block;
    min-height: 0;
    padding: var(--header-h) 0 56px;
    text-align: center;
  }

  .hero-photo {
    position: relative;
    top: auto;
    width: 100%;
    height: min(92vw, 560px);
  }

  /* on phones the photo only fades downward, into the text */
  .hero-photo-media {
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 40%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(to top, transparent 0%, #000 40%);
    mask-composite: add;
  }

  .hero-photo-img {
    object-position: 50% 0%;
  }

  .hero-photo-media::after {
    background:
      linear-gradient(to top, rgba(14, 10, 31, 0.8) 0%, rgba(14, 10, 31, 0) 50%),
      linear-gradient(to bottom, rgba(14, 10, 31, 0.3) 0%, rgba(14, 10, 31, 0) 22%);
  }

  .hero-photo-caption {
    right: auto;
    left: 50%;
    bottom: 54px; /* in the faded strip under the photo, clear of the person */
    padding: 0;
    border: 0;
    text-align: center;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  /* text rises slightly into the faded part of the photo */
  .hero-section > .container {
    margin-top: -40px;
  }

  .hero-section h1 {
    margin: 16px 0 16px;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    margin: 32px auto 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding-bottom: 48px;
  }

  .hero-photo {
    height: min(108vw, 470px);
  }

  .hero-photo-caption h3 {
    font-size: 1.08rem;
  }

  .hero-photo-caption p {
    font-size: 0.8rem;
  }

  .hero-section h1 {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
    letter-spacing: -1.5px;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-stats {
    padding: 13px 4px;
  }

  .hero-stats strong {
    font-size: 1.5rem;
  }

  .hero-stats span {
    font-size: 0.8rem;
  }
}

/* Hindi: Devanagari needs looser lines in the big headline */
html[lang="hi"] .hero-section h1 {
  letter-spacing: 0;
  line-height: 1.2;
}

/* =========================================================
   15. SCROLL PERFORMANCE
   ========================================================= */
/* Animations in off-screen sections are frozen (class set by script.js). */
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after {
  animation-play-state: paused !important;
}

/* Large cards keep their colourful outline, but it only spins while hovered or focused.
   Repainting big rotating gradients every frame was the main cause of scroll lag;
   buttons and labels (small) keep spinning all the time. */
.program-card::after,
.why-card::after,
.contact-form::after,
.library-focus-banner::after,
.faculty-card::before,
.gallery-card::before,
.library-feature::before,
.library-panel::before,
.library-bottom-item::before,
.goal-card::before,
.subjects-card::before,
.footer-cta::before,
.footer-contact::before,
.map-card::before,
.faq-accordion .accordion-item::before,
.fee-card::before,
.fee-table-card::before,
.fee-includes::before,
.faculty-modal .modal-content::before,
.hero-stats::before,
#navbarMenu::before {
  animation-play-state: paused;
}

.program-card:hover::after,
.why-card:hover::after,
.contact-form:focus-within::after,
.library-focus-banner:hover::after,
.faculty-card:hover::before,
.gallery-card:hover::before,
.library-feature:hover::before,
.library-panel:hover::before,
.library-bottom-item:hover::before,
.goal-card:hover::before,
.subjects-card:hover::before,
.footer-cta:hover::before,
.footer-contact:hover::before,
.map-card:hover::before,
.faq-accordion .accordion-item:hover::before,
.fee-card:hover::before,
.fee-table-card:hover::before,
.fee-includes:hover::before,
.hero-stats:hover::before {
  animation-play-state: running;
}

/* WhatsApp pulse: a scaling ring (GPU) instead of an animated box-shadow (repaint) */
.floating-whatsapp {
  animation: none;
}

.floating-whatsapp::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* small blur effects add up while scrolling; solid tints look the same */
.eyebrow-pill {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(255, 255, 255, 0.85);
}

.hero-section .eyebrow-pill {
  background: rgba(255, 255, 255, 0.08);
}

/* phones & tablets: no live blur behind the fixed navbar or sticky switch */
@media (max-width: 991.98px) {
  #mainNav,
  #mainNav.scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }

  .fees-tabs,
  .gallery-control,
  .faculty-nav {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .fees-tabs {
    background: #fff;
  }

  .gallery-control,
  .faculty-nav {
    background: rgba(124, 58, 237, 0.92);
  }
}

/* respect reduced motion for the new pulse too */
@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp::after {
    animation: none;
    opacity: 0;
  }
}
