/* =========================================
   OXFORD PUBLIC SCHOOL — STYLESHEET
   style.css
   ========================================= */

/* ─── CSS VARIABLES ─── */
:root {
  --navy: #0a1628;
  --navy-mid: #132240;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #fdf8f0;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #6b7280;
  --border: rgba(201, 168, 76, 0.25);
  --brand-red: #e53935;
  --brand-red-dark: #b71c1c;
  --radius: 12px;
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ─── NAV ─── */
.premium-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 0;
}

.premium-nav.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 100px;
  position: relative;
}

/* Ribbon Logo */
.ribbon-logo {
  position: absolute;
  top: 0;
  left: 3%;
  width: 160px;
  background: var(--brand-red-dark);
  padding: 15px 10px 40px;
  text-decoration: none;
  z-index: 10;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 88%, 0% 100%);
}

.ribbon-logo:hover {
  transform: translateY(5px);
}

.ribbon-content .logo-mark {
  width: 75px;
  height: 75px;
  background: white;
  border-radius: 50%;
  border: 4px solid var(--brand-red-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--brand-red-dark);
  margin-bottom: 8px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.ribbon-content .logo-text {
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 3.5rem;
  margin-left: 200px;
  margin-right: 100px;
  /* Offset for ribbon */
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a span {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: #ffcdd2;
}

.nav-links a:hover span {
  transform: rotate(45deg);
  color: white;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Admissions Button */
.btn-admissions {
  background: var(--brand-red);
  color: white;
  text-decoration: none;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  position: relative;
  transition: all 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
}

/* Side borders/tabs like in the image */
.btn-admissions::before,
.btn-admissions::after {
  content: '';
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--navy);
  transition: transform 0.3s ease;
}

.btn-admissions::before {
  left: -4px;
  border-radius: 2px 0 0 2px;
}

.btn-admissions::after {
  right: -4px;
  border-radius: 0 2px 2px 0;
}

.btn-admissions:hover {
  background: #c62828;
  transform: scale(1.05);
}

/* Menu Toggle & Hamburger Animation */
.menu-toggle {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  color: white;
  z-index: 1100;
}

.menu-text {
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}

/* Hamburger to X when active */
.menu-toggle.active .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  /* Hide by default */
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--navy);
  z-index: 1050;
  padding: 2rem 5%;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.drawer-header .logo-mark {
  width: 50px;
  height: 50px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--navy);
}

.close-drawer {
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links li a {
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  transition: color 0.3s;
}

.mobile-nav-links li a:hover {
  color: var(--gold);
}

.drawer-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
}

.drawer-footer {
  margin-top: auto;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.drawer-footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.drawer-social {
  display: flex;
  gap: 1.5rem;
}

.drawer-social a {
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video iframe {
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.8) 0%,
    rgba(10, 22, 40, 0.4) 40%,
    rgba(10, 22, 40, 0.9) 100%
  );
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: 
    linear-gradient(var(--gold) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5%;
  max-width: 1100px;
  width: 100%;
}

.hero-welcome {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease backwards;
}

.welcome-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-red);
  position: relative;
}

.welcome-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--brand-red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

h1.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.2s ease backwards;
}

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

h1.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-red);
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto 3rem;
  animation: fadeUp 0.8s 0.4s ease backwards;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 5rem;
  animation: fadeUp 0.8s 0.6s ease backwards;
}

/* Updated Stats Bar */
.hero-stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  padding: 30px 50px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: fadeUp 0.8s 0.8s ease backwards;
}

.hero-achievement {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
}

