/* ==================== CURRICULUM PAGE STYLES ==================== */

:root {
  --sahs-green: #2d6b5d;
  --sahs-green-dark: #174d43;
  --sahs-yellow: #ffdc63;
  --sahs-coral: #f68169;
  --sahs-sky: #82cbed;
  --sahs-mint: #c4e8d4;
  --sahs-lavender: #b9a5f4;
  --sahs-cream: #fffdf7;
  --sahs-text: #172d29;
  --sahs-muted: #657570;
  --sahs-border: #e6ebe7;
  --sahs-heading-font: "Fredoka", sans-serif;
  --sahs-body-font: "Nunito Sans", sans-serif;
}

.sahs-curriculum-page {
  background: var(--sahs-cream);
  color: var(--sahs-text);
  font-family: var(--sahs-body-font);
  overflow: hidden;
}

.sahs-curriculum-page *,
.sahs-curriculum-page *::before,
.sahs-curriculum-page *::after {
  box-sizing: border-box;
}

.sahs-curriculum-page h1,
.sahs-curriculum-page h2,
.sahs-curriculum-page h3 {
  font-family: var(--sahs-heading-font);
  color: var(--sahs-text);
  line-height: 1.25;
}

.sahs-curriculum-container {
  max-width: 1120px;
}

/* Hero */

.sahs-curriculum-hero {
  position: relative;
  isolation: isolate;
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: 38px 0 40px;
  overflow: hidden;
  background: var(--sahs-green);
  color: #fff;
}

.sahs-curriculum-hero .container {
  position: relative;
  z-index: 2;
}

.sahs-curriculum-hero h1 {
  max-width: 750px;
  margin: 13px 0 8px;
  color: #fff;
  font-size: clamp(29px, 4vw, 43px);
  font-weight: 600;
  letter-spacing: -0.7px;
}

.sahs-curriculum-hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.75;
}

.sahs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.sahs-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.sahs-breadcrumb a:hover {
  color: var(--sahs-yellow);
}

.sahs-breadcrumb-active {
  color: var(--sahs-yellow);
}

.sahs-title-underline {
  width: 78px;
  height: 4px;
  border-radius: 50%;
  background: var(--sahs-yellow);
  transform: rotate(-2deg);
}

.sahs-hero-decoration {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.sahs-hero-circle-left {
  width: 190px;
  height: 190px;
  left: -20px;
  bottom: -110px;
  background: rgba(255, 255, 255, 0.07);
}

.sahs-hero-circle-right {
  width: 210px;
  height: 210px;
  right: -75px;
  top: -95px;
  background: rgba(255, 220, 99, 0.12);
}

.sahs-hero-star {
  position: absolute;
  z-index: 1;
  color: var(--sahs-yellow);
  pointer-events: none;
}

.sahs-star-one {
  top: 23px;
  left: 8%;
}

.sahs-star-two {
  bottom: 24px;
  right: 15%;
  color: var(--sahs-coral);
  font-size: 20px;
}

/* Tabs navigation */

.sahs-curriculum-tabbar {
  position: relative;
  z-index: 3;
  background: #f2f8f5;
  border-bottom: 1px solid #e7ede9;
}

.sahs-curriculum-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 0;
}

