/* ================= GLOBAL ================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
}

body.home {
  padding-top: 70px;
}

.inner-page {
  padding-top: 120px;
}


/* ================= GLOBAL IMAGE SAFETY ================= */
img {
  max-width: 100%;
}

/* ================= HEADER ================= */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 40px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  color: white;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img,
.footer-logo img,
.admissions-box img,
.academic-menu img,
.collage-message img,
.collage-intro img {
  width: auto;
  height: auto;
  max-height: 58px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
/* ================= BUTTON ================= */
.enquire-btn {
  background: #00c853;
  padding: 8px 18px;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 14px;
  transition: 0.3s;
}

.enquire-btn:hover {
  background: #00e676;
  transform: translateY(-2px);
}

/* ================= HERO ================= */
.hero {
  height: calc(100vh - 70px);
  display: flex;
  align-items: flex-end;   /* ✅ change this (was center) */
  justify-content: center;
  color: white;
  padding-bottom: 40px;    /* optional small spacing */
}

/* ================= PANELS ================= */
.panel {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden; /* ✅ prevents flicker */
}

/* ================= BACKGROUND IMAGE ================= */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 0; /* ✅ FIX: DO NOT USE NEGATIVE */
}

/* ================= DARK OVERLAY ================= */
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

/* ================= CONTENT ================= */
.panel .content {
  position: relative;
  z-index: 2; /* above overlay */
  text-align: center;
}

.panel {
  overflow: hidden; /* prevents edge flicker */
}


/* remove text alignment since no content */
.panel.hero {
  align-items: center;
  justify-content: center;
}

/* ================= SECOND PANEL ================= */


/* TEXT STYLE */
.panel .content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 20px;
}

.panel h1 {
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 15px;
}

.panel p {
  font-size: 18px;
  line-height: 1.7;
  color: #eee;
}

#academic::before { background-image: url('images/academic.jpeg'); }
#boarding::before { background-image: url('images/boarding.jpeg'); }
#cocurricular::before { background-image: url('images/basketball.jpg'); }
#contact::before { background-image: url('images/schoolbuilding.jpeg'); }


html {
  scroll-behavior: smooth;
}

/* ================= BEAUSOLEIL MENU ================= */

#menu {
  position: fixed;
  inset: 0;
  z-index: 99999;

  background: url("images/menu-bg.jpeg") center/cover no-repeat;

  display: flex;
  justify-content: center;
  align-items: center; /* ✅ center like before */

  opacity: 0;
  pointer-events: none;

  transform: scale(1.05);
  transition: all 0.5s ease;
}

/* OVERLAY */
#menu::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.6)
  );

  backdrop-filter: blur(4px);

  z-index: 0;
  pointer-events: none;
}
/* OPEN */
#menu.active,
#menu.show {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* GRID */
.mega-menu {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1300px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 100px;
}

/* COLUMN */
.menu-column {
  display: flex;
  gap: 20px;
  align-items: flex-start;

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

/* SHOW */
#menu.active .menu-column,
#menu.show .menu-column {
  opacity: 1;
  transform: translateY(0);
}

/* STAGGER */
#menu.active .menu-column:nth-child(1),
#menu.show .menu-column:nth-child(1) { transition-delay: 0.1s; }
#menu.active .menu-column:nth-child(2),
#menu.show .menu-column:nth-child(2) { transition-delay: 0.2s; }
#menu.active .menu-column:nth-child(3),
#menu.show .menu-column:nth-child(3) { transition-delay: 0.3s; }
#menu.active .menu-column:nth-child(4),
#menu.show .menu-column:nth-child(4) { transition-delay: 0.4s; }

/* VERTICAL TITLE */
.menu-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);

  font-size: 20px;
  color: #c6ff00;
  letter-spacing: 2px;

  width: 40px;
  flex-shrink: 0;
  text-align: center;
}

/* LINKS */
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 15px;
  position: relative;
  transition: 0.3s;
}

.menu-links a:hover {
  color: white;
  transform: translateX(8px);
}

.menu-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: #c6ff00;
  transition: 0.3s;
}

.menu-links a:hover::after {
  width: 100%;
}
/* ================= CARDS ================= */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
}

.card {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 15px;
  text-decoration: none;
  cursor: pointer;
}

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

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.card-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  font-size: 20px;
  font-weight: bold;
}


/* ================= BASE HERO (ALL PAGES) ================= */
.page-hero {
  position: relative;
  height: 60vh;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  padding-bottom: 60px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}

/* OVERLAY */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* TEXT */
.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  width: 100%;
}