.ach-icon {
  font-size: 2rem;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.ach-info {
  display: flex;
  flex-direction: column;
}

.ach-info .num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.ach-info .lbl {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Scroll Animation */
.hero-scroll-wrap {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  animation: fadeUp 0.8s 1s ease backwards;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  background: var(--gold);
  transform: translateX(-50%);
  border-radius: 3px;
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .hero-stats-bar {
    gap: 2rem;
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .hero-stats-bar {
    flex-wrap: nowrap;
    padding: 1.5rem 1rem;
    gap: 1rem;
    justify-content: space-around;
  }
  
  .hero-achievement {
    width: auto;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .ach-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .ach-info .num {
    font-size: 1.25rem;
  }

  .ach-info .lbl {
    font-size: 0.65rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .hero-stats-bar {
    gap: 0.75rem;
    padding: 1.25rem 0.75rem;
  }

  h1.hero-title {
    font-size: 2.8rem;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, .35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .35);
  padding: .85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--gold);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap .2s;
}

.btn-ghost:hover {
  gap: .75rem;
}

.btn-ghost::after {
  content: '→';
}

/* ─── INFO BANNER — ROTATING HIGHLIGHTS ─── */
.banner-highlight-section {
  padding: 2rem 0; /* Adjusted padding for a banner style */
  background: transparent;
  z-index: 5;
  position: relative;
}
.banner-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0;
  width: 100%;
}
.ops-banner-wrap {
  font-family: 'Poppins', sans-serif;
  background: var(--navy);
  border-radius: 14px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  overflow: hidden;
  position: relative;
  user-select: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* added subtle shadow for depth */
  width: 100%; /* Ensure full flex width if needed */
}
.ops-slides {
  flex: 1;
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
}
.ops-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ops-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.ops-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  margin-bottom: 4px;
}
.ops-text {
  font-size: 17px;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ops-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.ops-cta:hover { transform: scale(1.1); }
.ops-cta svg { display: block; }
.ops-icon-area {
  flex-shrink: 0;
  width: 90px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.ops-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 16px;
  padding-bottom: 4px;
  justify-content: flex-start;
  position: relative;
  z-index: 5;
}
.ops-dot {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.35);
  transition: width 0.35s, background 0.35s;
  cursor: pointer;
  width: 18px;
}
.ops-dot.active {
  background: #fff;
  width: 32px;
}
.ops-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 0;
  width: 100%;
}

@media (max-width: 768px) {
  .banner-highlight-section { padding: 3rem 0; }
  .ops-banner-wrap {
    padding: 20px;
  }
  .ops-icon-area {
    width: 65px;
  }
  .ops-icon-area svg {
    width: 65px;
    height: 65px;
  }
  .ops-text { font-size: 15px; gap: 8px; }
  .ops-cta { width: 30px; height: 30px; }
}

@media (max-width: 480px) {
  .ops-banner-wrap { padding: 16px; }
  .ops-icon-area {
    width: 50px;
  }
  .ops-icon-area svg {
    width: 50px;
    height: 50px;
  }
  .ops-text { font-size: 14px; }
  .ops-label { font-size: 12px; }
}

/* ─── SHARED SECTION STYLES ─── */
section {
  padding: 6rem 5%;
  transition: padding 0.3s ease;
}

@media (max-width: 768px) {
  section {
    padding: 4rem 5%;
  }
}

.section-tag {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 70px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1rem;
}

h2.section-title.light {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-sub {
  font-size: 22px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 100%;
}

.section-sub.light {
  color: rgba(255, 255, 255, .55);
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1.25rem 0 2rem;
}

/* ─── ABOUT ─── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* About Video Component */
.about-video-container {
  width: 100%;
}

.video-border {
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.video-border .btn-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-border .btn-play span {
  display: block;
  position: relative;
  left: 3px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid var(--navy);
}

.video-border .btn-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--gold);
  border-radius: 50%;
  z-index: -1;
  animation: pulse-border 2s ease-out infinite;
}

.video-border .btn-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--gold);
  border-radius: 50%;
  z-index: -1;
  transition: all 0.3s ease;
}

.video-border .btn-play:hover::after {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--gold-light);
}

