:root {
  --brand: #003366;
  --accent: #47BFAF;
  --muted: #6b7b8c;
  --max-width: 1140px;
}

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Greycliff CF', Arial, sans-serif;
  font-weight: 400;
  color: #0b2540;
  background: #fff;
  overflow-x: hidden; /* Prevent horizontal scroll */
}


/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #001e45;
  color: white;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9999;
  height: 180px; /* fixed header height */
  
}

.header .logo {
  height: 100%; /* fill the header height */
  overflow: hidden; /* prevent logo from pushing header taller */
  display: flex;
  align-items: center; /* vertically center logo */
}

.header .logo img {
  height: 175%; /* make the logo bigger than container */
  width: auto;
  display: block;
  object-fit: contain;
}

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

.menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.menu a, .menu button {
  color: white;
  text-decoration: none;
  font-weight: 300;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px; /* same padding for all items */
  line-height: 1.5;  /* add this */
  display: flex;      /* align text vertically */
  align-items: center; /* centers text inside button/link */
}


.menu li {
  position: relative;
  margin: 0; /* ensure no extra top/bottom margin */
}


.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  color: #001e45;
  min-width: 200px;
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  list-style: none;
  line-height: 1.8
}

.submenu a { padding: 8px 16px; display: block; color: #001e45; }

.menu li:hover > .submenu, .has-children.open > .submenu {
  display: flex;
  flex-direction: column;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

@media (max-width: 980px) {
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    right: 0;
    background: #003366;
    width: 100%;
    padding: 12px 0;
  }
  .header.menu-open .menu {
    display: flex;
  }
  .submenu { position: relative; background: transparent; box-shadow: none; color: #fff; padding-left: 12px; list-style: none;}
  .submenu a { color: #fff; }
  .mobile-toggle { display: block; }
  .header  {
  height: 100px
  
  }
}

/* ===== HERO VIDEO ===== */
.hero-video {
  position: relative;
  height: 80vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1);
  transform-origin: center center;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.15));
}

.hero-inner h1 { font-size: clamp(26px, 4.5vw, 48px); margin: 0 0 10px; }
.hero-sub { font-size: clamp(14px, 1.6vw, 18px); margin-bottom: 18px; color: rgba(255,255,255,0.92); }
.btn-primary { display: inline-block; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 8px; text-decoration: none; font-weight: 700; }



@media (max-width: 980px) {
    .hero-video {
  position: relative;
  height: 40vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

}

/* ===== SECTIONS BASE ===== */
.section { padding: 64px 20px; width: 100%; }
.container { max-width: var(--max-width); margin: 0 auto; }

/* ===== WELCOME ===== */
/* welcome, .lead { text-align: center; color: #001e45; width: 100%; } .welcome { font-size: 24px; margin-bottom: 40px; } .lead { font-size: 18px; line-height: 1.8; margin-bottom: 40px; } <!-- SECTION 2 — WELCOME --> */

/* ===== WELCOME SECTION ===== */

.welcome-section {
  position: relative;
  width: 100%;
  min-height: 580px;
  padding: 80px 0px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Background Image Wrapper */
.welcome-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  opacity: 0.1;
}

/* Background Image itself */
.welcome-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark overlay */
.welcome-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 2;
}

/* Content */
.welcome-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #001e45;
}

.welcome-content h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.welcome-content .lead {
  font-size: 18px;
  line-height: 1.8;
  max-width: 2000px;
  margin: 0 auto;
}

/* ===== STORY ===== */
.story {
  width: 100%;      /* full width */
  margin: 0 auto;   /* ok, centers the section */
  padding: 0;       /* remove extra side padding */
}

.story h2 { text-align: center; font-size: 32px; margin-bottom: 40px; color: #001e45; }

.two-col {
  display: grid;
  grid-template-columns: 1fr  1fr;  
  gap: 1px;
  align-items: center;
  width: auto;
  height: auto;
  margin: 0;
  align-items: stretch; 
  flex-wrap: wrap;
  max-width: none;
}



.story-text {
  background: #47BFAF;
  padding: 40px;
  border-radius: 10px;
  color: #fff;
}

.story-text p { line-height: 1.8; margin-bottom: 16px; font-size: 18px; }

.story-media img {
  width: 100%;
  height: auto;           /* match container height */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(2,34,68,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*

.story-media img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(2,34,68,0.15);
}

*/

/* Responsive Story */
@media (max-width: 980px){
  .two-col { grid-template-columns: 1fr; }
  .story-media { order: 1; } /* image above text */
} 

/* What we beleive in 2 */

.beliefs-section {
  padding: 60px 0;
  text-align: center;
}

.beliefs-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
}

.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}

