/* =========================================================
   SAHS WEBSITE — GLOBAL DESIGN SYSTEM
   Edit these variables to update the whole website.
========================================================= */
:root {
  /* Colour system */
  --primary-color: #176B5B;
  --sunny-yellow: #FFD85C;
  --coral-color: #FF8066;
  --sky-blue: #72C8F2;
  --fresh-mint: #BFE8D2;
  --soft-lavender: #B7A7F8;
  --warm-background: #FFFDF8;

  /* Supporting colours */
  --white-color: #FFFFFF;
  --heading-color: #172D28;
  --text-color: #687671;
  --border-color: rgba(23, 107, 91, 0.12);

  /* Typography */
  --heading-font: "Fredoka", sans-serif;
  --body-font: "Nunito Sans", sans-serif;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Layout */
  --section-padding: 78px;
  --container-width: 1320px;

  /* Shadows and transitions */
  --shadow-sm: 0 7px 22px rgba(29, 53, 45, 0.08);
  --shadow-md: 0 14px 35px rgba(29, 53, 45, 0.12);
  --transition-fast: .2s ease;
  --transition-normal: .35s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--warm-background);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: var(--font-semibold);
  line-height: 1.15;
}

p {
  margin-bottom: 14px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-normal);
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  max-width: var(--container-width);
}

.section-space {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

/* =========================================================
   SCHOOL UPDATES TICKER  (continuous marquee)
   - scrolls forever, pauses while the mouse is over the bar
     (or keyboard focus is inside it) and resumes on mouse out
   - JS (script.js) only adds extra copies so very wide screens
     never show an empty gap; without JS it still scrolls.
========================================================= */
.school-ticker {
  position: relative;
  z-index: 1001;
  background: var(--primary-color);
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  font-weight: var(--font-bold);
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 34px;
  overflow: hidden;
}

.ticker-label {
  flex-shrink: 0;
  color: var(--sunny-yellow);
  white-space: nowrap;
}

.ticker-label i {
  margin-right: 5px;
}

.ticker-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: sahsTickerScroll var(--ticker-duration, 32s) linear infinite;
}

.ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  white-space: nowrap;
}

.ticker-link {
  color: var(--sunny-yellow);
  flex-shrink: 0;
}

.ticker-link:hover {
  color: #fff;
}

.ticker-divider {
  opacity: .55;
}

/* Pause on hover / keyboard focus, resume on mouse out */
@media (hover: hover) and (pointer: fine) {
  .school-ticker:hover .ticker-track {
    animation-play-state: paused;
  }
}

.school-ticker:has(:focus-visible) .ticker-track {
  animation-play-state: paused;
}

@keyframes sahsTickerScroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* =========================================================
   NAVIGATION
   - menu text is 14px everywhere
   - hover: yellow bottom border draws left -> right
   - desktop (>=1200px, mouse): dropdown opens on hover
   - below 1200px: hamburger menu (tap to open)
========================================================= */
.sahs-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 6px 0;
  background: rgba(255, 253, 248, .98);
  box-shadow: 0 1px 0 rgba(23, 107, 91, .10);
}

.sahs-navbar>.container {
  gap: 8px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 24px;
  padding: 0;
}

.navbar-logo {
  display: block;
  width: 80px;
  height: auto;
}

.sahs-navbar .navbar-nav {
  gap: 2px;
}

.sahs-navbar .nav-link {
  position: relative;
  padding: 12px 11px !important;
  border-radius: 0;
  color: #394943;
  font-size: 14px;
  font-weight: var(--font-semibold);
  white-space: nowrap;
  transition: color .25s ease;
}

/* Bottom border only - draws from left (0) to right on hover */
.sahs-navbar .nav-link::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px;
  content: "";
  background: var(--sunny-yellow);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .38s cubic-bezier(.65, 0, .35, 1);
}

.sahs-navbar .nav-link:hover,
.sahs-navbar .nav-link:focus-visible,
.sahs-navbar .nav-link.active,
.sahs-navbar .nav-link.show,
.sahs-navbar .dropdown:hover>.nav-link {
  color: var(--primary-color);
  background: transparent;
  outline: 0;
}

.sahs-navbar .nav-link:hover::before,
.sahs-navbar .nav-link:focus-visible::before,
.sahs-navbar .nav-link.active::before,
.sahs-navbar .nav-link.show::before,
.sahs-navbar .dropdown:hover>.nav-link::before {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.sahs-navbar .dropdown-menu {
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 14px;
}

.sahs-navbar .dropdown-item {
  position: relative;
  padding: 9px 12px;
  border-radius: 7px;
  color: #394943;
  font-size: 14px;
  font-weight: var(--font-semibold);
  white-space: normal;
  transition: color .25s ease, background-color .25s ease;
}

.sahs-navbar .dropdown-item::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: var(--sunny-yellow);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .3s cubic-bezier(.65, 0, .35, 1);
}

.sahs-navbar .dropdown-item:hover,
.sahs-navbar .dropdown-item:focus-visible {
  color: var(--primary-color);
  background: #eef7f2;
}

.sahs-navbar .dropdown-item:hover::after,
.sahs-navbar .dropdown-item:focus-visible::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.navbar-actions {
  flex-shrink: 0;
}

.materials-nav-btn,
.admission-nav-btn {
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: var(--font-bold);
  white-space: nowrap;
}

.materials-nav-btn {
  color: var(--primary-color);
  background: #edf6f2;
}

.materials-nav-btn:hover {
  color: var(--primary-color);
  background: var(--fresh-mint);
}

.admission-nav-btn {
  color: #1b302a;
  background: var(--sunny-yellow);
  box-shadow: 0 3px 0 rgba(185, 142, 0, .08);
}

.admission-nav-btn:hover {
  color: #1b302a;
  transform: translateY(-2px);
  background: #ffcf36;
}

.navbar-toggler {
  border-color: var(--border-color);
  padding: 5px 8px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .15rem rgba(23, 107, 91, .15);
}

/* ---------- Desktop (>= 1200px): animated dropdowns ---------- */
@media (min-width: 1200px) {
  .sahs-navbar .dropdown-menu {
    top: 100%;
    left: 0;
    display: block;
    margin-top: 8px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }

  /* invisible bridge so the menu doesn't close while the mouse crosses the gap */
  .sahs-navbar .dropdown-menu::before {
    position: absolute;
    top: -12px;
    right: 0;
    left: 0;
    height: 12px;
    content: "";
  }

  .sahs-navbar .dropdown-menu.show,
  .sahs-navbar .dropdown:has(:focus-visible)>.dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }
}

/* Mouse users: open on hover (script.js switches off click-toggling here) */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .sahs-navbar .dropdown:hover>.dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }
}

/* Slightly tighter spacing on small laptops so 14px text always fits on one row */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-brand {
    margin-right: 10px;
  }

  .sahs-navbar .nav-link {
    padding: 12px 8px !important;
  }

  .materials-nav-btn i {
    display: none;
  }

  .materials-nav-btn,
  .admission-nav-btn {
    padding: 9px 11px;
  }
}

