:root {
  /* Main brand colors are based on the academy logo. */
  --primary: #0835b4;
  --primary-dark: #062777;
  --primary-soft: #eaf0ff;
  --ink: #101827;
  --muted: #5c667a;
  --line: #dfe5f1;
  --silver: #a4a6a3;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(8, 53, 180, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: #f8faff;
  line-height: 1.6;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header and navigation */
.announcement {
  position: relative;
  z-index: 20;
  background: var(--primary);
  color: var(--white);
  text-align: center;
  font-weight: 800;
  letter-spacing: 0;
  padding: 10px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 19;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 229, 241, 0.9);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--primary-dark);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 800;
  color: #273246;
}

.nav-menu a:not(.btn) {
  position: relative;
  padding: 8px 0;
}

.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(8, 53, 180, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 18px 40px rgba(8, 53, 180, 0.3);
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.btn-light {
  background: var(--white);
  color: var(--primary);
}

/* Hero carousel */
.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

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

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 4s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 14, 40, 0.92), rgba(8, 53, 180, 0.55), rgba(4, 14, 40, 0.18)),
    linear-gradient(0deg, rgba(4, 14, 40, 0.5), rgba(4, 14, 40, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  max-width: 760px;
  justify-self: center;
  margin-left: max(20px, calc((100vw - 1180px) / 2));
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.admissions-cta .eyebrow {
  color: #dce6ff;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
}

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

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 36px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--white);
}

/* Shared sections */
.section {
  padding: 96px 0;
}

.stats-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(16, 24, 39, 0.06);
}

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

.stats-grid div {
  padding: 28px 18px;
  border-right: 1px solid var(--line);
}

.stats-grid div:last-child {
  border-right: 0;
}

.stats-grid strong {
  display: block;
  color: var(--primary);
  font-size: 28px;
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.contact-info h2,
.cta-inner h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-copy p,
.section-heading p,
.contact-info p,
.cta-inner p {
  color: var(--muted);
  font-size: 17px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

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

.value-card,
.feature-card,
.person-card,
.gallery-card,
.review-card,
.contact-form {
  border: 1px solid rgba(223, 229, 241, 0.95);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 55px rgba(16, 24, 39, 0.07);
}

.value-card {
  padding: 28px;
  min-height: 280px;
}

.value-card span {
  color: var(--silver);
  font-weight: 900;
}

.value-card h3,
.feature-card h3,
.person-card h3,
.gallery-card h3,
.review-card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.value-card p,
.feature-card p,
.person-card p,
.gallery-card p,
.review-card p {
  margin: 0;
  color: var(--muted);
}

/* Feature cards */
.why {
  background: linear-gradient(180deg, #f8faff 0%, #eef4ff 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.person-card:hover,
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

/* Faculty, results, and reviews */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.person-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.person-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.person-card div {
  padding: 20px;
}

.results,
.faq {
  background: var(--white);
}

.gallery-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card img,
.review-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-card div,
.review-card {
  padding: 22px;
}

.review-card img {
  margin: -22px -22px 20px;
  width: calc(100% + 44px);
  max-width: none;
}

.admissions-cta {
  padding: 90px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 53, 180, 0.96), rgba(6, 39, 119, 0.95)),
    url("Banners/Banner1.png") center/cover;
}

.cta-inner {
  max-width: 780px;
}

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

.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.faq-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  border-bottom: 1px solid var(--line);
}

.faq-panel p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

.faq-item.active strong {
  transform: rotate(45deg);
}

/* Contact and footer */
.contact {
  background: linear-gradient(180deg, #f8faff, #ffffff);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  color: var(--muted);
}

.contact-info li {
  margin: 12px 0;
}

.whatsapp {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: #1fa463;
  color: var(--white);
  font-weight: 900;
}

.contact-form {
  padding: 28px;
}

.contact-form label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  font: inherit;
  color: var(--ink);
  background: #fbfcff;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(8, 53, 180, 0.1);
}

.contact-form .btn {
  width: 100%;
  margin-top: 18px;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  background: #071225;
  color: rgba(255, 255, 255, 0.78);
  padding-top: 58px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 44px;
}

.footer img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius);
  padding: 6px;
}

.footer h3 {
  color: var(--white);
  margin-top: 0;
}

.footer a {
  display: block;
  margin: 10px 0;
}

.footer-bottom {
  margin-top: 42px;
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

  .nav-menu {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .feature-grid,
  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 650px;
  }

  .hero-content {
    margin-left: auto;
  }

  .stats-grid,
  .split,
  .contact-grid,
  .value-grid,
  .gallery-grid,
  .review-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  .container,
  .navbar,
  .hero-content {
    width: min(100% - 28px, 1180px);
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 590px;
  }

  .hero h1 {
    font-size: 44px;
  }

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

  .feature-grid,
  .faculty-grid {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .value-card,
  .feature-card {
    padding: 22px;
  }
}
