:root {
  --primary: #0057b8;
  --primary-dark: #04357a;
  --secondary: #ffb200;
  --light: #ffffff;
  --text: #10203f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: #f4f8ff;
}

body {
  position: relative;
  overflow-x: hidden;
}

.page-bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: #4ec5ff;
  top: -80px;
  right: -80px;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: #84a9ff;
  bottom: -120px;
  left: -120px;
}

.topbar {
  background: linear-gradient(90deg, #062f67, #0a4d95);
  padding: 8px 0;
  font-size: 13px;
}

.topbar a {
  color: #dff4ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.topbar a:hover {
  color: var(--secondary);
}

.custom-navbar {
  background: linear-gradient(90deg, rgba(3, 37, 85, 0.95), rgba(0, 94, 168, 0.95));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.35s ease;
}

.custom-navbar.scrolled {
  box-shadow: 0 10px 30px rgba(0, 22, 62, 0.28);
}

.navbar-brand img {
  max-height: 58px;
  width: auto;
}

.navbar-toggler {
  background: rgba(255, 255, 255, 0.85);
}

.navbar-nav .nav-link {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0 7px;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff;
}

.btn-apply,
.btn-enroll,
.btn-about {
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: none;
  transition: all 0.3s ease;
}

.btn-apply {
  background: linear-gradient(90deg, #00a7ff, #00d1c7);
  color: #fff;
  padding: 11px 24px;
  box-shadow: 0 8px 20px rgba(0, 174, 255, 0.32);
}

.btn-apply:hover {
  transform: translateY(-2px);
  color: #fff;
}

.hero-section {
  position: relative;
  min-height: clamp(360px, 30vw, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

#home {
  padding-top: 70px;
  padding-bottom: 70px;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* control these two */
  top: 0%;          /* move overlay down/up */
  height: 93%;      /* overlay height */
  background:
    linear-gradient(105deg, rgba(12, 22, 46, 0.78) 0%, rgba(12, 22, 46, 0.66) 26%, rgba(12, 22, 46, 0.26) 44%, rgba(12, 22, 46, 0.03) 64%, transparent 70%);
  z-index: 1;
}

.min-vh-75 {
  min-height: clamp(300px, 26vw, 430px);
}

.hero-copy {
  padding-top: 6px;
  padding-left: 8px;
}

.hero-section h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.2vw, 4rem);
  line-height: 1.06;
  font-weight: 700;
  margin-bottom: 8px;
  max-width: 620px;
}

.hero-section h1 span {
  color: #f5b220;
}

.hero-section p {
  color: #ffffff;
  font-size: clamp(1.05rem, 1.7vw, 2rem);
  margin-bottom: 16px;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-enroll,
.btn-about {
  background: #f5a31a;
  color: #fff;
  padding: 10px 22px;
  box-shadow: none;
  border-radius: 3px;
  font-size: 1rem;
}

.btn-enroll:hover,
.btn-about:hover {
  background: #ffb634;
  transform: translateY(-2px);
  color: #fff;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 110px;
  pointer-events: none;
  z-index: 3;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath d='M0,140 C120,70 240,70 360,140 C480,210 600,210 720,140 C840,70 960,70 1080,140 C1200,210 1320,210 1440,140 L1440,220 L0,220 Z' fill='%23ffffff' fill-opacity='0.0'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
}

.hero-wave::before {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background-image: radial-gradient(circle, rgba(170, 170, 170, 0.42) 1px, transparent 1px);
  background-size: 11px 11px;
  opacity: 0.28;
}

.hero-wave::after {
  content: none;
}

.about-section {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 98px 0 128px;
  overflow: hidden;
}

.about-overlay-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.9) 52%,
      rgba(255, 255, 255, 0.55) 78%,
      rgba(255, 255, 255, 0.08) 92%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("../images/second_section.png") center/cover no-repeat fixed;
  background-attachment: scroll, fixed;
}

.about-row {
  min-height: 350px;
}

.about-copy {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.about-section h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: #111;
}