/* ---------- Below 1200px: hamburger menu ---------- */
@media (max-width: 1199.98px) {
  .sahs-navbar .navbar-collapse {
    max-height: calc(100vh - 110px);
    padding: 12px 0 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sahs-navbar .navbar-nav {
    align-items: stretch !important;
    gap: 2px;
  }

  .sahs-navbar .nav-link {
    padding: 11px 12px !important;
  }

  .sahs-navbar .dropdown-menu {
    min-width: 0;
    margin: 0 0 6px 12px;
    border: 0;
    border-left: 3px solid var(--sunny-yellow);
    border-radius: 0 10px 10px 0;
    background: #f4faf7;
    box-shadow: none;
  }

  .navbar-actions {
    align-items: stretch !important;
    flex-direction: column;
    margin-top: 10px;
  }

  .materials-nav-btn,
  .admission-nav-btn {
    padding: 11px 12px;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .navbar-logo {
    width: 60px;
  }

  .navbar-brand {
    margin-right: 0;
  }

  .ticker-inner {
    gap: 8px;
    min-height: 32px;
  }

  .school-ticker {
    font-size: 11px;
  }
}

/* =========================================================
   REUSABLE BUTTONS
========================================================= */
.btn-primary-custom,
.btn-yellow-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 55px;
  padding: 16px 20px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: var(--font-extrabold);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary-custom {
  color: var(--white-color);
  background: var(--primary-color);
  box-shadow: 0 4px 0 rgba(23, 107, 91, .08);
}

.btn-primary-custom:hover {
  color: var(--white-color);
  background: #10584a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-yellow-custom {
  color: var(--heading-color);
  background: var(--sunny-yellow);
}

.btn-yellow-custom:hover {
  color: var(--heading-color);
  background: #ffcf36;
  transform: translateY(-2px);
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 42px 0 50px;
  background:
    radial-gradient(ellipse at 4% 24%, rgba(191, 232, 210, .28), transparent 23%),
    radial-gradient(ellipse at 95% 22%, rgba(255, 216, 92, .12), transparent 23%),
    var(--warm-background);
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 200;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #4e8074;
  font-size: 14px;
  font-weight: var(--font-bold);
}

.breadcrumb-star {
  color: var(--coral-color);
  font-size: 15px;
}

.hero-content h1 {
  margin-bottom: 4px;
  color: var(--heading-color);
  font-size: 60px;
  font-weight: var(--font-bold);
  letter-spacing: -1.5px;
}

.hero-content h1 span {
  display: block;
  color: var(--primary-color);
}

.hero-underline {
  width: 105px;
  height: 8px;
  margin: 0 0 15px 105px;
  border-top: 4px solid var(--sunny-yellow);
  border-radius: 50%;
  transform: rotate(-1deg);
}

.hero-description {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.quick-access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  color: #6b8279;
  font-size: 15px;
  font-weight: var(--font-semibold);
}

.quick-access span {
  color: #7c8983;
}

.quick-access a:hover {
  color: var(--coral-color);
}

.quick-access b {
  color: #c5d4cc;
}

.hero-visual {
  position: relative;
  padding: 0 0 12px 6px;
}

.hero-image-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.43 / 1;
  border: 4px solid var(--white-color);
  border-radius: 28px;
  box-shadow: 0 15px 30px rgba(27, 54, 45, .14);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.hero-image-frame:hover img {
  transform: scale(1.1);
}

.hero-dots {
  position: absolute;
  top: -35px;
  left: -70px;
  z-index: 1;
  width: 125px;
  height: 125px;
  background-image: radial-gradient(circle, rgba(23, 107, 91, .22) 4px, transparent 3px);
  background-size: 30px 30px;
}

.hero-yellow-shape {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 1;
  width: 110px;
  height: 110px;
  border-radius: 22px;
  background: var(--sunny-yellow);
  transform: rotate(8deg);
}

.hero-mint-shape {
  position: absolute;
  bottom: -22px;
  left: -12px;
  z-index: 1;
  width: 135px;
  height: 136px;
  border-radius: 50%;
  background: var(--fresh-mint);
}

.hero-coral-star {
  position: absolute;
  top: -32px;
  left: 50px;
  z-index: 3;
  color: var(--coral-color);
  font-size: 30px;
}

.hero-image-caption {
  position: absolute;
  right: auto;
  bottom: 0;
  left: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 40px);
  padding: 9px 14px;
  border: 1px solid rgba(23, 107, 91, .08);
  border-radius: 14px;
  background: var(--white-color);
  box-shadow: var(--shadow-md);
}

.caption-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--sunny-yellow);
  background: var(--primary-color);
}

.hero-image-caption strong {
  display: block;
  color: var(--heading-color);
  font-size: 14px;
  line-height: 1.4;
}

.hero-image-caption small {
  display: block;
  color: var(--text-color);
  font-size: 12px;
  line-height: 1.4;
}

/* =========================================================
   ABOUT SCHOOL SECTION
========================================================= */
.about-section {
  padding-top: 45px;
  padding-bottom: 55px;
  border-bottom: 1px solid var(--border-color);
}

.about-visual {
  position: relative;
  padding: 0 45px 18px 0;
}

.about-main-image {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.38 / 1;
  border: 3px solid var(--white-color);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.about-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.about-main-image:hover img {
  transform: scale(1.1);
}

.about-floating-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 47%;
  padding: 8px;
  border: 1px solid rgba(23, 107, 91, .08);
  border-radius: 20px;
  background: var(--white-color);
  box-shadow: var(--shadow-md);
}

.about-floating-card img {
  width: 100%;
  aspect-ratio: 1.8 / 1;
  object-fit: cover;
  border-radius: 13px;
}

.about-floating-card h3 {
  margin: 8px 2px 3px;
  font-size: 16px;
  font-weight: var(--font-bold);
}

.about-floating-card p {
  margin: 0 2px 2px;
  font-size: 12px;
  line-height: 1.5;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #4c8175;
  font-size: 12px;
  font-weight: var(--font-extrabold);
  letter-spacing: .5px;
}

.about-content h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 2.2vw, 34px);
  font-weight: var(--font-bold);
}

.about-content p {
  font-size: 17px;
  line-height: 1.75;
}

.about-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.about-cta-row .btn {
  min-height: 47px;
  padding: 9px 16px;
  font-size: 14px;
}

.curved-arrow {
  color: var(--coral-color);
  font-size: 32px;
  transform: rotate(15deg);
}

/*=========================================================
   CORE STRENGTHS SECTION
  ========================================================= */
.strengths-section {
  background: #F3F9F7;
  padding-top: 65px;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--border-color);
}

.strengths-container {
  max-width: var(--container-width);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading .section-eyebrow {
  margin-bottom: 7px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 2.4vw, 34px);
  font-weight: var(--font-bold);
}

.heading-underline {
  display: block;
  width: 140px;
  height: 12px;
  margin-top: 4px;
  border-top: 3px solid var(--coral-color);
  border-radius: 50%;
  transform: rotate(-2deg);
}

.strengths-grid {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 16px;
}

.strength-card {
  height: 100%;
  padding: 20px 21px 17px;
  border: 1px solid var(--border-color);
  border-radius: 19px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.strength-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-sm);
}

.strength-card-yellow {
  background: #FFF9E2;
  border-color: #F0E8C8;
}

.strength-card-mint {
  background: #F0F9F4;
  border-color: #DDEFE5;
}

.strength-card-coral {
  background: #FFF2EF;
  border-color: #F4E1DC;
}

.strength-card-blue {
  background: #EEF8FD;
  border-color: #DCECF4;
}

.strength-card-lavender {
  background: #F4F0FE;
  border-color: #E8DFFB;
}

.strength-card-emerald {
  background: #EAF5F2;
  border-color: #D9EAE5;
}

.strength-icon {
  display: inline-grid;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 12px;
  color: var(--heading-color);
  font-size: 20px;
  transition: 0.5s;
}

.strength-card:hover .strength-icon {
  transform: scale(1.1);

}

.strength-card-yellow .strength-icon {
  background: var(--sunny-yellow);
}

.strength-card-mint .strength-icon {
  background: var(--fresh-mint);
}

.strength-card-coral .strength-icon {
  background: var(--coral-color);
}

.strength-card-blue .strength-icon {
  background: var(--sky-blue);
}

.strength-card-lavender .strength-icon {
  background: var(--soft-lavender);
}