.hero-overlay h1 {
  font-size: 42px;
  margin: 0;
  font-weight: 500;
}
.panel.hero {
  min-height: 100vh;
  background-image: url("images/school-bldg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* ================= IMAGE GROUPS ================= */

/* ================= ACADEMIC ================= */
.academic-hero { background: url("images/hero.jpeg") center/cover no-repeat; }
.pre-primary { background: url("images/preprimary.jpeg") center/cover no-repeat; }
.grade6-10 { background: url("images/middle.jpeg") center/cover no-repeat; }
.grade11-12 { background: url("images/senior.jpeg") center/cover no-repeat; }
.learning-support { background: url("images/support.jpeg") center/cover no-repeat; }
.career-guidance { background: url("images/guidance.jpeg") center/cover no-repeat; }

/* ================= BOARDING ================= */
#boarding.panel {
  background: url("images/boarding.png") center/cover no-repeat;
}
.boarding-life { background: url("images/boardinglife.jpeg") center/cover no-repeat; }
.boarding-home { background: url("images/house.jpeg") center/cover no-repeat; }
.boarding-wellbeing { background: url("images/wellbeing.jpeg") center/cover no-repeat; }

/* ================= CO-CURRICULAR ================= */
.cocurricular-overview { background: url("images/co-curricular.jpeg") center/cover no-repeat; }
.arts { background: url("images/arts.jpeg") center/cover no-repeat; }
.outdoor { background: url("images/outdoor.jpeg") center/cover no-repeat; }

/* ================= ABOUT ================= */
.about-hero {
  background: url("images/school-bldg.png") center/cover no-repeat;
  min-height: 90vh;
  position: relative;
}
.heritage { background: url("images/history.jpeg") center/cover no-repeat; }
.leadership-hero {
  background: url("images/faculty.jpg") center/cover no-repeat;
}
.news { background: url("images/news.jpeg") center/cover no-repeat; }
.careers-hero {
  background: url("images/career.jpeg") center/cover no-repeat;
  min-height: 100vh;
  position: relative;
}
.contact { background: url("images/contact.jpeg") center/cover no-repeat; }

/* ================= TOGGLE ================= */
.menu-toggle {
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 40px;
  background: rgba(255,255,255,0.12);
  color: white;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
}

.home-btn:hover {
  background: white;
  color: #7a1c2e;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ================= PAGE TRANSITION ================= */
.page-transition {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 9999;
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}
/* ✅ Enquire page CSS moved to enquire.css to avoid conflicts */

/* =========================
   PREMIUM FOOTER (FINAL FIX)
========================= */
.premium-footer {
  background: linear-gradient(135deg, #7a1c2e, #9e2a3f);
  color: #fff;
  padding: 60px 80px 30px;
  width: 100%;
}

/* LOGO CENTER */
.footer-logo {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto 40px;
}

.footer-logo img {
  width: auto;
  height: 72px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto 15px;
}

.footer-logo h2 {
  text-align: center;
  width: 100%;
}
/* GRID PERFECT ALIGNMENT */
.footer-container {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}
/* EACH COLUMN */
.footer-column {
  min-width: 0;
}

/* HEADINGS */
.footer-column h3 {
  font-size: 16px;
  margin-bottom: 15px;
}

/* TEXT & LINKS */
.footer-column p,
.footer-column a {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #eee;
  text-decoration: none;
  line-height: 1.6;
}

/* HOVER */
.footer-column a:hover {
  text-decoration: underline;
}

/* SOCIAL ICONS */
.social-icons {
  margin-top: 10px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  margin-right: 10px;
  transition: 0.3s;
}

.social-icons a:hover {
  background: white;
  color: #7a1c2e;
}
/* DIVIDER LINE */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.4);
  padding: 18px 0;
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.9;
}
.footer-bottom a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
}
.social-icons a i {
  color: white;
  font-size: 14px;
}

.social-icons a:hover i {
  color: #7a1c2e;
}


/* =========================
   RESPONSIVE (FIXED)
========================= */




/* ===== SUB PAGE HERO ===== */
.sub-hero {
  height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
  font-weight: 600;
}

/* ===== CONTENT ===== */
.sub-content {
  padding: 60px 40px;
  text-align: center;
}

.sub-content p {
  max-width: 700px;
  margin: auto;
  line-height: 1.7;
}

/* ===== ACTIVITY CARDS ===== */
.activity-section {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 50px 40px;
  flex-wrap: wrap;
}

