:root {
  --ink: #10233f;
  --muted: #526274;
  --line: #d9e2ed;
  --surface: #ffffff;
  --school-green: #0f6f55;
  --school-gold: #d59a2b;
  --school-navy: #142f54;
  --soft-green: #eef8f4;
  --shadow: 0 18px 45px rgba(13, 34, 63, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f9fc;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(13, 34, 63, 0.08);
}

.topbar {
  color: #ffffff;
  background: var(--school-navy);
}

.topbar__inner,
.mainbar__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.call-link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.call-link__label {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
}

.call-link__number {
  color: #ffffff;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.social-link {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 160ms ease, background 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

.social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-link--youtube {
  color: #ff0000;
  background: #ffffff;
}

.social-link--facebook {
  color: #1877f2;
  background: #ffffff;
}

.social-link--instagram {
  color: #e4405f;
  background: #ffffff;
}

.social-link--x {
  color: #111111;
  background: #ffffff;
}

.social-link--linkedin {
  color: #0a66c2;
  background: #ffffff;
}

.mainbar {
  border-bottom: 1px solid var(--line);
}

.mainbar__inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  min-width: 260px;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 2px dashed rgba(15, 111, 85, 0.42);
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, var(--soft-green));
}

.brand__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.brand__name {
  color: var(--school-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.05;
}

.brand__tagline {
  color: var(--school-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
}

.primary-nav > a,
.login-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: 6px;
  padding: 0 13px;
  color: var(--school-navy);
  transition: color 160ms ease, background 160ms ease;
}

.primary-nav > a:hover,
.primary-nav > a:focus-visible,
.login-button:hover,
.login-button:focus-visible {
  color: var(--school-green);
  background: var(--soft-green);
}

.admission-link {
  color: #ffffff !important;
  background: var(--school-green);
  box-shadow: 0 10px 22px rgba(15, 111, 85, 0.18);
}

.admission-link:hover,
.admission-link:focus-visible {
  color: #ffffff !important;
  background: #0c5d47 !important;
}

.login-menu {
  position: relative;
}

.login-button {
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.login-button__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.mobile-menu-button,
.mobile-header-actions {
  display: none;
}

.mobile-menu-button {
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--school-navy);
}

.login-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 160px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

.login-menu__panel a {
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--school-navy);
  font-size: 14px;
}

.login-menu__panel a:hover,
.login-menu__panel a:focus-visible {
  color: var(--school-green);
  background: var(--soft-green);
}

.page-preview {
  min-height: calc(100vh - 125px);
}

.hero-shell {
  min-height: 420px;
  padding: 54px 16px;
  background:
    linear-gradient(135deg, rgba(20, 47, 84, 0.88), rgba(15, 111, 85, 0.74)),
    linear-gradient(90deg, #dfeae5 25%, #f9fbf7 25% 50%, #e8f1f5 50% 75%, #fff5df 75%);
}

.hero-shell__inner {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 36px;
  align-items: center;
  margin: 0 auto;
}

.hero-shell__content {
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 14px;
  color: #f8d27b;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-shell h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 7vw, 72px);
  line-height: 1.05;
}

.hero-shell p:last-child {
  max-width: 520px;
  margin: 18px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 800;
}

.hero-action--primary {
  color: #142f54;
  background: #f8d27b;
}

.hero-action--secondary {
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: #ffffff;
}

.hero-gallery {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 22px 48px rgba(6, 22, 42, 0.28);
}

.hero-gallery__track {
  display: flex;
  width: 300%;
  animation: heroSlide 12s ease-in-out infinite;
}

.hero-slide {
  position: relative;
  width: 33.333%;
  min-height: 320px;
  overflow: hidden;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 35, 63, 0.04), rgba(16, 35, 63, 0.78));
  content: "";
}

.hero-slide__copy {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
}

