/* ===========================
   Design Tokens (single source of truth)
=========================== */

:root {
  /* Primary Colors */
  --primary-blue: #0f2b5b;
  --accent-red: #e63946;
  --golden-yellow: #d4af37;
  --success-green: #10b981;
  --light-blue: #3b82f6;
  --deep-purple: #7c3aed;

  /* Neutral Colors */
  --dark-gray: #0f172a;
  --medium-gray: #334155;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --extra-light-gray: #f1f5f9;
  --white: #ffffff;

  /* Semantic aliases (used across the file) */
  --navy: var(--primary-blue);
  --navy-dark: #0a1f42;
  --gold: var(--golden-yellow);
  --red: var(--accent-red);
  --green: var(--success-green);
  --line: var(--light-gray);
  --bg: var(--white);
  --text-muted: var(--gray);
  --text-soft: #aab4cc;
  --border-line: rgba(255, 255, 255, 0.08);

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    #1e40af 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-red) 0%,
    #ff6b6b 100%
  );
  --gradient-navy: linear-gradient(
    160deg,
    var(--navy) 0%,
    var(--navy-dark) 100%
  );

  /* Typography */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Poppins", sans-serif;

  /* Spacing (8px base) */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0px 2px 8px rgba(15, 43, 91, 0.06);
  --shadow-md: 0px 6px 20px rgba(15, 43, 91, 0.08);
  --shadow-lg: 0px 10px 30px rgba(15, 43, 91, 0.12);
  --shadow-xl: 0px 20px 50px rgba(15, 43, 91, 0.15);

  /* Header height — kept in sync with the real header by script.js;
       this value is only the first-paint fallback before JS runs */
  --header-height: 130px;
}

/* ===========================
   Reset
=========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark-gray);
  background: var(--white);
  padding-top: var(--header-height); /* kept in sync with header by JS */
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

/* ===========================
   Common
=========================== */

.container {
  width: 90%;
  max-width: 1400px;
  margin: auto;
}

/* ===========================
   Header
=========================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* ===========================
   Top Bar
=========================== */

.top-bar {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 0;
  transition: all 0.35s ease;
}

.top-bar.hide {
  margin-top: -45px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.contact-link {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s;
}

.contact-link:hover {
  color: var(--gold);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: var(--white);
  transition: 0.3s;
}

.social-icons a:hover {
  color: var(--gold);
}

/* ===========================
   Navbar
=========================== */

.red {
  color: var(--accent-red);
}

.yellow {
  color: var(--golden-yellow);
}

.navbar {
  background: var(--white);
  height: 90px;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.logo img {
  width: 52px;
}

/* Fixed width so the typing/rotating subtitle can never change the
   box's intrinsic size and push the nav — it just clips inside it. */
.logo-text {
  width: 255px;
  flex-shrink: 0;
}

.logo-text h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
  /* overflow: hidden; */
  /* text-overflow: ellipsis; */
  color: var(--navy);
}

.logo-text p {
  font-family: var(--font-body);
  font-size: 10.5px;
  color: var(--gray);
  width: 100%;
  white-space: nowrap;
  /* overflow: hidden; */
  /* text-overflow: ellipsis; */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 14px;
  min-width: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-gray);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14.5px;
  white-space: nowrap;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links li.active > a {
  color: var(--red);
}

.apply-btn {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  transition: 0.3s;
}

.apply-btn:hover {
  background: #cf2e3b;
}

.navbar .apply-btn {
  padding: 12px 22px;
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-text p {
  color: #666;
  height: 16px;
  /* overflow: hidden; */
}

#typingText {
  display: inline-block;
  white-space: nowrap;
  /* border-right:2px solid #0d2d5d; */
  padding-right: 2px;
  font-size: smaller;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    border-color: #0d2d5d;
  }

  51%,
  100% {
    border-color: transparent;
  }
}

/* ===========================
   Hamburger
=========================== */

.menu-toggle {
  display: none;
  font-size: 22px;
  color: var(--navy);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

/* Groups the Apply Now button and hamburger so they stay
   pinned together on the right, instead of space-between
   pushing them apart once nav-links leaves the flex row. */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* ===========================
   Nav Dropdowns (desktop)
   Reusable pattern for ANY top-level nav item:
     <li class="nav-dropdown">
       <a href="page.html">Label</a>
       <button type="button" class="dropdown-toggle" aria-expanded="false">
         <i class="fa-solid fa-chevron-down"></i>
       </button>
       <ul class="dropdown-menu">
         <li><a href="...">Sub link</a></li>
       </ul>
     </li>
   No other CSS/JS edits are needed to add more of these later —
   script.js wires up every .nav-dropdown it finds automatically.
=========================== */

.nav-links li.nav-dropdown {
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 2px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.dropdown-toggle i {
  font-size: 10px;
  color: var(--gray);
  transition: transform 0.25s ease;
}

.nav-dropdown.open > .dropdown-toggle i,
.nav-dropdown:hover > .dropdown-toggle i,
.nav-dropdown:focus-within > .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 1001;
}

/* Invisible bridge that fills the visual gap above the menu so the
   mouse never leaves a hoverable element on its way down to it. */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu,
.nav-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-gray);
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--extra-light-gray);
  color: var(--red);
}

.dropdown-menu li.active a {
  background: var(--extra-light-gray);
  color: var(--red);
}

@media (prefers-reduced-motion: reduce) {
  .dropdown-menu,
  .dropdown-toggle i {
    transition: none;
  }
}

/* ===========================
   HERO SECTION
=========================== */

.hero {
  display: flex;
  position: relative;
  height: 620px;
  overflow: hidden;
}

/* ---------- Left Side ---------- */

.hero-left {
  width: 42%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  /* z-index:2; */
}

.hero-content {
  width: 100%;
  max-width: 540px;
  padding: 0 10px;
}

/* ---------- Right Side ---------- */

.hero-right {
  width: 58%;
  position: relative;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-left: 60px;
}

/* ---------- White Fog Blend ---------- */

.fog {
  position: absolute;
  top: -15%;
  left: -110px;

  width: 280px;
  height: 190%;

  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.98) 18%,
      rgba(255, 255, 255, 0.9) 35%,
      rgba(255, 255, 255, 0.7) 50%,
      rgba(255, 255, 255, 0.35) 72%,
      rgba(255, 255, 255, 0) 100%
    ),
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 1), transparent 65%),
    radial-gradient(
      circle at 22% 40%,
      rgba(255, 255, 255, 0.95),
      transparent 70%
    ),
    radial-gradient(
      circle at 18% 65%,
      rgba(255, 255, 255, 0.92),
      transparent 70%
    ),
    radial-gradient(
      circle at 24% 90%,
      rgba(255, 255, 255, 0.9),
      transparent 70%
    );

  filter: blur(45px);
}

