:root {
  --blue-950: #08233f;
  --blue-800: #0b4f8f;
  --blue-600: #176eb8;
  --green-500: #19a974;
  --green-600: #0f8f61;
  --ink: #122033;
  --muted: #607084;
  --line: #dbe7f2;
  --soft: #f3f8fc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(8, 35, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 253, 0.86)),
    rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 44px rgba(8, 35, 63, 0.08);
  backdrop-filter: blur(22px);
  width: 100%;
}

/* Fullscreen Container */
.fullscreen-container {
  position: relative;
  width: 100%;
  margin-top: 76px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Fullscreen Sections */
.fullscreen-section {
  display: none;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  flex: 1;
  flex-direction: column;
}

.fullscreen-section.active {
  display: flex;
  z-index: 1;
}

.fullscreen-section .section-inner {
  flex: 1;
  padding: clamp(120px, 12vw, 140px) clamp(18px, 5vw, 72px) clamp(40px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Ensure sections account for fixed header */
.fullscreen-section {
  scroll-margin-top: 76px;
}

/* Active nav link indicator */
.site-nav a.is-active {
  color: var(--blue-800);
  text-shadow: 0 0 18px rgba(11, 79, 143, 0.18);
}

.site-nav a.is-active::before {
  opacity: 1;
  transform: scaleX(1);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(250px, 48vw);
  min-width: 176px;
}

.brand-logo {
  width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.header-motto {
  max-width: 270px;
  margin: 0;
  color: #9b7521;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  background: linear-gradient(90deg, #9b7521, #eac866, #fff2b4, #b98519);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(234, 200, 102, 0.2));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.25vw, 18px);
  color: #31445a;
  font-weight: 650;
  font-size: 0.88rem;
}

.site-nav > a,
.nav-dropdown-trigger {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: #31445a;
  white-space: nowrap;
}

.site-nav > a::before,
.nav-dropdown-trigger::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-800), var(--green-500));
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav > a:hover,
.site-nav > a:focus-visible,
.site-nav > a.is-active,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible,
.nav-dropdown.has-active-link .nav-dropdown-trigger {
  color: var(--blue-800);
  text-shadow: 0 0 18px rgba(11, 79, 143, 0.18);
}

.site-nav > a:hover::before,
.site-nav > a:focus-visible::before,
.site-nav > a.is-active::before,
.nav-dropdown.is-open .nav-dropdown-trigger::before,
.nav-dropdown:hover .nav-dropdown-trigger::before,
.nav-dropdown:focus-within .nav-dropdown-trigger::before,
.nav-dropdown.has-active-link .nav-dropdown-trigger::before {
  opacity: 1;
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  transition: color 180ms ease;
}

.nav-dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.nav-dropdown.is-open .nav-dropdown-trigger,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: var(--blue-800);
}

.nav-dropdown.is-open .nav-dropdown-trigger::after,
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
  transform: translateY(1px) rotate(225deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 70;
  display: grid;
  min-width: 240px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 253, 0.9)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 26px 70px rgba(8, 35, 63, 0.18);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-dropdown-wide .nav-dropdown-menu {
  min-width: min(420px, calc(100vw - 36px));
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  padding: 12px 13px;
  border-radius: 6px;
  color: #31445a;
  font-size: 0.9rem;
  font-weight: 850;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-dropdown-menu a:hover {
  color: var(--blue-800);
  background: rgba(238, 246, 253, 0.96);
  transform: translateX(3px);
}

.nav-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-nav .nav-social-btn {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  border-radius: 8px;
  background: var(--blue-800);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.site-nav .nav-social-btn:hover {
  color: var(--white);
  background: var(--green-600);
  transform: translateY(-1px);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta,
.btn-primary {
  color: var(--white);
  background: var(--blue-800);
  box-shadow: 0 12px 24px rgba(11, 79, 143, 0.2);
}

.about-page-main {
  margin-top: 76px;
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 42%);
}

.about-topic-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 10vw, 132px) clamp(18px, 5vw, 72px) clamp(56px, 7vw, 96px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 35, 63, 0.92), rgba(11, 79, 143, 0.86)),
    url("images/site/individual-tutoring.jpg") center/cover;
}

.about-topic-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(8, 35, 63, 0.42));
  pointer-events: none;
}

.about-topic-hero-inner,
.about-topic-layout,
.about-related-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.about-topic-hero .eyebrow {
  color: #9df0cf;
}

.about-topic-hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(2.35rem, 6vw, 4.7rem);
  line-height: 1.02;
}

.about-topic-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.about-topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 0px);
}

.about-topic-article,
.about-topic-aside,
.about-related-card {
  border: 1px solid rgba(219, 231, 242, 0.9);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(8, 35, 63, 0.08);
}

.about-topic-article {
  padding: clamp(28px, 5vw, 54px);
}

.about-topic-article h2,
.about-topic-aside h2,
.about-related h2 {
  margin: 0 0 16px;
  color: var(--blue-950);
  line-height: 1.16;
}

.about-topic-article p {
  margin: 0 0 20px;
  color: #3f5268;
  font-size: 1.05rem;
}

.about-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.about-highlight {
  padding: 18px;
  border-radius: 8px;
  background: #f3f8fc;
  border: 1px solid var(--line);
}

.about-highlight strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-800);
}

.about-highlight span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.about-topic-aside {
  align-self: start;
  position: sticky;
  top: 100px;
  padding: 24px;
}

.about-topic-aside nav {
  display: grid;
  gap: 10px;
}

.about-topic-aside a {
  padding: 11px 12px;
  border-radius: 6px;
  color: #31445a;
  font-weight: 800;
  background: #f8fbfe;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.about-topic-aside a:hover,
.about-topic-aside a.is-current {
  color: var(--white);
  background: var(--blue-800);
  transform: translateX(3px);
}

.about-related {
  padding: 0 clamp(18px, 5vw, 72px) clamp(60px, 8vw, 100px);
}

.about-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-related-card {
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.about-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(8, 35, 63, 0.12);
}

.about-related-card strong {
  display: block;
  color: var(--blue-950);
  line-height: 1.3;
}

.about-related-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.btn-primary:hover,
.header-cta:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
}

.btn-whatsapp {
  color: var(--white);
  background: var(--green-600);
  box-shadow: 0 12px 24px rgba(15, 143, 97, 0.22);
}

.btn-whatsapp:hover {
  background: var(--green-500);
  transform: translateY(-1px);
}

.btn-outline-light {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.btn-soft {
  color: var(--blue-800);
  background: #eef6fd;
}

.btn-soft:hover {
  color: var(--white);
  background: var(--blue-800);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue-950);
}

.hero {
  position: relative;
  min-height: 700px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url("images/site/crestfield-student-group.jpg") center/cover;
  transform: scale(1.02);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(8, 35, 63, 0.9), rgba(8, 35, 63, 0.62) 48%, rgba(8, 35, 63, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 96px 0 118px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-500);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-motto {
  max-width: 760px;
  margin: 22px 0 0;
  color: #f3d779;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  background: linear-gradient(90deg, #cfa43a, #fff2b4 38%, #f0c95f 72%, #b98519);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(234, 200, 102, 0.34));
  animation: mottoFadeUp 900ms ease both 180ms;
}

.hero-subtitle {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.12rem, 2vw, 1.5rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 46px;
}

.hero-stats span {
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-stats strong {
  display: block;
  color: var(--white);
}

.section {
  padding: clamp(70px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.section-tint {
  background: var(--soft);
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 36px;
  text-align: center;
}

h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  color: var(--blue-950);
  font-size: 1.22rem;
}

p {
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.section-copy p {
  max-width: 620px;
  font-size: 1.06rem;
}

.motto-quote {
  position: relative;
  max-width: 680px;
  margin: 28px 0 0;
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid rgba(207, 164, 58, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 248, 221, 0.9), rgba(255, 255, 255, 0.78)),
    var(--white);
  box-shadow: 0 18px 45px rgba(8, 35, 63, 0.1);
  animation: mottoFadeUp 900ms ease both;
}

.motto-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translateX(-110%);
  animation: mottoShimmer 4.8s ease-in-out infinite;
}

.motto-quote p {
  position: relative;
  margin: 0;
  color: #9b7521;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(90deg, #9b7521, #d7a92e, #fff0a8, #b98519);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(234, 200, 102, 0.18));
}

.about-panel {
  position: relative;
}

.about-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.floating-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(310px, calc(100% - 36px));
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.floating-note strong,
.floating-note span {
  display: block;
}

.floating-note span {
  color: var(--muted);
}

.program-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card,
blockquote,
.step,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(8, 35, 63, 0.07);
}

.card {
  min-height: 268px;
  padding: 24px;
}

.program-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
  color: var(--white);
  border: 0;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: inherit;
  transition: transform 260ms ease;
}