.activity-card {
  background: #fff;
  padding: 30px;
  width: 260px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.activity-card i {
  font-size: 30px;
  color: #7b1e2b;
  margin-bottom: 10px;
}

.activity-card:hover {
  transform: translateY(-8px);
}

/* ===== GALLERY ===== */
.activity-gallery {
  display: flex;
  gap: 10px;
  padding: 40px;
}

.activity-gallery img {
  width: 33%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* ===== CTA ===== */
.activity-cta {
  text-align: center;
  padding: 60px 40px;
  background: #7b1e2b;
  color: white;
}

.activity-cta a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: white;
  color: #7b1e2b;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
}

.activity-cta a:hover {
  background: #eee;
}

/* ================= CAREER FEATURES FIX ================= */

.career-features {
  max-width: 1100px;
  margin: 80px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 0 20px;
  text-align: center;
}

.feature {
  background: white;
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

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

.feature h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #002f63;
}

.feature p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* MOBILE FIX */


/* Academic page responsive */




/* ===== PREMIUM LUXURY UNCOVER BUTTON ===== */

.discover-btn {
  position: relative;
  padding: 16px 42px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 40px;
  transition: all 0.4s ease;
}

/* GLOW BORDER */
.discover-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  padding: 2px;
  background: linear-gradient(120deg, #ffffff, #6ec1ff, #ffffff);
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
}

/* LIGHT SWEEP EFFECT */
.discover-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  transition: all 0.6s ease;
}

/* TEXT */
.discover-btn span {
  position: relative;
  z-index: 2;
}

/* HOVER */
.discover-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* SWEEP ON HOVER */
.discover-btn:hover::after {
  left: 120%;
}

/* CLICK FEEL */
.discover-btn:active {
  transform: scale(0.97);
}
/* academic introduction button - no important */
.intro-text-content .discover-btn {
  color: #213f7a;
  box-shadow: none;
}

.intro-text-content .discover-btn span {
  color: #213f7a;
}