.fog::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(255, 255, 255, 0.9),
      transparent 60%
    ),
    radial-gradient(
      circle at 28% 38%,
      rgba(255, 255, 255, 0.8),
      transparent 65%
    ),
    radial-gradient(
      circle at 18% 65%,
      rgba(255, 255, 255, 0.9),
      transparent 60%
    ),
    radial-gradient(
      circle at 30% 90%,
      rgba(255, 255, 255, 0.8),
      transparent 60%
    );

  filter: blur(55px);
}

/* ---------- Text ---------- */

.tag {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero-left h1 {
  color: var(--navy);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-left h1 span {
  color: var(--gold);
}

.hero-left p {
  max-width: 520px;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* ---------- Buttons ---------- */

.hero-btns {
  display: flex;
  gap: 18px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #cf2e3b;
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--line);
}

.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ===========================
   Statistics
=========================== */

.stats-section {
  margin-top: -35px;
  position: relative;
  z-index: 10;
}

.stats-section .container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 30px; /* increase this */
}

.stats-wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 32px;
  border-right: 1px solid #eee;
  min-width: 0;
}

.stat-card:last-child {
  border-right: none;
}

.stat-card i {
  font-size: 28px;
  color: #d7a441;
  flex-shrink: 0;
}

.stat-info {
  min-width: 0;
}

.stat-info h2 {
  font-size: 24px;
  color: var(--navy);
  margin: 0;
  line-height: 1;
  font-weight: 700;
}

.stat-info p {
  margin-top: 6px;
  font-size: 13px;
  color: #666;
  line-height: 1.3;
  text-wrap: balance;
}

/* ===========================
   About
=========================== */

.about {
  padding: 90px 0;
  background: var(--white);
}

.about-container {
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 55px;
  align-items: center;
}

/* LEFT */

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  background: var(--extra-light-gray);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.play-btn i {
  color: var(--navy);
  font-size: 22px;
  margin-left: 4px;
}

.education-tag {
  position: absolute;
  left: -18px;
  bottom: 25px;
  background: var(--navy);
  color: var(--white);
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
}

.education-tag i {
  color: var(--gold);
  font-size: 22px;
}

/* RIGHT */

.section-title {
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.about-content h2 {
  margin: 14px 0 18px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.15;
}

.about-content > p {
  /* color:var(--gray); */
  font-family: var(--font-body);
  line-height: 1.9;
  margin-bottom: 35px;
}

/* FEATURES */

.features {
  display: flex;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.feature-item {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.feature-item:first-child {
  padding-left: 0;
}

.feature-item:last-child {
  border-right: none;
  padding-right: 0;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.icon i {
  color: var(--white);
  font-size: 16px;
}

.icon.red {
  background: var(--red);
}

.icon.gold {
  background: var(--gold);
}

.icon.blue {
  background: var(--navy);
}

.feature-text h4 {
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 10px;
}

.feature-text p {
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
}

/* ===========================
   Courses
=========================== */

.courses-section {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto 40px;
  background: var(--bg);
  border-radius: var(--radius-md);
  /* box-shadow:var(--shadow-sm); */
  padding: 32px;
}

.courses-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px 0;
}

.courses-heading h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--navy);
  margin: 0;
  flex: 1;
  min-width: 0;
}

.courses-heading .rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--line), transparent);
}

.courses-view-all {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.courses-view-all:hover {
  opacity: 0.75;
  transform: translateX(2px);
}

/* ---- Grid ---- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.course-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.course-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Fixed-size, consistent image box for all cards */
.course-image {
  width: 100%;
  height: 110px;
  background: var(--extra-light-gray);
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-body h4 {
  margin: 0 0 8px 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.course-body ul {
  list-style: none;
  margin: 0 0 10px 0;
  padding: 0;
}

.course-body ul li {
  position: relative;
  padding-left: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.course-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.course-seats {
  margin: 0 0 10px 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

.course-learn-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  width: fit-content;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.course-learn-more:hover {
  opacity: 0.8;
  transform: translateX(2px);
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Why choose us
=========================== */

.why-section {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto 40px;
  background: var(--bg);
  border-radius: var(--radius-md);
  /* box-shadow:var(--shadow-sm); */
  padding: 32px;
}

.why-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--navy);
  margin: 0 0 24px 0;
}
.why-heading svg {
  stroke: var(--gold);
  flex-shrink: 0;
}
.why-heading .rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--line), transparent);
  margin-left: 10px;
}
.why-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px 0;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 0;
  min-width: 160px;
  padding: 0 18px;
  position: relative;
  cursor: default;
}
.why-item + .why-item {
  border-left: 1px solid var(--line);
}
.why-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.why-item.is-hovered .why-icon {
  transform: translateY(-3px);
}
.why-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--navy);
}
.why-text h4 {
  margin: 0 0 4px 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.why-text p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .why-grid {
    flex-direction: column;
  }
  .why-item {
    border-left: none !important;
    padding: 0;
    width: 100%;
  }
  .why-item + .why-item {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: 0;
  }
}

/* ===========================
   Admission
=========================== */

.admission-section {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto 40px;
  display: flex;
  /* gap:24px; */
  align-items: stretch;
}

/* ---- Left side ---- */
.admission-left {
  flex: 1;
  background: var(--bg);
  border-radius: var(--radius-md);
  /* box-shadow:var(--shadow-sm); */
  padding: 32px;
}

.admission-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--navy);
  margin: 0 0 24px 0;
}
.admission-heading .rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--line), transparent);
}

.admission-steps {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-card {
  position: relative;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px 16px 18px;
  text-align: center;
  background: var(--white);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-badge {
  position: absolute;
  top: -14px;
  left: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
}
.step-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--gold);
}

.step-card h4 {
  margin: 0 0 4px 0;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.step-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.step-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--line);
}

/* ---- Right CTA panel ---- */
.admission-cta {
  flex: 0 0 300px;
  background: var(--gradient-navy);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);

  /* align-self: center; */
}

.admission-cta h4 {
  margin: 0 0 8px 0;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
}