.program-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 35, 63, 0.2), rgba(8, 35, 63, 0.84));
}

.program-card:hover::before {
  transform: scale(1.05);
}

.program-card h3,
.program-card p {
  color: var(--white);
}

.program-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.tuition-card {
  background-image: url("images/site/homework-writing-closeup.jpg");
}

.homeschool-card {
  background-image: url("images/site/individual-tutoring.jpg");
}

.exam-card {
  background-image: url("images/site/exam-revision-writing.jpg");
}

.online-card {
  background-image: url("images/site/planned-study-session.jpg");
}

.homeschool-premium {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 118px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(248, 251, 254, 0.96), rgba(255, 255, 255, 0.9) 42%, rgba(238, 246, 253, 0.95)),
    var(--white);
}

.homeschool-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(25, 169, 116, 0.16), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(207, 164, 58, 0.2), transparent 24%),
    linear-gradient(rgba(11, 79, 143, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 79, 143, 0.055) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

.homeschool-hero,
.homeschool-learning-lab,
.homeschool-card-grid {
  position: relative;
  z-index: 1;
}

.homeschool-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.86fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.homeschool-visual {
  position: relative;
  min-height: 520px;
}

.homeschool-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(8, 35, 63, 0.18);
}

.homeschool-floating-card {
  position: absolute;
  width: min(270px, 76%);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 48px rgba(8, 35, 63, 0.16);
  backdrop-filter: blur(16px);
  animation: homeschoolFloat 4.8s ease-in-out infinite;
}

.lesson-card {
  left: 18px;
  bottom: 24px;
}

.parent-card {
  top: 24px;
  right: 18px;
  animation-delay: 800ms;
}

.homeschool-floating-card span,
.classroom-panel span {
  display: block;
  color: var(--green-600);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.homeschool-floating-card strong {
  display: block;
  color: var(--blue-950);
  font-size: 1.05rem;
}

.homeschool-floating-card p {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.homeschool-copy h2 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.homeschool-copy p:not(.eyebrow) {
  max-width: 660px;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.homeschool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.homeschool-learning-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.6fr) minmax(240px, 0.6fr);
  gap: 16px;
  margin-top: clamp(42px, 6vw, 76px);
}

.classroom-panel {
  overflow: hidden;
  border: 1px solid rgba(219, 231, 242, 0.92);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 253, 0.78)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(8, 35, 63, 0.1);
  backdrop-filter: blur(18px);
}

.main-classroom {
  min-height: 310px;
}

.classroom-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.classroom-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-500);
}

.classroom-toolbar span:nth-child(2) {
  background: #f3d779;
}

.classroom-toolbar span:nth-child(3) {
  background: var(--blue-600);
}

.classroom-toolbar strong {
  margin-left: auto;
  color: var(--blue-950);
}

.classroom-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
  min-height: 254px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(8, 35, 63, 0.92), rgba(11, 79, 143, 0.78)),
    var(--blue-950);
}

.teacher-tile {
  display: grid;
  align-content: end;
  min-height: 220px;
  padding: 18px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(8, 35, 63, 0.12), rgba(8, 35, 63, 0.82)),
    url("images/site/study-concentration.jpg") center/cover;
}

.teacher-tile span,
.teacher-tile strong {
  color: var(--white);
}

.teacher-tile strong {
  font-size: 1.45rem;
}

.student-tiles {
  display: grid;
  gap: 10px;
}

.student-tiles i {
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.12);
  animation: homeschoolTileGlow 2.8s ease-in-out infinite;
}

.student-tiles i:nth-child(2n) {
  animation-delay: 380ms;
}

.study-plan-panel,
.recording-panel {
  display: grid;
  align-content: center;
  min-height: 310px;
  padding: 22px;
}

.classroom-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--blue-950);
  font-size: 1.25rem;
}

.study-plan-lines {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.study-plan-lines i {
  height: 12px;
  border-radius: 999px;
  background: #dbe7f2;
}

.study-plan-lines i:nth-child(1) {
  width: 90%;
}

.study-plan-lines i:nth-child(2) {
  width: 72%;
  background: rgba(25, 169, 116, 0.32);
}

.study-plan-lines i:nth-child(3) {
  width: 84%;
}

.recording-wave {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 70px;
  margin-top: 24px;
}

.recording-wave i {
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #cfa43a, var(--green-500));
  animation: homeschoolWave 1.4s ease-in-out infinite;
}

.recording-wave i:nth-child(1) {
  height: 44%;
}

.recording-wave i:nth-child(2) {
  height: 82%;
  animation-delay: 120ms;
}

.recording-wave i:nth-child(3) {
  height: 60%;
  animation-delay: 240ms;
}

.recording-wave i:nth-child(4) {
  height: 96%;
  animation-delay: 360ms;
}

.homeschool-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.homeschool-card-grid article {
  min-height: 236px;
  padding: 22px;
  border: 1px solid rgba(219, 231, 242, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(8, 35, 63, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.homeschool-card-grid article:hover {
  transform: translateY(-7px);
  border-color: rgba(207, 164, 58, 0.52);
  box-shadow: 0 26px 58px rgba(8, 35, 63, 0.14);
}

.homeschool-card-grid span {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--white);
  font-weight: 950;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-600) 66%, #cfa43a);
}

.homeschool-card-grid h3 {
  margin-bottom: 10px;
}

.homeschool-card-grid p {
  margin: 0;
}

.homeschool-card-grid .live-online-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 16px;
}

.live-online-card img {
  width: 100%;
  height: 100%;
  min-height: 204px;
  object-fit: cover;
  border-radius: 8px;
}

.live-online-card .homeschool-card-body {
  padding: 6px 4px;
}

@keyframes homeschoolFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes homeschoolTileGlow {
  0%,
  100% {
    opacity: 0.68;
  }

  50% {
    opacity: 1;
  }
}

@keyframes homeschoolWave {
  0%,
  100% {
    transform: scaleY(0.72);
  }

  50% {
    transform: scaleY(1);
  }
}

.coding-academy {
  background: var(--white);
}

.coding-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--blue-950);
}

.coding-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 35, 63, 0.92), rgba(8, 35, 63, 0.68) 52%, rgba(8, 35, 63, 0.24)),
    url("images/site/crestfield-branded-learning.jpg") center/cover;
  transform: scale(1.02);
}

.coding-hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 94px 0;
}

.coding-hero h2 {
  max-width: 720px;
  color: var(--white);
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

.coding-hero p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.coding-actions,
.coding-cta-actions,
.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.coding-actions {
  margin-top: 30px;
}

.coding-shell {
  padding: clamp(62px, 7vw, 104px) clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 24%, #f3f8fc 100%);
}

.academy-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(960px, 100%);
  margin: 0 auto 38px;
}

.academy-counters div,
.course-toolbar,
.course-card,
.instructor-grid article,
.faq-list details,
.newsletter {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(8, 35, 63, 0.07);
}

.academy-counters div {
  padding: 24px;
  text-align: center;
}

.academy-counters strong {
  display: block;
  color: var(--blue-950);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.academy-counters span {
  color: var(--muted);
  font-weight: 800;
}

.course-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: end;
  width: min(1120px, 100%);
  margin: 0 auto 48px;
  padding: 18px;
}

.course-search {
  margin: 0;
}

.course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  color: var(--blue-950);
  font: inherit;
  font-weight: 850;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--white);
  background: var(--blue-800);
  transform: translateY(-1px);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 79, 143, 0.28);
  box-shadow: var(--shadow);
}

.course-card.is-hidden {
  display: none;
}

.course-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--white);
  font-weight: 950;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-600));
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-meta span,
.footer-notes span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  color: var(--blue-800);
  font-size: 0.82rem;
  font-weight: 900;
  border-radius: 8px;
  background: #eef6fd;
}

.course-card h3 {
  margin-bottom: 0;
}

.course-card p {
  margin: 0;
}

.course-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-card li {
  position: relative;
  padding-left: 24px;
  color: #31445a;
  font-weight: 700;
}

.course-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-500);
}

.empty-courses {
  display: none;
  margin: 18px 0 0;
  text-align: center;
  font-weight: 800;
}

.empty-courses.is-visible {
  display: block;
}

.academy-split,
.coding-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: clamp(58px, 7vw, 92px);
}

.instructors,
.faq-section {
  min-width: 0;
}

