/* ========== GLOBAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #004080 #f1f1f1;
}
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f9f9f9;
  overflow-x: hidden;
}
::selection {
  background: rgba(0, 64, 128, 0.18);
  color: #00264d;
}
:focus-visible {
  outline: 3px solid rgba(0, 64, 128, 0.45);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Merriweather', serif;
  color: #111;
  text-wrap: balance;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.85rem;
}
h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #004080, #3b82c4);
}
p {
  color: #444;
  margin-bottom: 1rem;
}
a {
  color: #004080;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #555;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #004080, #0058a8);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.btn:hover {
  background: linear-gradient(135deg, #00264d, #004080);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 64, 128, 0.25);
}
.btn:active {
  transform: translateY(0);
}
.btn-secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-secondary:hover {
  background: #fff;
  color: #004080;
}


/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 1200px);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: box-shadow 0.3s ease, background 0.3s ease, top 0.3s ease;
}
.navbar .container {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem 0.6rem 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #004080;
}
.nav-img {
  height: 40px;
  width: auto;
}
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
nav ul li a {
  display: inline-block;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  color: #004080;
  transition: background 0.3s ease, color 0.3s ease;
}
nav ul li a:hover {
  background: rgba(0, 64, 128, 0.08);
  color: #004080;
}

/* Burger menu (mobile) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-left: 0.5rem;
  transition: background 0.3s ease;
}
.burger:hover {
  background: rgba(0, 64, 128, 0.08);
}
.burger span {
  width: 20px;
  height: 2px;
  background: #004080;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
@media (max-width: 900px) {
  .navbar {
    top: 0.75rem;
  }
  nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: #fff;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    padding: 1rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  nav ul li a {
    padding: 0.75rem 1rem;
    text-align: center;
  }
  nav ul.active {
    display: flex;
  }
  .burger {
    display: flex;
  }
}

/* ========== HERO ========== */
.hero {
  height: 100vh;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 25px 60px rgba(0, 64, 128, 0.22);
  background: #004080;
}
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out, transform 12s ease-out;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0,10,30,0.2) 0%, rgba(0,10,30,0.55) 55%, rgba(0,10,30,0.72) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  color: #fff;
  z-index: 2;
  max-width: 720px;
  padding: 0 1rem;
}
.hero-content::before {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin: 0 auto 1.5rem;
  border-radius: 2px;
  background: #fff;
  opacity: 0;
  animation: heroFadeUp 0.7s ease 0.05s forwards;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.15s forwards;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-top: 0.85rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.3s forwards;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.45s forwards;
}
.hero-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-buttons .btn-secondary:hover {
  background: #fff;
  color: #004080;
}

/* Scroll cue */
.hero::before {
  content: '';
  position: absolute;
  bottom: 7.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  z-index: 2;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: calc(7.5rem + 26px);
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  z-index: 2;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-height: 700px), (max-width: 768px) {
  .hero::before,
  .hero::after {
    display: none;
  }
}
@media (max-width: 900px) {
  .hero {
    height: 80vh;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
}
@media (max-width: 480px) {
  .hero {
    height: 60vh;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    height: 100vh;
  }
}

/* ========== HIGHLIGHTS ========== */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: -5rem auto 4rem;
  position: relative;
  z-index: 3;
}
.highlight-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 64, 128, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s cubic-bezier(.2,.8,.2,1);
}
.highlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #004080, #3b82c4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.highlight-card:hover::before {
  transform: scaleX(1);
}
.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}
.highlight-card h3 {
  margin-bottom: 0.5rem;
  color: #004080;
}
.highlight-card a,
.news-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}
.highlight-card a::after,
.news-card a::after {
  content: '\2192';
  transition: transform 0.3s ease;
}
.highlight-card a:hover::after,
.news-card a:hover::after {
  transform: translateX(5px);
}

/* ========== ABOUT ========== */
.about {
  padding: 5rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
  text-align: center;
}
.about p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* ========== CURRICULUM ========== */
.curriculum {
  padding: 4rem 0;
}
.curriculum .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.curriculum-card {
  position: relative;
  display: block;
  overflow: hidden;
  height: 320px;
  border-radius: 20px;
  background: #00264d;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 64, 128, 0.22);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s cubic-bezier(.2,.8,.2,1);
}
.curriculum-card img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.curriculum-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,10,30,0) 30%, rgba(0,10,30,0.85) 100%);
}
.curriculum-card-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem;
  z-index: 1;
}
.curriculum-card-text h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.curriculum-card-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
}
.curriculum-card:hover {
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 64, 128, 0.32);
}
.curriculum-card:hover img {
  transform: scale(1.06);
}