@keyframes pulse-border {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* About Text Component */
.about-content {
  padding-right: 1rem;
}

.about-tag {
  display: inline-block;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-bottom: 3px solid var(--gold);
  border-radius: 8px 8px 0 0;
  margin-bottom: 1.5rem;
  background: rgba(201, 168, 76, 0.1);
}

.about-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 70px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about-desc {
  font-size: 22px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* About Features List */
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.feature-col h6 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-col h6 i {
  font-size: 1.2rem;
}

/* Custom Video Modal */
.custom-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-video-modal.show {
  opacity: 1;
  visibility: visible;
}

.custom-video-modal .modal-dialog {
  width: 90%;
  max-width: 800px;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.custom-video-modal.show .modal-dialog {
  transform: translateY(0);
}

.custom-video-modal .modal-content {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.custom-video-modal .modal-header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy);
  color: var(--white);
}

.custom-video-modal .modal-header h5 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

.custom-video-modal .btn-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--white);
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.custom-video-modal .btn-close:hover {
  opacity: 1;
}

.custom-video-modal .modal-body {
  padding: 0;
  background: #000;
}

.ratio-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.ratio-16x9 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── CUSTOM ABOUT SECTION OVERRIDES (KIDS THEME) ─── */
.about-section {
  background: url('image/background.jpg') center/cover no-repeat;
  position: relative;
  z-index: 1;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  /* 85% opacity overlay to keep text readable */
  z-index: -1;
}

.custom-about-tag {
  color: #c9a84c !important;
  background: transparent !important;
  text-transform: uppercase;
  border-bottom: none !important;
  position: relative;
  padding: 0 0 5px 0 !important;
  border-radius: 0 !important;
}

.custom-about-tag::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 6px;
  border-bottom: 3px solid #ff4e7e;
  border-radius: 50%;
}

.custom-about-title {
  color: #0a1628 !important;
  /* Bubbly dark purple */
}

.custom-play-btn {
  background: #ff4e7e !important;
}

.custom-play-btn span {
  border-left-color: #fff !important;
}

.custom-play-btn::before,
.custom-play-btn::after {
  background: #ff4e7e !important;
}

.custom-features .icon-1 {
  color: #3b3a6d !important;
}

/* Dark purple/blue */
.custom-features .icon-2 {
  color: #ff4e7e !important;
}

/* Magenta/pink */
.custom-features .icon-3 {
  color: #3f78e0 !important;
}

/* Light blue */
.custom-about-btn {
  background: #e53935 !important;
  color: #fff !important;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 78, 126, 0.3);
}

.custom-about-btn:hover {
  background: #e63f6c !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 78, 126, 0.4);
}


/* ─── PROGRAMS ─── */
#programs {
  background-image: url('image/school.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.programs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.6) 50%, rgba(10, 22, 40, 0.85) 100%);
  z-index: 1;
}

#programs::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 60%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 6.5rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 1200px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 4rem 1rem;
    margin-top: 5rem;
  }
}

.program-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 6rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.program-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(229, 57, 53, 0);
  transition: all 0.4s ease;
  pointer-events: none;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(229, 57, 53, 0.05);
}

.program-card:hover::after {
  box-shadow: inset 0 0 0 1px rgba(229, 57, 53, 0.3);
}

.program-img-wrapper {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 8px solid var(--brand-red);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 5;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.program-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-img-wrapper {
  transform: translateX(-50%) translateY(-10px);
  border-color: rgba(229, 57, 53, 0.1);
}

.program-card:hover .program-img-wrapper img {
  transform: scale(1.1);
}

.program-content {
  flex-grow: 1;
}

.program-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.program-content p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.program-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 0.5rem;
  margin-top: auto;
  transition: gap 0.3s ease, color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.program-link i {
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.program-card:hover .program-link {
  gap: 0.8rem;
  color: var(--gold-light);
}

.program-card:hover .program-link i {
  transform: translateX(3px);
}

/* ─── CLASS SPECIFIC EXTRAS ─── */
.class-teacher-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(10, 22, 40, 0.05);
}

.class-teacher-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.class-teacher-profile img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.teacher-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.teacher-role {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.class-price {
  background: var(--navy);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.15);
}

.class-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.meta-item {
  padding-top: 1rem;
  border-top: 2px solid transparent;
}

.meta-item.age {
  border-top-color: var(--gold);
}

.meta-item.time {
  border-top-color: #2e7d32;
}

/* Success Green */
.meta-item.cap {
  border-top-color: #f9a825;
}

/* Warning Amber */

.meta-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.meta-value {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ─── STUDENT LIFE ─── */
#student-life {
  background: var(--cream);
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.life-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, .07);
  transition: all .25s;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.life-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
  transform: translateY(-4px);
}

.life-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.life-card h3 {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}

.life-card p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ─── GALLERY ─── */
#gallery {
  background: var(--navy);
  padding: 6rem 5%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform .25s;
  position: relative;
}

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