.strength-card-emerald .strength-icon {
  color: var(--white-color);
  background: var(--primary-color);
}

.strength-card h3 {
  margin-bottom: 7px;
  font-size: 22px;
  font-weight: var(--font-bold);
}

.strength-card p {
  margin: 0;
  color: #697772;
  font-size: 16px;
  line-height: 1.65;
}

/* =========================================================
   REVEAL ANIMATION
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */
@media (min-width: 1400px) {
  .hero-section {
    padding-top: 52px;
    padding-bottom: 62px;
  }

  .hero-visual {
    padding-left: 18px;
  }
}

@media (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: clamp(34px, 3.7vw, 44px);
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding: 48px 0 45px;
  }

  .hero-content {
    max-width: 650px;
  }

  .hero-visual {
    max-width: 720px;
    margin: 0 auto;
  }

  .about-section {
    padding-top: 45px;
  }

  .about-content {
    max-width: 680px;
  }

  .strengths-section {
    padding-top: 55px;
    padding-bottom: 55px;
  }
}

@media (max-width: 575.98px) {
  :root {
    --section-padding: 48px;
  }

  body {
    font-size: 14px;
  }

  .hero-section {
    padding: 34px 0 40px;
  }

  .hero-breadcrumb {
    margin-bottom: 14px;
    font-size: 9px;
    gap: 6px;
  }

  .hero-content h1 {
    font-size: clamp(34px, 9.5vw, 44px);
    letter-spacing: -1px;
  }

  .hero-underline {
    margin-left: 72px;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .quick-access {
    gap: 7px;
    margin-top: 18px;
    font-size: 9px;
  }

  .hero-visual {
    margin-top: 10px;
    padding-left: 0;
  }

  .hero-image-frame {
    border-width: 3px;
    border-radius: 20px;
    aspect-ratio: 1.12 / 1;
  }

  .hero-dots {
    left: -5px;
    top: -20px;
  }

  .hero-yellow-shape {
    width: 60px;
    height: 50px;
    right: -3px;
  }

  .hero-mint-shape {
    width: 55px;
    height: 55px;
    left: -8px;
  }

  .hero-coral-star {
    left: 20px;
    top: -22px;
  }

  .hero-image-caption {
    left: 10px;
    bottom: -3px;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 11px;
  }

  .caption-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .hero-image-caption strong {
    font-size: 9px;
  }

  .hero-image-caption small {
    font-size: 8px;
  }

  .about-section {
    padding-top: 35px;
    padding-bottom: 45px;
  }

  .about-visual {
    padding-right: 22px;
    padding-bottom: 25px;
  }

  .about-main-image {
    border-radius: 18px;
    aspect-ratio: 1.15 / 1;
  }

  .about-floating-card {
    width: 54%;
    padding: 6px;
    border-radius: 14px;
  }

  .about-floating-card img {
    border-radius: 9px;
  }

  .about-floating-card h3 {
    font-size: 10px;
    margin-top: 6px;
  }

  .about-floating-card p {
    font-size: 8px;
  }

  .about-content h2 {
    font-size: 29px;
  }

  .about-content p {
    font-size: 13px;
  }

  .strengths-section {
    padding-top: 44px;
    padding-bottom: 48px;
  }

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

  .strength-card {
    min-height: 0;
    padding: 18px;
    border-radius: 17px;
  }

  .strength-card h3 {
    font-size: 16px;
  }

  .strength-card p {
    font-size: 12px;
  }
}

/* =========================================================
   ACADEMICS SECTION
========================================================= */

.academics-section {
  padding: 65px 0 70px;
  background: var(--warm-background);
}

.academics-container {
  max-width: var(--container-width);
}

/* Heading and Button */

.academics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 32px;
}

.academics-heading-content {
  max-width: 650px;
}

.academics-header h2 {
  margin-bottom: 6px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: clamp(32px, 3vw, 34px);
  font-weight: var(--font-bold);
}

.academics-header p {
  max-width: 630px;
  margin-bottom: 0;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.65;
}

.academics-explore-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 19px;
  border-radius: 13px;
  color: var(--white-color);
  background: var(--primary-color);
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: var(--font-extrabold);
  transition: var(--transition-normal);
}

.academics-explore-btn:hover {
  color: var(--white-color);
  background: #10584a;
  transform: translateY(-3px);
}

/* Subject Grid */

.academics-grid {
  --bs-gutter-x: 25px;
  --bs-gutter-y: 25px;
}

.subject-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px;
  border: 1px solid #E7ECE8;
  border-radius: 19px;
  background: var(--white-color);
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.subject-card:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 107, 91, 0.25);
  box-shadow: var(--shadow-sm);
}

/* Subject Icons */

.subject-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 11px;
  color: var(--heading-color);
  font-size: 20px;
  transition: .5s;
}

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

.subject-card-language .subject-icon {
  background: var(--coral-color);
}

.subject-card-mathematics .subject-icon {
  background: var(--sunny-yellow);
}

.subject-card-science .subject-icon {
  color: var(--white-color);
  background: var(--primary-color);
}

.subject-card-social .subject-icon {
  background: var(--sky-blue);
}

.subject-card-computer .subject-icon {
  background: var(--soft-lavender);
}

.subject-card-creative .subject-icon {
  background: var(--fresh-mint);
}

/* Subject Text */

.subject-subtitle {
  display: block;
  margin-bottom: 8px;
  color: #4F756A;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: var(--font-semibold);
  line-height: 1.5;
}

.subject-card h3 {
  margin-bottom: 12px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: var(--font-bold);
}

.subject-card p {
  margin-bottom: 13px;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
}

/* Subject Link */

.subject-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid #E9EEEA;
  color: var(--primary-color);
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: var(--font-bold);
}

.subject-link i {
  transition: transform var(--transition-fast);
}

.subject-link:hover {
  color: var(--coral-color);
}

.subject-link:hover i {
  transform: translateX(4px);
}

/* =========================================================
   STUDENT LIFE SECTION
========================================================= */

.student-life-section {
  padding: 10px 0 12px;
  color: var(--white-color);
  background: #142B24;
}

.student-life-container {
  max-width: 1050px;
}

/* Student Life Heading */

.student-life-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 32px;
  padding: 0 10px;
}

.student-life-heading-content {
  max-width: 620px;
}

.student-life-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--sunny-yellow);
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: var(--font-extrabold);
}

.student-life-header h2 {
  margin-bottom: 6px;
  color: var(--white-color);
  font-family: var(--heading-font);
  font-size: 32px;
  font-weight: var(--font-bold);
}

.student-life-header p {
  max-width: 590px;
  margin-bottom: 0;
  color: #D7E6DF;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.7;
}

/* Student Life Button */

.student-life-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 9px;
  padding: 16px 16px;
  border-radius: 12px;
  color: var(--heading-color);
  background: var(--sunny-yellow);
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: var(--font-extrabold);
  transition: var(--transition-normal);
}

.student-life-button:hover {
  color: var(--heading-color);
  background: #FFCF36;
  transform: translateY(-3px);
}

/* Activities Grid */

.student-life-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 0 10px;
}

.activity-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 19px;
  isolation: isolate;
  background: #243A32;
  color: var(--white-color);
}

.activity-card-classroom,
.activity-card-science {
  grid-column: span 3;
}

.activity-card-art,
.activity-card-sports,
.activity-card-cultural {
  grid-column: span 2;
  min-height: 320px;
}

.activity-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.activity-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(to top,
      rgba(8, 17, 13, 0.94) 0%,
      rgba(8, 17, 13, 0.55) 10%,
      rgba(8, 17, 13, 0.02) 100%);
}

.activity-card:hover img {
  transform: scale(1.06);
}