/* ========== NEWS ========== */
.news {
  padding: 4rem 0;
  background: #f1f1f1;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.news-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}
.news-card {
  overflow: hidden;
}
.news-thumb {
  display: block;
  width: calc(100% + 3rem);
  height: 180px;
  margin: -1.5rem -1.5rem 1.25rem;
  object-fit: cover;
}
.news-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #004080;
  background: rgba(0, 64, 128, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.news-card h3 {
  margin-bottom: 0.5rem;
  color: #004080;
}
.news-card:hover {
  transform: translateY(-6px);
}

/* ========== ACHIEVEMENTS ========== */
.achievements {
  padding: 4rem 0;
  background: #fff;
  text-align: center;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.stats div {
  font-size: 1.05rem;
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  min-width: 160px;
  border: 1px solid rgba(0, 64, 128, 0.06);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s cubic-bezier(.2,.8,.2,1);
}
.stats div:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}
.stats strong {
  display: block;
  font-size: 2.2rem;
  font-family: 'Merriweather', serif;
  color: #004080;
  background: linear-gradient(135deg, #004080, #3b82c4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}
.stats span {
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========== FIND US ========== */
.find-us {
  padding: 4rem 0;
  background: #f1f1f1;
}
.find-us-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}
@media (max-width: 800px) {
  .find-us-grid {
    grid-template-columns: 1fr;
  }
}
.find-us-details {
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 64, 128, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.find-us-details h3 {
  font-size: 1.05rem;
  color: #004080;
  margin-top: 1.25rem;
}
.find-us-details h3:first-child {
  margin-top: 0;
}
.find-us-map {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  min-height: 280px;
}
.find-us-map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  position: relative;
  overflow: hidden;
  width: min(94%, 1200px);
  margin: 4rem auto;
  background: linear-gradient(135deg, #004080, #00264d);
  color: #fff;
  text-align: center;
  padding: 4.5rem 2rem;
  border-radius: 32px;
  box-shadow: 0 25px 60px rgba(0, 64, 128, 0.25);
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 65%);
  pointer-events: none;
}
.cta-banner > * {
  position: relative;
  z-index: 1;
}
.cta-banner h2 {
  margin-bottom: 1rem;
  color: #fff;
}
.cta-banner h2::after {
  background: #fff;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 1.75rem;
}
.cta-banner .btn {
  background: #fff;
  color: #004080;
}
.cta-banner .btn:hover {
  background: #eef3f9;
  color: #00264d;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* ========== FOOTER ========== */
.footer {
  background: #111;
  color: #bbb;
  padding: 3.5rem 0 1rem;
  border-top: 3px solid #004080;
  border-radius: 32px 32px 0 0;
}
.footer p {
  color: #bbb;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer h3 {
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.footer ul {
  list-style: none;
}
.footer ul li {
  margin-bottom: 0.5rem;
}
.footer ul li a {
  color: #bbb;
}
.footer ul li a:hover {
  color: #fff;
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #888;
}
.footer-bottom p {
  color: #888;
  margin: 0;
}

/* ========== SCROLL ANIMATIONS ========== */
.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVENESS ========== */
@media (max-width: 900px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
}
@media (max-width: 480px) {
  .highlights {
    margin-top: -3rem;
  }
  .cta-banner {
    border-radius: 24px;
    padding: 3.5rem 1.5rem;
  }
  h1 {
    font-size: 2rem;
  }
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== CURRENT PAGE + FOOTER SOCIAL ========== */
nav ul li a.active {
  background: #004080;
  color: #fff;
}
nav ul li a.active:hover {
  background: #00264d;
  color: #fff;
}
/* .footer ul.reset */
.footer ul {
  list-style: none;
  padding: 0;
}
button.burger {
  background: transparent;
  border: none;
  padding: 0;
}
.footer a {
  color: #bbb;
}
.footer a:hover {
  color: #fff;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 500;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.footer .social-link:hover {
  background: #004080;
  border-color: #004080;
  color: #fff;
}

/* ========== SLIDING NAV PILL ========== */
@media (min-width: 901px) {
  nav ul.has-pill {
    position: relative;
  }
}
.nav-pill,
.nav-hover {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50px;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), width 0.55s cubic-bezier(0.22, 1, 0.36, 1), height 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.nav-pill {
  background: linear-gradient(135deg, #004080, #0058a8);
  box-shadow: 0 6px 16px rgba(0, 64, 128, 0.28);
  view-transition-name: nav-pill;
}
.nav-hover {
  background: rgba(0, 64, 128, 0.08);
}
nav ul.has-pill li a {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}
nav ul.has-pill li a:hover,
nav ul.has-pill li a.active,
nav ul.has-pill li a.active:hover {
  background: transparent;
}
nav ul.has-pill li a.active {
  color: #fff;
}

/* ========== PAGE TRANSITIONS ========== */
@view-transition {
  navigation: auto;
}
.navbar {
  view-transition-name: navbar;
}
::view-transition-group(*) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(root) {
  animation: pageOut 0.25s ease both;
}
::view-transition-new(root) {
  animation: pageIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
html.page-enter body > *:not(.navbar) {
  animation: pageIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
html.page-leaving body > *:not(.navbar) {
  animation: pageOut 0.3s ease both;
}
@keyframes pageOut {
  to { opacity: 0; transform: translateY(-10px); }
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(18px); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
  .nav-pill,
  .nav-hover {
    transition: none;
  }
}

/* ========== NAVBAR ON TABLETS / SMALL LAPTOPS ========== */
nav ul li a {
  white-space: nowrap;
}
@media (min-width: 901px) and (max-width: 1180px) {
  nav ul li a {
    padding: 0.5rem 0.75rem;
    font-size: 0.92rem;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .logo {
    font-size: 0;
    gap: 0;
  }
}

/* ========== CENTRED BURGER MENU ========== */
@media (max-width: 900px) {
  nav ul li {
    text-align: center;
  }
  nav ul li a {
    display: inline-block;
  }
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #004080, #0058a8);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 64, 128, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  box-shadow: 0 14px 30px rgba(0, 64, 128, 0.4);
  transform: translateY(-3px);
}
:focus-visible {
  outline: 3px solid rgba(0, 64, 128, 0.45);
  outline-offset: 3px;
}

/* ========== FOUR-COLUMN FOOTER ========== */
.footer-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== COMING UP ========== */
.coming-up {
  margin: 0 auto 4rem;
}
.coming-up-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.coming-up-head h2 {
  text-align: left;
  font-size: 1.5rem;
  margin: 0;
  padding: 0;
}
.coming-up-head h2::after {
  display: none;
}
.coming-up-head a {
  font-weight: 600;
  white-space: nowrap;
}
.coming-up-head a::after {
  content: ' \2192';
}
.coming-up-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.coming-up-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 1.1rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 64, 128, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.cu-date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(0, 64, 128, 0.08);
  color: #004080;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.cu-date strong {
  font-family: 'Merriweather', serif;
  font-size: 1.35rem;
  letter-spacing: 0;
}
.coming-up-item.today .cu-date {
  background: linear-gradient(135deg, #004080, #0058a8);
  color: #fff;
}
.cu-text {
  display: flex;
  flex-direction: column;
}
.cu-text strong {
  color: #004080;
}
.cu-text em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: #004080;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.cu-text small {
  color: #666;
  font-size: 0.85rem;
}
@media (max-width: 900px) {
  .coming-up-list {
    grid-template-columns: 1fr;
  }
}

/* ========== FOOTER PRIVACY LINK ========== */
.footer-bottom a {
  color: #888;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover {
  color: #fff;
}

/* ========== NAVBAR FIT (9 LINKS) ========== */
.logo {
  white-space: nowrap;
}
@media (min-width: 901px) {
  nav ul li a {
    padding: 0.55rem 0.9rem;
  }
}
@media (min-width: 901px) and (max-width: 1280px) {
  nav ul li a {
    padding: 0.5rem 0.7rem;
    font-size: 0.92rem;
  }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .logo {
    font-size: 0;
    gap: 0;
  }
}
@media (min-width: 901px) and (max-width: 1000px) {
  nav ul {
    gap: 0;
  }
  nav ul li a {
    padding: 0.45rem 0.55rem;
    font-size: 0.88rem;
  }
}

/* ========== DROPDOWN MENU (Parents & Students) ========== */
.has-dropdown {
  position: relative;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
  padding: 0.55rem 0.9rem;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: #004080;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.4s ease;
}
.dropdown-toggle::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s ease;
}
.has-dropdown.open .dropdown-toggle::after {
  transform: translateY(1px) rotate(-135deg);
}
.dropdown-toggle.active {
  color: #fff;
}
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 290px;
  padding: 0.5rem;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 64, 128, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.25s;
  z-index: 5;
}
/* invisible bridge so the menu doesn't close while moving the mouse down to it */
.dropdown::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (hover: hover) and (min-width: 901px) {
  .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}
nav ul li .dropdown a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  text-align: left;
  white-space: normal;
  font-size: 1rem;
  color: #004080;
  background: transparent;
  view-transition-name: none;
}
nav ul li .dropdown a strong {
  font-weight: 600;
}
nav ul li .dropdown a small {
  font-size: 0.8rem;
  color: #666;
}
nav ul.has-pill li .dropdown a:hover,
nav ul.has-pill li .dropdown a.current {
  background: rgba(0, 64, 128, 0.07);
  color: #004080;
}
@media (min-width: 901px) and (max-width: 1280px) {
  .dropdown-toggle {
    padding: 0.5rem 0.7rem;
    font-size: 0.92rem;
  }
}
@media (min-width: 901px) and (max-width: 1000px) {
  .dropdown-toggle {
    padding: 0.45rem 0.55rem;
    font-size: 0.88rem;
  }
}
/* inside the burger menu the two choices open underneath */
@media (max-width: 900px) {
  .has-dropdown {
    text-align: center;
  }
  .dropdown-toggle {
    padding: 0.75rem 1rem;
  }
  .dropdown {
    position: static;
    width: auto;
    margin: 0.25rem 0 0.5rem;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    transform: none;
    display: none;
  }
  .dropdown::before {
    display: none;
  }
  .has-dropdown.open .dropdown {
    display: block;
    transform: none;
  }
  nav ul li .dropdown a {
    text-align: center;
    align-items: center;
    background: rgba(0, 64, 128, 0.05);
    margin: 0.35rem 0;
  }
}

/* ========== NOTICE BANNER ========== */
.notice-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.45rem 3rem 0.45rem 1rem;
  background: linear-gradient(90deg, #00264d, #004080);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  view-transition-name: notice-bar;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.notice-bar p {
  margin: 0;
  color: #fff;
}
.notice-bar a {
  margin-left: 0.35rem;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.notice-bar a::after {
  content: ' \2192';
}
.notice-bar a:hover {
  color: #cfe2f7;
}
.notice-close {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.notice-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.notice-bar.urgent {
  background: linear-gradient(90deg, #7f1d1d, #b3261e);
}
.notice-bar.urgent p::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: #fff;
  vertical-align: middle;
  animation: notice-pulse 1.6s ease-in-out infinite;
}
@keyframes notice-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.notice-bar.closing {
  transform: translateY(-100%);
  opacity: 0;
}
@media print {
  .notice-bar {
    display: none !important;
  }
}

/* ========== QUICK LINKS IN THE MENU ========== */
.dropdown-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.75rem 0.5rem 0.35rem;
  border-top: 1px solid rgba(0, 64, 128, 0.08);
}
.dropdown-quick span {
  width: 100%;
  padding: 0 0.5rem 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6b6b;
}
nav ul li .dropdown .dropdown-quick a {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  background: rgba(0, 64, 128, 0.06);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}
nav ul li .dropdown .dropdown-quick a::after {
  content: '\2197';
  font-size: 0.75rem;
}
nav ul.has-pill li .dropdown .dropdown-quick a:hover {
  background: #004080;
  color: #fff;
}
@media (max-width: 900px) {
  .dropdown-quick {
    justify-content: center;
    border-top: none;
    padding: 0.25rem 0 0.5rem;
  }
  .dropdown-quick span {
    text-align: center;
  }
}

/* ========== SCROLLABLE PHONE MENU ========== */
@media (max-width: 900px) {
  nav ul {
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  html.has-notice nav ul {
    max-height: calc(100vh - 170px);
    max-height: calc(100dvh - 170px);
  }
  nav ul li a,
  .dropdown-toggle {
    padding: 0.6rem 1rem;
  }
  nav ul li .dropdown a {
    padding: 0.6rem 1rem;
  }
}