.admission-cta p {
  margin: 0 0 20px 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

.cta-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  width: fit-content;
  max-width: 100%;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.cta-apply-btn:hover {
  background: #cf2e3b;
  transform: translateX(2px);
}

.cta-prospectus-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--text-soft);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}
.cta-prospectus-link:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .admission-section {
    flex-direction: column;
  }
  .admission-cta {
    flex: 1;
  }
}

@media (max-width: 800px) {
  .admission-steps {
    flex-direction: column;
    align-items: stretch;
  }
  .step-arrow {
    transform: rotate(90deg);
    align-self: center;
  }
  .step-card {
    padding-top: 30px;
  }
}

/* ===========================
   Campus gallery
=========================== */

.gallery-section {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto 40px;
  background: var(--bg);
  border-radius: var(--radius-md);
  /* box-shadow:var(--shadow-sm); */
  padding: 32px;
}

.gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px 0;
}

.gallery-heading h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--navy);
  margin: 0;
  flex: 1;
  min-width: 0;
}

.gallery-heading .rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--line), transparent);
}

.gallery-view-all {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.gallery-view-all:hover {
  opacity: 0.75;
  transform: translateX(2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--extra-light-gray);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   Gallery Lightbox
=========================== */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 35, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  max-width: 92vw;
  max-height: 88vh;
  transform: scale(0.9) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-lightbox.is-open .gallery-lightbox-card {
  transform: scale(1) translateY(0);
}

.gallery-lightbox-card img {
  display: block;
  width: min(1000px, 88vw);
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 4px);
  background: var(--extra-light-gray);
}

.gallery-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 15, 35, 0.55);
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.gallery-lightbox-close:hover {
  background: var(--red);
  transform: rotate(90deg);
}

@media (max-width: 640px) {
  .gallery-lightbox {
    padding: 16px;
  }
  .gallery-lightbox-card {
    padding: 8px;
    max-width: 96vw;
    max-height: 84vh;
  }
  .gallery-lightbox-card img {
    width: 92vw;
    max-height: 72vh;
  }
  .gallery-lightbox-close {
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox,
  .gallery-lightbox-card {
    transition: none;
  }
}

/* ===========================
   Partners
=========================== */

.partners-section {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto 40px;
  background: var(--bg);
  border-radius: var(--radius-md);
  /* box-shadow:var(--shadow-sm); */
  padding: 32px 0 36px;
}

.partners-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--navy);
  margin: 0 0 24px 0;
  padding: 0 32px;
}
.partners-heading .rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--line), transparent);
}

/* ---- Marquee ---- */
.marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 60px,
    #000 calc(100% - 60px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 60px,
    #000 calc(100% - 60px),
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
}

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

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.partner-logo {
  flex-shrink: 0;
  width: 150px;
  height: 78px;
  margin: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

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

@media (max-width: 600px) {
  .partner-logo {
    width: 120px;
    height: 64px;
    margin: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ===========================
   Testimonials
=========================== */

.testi-section {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto 40px;
  background: var(--bg);
  border-radius: var(--radius-md);
  /* box-shadow:var(--shadow-sm); */
  padding: 32px;
}
.testi-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--navy);
  margin: 0 0 24px 0;
}
.testi-heading .rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--line), transparent);
}

.testi-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testi-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.testi-arrow:hover {
  background: var(--extra-light-gray);
  box-shadow: var(--shadow-sm);
}

.testi-track {
  flex: 1;
  overflow: hidden;
}

.testi-list {
  display: flex;
  gap: 20px;
}

.testi-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testi-top {
  position: relative;
  padding-left: 56px;
  min-height: 44px;
}

.testi-photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--extra-light-gray);
}

.testi-quote {
  position: absolute;
  left: 52px;
  top: -2px;
}
.testi-quote path {
  fill: var(--gold);
}

.testi-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--medium-gray);
  padding-left: 26px;
}

.testi-bottom {
  margin-top: 14px;
}

.testi-name {
  margin: 0 0 2px 0;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.testi-role {
  margin: 0 0 6px 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
}

.testi-stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
}

@media (max-width: 900px) {
  .testi-card {
    flex: 0 0 100%;
    width: 100%;
  }
}

/* ===========================
   CTA Bar
=========================== */

.cta-bar {
  background: var(--navy);
  border-bottom: 1px solid var(--border-line);
  padding: 18px 0;
}

