:root {
  --njmt-navy: #082f5b;
  --njmt-blue: #0b5fa5;
  --njmt-sky: #1e88d8;
  --njmt-gold: #f3b61f;
  --njmt-red: #c62828;
  --njmt-green: #18864b;
  --njmt-light: #f4f8fc;
  --njmt-dark: #071c2f;
  --njmt-white: #ffffff;
  --njmt-muted: #667789;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #edf5fb 0%, #ffffff 58%);
  color: var(--njmt-dark);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2000;
  background: #fff;
  color: var(--njmt-navy);
  padding: .75rem 1rem;
  border-radius: .5rem;
}

.site-header {
  position: relative;
  z-index: 10;
  background:
    radial-gradient(circle at 85% 20%, rgba(243, 182, 31, .20), transparent 25%),
    linear-gradient(110deg, var(--njmt-navy), var(--njmt-blue));
  color: var(--njmt-white);
  border-bottom: 5px solid var(--njmt-gold);
}

.brand-logo-link { display: inline-flex; }

.brand-logo {
  width: 118px;
  height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(0,0,0,.25));
  transition: transform .25s ease;
}
.brand-logo:hover { transform: scale(1.035); }

.header-title-wrap {
  border-left: 1px solid rgba(255,255,255,.28);
  padding-left: 2rem;
}

.header-kicker {
  color: #dceeff;
  font-size: .78rem;
  letter-spacing: .12em;
  font-weight: 700;
}

.header-title {
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1;
}