.belief-box {
  padding: 20px;
}

.belief-icon {
  width: 70px;         /* Adjust icon size */
  height: 70px;
  margin-bottom: 18px;
  object-fit: contain;
}

.belief-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.belief-box p {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .beliefs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

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

/* What we beleive in 3 */


/* CSS for values section with custom uploaded icons */

/* Background Image Wrapper */

.values-section {
  position: relative; /* Important for absolute children */
  padding: 60px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  color: #001e45;
  overflow: hidden;
}

.values-bg1 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  opacity: 0.1;
}

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

.values-overlay1 {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0); /* You can add opacity if needed */
  z-index: 2;
}

.values-inner {
  position: relative; /* ensures it is above bg & overlay */
  z-index: 3;
  max-width: 1200px;
  margin: auto;
}

.values-head h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  color: #001e45;
}

.values-lead {
  color: #001e45;
  max-width: 750px;
  line-height: 1.6;
   margin: 0 auto;       /* centers the paragraph within its container */
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 30px;
}

@media (min-width: 600px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  gap: 16px;
  border: 1px solid #e7e9ef;
  box-shadow: 0 6px 18px rgba(18, 30, 56, 0.06);
  transition: 0.3s ease, transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(18, 30, 56, 0.12);
}

.icon-wrap {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(212, 168, 67, 0.08);
  transition: transform 0.3s ease;
}

.icon-wrap:hover {
  transform: scale(1.1);
}

.value-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.value-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: #001e45;
}

.value-text {
  margin: 0;
  color: #7b8697;
  line-height: 1.55;
  font-size: 14px;
}






/* Campus Section */
/* MAIN SECTION */
.campus-section {
  position: relative;
  width: 100%;
  min-height: 1200px;
  padding: 120px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;

  background: url('assets/Ourcampus.png') no-repeat center center;
  background-size: cover;
}

/* CENTER CONTENT */
.campus-content {
  position: relative;
  z-index: 5;
  max-width: 700px;
  text-align: center;
  color: #fff;
  padding: 80px 0px;
}

.campus-content h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.campus-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.campus-content .btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

/* LEFT + RIGHT SIDE IMAGE BLOCKS (2x2 grid each) */
.campus-side {
  position: absolute;
  top: 25%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 38px;
  z-index: 3;
}

.left-side {
  left: 40px;
}

.right-side {
  right: 40px;
}

/* IMAGE STYLE */
.campus-side img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.campus-side img:hover {
  transform: scale(1.05);
}

/* RESPONSIVE HIDES LEFT+RIGHT IMAGES */
@media (max-width: 1200px) {
  .campus-side img {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 980px) {
  .campus-side {
    display: none;
  }
  .campus-content h2 { font-size: 30px; }
  .campus-content p { font-size: 16px; }
}

/* ===== KEYSTAGES ===== */


.keystages {
  width: 100%;
  padding: 10px 20px;
  min-height: 800px; 
  position: relative;
  overflow: hidden; 
  
}

.keystages-bg2 {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.1;
}

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

.keystages-overlay2 {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 69, 0.15);
  z-index: 2;
}

.keystages .container {
  position: relative;
  z-index: 3;
}


/* Make this section FULL WIDTH */
.keystages .container {
  max-width: 100% !important;
  padding: 10px 20px; /* side breathing space */
}

/* Section Heading */
.keystages h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  color: #001e45;
}

/* GRID — 5 columns full width */
.keystages .ks-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 20px;
}

/* EACH BOX */
.ks-box {
  position: relative;
  display: block;
  width: 100%;
  height: 600px;            /* Bigger full-height card */
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 6px 18px rgba(2, 34, 68, 0.06);
}

/* Dark overlay */
.ks-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(0, 0, 0, 0.18),
              rgba(0, 0, 0, 0.32));
  transition: background 0.25s ease;
}

/* TEXT INSIDE BOX */
.ks-box .ks-content {
  position: absolute;
  left: 50%;
  top: 70%;            /* initial position lower */
  transform: translate(-50%, -50%);
  text-align: center;  /* centered text */
  z-index: 2;
  transition: top 0.35s ease, opacity 0.35s ease;
  opacity: 0.92;
}

.ks-box h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.ks-box p {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
}

/* HOVER EFFECT — text moves to center */
.ks-box:hover .ks-content {
  top: 50%;
  opacity: 1;
}

/* Hover: box pop + overlay brighten */
.ks-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(2,34,68,0.12);
}