.activity-card:hover {
  color: var(--white-color);
  border-color: rgba(255, 216, 92, 0.6);
}

.activity-card-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding: 16px;
}

.activity-category {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--sunny-yellow);
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: var(--font-medium);
}

.activity-card h3 {
  margin-bottom: 5px;
  color: var(--white-color);
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: var(--font-bold);
}

.activity-card p {
  max-width: 430px;
  margin-bottom: 0;
  color: #F0F4F1;
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 1.55;
}

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

@media (max-width: 767.98px) {

  .academics-section {
    padding: 45px 0;
  }

  .academics-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .academics-header h2 {
    font-size: 29px;
  }

  .academics-header p {
    font-size: 13px;
  }

  .subject-card {
    min-height: 210px;
  }

  .student-life-section {
    padding: 38px 0;
  }

  .student-life-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }

  .student-life-header h2 {
    font-size: 29px;
  }

  .student-life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
  }

  .activity-card-classroom,
  .activity-card-science {
    grid-column: span 2;
  }

  .activity-card-art,
  .activity-card-sports,
  .activity-card-cultural {
    grid-column: span 1;
    min-height: 220px;
  }

  .activity-card-overlay {
    padding: 12px;
  }

  .activity-card h3 {
    font-size: 14px;
  }

  .activity-card p {
    font-size: 10px;
  }
}

@media (max-width: 420px) {

  .academics-header h2,
  .student-life-header h2 {
    font-size: 26px;
  }

  .subject-card {
    padding: 14px;
    border-radius: 15px;
  }

  .subject-card h3 {
    font-size: 15px;
  }

  .subject-card p {
    font-size: 11px;
  }

  .subject-subtitle {
    font-size: 9px;
  }

  .student-life-grid {
    grid-template-columns: 1fr;
  }

  .activity-card-classroom,
  .activity-card-science,
  .activity-card-art,
  .activity-card-sports,
  .activity-card-cultural {
    grid-column: span 1;
    min-height: 220px;
  }
}

/* =========================================================
   PRINCIPAL MESSAGE SECTION
========================================================= */

.principal-message-section {
  padding: 55px 0 65px;
  background: var(--warm-background);
  border-bottom: 1px solid var(--border-color);
}

.principal-message-container {
  max-width: 1080px;
}

.principal-message-card {
  position: relative;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  padding: 28px 44px;
  overflow: hidden;
  border: 1px solid #DDE9E3;
  border-radius: 29px;
  background: #F3F8F6;
}

/* Principal Photo */

.principal-message-image {
  width: 270px;
  height: 400px;
  overflow: hidden;
  border: 3px solid var(--white-color);
  border-radius: 18px;
  box-shadow: 0 9px 20px rgba(21, 49, 39, 0.12);
}

.principal-message-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.principal-message-image:hover img {
  transform: scale(1.04);
}

/* Principal Content */

.principal-message-content {
  position: relative;
  min-width: 0;
  padding: 10px 0;
}

.principal-message-eyebrow,
.principal-modal-eyebrow {
  display: block;
  margin-bottom: 13px;
  color: var(--primary-color);
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: var(--font-extrabold);
  letter-spacing: 0.6px;
}

.principal-message-content h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: clamp(32px, 2.5vw, 34px);
  font-weight: var(--font-extrabold);
  line-height: 1.25;
}

.principal-message-highlight {
  margin: 0 0 13px;
  color: #285F54;
  font-family: var(--body-font);
  font-size: 18px;
  font-weight: var(--font-bold);
  line-height: 1.75;
}

.principal-message-description {
  margin-bottom: 17px;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 1.8;
}

/* Decorative Quote */

.principal-quote-icon {
  position: absolute;
  top: -36px;
  right: -10px;
  color: rgba(23, 107, 91, 0.08);
  font-size: 115px;
  line-height: 1;
  pointer-events: none;
}

/* Author and Button */

.principal-message-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #DDE8E2;
}

.principal-message-author {
  min-width: 0;
}

.principal-message-author h3 {
  margin-bottom: 3px;
  color: var(--heading-color);
  font-family: var(--body-font);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.principal-message-author span {
  display: block;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 1.6;
}

.principal-message-read-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 18px;
  border: 0;
  border-radius: 13px;
  color: var(--white-color);
  background: var(--primary-color);
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: var(--font-extrabold);
  cursor: pointer;
  transition: var(--transition-normal);
}

.principal-message-read-btn:hover {
  color: var(--white-color);
  background: #10584A;
  transform: translateY(-2px);
}

.principal-message-read-btn:focus-visible,
.principal-modal-close:focus-visible {
  outline: 3px solid var(--sunny-yellow);
  outline-offset: 4px;
}

/* =========================================================
   PRINCIPAL FULL MESSAGE POPUP
========================================================= */

.principal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow-y: auto;
  background: rgba(14, 30, 24, 0.43);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

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

.principal-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: min(85vh, 800px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #DFEAE4;
  border-radius: 24px;
  background: var(--warm-background);
  box-shadow: 0 25px 80px rgba(10, 31, 23, 0.24);
  transform: translateY(22px) scale(0.98);
  transition: transform 0.25s ease;
}

.principal-modal-overlay.is-open .principal-modal-dialog {
  transform: translateY(0) scale(1);
}

/* Popup Header */

.principal-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 25px 28px 20px;
  border-bottom: 1px solid #E5EBE6;
  background: var(--warm-background);
}

.principal-modal-eyebrow {
  margin-bottom: 7px;
  font-size: 12px;
}

.principal-modal-header h2 {
  margin: 0;
  padding-right: 8px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: clamp(22px, 3vw, 29px);
  font-weight: 700;
  line-height: 1.35;
}

.principal-modal-close {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border: 1px solid #E1E9E3;
  border-radius: 50%;
  color: var(--heading-color);
  background: #EDF4F0;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.principal-modal-close:hover {
  color: var(--white-color);
  background: var(--primary-color);
  transform: rotate(90deg);
}

/* Popup Body */

.principal-modal-body {
  padding: 25px 30px 30px;
}

.principal-modal-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
  padding: 15px;
  border-radius: 16px;
  background: #EDF5F1;
}

.principal-modal-photo {
  width: 65px;
  height: 75px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
}

.principal-modal-author h3 {
  margin-bottom: 5px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.principal-modal-author p {
  margin-bottom: 0;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 1.6;
}

.principal-modal-message p {
  margin-bottom: 16px;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.9;
}

.principal-modal-message .principal-modal-closing {
  margin-top: 22px;
  margin-bottom: 0;
  padding-top: 17px;
  border-top: 1px solid #E0E9E3;
  color: var(--heading-color);
}

/* =====================================
   SAHS CAMPUS FACILITIES SECTION
===================================== */

.sahs-facilities-section {
  --sahs-fac-green: #2c6b5c;
  --sahs-fac-dark: #152f29;
  --sahs-fac-muted: #64746d;
  --sahs-fac-border: #e4ebe6;
  padding: 64px 0 75px;
  background: #F3F8F7;
  color: var(--sahs-fac-dark);
  font-family: "Nunito Sans", sans-serif;
}

.sahs-facilities-section *,
.sahs-facilities-section *::before,
.sahs-facilities-section *::after {
  box-sizing: border-box;
}

.sahs-facilities-container {
  width: 100%;
  max-width: 1160px;
}

/* Section heading */

.sahs-facilities-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.sahs-facilities-heading-content {
  max-width: 680px;
}

.sahs-facilities-eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--sahs-fac-green);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sahs-facilities-heading h2 {
  margin: 0 0 9px;
  color: var(--sahs-fac-dark);
  font-family: "Fredoka", sans-serif;
  font-size: 32;
  font-weight: 600;
  line-height: 1.2;
}

