@font-face {
  font-family: "WISFontR";
  src:
    url('../Fonts/6149670/f5d4f93b-454a-43e0-9ae8-7f1271b5c0fd.woff2')
      format("woff2"),
    url('../Fonts/6149670/72556e8c-c677-48d8-81ff-3eb8fc50033b.woff')
      format("woff");
  font-style: normal;
}

@font-face {
  font-family: "WISFontB";
  src:
    url('../Fonts/6149645/b56355b0-7729-42a7-9f65-62c7211d078c.woff2')
      format("woff2"),
    url('../Fonts/6149645/05537afc-e923-4df9-b365-71798fbd220d.woff')
      format("woff");
  font-style: normal;
}

/* ================= GLOBAL STYLES ================= */
:root {
/* ================= COLORS ================= */
  --color-white0: #f7f7f8;
  --color-white1: #f3f3f4;
  --color-white2: #e7e8e8;

  --color-grey0: #d0d1d1;
  --color-grey1: #898b8d;
  --color-grey2: #606163;
  --color-grey3: #373838;

  --color-black: #0e0e0e;

  --color-main: #1a2d58;
  --color-main0: #e8eaee;
  --color-main1: #a3abbc;
  --color-main2: #5f6c8a;
  --color-main3: #121f3e;
  --color-main4: #0a1223;

  /* ================= FONTS ================= */
  --font-main: "WISFontR", sans-serif;
  --font-bold: "WISFontB", sans-serif;

/* ================= TYPOGRAPHY SCALE ================= */

/* extra small / captions */
--fs-200: clamp(0.65rem, 0.6rem + 0.15vw, 0.75rem); /* caption, legal */
--fs-300: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);/* small */
--fs-300n: clamp(0.825rem, 0.7rem + 0.2vw, 0.825rem);/* normalized small (fixed) */
--fs-400: clamp(0.875rem, 0.85rem + 0.25vw, 1rem);/* body */
--fs-500: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);/* large body */
--fs-600: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);/* h3 */
--fs-700: clamp(1.5rem, 1.3rem + 1vw, 2rem);/* h2 */
--fs-800: clamp(2rem, 1.6rem + 2vw, 3rem);/* h1 */
--fs-900: clamp(2.5rem, 5vw + 1rem, 6.5rem);/* hero */
--fs-1000: clamp(3.25rem, 6vw + 1rem, 8rem);/* hero XL */
--fs-1100: clamp(4rem, 8vw + 1.5rem, 10rem);/* campaign / splash */


  /* ================= LINE HEIGHT ================= */
  --lh-body: 1.7;
  --lh-heading: 1.2;

  /* ================= LETTER SPACING ================= */
  --ls-body: 0.015em;
  --ls-heading: 0.04em;

  /* ================= SPACING ================= */
  --space-xs: clamp(1rem, 2vw, 1.5rem);
  --space-sm: clamp(2rem, 4vw, 3rem);
  --space-md: clamp(3rem, 6vw, 5rem);
  --space-lg: clamp(4rem, 8vw, 7rem);
  --space-xl: clamp(6rem, 10vw, 9rem);
}

body {
  font-family: var(--font-main);
  font-size: var(--fs-500);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-main);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin-bottom: var(--space-xs);
  color: var(--color-main);
}

h1 {
  font-size: var(--fs-800);
}

h2 {
  font-size: var(--fs-700);
}

h3 {
  font-size: var(--fs-600);
}

h4 {
  font-size: var(--fs-500);
}

h5 {
  font-size: var(--fs-400);
}

h6 {
  font-size: var(--fs-300);
}

li{
  color: var(--color-grey2);
}

.bg-main {
  background-color: var(--color-main0);
}

/* ================= MOBILE-FIRST SIZING (PHASE 3.1) ================= */

/* ================= Base (Mobile: default < 600px) ================= */
.navbar:has(.navbar-toggler[aria-expanded="true"]) {
  background-color: #fff;
}

.contact-btn,
.navbarmin- {
  font-size: var(--fs-400);
  padding: 0.5rem 1.25rem;
}

.dropdown-item {
  font-size: clamp(0.875rem, 0.9vw, 1rem);
}

.hero-img {
  width: clamp(100%, 110vw, 110%);
  margin-left: clamp(0rem, -3vw, -3.75rem);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.dropdown-menu {
  min-width: 100%;
}

/* ================= BREAKPOINT SYSTEM ================= */

/* Base / Mobile (xs < 576px) */
/* No media query needed */


/* Small devices ≥ 576px (Bootstrap sm) */
@media (min-width: 36em) {
}

/* Tablet ≥ 768px (Bootstrap md) */
@media (min-width: 48em) {
  .eca-section {
    padding: 3rem 4rem;
  }

  .eca-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .eca-card {
    padding: 1.5rem;
  }
}


/* Laptop ≥ 992px (Bootstrap lg) */
@media (min-width: 62em) {
}


/* Desktop ≥ 1200px (Bootstrap xl) */
@media (min-width: 75em) {
}


/* Large desktop ≥ 1400px (Bootstrap xxl) */
@media (min-width: 87.5em) {
}


/* ================= NAVBAR ================= */
.navbar {
  background: transparent;
  position: fixed;
  width: 100%;
  z-index: 98;
  padding: clamp(0.5rem, 2vw, 1rem) 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.08);
  padding: clamp(0.5rem, 2vw, 1rem);
  /* keep responsive */
}