.sahs-curriculum-tab {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 8px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: #30453f;
  font: 700 13px var(--sahs-body-font);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.sahs-curriculum-tab:hover {
  border-color: var(--sahs-green);
  transform: translateY(-1px);
}

.sahs-curriculum-tab.active {
  background: var(--sahs-green);
  color: #fff;
  border-color: var(--sahs-green-dark);
  box-shadow: 0 0 0 1px var(--sahs-green-dark);
}

.sahs-curriculum-tab:focus-visible,
.sahs-syllabus-button:focus-visible {
  outline: 3px solid var(--sahs-yellow);
  outline-offset: 3px;
}

/* Tab panels */

.sahs-curriculum-content {
  padding-top: 48px;
  padding-bottom: 64px;
}

.sahs-curriculum-panel {
  width: 100%;
  animation: sahs-curriculum-fade-in 0.3s ease both;
}

.sahs-curriculum-panel[hidden] {
  display: none !important;
}

@keyframes sahs-curriculum-fade-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* School wings */

.sahs-school-wings {
  margin-bottom: 34px;
}

.sahs-wing-card {
  height: 100%;
  padding: 22px;
  border: 1px solid transparent;
  border-radius: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sahs-wing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(23, 45, 41, 0.07);
}

.sahs-wing-primary {
  background: #fff9df;
  border-color: #f3e8a9;
}

.sahs-wing-middle {
  background: #f0f8f3;
  border-color: #d4eadc;
}

.sahs-wing-secondary {
  background: #eef8fc;
  border-color: #cbe6f1;
}

.sahs-senior-wing-secondary {
  background: #b2abf53f;
  border-color: #8eacb888;
}

.sahs-small-label,
.sahs-section-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--sahs-green);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.sahs-wing-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.sahs-wing-card p,
.sahs-stream-card p,
.sahs-assessment-card p,
.sahs-calendar-card p {
  margin: 0;
  color: var(--sahs-muted);
  font-size: 16px;
  line-height: 1.8;
}

/* Core learning streams */

.sahs-streams-section {
  margin-bottom: 36px;
}

.sahs-section-heading {
  margin: 0 0 19px;
  font-size: 32px;
  font-weight: 600;
}

.sahs-stream-card {
  height: 100%;
  min-height: 190px;
  padding: 23px;
  border: 1px solid var(--sahs-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(25, 53, 44, 0.025);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sahs-stream-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(25, 53, 44, 0.08);
}

.sahs-stream-icon,
.sahs-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 15px;
  color: #173c32;
  font-size: 21px;
}

.sahs-icon-coral {
  background: var(--sahs-coral);
}

.sahs-icon-yellow {
  background: var(--sahs-yellow);
}

.sahs-icon-green {
  background: var(--sahs-green);
  color: #fff;
}

.sahs-icon-blue {
  background: var(--sahs-sky);
}

.sahs-icon-purple {
  background: var(--sahs-lavender);
}

.sahs-icon-mint {
  background: var(--sahs-mint);
}

.sahs-stream-subtitle {
  display: block;
  margin-bottom: 5px;
  color: var(--sahs-green);
  font-size: 12px;
  font-weight: 800;
}

.sahs-stream-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

/* Student materials CTA */

.sahs-syllabus-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 25px 27px;
  border-radius: 19px;
  background: var(--sahs-green);
  color: #fff;
}

.sahs-syllabus-cta h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.sahs-syllabus-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.7;
}

.sahs-syllabus-button {
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 17px;
  border: 0;
  border-radius: 11px;
  background: var(--sahs-yellow);
  color: #263c32;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sahs-syllabus-button:hover {
  background: #ffe68b;
  color: #263c32;
  transform: translateY(-2px);
}

/* Learning approach tab */

.sahs-detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  padding: 10px 0;
}

.sahs-detail-copy .sahs-section-heading {
  margin-bottom: 25px;
}

.sahs-detail-copy h3 {
  max-width: 470px;
  margin: 0 0 17px;
  font-size: 32px;
  font-weight: 600;
}

.sahs-detail-copy>p {
  margin: 0 0 18px;
  color: var(--sahs-muted);
  font-size: 16px;
  line-height: 1.9;
}

.sahs-detail-icon {
  width: 48px;
  height: 48px;
}

.sahs-detail-image-wrap {
  overflow: hidden;
  min-height: 300px;
  border: 4px solid #fff;
  border-radius: 21px;
  background: #edf2ee;
  box-shadow: 0 6px 15px rgba(25, 53, 44, 0.12);
}

.sahs-detail-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
}

.sahs-check-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.sahs-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #344e46;
  font-size: 16px;
  line-height: 1.65;
}