.sahs-facilities-heading-content p {
  max-width: 590px;
  margin: 0;
  color: var(--sahs-fac-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* View all button */

.sahs-view-facilities-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #edf5f1;
  color: var(--sahs-fac-green);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}

.sahs-view-facilities-btn i {
  font-size: 17px;
  transition: transform .25s ease;
}

.sahs-view-facilities-btn:hover {
  transform: translateY(-2px);
  background: var(--sahs-fac-green);
  color: #fff;
}

.sahs-view-facilities-btn:hover i {
  transform: translateX(4px);
}

.sahs-view-facilities-btn:focus-visible {
  outline: 3px solid #ffda62;
  outline-offset: 3px;
}

/* Grid spacing */

.sahs-facilities-grid {
  --bs-gutter-x: 22px;
  --bs-gutter-y: 22px;
}

/* Facility cards */

.sahs-facility-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--sahs-fac-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(24, 53, 43, .025);
  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}

.sahs-facility-card:hover {
  transform: translateY(-5px);
  border-color: #cbdcd2;
  box-shadow: 0 14px 32px rgba(29, 67, 53, .09);
}

/* Images */

.sahs-facility-image {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #e9f0eb;
}

.sahs-facility-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .55s ease;
}

.sahs-facility-card:hover .sahs-facility-image img {
  transform: scale(1.055);
}

/* Accent strip under each image */

.sahs-facility-image::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  content: "";
  background: var(--sahs-fac-accent, #ffda62);
}

/* Accent colours */

.sahs-accent-yellow {
  --sahs-fac-accent: #ffda62;
}

.sahs-accent-mint {
  --sahs-fac-accent: #bfe8d2;
}

.sahs-accent-blue {
  --sahs-fac-accent: #72c8f2;
}

.sahs-accent-purple {
  --sahs-fac-accent: #b7a7f8;
}

.sahs-accent-coral {
  --sahs-fac-accent: #ff8066;
}

/* Card content */

.sahs-facility-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px 20px 22px;
}

.sahs-facility-category {
  display: block;
  margin-bottom: 7px;
  color: var(--sahs-fac-green);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.sahs-facility-body h3 {
  margin: 0 0 9px;
  color: var(--sahs-fac-dark);
  font-family: "Fredoka", sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.sahs-facility-body p {
  margin: 0;
  color: var(--sahs-fac-muted);
  font-size: 13px;
  line-height: 1.75;
}

/* Tablet */

@media (max-width: 991.98px) {
  .sahs-facilities-section {
    padding: 50px 0 60px;
  }

  .sahs-facilities-heading {
    align-items: flex-start;
  }

  .sahs-facilities-heading h2 {
    font-size: 33px;
  }

  .sahs-facilities-grid {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
  }

  .sahs-facility-image {
    height: 180px;
  }

  .sahs-facility-body {
    padding: 18px;
  }
}

/* Mobile */

@media (max-width: 575.98px) {
  .sahs-facilities-section {
    padding: 38px 0 45px;
  }

  .sahs-facilities-container {
    padding-right: 18px;
    padding-left: 18px;
  }

  .sahs-facilities-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 25px;
  }

  .sahs-facilities-heading h2 {
    font-size: 30px;
  }

  .sahs-facilities-heading-content p {
    font-size: 14px;
  }

  .sahs-view-facilities-btn {
    min-height: 42px;
    padding: 10px 15px;
  }

  .sahs-facilities-grid {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 18px;
  }

  .sahs-facility-image {
    height: 215px;
  }

  .sahs-facility-body {
    padding: 19px;
  }

  .sahs-facility-body h3 {
    font-size: 20px;
  }

  .sahs-facility-body p {
    font-size: 13px;
  }
}

/* Small phones */

@media (max-width: 380px) {
  .sahs-facility-image {
    height: 175px;
  }

  .sahs-facility-body {
    padding: 15px;
  }

  .sahs-facility-body h3 {
    font-size: 19px;
  }
}

/* =====================================
   SAHS CAMPUS FACILITIES SECTION
===================================== */

.sahs-facilities-section {
  --sahs-fac-green: #2c6b5c;
  --sahs-fac-dark: #152f29;
  --sahs-fac-muted: #64746d;
  --sahs-fac-border: #e4ebe6;

  padding: 64px 0 75px;
  background: #F3F9F7;
  color: var(--sahs-fac-dark);
  font-family: "Nunito Sans", sans-serif;
  border-bottom: 1px solid var(--border-color);
}

.sahs-facilities-section *,
.sahs-facilities-section *::before,
.sahs-facilities-section *::after {
  box-sizing: border-box;
}

.sahs-facilities-container {
  width: 100%;
  max-width: 1160px;
}

/* Section heading */

.sahs-facilities-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.sahs-facilities-heading-content {
  max-width: 680px;
}

.sahs-facilities-eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--sahs-fac-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sahs-facilities-heading h2 {
  margin: 0 0 9px;
  color: var(--sahs-fac-dark);
  font-family: "Fredoka", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.sahs-facilities-heading-content p {
  max-width: 590px;
  margin: 0;
  color: var(--sahs-fac-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* View all button */

.sahs-view-facilities-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 16px 19px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #edf5f1;
  color: var(--sahs-fac-green);
  font-size: 14px;
  font-weight: var(--font-extrabold);
  text-decoration: none;
  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}

.sahs-view-facilities-btn i {
  font-size: 17px;
  transition: transform .25s ease;
}

.sahs-view-facilities-btn:hover {
  transform: translateY(-2px);
  background: var(--sahs-fac-green);
  color: #fff;
}

.sahs-view-facilities-btn:hover i {
  transform: translateX(4px);
}

.sahs-view-facilities-btn:focus-visible {
  outline: 3px solid #ffda62;
  outline-offset: 3px;
}

/* Grid spacing */

.sahs-facilities-grid {
  --bs-gutter-x: 22px;
  --bs-gutter-y: 22px;
}

/* Facility cards */

.sahs-facility-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--sahs-fac-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(24, 53, 43, .025);
  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}

.sahs-facility-card:hover {
  transform: translateY(-5px);
  border-color: #cbdcd2;
  box-shadow: 0 14px 32px rgba(29, 67, 53, .09);
}

/* Images */

.sahs-facility-image {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #e9f0eb;
}

.sahs-facility-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .55s ease;
}

.sahs-facility-card:hover .sahs-facility-image img {
  transform: scale(1.055);
}

/* Accent strip under each image */

.sahs-facility-image::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  content: "";
  background: var(--sahs-fac-accent, #ffda62);
}

/* Accent colours */

.sahs-accent-yellow {
  --sahs-fac-accent: #ffda62;
}

.sahs-accent-mint {
  --sahs-fac-accent: #bfe8d2;
}

.sahs-accent-blue {
  --sahs-fac-accent: #72c8f2;
}

.sahs-accent-purple {
  --sahs-fac-accent: #b7a7f8;
}

.sahs-accent-coral {
  --sahs-fac-accent: #ff8066;
}

/* Card content */

.sahs-facility-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px 20px 22px;
}