.cta-inner {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cta-icon {
  color: var(--gold);
  flex-shrink: 0;
  display: flex;
}

.cta-heading {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cta-sub {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.cta-sub .dot {
  color: var(--text-muted);
  font-size: 10px;
}

.cta-bar .apply-btn .arrow {
  transition: transform 0.2s ease;
}

.cta-bar .apply-btn:hover .arrow {
  transform: translateX(3px);
}

/* ===========================
   Footer
=========================== */

.footer {
  background: var(--navy);
  padding-top: 48px;
}

.footer-inner {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.col-title {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

/* Brand column */
.brand-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-name {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 15px;
  text-wrap: nowrap;
  font-weight: 700;
  line-height: 1.3;
}

/* .brand-name span{
    color:var(--text-soft);
    font-weight:700;
} */

.brand-tag {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  margin-top: 2px;
}

.brand-desc {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.social-icon:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Link lists */
.link-list li,
.contact-list li {
  margin-bottom: 12px;
}

.link-list a {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13.5px;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.link-list a:hover {
  color: var(--gold);
  padding-left: 3px;
}

/* Contact list */
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
}

.contact-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Google Map */
.map-wrap {
  margin-top: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-line);
}

.map-wrap iframe {
  width: 100%;
  height: 180px;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(0.95);
}

/* Bottom bar */
.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid var(--border-line);
  padding: 20px 0;
  max-width: 1400px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.copyright {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12.5px;
}

.bottom-links {
  display: flex;
  gap: 24px;
}

.bottom-links a {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.bottom-links a:hover {
  color: var(--gold);
}

/* ===========================
   RESPONSIVE (global)
=========================== */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .brand-col {
    grid-column: 1 / -1;
  }
  .about-container {
    grid-template-columns: 1fr;
  }
  .stats-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat-card:nth-child(3) {
    border-right: none;
  }
}

/* ---------------------------------------------------
   TABLET / MOBILE NAV  (≤1400px)
   nav-links becomes a slide-down overlay panel instead
   of a horizontal row; menu-toggle becomes the trigger.
   Threshold is 1400 (not the usual ~900) because the desktop
   nav-links row now carries up to 10 items plus a dropdown —
   below ~1400px there isn't room for that in one horizontal
   line without crowding, so it hands off to the panel instead.
--------------------------------------------------- */
@media (max-width: 1450px) {
  .navbar {
    height: auto;
    /* min-height:76px; */
    padding: 10px 0;
  }

  .logo img {
    width: 46px;
  }

  .logo-text {
    width: 220px;
  }

  .logo-text h2 {
    font-size: 15px;
    line-height: 1.25;
    margin-top: 4px;
  }

  .logo-text p {
    font-size: 9px;
  }

  .navbar .apply-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    transition: background 0.2s ease;
  }

  .menu-toggle:hover,
  .menu-toggle[aria-expanded="true"] {
    background: var(--extra-light-gray);
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: auto;
    width: min(78vw, 320px);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(180deg, #0e2a5a 0%, #081a39 100%);
    box-shadow: 0 18px 50px rgba(6, 14, 32, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 22px 22px 0;
    padding: 14px 0 16px;
    transform: translateX(-102%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.3s ease,
      opacity 0.25s ease,
      visibility 0.25s;
    z-index: 999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

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

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    font-size: 15px;
    color: #e8eef9;
    font-weight: 500;
    letter-spacing: 0.1px;
    border-left: 3px solid transparent;
  }

  .nav-links li.active > a,
  .nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--red);
  }

  .nav-links::before {
    /* content:"MCRS Nursing Institute"; */
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 18px 20px 16px;
    margin-bottom: 4px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0)
      ),
      url("assets/images/logo.webp") no-repeat 18px center / 44px 44px;
    padding-left: 72px;
  }

  /* Hero switches from an absolute image-overlay to a
       stacked image-then-content layout on smaller screens */
  .hero {
    height: auto;
    min-height: 0;
  }

  .slides,
  .slide {
    height: 340px;
    min-height: 0;
  }

  .hero-bg {
    height: 340px;
  }

  .overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 45%,
      rgba(255, 255, 255, 0.92) 92%,
      rgba(255, 255, 255, 1) 100%
    );
  }

  .hero-content {
    position: static;
    display: block;
    background: var(--white);
    padding: 28px 0 44px;
    text-align: center;
    max-width: none;
  }

  .hero-left {
    width: 100%;
    background: #fff;
  }

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

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

  .stats-section {
    margin-top: 0;
    padding: 0 0 8px;
  }

  .stats-wrapper {
    box-shadow: var(--shadow-md);
  }
}

/* ---------------------------------------------------
   Nav Dropdowns (mobile panel) — same .nav-dropdown /
   .dropdown-toggle / .dropdown-menu markup as desktop,
   just becomes an inline accordion instead of a popover.
   Matches the 1400px threshold above so it's always in the
   right mode together with the nav-links panel itself.
--------------------------------------------------- */
@media (max-width: 1450px) {
  .nav-links li.nav-dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links li.nav-dropdown:last-child {
    border-bottom: none;
  }

  .nav-links li.nav-dropdown > a {
    flex: 1;
    min-width: 0;
    border-bottom: none;
  }

  .nav-links li.nav-dropdown > .dropdown-toggle {
    width: 52px;
    flex-shrink: 0;
    align-self: stretch;
  }

  .nav-links li.nav-dropdown > .dropdown-toggle i {
    font-size: 13px;
    color: var(--gold);
  }

  /* On the desktop popover, the chevron flips on hover/focus-within
     too (so it matches the menu appearing without a click). In the
     mobile accordion panel that's the bug: tapping a toggle leaves
     its button focused, so :focus-within stays true and the arrow
     never flips back after the accordion is closed via JS. Mobile
     should only ever reflect the actual .open state. */
  .nav-dropdown > .dropdown-toggle i {
    transform: none;
  }
  .nav-dropdown.open > .dropdown-toggle i {
    transform: rotate(180deg);
  }

  /* Reset the desktop popover positioning — becomes a collapsible
     block that pushes the panel content down instead of floating.
     600px is just a generous cap so the transition always has room
     to reveal everything, even if a future submenu grows much longer. */
  .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.16);
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-dropdown.open > .dropdown-menu {
    max-height: 600px;
  }

  .dropdown-menu a {
    padding: 12px 20px 12px 52px;
    font-size: 14px;
    color: #cdd8ee;
    border-radius: 0;
  }

  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .dropdown-menu li.active a {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  @media (prefers-reduced-motion: reduce) {
    .dropdown-menu {
      transition: none;
    }
  }
}

/* ---------------------------------------------------
   TOP BAR — compact on small screens
--------------------------------------------------- */
@media (max-width: 768px) {
  .top-bar {
    font-size: 12px;
    padding: 8px 0;
  }
  .top-bar .container {
    gap: 12px;
  }
  .top-left {
    flex: 1;
    min-width: 0;
    /* white-space:nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .top-right {
    flex-shrink: 0;
    gap: 14px;
  }
  .top-right a.contact-link:nth-of-type(2) {
    display: none; /* hide the email link, keep phone */
  }
}

@media (max-width: 560px) {
  .social-icons {
    display: none;
  }
  .top-left {
    font-size: 10.5px;
  }
}

@media (max-width: 400px) {
  .top-bar .contact-link span,
  .top-bar .contact-link {
    font-size: 12px;
  }
}

/* ---------------------------------------------------
   GENERAL MOBILE LAYOUT (≤640px)
--------------------------------------------------- */
@media (max-width: 640px) {
  .cta-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cta-left {
    flex-direction: column;
  }
  .cta-sub {
    justify-content: center;
  }
  .cta-bar .apply-btn {
    align-self: stretch;
    justify-content: center;
    text-align: center;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
  .brand-row {
    flex-direction: column;
    align-items: center;
  }
  .social-row {
    justify-content: center;
  }
  .contact-list li {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Hero */
  .hero-left {
    width: 100%;
  }
  .hero-left h1 {
    font-size: clamp(28px, 7.5vw, 36px);
  }
  .hero-left p {
    font-size: 15.5px;
    margin-top: 16px;
  }
  .hero-btns {
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  /* Stats */
  .stats-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: var(--radius-lg);
  }

  .stat-card {
    padding: 20px 14px;
    border-right: 1px solid var(--line) !important;
  }
  .stat-card:nth-child(2n) {
    border-right: none !important;
  }
  .stat-card h2 {
    font-size: 28px;
  }
  .stat-card p {
    font-size: 13.5px;
    text-wrap: wrap;
  }

  /* About */
  .about {
    padding: 48px 0;
  }
  .about-content h2 {
    font-size: 28px;
  }
  .education-tag {
    left: 12px;
    bottom: 12px;
    padding: 10px 16px;
    font-size: 12.5px;
  }
  .features {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }
  .feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .about-content {
    text-align: center;
  }
  .about-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Section cards: courses / why / admission / gallery / partners / testimonials */
  .courses-section,
  .why-section,
  .admission-left,
  .gallery-section,
  .testi-section,
  .about-section {
    padding: 24px;
    border-radius: var(--radius-lg);
  }
  .partners-section {
    padding: 24px 0 28px;
    border-radius: var(--radius-lg);
  }
  .partners-heading {
    padding: 0 24px;
  }
  .courses-heading h3,
  .why-heading,
  .admission-heading,
  .gallery-heading h3,
  .partners-heading,
  .testi-heading {
    font-size: 19px;
  }

  /* Centered section headings on mobile */
  .courses-heading,
  .gallery-heading {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .courses-heading h3,
  .gallery-heading h3 {
    justify-content: center;
  }
  .why-heading,
  .admission-heading,
  .partners-heading,
  .testi-heading {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
  .courses-heading .rule,
  .gallery-heading .rule,
  .why-heading .rule,
  .admission-heading .rule,
  .partners-heading .rule,
  .testi-heading .rule {
    display: none;
  }

  .courses-grid {
    grid-template-columns:  1fr;
    gap: 14px;
  }
  .course-body {
    padding: 14px 14px 16px;
  }
  .course-body h4 {
    font-size: 15.5px;
  }
  .course-body ul li {
    font-size: 13px;
  }
  .course-seats,
  .course-learn-more {
    font-size: 13.5px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .admission-section {
    width: 94%;
    gap: 16px;
  }
  .admission-cta {
    flex: 1;
    padding: 24px 20px;
    align-items: center;
    text-align: center;
  }
  .step-card h4 {
    font-size: 15px;
  }
  .step-card p {
    font-size: 13.5px;
  }
  .why-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .why-text h4 {
    font-size: 16px;
  }
  .why-text p {
    font-size: 14px;
  }

  .testi-wrap {
    gap: 6px;
  }
  .testi-arrow {
    width: 30px;
    height: 30px;
  }
  .testi-arrow svg {
    width: 14px;
    height: 14px;
  }
  .testi-card {
    padding: 14px;
  }

  /* Avatar + quote mark become a compact header row instead of a
     wide reserved gutter down the side — the text below then gets
     the card's full width, so it wraps to fewer lines and the card
     doesn't stretch taller than it needs to. */
  .testi-top {
    padding-left: 0;
    padding-top: 40px;
    min-height: 0;
  }
  .testi-photo {
    width: 34px;
    height: 34px;
  }
  .testi-quote {
    left: 44px;
    top: 4px;
  }
  .testi-quote svg {
    width: 16px;
    height: 16px;
  }
  .testi-text {
    padding-left: 0;
    font-size: 13.5px;
    line-height: 1.5;
  }
  .testi-bottom {
    margin-top: 10px;
  }
  .testi-name {
    font-size: 14px;
  }
  .testi-role {
    font-size: 12px;
    margin-bottom: 4px;
  }

  /* Footer */
  .footer-inner {
    gap: 28px 20px;
  }
  .map-wrap iframe {
    height: 190px;
  }
}

/* ---------------------------------------------------
   SMALL PHONES (≤480px)
--------------------------------------------------- */
@media (max-width: 480px) {
  /* Not enough room for the full tagline next to the logo at phone
     widths without shrinking it below legibility — hide it instead
     of ever cutting it off; the heading stays full and un-clipped. */
  .logo-text {
    width: 168px;
  }

  /* .logo-text p { */
    /* display: none; */
  /* } */

  .slides,
  .slide,
  .hero-bg {
    height: 260px;
  }
  .hero-left h1 {
    font-size: 26px;
    line-height: 1.2;
  }
  .hero-left p {
    font-size: 14.5px;
  }
  .tag {
    font-size: 12px;
  }

  .stats-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-card {
    gap: 10px;
  }
  .stat-card i {
    font-size: clamp(18px, 6vw, 24px);
  }
  .stat-card h2 {
    font-size: clamp(18px, 6vw, 25px);
  }
  .stat-info p {
    white-space: normal;
  }

  .about-content h2 {
    font-size: 24px;
  }
  .about-content > p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .why-grid {
    gap: 16px 0;
  }
  .why-icon svg {
    width: 28px;
    height: 28px;
  }

  .step-card {
    padding: 30px 12px 16px;
  }

  .courses-grid {
    grid-template-columns:  1fr;
  }

  .testi-list {
    gap: 0;
  }
}

@media (max-width: 420px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .cta-apply-btn {
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* ---------------------------------------------------
   Respect reduced-motion preference for the nav panel too
--------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .nav-links {
    transition: none;
  }
}

.about-section {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto 40px;
  display: flex;
  gap: 48px;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius-md);
  /* box-shadow:var(--shadow-sm); */
  padding: 22px 32px;
}

/* ---- Media / image side ---- */
.about-media {
  position: relative;
  flex: 0 0 46%;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #dfe3ee;

  overflow: visible;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  border-radius: 22px;
}

.about-play-btn {
  position: absolute;
  top: 80%;
  left: 80%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.about-play-btn svg {
  margin-left: 2px;
  width: 30px;
  height: 30px;
}
.about-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}

.about-badge {
  position: absolute;
  left: -17px;
  bottom: -21px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  padding: 18px 16px 15px 24px;
  border-radius: 6px;
  max-width: 190px;
}

.about-badge-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Content side ---- */
.about-content {
  flex: 1;
  min-width: 0;
}

.about-eyebrow {
  margin: 0 0 10px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--red);
}

.about-title {
  margin: 0 0 14px 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
}

.about-desc {
  margin: 0 0 26px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar > summary {
  cursor: pointer;
  list-style: none;
}
.pillar > summary::-webkit-details-marker {
  display: none;
}
.pillar > summary::marker {
  content: "";
}

.pillar-summary {
  display: block;
}

.pillar-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.pillar-icon-red {
  background: var(--red);
}
.pillar-icon-gold {
  background: var(--gold);
}
.pillar-icon-navy {
  background: var(--navy);
}

.pillar h4 {
  margin: 0 0 6px 0;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy);
}

.pillar p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-section {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
  }
  .about-media {
    flex: none;
    width: 100%;
  }
  .about-title {
    font-size: 24px;
  }
}

/* Tablet & desktop: the mission/vision/values text is always visible,
   so the native <details> toggle is locked open and non-interactive. */
@media (min-width: 561px) {
  .pillar > summary {
    pointer-events: none;
  }
}

/* Mobile: collapse to a single row of tappable icon+label chips —
   tapping one reveals its description as a floating speech-bubble
   tooltip, instead of every pillar stacking full-height text in a
   column. JS clamps the bubble's horizontal position (and moves its
   arrow to match) so it never runs past the edge of the screen. */
@media (max-width: 560px) {
  .about-pillars {
    display: flex;
    gap: 10px;
  }

  .pillar {
    flex: 1;
    min-width: 0;
    position: relative;
  }

  .pillar-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    text-align: center;
    transition:
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  .pillar[open] > .pillar-summary {
    border-color: var(--red);
    box-shadow: var(--shadow-sm);
  }

  .pillar-icon {
    margin-bottom: 0;
  }

  .pillar h4 {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.3;
  }

  /* Speech-bubble tooltip */
  .pillar p {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    max-width: 80vw;
    margin: 0;
    padding: 12px 14px;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 12.5px;
    line-height: 1.55;
    text-align: left;
    z-index: 5;
    --arrow-x: 50%;
  }

  .pillar p::after {
    content: "";
    position: absolute;
    top: -7px;
    left: var(--arrow-x);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid var(--navy);
  }
}

/* ===========================
   Page Banner (inner pages)
=========================== */

.page-banner {
  background: var(--gradient-navy);
  padding: 64px 0 56px;
}

.page-banner h1 {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 38px;
  margin-bottom: 10px;
}

.page-banner .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-soft);
}

.page-banner .breadcrumb a {
  color: var(--text-soft);
  transition: 0.3s;
}

.page-banner .breadcrumb a:hover {
  color: var(--gold);
}

.page-banner .breadcrumb .sep {
  opacity: 0.5;
}

.page-banner .breadcrumb .current {
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 640px) {
  .page-banner {
    padding: 38px 0 32px;
  }
  .page-banner h1 {
    font-size: 26px;
  }
  .page-banner .breadcrumb {
    font-size: 12.5px;
  }
}

/* ===========================
   Contact Form
=========================== */

.contact-layout {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.contact-info-card,
.contact-form-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

.contact-info-card h3,
.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 22px 0;
}

.contact-info-card .contact-list li {
  font-size: 14.5px;
}

.contact-info-card .map-wrap {
  margin-top: 20px;
  border: 1px solid var(--line);
}

.contact-info-card .map-wrap iframe {
  filter: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark-gray);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-card .btn-primary {
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-size: 16px;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-info-card,
  .contact-form-card {
    padding: 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ===========================
   Bottom Tab Bar (mobile app nav)
=========================== */

.bottom-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(15, 43, 91, 0.1);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-tab-bar ul {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  list-style: none;
}

.bottom-tab-bar li {
  flex: 1;
  display: flex;
}

.bottom-tab-bar a,
.bottom-tab-bar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 60px;
  background: none;
  border: none;
  font-family: var(--font-body);
  color: var(--gray);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.bottom-tab-bar i {
  font-size: 19px;
}

.bottom-tab-bar span {
  font-size: 10.5px;
  font-weight: 600;
}

.bottom-tab-bar li.active a,
.bottom-tab-bar button.is-active {
  color: var(--red);
}

.bottom-tab-bar .mobile-enquiry-item {
  display: none;
}

@media (max-width: 600px) {
  .bottom-tab-bar {
    display: block;
  }
  body {
    padding-bottom: 66px;
  }
  .navbar .apply-btn {
    display: none;
  }
}

/* ===========================
   Mobile touch feedback ("app feel")
=========================== */

@media (max-width: 600px) {
  .btn-primary:active,
  .btn-secondary:active,
  .cta-apply-btn:active,
  .apply-btn:active,
  .course-learn-more:active,
  .courses-view-all:active,
  .gallery-view-all:active,
  .course-card:active,
  .step-card:active {
    transform: scale(0.97);
  }
}

/* ===========================
   Floating Action Button (Enquiry)
=========================== */

.fab-stack {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.fab-enquiry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 15px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.fab-enquiry::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--red);
  z-index: -1;
  animation: fab-pulse 2.4s ease-out infinite;
}

.fab-enquiry:hover {
  background: #cf2e3b;
  transform: translateY(-2px);
}

@keyframes fab-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fab-enquiry::before {
    animation: none;
  }
}

@media (max-width: 600px) {
  .fab-stack {
    display: none;
  }
  .fab-enquiry {
    padding: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    justify-content: center;
    font-size: 0;
  }
  .fab-enquiry:active {
    transform: scale(0.94);
  }

  .fab-enquiry span {
    display: none;
  }

  .bottom-tab-bar .mobile-enquiry-item {
    display: flex;
  }

  .bottom-tab-bar .mobile-enquiry-item button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--red);
    font-family: var(--font-body);
    cursor: pointer;
  }

  .bottom-tab-bar .mobile-enquiry-item i {
    font-size: 19px;
  }

  .bottom-tab-bar .mobile-enquiry-item span {
    font-size: 10px;
    font-weight: 700;
  }
}

