main {
  overflow: hidden;
}

.active-link {
  color: #198754 !important;
}

.active-link::after {
  width: 100% !important;
}

.elementary-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  align-items: center;
  gap: 6vw;
  min-height: 620px;
  padding: 76px 9vw 84px;
  background: #f4f7f2;
}

.elementary-hero-copy {
  max-width: 700px;
}

.elementary-hero h1 {
  margin: 22px 0 24px;
  color: #176b45;
  font-size: 68px;
  line-height: 1.04;
  letter-spacing: 0;
}

.elementary-hero h1 span {
  color: #d97706;
}

.elementary-hero p {
  max-width: 540px;
  color: #68736c;
  font-size: 17px;
  line-height: 1.8;
}

.elementary-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 34px;
}

.elementary-button,
.elementary-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 14px 21px;
  border-radius: 11px;
  color: #fff;
  background: #198754;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}

.elementary-button:hover,
.elementary-cta-button:hover {
  color: #fff;
  background: #146c43;
  transform: translateY(-3px);
}

.elementary-accreditation {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #176b45;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.elementary-accreditation strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 3px solid #d97706;
  border-radius: 50%;
  color: #d97706;
  font-size: 25px;
}

.elementary-hero-art {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
}

.elementary-hero-photo {
  position: relative;
  padding: 12px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 45px rgba(22, 78, 52, .15);
}

.elementary-hero-photo::before {
  position: absolute;
  z-index: -1;
  inset: 20px -20px -20px 20px;
  border-radius: 28px;
  background: #198754;
  content: '';
}

.elementary-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: contain;
}

.elementary-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  align-items: center;
  gap: 8vw;
  padding: 115px 9vw 125px;
  background: #fff;
}

.profile-heading {
  max-width: 650px;
}

.profile-heading h2,
.pillars-copy h2,
.elementary-cta h2 {
  margin: 16px 0 20px;
  color: #1f2937;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.profile-heading p,
.pillars-copy>p,
.elementary-cta p {
  max-width: 560px;
  color: #68736c;
  font-size: 17px;
  line-height: 1.85;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  min-height: 190px;
  padding: 25px 20px;
  border-radius: 20px;
}

.stat-card strong {
  display: block;
  margin-bottom: 15px;
  color: #176b45;
  font-size: 48px;
  line-height: 1;
}

.stat-card span {
  color: #5b665f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.stat-green {
  background: #edf7f1;
}

.stat-yellow {
  background: #fff8ea;
}

.stat-yellow strong {
  color: #d97706;
}

.stat-coral {
  background: #fff0ed;
}

.stat-coral strong {
  color: #e97965;
  font-size: 38px;
}

.elementary-pillars {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  align-items: center;
  gap: 10vw;
  padding: 110px 10vw 125px;
  background: #fff8ea;
}

.pillars-copy {
  max-width: 620px;
}

.pillar-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.pillar-list div {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #176b45;
  font-weight: 600;
}

.pillar-list i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: #198754;
  font-size: 12px;
}

.pillar-art {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 35px;
  background: #d8efdf;
}

.book-shape {
  position: absolute;
  top: 75px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 190px;
  border-radius: 50% 14px 50% 14px;
  color: #fff;
  background: #198754;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transform: translateX(-50%) rotate(-8deg);
}

.book-shape i {
  margin-bottom: 12px;
  font-size: 42px;
}

.book-shape span {
  font-size: 17px;
  letter-spacing: 2px;
}

.bulb-icon,
.compass-icon {
  position: absolute;
  color: #d97706;
  font-size: 60px;
}

.bulb-icon {
  top: 32px;
  right: 45px;
  transform: rotate(14deg);
}

.compass-icon {
  bottom: 35px;
  left: 46px;
  color: #e97965;
  transform: rotate(-18deg);
}

.pencil-line {
  position: absolute;
  right: -20px;
  bottom: -65px;
  width: 250px;
  height: 180px;
  border: 20px solid #ffd166;
  border-bottom: 0;
  border-radius: 160px 160px 0 0;
  transform: rotate(12deg);
}

.elementary-why {
  scroll-margin-top: 130px;
  padding: 88px 9vw 100px;
  background: #fff;
}

.why-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.why-heading .section-tag {
  color: #d97706;
}