.instructors h2,
.faq-section h2,
.coding-contact h2,
.newsletter h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.instructor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.instructor-grid article {
  padding: 18px;
}

.instructor-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 8px;
}

.academy-testimonials,
.faq-section,
.coding-cta,
.newsletter {
  margin-top: clamp(58px, 7vw, 92px);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.faq-list details {
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  padding: 18px 20px;
  color: var(--blue-950);
  font-weight: 900;
  cursor: pointer;
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-list p {
  margin: 0;
  padding: 18px 20px 22px;
}

.coding-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 8px;
  background: var(--blue-950);
  box-shadow: var(--shadow);
}

.coding-cta h2,
.coding-cta p:not(.eyebrow) {
  color: var(--white);
}

.coding-cta p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.coding-contact {
  align-items: start;
}

.footer-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: end;
  padding: clamp(22px, 4vw, 34px);
}

.newsletter form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.partners {
  background: var(--white);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.partner-logo {
  display: grid;
  min-height: 168px;
  place-items: center;
  gap: 14px;
  padding: 22px 18px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  box-shadow: 0 10px 28px rgba(8, 35, 63, 0.07);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.partner-logo img {
  width: 100%;
  height: 74px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.partner-logo span {
  color: var(--blue-950);
  font-weight: 900;
}

.partner-logo:hover,
.partner-logo:focus-visible {
  border-color: rgba(25, 169, 116, 0.45);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(8, 35, 63, 0.12);
  transform: translateY(-4px);
}

.partner-logo:hover img,
.partner-logo:focus-visible img {
  transform: scale(1.04);
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 34px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 8px;
  background: var(--blue-800);
}

.why {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.benefit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 172px;
  padding: 22px;
  border-left: 0;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.benefit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: inherit;
  transition: transform 260ms ease;
}

.benefit::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 35, 63, 0.18), rgba(8, 35, 63, 0.82));
}

.benefit:hover::before {
  transform: scale(1.05);
}

.benefit strong,
.benefit span {
  display: block;
}

.benefit strong {
  color: var(--white);
  margin-bottom: 8px;
}

.benefit span {
  color: rgba(255, 255, 255, 0.84);
}

.small-group-benefit {
  background-image: url("images/site/crestfield-student-group-alt.jpg");
}

.tutor-benefit {
  background-image: url("images/site/individual-tutoring.jpg");
}

.flexible-benefit {
  background-image: url("images/site/sports-field.jpg");
}

.tools-benefit {
  background-image: url("images/site/planned-study-session.jpg");
}

.tracking-benefit {
  background-image: url("images/site/student-revision-notes.jpg");
}

.parents-choice {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbfe 38%, #eef6fd 100%),
    var(--soft);
}

.parents-choice::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 79, 143, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 79, 143, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}

.parents-choice .section-heading,
.parent-stats,
.parent-benefit-grid {
  position: relative;
  z-index: 1;
}

.parents-choice .section-heading p:not(.eyebrow) {
  max-width: 820px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

.parent-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1040px, 100%);
  margin: 0 auto 34px;
}

.parent-stats div {
  min-height: 132px;
  padding: 24px 18px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(238, 246, 253, 0.72)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 38px rgba(8, 35, 63, 0.1);
  backdrop-filter: blur(16px);
}

.parent-stats strong {
  display: block;
  color: var(--blue-950);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1;
}

.parent-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 900;
}

.parent-benefit-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.parent-benefit {
  isolation: isolate;
  justify-content: flex-start;
  min-height: 320px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: var(--blue-950);
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(8, 35, 63, 0.16);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.parent-benefit::before {
  z-index: -1;
  background: inherit;
  transform: scale(1);
  opacity: 1;
  transition: transform 460ms ease, filter 460ms ease;
}

.parent-benefit::after {
  display: block;
  background:
    linear-gradient(180deg, rgba(8, 35, 63, 0.16) 0%, rgba(8, 35, 63, 0.58) 44%, rgba(6, 25, 45, 0.94) 100%),
    linear-gradient(135deg, rgba(11, 79, 143, 0.2), rgba(25, 169, 116, 0.18));
}

.parent-benefit:hover {
  transform: translateY(-8px);
  border-color: rgba(25, 169, 116, 0.55);
  box-shadow: 0 28px 64px rgba(8, 35, 63, 0.24);
}

.parent-benefit:hover::before {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.04);
}

.parent-benefit-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 950;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--blue-950), var(--blue-600) 62%, #cfa43a);
  box-shadow:
    0 14px 28px rgba(11, 79, 143, 0.22),
    inset 0 0 18px rgba(255, 255, 255, 0.16);
  animation: parentIconFloat 3.4s ease-in-out infinite;
}

.parent-benefit:nth-child(2n) .parent-benefit-icon {
  animation-delay: 260ms;
}

.parent-benefit:nth-child(3n) .parent-benefit-icon {
  animation-delay: 520ms;
}

.parent-benefit strong {
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
  font-size: 1.08rem;
  line-height: 1.2;
}

.parent-benefit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.cambridge-benefit {
  background-image: url("images/site/crestfield-branded-learning.jpg");
}

.homeschool-benefit {
  background-image: url("images/site/individual-tutoring.jpg");
}

.personalized-benefit {
  background-image: url("images/site/study-concentration.jpg");
}

.hybrid-benefit {
  background-image: url("WhatsApp Image 2026-05-17 at 20.05.10.jpeg");
}

.ai-benefit {
  background-image: url("images/site/planned-study-session.jpg");
}

.group-benefit {
  background-image: url("images/site/crestfield-student-group.jpg");
}

.exam-prep-benefit {
  background-image: url("images/site/exam-revision-writing.jpg");
}

.mentorship-benefit {
  background-image: url("WhatsApp Image 2026-05-17 at 20.05.08.jpeg");
}

.coding-benefit {
  background-image: url("images/site/branded-student-activity.jpg");
}

.global-benefit {
  background-image: url("images/site/crestfield-student-group-alt.jpg");
}

@keyframes parentIconFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.ai-study-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 14% 18%, rgba(25, 169, 116, 0.28), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(207, 164, 58, 0.22), transparent 26%),
    linear-gradient(135deg, #06192d 0%, #08233f 48%, #0b4f8f 100%);
}

.ai-study-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.ai-orb {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.58), transparent 18%),
    radial-gradient(circle, rgba(25, 169, 116, 0.28), transparent 68%);
  box-shadow: 0 0 48px rgba(25, 169, 116, 0.22);
  filter: blur(0.2px);
  opacity: 0.76;
  animation: aiOrbFloat 8s ease-in-out infinite;
}

.ai-orb-one {
  top: 48px;
  right: 8%;
}

.ai-orb-two {
  left: 5%;
  bottom: 58px;
  width: 96px;
  height: 96px;
  animation-delay: 1.6s;
}

.ai-study-layout,
.ai-study-features {
  position: relative;
  z-index: 1;
}

.ai-study-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.ai-study-copy h2 {
  max-width: 760px;
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.ai-study-copy p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.ai-study-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.ai-dashboard {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.ai-dashboard::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, transparent, rgba(25, 169, 116, 0.18), transparent, rgba(207, 164, 58, 0.16), transparent);
  animation: aiDashboardSweep 8s linear infinite;
}