/* ===========================
   Modals (Enquiry / Video)
=========================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 35, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  padding: 34px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--extra-light-gray);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: var(--line);
}

.modal-box h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.modal-box .modal-sub {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.modal-success.active {
  display: block;
}

.modal-success i {
  font-size: 48px;
  color: var(--green);
  margin-bottom: 16px;
}

.modal-success h4 {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 8px;
}

.modal-success p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Video modal specifics */
.video-modal-box {
  max-width: 800px;
  padding: 0;
  background: #000;
  overflow: hidden;
}

.video-modal-box .modal-close {
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.video-modal-box .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
}

.video-placeholder {
  text-align: center;
  color: var(--text-soft);
  padding: 20px;
}

.video-placeholder i {
  font-size: 38px;
  margin-bottom: 12px;
  color: var(--gold);
}

.video-placeholder p {
  font-family: var(--font-body);
  font-size: 14px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .modal-box {
    padding: 26px 20px;
  }
  .video-modal-box {
    max-width: 400px;
    padding: 0;
    background: #000;
    overflow: hidden;
  }
}

/* ==========================================================================
   FLOATING STICKY ENQUIRY BUTTON
   ========================================================================== */
.fab-enquiry {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(230, 57, 70, 0.35);
  transition: all 0.25s ease;
}