.navbar-logo {
  width: clamp(11.25rem, 22vw, 16.25rem);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  transition: width 0.3s ease;
}

.navbar.scrolled .navbar-logo {
  width: clamp(11.25rem, 18vw, 14.25rem);
}

.navbar .nav-link,
.navbar .dropdown-toggle {
  color: var(--color-grey2) !important;
  font-size: var(--fs-300n);
  margin: 0 0.75rem;
  transition:
    color 0.3s ease,
    font-size 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .nav-link:focus {
  color: var(--color-main) !important;
}

.navbar-toggler {
  border: none;
}

.navbar-nav .contact-link {
  display: block;
  width: 100%;
}

/* ================= DROPDOWN MENU ================= */
.dropdown-menu {
  background-color: var(--color-white0);
  border: none;
  border-radius: 0.625rem;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.15);
  min-width: auto;
}

.dropdown-item {
  font-family: var(--font-main);
  font-size: var(--fs-300n);
  color: var(--color-main) !important;
  padding: 0.5rem 0.8rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(208, 209, 209, 0.4) !important;
  color: var(--color-main) !important;
}

/* ================= BUTTONS ================= */
.contact-btn,
.navbarmin- {
  background-color: var(--color-main) !important;
  color: var(--color-white0) !important;
  font-family: var(--font-main);
  padding: 0.5rem 1.2rem;
  border-radius: 0.625rem;
  border: none;
  transition: all 0.3s ease;
}

/* Contact Us navbar link override */
.navbar .contact-btn {
  color: var(--color-white0) !important;
}

.contact-btn:hover,
.navbar .contact-btn:hover {
  background-color: var(--color-white0) !important;
  color: var(--color-main) !important;
  box-shadow: 0 0.25rem 0.75rem rgba(26, 45, 88, 0.3);
  transform: translateY(-0.125rem);
}

.contact-btn:active,
.contact-btn:focus {
  background-color: var(--color-white0) !important;
  color: var(--color-main) !important;
  box-shadow: 0 0 0 0.1875rem rgba(26, 45, 88, 0.2);
}

/* ================= HERO SECTION ================= */
header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-section {
  overflow: hidden;
  padding-block: clamp(1.75rem, 3.5vw, 3rem);
}

.hero-img {
  width: 110%;
  height: auto;
  min-width: 0;
}

.hero-wis {
  position: absolute;
  bottom: clamp(1rem, 3.125vw, 4rem);
  left: clamp(1rem, 5vw, 4rem);
  color: var(--color-white0);
}

.hero-wis h1 {
  color: var(--color-white0);
  font-family: var(--font-bold);
  font-size: var(--fs-900);
  line-height: 1.1;
  margin: 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
}


/* ================= ACCREDITATION SECTION ================= */
.accr {
  padding-block: var(--space-sm);
  background-color: var(--color-white1);
  color: var(--color-grey2);
  padding-inline: clamp(1rem, 6vw, 6rem);
}

.accr-logo {
  height: clamp(4.5rem, 10vw, 6rem);
  width: auto;
  transition: transform 0.3s ease;
}

.accr-logo:hover {
  transform: scale(1.15);
}

.accr p {
  max-width: 65ch;
  margin-inline: auto;
}

.accr-text {
  max-width: 65ch;
  margin-inline: auto;
}

.accr-left {
  color: var(--color-grey2);
}

/* ================= SCHOOL CARDS ================= */
.school-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background-color: var(--color-main0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.school-card h4 {
  margin-bottom: 0.25rem;
}

.school-card p {
  color: var(--color-grey2);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.school-card:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  transform: translateY(-0.125rem);
}

.arrow-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--color-white0);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ================= SCROLL TO TOP BUTTON ================= */
.scroll-top-btn {
  position: fixed;
  bottom: 1.875rem;
  right: 1.875rem;
  width: 3.125rem;
  height: 3.125rem;
  background-color: var(--color-main);
  color: var(--color-white0);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.3);
  z-index: 9;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  will-change: transform, opacity;
}

.scroll-top-btn:hover {
  transform: scale(1.1);
}

.scroll-top-btn.show {
  display: flex;
  opacity: 1;
}

/* ============== PRELOADER ============== */
#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-main0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.loading-text {
  font-family: var(--font-bold);
  font-size: 1.25rem;
  color: var(--color-main);
  letter-spacing: 0.0625rem;
  opacity: 0.8;
}

.star {
  width: 5rem;
  height: auto;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================= TEAM IMAGE BASE ================= */
.team-img-wrap {
  width: 100%;
  overflow: hidden;
}

.team-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: unset;
}


.team1-img-wrap img {
  width: 100%;
  height: auto;          /* mobile */
  object-fit: cover;
  object-position: 75% center;
}