.sahs-facility-category {
  display: block;
  margin-bottom: 7px;
  color: var(--sahs-fac-green);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.sahs-facility-body h3 {
  margin: 0 0 9px;
  color: var(--sahs-fac-dark);
  font-family: "Fredoka", sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.sahs-facility-body p {
  margin: 0;
  color: var(--sahs-fac-muted);
  font-size: 13px;
  line-height: 1.75;
}

/* Tablet */

@media (max-width: 991.98px) {
  .sahs-facilities-section {
    padding: 50px 0 60px;
  }

  .sahs-facilities-heading {
    align-items: flex-start;
  }

  .sahs-facilities-heading h2 {
    font-size: 33px;
  }

  .sahs-facilities-grid {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
  }

  .sahs-facility-image {
    height: 180px;
  }

  .sahs-facility-body {
    padding: 18px;
  }
}

/* Mobile */

@media (max-width: 575.98px) {
  .sahs-facilities-section {
    padding: 38px 0 45px;
  }

  .sahs-facilities-container {
    padding-right: 18px;
    padding-left: 18px;
  }

  .sahs-facilities-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 25px;
  }

  .sahs-facilities-heading h2 {
    font-size: 30px;
  }

  .sahs-facilities-heading-content p {
    font-size: 14px;
  }

  .sahs-view-facilities-btn {
    min-height: 42px;
    padding: 10px 15px;
  }

  .sahs-facilities-grid {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 18px;
  }

  .sahs-facility-image {
    height: 215px;
  }

  .sahs-facility-body {
    padding: 19px;
  }

  .sahs-facility-body h3 {
    font-size: 20px;
  }

  .sahs-facility-body p {
    font-size: 13px;
  }
}

/* Small phones */

@media (max-width: 380px) {
  .sahs-facility-image {
    height: 175px;
  }

  .sahs-facility-body {
    padding: 15px;
  }

  .sahs-facility-body h3 {
    font-size: 19px;
  }
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 991.98px) {

  .principal-message-card {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    padding: 25px;
  }

  .principal-message-image {
    height: 300px;
  }

  .principal-message-footer {
    align-items: flex-start;
    flex-direction: column;
  }

}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 767.98px) {

  .principal-message-section {
    padding: 35px 0 45px;
  }

  .principal-message-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 18px;
    border-radius: 22px;
  }

  .principal-message-image {
    width: min(100%, 260px);
    height: 290px;
    margin: 0 auto;
  }

  .principal-message-content {
    padding: 5px 0;
  }

  .principal-message-content h2 {
    font-size: 27px;
  }

  .principal-message-highlight {
    font-size: 14px;
  }

  .principal-message-description {
    font-size: 12px;
  }

  .principal-message-footer {
    align-items: stretch;
    gap: 15px;
  }

  .principal-message-read-btn {
    align-self: flex-start;
  }

  .principal-quote-icon {
    top: -15px;
    right: 0;
    font-size: 85px;
  }

  /* Popup on mobile */

  .principal-modal-overlay {
    align-items: center;
    padding: 12px;
  }

  .principal-modal-dialog {
    max-height: 90dvh;
    border-radius: 19px;
  }

  .principal-modal-header {
    padding: 18px 17px 15px;
    gap: 10px;
  }

  .principal-modal-header h2 {
    font-size: 23px;
  }

  .principal-modal-body {
    padding: 18px;
  }

  .principal-modal-author {
    gap: 11px;
    padding: 12px;
  }

  .principal-modal-author h3 {
    font-size: 14px;
  }

  .principal-modal-message p {
    font-size: 13px;
    line-height: 1.8;
  }

}

/* =====================================================
   STUDENT RESOURCES PORTAL
===================================================== */

.student-resources-section {
  padding: 55px 0 45px;
  background: #F3F8F6;
}

.student-resources-container {
  max-width: 1030px;
}

.student-resources-heading {
  margin-bottom: 25px;
}

.student-resources-eyebrow,
.student-achievements-heading>span {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-color);
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.student-resources-heading h2,
.student-achievements-heading h2 {
  margin-bottom: 7px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.3;
}

.student-resources-heading p {
  margin-bottom: 0;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 12px;
  line-height: 1.7;
}

/* Search and filter panel */

.student-resources-filter-panel {
  margin-bottom: 23px;
  padding: 17px;
  border: 1px solid #E1EAE5;
  border-radius: 17px;
  background: #FFFFFF;
  box-shadow: 0 2px 5px rgba(20, 60, 45, 0.035);
}

.student-resources-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 135px;
  gap: 10px;
  margin-bottom: 17px;
}

.student-resources-search-box,
.student-resources-year-box {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 42px;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #E1E5DF;
  border-radius: 11px;
  background: #FFFDF8;
}

.student-resources-search-box>i,
.student-resources-year-box>i {
  flex-shrink: 0;
  color: var(--primary-color);
  font-size: 14px;
}

.student-resources-search-box input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--heading-color);
  background: transparent;
  font-family: var(--body-font);
  font-size: 12px;
}

.student-resources-search-box input::placeholder {
  color: #929B98;
}

.student-resources-search-box:focus-within,
.student-resources-year-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(23, 107, 91, 0.08);
}

.student-resources-clear-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px;
  border: 0;
  color: #668079;
  background: transparent;
  cursor: pointer;
}

.student-resources-clear-search[hidden] {
  display: none;
}

.student-resources-year-box {
  gap: 7px;
}

.student-resources-year-box label {
  flex-shrink: 0;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 10px;
}

.student-resources-year-box select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--heading-color);
  background: transparent;
  font-family: var(--body-font);
  font-size: 11px;
  cursor: pointer;
}

/* Filters */

.student-resources-filter-group {
  min-width: 0;
}

.student-resources-filter-label {
  display: block;
  margin-bottom: 7px;
  color: #65716D;
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 600;
}

.student-resources-filter-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.student-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 5px 10px;
  border: 1px solid #E4E7E0;
  border-radius: 9px;
  color: #354740;
  background: #FFFDF8;
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.student-filter-chip:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.student-filter-chip.active {
  border-color: var(--primary-color);
  color: #FFFFFF;
  background: var(--primary-color);
}

.subject-chip.active {
  border-color: var(--sunny-yellow);
  color: #26342E;
  background: var(--sunny-yellow);
}

.student-resources-filter-divider {
  height: 1px;
  margin: 15px 0 12px;
  background: #E8ECE8;
}

.student-resources-bottom-filters {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 18px;
}

/* Results bar */

.student-resources-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #667670;
  font-family: var(--body-font);
  font-size: 11px;
}

.student-resources-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  color: var(--primary-color);
  background: transparent;
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.student-resources-reset-btn:hover {
  background: #E4F0EA;
}

/* Material cards */

.student-resources-materials-grid {
  --bs-gutter-x: 14px;
  --bs-gutter-y: 15px;
}

.student-material-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid #E3EAE5;
  border-radius: 17px;
  background: #FFFFFF;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  animation: studentMaterialFadeIn 0.3s ease both;
}

.student-material-card:hover {
  transform: translateY(-4px);
  border-color: #CADDD3;
  box-shadow: 0 9px 22px rgba(22, 65, 47, 0.07);
}

.student-material-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.student-material-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--primary-color);
  background: #EAF4F0;
  font-size: 19px;
}

.student-material-file-meta {
  padding-top: 3px;
  color: #697A73;
  font-family: var(--body-font);
  font-size: 10px;
  text-align: right;
  overflow-wrap: anywhere;
}

.student-material-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
  color: #50776B;
  font-family: var(--body-font);
  font-size: 9px;
  line-height: 1.5;
}

.student-material-tags span:not(:last-child)::after {
  margin-left: 4px;
  color: #A7B5AE;
  content: "·";
}

.student-material-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 7px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  -webkit-box-orient: vertical;
}

.student-material-description {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 12px;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 11px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
}

.student-material-card-bottom {
  margin-top: auto;
}

.student-material-upload-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 10px;
  margin-bottom: 9px;
  border-top: 1px solid #E8EDE9;
  color: #788780;
  font-family: var(--body-font);
  font-size: 9px;
}

.student-material-upload-info span {
  min-width: 0;
}

.student-material-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.student-material-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 8px 5px;
  border: 0;
  border-radius: 9px;
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.student-material-view {
  color: var(--primary-color);
  background: #EAF4F1;
}

