/* Shared visual layer for interior pages; page content remains in each HTML file. */
.interior-page {
  --site-blue: #2260d2;
  --site-teal: #40b0bf;
  --site-green: #27845a;
  --site-ink: #243447;
  --site-muted: #5b6878;
  background: #f4f7fb;
  color: var(--site-ink);
  font-family: "Jost", Arial, sans-serif;
}

.interior-page main {
  padding-top: 78px;
  overflow: hidden;
}

.interior-page .navbar {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(24, 51, 82, 0.1);
}

.interior-page .navbar-caption,
.interior-page .navbar .nav-link,
.interior-page .navbar .dropdown-item {
  color: var(--site-ink) !important;
}

.interior-page .navbar .nav-link:hover,
.interior-page .navbar .dropdown-item:hover {
  color: var(--site-blue) !important;
}

.interior-page main .section-hero,
.interior-page main > .fdb-block:first-child {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
  padding: 4.5rem 1rem 5rem;
  color: #fff;
  background: #173f73 url("../../img/ill/blue.svg") center / cover no-repeat;
  overflow: hidden;
}

.interior-page main .section-hero .shape {
  display: none;
}

.interior-page main .section-hero .separator {
  display: none;
}

.interior-page main .section-hero .fdb-block {
  width: 100%;
  padding: 0 0 1rem;
  color: #fff;
  background: transparent !important;
}

.interior-page main .section-hero h1,
.interior-page main .section-hero h2,
.interior-page main .section-hero p,
.interior-page main > .fdb-block:first-child h1,
.interior-page main > .fdb-block:first-child h2 {
  color: #fff !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.68);
}

.programs-page .programs-hero .programs-eyebrow {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.68);
}