.about-section h2 span {
  color: #f6a20f;
}

.about-section p {
  color: #232323;
  line-height: 1.55;
  font-size: 0.85rem;
  max-width: 560px;
  margin-bottom: 14px;
}

.about-image-wrap {
  border: 6px solid #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(4, 35, 85, 0.14);
  transform: none;
  max-width: 560px;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.about-image-wrap img {
  width: 100%;
  height: 295px;
  object-fit: cover;
  display: block;
}

.about-image-wrap.img-placeholder {
  min-height: 295px;
  background: linear-gradient(120deg, #dbe7f9, #f5f8ff);
}

.section-wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 74px;
  background: #0a4a93;
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
}

.white-wave {
  background: #fff;
}

.section-top-wave {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 50px;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}

.section-top-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

#about .section-top-wave {
  top: auto;
  bottom: -1px;
}

.explore-section {
  position: relative;
  background: #1C4777 url("../images/section3_bg.png") center/cover no-repeat;
  color: #fff;
  overflow: hidden;
  padding: 66px 0 96px;
}

.explore-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, #1C4777 0%, rgba(28, 71, 119, 0) 100%),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 100% 100%, 12px 12px;
  background-position: center, 0 0;
  pointer-events: none;
  z-index: 1;
}

.explore-inner {
  position: relative;
  z-index: 3;
}

.section3-bottom-layer {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  bottom: -90px;
  height: 395px;
  background: url("../images/third_section_bottom_04.png") center bottom / 100% 100% no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}

.explore-section h2 {
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  margin-bottom: 2px;
}

.explore-section h2 span {
  color: #f8b21d;
}

.section-subtitle {
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  color: #e9f2ff;
  margin-bottom: 26px;
}

.academic-spotlight {
  margin: 0 auto 24px;
  width: min(1080px, 100%);
  background: linear-gradient(130deg, #ffffff 0%, #f4f9ff 100%);
  border-radius: 14px;
  border: 1px solid rgba(16, 64, 118, 0.2);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 38px rgba(3, 24, 56, 0.28);
  overflow: hidden;
  position: relative;
}

.academic-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(79, 173, 255, 0.14), transparent 40%);
  pointer-events: none;
}

.spotlight-copy {
  text-align: left;
  color: #0e2550;
}

.spotlight-copy h4 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 1.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

.spotlight-copy h4 span {
  color: #0b3f83;
}

.spotlight-copy p {
  margin: 0;
  color: #1f355a;
  font-size: clamp(0.88rem, 1vw, 1.1rem);
  line-height: 1.58;
}

.spotlight-icon {
  width: 98px;
  height: 98px;
  margin: 0 auto;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2.65rem;
  position: relative;
  z-index: 1;
}

.spotlight-icon i {
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.2));
}