.dashboard-top,
.dashboard-grid {
  position: relative;
  z-index: 1;
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.dashboard-status,
.dashboard-live {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 999px;
}

.dashboard-status {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-live {
  color: #09243f;
  background: #dff9ed;
  box-shadow: 0 0 22px rgba(25, 169, 116, 0.26);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-card {
  min-height: 156px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(8, 35, 63, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: aiCardPulse 4.2s ease-in-out infinite;
}

.dashboard-card:nth-child(2n) {
  animation-delay: 420ms;
}

.dashboard-card span {
  display: block;
  color: #8ee0bb;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-card strong {
  display: block;
  margin-top: 10px;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.25;
}

.focus-card {
  grid-column: span 2;
  min-height: 132px;
  background:
    linear-gradient(135deg, rgba(25, 169, 116, 0.28), rgba(11, 79, 143, 0.42)),
    rgba(8, 35, 63, 0.42);
}

.ai-progress {
  height: 9px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.ai-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ee0bb, #f3d779);
  animation: aiProgressGlow 2.8s ease-in-out infinite;
}

.ai-signal-bars {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 46px;
  margin-top: 22px;
}

.ai-signal-bars i {
  width: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3d779, #19a974);
  animation: aiBars 1.4s ease-in-out infinite;
}

.ai-signal-bars i:nth-child(1) {
  height: 28%;
}

.ai-signal-bars i:nth-child(2) {
  height: 52%;
  animation-delay: 120ms;
}

.ai-signal-bars i:nth-child(3) {
  height: 74%;
  animation-delay: 240ms;
}

.ai-signal-bars i:nth-child(4) {
  height: 100%;
  animation-delay: 360ms;
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 20px;
}

.mini-calendar i {
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
}

.mini-calendar i:nth-child(2),
.mini-calendar i:nth-child(5) {
  background: rgba(25, 169, 116, 0.54);
  box-shadow: 0 0 16px rgba(25, 169, 116, 0.24);
}

.insight-ring {
  display: grid;
  width: 74px;
  height: 74px;
  margin-top: 18px;
  place-items: center;
  color: var(--white);
  font-weight: 950;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #08233f 56%, transparent 58%),
    conic-gradient(#19a974 0 76%, rgba(255, 255, 255, 0.16) 76% 100%);
}

.ai-study-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(38px, 6vw, 72px);
}

.ai-study-features article {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: 0 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.ai-study-features article::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 20%, rgba(8, 35, 63, 0.54));
  opacity: 0.78;
}

.ai-study-features img {
  width: calc(100% + 48px);
  height: 168px;
  margin: 0 -24px 20px;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
  transition: transform 320ms ease, filter 320ms ease;
}

.ai-study-features article:hover {
  transform: translateY(-6px);
  border-color: rgba(243, 215, 121, 0.44);
  background: rgba(255, 255, 255, 0.13);
}

.ai-study-features article:hover img {
  transform: scale(1.06);
  filter: saturate(1.14) contrast(1.08);
}

.ai-study-features span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  margin: -44px 0 20px;
  place-items: center;
  color: #08233f;
  font-weight: 950;
  border-radius: 12px;
  background: linear-gradient(135deg, #8ee0bb, #f3d779);
  box-shadow: 0 16px 30px rgba(25, 169, 116, 0.18);
}

.ai-study-features h3 {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.ai-study-features p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

@keyframes aiOrbFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-18px) translateX(12px);
  }
}

@keyframes aiDashboardSweep {
  to {
    transform: rotate(1turn);
  }
}

@keyframes aiCardPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes aiProgressGlow {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.28);
  }
}

@keyframes aiBars {
  0%,
  100% {
    transform: scaleY(0.72);
  }

  50% {
    transform: scaleY(1);
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.gallery-grid figure:nth-child(1),
.gallery-grid figure:nth-child(5) {
  grid-column: span 2;
}

.gallery-grid figure:nth-child(2),
.gallery-grid figure:nth-child(6) {
  min-height: 420px;
}

.gallery-grid .virtual-teacher-feature {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 360px;
  border: 1px solid rgba(219, 231, 242, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(235, 248, 255, 0.9)),
    var(--white);
}

figure {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

figure img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 280ms ease;
}

figure:hover img {
  transform: scale(1.04);
}

figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  color: var(--white);
  font-weight: 800;
  border-radius: 8px;
  background: rgba(8, 35, 63, 0.78);
  backdrop-filter: blur(12px);
}

.virtual-teacher-feature img {
  min-height: 360px;
}

.virtual-teacher-feature figcaption {
  position: static;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  padding: clamp(24px, 4vw, 40px);
  color: var(--blue-950);
  background: transparent;
  backdrop-filter: none;
}

.virtual-teacher-feature figcaption span {
  display: block;
  margin-bottom: 12px;
  color: var(--green-600);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.virtual-teacher-feature figcaption h3 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.virtual-teacher-feature figcaption p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.crest-album {
  margin-top: clamp(32px, 5vw, 56px);
}

.crest-album-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.crest-album-heading h3 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.crest-album-group {
  margin-top: 28px;
}

.crest-album-group h4 {
  margin: 0 0 14px;
  color: var(--blue-900);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.crest-album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.crest-album-grid figure {
  min-height: auto;
  aspect-ratio: 4 / 3;
  box-shadow: 0 14px 34px rgba(8, 35, 63, 0.13);
}

.crest-album-grid figure:nth-child(6n + 1),
.crest-album-grid figure:nth-child(6n + 4) {
  aspect-ratio: 3 / 4;
}

.crest-album-grid figure:nth-child(9n + 3) {
  grid-column: span 2;
}

.crest-album-grid img {
  min-height: 100%;
}

.crest-album-grid figcaption {
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.2;
}

.skating-gallery {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(235, 248, 255, 0.95), rgba(255, 255, 255, 0.86) 44%, rgba(215, 237, 255, 0.94)),
    radial-gradient(circle at 15% 16%, rgba(23, 110, 184, 0.16), transparent 34%),
    radial-gradient(circle at 86% 20%, rgba(25, 169, 116, 0.12), transparent 28%);
}

.skating-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 79, 143, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 79, 143, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 82%, transparent);
}

.skating-gallery .section-heading,
.skating-carousel,
.skating-grid,
.skating-empty {
  position: relative;
  z-index: 1;
}

.skating-gallery .section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

.skating-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto 28px;
}

.skating-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 64%);
  gap: 18px;
  overflow-x: auto;
  padding: 10px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.skating-slide,
.skating-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 20px 50px rgba(8, 35, 63, 0.16);
  backdrop-filter: blur(16px);
}

.skating-slide {
  min-height: 430px;
  scroll-snap-align: center;
}

.skating-slide img,
.skating-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.skating-slide:hover img,
.skating-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.skating-slide figcaption,
.skating-card figcaption {
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(8, 35, 63, 0.72);
  backdrop-filter: blur(14px);
}

.skating-control,
.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: var(--blue-950);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
  backdrop-filter: blur(14px);
}

.skating-control {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.skating-control:hover,
.lightbox-close:hover,
.lightbox-nav:hover {
  transform: translateY(-1px);
  background: var(--white);
}

.skating-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.skating-card {
  min-height: 260px;
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease, box-shadow 240ms ease;
}

.skating-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.skating-card:hover {
  box-shadow: 0 26px 58px rgba(8, 35, 63, 0.22);
}

.skating-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 420px;
}

.skating-card.wide {
  grid-column: span 2;
}

.skating-empty {
  display: none;
  max-width: 760px;
  margin: 18px auto 0;
  padding: 16px 18px;
  color: #31445a;
  text-align: center;
  border: 1px solid rgba(11, 79, 143, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.skating-empty.is-visible {
  display: block;
}

.skating-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: clamp(16px, 4vw, 42px);
  background: rgba(8, 20, 35, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.skating-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  display: grid;
  min-height: auto;
  max-height: calc(100vh - 84px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.lightbox-frame img {
  width: 100%;
  max-height: calc(100vh - 84px);
  min-height: 0;
  object-fit: contain;
  background: #061525;
}

.lightbox-frame figcaption {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
}

.lightbox-nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2.1rem;
}

.testimonials {
  background: var(--soft);
}

.notes-section {
  scroll-margin-top: 86px;
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
}

.public-notes-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
  margin: 0 auto;
}

.notes-feed {
  display: grid;
  gap: 20px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.note-card,
.notes-admin {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(8, 35, 63, 0.07);
}

.note-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.note-card time {
  width: fit-content;
  padding: 6px 10px;
  color: var(--blue-800);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  border-radius: 999px;
  background: rgba(23, 110, 184, 0.1);
}

.note-card h3 {
  margin: 0;
}

.note-card p {
  margin: 0;
}

.note-read-more {
  justify-self: start;
  min-height: 38px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--blue-800);
  font: inherit;
  font-weight: 900;
  background: rgba(25, 169, 116, 0.12);
  cursor: pointer;
}

.notes-empty {
  display: none;
  margin: 0;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.notes-empty.is-visible {
  display: block;
}

.notes-load-more {
  justify-self: center;
}

.notes-load-more[hidden] {
  display: none;
}

.notes-admin {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 28px);
}

.notes-admin-copy p {
  margin: 10px 0 0;
}

.notes-form {
  display: grid;
  gap: 14px;
}

.notes-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-note-list {
  display: grid;
  gap: 10px;
}

.admin-note-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(219, 231, 242, 0.92);
  border-radius: 8px;
  background: #fbfdff;
}

.admin-note-item strong,
.admin-note-item time {
  display: block;
}

.admin-note-item time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-note-actions {
  display: flex;
  gap: 8px;
}

.admin-note-actions button {
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  background: var(--blue-800);
  cursor: pointer;
}

.admin-note-actions button[data-action="delete"] {
  background: #b42318;
}

.testimonial-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

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

.testimonials .testimonial-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.testimonials .testimonial-track > blockquote:not(.testimonial-card) {
  display: none;
}

.testimonial-card {
  flex: 0 0 min(380px, 86vw);
  min-height: 330px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-snap-align: start;
}

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

.profile-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 50%;
  background: var(--blue-800);
  box-shadow: 0 10px 22px rgba(11, 79, 143, 0.18);
}