.interior-page main .section-hero h1,
.interior-page main > .fdb-block:first-child h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.interior-page main .section-hero p,
.interior-page main > .fdb-block:first-child h2 {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.interior-page main .section-shaped,
.interior-page main > .fdb-block:not(:first-child) {
  padding: 3.25rem 0;
  background-color: #fff;
}

.interior-page main .section-shaped:nth-of-type(even),
.interior-page main > .fdb-block:nth-of-type(even) {
  background-color: #f4f7fb;
}

.interior-page main .section-shaped .container,
.interior-page main .fdb-block .container {
  max-width: 1120px;
}

.interior-page main h1,
.interior-page main h2,
.interior-page main h3,
.interior-page main h4,
.interior-page main h5 {
  color: #183c68;
  line-height: 1.25;
}

.interior-page main .lead,
.interior-page main p {
  color: var(--site-muted);
  line-height: 1.75;
}

.interior-page main .section-hero .lead,
.interior-page main > .fdb-block:first-child .lead {
  color: rgba(255, 255, 255, 0.92);
}

.interior-page main img {
  max-width: 100%;
  height: auto;
}

.interior-page main .img-fluid {
  border-radius: 16px;
}

.interior-page main .btn-primary,
.interior-page main .btn-secondary,
.interior-page main .btn-success {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  background: var(--site-green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(39, 132, 90, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.interior-page main .btn-primary:hover,
.interior-page main .btn-secondary:hover,
.interior-page main .btn-success:hover {
  transform: translateY(-2px);
  background: #1e6c49;
  box-shadow: 0 10px 22px rgba(39, 132, 90, 0.25);
}

.interior-page main .sp-form-outer,
.interior-page main .fdb-box {
  border: 1px solid rgba(34, 96, 210, 0.08);
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 0 12px 36px rgba(24, 51, 82, 0.09);
}

.interior-page main .sp-form-outer {
  max-width: 860px;
  margin: 1rem auto 0;
  padding: 1.25rem;
}

.interior-page main .sp-form[sp-id="126654"] .sp-form-fields-wrapper {
  width: 100%;
  max-width: 640px;
}

.interior-page main .sp-form[sp-id="126654"] .sp-form-control {
  min-height: 42px;
  border-radius: 8px;
}

.interior-page main .sp-form[sp-id="126654"] .sp-button {
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--site-green);
}

.interior-page main .section-lg .row-grid {
  padding: 2rem 1.5rem;
  border-radius: 18px;
  background: #fff;
}

.interior-page main .section-lg .text-success {
  color: var(--site-muted) !important;
  font-size: 1.1rem;
  line-height: 1.65;
}

@media (max-width: 767px) {
  .interior-page main {
    padding-top: 70px;
  }

  .interior-page main .section-hero,
  .interior-page main > .fdb-block:first-child {
    min-height: 250px;
    padding: 3.25rem 1rem 3.75rem;
  }

  .interior-page main .section-shaped,
  .interior-page main > .fdb-block:not(:first-child) {
    padding: 2.25rem 0;
  }

  .interior-page main .sp-form-outer {
    padding: 0.75rem;
  }
}

.interior-page .legal-copy {
  max-width: 920px;
  margin: 0 auto;
  color: #4f5f71;
}

.interior-page .legal-copy h2 {
  margin: 2.25rem 0 0.8rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(34, 96, 210, 0.14);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.interior-page .legal-copy h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.15rem;
}

.interior-page .legal-copy p,
.interior-page .legal-copy li {
  color: #536376;
  font-size: 1rem;
  line-height: 1.8;
}

.interior-page .legal-copy li + li {
  margin-top: 0.45rem;
}

.interior-page .legal-copy a {
  color: #2260d2;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.interior-page .legal-meta {
  color: #637487;
  font-size: 0.95rem;
}

.interior-page .legal-toc {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: #f4f7fb;
}
.interior-page .footer3 .bg-dark img {
  display: block;
  width: 40px;
  max-width: 40px;
  height: 40px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
}
/* Layered page backgrounds for the non-home pages. */
.interior-page {
  background-color: #f6f9fd;
  background-image:
    radial-gradient(ellipse at 7% 12%, rgba(64, 176, 191, 0.12), transparent 30rem),
    radial-gradient(ellipse at 94% 46%, rgba(255, 225, 97, 0.12), transparent 32rem),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 44%, #f4f8fc 100%);
  background-attachment: fixed;
}

.interior-page main {
  background-image:
    radial-gradient(ellipse at 100% 4%, rgba(34, 96, 210, 0.045), transparent 34rem),
    radial-gradient(ellipse at 0% 58%, rgba(64, 176, 191, 0.045), transparent 30rem);
}

.interior-page main .section-shaped:not(.section-hero) {
  background-color: #fff;
  background-image: linear-gradient(125deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 249, 255, 0.96) 56%, rgba(239, 250, 247, 0.96) 100%);
  border-top: 1px solid rgba(34, 96, 210, 0.045);
  border-bottom: 1px solid rgba(34, 96, 210, 0.045);
}

.interior-page main .section-shaped:not(.section-hero):nth-of-type(even) {
  background-color: #f2f7fc;
  background-image: linear-gradient(125deg, rgba(237, 246, 255, 0.97) 0%, rgba(245, 250, 251, 0.97) 55%, rgba(255, 250, 233, 0.92) 100%);
}

@media (max-width: 767px) {
  .interior-page {
    background-attachment: scroll;
  }
}

.programs-page .programs-hero {
  min-height: 430px;
}

.programs-page .programs-hero .container {
  position: relative;
  z-index: 1;
}

.programs-page .programs-eyebrow {
  margin-bottom: 0.75rem;
  color: #d5f4ef;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.programs-page .programs-eyebrow-dark {
  color: #27845a;
}

.programs-page .programs-hero .lead {
  margin: 0 auto;
  max-width: 760px;
}

.programs-page .programs-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.programs-page .programs-actions .btn,
.programs-page .programs-enrollment .btn {
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
}

.programs-page .programs-section,
.programs-page .programs-enrollment {
  background: #fff !important;
  background-image: none !important;
}

.programs-page .programs-subjects {
  background: #f3f8fc !important;
  background-image: none !important;
}

.programs-page .programs-levels,
.programs-page .programs-subjects .row.g-4 {
  row-gap: 1.5rem;
}

.programs-page .program-card,
.programs-page .program-subject {
  padding: 1.75rem;
  border: 1px solid rgba(34, 96, 210, 0.09);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(24, 51, 82, 0.07);
}

.programs-page .program-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: rgba(64, 176, 191, 0.16);
  color: #17657d;
  font-size: 0.85rem;
  font-weight: 800;
}

.programs-page .program-card h3,
.programs-page .program-subject h3 {
  margin-bottom: 0.65rem;
  color: #183c68;
  font-size: 1.3rem;
  font-weight: 700;
}

.programs-page .program-card p,
.programs-page .program-subject p {
  margin-bottom: 0;
  color: #5b6878;
  line-height: 1.7;
}

.programs-page .subject-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: #e8f5f4;
  color: #17657d;
  font-size: 1.35rem;
  font-weight: 800;
}

.programs-page .programs-note {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
}

.programs-page .programs-illustration {
  width: min(100%, 230px);
  max-height: 210px;
}

.programs-page .programs-contact-link {
  display: inline-block;
  margin-left: 1rem;
  color: #2260d2;
  font-weight: 600;
}

@media (max-width: 575px) {
  .programs-page .programs-contact-link {
    display: block;
    margin: 1rem 0 0;
  }
}