.fab-enquiry i {
  font-size: 16px;
  color: var(--white);
}

.fab-enquiry:hover {
  background: #cf2e3b;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(230, 57, 70, 0.42);
}

/* ==========================================================================
   ADMISSION ENQUIRY MODAL — Overlay
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 20, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- Modal Shell ---------- */
.enquiry-modal {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(8, 15, 35, 0.45);
  transform: scale(0.95);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.modal-overlay.is-open .enquiry-modal {
  transform: scale(1);
  opacity: 1;
}

/* ---------- Close Button ---------- */
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-blue);
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.modal-close i {
  transition: transform 0.3s ease;
}

.modal-close:hover {
  background: var(--accent-red);
  color: var(--white);
}

.modal-close:hover i {
  transform: rotate(90deg);
}

/* ==========================================================================
   MODAL LEFT — Brand / Info Panel (40%)
   ========================================================================== */
.modal-left {
  position: relative;
  width: 40%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.modal-left-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 43, 91, 0.88) 0%,
    rgba(15, 43, 91, 0.94) 55%,
    rgba(9, 26, 56, 0.98) 100%
  );
}

.modal-left-content {
  position: relative;
  z-index: 2;
  padding: 40px 34px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  overflow-y: auto;
}

.modal-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 30px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  margin-bottom: 22px;
}