.student-material-view:hover {
  color: #FFFFFF;
  background: var(--primary-color);
}

.student-material-download {
  color: #27362B;
  background: var(--sunny-yellow);
}

.student-material-download:hover {
  color: #27362B;
  background: #F4C943;
}

.student-material-action:focus-visible,
.student-filter-chip:focus-visible {
  outline: 3px solid var(--sky-blue);
  outline-offset: 3px;
}

/* No results */

.student-resources-empty {
  padding: 45px 15px;
  border: 1px dashed #C9D9D0;
  border-radius: 17px;
  background: #FFFFFF;
  text-align: center;
}

.student-resources-empty[hidden] {
  display: none;
}

.student-resources-empty>i {
  color: var(--primary-color);
  font-size: 34px;
}

.student-resources-empty h3 {
  margin: 12px 0 6px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 21px;
}

.student-resources-empty p {
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 12px;
}

.student-resources-empty button {
  padding: 10px 15px;
  border: 0;
  border-radius: 9px;
  color: #FFFFFF;
  background: var(--primary-color);
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Portal button */

@keyframes studentMaterialFadeIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

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

/* =====================================================
   STUDENT ACHIEVEMENTS
===================================================== */

.student-achievements-section {
  padding: 45px 0 55px;
  background: var(--warm-background);
  border-bottom: 1px solid var(--border-color);
}

.student-achievements-container {
  max-width: 990px;
}

.student-achievements-heading {
  margin-bottom: 23px;
}

.student-achievements-heading span {
  font-size: 12px;
}

.student-achievements-heading h2 {
  font-size: 32px;
}

.student-achievements-grid {
  --bs-gutter-x: 25px;
  --bs-gutter-y: 25px;
}

.student-achievement-card {
  height: 100%;
  padding: 22px;
  border: 1px solid #E5EAE5;
  border-radius: 18px;
  background: #FFFFFF;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.student-achievement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 22px rgba(22, 65, 47, 0.06);
}

.student-achievement-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.student-achievement-top>span:last-child {
  color: #66756E;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: var(--font-semibold);
  text-align: right;
}

.student-achievement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  color: #20352B;
  font-size: 20px;
}

.achievement-yellow {
  background: var(--sunny-yellow);
}

.achievement-blue {
  background: var(--sky-blue);
}

.achievement-coral {
  background: var(--coral-color);
}

.achievement-purple {
  background: var(--soft-lavender);
}

.achievement-mint {
  background: var(--fresh-mint);
}

.achievement-green {
  background: var(--primary-color);
  color: #FFFFFF;
}

.student-achievement-card h3 {
  margin-bottom: 7px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: var(--font-bold);
  line-height: 1.5;
}

.student-achievement-card p {
  margin-bottom: 0;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.75;
}

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

@media (max-width: 767.98px) {

  .student-resources-section {
    padding: 35px 0;
  }

  .student-resources-filter-panel {
    padding: 13px;
  }

  .student-resources-search-row {
    grid-template-columns: 1fr;
  }

  .student-resources-year-box {
    width: 100%;
  }

  .student-resources-bottom-filters {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .student-resources-materials-grid {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 12px;
  }

  .student-material-card {
    padding: 11px;
    border-radius: 14px;
  }

  .student-material-card h3 {
    font-size: 13px;
  }

  .student-material-description {
    font-size: 10px;
  }

  .student-material-actions {
    gap: 5px;
  }

  .student-material-action {
    font-size: 9px;
  }

  .student-achievements-section {
    padding: 35px 0;
  }
}

@media (max-width: 420px) {

  .student-resources-materials-grid {
    --bs-gutter-x: 9px;
    --bs-gutter-y: 10px;
  }

  .student-material-card {
    padding: 9px;
  }

  .student-material-file-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .student-material-file-meta {
    font-size: 9px;
  }

  .student-material-card h3 {
    font-size: 12px;
  }

  .student-material-upload-info {
    align-items: flex-start;
    flex-direction: column;
    font-size: 9px;
  }

  .student-material-action {
    flex-direction: column;
    gap: 3px;
    padding: 7px 3px;
  }
}

/* =====================================================
   SAHS LATEST NEWS SECTION
===================================================== */

.sahs-news-section {
  padding: 55px 0 42px;
  background: #F3F8F7;
}

.sahs-news-container {
  max-width: 1060px;
}

.sahs-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.sahs-news-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--primary-color, #176B5B);
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.sahs-news-heading h2 {
  margin: 0;
  color: var(--heading-color, #172C27);
  font-family: var(--heading-font);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
}

/* View All Updates Button */

.sahs-news-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 16px 16px;
  border: 1px solid #DDE8E3;
  border-radius: 14px;
  color: var(--primary-color, #176B5B);
  background: #FFFFFF;
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.25s ease,
    transform 0.25s ease;
}

.sahs-news-toggle:hover {
  background: #E8F3EE;
  transform: translateY(-2px);
}

.sahs-news-toggle i {
  transition: transform 0.3s ease;
}

.sahs-news-toggle.is-expanded i {
  transform: rotate(180deg);
}

.sahs-news-toggle:focus-visible,
.sahs-news-read-link:focus-visible {
  outline: 3px solid var(--sunny-yellow, #FFD85C);
  outline-offset: 3px;
}

/* News Cards Grid */

.sahs-news-grid {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 16px;
}

.sahs-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #E3EAE6;
  border-radius: 22px;
  background: #FFFFFF;
  transition: transform 0.3s ease,
    box-shadow 0.3s ease;
}

.sahs-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(24, 59, 47, 0.09);
}

/* Card Image */

.sahs-news-image-wrap {
  height: 220px;
  overflow: hidden;
  background: #E8EFEB;
}

.sahs-news-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.sahs-news-card:hover .sahs-news-image {
  transform: scale(1.05);
}

/* Card Content */

.sahs-news-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 19px 20px;
}

.sahs-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: #536D65;
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 12px;
  line-height: 1.6;
}

.sahs-news-meta span:first-child {
  color: var(--primary-color, #176B5B);
  font-weight: 800;
}

.sahs-news-meta-dot {
  color: #8A9A92;
}

.sahs-news-content h3 {
  margin: 0 0 9px;
  color: var(--heading-color, #172C27);
  font-family: var(--heading-font, "Fredoka", sans-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.sahs-news-content p {
  margin: 0 0 18px;
  color: var(--text-color, #5D6E68);
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 14px;
  line-height: 1.8;
}

/* Read More Link */

.sahs-news-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--primary-color, #176B5B);
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: gap 0.25s ease;
}

.sahs-news-read-link:hover {
  gap: 13px;
  color: #105448;
}

/* Additional Cards */

.sahs-news-more {
  margin-top: 16px;
}

.sahs-news-more[hidden] {
  display: none !important;
}

.sahs-news-more:not([hidden]) {
  animation: sahsNewsReveal 0.4s ease both;
}

@keyframes sahsNewsReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

/* =====================================================
   SAHS ADMISSION CTA BANNER
===================================================== */

.sahs-admission-cta-section {
  padding: 78px 0;
  background: var(--warm-background, #FFFDF8);
}

.sahs-admission-cta-container {
  max-width: 1060px;
}

.sahs-admission-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 224px;
  padding: 42px 54px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 32px;
  color: #FFFFFF;
  background: #286C5D;
}

/* Decorative Background Circles */

.sahs-admission-cta-shape {
  position: absolute;
  z-index: -1;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}

.sahs-cta-shape-one {
  top: -65px;
  right: -15px;
  width: 165px;
  height: 215px;
  background: rgba(255, 216, 92, 0.15);
  transform: rotate(25deg);
}

.sahs-cta-shape-two {
  right: 45%;
  bottom: -115px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.10);
}

/* CTA Content */

.sahs-admission-cta-content {
  position: relative;
  z-index: 1;
  max-width: 490px;
}

.sahs-admission-cta-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--sunny-yellow, #FFD85C);
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.sahs-admission-cta-content h2 {
  margin: 0 0 10px;
  color: #FFFFFF;
  font-family: var(--heading-font);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.sahs-admission-cta-content p {
  max-width: 480px;
  margin: 0;
  color: #F0F8F4;
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 14px;
  font-weight: var(--font-medium);
  line-height: 1.85;
}

/* CTA Buttons */

.sahs-admission-cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
}

.sahs-admission-cta-primary,
.sahs-admission-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 16px 18px;
  border-radius: 14px;
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease,
    background 0.25s ease;
}

.sahs-admission-cta-primary {
  color: #172C27;
  background: var(--sunny-yellow, #FFD85C);
}

.sahs-admission-cta-primary:hover {
  color: #172C27;
  background: #FFE58B;
  transform: translateY(-3px);
}

.sahs-admission-cta-secondary {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.14);
}

.sahs-admission-cta-secondary:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-3px);
}