.intro-text-content .discover-btn::before {
  background: linear-gradient(120deg, #213f7a, #6ec1ff, #213f7a);
  opacity: 1;
}

.intro-text-content .discover-btn:hover span {
  color: #ffffff;
}

/* FIX PREMIUM BUTTON ON INNER PAGES */
.inner-page .discover-btn {
  background: #123c73;
  color: white;
  border: 2px solid white;
  box-shadow: 0 12px 30px rgba(18, 60, 115, 0.25);
}

.inner-page .discover-btn span {
  color: white;
}

.inner-page .discover-btn::before {
  opacity: 0;
}

.inner-page .discover-btn:hover {
  background: white;
  color: #123c73;
  transform: translateY(-3px);
  border: 2px solid #123c73;
  box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

/* ================= ABOUT HERO ================= */

.about-hero {
  position: relative;
  height: 72vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.about-hero h1 {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 52px;
  font-weight: 300;
  margin-bottom: 55px;
}


/* ================= ABOUT CONTENT ================= */

.about-content-section {
  background: #f7f7f7;
  padding: 90px 7%;
}

.about-content-wrapper {
  max-width: 1500px;
  margin: auto;
  display: flex;
  gap: 70px;
  align-items: flex-start;
}

.about-main {
  flex: 1;
  min-width: 0;
}


/* ================= INTRO ================= */

.about-intro {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 70px;
  margin-bottom: 70px;
}

.about-intro h2,
.about-heritage h2,
.principal-message h2 {
  font-size: 36px;
  font-weight: 300;
  color: #002b5c;
  line-height: 1.2;
}

.about-intro p,
.about-heritage p,
.principal-inner p {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 22px;
}

.about-bold {
  font-weight: 700;
}

.about-large-image {
  width: 100%;
  max-width: 820px;
  display: block;
  margin: 40px auto 80px;
}


/* ================= HERITAGE ================= */

.about-heritage {
  background: white;
  padding: 48px;
  margin-bottom: 45px;
}


/* ================= VISION & MISSION ================= */

.vision-mission-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin-bottom: 90px;
}

.vision-mission-row > div {
  background: white;
  padding: 48px;
}

.vision-mission-row h3 {
  font-size: 30px;
  font-weight: 300;
  color: #002b5c;
  margin-bottom: 20px;
}

.vision-mission-row p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}


/* ================= PRINCIPAL ================= */

.principal-message {
  margin-top: 40px;
}

.principal-message h2 {
  margin-bottom: 35px;
}

.principal-inner {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 50px;
  align-items: start;
}

.principal-inner img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.principal-name {
  color: #7b1e2b;
  font-weight: 700;
}



/* ================= CONTACT PAGE ================= */

.contact-hero {
  background-image: url("images/contact-hero.jpg");
}

.contact-main {
  padding-top: 20px;
}

.contact-intro {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 70px;
}

.contact-intro h2 {
  font-size: 36px;
  font-weight: 300;
  color: #002b5c;
  line-height: 1.25;
}

.contact-details {
  color: #1d1d1d;
}

.contact-block {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #d8d8d8;
}

.contact-block h3 {
  font-size: 34px;
  font-weight: 300;
  color: #002b5c;
  margin-bottom: 18px;
}

.contact-block p,
.contact-block li {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.contact-block ul {
  padding-left: 20px;
  margin: 0;
}


/* ================= CONTACT ADMISSIONS CTA ================= */

.contact-admissions {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: #f7f7f7;
  padding: 0 0 80px;
  overflow: hidden;
}

.contact-admissions-img {
  height: 620px;
}

.contact-admissions-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-admissions-box {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 560px;
  background: #0794c9;
  color: white;
  text-align: center;
  padding: 55px 60px;
  z-index: 5;
}

.contact-admissions-box img {
  width: 65px;
  background: white;
  border-radius: 50%;
  padding: 5px;
  margin-bottom: 20px;
}

.contact-admissions-box h2 {
  font-size: 38px;
  font-weight: 300;
  margin-bottom: 20px;
}

.contact-admissions-box p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-admissions-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.contact-admissions-buttons a {
  color: white;
  text-decoration: none;
  border: 1px solid white;
  padding: 13px 28px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.contact-admissions-buttons a:hover {
  background: white;
  color: #0794c9;
}

/* ================= IN THIS SECTION FINAL ================= */

/* VERTICAL BUTTON */
.section-tab {
  position: fixed;
  right: 0;
  top: 45%;
  transform: translateY(-50%);
  z-index: 99999;

  width: 48px;
  height: 190px;
  background: #7b1e2b;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.section-tab span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
}

/* SLIDE PANEL */
.section-panel-slide {
  position: fixed;
  top: 0;
  right: 0;

  width: 340px;
  height: 100vh;

  background: #002b5c;
  color: white;
  padding: 60px 30px;

  z-index: 99998;
  overflow-y: auto;

  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.section-panel-slide.open {
  transform: translateX(0);
}

/* CONTENT */
.section-panel-slide .panel-header {
  text-align: center;
  margin-bottom: 25px;
}

.section-panel-slide .panel-logo img {
  width: 70px;
  height: 70px;
  background: white;
  padding: 6px;
  border-radius: 50%;
}

.section-panel-slide .panel-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: white;
}

.section-panel-slide .panel-links a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  font-size: 16px;
  transition: 0.3s;
}

.section-panel-slide .panel-links a:hover,
.section-panel-slide .panel-links a.active {
  color: #d9b45a;
  padding-left: 15px;
}
.section-tab.active {
  right: 340px;
  transition: right 0.4s ease;
}

.section-tab {
  transition: right 0.4s ease;
}

/* MOBILE */


/* FIX CURSOR / HOVER SHAKE */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999999;
}

/* STOP IMAGE HOVER SHAKING */
img {
  backface-visibility: hidden;
}

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

/* ================= HOME INTRO BEAUSOLEIL STYLE FINAL ================= */

.panel.intro {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

.intro-photo {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.intro-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FULL COVER HOLDER */
.intro-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  transition: opacity 1s ease;
}

/* BLUE SHAPE ONLY */
.blue-shape {
  position: absolute;
  inset: 0;
  background: #058ac0;
  z-index: 1;

  clip-path: polygon(
    32% 0,
    100% 0,
    100% 100%,
    32% 100%,
    29% 88%,
    54% 78%,
    30% 66%,
    55% 52%,
    31% 41%,
    56% 25%,
    32% 12%
  );
}

/* EXTRA BLUE CURVE DECORATION */
.blue-shape::before {
  content: "";
  position: absolute;
  left: 28%;
  top: -12%;
  width: 360px;
  height: 520px;
  background: #058ac0;
  border-radius: 50%;
  transform: rotate(-22deg);
}

.blue-shape::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: 4%;
  width: 300px;
  height: 300px;
  background: #058ac0;
  border-radius: 50%;
}

/* TEXT ON RIGHT */
.intro-text {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  max-width: 560px;
  color: white;
  text-align: center;
}

.intro-text .tag {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: white;
}

.intro-text h1 {
  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
  color: white;
  margin-bottom: 22px;
}

.intro-text p {
  font-size: 16px;
  line-height: 1.6;
  color: white;
  font-weight: 600;
  margin-bottom: 28px;
}

/* BUTTON */
.intro-text button {
  background: transparent;
  color: white;
  border: 1.5px solid white;
  border-radius: 30px;
  padding: 13px 36px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  transition: 0.3s ease;
}

.intro-text button:hover {
  background: white;
  color: #058ac0;
}

/* UNCOVER */
.intro-cover.hide {
  opacity: 0;
  pointer-events: none;
}

/* =================leadership CENTER BOTTOM ARROWS ================= */

.leader-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.leader-controls button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #0a7cff;
  color: white;
  font-size: 26px;
  cursor: pointer;
  transition: 0.3s ease;
}