.gallery-item:hover {
  transform: scale(1.03);
  z-index: 2;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  background: linear-gradient(135deg, #1a2f4a, #0a1628);
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
  background: linear-gradient(135deg, #1a2f4a, #0a1628);
}

.gallery-label {
  position: absolute;
  bottom: .75rem;
  left: .75rem;
  background: rgba(10, 22, 40, .8);
  color: rgba(255, 255, 255, .7);
  font-size: .7rem;
  padding: .3rem .7rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── TEACHERS (REDESIGNED BLOB STYLE) ─── */
#teachers {
  background: var(--white);
  padding: 8rem 5%;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.teacher-card {

  position: relative;
  text-align: center;
  perspective: 1000px;
}

.teacher-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.1;
  background: var(--cream);
  border: 1px solid rgba(229, 57, 53, 0.2);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: -40px;
  z-index: 1;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.teacher-card:hover .teacher-photo {
  border-radius: 40% 60% 70% 30% / 30% 70% 30% 70%;
  transform: translateY(-10px);
  border-color: var(--brand-red);
}

.teacher-card:hover img {
  transform: scale(1.1);
}

.teacher-info {
  background: #e8e8ea;
  padding: 3.5rem 1.5rem 1.5rem;
  border: 1px solid rgba(229, 57, 53, 0.1);
  border-radius: 30% 70% 50% 50% / 10% 10% 40% 40%;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.teacher-info h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.25rem;
  transition: color 0.4s ease;
}

.teacher-info .role {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.4s ease;
}

.teacher-card:hover .teacher-info {
  background: var(--brand-red);
  border-color: var(--brand-red);
  box-shadow: 0 15px 35px rgba(229, 57, 53, 0.2);
}

.teacher-card:hover .teacher-info h4,
.teacher-card:hover .teacher-info .role {
  color: var(--white);
}

/* Social Media Overlay */
.teacher-socials {
  position: absolute;
  top: -20px;
  left: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.teacher-socials a {
  width: 40px;
  height: 40px;
  background: var(--brand-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.teacher-socials a:hover {
  background: var(--navy);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(10, 22, 40, 0.15);
}

/* ─── REDESIGNED TESTIMONIALS ─── */
#testimonials {
  background: var(--cream);
  position: relative;
  overflow: hidden;
  padding: 10rem 5%;
}

.testi-bg-shape {
  position: absolute;
  background: var(--brand-red);
  z-index: 1;
}

.red-shape-top {
  top: 0;
  right: 0;
  width: 450px;
  height: 500px;
  clip-path: polygon(40% 0, 100% 0, 100% 60%, 0 100%);
  border-bottom-left-radius: 100px;
  transform: translateY(-50px) translateX(100px);
}

.red-shape-bottom {
  bottom: -150px;
  right: 20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--brand-red);
}

.testimonial-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.testimonial-box {
  background: var(--navy);
  border-radius: 40px;
  width: 95%;
  min-height: 550px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 6rem;
  color: var(--white);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.testi-left-illustration {
  position: absolute;
  left: -120px;
  bottom: 20px;
  width: 180px;
  z-index: 3;
}

.testi-left-illustration img {
  width: 100%;
  height: auto;
}

.testi-content {
  max-width: 65%;
  position: relative;
  z-index: 3;
}

.quote-icon {
  font-size: 3rem;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.quote-icon-right {
  font-size: 2.5rem;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.7);
  vertical-align: bottom;
  margin-left: 10px;
  display: inline-block;
}

.testi-quote {
  font-size: 1.6rem;
  line-height: 2;
  color: var(--white);
  margin-bottom: 2.5rem;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
}

.testi-author-info {
  margin-top: 1rem;
}

.testi-author-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
  font-family: 'DM Sans', sans-serif;
}

.testi-author-role {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.testi-person-image {
  position: absolute;
  right: 20px;
  bottom: 0;
  height: 125%;
  z-index: 4;
}

.testi-person-image img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
}

@media (max-width: 1024px) {
  .testimonial-box {
    width: 90%;
    padding: 3rem 4rem;
  }

  .testi-person-image {
    right: 0;
    height: 110%;
    opacity: 0.8;
  }

  .testi-content {
    max-width: 75%;
  }

  .testi-left-illustration {
    display: none;
  }
}

@media (max-width: 768px) {
  .testimonial-box {
    width: 95%;
    padding: 2.5rem 2rem;
    border-radius: 24px;
  }

  .testi-content {
    max-width: 100%;
  }

  .testi-person-image {
    display: none;
  }

  .testi-quote {
    font-size: 1.1rem;
  }
}

/* ─── EVENTS ─── */
#events {
  background: var(--cream);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

.event-item {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .07);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: all .2s;
}

.event-item:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
  transform: translateX(6px);
}

.event-date {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: .75rem 1.25rem;
  text-align: center;
  min-width: 70px;
  flex-shrink: 0;
}

.event-date .day {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.event-date .month {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .6);
}

.event-info h4 {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}

.event-info p {
  font-size: .875rem;
  color: var(--text-light);
}

.event-tag {
  margin-left: auto;
  background: rgba(201, 168, 76, .12);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .85rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* ─── PARENTS TESTIMONIALS (AUTO-SLIDER) ─── */
.testi-slider-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  padding: 2rem 0;
}

.testi-track {
  flex-shrink: 0;
  display: flex;
  gap: 2rem;
  min-width: 100%;
  animation: scrollTesti 40s linear infinite;
}

.testi-slider-wrapper:hover .testi-track {
  animation-play-state: paused;
}

@keyframes scrollTesti {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 2rem));
  }
}