.profile-icon.student-profile {
  background: var(--green-600);
  box-shadow: 0 10px 22px rgba(15, 143, 97, 0.18);
}

.student-type {
  color: var(--blue-950);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.program-badge {
  align-self: flex-start;
  padding: 7px 11px;
  color: var(--blue-800);
  font-size: 0.82rem;
  font-weight: 900;
  border: 1px solid rgba(23, 110, 184, 0.22);
  border-radius: 999px;
  background: #eef7ff;
}

.star-rating {
  color: #c88a13;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
}

.testimonial-card p {
  flex: 1;
}

.testimonial-control {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23, 110, 184, 0.2);
  border-radius: 50%;
  color: var(--blue-800);
  font-size: 2rem;
  line-height: 1;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(8, 35, 63, 0.1);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.testimonial-control:hover {
  transform: translateY(-2px);
  background: #f8fcff;
  box-shadow: 0 16px 34px rgba(8, 35, 63, 0.14);
}

blockquote {
  margin: 0;
  padding: 28px;
}

blockquote p {
  margin-top: 0;
  color: #31445a;
  font-size: 1.05rem;
}

cite {
  color: var(--blue-800);
  font-style: normal;
  font-weight: 800;
}

.admissions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  background: var(--blue-950);
}

.admissions h2,
.admissions .admissions-copy p:not(.eyebrow) {
  color: var(--white);
}

.admissions .admissions-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

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

.step {
  min-height: 218px;
  padding: 24px;
}

.step span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 8px;
  background: var(--green-600);
}

.step strong {
  display: block;
  color: var(--blue-950);
  font-size: 1.12rem;
}

.careers {
  position: relative;
  overflow: hidden;
  background: #f8fbfe;
}

.careers-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--blue-950);
}

.careers-hero-bg,
.careers-hero-overlay {
  position: absolute;
  inset: 0;
}

.careers-hero-bg {
  background:
    linear-gradient(90deg, rgba(8, 35, 63, 0.92), rgba(8, 35, 63, 0.62) 56%, rgba(8, 35, 63, 0.2)),
    url("images/site/crestfield-student-group.jpg") center/cover;
  transform: scale(1.03);
  animation: careerHeroDrift 16s ease-in-out infinite alternate;
}

.careers-hero-overlay {
  background:
    linear-gradient(135deg, rgba(25, 169, 116, 0.22), transparent 36%),
    linear-gradient(0deg, rgba(8, 35, 63, 0.26), transparent 54%);
}

.careers-hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 110px 0;
  color: var(--white);
}

.careers-hero h2 {
  max-width: 740px;
  color: var(--white);
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.98;
}

.careers-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

.careers-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.careers-shell {
  padding: clamp(68px, 8vw, 116px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(180deg, #f8fbfe 0%, #ffffff 34%, #f3f8fc 100%),
    #f8fbfe;
}

.careers-section {
  margin-top: clamp(64px, 8vw, 112px);
}

.careers-section:first-child {
  margin-top: 0;
}

.career-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.career-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.career-benefit-grid,
.job-grid,
.timeline {
  display: grid;
  gap: 18px;
}

.career-benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.career-benefit-grid article,
.job-card,
.timeline article,
.teacher-application,
.online-teaching {
  border: 1px solid rgba(219, 231, 242, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 38px rgba(8, 35, 63, 0.08);
  backdrop-filter: blur(18px);
}

.career-benefit-grid article {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 24px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.career-benefit-grid article::before,
.job-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(11, 79, 143, 0.08), transparent 42%, rgba(207, 164, 58, 0.12));
  opacity: 0;
  transition: opacity 220ms ease;
}

.career-benefit-grid article:hover,
.job-card:hover {
  transform: translateY(-6px);
  border-color: rgba(207, 164, 58, 0.42);
  box-shadow: 0 26px 58px rgba(8, 35, 63, 0.14);
}

.career-benefit-grid article:hover::before,
.job-card:hover::before {
  opacity: 1;
}

.career-benefit-grid span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 950;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-600) 68%, #cfa43a);
  box-shadow: 0 14px 28px rgba(11, 79, 143, 0.2);
}

.career-benefit-grid h3,
.job-card h3,
.timeline h3 {
  position: relative;
  margin-bottom: 10px;
}

.career-benefit-grid p,
.job-card p,
.timeline p {
  position: relative;
  margin: 0;
}

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

.job-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.job-card div {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-card span,
.online-feature-list span,
.qualifications li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  color: var(--blue-800);
  font-size: 0.82rem;
  font-weight: 900;
  border-radius: 999px;
  background: #eef6fd;
}

.job-card .btn {
  position: relative;
  justify-self: start;
}

.qualifications {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(30px, 5vw, 48px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 35, 63, 0.96), rgba(11, 79, 143, 0.9)),
    var(--blue-950);
  box-shadow: var(--shadow);
}

.qualifications h2,
.qualifications p {
  color: var(--white);
}

.qualifications ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qualifications li {
  color: var(--blue-950);
  background: linear-gradient(135deg, #fff7d8, #ffffff);
}

.online-teaching {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: clamp(64px, 8vw, 112px);
  padding: clamp(28px, 5vw, 44px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(238, 246, 253, 0.76)),
    rgba(255, 255, 255, 0.8);
}

.online-teaching h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.online-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline {
  position: relative;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.timeline article {
  position: relative;
  padding: 22px;
}

.timeline span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--white);
  font-weight: 950;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-800), var(--green-600));
  box-shadow: 0 12px 24px rgba(11, 79, 143, 0.18);
}

.career-testimonials .testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-application {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
  margin-top: clamp(64px, 8vw, 112px);
  padding: clamp(28px, 5vw, 46px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.78);
}

.application-copy {
  position: sticky;
  top: 98px;
}

.application-copy h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
}

.application-progress {
  height: 10px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3edf6;
}

.application-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-500), #cfa43a);
  transition: width 220ms ease;
}

.application-progress-label,
.career-form-note {
  margin: 10px 0 0;
  color: var(--blue-800);
  font-weight: 900;
}

.career-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.career-form .full-field,
.career-form label:has(textarea) {
  grid-column: 1 / -1;
}

.career-form input,
.career-form textarea {
  background: rgba(255, 255, 255, 0.88);
}