.leader-controls button:hover {
  background: #7b1e2b;
  transform: scale(1.1);
}

/* ================= GLOBAL RESPONSIVE SYSTEM ================= */

/* Makes everything scale properly */
html {
  font-size: clamp(14px, 1.5vw, 18px);
}

body {
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* Universal container */
.container {
  width: 90%;
  max-width: 1300px;
  margin: auto;
}

/* Images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================= MOBILE FOOTER PREMIUM ================= */


.discover-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 14px 34px;
  background: #7a1c2e;
  color: white;
  border: 2px solid #7a1c2e;
  border-radius: 40px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: 0.35s ease;
  margin-top: 30px;
  box-shadow: 0 10px 25px rgba(122, 28, 46, 0.18);
}

.discover-btn:hover {
  background: white;
  color: #7a1c2e;
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(122, 28, 46, 0.25);
}

.discover-btn::before,
.discover-btn::after {
  display: none !important;
  content: none !important;
}

.fullscreen-slider .discover-btn,
.slide-content .discover-btn {
  min-width: 180px;
  padding: 13px 28px;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
}

/* ================= PREMIUM NAV BUTTONS ================= */

.premium-back-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 110px 0 70px;
  flex-wrap: wrap;
}

.premium-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 34px;
  background: white;
  color: #002b5c;
  text-decoration: none;
  border-radius: 70px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}

.premium-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7a1c2e, #9e2a3f);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 15px;
  transition: 0.4s ease;
}

.premium-label {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.premium-nav-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}

.premium-nav-btn:hover .premium-icon {
  transform: scale(1.08);
}

/* =====================================================
   FINAL CLEAN RESPONSIVE SYSTEM
   Works for tablet + mobile
   ===================================================== */