.parent-testi-card {
  width: 450px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.parent-testi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(10, 22, 40, 0.08);
}

.testi-stars {
  color: #ffc107;
  font-size: 0.9rem;
  display: flex;
  gap: 4px;
}

.testi-quote-text {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
  flex-grow: 1;
}

.testi-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.testi-parent-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
}

.testi-parent-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi-parent-info h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.testi-parent-info p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

.testi-quote-icon {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 2.5rem;
  color: #e53935;
}

/* ─── ADMISSION ─── */
#admission {
  background: var(--navy-mid);
}

.admission-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.admission-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(16% + 1rem);
  right: calc(16% + 1rem);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}

.step-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  margin-bottom: .5rem;
}

.step-card p {
  font-size: .875rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.6;
}

.admission-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ─── CONTACT ─── */
#contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(10, 22, 40, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.contact-item:hover .contact-icon {
  background: var(--navy);
  color: var(--gold);
  transform: scale(1.05);
}

.contact-item h4 {
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .4rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-item p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

.map-placeholder {
  background: var(--white);
  border-radius: 20px;
  height: 100%;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: rgba(255, 255, 255, .4);
  border: 4px solid var(--white);
  box-shadow: 0 20px 50px rgba(10, 22, 40, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(10, 22, 40, 0.12);
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
  filter: contrast(1.05);
}

.map-placeholder .map-icon {
  font-size: 3rem;
  opacity: .4;
}

.map-placeholder p {
  font-size: .9rem;
}

.contact-form {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(10, 22, 40, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 1.1rem 1.25rem;
  border: 2px solid rgba(10, 22, 40, 0.08);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  background: #fbfbfc;
  color: var(--text);
  transition: all 0.3s ease;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* ─── CTA BANNER ─── */
#cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2040 100%);
  padding: 5rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201, 168, 76, .1) 0%, transparent 70%);
}

#cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

#cta-banner p {
  color: rgba(255, 255, 255, .55);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  position: relative;
}

/* ─── FOOTER ─── */
footer {
  background: #060f1d;
  padding: 4rem 5% 2rem;
  border-top: 1px solid rgba(201, 168, 76, .1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 22px;
  color: rgba(255, 255, 255, .4);
  margin-top: 1rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all .2s;
  text-decoration: none;
  color: white;
}

.social-btn:hover {
  background: var(--brand-red);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.footer-col ul a {
  text-decoration: none;
  color: rgba(255, 255, 255, .45);
  font-size: 22px;
  transition: color .2s;
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 2rem;
  font-size: 16px;
  color: rgba(255, 255, 255, .3);
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

.footer-policy-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-policy-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

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

.footer-policy-links a:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -0.85rem;
  color: rgba(255, 255, 255, 0.1);
}

.timing-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(201, 168, 76, .1);
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, .5);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .78rem;
  white-space: nowrap;
}