.sahs-admission-cta-primary:focus-visible,
.sahs-admission-cta-secondary:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 4px;
}

/* =====================================================
   RESPONSIVE TABLET
===================================================== */

@media (max-width: 991.98px) {

  .sahs-news-section {
    padding: 45px 0 35px;
  }

  .sahs-news-image-wrap {
    height: 175px;
  }

  .sahs-admission-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding: 38px;
  }

  .sahs-admission-cta-content {
    max-width: 620px;
  }

  .sahs-admission-cta-actions {
    flex-wrap: wrap;
  }
}

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

@media (max-width: 767.98px) {

  .sahs-news-section {
    padding: 35px 0 30px;
  }

  .sahs-news-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
  }

  .sahs-news-heading h2 {
    font-size: 28px;
  }

  .sahs-news-toggle {
    padding: 10px 14px;
  }

  .sahs-news-grid {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 14px;
  }

  .sahs-news-image-wrap {
    height: 200px;
  }

  .sahs-news-content {
    padding: 17px;
  }

  .sahs-news-content h3 {
    font-size: 17px;
  }

  .sahs-news-content p {
    font-size: 12px;
  }

  .sahs-admission-cta-section {
    padding: 42px 0;
  }

  .sahs-admission-cta {
    min-height: auto;
    padding: 30px 24px;
    border-radius: 25px;
  }

  .sahs-admission-cta-content h2 {
    font-size: 29px;
  }

  .sahs-admission-cta-content p {
    font-size: 12px;
  }

  .sahs-admission-cta-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .sahs-admission-cta-primary,
  .sahs-admission-cta-secondary {
    width: 100%;
  }
}

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

@media (max-width: 420px) {

  .sahs-news-heading h2 {
    font-size: 25px;
  }

  .sahs-news-image-wrap {
    height: 180px;
  }

  .sahs-admission-cta {
    padding: 25px 19px;
  }

  .sahs-admission-cta-content h2 {
    font-size: 26px;
  }

  .sahs-admission-cta-eyebrow {
    font-size: 10px;
  }
}

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

.sahs-footer {
  --sahs-footer-bg: #142B24;
  --sahs-footer-yellow: #FFD85C;
  --sahs-footer-text: #D7E5DE;
  --sahs-footer-muted: #A7C4B7;
  padding: 48px 0 0;
  color: var(--sahs-footer-text);
  background: var(--sahs-footer-bg);
}

.sahs-footer-container {
  max-width: 1060px;
}

.sahs-footer-main {
  --bs-gutter-x: 30px;
  --bs-gutter-y: 28px;
  padding-bottom: 48px;
}

/* School Brand */

.sahs-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  /* color: #FFFFFF; */
  /* text-decoration: none; */
}

.sahs-footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}

.sahs-footer-logo img {
  border-radius: 6px;
}

.sahs-footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sahs-footer-brand-text strong {
  color: #FFFFFF;
  font-family: var(--heading-font, "Fredoka", sans-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.sahs-footer-brand-text small {
  color: var(--sahs-footer-muted);
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 12px;
}

.sahs-footer-description {
  max-width: 380px;
  margin: 18px 0 23px;
  color: var(--sahs-footer-text);
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 14px;
  line-height: 1.85;
}

/* Admission Button */

.sahs-footer-admission-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #172C27;
  background: var(--sahs-footer-yellow);
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s ease,
    background 0.25s ease;
}

.sahs-footer-admission-btn:hover {
  color: #172C27;
  background: #FFE58A;
  transform: translateY(-2px);
}

/* Footer Columns */

.sahs-footer-column h3 {
  margin: 3px 0 16px;
  color: var(--sahs-footer-yellow);
  font-family: var(--heading-font, "Fredoka", sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.sahs-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sahs-footer-links a,
.sahs-footer-contact-item a {
  color: var(--sahs-footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sahs-footer-links a {
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 14px;
  line-height: 1.55;
}

.sahs-footer-links a:hover,
.sahs-footer-contact-item a:hover {
  color: var(--sahs-footer-yellow);
}

/* Contact Details */

.sahs-footer-contact {
  min-width: 0;
}

.sahs-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 12px;
}

.sahs-footer-contact-item>i {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--sahs-footer-muted);
  font-size: 16px;
}

.sahs-footer-contact-item:first-of-type>i,
.sahs-footer-contact-item:nth-of-type(4)>i {
  color: #E9A38B;
}

.sahs-footer-contact-item p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--sahs-footer-text);
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 14px;
  line-height: 1.65;
}

/* Footer Bottom */

.sahs-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 65px;
  padding: 17px 0;
  border-top: 1px solid rgba(210, 235, 221, 0.15);
}

.sahs-footer-copyright {
  margin: 0;
  color: var(--sahs-footer-muted);
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 12px;
  line-height: 1.7;
}

.sahs-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 23px;
}

.sahs-footer-bottom-links p {
  color: var(--sahs-footer-muted);
  font-family: var(--body-font, "Nunito Sans", sans-serif);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sahs-footer-bottom-links span {
  color: var(--sahs-footer-yellow);

}


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

@media (max-width: 991.98px) {

  .sahs-footer {
    padding-top: 40px;
  }

  .sahs-footer-main {
    --bs-gutter-x: 24px;
    padding-bottom: 35px;
  }

  .sahs-footer-bottom-links {
    gap: 15px;
  }
}

@media (max-width: 767.98px) {

  .sahs-footer {
    padding-top: 35px;
  }

  .sahs-footer-main {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 30px;
    padding-bottom: 28px;
  }

  .sahs-footer-brand-text strong {
    font-size: 15px;
  }

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

  .sahs-footer-links {
    gap: 9px;
  }

  .sahs-footer-links a {
    font-size: 11px;
  }

  .sahs-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 18px 0;
  }

  .sahs-footer-bottom-links {
    gap: 17px;
  }
}

::selection {
  background: var(--sunny-yellow);
  /* Selection Background */
  color: #000;
}

/* Firefox Support */
::-moz-selection {
  background: var(--sunny-yellow);
  color: #000;
}

/* =========================================================
   FOOTER SOCIAL ICONS 
========================================================= */

.sahs-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.sahs-footer-social-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--sahs-footer-text, #D7E5DE);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.sahs-footer-social-link:hover,
.sahs-footer-social-link:focus-visible {
  border-color: var(--sahs-footer-yellow, #FFD85C);
  background: var(--sahs-footer-yellow, #FFD85C);
  color: #172C27;
  transform: translateY(-3px);
}

.sahs-footer-social-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