.file-drop {
  position: relative;
  min-height: 138px;
  align-content: center;
  padding: 18px;
  border: 1px dashed rgba(11, 79, 143, 0.34);
  border-radius: 8px;
  background: rgba(238, 246, 253, 0.72);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-drop span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.file-drop.is-dragging,
.file-drop:hover {
  border-color: var(--green-500);
  background: rgba(25, 169, 116, 0.09);
  transform: translateY(-1px);
}

.file-drop.has-file {
  border-color: var(--green-500);
  background: rgba(25, 169, 116, 0.1);
}

.career-form-note.is-success {
  display: grid;
  min-height: 48px;
  place-items: center;
  color: var(--green-600);
  border-radius: 8px;
  background: rgba(25, 169, 116, 0.1);
  animation: careerSuccess 520ms ease both;
}

.career-floating-apply {
  position: fixed;
  right: 18px;
  bottom: 152px;
  z-index: 42;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  color: var(--white);
  font-weight: 950;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-800), #cfa43a);
  box-shadow: 0 16px 34px rgba(8, 35, 63, 0.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.career-floating-apply.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes careerHeroDrift {
  from {
    transform: scale(1.03) translateX(0);
  }

  to {
    transform: scale(1.08) translateX(18px);
  }
}

@keyframes careerSuccess {
  0% {
    transform: scale(0.96);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 64px);
}

.contact-info a {
  color: var(--blue-800);
  font-weight: 800;
}

.map-wrap {
  overflow: hidden;
  margin-top: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--blue-950);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(25, 169, 116, 0.18);
  border-color: var(--green-500);
}

.form-note {
  margin: 0;
  color: var(--green-600);
  font-weight: 800;
}

.site-footer {
  padding: clamp(48px, 6vw, 72px) clamp(18px, 5vw, 72px) 28px;
  color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(135deg, rgba(6, 25, 45, 0.98), rgba(8, 35, 63, 0.96)),
    #06192d;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(180px, 1fr));
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.footer-brand img {
  width: min(230px, 72vw);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.2;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.footer-brand p,
.footer-newsletter p {
  margin-top: 18px;
}

.footer-motto {
  color: #f3d779;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(90deg, #cfa43a, #fff2b4, #f0c95f);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(234, 200, 102, 0.26));
}

@keyframes mottoFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mottoShimmer {
  0%,
  54% {
    transform: translateX(-110%);
  }

  78%,
  100% {
    transform: translateX(110%);
  }
}

.footer-links,
.footer-contact,
.footer-newsletter {
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.site-footer a:hover {
  color: var(--green-500);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.footer-social-link {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.footer-social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  transition: filter 200ms ease, opacity 200ms ease;
}

.footer-social-link svg {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
  fill: currentColor;
  transition: transform 200ms ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.footer-social-link:hover::before,
.footer-social-link:focus-visible::before {
  filter: brightness(1.08) saturate(1.08);
}

.footer-social-link:hover svg,
.footer-social-link:focus-visible svg {
  transform: scale(1.08);
}

.footer-social-instagram::before {
  background:
    radial-gradient(circle at 32% 108%, #feda75 0 18%, #fa7e1e 34%, transparent 46%),
    radial-gradient(circle at 14% 12%, #4f5bd5 0 17%, transparent 34%),
    linear-gradient(135deg, #833ab4 0%, #c13584 34%, #e1306c 58%, #fd1d1d 76%, #f77737 100%);
}

.footer-social-facebook::before {
  background: #1877f2;
}

.footer-social-linkedin::before {
  background: #0a66c2;
}

.footer-social-tiktok::before {
  background:
    linear-gradient(135deg, rgba(37, 244, 238, 0.92) 0 18%, transparent 18% 100%),
    linear-gradient(315deg, rgba(254, 44, 85, 0.92) 0 18%, transparent 18% 100%),
    #010101;
}

.footer-social-tiktok svg {
  filter:
    drop-shadow(-1.4px -1px 0 #25f4ee)
    drop-shadow(1.4px 1px 0 #fe2c55);
}

.footer-newsletter form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.footer-newsletter label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.footer-newsletter input {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.footer-newsletter .form-note {
  color: #8ee0bb;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.sticky-apply {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 40;
  display: none;
  padding: 12px 16px;
  color: var(--white);
  font-weight: 900;
  border-radius: 8px;
  background: var(--blue-800);
  box-shadow: var(--shadow);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: var(--shadow);
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 78;
  display: grid;
  gap: 10px;
  width: min(214px, calc(100vw - 36px));
}

.floating-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  color: var(--white);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 950;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(8, 35, 63, 0.2);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(8, 35, 63, 0.26);
}

.floating-apply {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
}

.floating-chat {
  background: linear-gradient(135deg, var(--blue-950), #cfa43a);
}

.floating-whatsapp {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
}

.consultation-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
  background: rgba(6, 20, 34, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  backdrop-filter: blur(10px);
}

.consultation-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.consultation-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
  gap: clamp(22px, 4vw, 42px);
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 253, 0.9)),
    var(--white);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  transform: translateY(18px) scale(0.97);
  transition: transform 220ms ease;
}

.consultation-modal.is-open .consultation-dialog {
  transform: translateY(0) scale(1);
}

.consultation-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--blue-950);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
}

.consultation-copy {
  align-self: center;
}

.consultation-copy h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.consultation-copy p:not(.eyebrow) {
  font-size: 1.05rem;
}

.consultation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.consultation-options span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  color: var(--blue-800);
  font-size: 0.84rem;
  font-weight: 900;
  border-radius: 999px;
  background: #eef6fd;
}

.consultation-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(8, 35, 63, 0.08);
}

.consultation-form label:has(textarea),
.consultation-form button,
.consultation-note {
  grid-column: 1 / -1;
}

.consultation-note {
  margin: 0;
  color: var(--green-600);
  font-weight: 900;
}

.sticky-apply,
.whatsapp-float {
  display: none;
}

.ai-assistant {
  position: fixed;
  left: 18px;
  bottom: 24px;
  z-index: 90;
  font-family: inherit;
}

.ai-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 18px 8px 8px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(11, 79, 143, 0.88), rgba(25, 169, 116, 0.72)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    0 18px 46px rgba(8, 35, 63, 0.24),
    0 0 0 0 rgba(25, 169, 116, 0.42);
  cursor: pointer;
  backdrop-filter: blur(18px);
  animation: aiPulse 2.7s ease-in-out infinite;
  transition: transform 200ms ease, box-shadow 200ms ease, padding 200ms ease;
}

.ai-launcher::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(25, 169, 116, 0.34), transparent 68%);
  filter: blur(8px);
  opacity: 0.85;
}

.ai-launcher:hover,
.ai-assistant.is-open .ai-launcher {
  padding-right: 22px;
  transform: translateX(4px) scale(1.04);
  box-shadow:
    0 24px 58px rgba(8, 35, 63, 0.3),
    0 0 36px rgba(25, 169, 116, 0.3);
}

.ai-launcher-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--blue-950);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.72);
}

.ai-launcher-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.ai-launcher-text {
  max-width: 110px;
  font-weight: 950;
  line-height: 1.1;
  text-align: left;
}

.ai-tooltip {
  position: absolute;
  left: 6px;
  bottom: 78px;
  width: max-content;
  max-width: min(280px, calc(100vw - 34px));
  padding: 10px 13px;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 35, 63, 0.9);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(14px);
}

.ai-assistant:hover .ai-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.ai-notification {
  position: absolute;
  left: 48px;
  bottom: 52px;
  z-index: 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 950;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: #e24545;
  box-shadow: 0 8px 18px rgba(226, 69, 69, 0.28);
}

.ai-assistant.is-open .ai-notification,
.ai-assistant.is-open .ai-tooltip {
  display: none;
}

.ai-chat-panel {
  position: absolute;
  left: 0;
  bottom: 82px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  width: min(390px, calc(100vw - 36px));
  height: min(680px, calc(100vh - 118px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 248, 252, 0.76)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 80px rgba(8, 35, 63, 0.3);
  opacity: 0;
  transform: translateX(-28px) translateY(16px) scale(0.96);
  pointer-events: none;
  backdrop-filter: blur(24px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.ai-assistant.is-open .ai-chat-panel {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
  pointer-events: auto;
}

.ai-assistant.is-minimized .ai-chat-panel {
  opacity: 0;
  transform: translateX(-28px) translateY(16px) scale(0.96);
  pointer-events: none;
}

.ai-chat-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 35, 63, 0.96), rgba(11, 79, 143, 0.9) 58%, rgba(15, 143, 97, 0.92)),
    var(--blue-950);
}

.ai-avatar,
.ai-message-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  font-weight: 950;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--blue-600));
}

.ai-avatar {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: 0 0 28px rgba(25, 169, 116, 0.28);
}

.ai-status {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
}

.ai-chat-header h2 {
  color: var(--white);
  font-size: 1.04rem;
  line-height: 1.2;
}

.ai-window-actions {
  display: inline-flex;
  gap: 6px;
}

.ai-window-actions button,
.ai-chat-form button {
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.ai-window-actions button {
  width: 34px;
  height: 34px;
  color: var(--white);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font: inherit;
  font-weight: 900;
}

.ai-window-actions button:hover,
.ai-chat-form button:hover {
  transform: translateY(-1px);
}

.ai-chat-messages {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  padding: 18px 16px;
  scrollbar-width: thin;
}

.ai-message {
  display: flex;
  gap: 10px;
  align-items: end;
}

.ai-message-user {
  justify-content: flex-end;
}

.ai-message-avatar {
  width: 30px;
  height: 30px;
  font-size: 0.7rem;
}

.ai-bubble {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 6px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(8, 35, 63, 0.09);
}

.ai-bubble p {
  margin: 0;
  color: #31445a;
  font-size: 0.94rem;
  line-height: 1.45;
}

.ai-message-user .ai-bubble {
  color: var(--white);
  border-radius: 16px 16px 6px 16px;
  background: linear-gradient(135deg, var(--blue-800), var(--green-600));
}

.ai-message-user .ai-bubble p {
  color: var(--white);
}

.ai-typing .ai-bubble {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 42px;
}

.ai-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  animation: aiTyping 1s ease-in-out infinite;
}

.ai-typing-dot:nth-child(2) {
  animation-delay: 140ms;
}

.ai-typing-dot:nth-child(3) {
  animation-delay: 280ms;
}

.ai-quick-actions,
.ai-suggestions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 12px;
  scrollbar-width: none;
}

.ai-quick-actions::-webkit-scrollbar,
.ai-suggestions::-webkit-scrollbar {
  display: none;
}