.modal-heading {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.28;
  margin-bottom: 16px;
}

.modal-subtext {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 26px;
}

/* Feature list */
.modal-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.feature-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  width: 100%;
  column-gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.feature-item i {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold);
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
  justify-self: center;
  align-self: center;
  transform: translateY(0);
}

.feature-item span {
  line-height: 1.25;
}

.modal-features .feature-item:first-child {
  padding-left: 14px;
}

.modal-features .feature-item:last-child {
  padding-right: 14px;
}

/* Bottom stats row */
.modal-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.modal-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-right: 16px;
}

.modal-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 4px;
  height: 34px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.modal-stat-number {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--white);
}

.modal-stat-label {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   MODAL RIGHT — Enquiry Form (60%)
   ========================================================================== */
.modal-right {
  width: 60%;
  padding: 40px 24px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-right-header {
  margin-bottom: 22px;
}

.modal-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}

.modal-logo-mark {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary-blue);
  letter-spacing: 0.5px;
}

.modal-logo-sub {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--muted-text);
  letter-spacing: 0.3px;
}

.modal-form-heading {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.modal-form-subtext {
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  color: var(--muted-text);
  line-height: 1.6;
  max-width: 460px;
}

/* ---------- Form Layout ---------- */
.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-single {
  grid-template-columns: 1fr;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.input-group label {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--text-dark);
}

.optional-tag {
  color: var(--muted-text);
  font-weight: 400;
}

/* ---------- Input Wrap (icon + field) ---------- */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 18px;
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 46px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: var(--light-bg);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.input-wrap select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}

.input-wrap-textarea {
  align-items: flex-start;
}

.input-icon-textarea {
  top: 18px;
}

.input-wrap textarea {
  height: auto;
  min-height: 90px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
  line-height: 1.6;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: #94a3b8;
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(15, 43, 91, 0.12);
}

.input-wrap:focus-within .input-icon {
  color: var(--primary-blue);
}

/* ---------- Checkbox Row ---------- */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: 2px;
}

.checkbox-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.2s ease;
}

.checkbox-box i {
  font-size: 10px;
  color: var(--white);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s ease;
}

.checkbox-row input[type="checkbox"]:checked ~ .checkbox-box {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

.checkbox-row input[type="checkbox"]:checked ~ .checkbox-box i {
  opacity: 1;
  transform: scale(1);
}

.checkbox-row input[type="checkbox"]:focus-visible ~ .checkbox-box {
  box-shadow: 0 0 0 4px rgba(15, 43, 91, 0.15);
}

.checkbox-label {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-text);
}

.privacy-link {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Success message ---------- */
.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 12px 16px;
  border-radius: 10px;
}

.form-success.is-visible {
  display: flex;
}

.form-success i {
  font-size: 15px;
}

/* ---------- Modal Actions ---------- */
.modal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #eef1f6;
}

.btn-submit {
  flex: 1;
  justify-content: center;
}

.modal-actions .btn-secondary {
  flex: 0 0 auto;
}

/* ==========================================================================
   MODAL — Body scroll lock (applied via JS while modal is open)
   ========================================================================== */
body.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   MODAL — RESPONSIVE
   ========================================================================== */

/* Tablet: keep 40/60 layout, tighten spacing */
@media (max-width: 992px) {
  .enquiry-modal {
    max-width: 90vw;
  }

  .modal-left {
    width: 40%;
  }

  .modal-right {
    width: 60%;
    padding: 32px 28px 26px;
  }

  .modal-left-content {
    padding: 30px 24px;
  }

  .modal-heading {
    font-size: 23px;
  }

  .modal-features {
    gap: 9px;
    margin-bottom: 22px;
  }

  .feature-item {
    font-size: 12.5px;
    min-height: 42px;
    padding: 9px 11px;
  }

  .fab-enquiry span {
    display: none;
  }

  .fab-enquiry {
    padding: 16px;
    border-radius: 50%;
  }
}

/* Desktop & tablet: compact the panel so the whole form fits within
   max-height (90vh) without an inner scrollbar on typical screens. */