.left-icon {
  color: #0d4ca0;
  background: linear-gradient(145deg, #e5f0ff, #d4e9ff);
  animation: floatY 4.2s ease-in-out infinite;
}

.right-icon {
  color: #f3a513;
  background: linear-gradient(145deg, #fff4dc, #ffe9b6);
  animation: floatY 4.2s ease-in-out infinite 0.6s;
}

.left-icon-sport {
  color: #0e4b94;
  background: linear-gradient(145deg, #e8f3ff, #d8ecff);
}

.right-icon-creative {
  color: #ffb11a;
  background: linear-gradient(145deg, #fff7e4, #ffe7b2);
}

.left-icon-care {
  color: #1f4a86;
  background: linear-gradient(145deg, #fff7df, #ffeec4);
}

.right-icon-community {
  color: #de4561;
  background: linear-gradient(145deg, #ffeaf0, #ffd6e2);
}

.left-icon-innovation {
  color: #193f7f;
  background: linear-gradient(145deg, #fff4cf, #ffe29b);
}

.right-icon-idea {
  color: #0d4d99;
  background: linear-gradient(145deg, #e8f5ff, #d2eafe);
}

.left-icon-future {
  color: #0e3f88;
  background: linear-gradient(145deg, #ffeecf, #ffdca0);
}

.right-icon-vision {
  color: #ff4d63;
  background: linear-gradient(145deg, #e7fff8, #cef8ed);
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.explore-photo-box {
  border-radius: 2px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 20px rgba(0, 14, 42, 0.26);
  transition: transform 0.35s ease;
}

.explore-photo-box img {
  width: 100%;
  height: 235px;
  object-fit: cover;
}

.explore-photo-box.img-placeholder {
  min-height: 235px;
  background: linear-gradient(120deg, #7ca7d2, #c8dbef);
}

.explore-photo-box:hover {
  transform: translateY(-8px);
}

.explore-photo-box.explore-photo-oval {
  border: 0;
  padding: 14px;
  background: #f5b338;
  border-radius: 999px;
  overflow: hidden;
  -webkit-clip-path: ellipse(50% 48% at 50% 50%);
  clip-path: ellipse(50% 48% at 50% 50%);
  box-shadow: 0 12px 26px rgba(0, 14, 42, 0.28);
}

.explore-photo-box.explore-photo-oval img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 999px;
  -webkit-clip-path: ellipse(50% 48% at 50% 50%);
  clip-path: ellipse(50% 48% at 50% 50%);
  object-fit: cover;
  object-position: center;
}

.feature-strip {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.98);
  padding: 16px 18px;
  border-radius: 3px;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  color: #172d58;
}

#academics .feature-strip + .academic-spotlight {
  margin-top: 70px;
}

#academics .academic-spotlight + .academic-spotlight {
  margin-top: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  text-align: left;
}

.feature-item i {
  color: #f8b21d;
  font-size: 1.7rem;
  width: 30px;
  margin-top: 1px;
}

.feature-item h6 {
  margin: 0 0 3px;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

.feature-item p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #3c4b63;
}

#admissions {
  background: linear-gradient(120deg, rgba(3, 33, 70, 0.9), rgba(4, 66, 126, 0.82)), url("../images/section_four_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.cta-image-strip {
  position: relative;
  overflow: hidden;
}

.cta-image-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(120deg, rgba(2, 24, 54, 0.75) 0%, rgba(2, 24, 54, 0.28) 62%, rgba(2, 24, 54, 0.18) 100%);
}

.testimonial-showcase {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 20px;
}

.testimonial-slider {
  position: relative;
  min-height: 360px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(250px, 330px) 1fr;
  align-items: center;
  gap: 22px;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.99), rgba(241, 247, 255, 0.94));
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 24px 48px rgba(2, 21, 46, 0.45);
  padding: 20px;
  opacity: 0;
  transform: translateX(22px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-card.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.testimonial-student-frame {
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  min-height: 320px;
  border: 2px solid rgba(5, 56, 112, 0.2);
}

.testimonial-student-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  color: #0d2b58;
  padding: 8px 10px 8px 6px;
}

.quote-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffb11a, #ff8d14);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 12px 22px rgba(255, 149, 24, 0.32);
  margin-bottom: 15px;
}

.testimonial-content p {
  margin: 0 0 18px;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.72;
  color: #163968;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 10px 20px rgba(6, 42, 87, 0.28);
}

.testimonial-author h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0c2d5e;
}

.testimonial-author span {
  color: #355785;
  font-size: 0.9rem;
}

.testimonial-nav {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffffff, #e7f1ff);
  color: #0e4b94;
  font-size: 1.12rem;
  box-shadow: 0 12px 25px rgba(4, 30, 66, 0.28);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.testimonial-nav:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #0d5ab2, #0b4790);
  color: #fff;
}

.testimonial-nav:focus-visible {
  outline: 2px solid #ffbc3f;
  outline-offset: 3px;
}

.site-footer {
  background: linear-gradient(180deg, #072f67, #02162f);
  color: #deedff;
}

.footer-main {
  padding: 50px 0 34px;
  border-top: 2px solid #6fe7ff;
  border-bottom: 2px solid #6fe7ff;
}

.footer-brand img {
  max-height: 64px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 1.03rem;
  color: #f0f6ff;
  font-weight: 500;
}

.site-footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 9px;
}

.footer-links a {
  color: #d8ebff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #79ecff;
  padding-left: 6px;
}

.footer-contact i {
  color: #6fe8ff;
  margin-right: 7px;
}

.footer-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.footer-gallery img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease;
}

.footer-gallery img:hover {
  transform: scale(1.08);
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
}

.footer-social a:hover {
  background: #1ca2ff;
}

.newsletter {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
}

.newsletter input {
  flex: 1;
  border: none;
  padding: 10px 11px;
}

.newsletter button {
  border: none;
  background: #20aaf8;
  color: #fff;
  font-weight: 600;
  padding: 0 14px;
}

.footer-bottom {
  padding: 14px 0;
  font-size: 14px;
  color: #cde2ff;
}

@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 12px 0;
  }

  .navbar-nav .nav-link {
    margin: 5px 0;
  }

  .hero-section {
    background-position: center right;
  }

  .feature-strip {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .about-image-wrap {
    max-width: 100%;
  }

  .testimonial-showcase {
    grid-template-columns: 48px 1fr 48px;
    gap: 12px;
  }

  .testimonial-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial-student-frame {
    min-height: 230px;
  }

  .testimonial-slider {
    min-height: 560px;
  }
}

@media (max-width: 767.98px) {
  .topbar-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hero-section {
    min-height: clamp(320px, 65vw, 430px);
    background-position: 62% center;
  }

  .hero-bg-img {
    object-position: 60% 18%;
  }

  .hero-overlay {
    height: 93%;
    background:
      linear-gradient(104deg, rgba(12, 22, 46, 0.9) 0%, rgba(12, 22, 46, 0.82) 34%, rgba(12, 22, 46, 0.56) 58%, rgba(12, 22, 46, 0.25) 78%, rgba(12, 22, 46, 0.06) 92%, transparent 100%);
  }

  .hero-section h1 {
    max-width: 100%;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
  }

  .about-image-wrap img {
    height: 250px;
  }

  .about-overlay-bg {
    background-attachment: scroll, scroll;
  }

  .explore-photo-box img {
    height: 215px;
  }

  .academic-spotlight {
    grid-template-columns: 1fr;
    padding: 18px 16px;
    gap: 12px;
    text-align: center;
  }

  .spotlight-copy {
    text-align: center;
  }

  .spotlight-icon {
    width: 86px;
    height: 86px;
    font-size: 2.25rem;
  }

  .feature-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-wave-bottom,
  .hero-wave {
    height: 72px;
  }

  .section-top-wave {
    height: 46px;
  }

  .hero-wave::before {
    inset: 46% 0 0;
    background-size: 9px 9px;
  }

  .cta-banner {
    padding: 56px 0;
  }

  .testimonial-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .testimonial-slider {
    order: 1;
    width: 100%;
    flex: 0 0 100%;
    min-height: 595px;
  }

  .testimonial-nav {
    position: static;
    bottom: auto;
    z-index: 4;
  }

  .testimonial-nav.prev {
    order: 2;
    left: auto;
  }

  .testimonial-nav.next {
    order: 3;
    right: auto;
  }


  .footer-main {
    padding-top: 36px;
  }
}

@media (max-width: 575.98px) {
  .hero-bg-img {
    object-position: 82% 14%;
  }

  .footer-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-apply,
  .btn-enroll,
  .btn-about {
    width: auto;
    min-width: 130px;
    text-align: center;
  }

  .hero-section p,
  .section-subtitle {
    font-size: 1.15rem;
  }

  .hero-copy {
    padding-left: 2px;
  }

  .hero-section h1 {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
  }

  #admissions {
    min-height: 620px;
  }

  .testimonial-slider {
    min-height: 650px;
  }

  .testimonial-content p {
    font-size: 0.98rem;
    line-height: 1.6;
  }
}