.ai-quick-actions button,
.ai-suggestions button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--blue-950);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  border: 1px solid rgba(11, 79, 143, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ai-suggestions {
  padding-bottom: 14px;
}

.ai-suggestions button {
  color: var(--green-600);
  background: rgba(238, 246, 253, 0.9);
}

.ai-quick-actions button:hover,
.ai-suggestions button:hover {
  color: var(--white);
  background: var(--blue-800);
  transform: translateY(-1px);
}

.ai-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(219, 231, 242, 0.8);
  background: rgba(255, 255, 255, 0.58);
}

.ai-input-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ai-chat-form input {
  min-height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.ai-chat-form button {
  width: 46px;
  height: 46px;
  color: var(--white);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-800), var(--green-600));
  font-size: 1.05rem;
}

.ai-assistant.ai-dark .ai-chat-panel {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 35, 63, 0.92), rgba(6, 25, 45, 0.86)),
    rgba(8, 35, 63, 0.82);
}

.ai-assistant.ai-dark .ai-bubble,
.ai-assistant.ai-dark .ai-quick-actions button,
.ai-assistant.ai-dark .ai-chat-form input {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
}

.ai-assistant.ai-dark .ai-bubble p,
.ai-assistant.ai-dark .ai-quick-actions button {
  color: rgba(255, 255, 255, 0.9);
}

.ai-assistant.ai-dark .ai-suggestions button {
  color: #8ee0bb;
  background: rgba(25, 169, 116, 0.12);
}

.ai-assistant.ai-dark .ai-chat-form {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(6, 25, 45, 0.66);
}

.legal-page {
  background: #f8fbfe;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(219, 231, 242, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.legal-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.legal-header-actions a {
  color: #31445a;
  font-weight: 850;
}

.legal-header-actions a:hover {
  color: var(--blue-800);
}

.legal-hero {
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 72px) clamp(44px, 6vw, 76px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 35, 63, 0.96), rgba(11, 79, 143, 0.84) 62%, rgba(15, 143, 97, 0.86)),
    var(--blue-950);
}

.legal-hero-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1;
}

.legal-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 78px) 0;
}

.legal-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(8, 35, 63, 0.08);
}

.legal-sidebar h2 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.legal-sidebar a {
  padding: 10px 12px;
  color: #31445a;
  font-weight: 850;
  border-radius: 6px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.legal-sidebar a:hover {
  color: var(--blue-800);
  background: #eef6fd;
  transform: translateX(2px);
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-document-section {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(8, 35, 63, 0.07);
  scroll-margin-top: 104px;
}

.legal-document-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.legal-document-section h3 {
  margin-top: 22px;
}

.legal-document-section p,
.legal-document-section li {
  color: var(--muted);
}

.legal-document-section ul {
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal-note {
  padding: 18px;
  border-left: 4px solid var(--green-500);
  border-radius: 8px;
  background: #eef6fd;
}

.legal-note p {
  margin: 0;
}

.admissions-actions,
.fee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.fee-page {
  background:
    linear-gradient(180deg, #f8fbfe 0%, #ffffff 34%, #eef6fd 100%);
}

.fee-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 4vw, 54px);
  align-items: end;
  padding: clamp(72px, 9vw, 128px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 35, 63, 0.96), rgba(11, 79, 143, 0.84) 58%, rgba(207, 164, 58, 0.72)),
    var(--blue-950);
}

.fee-hero-copy {
  max-width: 900px;
}

.fee-hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.98;
}

.fee-hero p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.fee-contact-card,
.fee-sticky-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 70px rgba(8, 35, 63, 0.22);
  backdrop-filter: blur(18px);
}

.fee-contact-card {
  padding: 22px;
}

.fee-contact-card span {
  color: #f3d779;
  font-weight: 950;
  text-transform: uppercase;
}

.fee-contact-card strong,
.fee-contact-card a {
  color: var(--white);
}

.fee-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 78px) 0 120px;
}

.fee-tabs {
  position: sticky;
  top: 88px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(219, 231, 242, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 38px rgba(8, 35, 63, 0.1);
  backdrop-filter: blur(18px);
}

.fee-tab {
  min-height: 44px;
  padding: 0 18px;
  color: var(--blue-950);
  font: inherit;
  font-weight: 950;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.fee-tab:hover,
.fee-tab.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  box-shadow: 0 14px 30px rgba(11, 79, 143, 0.2);
  transform: translateY(-1px);
}

.fee-panel {
  display: none;
}

.fee-panel.active {
  display: grid;
  gap: 16px;
  animation: mobileNavSlide 220ms ease both;
}

.fee-panel-heading {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 246, 253, 0.82)),
    var(--white);
  box-shadow: 0 14px 34px rgba(8, 35, 63, 0.08);
}

.fee-panel-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.fee-accordion {
  overflow: hidden;
  border: 1px solid rgba(219, 231, 242, 0.96);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(8, 35, 63, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.fee-accordion:hover {
  border-color: rgba(207, 164, 58, 0.52);
  box-shadow: 0 20px 48px rgba(8, 35, 63, 0.12);
  transform: translateY(-2px);
}

.fee-accordion summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  color: var(--blue-950);
  font-size: 1.05rem;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.fee-accordion summary::-webkit-details-marker {
  display: none;
}

.fee-accordion summary span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-800), #cfa43a);
}

.fee-table-wrap {
  overflow-x: auto;
  padding: 0 20px 22px;
}

.fee-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
}

.fee-table th,
.fee-table td {
  padding: 13px 14px;
  border: 1px solid #d8e5f0;
  text-align: left;
  vertical-align: top;
}

.fee-table th {
  color: var(--white);
  background: var(--blue-950);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.fee-table tbody tr:nth-child(odd) {
  background: #eef6fd;
}

.fee-table tbody tr:hover {
  background: #fff8dd;
}

.fee-note {
  margin: 0 20px 16px;
  padding: 14px 16px;
  color: #31445a;
  border-left: 4px solid #cfa43a;
  border-radius: 8px;
  background: #fff8dd;
}

.fee-policy-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 22px 24px 58px;
}

.fee-policy-list li {
  color: var(--muted);
}

.fee-payment {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.fee-payment > div {
  padding: 24px;
  border: 1px solid rgba(219, 231, 242, 0.96);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 246, 253, 0.82)),
    var(--white);
  box-shadow: 0 14px 34px rgba(8, 35, 63, 0.08);
}

.fee-payment p {
  margin: 8px 0 0;
}

.fee-sticky-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 75;
  width: min(290px, calc(100vw - 36px));
  padding: 16px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 35, 63, 0.94), rgba(11, 79, 143, 0.9) 60%, rgba(207, 164, 58, 0.78)),
    rgba(8, 35, 63, 0.92);
}

.fee-sticky-panel span {
  color: rgba(255, 255, 255, 0.76);
}

.fee-sticky-panel a {
  color: var(--white);
  font-weight: 900;
}

@media print {
  .legal-header,
  .fee-actions,
  .fee-tabs,
  .fee-sticky-panel {
    display: none !important;
  }

  .fee-hero,
  .fee-shell {
    padding: 0;
    width: 100%;
    color: #000;
    background: #fff;
  }

  .fee-panel {
    display: grid !important;
  }

  .fee-accordion {
    break-inside: avoid;
    box-shadow: none;
  }
}

@media (prefers-color-scheme: dark) {
  .ai-assistant:not(.ai-light) .ai-chat-panel {
    border-color: rgba(255, 255, 255, 0.16);
    background:
      linear-gradient(180deg, rgba(8, 35, 63, 0.92), rgba(6, 25, 45, 0.86)),
      rgba(8, 35, 63, 0.82);
  }

  .ai-assistant:not(.ai-light) .ai-bubble,
  .ai-assistant:not(.ai-light) .ai-quick-actions button,
  .ai-assistant:not(.ai-light) .ai-chat-form input {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
  }

  .ai-assistant:not(.ai-light) .ai-bubble p,
  .ai-assistant:not(.ai-light) .ai-quick-actions button {
    color: rgba(255, 255, 255, 0.9);
  }

  .ai-assistant:not(.ai-light) .ai-suggestions button {
    color: #8ee0bb;
    background: rgba(25, 169, 116, 0.12);
  }

  .ai-assistant:not(.ai-light) .ai-chat-form {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(6, 25, 45, 0.66);
  }
}

@keyframes aiPulse {
  0%,
  100% {
    box-shadow:
      0 18px 46px rgba(8, 35, 63, 0.24),
      0 0 0 0 rgba(25, 169, 116, 0.42);
  }

  50% {
    box-shadow:
      0 22px 54px rgba(8, 35, 63, 0.28),
      0 0 0 13px rgba(25, 169, 116, 0);
  }
}