@media (min-width: 769px) {
  .modal-left-content {
    padding: 28px 26px;
  }

  .modal-badge {
    margin-bottom: 14px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .modal-heading {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .modal-subtext {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .modal-features {
    gap: 8px;
    margin-bottom: 18px;
  }

  .feature-item {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12.5px;
  }

  .modal-stats {
    padding-top: 14px;
  }

  .modal-stat-number {
    font-size: 19px;
  }

  .modal-right {
    padding: 26px 26px 20px;
  }

  .modal-right-header {
    margin-bottom: 14px;
  }

  .modal-logo {
    margin-bottom: 10px;
  }

  .modal-form-heading {
    font-size: 21px;
    margin-bottom: 5px;
  }

  .modal-form-subtext {
    font-size: 13px;
    line-height: 1.45;
  }

  .enquiry-form {
    gap: 12px;
  }

  .input-group {
    gap: 4px;
  }

  .input-wrap input,
  .input-wrap select,
  .input-wrap textarea {
    height: 42px;
  }

  .input-wrap textarea {
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .checkbox-label {
    line-height: 1.4;
  }

  .modal-actions {
    margin-top: 14px;
    padding-top: 14px;
  }
}

/* Mobile: stacked layout, image on top, form below, full width */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
  }

  .enquiry-modal {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    flex-direction: column;
    overflow-y: auto;
  }

  .modal-left {
    width: 100%;
    height: 260px;
    flex-shrink: 0;
  }

  .modal-left-content {
    height: auto;
    padding: 24px 22px;
    justify-content: flex-end;
    align-items: center;
  }

  .modal-subtext {
    display: none;
  }

  .modal-features {
    display: none;
  }

  .modal-badge {
    align-self: center;
  }

  .modal-heading {
    font-size: 22px;
    margin-bottom: 14px;
    text-align: center;
  }

  .modal-stats {
    justify-content: center;
  }

  .modal-stat {
    align-items: center;
    text-align: center;
    padding-right: 0;
  }

  .modal-stat:not(:last-child) {
    padding-right: 16px;
  }

  .modal-right {
    width: 100%;
    padding: 26px 20px 170px;
  }

  .modal-right-header {
    text-align: center;
  }

  .modal-logo {
    justify-content: center;
  }

  .modal-form-subtext {
    max-width: none;
  }

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

  .modal-form-heading {
    font-size: 22px;
  }

  /* Sticky submit bar on mobile */
  .modal-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 14px 20px;
    margin-top: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .modal-actions .btn-primary,
  .modal-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .enquiry-modal .btn-primary,
  .enquiry-modal .btn-secondary,
  .modal-box .btn-primary,
  .modal-box .btn-secondary {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .modal-close {
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.9);
  }
}

@media (max-width: 480px) {
  .modal-left {
    height: 220px;
  }

  .modal-right {
    padding: 22px 16px 90px;
  }

  .modal-actions {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .modal-badge {
    font-size: 10.5px;
    padding: 6px 12px;
  }
}

/* ==========================================================================
   Responsive Refinements
   Preserve the current layout while smoothing spacing and type scale.
   ========================================================================== */

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

img {
  height: auto;
}

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

:where(.hero-left h1, .about-title, .page-banner h1) {
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.08;
}

:where(
  .courses-heading h3,
  .why-heading,
  .testi-heading,
  .page-banner .breadcrumb,
  .section-title
) {
  font-size: clamp(0.95rem, 1.2vw, 1.25rem);
}

:where(
  .hero-left p,
  .about-desc,
  .feature-text p,
  .pillar p,
  .testi-text,
  .course-body ul li,
  .course-seats,
  .copyright,
  .bottom-links a
) {
  font-size: clamp(0.92rem, 1vw, 1rem);
}

:where(.btn-primary, .btn-secondary, .apply-btn) {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

:where(.btn-primary:hover, .btn-secondary:hover, .apply-btn:hover) {
  transform: translateY(-2px);
}

:where(
  .about-section,
  .why-section,
  .courses-section,
  .gallery-section,
  .partners-section,
  .testi-section
) {
  padding: clamp(22px, 2.8vw, 32px);
}

.about-section {
  padding: clamp(18px, 2.2vw, 24px) clamp(20px, 2.5vw, 32px);
}

.about-container {
  gap: clamp(28px, 4vw, 55px);
}

.hero {
  min-height: 620px;
}

.hero-right img {
  margin-left: clamp(0px, 2vw, 60px);
}

.stats-section .container {
  padding-inline: clamp(16px, 2vw, 30px);
}

.stat-card {
  padding: clamp(14px, 1.8vw, 22px) clamp(10px, 2.2vw, 32px);
}

.course-image {
  height: clamp(96px, 10vw, 110px);
}

.course-body {
  padding: clamp(14px, 1.6vw, 16px) clamp(14px, 1.6vw, 18px);
}

.testi-card {
  padding: clamp(16px, 1.7vw, 18px) clamp(16px, 1.8vw, 20px);
}

.contact-info-card,
.contact-form-card {
  padding: clamp(20px, 2.2vw, 32px);
}

.page-banner {
  padding: clamp(40px, 4vw, 64px) 0 clamp(32px, 3.2vw, 56px);
}

@media (max-width: 900px) {
  .hero-right img {
    margin-left: 0;
  }

  .hero-left h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .about-title {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  }

  .about-section {
    gap: 26px;
  }
}

@media (max-width: 640px) {
  .hero {
    flex-direction: column-reverse;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .hero-right {
    width: 100%;
    height: 320px;
  }

  .hero-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(8, 26, 57, 0.05) 0%,
      rgba(8, 26, 57, 0.36) 100%
    );
    pointer-events: none;
  }

  .hero-left {
    width: 100%;
    background: transparent;
    justify-content: center;
    align-items: flex-start;
  }

  .hero-content {
    width: min(100%, calc(100% - 24px));
    max-width: none;
    margin: -44px auto 0;
    padding: 24px 20px 26px;
    background: var(--white);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 43, 91, 0.14);
    position: relative;
    z-index: 2;
    text-align: left;
  }

  .hero-content::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    width: 62px;
    height: 4px;
    border-radius: 999px;
    background: var(--red);
    transform: translateY(-2px);
  }

  .hero-btns {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 100%;
    padding: 14px 22px;
  }

  .hero-left h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    line-height: 1.05;
    margin-bottom: 14px;
  }

  .hero-left p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 22px;
  }

  .tag {
    margin-bottom: 12px;
  }

  .stats-section .container {
    padding-inline: 16px;
    padding-top: 20px;
  }
}

@media (max-width: 420px) {
  .top-left {
    font-size: 10px;
  }

  .hero-left h1 {
    font-size: clamp(1.8rem, 9vw, 2.25rem);
  }

  .hero-right {
    height: 280px;
  }

  .hero-content {
    width: calc(100% - 18px);
    margin-top: -38px;
    padding: 22px 16px 24px;
  }

  .page-banner h1 {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }
}