@media (max-width: 1024px) {

  html,
  body {
    overflow-x: hidden;
  }

  /* HEADER */
  .main-header {
    padding: 12px 20px;
    height: 78px;
  }

  .logo img {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }

  .logo h3,
  .school-name {
    font-size: clamp(14px, 2.6vw, 17px);
    line-height: 1.2;
  }

  .header-right {
    gap: 10px;
  }

  .home-btn {
    display: none;
  }

  .enquire-btn {
    padding: 8px 14px;
    font-size: 11px;
    white-space: nowrap;
  }

  /* HERO */
  .hero,
  .panel,
  .page-hero {
    min-height: 75vh;
  }

  .hero-overlay h1,
  .panel h1 {
    font-size: clamp(32px, 6vw, 42px);
    line-height: 1.1;
  }

  .hero-overlay p,
  .panel p {
    font-size: 15px;
    line-height: 1.7;
  }

  /* MENU */
  #menu {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 95px 28px 60px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .mega-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .menu-column {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 14px 0 !important;
    gap: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .menu-title {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    width: 100% !important;

    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;

    font-size: clamp(22px, 4vw, 28px) !important;
    color: #d7f45a !important;
    letter-spacing: 0 !important;
    cursor: pointer;
  }

  .menu-title::after {
    content: "›";
    color: white;
    font-size: 32px;
    transition: transform 0.3s ease;
  }

  .menu-column.active .menu-title::after {
    transform: rotate(90deg);
  }

  .menu-links {
    display: none !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 14px 0 8px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .menu-column.active .menu-links {
    display: flex !important;
  }

  .menu-links a {
    display: block !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    width: 100% !important;

    font-size: clamp(13px, 2.5vw, 16px) !important;
    line-height: 1.5 !important;
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none !important;
  }

  .close-btn {
    top: 24px !important;
    right: 28px !important;
    font-size: 44px !important;
  }

  /* CARDS */
  .card-container,
  .career-features,
  .activity-section {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .card {
    height: 280px;
  }

  /* FOOTER */
  .premium-footer {
    padding: 55px 20px 30px;
  }

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

  .footer-column h3 {
    font-size: 14px;
  }

  .footer-column p,
  .footer-column a {
    font-size: 12px;
    line-height: 1.5;
  }

  .footer-bottom {
    text-align: center;
  }
}

/* FORCE HIDE IN THIS SECTION WHEN MAIN MENU IS OPEN */
#menu.active ~ .section-tab,
#menu.active ~ .section-panel-slide,
#menu.show ~ .section-tab,
#menu.show ~ .section-panel-slide,
body.menu-open .section-tab,
body.menu-open .section-panel-slide,
body:has(#menu.active) .section-tab,
body:has(#menu.active) .section-panel-slide,
body:has(#menu.show) .section-tab,
body:has(#menu.show) .section-panel-slide {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ================= FINAL SAFETY FIXES ================= */
body.menu-open {
  overflow: hidden;
}

/* Supports both JS versions: class=active and class=show */
#menu.show {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

#menu.show .menu-column {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  #menu.show {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 95px 28px 60px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 768px) {
  .section-tab,
  .section-panel-slide {
    display: none !important;
  }
}

/* ================= HOME LATEST NEWS ================= */

.home-news-section {
  background: #f4f4f4;
  padding: 110px 7%;
}

.section-heading-row {
  max-width: 1300px;
  margin: 0 auto 45px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.section-heading-row h2 {
  font-size: 42px;
  font-weight: 300;
  color: #0d2d5c;
  margin: 0;
}

.latest-news-link {
  position: relative;
  color: #0d2d5c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 6px;
}

.latest-news-link span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.latest-news-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 2px;
  background: #d9b45a;
  transition: width 0.3s ease;
}

.latest-news-link:hover {
  color: #7a1c2e;
}

.latest-news-link:hover span {
  transform: translateX(5px);
}

.latest-news-link:hover::after {
  width: 100%;
}

.home-news-grid {
  max-width: 1300px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.home-news-card {
  background: white;
  color: inherit;
  text-decoration: none;
  display: block;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: 0.35s ease;
}

.home-news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(0,0,0,0.14);
}

.home-news-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.home-news-card div {
  padding: 30px;
}

.home-news-card span {
  display: block;
  color: #7a1c2e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.home-news-card h3 {
  color: #0d2d5c;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 12px;
}

.home-news-card p {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
  .home-news-section {
    padding: 75px 24px;
  }

  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-heading-row h2 {
    font-size: 34px;
  }

  .home-news-grid {
    grid-template-columns: 1fr;
  }

  .home-news-card img {
    height: 230px;
  }
}

/* =====================================================
   GLOBAL RESPONSIVE SAFETY SYSTEM
   Fits all screen sizes
   ===================================================== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

section,
header,
footer,
main,
div {
  max-width: 100%;
}

@media (max-width: 1200px) {
  .footer-container,
  .home-news-grid,
  .career-features,
  .careers-collage,
  .about-content-wrapper,
  .contact-intro,
  .principal-inner,
  .voice-box,
  .team-slide,
  .term-container,
  .about-intro,
  .vision-mission-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-header {
    padding: 10px 16px;
  }

  .logo h3,
  .school-name {
    font-size: 15px;
    line-height: 1.2;
  }

  .enquire-btn {
    font-size: 11px;
    padding: 8px 12px;
  }

  .page-hero,
  .about-hero,
  .enquire-hero,
  .contact-hero {
    min-height: 55vh;
    height: auto;
    padding: 30px 22px;
  }

  .page-hero h1,
  .about-hero h1,
  .enquire-hero h1,
  .contact-hero h1 {
    font-size: clamp(32px, 10vw, 48px);
    line-height: 1.1;
  }

  .term-main,
  .terms-section,
  .contact-main,
  .section-menu,
  .why-box,
  .admissions-box,
  .contact-admissions-box {
    width: 100%;
    max-width: 100%;
  }

  .premium-footer {
    padding: 50px 20px 30px;
  }

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

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

  .premium-nav-btn {
    width: 100%;
    justify-content: center;
  }

  .home-news-card img,
  .team-slide img,
  .voice-box img {
    height: 240px;
  }
}

/* =====================================================
   TRUE FINAL RESPONSIVE OVERRIDES
   Keep this at the VERY BOTTOM of style.css
   ===================================================== */

/* Prevent horizontal scroll on all devices */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Safer media elements */
img,
video,
iframe {
  max-width: 100%;
}

/* Header mobile fit */
@media (max-width: 768px) {
  body.home {
    padding-top: 78px;
  }

  .inner-page {
    padding-top: 78px;
  }

  .main-header {
    min-height: 78px;
    padding: 10px 16px;
  }

  .logo {
    max-width: 62%;
  }

  .logo img {
  height: 46px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

  .logo h3,
  .school-name {
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1.15;
    margin: 0;
  }

  .header-right {
    gap: 9px;
    flex-shrink: 0;
  }

  .enquire-btn {
    font-size: 11px;
    padding: 8px 11px;
    white-space: nowrap;
  }

  .menu-toggle {
    width: 26px;
    height: 19px;
    flex-shrink: 0;
  }
}

/* Hero safety */
@media (max-width: 768px) {
  .hero,
  .panel,
  .page-hero,
  .about-hero,
  .careers-hero,
  .contact-hero,
  .enquire-hero {
    width: 100%;
    min-height: 58vh;
    height: auto;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
  }

  .panel.hero,
  .panel.intro,
  .intro-photo {
    min-height: 80vh;
    height: 80vh;
  }

  .page-hero h1,
  .about-hero h1,
  .careers-hero h1,
  .contact-hero h1,
  .enquire-hero h1,
  .hero-overlay h1 {
    font-size: clamp(32px, 10vw, 48px);
    line-height: 1.1;
  }
}

/* About / overview page clean mobile */
@media (max-width: 900px) {
  .about-content-section {
    padding: 70px 22px;
  }

  .about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .about-intro,
  .vision-mission-row,
  .principal-inner,
  .contact-intro,
  .voice-box,
  .team-slide {
    grid-template-columns: 1fr;
  }

  .about-heritage,
  .vision-mission-row > div {
    padding: 34px 24px;
  }

  .principal-inner img,
  .voice-box img,
  .team-slide img {
    height: 320px;
  }

  .team-text,
  .voice-box div {
    padding: 36px 24px;
  }
}

/* Cards / grids */
@media (max-width: 900px) {
  .home-news-grid,
  .career-features,
  .careers-collage,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .careers-collage {
    grid-auto-rows: auto;
  }

  .career-img,
  .career-img.big {
    grid-row: auto;
    height: 260px;
  }

  .home-news-card img {
    height: 230px;
  }
}

/* Keep footer compact but readable on phones */
@media (max-width: 600px) {
  .premium-footer {
    padding: 48px 20px 28px;
  }

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

  .footer-column h3 {
    font-size: 13px;
  }

  .footer-column p,
  .footer-column a {
    font-size: 11px;
    line-height: 1.45;
  }

  .footer-logo img {
  width: auto;
  height: 68px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

  .footer-logo h2 {
    font-size: 20px;
    line-height: 1.25;
  }
}

/* Extra small phones */
@media (max-width: 430px) {
  .logo {
    max-width: 58%;
  }

  .logo h3,
  .school-name {
    font-size: 13px;
  }
  .logo img {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

  .enquire-btn {
    font-size: 10px;
    padding: 7px 9px;
  }

  .page-hero,
  .about-hero,
  .careers-hero,
  .contact-hero,
  .enquire-hero {
    min-height: 52vh;
  }

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

/* Hide side section tab on mobile */
@media (max-width: 768px) {
  .section-tab,
  .section-panel-slide {
    display: none !important;
  }
}

/* ================= REMOVE IN THIS SECTION FROM MOBILE ================= */

@media (max-width: 768px) {

  .section-tab,
  .section-panel-slide,
  .section-menu,
  .in-this-section,
  .page-sidebar,
  .boarding-sidebar {
    display: none !important;
  }

}

/* ================= HIDE ALL "IN THIS SECTION" ON MOBILE ================= */

@media (max-width: 768px) {

  .section-menu,
  .section-sidebar,
  .sidebar-menu,
  .page-sidebar,
  .in-this-section,
  .section-nav,
  .quick-links,
  .section-links {
    display: none !important;
  }

}

/* ================= CAREERS TEAM SLIDER MOBILE FIX ================= */

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
  }

  .team-slider-section {
    width: 100%;
    margin: 55px auto;
    padding: 0 18px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .team-slider-section h2 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 28px;
  }

  .team-slider {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .team-slide {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    background: #002b5c;
    overflow: hidden;
  }

  .team-slide img {
    width: 100%;
    max-width: 100%;
    height: 260px;
    object-fit: contain;
    object-position: center top;
    background: #f4f4f4;
    padding: 8px;
    box-sizing: border-box;
    display: block;
  }

  .team-text {
    width: 100%;
    max-width: 100%;
    padding: 34px 24px 90px;
    text-align: left;
    box-sizing: border-box;
  }

  .team-text h3 {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 22px;
  }

  .team-text p {
    font-size: 23px;
    line-height: 1.55;
  }

  .team-controls {
    right: 24px;
    bottom: 24px;
  }

  .team-controls button {
    width: 58px;
    height: 58px;
    padding: 0;
  }
}
/* =====================================================
   PERMANENT MOBILE HIDE: "IN THIS SECTION"
   ===================================================== */

@media (max-width: 768px) {

  aside,
  .sidebar,
  .section-menu,
  .section-panel,
  .section-panel-slide,
  .section-tab,
  .page-sidebar,
  .section-sidebar,
  .in-this-section,
  .side-nav,
  .inner-sidebar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

}

/* ================= HOME HERO IMAGE CAROUSEL ================= */

.home-hero-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  overflow: hidden;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.home-hero-slide.active {
  opacity: 1;
}

.home-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 8s ease forwards;
}

.home-hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 2;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: white;
  padding: 0 22px;
}

.home-hero-overlay img {
  width: 90px;
  margin-bottom: 24px;
}

.home-hero-overlay h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 300;
  margin: 0 0 18px;
}

.home-hero-overlay p {
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 1px;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

@media (max-width: 768px) {
  .home-hero-slider {
    height: 78vh;
  }

  .home-hero-overlay img {
    width: 70px;
  }
}

/* ================= MOBILE HERO CAROUSEL FIX ================= */

@media (max-width: 768px) {
  .home-hero-slider {
    width: 100%;
    height: 78vh;
    min-height: 520px;
    margin-top: 0;
    overflow: hidden;
  }

  .home-hero-slide {
    position: absolute;
    inset: 0;
  }

  .home-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .home-hero-slider::after {
    background: rgba(0,0,0,0.25);
  }
}

@media (max-width: 430px) {
  .home-hero-slider {
    height: 72vh;
    min-height: 480px;
  }

  .home-hero-slide img {
    object-position: center;
  }
}

/* ================= QUICK LINKS ================= */

.quick-links {
  display: block !important;
  width: 100%;
  padding: 90px 7%;
  background: #f7f7f7;
}

.quick-links-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

.quick-card {
  display: block !important;
  width: 100%;
  background: #fff;
  padding: 35px;
  border-radius: 18px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.quick-card:hover {
  transform: translateY(-8px);
}

.quick-card h3 {
  color: #7a1c2e;
  margin-bottom: 12px;
  font-size: 22px;
}

.quick-card p {
  color: #555;
  line-height: 1.7;
}

/* ================= NEW BADGE ================= */

.new-badge {
  display: inline-block;
  background: #d62828;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ================= QUICK LINKS MOBILE ================= */

@media (max-width: 1100px) {
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .quick-links {
    display: block !important;
    padding: 55px 22px;
  }

  .quick-links-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .quick-card {
    display: block !important;
    width: 100%;
    padding: 28px 24px;
  }

  .quick-card h3 {
    font-size: 20px;
  }

  .quick-card p {
    font-size: 15px;
  }
}

/* ================= SCHOOL MEDIA / LATEST VIDEO ================= */

.school-media {
  background: #f7f7f7;
  padding: 90px 7%;
}

.school-media .section-heading {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 50px;
}

.school-media .section-heading h2 {
  font-size: 42px;
  font-weight: 300;
  color: #002b5c;
  margin-bottom: 18px;
}

.school-media .section-heading p {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
}

.media-videos {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.video-wrapper {
  background: #fff;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.video-wrapper h3 {
  text-align: center;
  margin-bottom: 15px;
  color: #002b5c;
  font-size: 22px;
  font-weight: 400;
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.youtube-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 34px;
  background: #c4302b;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .school-media {
    padding: 70px 22px;
  }

  .school-media .section-heading h2 {
    font-size: 32px;
  }

  .school-media .section-heading p {
    font-size: 15px;
  }

  .media-videos {
    grid-template-columns: 1fr;
  }

  .video-wrapper {
    padding: 10px;
  }
}

/* ================= PREMIUM ADMISSIONS SECTION ================= */

.admissions-section {
  position: relative;
  height: 600px;
  margin: 100px 0;
  overflow: hidden;
  background: #f7f7f7;
}

.admissions-image {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.admissions-image.left {
  left: 0;
  padding-right: 9px;
}

.admissions-image.right {
  right: 0;
  padding-left: 9px;
}

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

.admissions-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88%;
  max-width: 560px;
  background: #0794c9;
  color: white;
  text-align: center;
  padding: 38px 22px;
  z-index: 10;
  box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}

.admissions-logo,
.admissions-box > img {
  width: 62px;
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

.admissions-box h2 {
  color: #fff;
  font-size: 31px;
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 300;
}

.admissions-box p {
  color: #fff;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.admissions-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.admissions-buttons a {
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.admissions-buttons a:hover {
  background: #fff;
  color: #0794c9;
}

/* ================= MOBILE ================= */

@media (max-width: 600px) {
  .admissions-section {
    height: 600px;
    margin-top: 60px;
  }

  .admissions-image {
    width: 50%;
    height: 100%;
    top: 0;
  }

  .admissions-image.left {
    left: 0;
    padding-right: 6px;
  }

  .admissions-image.right {
    right: 0;
    padding-left: 6px;
  }

  .admissions-box {
    width: 88%;
    max-width: 560px;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 38px 22px;
  }

  .admissions-logo,
  .admissions-box > img {
    width: 62px;
    margin: 0 auto 24px;
  }

  .admissions-box h2 {
    font-size: 31px;
  }

  .admissions-box p {
    font-size: 16px;
    line-height: 1.65;
  }

  .admissions-buttons a {
    padding: 12px 22px;
    font-size: 13px;
  }
}