/* ================= COMMUNITY STATS – CLEAN & FLUID ================= */

.community-stats {
  background-color: var(--color-white1);
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

/* Remove container padding on mobile */
.community-stats .container {
  padding-inline: clamp(0.5rem, 3vw, 2rem);
}

/* Control row spacing (replaces g-* classes) */
.community-stats .row {
  --bs-gutter-x: clamp(1rem, 4vw, 3rem);
  --bs-gutter-y: clamp(1.25rem, 4vw, 2.5rem);
}

/* Icon */
.community-stats .stat-icon i {
  font-size: clamp(3.5rem, 8vw, 9rem);
  display: block;
  margin-bottom: clamp(0.25rem, 1vw, 0.75rem);
}

/* Number */
.community-stats .stat-number {
  font-size: var(--fs-900);
  line-height: 1.1;
  margin-bottom: clamp(0.25rem, 1vw, 0.75rem);
}

/* Text */
.community-stats .stat-text {
  font-size: var(--fs-500);
  margin: 0;
  max-width: 28ch;
  margin-inline: auto;
}

/* ================= FOOTER ================= */
.footer {
  padding-block: var(--space-xs);
  background-color: var(--color-white2);
  font-family: var(--font-main);
  color: var(--color-main);
  line-height: 1.5;
  font-size: var(--fs-300n);
}

.footer-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: clamp(3.438rem, 10vw, 5rem);
  height: auto;
  object-fit: contain;
}

.footer-accreditation {
  height: clamp(0.75rem, 5vw, 2.25rem);
  width: auto;
  object-fit: contain;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--color-main);
  margin-right: 0.75rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-grey3);
}

.footer-social {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.625rem;
}

.footer-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-white0);
  color: var(--color-main);
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.footer-social a:hover {
  background-color: var(--color-main);
  color: var(--color-white0);
  transform: translateY(-0.1875rem);
}

.footer hr {
  border-color: var(--color-grey0);
}

.footer small {
  color: var(--color-grey2);
}


/* ============== ACCREDITATION - Who We Are ============== */
.accr-section {
  padding-block: var(--space-sm);
  background-color: var(--color-white1);
}

.accr-card {
  background-color: var(--color-white0);
  border-radius: 0.75rem;
  padding: var(--space-xs);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
  max-width: 28rem;
}

.accr-card p {
  font-size: var(--fs-400);
  color: var(--color-grey2);
  margin-bottom: 0.75rem;
}

.accr-card p:last-child {
  margin-bottom: 0;
}

.accr-logo {
  max-height: 4rem;
  width: auto;
}

/* ============== SLO SECTION - Who We Are ============== */
.slo-section {
  padding-block: var(--space-sm);
  background-color: var(--color-white0);
}

.slo-title {
  font-family: var(--font-bold);
  font-size: var(--fs-700);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-main);
}

/* Circle container */
.slo-item {
  width: clamp(8rem, 18vw, 10rem);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  overflow: hidden;
}

/* Icon */
.slo-item i {
  font-size: clamp(2rem, 5vw, 3rem);
}

/* Text */
.slo-item p {
  font-size: var(--fs-400);
  margin: 0;
  letter-spacing: 0.05em;
  max-width: 10ch;
  text-align: center;
}

/* Color variants */
.slo-item.light {
  background-color: var(--color-white2);
  color: var(--color-main);
}

.slo-item.mid {
  background-color: var(--color-main1);
  color: var(--color-main);
}

.slo-item.dark {
  background-color: var(--color-main2);
  color: var(--color-white0);
}


/* ============== IB MYP - Teachers & Staff ============== */
.ib-myp .staff-card {
  width: clamp(12rem, 15vw, 15rem);
  margin-inline: auto;
}

.ib-myp img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.ib-myp .staff-card p {
  font-size: var(--fs-300);
}

/* ============== CAMPUS GALLERY ============== */
.campus-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0.75rem;
  object-fit: cover;
}

.superheader h1{
  color: var(--color-white0);
  font-family: var(--font-bold);
  font-size: var(--fs-900);
  margin: 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
}

.superheader p{
  color: var(--color-grey2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.35)
  );
}

.hero-text-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.hero-subnav {
  position: absolute;
  bottom: clamp(1.5rem, 6vh, 4rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  z-index: 2;
}

.hero-subnav a {
  text-decoration: none;
  font-size: var(--fs-300n);
  color: var(--color-main);
  font-weight: 500;
  white-space: nowrap;
}

.hero-subnav a:hover {
  color: var(--color-main);
}


/* SECTION WRAPPER */
.eca-section {
  padding: 2rem 1rem;
}

/* YEAR TEXT */
.eca-year {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: var(--fs-300, 0.95rem);
  color: #666;
}

/* GRID */
.eca-grid {
  display: grid;
  gap: 1.25rem;
}

/* CARD */
.eca-card {
  background-color: #eceff1;
  border-radius: 1rem;
  padding: 1.25rem;
}

/* CARD TITLE */
.eca-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

/* LIST */
.eca-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.eca-card li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

.list-unstyled {
  list-style: none;
}