.ks-box:hover::before {
  background: linear-gradient(180deg,
              rgba(0,119,204,0.22),
              rgba(0,0,0,0.26));
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

/* Medium screens: 2 columns */
@media (max-width: 980px) {
  .keystages .ks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ks-box {
    height: 300px;
  }
}

/* Mobile: 1 column */
@media (max-width: 520px) {
  .keystages .ks-grid {
    grid-template-columns: 1fr;
  }
  .ks-box {
    height: 260px;
  }
}



/* ===== TESTIMONIALS CAROUSEL ===== */
/* based on your earlier CSS + adapted */
.testimonials {
  width: 100%;
  height: 640px;
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  background: #47BFAF;
}
.testimonials h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 32px;
  color: #001e45;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;        /* important—so items do not shrink into one row */
  height: calc(100% - 80px); /* leave space for heading & padding */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.carousel-item {
  flex: 0 0 calc(100% / 9);
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .28s ease, box-shadow .28s ease;
  scroll-snap-align: center;
}

.carousel-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(2,34,68,0.12);
}

.carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* Responsive breakpoints (modify as needed) */
@media (max-width: 1200px) {
  .carousel-item { flex: 0 0 calc(100% / 6); }
}
@media (max-width: 980px) {
  .carousel-item { flex: 0 0 calc(100% / 4); }
}
@media (max-width: 680px) {
  .carousel-item { flex: 0 0 calc(100% / 2); }
}
@media (max-width: 520px) {
  .carousel-item { flex: 0 0 100%; }
}

/* ===== ACCREDITATIONS ===== */
/* Accreditation Grid using CSS Grid */
.acc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 18px;
  align-items: center;
  justify-items: center; /* center logos in column */
  margin-top: 18px;
}

.acc-grid img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.05);
  opacity: 0.95;
}

/* Responsive: 2 columns on tablets */
@media (max-width: 980px) {
  .acc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 1 column on mobile */
@media (max-width: 520px) {
  .acc-grid {
    grid-template-columns: 1fr;
  }
}

.accreditations h2 {
    text-align: center;
  margin-bottom: 50px;
  font-size: 32px;
  color: #001e45; 
  }


/* ===== FOOTER ===== */

.footer-grid {
  align-items: start !important;   /* Forces all columns to align at the top */
}

.site-footer { background: #47BFAF; color: #fff; padding: 40px 20px; 
width: 100%; /* Ensure footer spans full width */
  position: relative; /* For full-width positioning */}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;   /* FORCE ALL ITEMS TO ALIGN AT THE TOP */
  max-width: 1200px; /* Optional: constrain grid width for readability */
  margin: 0 auto; /* Center grid within the footer */
}

/* Logo container */
.footer-image {
  display: flex;
  align-items: flex-start;   /* top alignment */
  justify-content: flex-end; /* move slightly right */
  padding-top: 0;
}

/* Logo image */
.footer-image img {
  width: 220px;         /* adjust size if needed */
  height: auto;
  display: block;
  margin-top: 0;        /* remove default push-down */
}





.footer-left h3 { 
    font-size: 14px;
    font-weight: 100; 
  line-height: 1.8;
  max-width: 2000px;
  margin: 0 auto;
  /* color: #001e45; */
 
   }
  
  .footer-left h4 { 
    font-size: 14px;
    font-weight: 100;
  line-height: 1.8;
  max-width: 2000px;
  margin: 0 auto;
   }
  
.footer-links a { 
    display: block; 
    color: #fff;
    text-decoration: none; 
    margin: 6px 20px; 
     font-size: 14px;
  line-height: 1.8;
  max-width: 2000px;
  
 
}

.socials {
  display: flex;
  gap: 20px;
  justify-content: center; /* center icons horizontally */
  align-items: center;
  padding: 50px;
}

.socials a img {
  width: 50px;   /* adjust icon size */
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.socials a img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; }
  .campus-gallery { grid-template-columns: repeat(2,1fr); }
  .keystages .ks-grid { grid-template-columns: repeat(2,1fr); }
  .carousel-item { width: 180px; height: 120px; }
  .modal video { height: 60vh; }
  .menu { display: none; }
  .mobile-toggle { display: block; }
  .header.menu-open .menu { display: flex; position: absolute; top: 72px; left: 0; right: 0; background: #00355a; flex-direction: column; padding: 12px 20px; }
  .submenu { position: relative; top: 0; left: 0; background: transparent; box-shadow: none; color: #fff; padding-left: 12px; }
  .submenu a { color: #fff; }
}

@media (max-width: 520px) {
  .hero-inner { padding: 20px; }
  .hero-inner h1 { font-size: 1.5rem; }
  .keystages .ks-grid { grid-template-columns: 1fr; }
  .campus-gallery img { height: 160px; }
}