@keyframes aiTyping {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes mobileNavSlide {
  from {
    opacity: 0;
    transform: translateX(22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1080px) {
  .program-grid,
  .benefit-list,
  .partner-grid,
  .course-grid,
  .homeschool-card-grid,
  .skating-grid,
  .notes-grid,
  .career-benefit-grid,
  .timeline,
  .parent-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homeschool-card-grid .live-online-card {
    grid-column: span 2;
  }

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

  .steps,
  .testimonial-grid,
  .career-testimonials .testimonial-grid {
    grid-template-columns: 1fr;
  }

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

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

  .crest-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid .virtual-teacher-feature {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .site-nav,
  .header-cta,
  .header-motto {
    display: none;
  }

  .site-header.nav-open .site-nav {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 0;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 253, 0.9)),
      rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 76px rgba(8, 35, 63, 0.22);
    backdrop-filter: blur(20px);
    animation: mobileNavSlide 220ms ease both;
  }

  .site-header.nav-open .site-nav a {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(219, 231, 242, 0.86);
  }

  .site-header.nav-open .nav-dropdown {
    border-bottom: 1px solid rgba(219, 231, 242, 0.86);
  }

  .site-header.nav-open .nav-dropdown-trigger {
    width: 100%;
    padding: 15px 18px;
    text-align: left;
  }

  .site-header.nav-open .nav-dropdown-menu {
    position: static;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    transform: none;
    pointer-events: none;
    transition: max-height 220ms ease, opacity 180ms ease, padding 180ms ease;
  }

  .site-header.nav-open .nav-dropdown.is-open .nav-dropdown-menu,
  .site-header.nav-open .nav-dropdown:focus-within .nav-dropdown-menu {
    max-height: 680px;
    padding: 0 18px 14px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-header.nav-open .nav-dropdown-menu a {
    border-bottom: 0;
    margin-top: 8px;
    background: rgba(238, 246, 253, 0.96);
  }

  .site-header.nav-open .nav-socials {
    display: flex;
    gap: 10px;
    padding: 14px 18px;
  }

  .site-header.nav-open .site-nav .nav-social-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-bottom: 0;
  }

  .hero {
    min-height: 660px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 35, 63, 0.88), rgba(8, 35, 63, 0.74));
  }

  .hero-content {
    margin: 0 auto;
  }

  .about-topic-layout {
    grid-template-columns: 1fr;
  }

  .about-topic-aside {
    position: static;
  }

  .about-highlight-grid,
  .about-related-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .about,
  .homeschool-hero,
  .homeschool-learning-lab,
  .admissions,
  .contact,
  .ai-study-layout,
  .qualifications,
  .online-teaching,
  .teacher-application,
  .course-toolbar,
  .academy-split,
  .coding-contact,
  .newsletter,
  .instructor-grid,
  .newsletter form,
  .notes-layout,
  .notes-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .notes-admin {
    position: static;
  }

  .careers-hero-content {
    margin: 0 auto;
  }

  .ai-study-copy {
    text-align: left;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }

  .fee-hero,
  .fee-payment {
    grid-template-columns: 1fr;
  }

  .fee-tabs {
    position: static;
  }

  .application-copy {
    position: static;
  }

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

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

  .crest-album-grid figure:nth-child(9n + 3) {
    grid-column: span 1;
  }

  .gallery-grid .virtual-teacher-feature {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .virtual-teacher-feature img {
    min-height: 280px;
    aspect-ratio: 4 / 3;
  }

  .gallery-grid figure:nth-child(1),
  .gallery-grid figure:nth-child(5) {
    grid-column: span 1;
  }

  .skating-carousel {
    grid-template-columns: 1fr;
  }

  .skating-control {
    display: none;
  }

  .skating-track {
    grid-auto-columns: 86%;
  }

  .skating-card.featured,
  .skating-card.wide {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 300px;
  }

  .skating-lightbox {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox-nav:hover {
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .sticky-apply {
    display: none;
  }
}

@media (max-width: 620px) {
  .crest-album-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-slider {
    grid-template-columns: 1fr;
  }

  .testimonial-control {
    display: none;
  }

  .testimonials .testimonial-track {
    padding-inline: 0;
  }

  .testimonial-card {
    flex-basis: 88vw;
    min-height: 350px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 70px;
    padding-inline: 14px;
  }

  .brand {
    width: min(206px, 58vw);
    min-width: 160px;
  }

  .site-header.nav-open .site-nav {
    top: 70px;
  }

  .legal-header {
    display: grid;
    min-height: 70px;
    padding-inline: 14px;
  }

  .legal-header .brand {
    width: min(206px, 58vw);
  }

  .legal-header-actions {
    justify-content: start;
  }

  .legal-hero {
    padding-inline: 16px;
  }

  .fee-shell {
    width: calc(100% - 28px);
    padding-bottom: 160px;
  }

  .fee-actions,
  .admissions-actions {
    width: 100%;
  }

  .fee-sticky-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding: 70px 0 96px;
  }

  .coding-hero {
    min-height: 620px;
  }

  .coding-hero-bg {
    background:
      linear-gradient(180deg, rgba(8, 35, 63, 0.9), rgba(8, 35, 63, 0.76)),
      url("images/site/crestfield-branded-learning.jpg") center/cover;
  }

  .coding-hero-content {
    width: calc(100% - 28px);
    margin: 0 auto;
    padding: 72px 0;
  }

  .homeschool-premium {
    padding-inline: 16px;
  }

  .homeschool-visual,
  .homeschool-visual img {
    min-height: 420px;
  }

  .homeschool-actions {
    width: 100%;
  }

  .classroom-screen {
    grid-template-columns: 1fr;
  }

  .student-tiles {
    grid-template-columns: repeat(4, 1fr);
  }

  .student-tiles i {
    min-height: 54px;
  }

  .hero-actions,
  .btn,
  .coding-actions,
  .coding-cta-actions,
  .course-actions {
    width: 100%;
  }

  .program-grid,
  .benefit-list,
  .partner-grid,
  .course-grid,
  .homeschool-card-grid,
  .academy-counters,
  .skating-grid,
  .ai-study-features,
  .parent-stats,
  .career-benefit-grid,
  .job-grid,
  .timeline,
  .career-form {
    grid-template-columns: 1fr;
  }

  .homeschool-card-grid .live-online-card {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .live-online-card img {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .careers-hero {
    min-height: 620px;
  }

  .careers-hero-bg {
    background:
      linear-gradient(180deg, rgba(8, 35, 63, 0.9), rgba(8, 35, 63, 0.74)),
      url("images/site/crestfield-student-group.jpg") center/cover;
  }

  .careers-hero-content {
    width: calc(100% - 28px);
    padding: 76px 0;
  }

  .careers-actions {
    width: 100%;
  }

  .career-floating-apply {
    right: 84px;
    bottom: 22px;
    min-height: 42px;
    padding-inline: 12px;
    font-size: 0.82rem;
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
    width: min(178px, calc(100vw - 24px));
    gap: 8px;
  }

  .floating-action {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .consultation-dialog,
  .consultation-form {
    grid-template-columns: 1fr;
  }

  .consultation-dialog {
    max-height: calc(100vh - 28px);
    padding-top: 54px;
  }

  .ai-dashboard {
    padding: 14px;
    border-radius: 14px;
  }

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

  .focus-card {
    grid-column: span 1;
  }

  .dashboard-top {
    display: grid;
    justify-content: stretch;
  }

  .ai-study-actions {
    width: 100%;
  }

  .skating-slide {
    min-height: 330px;
  }

  .skating-track {
    grid-auto-columns: 92%;
  }

  .coding-cta {
    display: grid;
  }

  .section {
    padding-inline: 16px;
  }

  .site-footer {
    display: grid;
  }

  .footer-bottom {
    display: grid;
  }

  .ai-assistant {
    left: 12px;
    bottom: 14px;
  }

  .ai-launcher {
    min-height: 56px;
    padding-right: 12px;
  }

  .ai-launcher-icon {
    width: 40px;
    height: 40px;
  }

  .ai-launcher-text {
    max-width: 74px;
    font-size: 0.82rem;
  }

  .ai-chat-panel {
    bottom: 70px;
    width: calc(100vw - 24px);
    height: min(620px, calc(100vh - 94px));
    border-radius: 16px;
  }

  .ai-chat-header {
    padding: 13px;
  }

  .ai-avatar {
    width: 40px;
    height: 40px;
  }

  .ai-window-actions button {
    width: 32px;
    height: 32px;
  }
}