.timing-badge::before {
  content: '🕐';
}

@media (max-width: 991px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}


/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

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

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
  .nav-container {
    padding: 0 2%;
  }

  .ribbon-logo {
    left: 2%;
  }

  .nav-links {
    margin-left: 170px;
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .btn-admissions {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

@media (max-width: 1100px) {

  .nav-links,
  .menu-text {
    display: none;
  }

  .header-right {
    margin-left: auto;
  }
}

@media (max-width: 1024px) {

  .teachers-grid,
  .testi-grid,
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .ribbon-logo {
    width: 85px;
    padding: 8px 4px 18px;
    left: 15px;
  }

  .ribbon-content .logo-mark {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-width: 3px;
    margin-bottom: 4px;
  }

  .ribbon-content .logo-text {
    font-size: 0.65rem;
    line-height: 1.1;
  }

  .btn-admissions {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .logo-img {
    height: 32px;
  }

  .nav-container {
    height: 70px;
  }

  #hero {
    padding-top: 0;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-content {
    margin: 100px auto 0;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    margin-bottom: 1rem;
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
    align-self: flex-end;
    /* Move it away from the ribbon area */
    margin-right: -10px;
  }

  .hero-sub {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .hero-stats {
    margin-top: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-stat .num {
    font-size: 1.5rem;
  }

  .hero-scroll {
    display: none;
  }

  #highlights {
    padding: 2.5rem 0;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .contact-form {
    padding: 1.5rem;
  }

  .contact-item {
    padding: 1.5rem;
  }

  .programs-grid,
  .life-grid,
  .testi-grid,
  .admission-steps {
    grid-template-columns: 1fr;
  }

  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-item {
    height: 180px;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .admission-steps::before {
    display: none;
  }
}

@media (max-width: 480px) {
  h1.hero-title {
    font-size: 2.2rem;
  }

  h2.section-title {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 90%;
    max-width: 320px;
    text-align: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  #highlights {
    grid-template-columns: 1fr;
  }

  .teachers-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .life-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .logo-text {
    font-size: 1.1rem;
  }
}

/* ─── FLOATING SOCIAL ─── */
.floating-social {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.float-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.float-btn:hover {
  transform: scale(1.15) translateX(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.float-btn.fb {
  background: #1877F2;
}

.float-btn.ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.float-btn.tw {
  background: #000000;
}

.float-btn.wa {
  background: #25D366;
}

@media (max-width: 768px) {
  .floating-social {
    display: none;
    /* Hide on mobile to prevent overlapping */
  }
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.logo-text span {
  font-weight: 400;
  opacity: 0.8;
}

.logo-img {
  height: 40px;
  /* adjust as needed */
  width: auto;
  object-fit: contain;
}

/* ─── DISCLOSURE PAGE ─── */
.disclosure-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 5%;
}

.disclosure-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(201, 168, 76, 0.15);
  transition: transform 0.3s ease;
}

.disclosure-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.disclosure-header {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.75rem;
}

.disclosure-header i {
  color: var(--brand-red);
  font-size: 1.5rem;
}

.disclosure-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1rem 0;
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.disclosure-table th,
.disclosure-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

.disclosure-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

/* Zebra Striping */
.disclosure-table tr:nth-child(even) td {
  background: rgba(201, 168, 76, 0.02);
}

.disclosure-table tr:hover td {
  background: rgba(201, 168, 76, 0.06);
  transition: background 0.3s ease;
}

.disclosure-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  width: 35%;
  border-right: 1px solid rgba(10, 22, 40, 0.04);
}

.disclosure-table tr:last-child td {
  border-bottom: none;
}

/* Specific styling for the numeric/detail column */
.disclosure-table td:last-child {
  color: var(--text);
  font-weight: 500;
}

.download-link {
  color: var(--brand-red);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: rgba(229, 57, 53, 0.05);
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.download-link:hover {
  background: var(--brand-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
  text-decoration: none;
}

.note-box {
  background: var(--navy);
  color: white;
  padding: 3rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(10, 22, 40, 0.2);
}

.note-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--gold);
}

.note-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.note-box p {
  line-height: 1.9;
  opacity: 0.9;
  font-size: 1.1rem;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .disclosure-container {
    padding: 0 3%;
  }

  .disclosure-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .disclosure-header {
    font-size: 1.4rem;
  }

  .disclosure-table th,
  .disclosure-table td {
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* ─── POLICY ENHANCEMENTS ─── */
.policy-section {
  position: relative;
  margin-bottom: 4rem;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(201, 168, 76, 0.25);
}

.policy-section h2 i {
  color: var(--brand-red);
  font-size: 1.5rem;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(229, 57, 53, 0.2));
}

.policy-section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.policy-section p {
  line-height: 1.9;
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

/* Disclosure List Styling */
.disclosure-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.disclosure-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.disclosure-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--gold);
  font-weight: 900;
  font-size: 1.1rem;
}

/* Premium Highlight Box */
.premium-highlight {
  background: rgba(183, 28, 28, 0.04);
  border-left: 5px solid var(--brand-red);
  padding: 2.5rem;
  border-radius: 4px 16px 16px 4px;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(183, 28, 28, 0.05);
}

.policy-contact-box {
  background: var(--navy);
  color: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  margin-top: 3rem;
  border: 1px solid var(--gold);
}

.policy-contact-box h3 {
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.policy-contact-box p {
  margin-bottom: 0.75rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.policy-contact-box p i {
  color: var(--gold);
  width: 20px;
}

.premium-highlight i {
  font-size: 2rem;
  opacity: 0.8;
}

/* Hero Enhancements */
#policy-hero,
#disclosure-hero {
  position: relative;
  overflow: hidden;
}

#policy-hero,
#disclosure-hero {
  position: relative;
  background: var(--navy);
  padding: 180px 5% 6rem;
  overflow: hidden;
  text-align: center;
}

#policy-hero::before,
#disclosure-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: linear-gradient(var(--gold) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

#policy-hero::after,
#disclosure-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Disclosure Card Glassmorphism Refinement */
.disclosure-card {
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

@media (max-width: 991px) {
  .policy-section h2 {
    font-size: 1.5rem;
  }

  #policy-hero,
  #disclosure-hero {
    padding: 140px 5% 4rem;
  }
}

/* =========================================
   COMPREHENSIVE RESPONSIVE & LAYOUT OVERRIDES
   ========================================= */

/* --- Desktop Containment --- */
@media (min-width: 1600px) {
  .about-grid, 
  .programs-grid, 
  .life-grid, 
  .gallery-grid, 
  .teachers-grid, 
  .footer-grid,
  .testimonial-slider {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- TABLETS (Large & Small) --- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .about-content {
    padding-right: 0;
  }

  .custom-about-tag::after {
    left: 20%;
    width: 60%;
  }

  .about-video-container {
    max-width: 500px;
    margin: 0 auto;
  }

  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }
}

/* --- MOBILE LANDSCAPE / SMALL TABLETS --- */
@media (max-width: 768px) {
  section {
    padding: 5rem 5%;
  }

  .nav-links {
    display: none; /* Hide original nav links */
  }

  .life-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 200px);
    height: auto;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-column: span 1;
  }

  .testimonial-box {
    padding: 3rem 2rem;
    flex-direction: column;
    text-align: center;
    min-height: auto;
    overflow: hidden;
  }

  .testi-left-illustration {
    display: none;
  }

  .testi-content {
    max-width: 100%;
    width: 100%;
  }

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

  .footer-brand {
    grid-column: span 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: 100%;
  }
}

/* --- SMALL MOBILE --- */
@media (max-width: 576px) {
  h2.section-title, 
  .about-title {
    font-size: 2.2rem;
  }

  .hero-welcome {
    font-size: 0.8rem;
    padding: 8px 16px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .about-features {
    display: grid;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 1rem;
  }

  .teachers-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        grid-template-rows: repeat(3, auto);   /* 3 rows */
        gap: 1.5rem;
    }

  .gallery-item {
    aspect-ratio: 1/1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .social-btn {
    margin: 0 auto;
  }

  .footer-col ul {
    align-items: center;
  }

  .floating-social {
    bottom: 20px;
    right: 20px;
    transform: scale(0.8);
    transform-origin: bottom right;
  }
}