.why-heading h2 {
  margin: 12px 0 0;
  color: #176b45;
  font-size: 42px;
  line-height: 1.15;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.why-card {
  --why-accent: #198754;
  position: relative;
  display: flex;
  min-height: 276px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 25px 24px 27px;
  border: 1px solid #e8eee8;
  border-radius: 12px;
  background: #fbfdfb;
  box-shadow: 0 8px 22px rgba(31, 57, 41, .05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.why-card::after {
  position: absolute;
  right: -24px;
  bottom: -54px;
  width: 120px;
  height: 120px;
  border: 1px solid color-mix(in srgb, var(--why-accent) 22%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 14px color-mix(in srgb, var(--why-accent) 6%, transparent);
  content: '';
  pointer-events: none;
}

.why-card:hover {
  border-color: color-mix(in srgb, var(--why-accent) 45%, #fff);
  box-shadow: 0 15px 30px rgba(31, 57, 41, .11);
  transform: translateY(-3px);
}

.why-card--teachers {
  --why-accent: #d97706;
  background: #fffaf1;
}

.why-card--curriculum {
  --why-accent: #6c9eb4;
  background: #f4f9fb;
}

.why-card--graduates {
  --why-accent: #dd7765;
  background: #fff7f4;
}

.why-card--facilities {
  --why-accent: #8b9b56;
  background: #f8faef;
}

.why-card--character {
  --why-accent: #9276a8;
  background: #faf7fc;
}

.why-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 19px;
  border-radius: 14px 14px 14px 5px;
  color: #fff;
  background: var(--why-accent);
  font-size: 20px;
}

.why-index {
  position: absolute;
  top: 29px;
  right: 25px;
  color: var(--why-accent);
  font-size: 13px;
  font-weight: 700;
  opacity: .75;
}

.why-card h3 {
  position: relative;
  max-width: 330px;
  margin: 0 0 10px;
  color: #26372d;
  font-size: 17px;
  line-height: 1.4;
}

.why-card p {
  position: relative;
  margin: 0;
  color: #657269;
  font-size: 13px;
  line-height: 1.65;
}

.elementary-programs {
  position: relative;
  overflow: hidden;
  padding: 96px 10vw 100px;
  color: #26372d;
  background-color: #f5f8f2;
  background-image: radial-gradient(rgba(23, 107, 69, .12) 1px, transparent 1px);
  background-position: center;
  background-size: 22px 22px;
}

.elementary-programs::before,
.elementary-programs::after {
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(23, 107, 69, .12);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.elementary-programs::before {
  top: -145px;
  right: -60px;
  box-shadow: 0 0 0 22px rgba(23, 107, 69, .035), 0 0 0 44px rgba(23, 107, 69, .025);
}

.elementary-programs::after {
  bottom: -180px;
  left: -100px;
  width: 320px;
  height: 320px;
}

.programs-heading {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 52px;
  text-align: center;
}

.programs-heading h2 {
  margin: 0;
  color: #176b45;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.trust-badges {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.trust-badge {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  min-height: 215px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(38, 55, 45, .08);
  border-radius: 14px;
  color: #26372d;
  background: var(--badge-surface, #fff);
  box-shadow: 0 12px 30px rgba(38, 55, 45, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.trust-badge::before {
  position: absolute;
  z-index: -1;
  top: -42px;
  right: -35px;
  width: 150px;
  height: 150px;
  border: 1px solid var(--badge-accent, #ffd166);
  border-radius: 50%;
  box-shadow: 0 0 0 16px color-mix(in srgb, var(--badge-accent, #ffd166) 18%, transparent);
  content: '';
  opacity: .75;
  transition: transform .35s ease;
}

.trust-badge::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 100%;
  background: var(--badge-accent, #ffd166);
  content: '';
}

.trust-badge:hover {
  z-index: 2;
  box-shadow: 0 20px 38px rgba(38, 55, 45, .14);
  transform: translateY(-3px);
}

.trust-badge:hover::before {
  transform: scale(1.12) rotate(12deg);
}

.trust-badge--english {
  --badge-accent: #e97965;
  --badge-surface: #fff7f2;
}

.trust-badge--quran {
  --badge-accent: #ffd166;
  --badge-surface: #fffaf0;
}

.trust-badge--character {
  --badge-accent: #88b99a;
  --badge-surface: #f2f8f1;
}

.trust-badge--achievement {
  --badge-accent: #8bb6ca;
  --badge-surface: #f1f7fa;
}

.trust-badge-mark {
  display: inline-flex;
  position: relative;
  flex: 0 0 76px;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(38, 55, 45, .08);
  border-radius: 16px;
  background: var(--badge-accent, #ffd166);
  box-shadow: 0 0 0 5px rgba(38, 55, 45, .04);
  font-size: 30px;
  transition: transform .25s ease;
}

.trust-badge:hover .trust-badge-mark {
  transform: scale(1.04);
}

.trust-badge>div {
  position: relative;
  align-self: center;
  max-width: 340px;
}

.trust-badge h3 {
  margin: 0 0 9px;
  color: #176b45;
  font-size: 20px;
  line-height: 1.3;
}

.trust-badge p {
  margin: 0;
  color: #68736c;
  font-size: 15px;
  line-height: 1.6;
}

.brochure-download {
  position: relative;
  z-index: 1;
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 38px auto 0;
  padding: 14px 22px;
  border: 1px solid #ffd166;
  border-radius: 8px;
  color: #26372d;
  background: #ffd166;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.brochure-download:hover {
  color: #26372d;
  background: #ffe29a;
  transform: translateY(-2px);
}

.brochure-download:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.elementary-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 90px 10vw;
  color: #fff;
  background: #176b45;
}

.elementary-cta h2,
.elementary-cta .section-tag,
.elementary-cta p {
  color: #fff;
}

.elementary-cta p {
  margin: 22px 0 0;
  color: #d8efdf;
}

.elementary-cta-button {
  flex: 0 0 auto;
  color: #176b45;
  background: #ffd166;
}

.elementary-cta-button:hover {
  color: #176b45;
  background: #ffe29a;
}

@media (max-width: 900px) {

  .elementary-profile,
  .elementary-pillars {
    grid-template-columns: 1fr;
  }

  .elementary-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
    gap: 36px;
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .elementary-hero h1 {
    font-size: 54px;
  }

  .profile-stats {
    max-width: 650px;
  }

  .pillar-art {
    max-width: 620px;
  }

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

  .trust-badges {
    grid-template-columns: 1fr;
    max-width: 650px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 16px 22px;
  }

  .navbar-wrapper {
    flex-wrap: wrap;
    gap: 18px;
  }

  .logo img {
    height: 64px;
  }

  .big-text,
  .footer-big {
    font-size: 28px;
  }

  .nav-center {
    position: static;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
    transform: none;
  }

  .nav-center a {
    font-size: 12px;
  }

  .btn-form {
    padding: 9px 13px;
    font-size: 12px;
  }

  .elementary-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 62px 24px 70px;
  }

  .elementary-hero h1 {
    margin: 17px 0 20px;
    font-size: 48px;
  }

  .elementary-hero p,
  .profile-heading p,
  .pillars-copy>p,
  .elementary-cta p {
    font-size: 15px;
  }

  .elementary-profile,
  .elementary-pillars,
  .elementary-programs,
  .elementary-why {
    padding: 78px 24px 88px;
  }

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

  .why-grid {
    gap: 13px;
  }

  .why-card {
    min-height: 290px;
    padding: 20px 18px 22px;
  }

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

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

  .programs-heading {
    margin-bottom: 30px;
  }

  .trust-badge {
    min-height: 170px;
    padding: 24px;
  }

  .trust-badge h3 {
    font-size: 18px;
  }

  .trust-badge-mark {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    font-size: 27px;
  }

  .elementary-programs::before,
  .elementary-programs::after {
    opacity: .55;
  }
}

@media (max-width: 480px) {
  .elementary-hero h1 {
    font-size: 40px;
  }

  .elementary-actions {
    align-items: flex-start;
    gap: 18px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    min-height: 0;
  }

  .trust-badge {
    gap: 16px;
    min-height: 150px;
    padding: 20px 18px;
  }

  .trust-badge-mark {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
    font-size: 23px;
  }

  .trust-badge h3 {
    font-size: 16px;
  }

  .trust-badge p {
    font-size: 14px;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 0;
  }

  .elementary-pillars {
    gap: 48px;
  }

  .pillar-art {
    min-height: 290px;
  }

  .book-shape {
    top: 54px;
    width: 170px;
    height: 150px;
  }

  .book-shape i {
    font-size: 31px;
  }

  .book-shape span {
    font-size: 13px;
  }

  .bulb-icon,
  .compass-icon {
    font-size: 42px;
  }

  .elementary-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 24px;
  }

  .footer {
    padding: 60px 24px 30px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}