.hero-slide__copy p {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.hero-slide__copy a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 6px;
  padding: 0 12px;
  color: #142f54;
  background: #f8d27b;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

@keyframes heroSlide {
  0%,
  28% {
    transform: translateX(0);
  }

  36%,
  64% {
    transform: translateX(-33.333%);
  }

  72%,
  100% {
    transform: translateX(-66.666%);
  }
}

.site-footer {
  color: #ffffff;
  background: var(--school-navy);
}

.site-footer__inner {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  justify-items: center;
  margin: 0 auto;
  padding: 42px 0;
}

.footer-block {
  min-width: 0;
  width: 100%;
  text-align: center;
}

.footer-block--school {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-block--quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-block--reach {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-block--connect {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: inline-block;
}

.footer-brand__logo {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 2px dashed rgba(15, 111, 85, 0.42);
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, var(--soft-green));
}

.footer-policy-links {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.footer-heading {
  width: 100%;
  min-height: 58px;
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 58px;
}

.footer-links {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.footer-policy-links a,
.footer-links a {
  display: block;
  width: 100%;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  text-align: center;
  line-height: 1.35;
  transition: color 160ms ease;
}

.footer-policy-links a:hover,
.footer-policy-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #f8d27b;
}

.footer-address {
  width: 100%;
  max-width: 240px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-style: normal;
  text-align: center;
  line-height: 1.45;
}

.footer-map {
  display: block;
  width: 100%;
  max-width: 230px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

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

.footer-contact {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.footer-contact a {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: #f8d27b;
}

.footer-contact span {
  min-width: 0;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #f8d27b;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.footer-update-link {
  display: block;
  width: 100%;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  text-align: center;
  line-height: 1.35;
  transition: color 160ms ease;
}

.footer-update-link:hover,
.footer-update-link:focus-visible {
  color: #f8d27b;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.footer-bottom a {
  color: #f8d27b;
  font-weight: 700;
  transition: color 160ms ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: #ffffff;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #25d366;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.36);
  animation: whatsappPulse 1.7s ease-in-out infinite;
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

.whatsapp-float__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  width: max-content;
  max-width: 130px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(16, 35, 63, 0.96);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.whatsapp-float__tooltip::after {
  position: absolute;
  top: 50%;
  right: -5px;
  width: 10px;
  height: 10px;
  background: #10233f;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1fbd5b;
}

.whatsapp-float:hover .whatsapp-float__tooltip,
.whatsapp-float:focus-visible .whatsapp-float__tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

@keyframes whatsappPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.36);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 18px 42px rgba(37, 211, 102, 0.54);
  }
}

@keyframes phoneBlink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.48;
  }
}

@keyframes admissionBlink {
  0%,
  100% {
    filter: brightness(1);
    transform: scale(1);
  }

  50% {
    filter: brightness(1.18);
    transform: scale(1.03);
  }
}

@media (max-width: 980px) {
  .hero-shell__inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  body {
    padding-bottom: 92px;
  }

  .topbar__inner,
  .mainbar__inner,
  .site-footer__inner {
    width: min(100% - 24px, 1180px);
  }

  .topbar__inner {
    min-height: 38px;
    justify-content: center;
    padding: 8px 0;
  }

  .call-link {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    text-align: center;
    animation: phoneBlink 1.25s ease-in-out infinite;
  }

  .call-link__number {
    font-size: 17px;
  }

  .social-links {
    display: none;
  }

  .mainbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
  }

  .brand {
    min-width: 0;
    width: 100%;
  }

  .brand__logo {
    width: 52px;
    height: 52px;
  }

  .brand__name {
    font-size: 21px;
  }

  .brand__tagline {
    font-size: 11px;
  }

  .mobile-menu-button {
    display: inline-grid;
  }

  .primary-nav {
    display: none;
    width: 100%;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 4px;
  }

  .mainbar.is-mobile-menu-open .primary-nav {
    display: grid !important;
  }

  .primary-nav > a,
  .login-button {
    width: 100%;
    justify-content: flex-start;
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .primary-nav .admission-link {
    display: none;
  }

  .login-menu {
    min-width: 0;
  }

  .login-menu__panel {
    right: auto;
    left: 0;
    width: min(180px, calc(100vw - 24px));
  }

  .mobile-header-actions {
    display: flex;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 55;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 2px solid #f8d27b;
    background: rgba(16, 35, 63, 0.96);
    box-shadow: 0 -10px 28px rgba(13, 34, 63, 0.2);
  }

  .mobile-admission-link {
    display: inline-flex;
    min-height: 62px;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
    padding: 0 16px;
    color: #ffffff;
    background: var(--school-green);
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(15, 111, 85, 0.32);
    animation: admissionBlink 1.35s ease-in-out infinite;
  }

  .mobile-whatsapp-link {
    display: grid;
    width: 76px;
    min-height: 62px;
    flex: 0 0 auto;
    place-items: center;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 8px 8px 0;
    color: #ffffff;
    background: #25d366;
    animation: whatsappPulse 1.7s ease-in-out infinite;
    pointer-events: auto;
  }

  .mobile-whatsapp-link svg {
    width: 38px;
    height: 38px;
    fill: currentColor;
  }

  .whatsapp-float {
    display: none;
  }

  .hero-shell {
    min-height: 360px;
    padding: 42px 16px;
  }

  .hero-shell__inner {
    gap: 24px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .hero-action {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero-slide,
  .hero-slide img {
    min-height: 240px;
  }

  .hero-slide__copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 0;
  }
}

@media (max-width: 420px) {
  .call-link {
    align-items: center;
    flex-direction: row;
    gap: 6px;
    white-space: nowrap;
  }

  .brand {
    align-items: flex-start;
  }

  .brand__name {
    font-size: 18px;
  }

  .brand__tagline {
    font-size: 10px;
    line-height: 1.25;
  }

  .primary-nav {
    grid-template-columns: 1fr;
  }

  .hero-shell h1 {
    font-size: 30px;
  }

  .hero-shell p:last-child {
    font-size: 17px;
  }

  .hero-slide,
  .hero-slide img {
    min-height: 220px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 32px;
    height: 32px;
  }

  .whatsapp-float__tooltip {
    display: none;
  }
}