.header-subtitle { color: #eaf5ff; font-size: 1.05rem; }
.main-area { flex: 1; }

.section-menu {
  border-radius: 1.15rem;
  top: 1.25rem;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}

.section-menu-title { color: var(--njmt-navy); }

.section-btn {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: .9rem;
  border: 0;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  color: #fff;
  font-weight: 750;
  text-align: left;
  box-shadow: 0 8px 18px rgba(7, 28, 47, .12);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.section-btn i {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  font-size: 1.2rem;
}

.section-btn:hover,
.section-btn:focus-visible {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 13px 25px rgba(7, 28, 47, .20);
  filter: brightness(1.06);
}

.section-btn-preschool { background: linear-gradient(135deg, #e83e8c, #9c27b0); }
.section-btn-primary { background: linear-gradient(135deg, #f39c12, #e67e22); }
.section-btn-secondary { background: linear-gradient(135deg, var(--njmt-blue), var(--njmt-sky)); }
.section-btn-technical { background: linear-gradient(135deg, #17623b, #24935a); }

.content-card { border-radius: 1.2rem; }
.content-card-header { background: #fff; }
.section-eyebrow {
  color: var(--njmt-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.content-card-header h2 { color: var(--njmt-navy); font-weight: 800; }
.featured-badge { background: #fff4d3; color: #7e5700; }

.featured-slide {
  min-height: clamp(430px, 62vh, 650px);
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 6rem);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.slide-one { background: linear-gradient(125deg, #082f5b, #1685cc); }
.slide-two { background: linear-gradient(125deg, #451a03, #c56d08); }
.slide-three { background: linear-gradient(125deg, #36105f, #8f2ec4); }
.slide-four { background: linear-gradient(125deg, #0b412a, #168457); }

.featured-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 38px 38px;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 85% 25%, rgba(255,255,255,.22), transparent 20%),
    linear-gradient(90deg, rgba(2,13,24,.65), rgba(2,13,24,.08));
}

.featured-content { max-width: 760px; color: #fff; }
.featured-label {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .45rem .85rem;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  font-weight: 700;
  letter-spacing: .05em;
  backdrop-filter: blur(8px);
}
.featured-content h3 {
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.featured-content p { max-width: 650px; font-size: clamp(1rem, 2vw, 1.3rem); color: #eff8ff; }
.featured-content .btn { color: var(--njmt-navy); border-radius: .8rem; }

.carousel-control-prev,
.carousel-control-next { width: 7%; }
.carousel-indicators [data-bs-target] { width: 38px; height: 5px; border-radius: 999px; }

.site-footer {
  background: linear-gradient(135deg, #061d33, #093f70);
  color: #eaf4fd;
  border-top: 5px solid var(--njmt-gold);
}
.footer-heading { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .85rem;
  color: #cfe0ee;
}
.footer-list li > i { color: var(--njmt-gold); margin-top: .15rem; }
.footer-links li { margin-bottom: .66rem; }
.footer-links a,
.site-footer a { color: #dceeff; text-decoration: none; }
.footer-links a { display: inline-flex; align-items: center; gap: .65rem; }
.footer-links a i { color: var(--njmt-gold); }
.footer-links a:hover,
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal-note {
  padding: .9rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .8rem;
  background: rgba(255,255,255,.06);
  color: #cbdce9;
  font-size: .9rem;
}
.footer-divider { border-color: rgba(255,255,255,.18); opacity: 1; }
.footer-credit { color: var(--njmt-gold); font-weight: 700; }

@media (max-width: 991.98px) {
  .header-title-wrap { border-left: 0; padding-left: 0; }
  .brand-logo { width: 96px; height: 96px; }
  .section-menu { position: static !important; }
  .section-menu nav { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid !important; }
}

@media (max-width: 575.98px) {
  .section-menu nav { grid-template-columns: 1fr; }
  .featured-slide { min-height: 500px; padding: 2rem 1.35rem 4.5rem; align-items: flex-end; }
  .carousel-control-prev,
  .carousel-control-next { display: none; }
}

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

/* =========================================================
   PRESCHOOL / KINDER PAGE
   ========================================================= */
.preschool-page {
  background:
    radial-gradient(circle at 8% 28%, rgba(232, 62, 140, .08), transparent 19rem),
    radial-gradient(circle at 94% 72%, rgba(30, 136, 216, .10), transparent 24rem),
    linear-gradient(180deg, #edf5fb 0%, #fff 58%);
}

.preschool-main-column { min-width: 0; }

.preschool-welcome {
  border-radius: 1.2rem;
  overflow: hidden;
}

.preschool-actions {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.96);
  isolation: isolate;
}

.preschool-actions::before,
.preschool-actions::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.preschool-actions::before {
  right: -4rem;
  top: -3rem;
  width: 20rem;
  height: 20rem;
  border-radius: 48% 52% 61% 39% / 42% 48% 52% 58%;
  background:
    repeating-radial-gradient(circle at 45% 45%, rgba(30,136,216,.16) 0 4px, transparent 5px 22px),
    linear-gradient(145deg, rgba(232,62,140,.10), rgba(30,136,216,.14));
  transform: rotate(15deg);
}

.preschool-actions::after {
  right: 1.5rem;
  bottom: 1.4rem;
  width: 12rem;
  height: 8rem;
  opacity: .42;
  background-image:
    radial-gradient(circle, var(--njmt-gold) 0 4px, transparent 5px),
    radial-gradient(circle, #e83e8c 0 4px, transparent 5px),
    radial-gradient(circle, var(--njmt-sky) 0 4px, transparent 5px);
  background-size: 42px 42px, 54px 54px, 68px 68px;
  background-position: 0 0, 14px 12px, 30px 22px;
}

.preschool-actions-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.level-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(105px, 155px) 1fr;
  align-items: stretch;
  gap: 1.1rem;
  padding: 1rem;
  border: 1px solid rgba(8,47,91,.10);
  border-radius: 1.2rem;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 28px rgba(7,28,47,.10);
  backdrop-filter: blur(10px);
  transition: transform .22s ease, box-shadow .22s ease;
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(7,28,47,.16);
}

.level-image-wrap {
  min-height: 130px;
  border-radius: 1rem;
  overflow: hidden;
  background: #eef6fd;
}

.level-image {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  display: block;
}

.level-link {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border: 0;
  border-radius: 1rem;
  padding: 1.35rem 1.5rem;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}

.level-link:hover,
.level-link:focus-visible { color: #fff; }
.level-link-kindergarten { background: linear-gradient(135deg, #e83e8c, #9c27b0); }
.level-link-transition { background: linear-gradient(135deg, #0b5fa5, #1e88d8); }
.level-link-title { font-size: clamp(1.55rem, 3vw, 2.5rem); font-weight: 850; line-height: 1; }
.level-link-copy { margin-top: .55rem; color: rgba(255,255,255,.88); }
.level-link-icon {
  position: absolute;
  right: 2rem;
  font-size: 1.8rem;
  opacity: .85;
}

.preschool-tip {
  border-left: 5px solid var(--njmt-gold);
  border-radius: .9rem;
  background: rgba(255,244,211,.85);
  color: #604300;
}

@media (max-width: 767.98px) {
  .level-card { grid-template-columns: 92px 1fr; gap: .75rem; padding: .75rem; }
  .level-image-wrap,
  .level-image,
  .level-link { min-height: 112px; }
  .level-link { padding: 1rem; }
  .level-link-copy { display: none; }
  .level-link-icon { right: 1.25rem; }
}

@media (max-width: 459.98px) {
  .level-card { grid-template-columns: 1fr; }
  .level-image-wrap { min-height: 155px; }
  .level-image { min-height: 155px; max-height: 190px; }
  .level-link { min-height: 112px; }
}


/* =========================================================
   STICKY GLOBAL HEADER AND DESKTOP NAVIGATION
   The header remains visible. The left navigation remains
   inside <main>, so it naturally stops before the footer.
   ========================================================= */
:root {
  --sticky-header-height: 0px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
}

@media (min-width: 992px) {
  .section-menu.sticky-lg-top {
    position: sticky !important;
    top: calc(var(--sticky-header-height) + 1rem) !important;
    max-height: calc(100vh - var(--sticky-header-height) - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Prevent anchor links from being hidden below the sticky header. */
[id] {
  scroll-margin-top: calc(var(--sticky-header-height) + 1.25rem);
}