.sahs-check-list i {
  flex-shrink: 0;
  margin-top: -1px;
  color: var(--sahs-green);
  font-size: 18px;
}

/* Assessment tab */

.sahs-assessment-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--sahs-border);
  border-radius: 22px;
  background: #fff;
}

.sahs-assessment-section .sahs-section-heading {
  margin-bottom: 14px;
}

.sahs-assessment-intro {
  margin: 0 0 23px;
  color: var(--sahs-muted);
  font-size: 16px;
  line-height: 1.9;
}

.sahs-assessment-card {
  height: 100%;
  padding: 22px;
  border: 1px solid transparent;
  border-radius: 16px;
}

.sahs-assessment-green {
  background: #f2f8f5;
  border-color: #e3eee8;
}

.sahs-assessment-yellow {
  background: #fff9e4;
  border-color: #f4eab9;
}

.sahs-assessment-icon {
  margin-bottom: 12px;
  color: var(--sahs-green);
  font-size: 22px;
}

.sahs-assessment-card h3 {
  margin: 0 0 9px;
  font-size: 17px;
  font-weight: 600;
}

/* Academic calendar tab */

.sahs-calendar-section {
  min-height: 320px;
  padding: 30px;
  border: 1px solid var(--sahs-border);
  border-radius: 22px;
  background: #fff;
}

.sahs-calendar-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.sahs-calendar-heading-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  border-radius: 15px;
  background: #fff0e9;
  color: var(--sahs-coral);
  font-size: 21px;
}

.sahs-calendar-heading .sahs-section-heading {
  margin: 0 0 5px;
  font-size: 32px;
}

.sahs-calendar-heading p {
  margin: 0;
  color: var(--sahs-muted);
  font-size: 16px;
  line-height: 1.7;
}

.sahs-calendar-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
  min-height: 105px;
  padding: 18px;
  border: 1px solid #e9ece6;
  border-radius: 15px;
  background: #fffdf7;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sahs-calendar-card:hover {
  transform: translateY(-2px);
  border-color: #b9d9ca;
}

.sahs-calendar-number {
  flex-shrink: 0;
  color: var(--sahs-green);
  font-size: 18px;
  font-weight: 900;
}

.sahs-calendar-card h3 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 600;
}

.sahs-calendar-note {
  color: var(--sahs-muted);
}

/* Responsive styles */

@media (max-width: 767.98px) {
  .sahs-curriculum-hero {
    min-height: 220px;
    padding: 35px 0;
  }

  .sahs-curriculum-hero h1 {
    font-size: 31px;
  }

  .sahs-curriculum-hero p {
    font-size: 14px;
  }

  .sahs-curriculum-content {
    padding-top: 30px;
    padding-bottom: 40px;
  }

  .sahs-curriculum-tabs {
    gap: 8px;
    padding: 12px 0;
  }

  .sahs-curriculum-tab {
    flex: 1 1 auto;
    padding: 9px 11px;
    font-size: 12px;
  }

  .sahs-wing-card {
    padding: 19px;
  }

  .sahs-stream-card {
    min-height: auto;
    padding: 20px;
  }

  .sahs-syllabus-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 23px;
  }

  .sahs-syllabus-button {
    width: 100%;
  }

  .sahs-detail-section {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .sahs-detail-image-wrap {
    min-height: 240px;
  }

  .sahs-detail-image {
    min-height: 240px;
    max-height: 360px;
  }

  .sahs-assessment-section,
  .sahs-calendar-section {
    padding: 21px;
  }

  .sahs-calendar-heading .sahs-section-heading {
    font-size: 21px;
  }
}

@media (max-width: 420px) {
  .sahs-curriculum-tab {
    flex: 1 1 calc(50% - 8px);
  }

  .sahs-calendar-card {
    padding: 15px;
  }
}

/* ==================== END CURRICULUM PAGE STYLES ==================== */

/* =========================================================
   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;
}
