:root {
  --body-bg: #f3f5f8;
  --surface: #ffffff;
  --navy: #2b4274;
  --navy-deep: #1b2541;
  --blue: #2d78ea;
  --blue-soft: #eef3ff;
  --purple: #6c40ff;
  --gold: #b8741a;
  --green: #107d3d;
  --dark: #20242f;
  --text: #27314c;
  --muted: #5e6987;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--body-bg);
  color: var(--text);
  scroll-behavior: smooth;
}

.reveal-section,
.reveal-item {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
  will-change: opacity, transform;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lexend", sans-serif;
}

p {
  font-family: "Inter", sans-serif;
}

a {
  text-decoration: none;
  transition: color 0.35s var(--ease-smooth), background-color 0.35s var(--ease-smooth), border-color 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}

button,
.btn,
.curriculum-card,
.gateway-card,
.site-header,
.site-footer {
  transition: transform 0.45s var(--ease-smooth), box-shadow 0.45s var(--ease-smooth), background-color 0.35s var(--ease-smooth), border-color 0.35s var(--ease-smooth), opacity 0.45s var(--ease-smooth);
}

.container {
  max-width: 1240px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid rgba(43, 66, 116, 0.05);
  animation: slide-down 0.8s var(--ease-smooth) both;
}

.brand-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.nav-link {
  color: #384766;
  font-size: 16px;
  font-weight: 500;
  font-family: "Lexend", sans-serif;
  padding: 0.5rem 0.2rem;
}

.nav-link.active {
  color: var(--navy);
}

.btn-login {
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.btn-login:hover {
  background: #233762;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(43, 66, 116, 0.15);
}

.msapp-hero {
  position: relative;
  overflow: hidden;
  background: url("assets/banner.png") center center/cover no-repeat;
  min-height: 560px;
  border-top: 1px solid rgba(255, 255, 255, 0.65);
}

.msapp-hero::before {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 68px;
}

.hero-inner h1 {
  margin: 0 0 28px;
  font-size: clamp(4rem, 10vw, 6.1rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--blue);
}

.hero-inner h1 span:first-child {
  color: var(--navy);
}

.hero-dot {
  color: var(--navy);
}

.hero-inner p {
  max-width: 520px;
  margin: 0;
  color: #5c6471;
  font-size: 14px;
  line-height: 1.65;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.catalog-section {
  padding: 52px 0 72px;
}

.content-shell {
  max-width: 980px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.section-gap {
  margin-top: 36px;
}

.section-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #33393f;
}

.section-header span {
  flex: 1;
  height: 1px;
  background: #d5d8dd;
}

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

.curriculum-card {
  background: #fbfbfc;
  border: 1px solid #e9edf2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(30, 42, 77, 0.04);
}

.curriculum-card:hover,
.gateway-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(30, 42, 77, 0.08);
}

.card-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #f0f4f8;
  border-radius: 18px 18px 0 0;
}

.visual-kerala {
  background: url("assets/curriculum/kerala.png") center center/cover no-repeat;
}

.visual-cbse {
  background: url("assets/curriculum/cbse.png") center center/cover no-repeat;
}

.visual-national {
  background: url("assets/curriculum/national.png") center center/cover no-repeat;
}

.visual-international {
  background: url("assets/curriculum/international.png") center center/cover no-repeat;
}

.card-body {
  padding: 22px 24px 20px;
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.card-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.card-label.purple,
.card-link.purple {
  color: var(--purple);
}

.card-label.gold,
.card-link.gold {
  color: var(--gold);
}

.card-label.green,
.card-link.green {
  color: var(--green);
}

.card-label.dark,
.card-link.dark {
  color: var(--dark);
}

.card-body h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 700;
  color: #24282f;
}

.card-body p {
  margin: 0 0 10px;
  color: #5a606b;
  font-size: 14px;
  line-height: 1.65;
}

.card-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.card-icon.purple {
  color: var(--purple);
  background: #f1eaff;
}

.card-icon.gold {
  color: var(--gold);
  background: #f7ecdc;
}

.card-icon.green {
  color: var(--green);
  background: #e8f4ec;
}

.card-icon.dark {
  color: var(--dark);
  background: #eceef1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.gateway-section {
  padding: 30px 0 70px;
}

.gateway-panel {
  background: #eff1f2;
  border-radius: 5px;
  padding: 88px 34px 92px;
}

.gateway-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.gateway-header h2 {
  margin: 0 0 6px;
  color: #2f343a;
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.gateway-header p {
  max-width: 560px;
  margin: 0;
  color: #4b525c;
  font-size: 0.98rem;
  line-height: 1.7;
}

.gateway-line {
  width: 60px;
  height: 4px;
  background: #233d76;
  flex-shrink: 0;
  margin-bottom: 16px;
}

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

.gateway-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px 16px;
  min-height: 144px;
  display: flex;
  flex-direction: column;
  color: inherit;
}

.gateway-number {
  display: block;
  margin-bottom: 26px;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.gateway-card h3 {
  margin: 0 0 6px;
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.gateway-card p {
  margin: 0 0 auto;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #4e535c;
  max-width: 180px;
}

.gateway-card a {
  align-self: flex-end;
  color: inherit;
  font-size: 1.2rem;
  margin-top: 10px;
}

.gateway-card:hover {
  background: #2b4274;
  color: #fff;
  box-shadow: 0 12px 28px rgba(43, 66, 116, 0.22);
}

.gateway-card:hover p {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  padding-top: 76px;
  animation: fade-up 1s var(--ease-smooth) 0.2s both;
}

.footer-top {
  padding-bottom: 42px;
  justify-content: center;
  text-align: center;
}

.footer-column {
  position: relative;
}

.footer-divider::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  justify-content: center;
}

.footer-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.site-footer h4 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  text-align: left;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.footer-links li + li {
  margin-top: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
}

.social-links {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
}

.social-links a {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  text-align: center;
  padding: 24px 0 28px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  .reveal-section,
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 1rem;
  }

  .navbar-nav {
    align-items: flex-start !important;
  }

  .nav-link {
    display: inline-block;
    padding-left: 0;
    padding-right: 0;
  }

  .btn-login {
    display: inline-flex;
    margin-top: 1rem;
  }

  .hero-inner {
    min-height: 300px;
  }

  .content-shell {
    max-width: 100%;
  }

  .gateway-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .gateway-line {
    margin-bottom: 0;
  }

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

  .footer-top {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-brand {
    justify-content: flex-start;
  }

  .site-footer h4,
  .footer-links {
    text-align: left;
  }

  .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .msapp-hero {
    min-height: 250px;
    background-position: center;
  }

  .hero-inner {
    min-height: 250px;
    padding: 72px 16px 54px;
  }

  .hero-inner h1 {
    font-size: 3.5rem;
  }

  .catalog-section {
    padding-top: 38px;
  }

  .card-grid,
  .gateway-grid {
    grid-template-columns: 1fr;
  }

  .gateway-panel {
    padding: 56px 22px 60px;
  }

  .site-footer {
    padding-top: 52px;
  }

  .footer-brand {
    font-size: 1.35rem;
  }

  .footer-top {
    padding-bottom: 24px;
  }

  .footer-divider::before {
    display: none;
  }
}
