:root {
  --ink: #16212f;
  --muted: #607080;
  --paper: #f8faf9;
  --white: #ffffff;
  --line: #dce5e2;
  --teal: #0c6678;
  --teal-dark: #061a2b;
  --amber: #ffb51f;
  --coral: #c75146;
  --shadow: 0 20px 50px rgba(18, 31, 44, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.scrolled,
.site-header.nav-open {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(18, 31, 44, 0.08);
  backdrop-filter: blur(12px);
}

.site-header.scrolled {
  padding-block: 12px;
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 181, 31, 0.85);
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: currentColor;
  opacity: 0.72;
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
  font-weight: 700;
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: currentColor;
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 37, 44, 0.88) 0%, rgba(9, 37, 44, 0.72) 36%, rgba(9, 37, 44, 0.32) 70%, rgba(9, 37, 44, 0.1) 100%),
    linear-gradient(0deg, rgba(9, 37, 44, 0.58), rgba(9, 37, 44, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(660px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding-top: 86px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(30px, 3.9vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.admission-badge {
  display: inline-grid;
  gap: 2px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 181, 31, 0.58);
  border-radius: 8px;
  background: rgba(255, 181, 31, 0.96);
  color: #1a1406;
  box-shadow: 0 14px 34px rgba(255, 181, 31, 0.2);
}

.admission-badge span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admission-badge strong {
  font-size: 20px;
  line-height: 1.1;
}

.hero-copy {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--amber);
  color: #1b1408;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.52);
  color: var(--white);
}

.button.whatsapp {
  background: #16a34a;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}

.hero-stats span {
  min-width: 128px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats strong {
  display: block;
  font-size: 24px;
}

.trust-band,
.section,
.faculty-band,
.contact-section,
.site-footer {
  padding-inline: clamp(20px, 5vw, 72px);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-item {
  padding: 28px;
  background: var(--white);
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding-block: 86px;
}

.section.compact {
  padding-top: 40px;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.faculty-copy p,
.contact-section p {
  color: var(--muted);
  line-height: 1.7;
}

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

.course-card,
.faculty-list article,
.testimonial-grid figure,
.enquiry-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(18, 31, 44, 0.05);
}

.course-card {
  padding: 28px;
}

.course-card.featured {
  border-color: rgba(13, 128, 116, 0.35);
  box-shadow: var(--shadow);
}

.course-card:nth-child(2) {
  border-color: rgba(255, 181, 31, 0.4);
}

.course-card:nth-child(2) .course-tag {
  background: #fff4d1;
  color: #8a5a00;
}

.course-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8f4f1;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.course-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.course-card p,
.course-card li {
  color: var(--muted);
  line-height: 1.65;
}

.course-card ul {
  margin: 20px 0 0;
  padding-left: 20px;
}

.results-section {
  padding: 86px clamp(20px, 5vw, 72px);
  background: #edf3f1;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 20px;
}

.result-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.result-card img {
  width: 132px;
  height: 132px;
  border: 5px solid #fff4d1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(18, 31, 44, 0.16);
}

.result-rank {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8f4f1;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.result-card h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.result-card strong {
  display: block;
  color: var(--coral);
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
}

.topper-gallery {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.topper-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.topper-photos figure {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
}

.topper-photos img {
  width: 104px;
  height: 104px;
  border: 4px solid #fff4d1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(18, 31, 44, 0.14);
}

.topper-photos figcaption {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--teal-dark);
  font-weight: 800;
}

.batch-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 0.7fr;
  gap: 16px;
  padding: 20px 22px;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
}

.table-head {
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.faculty-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 44px;
  align-items: start;
  padding-block: 86px;
  background: var(--teal-dark);
  color: var(--white);
}

.utility-section,
.payment-section,
.login-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 42px;
  align-items: center;
  padding: 86px clamp(20px, 5vw, 72px);
}

.utility-section {
  background: #fff6df;
}

.utility-copy p,
.payment-section p,
.login-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.store-button {
  display: grid;
  gap: 4px;
  min-width: 174px;
  padding: 15px 18px;
  border: 1px solid rgba(6, 26, 43, 0.14);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.store-button span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.store-button strong {
  font-size: 17px;
}

.phone-preview {
  max-width: 310px;
  justify-self: center;
  padding: 24px;
  border: 10px solid #111923;
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.phone-top {
  width: 82px;
  height: 8px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: #111923;
}

.phone-preview img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.phone-preview h3 {
  margin: 18px 0 8px;
}

.phone-preview p {
  color: var(--muted);
  line-height: 1.6;
}

.payment-section {
  background: var(--white);
}

.payment-meta {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: var(--ink);
  font-weight: 700;
}

.payment-meta span {
  padding: 12px 14px;
  border-left: 4px solid var(--amber);
  background: var(--paper);
}

.qr-card {
  justify-self: center;
  width: min(100%, 330px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  width: min(100%, 232px);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  padding: 12px;
  border: 8px solid var(--white);
  background: var(--white);
}

.qr-grid i {
  display: block;
  aspect-ratio: 1;
  background: var(--ink);
}

.qr-grid i:nth-child(3n),
.qr-grid i:nth-child(5n),
.qr-grid i:nth-child(11),
.qr-grid i:nth-child(18),
.qr-grid i:nth-child(42),
.qr-grid i:nth-child(58) {
  background: transparent;
}

.qr-card strong,
.qr-card span {
  display: block;
}

.qr-card strong {
  color: var(--ink);
  font-size: 24px;
}

.qr-card span {
  margin-top: 6px;
  color: var(--muted);
}

.login-section {
  background: #edf3f1;
}

.login-form {
  display: grid;
  gap: 16px;
  width: min(100%, 440px);
  justify-self: end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(18, 31, 44, 0.05);
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #344553;
  font-size: 14px;
  font-weight: 800;
}

.portal-login-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.portal-login-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.portal-login-card .button {
  width: 100%;
}

.portal-login-card .text-link {
  margin-top: 0;
}

.faculty-copy p {
  color: rgba(255, 255, 255, 0.75);
}

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

.faculty-list article {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 24px 24px 26px;
  color: var(--ink);
}

.faculty-list article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--amber);
}

.faculty-card.physics::before {
  background: #246bfe;
}

.faculty-card.chemistry::before {
  background: #0b8f66;
}

.faculty-card.biology::before {
  background: #b4142a;
}

.faculty-card.english::before {
  background: #7c3aed;
}

.faculty-list span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e7f4f1;
  color: var(--teal-dark);
  font-weight: 800;
}

.faculty-list small {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f5f7f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.faculty-list h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

.faculty-list p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

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

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

.testimonial-grid figure {
  margin: 0;
  padding: 28px;
}

blockquote {
  margin: 0;
  color: #2b3a45;
  font-size: 20px;
  line-height: 1.6;
}

figcaption {
  margin-top: 18px;
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
  padding-block: 86px;
}

.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  color: var(--ink);
  font-weight: 700;
}

.whatsapp-line {
  display: inline-flex;
  width: fit-content;
  padding: 11px 14px;
  border-radius: 8px;
  background: #16a34a;
  color: var(--white);
}

.enquiry-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.enquiry-form label {
  display: grid;
  gap: 8px;
  color: #344553;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfdcd8;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #16a34a;
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(22, 163, 74, 0.32);
}

@media (max-width: 980px) {
  .course-grid,
  .trust-band,
  .results-grid,
  .faculty-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .faculty-band,
  .contact-section,
  .utility-section,
  .payment-section,
  .login-section {
    grid-template-columns: 1fr;
  }

  .login-form {
    justify-self: stretch;
    width: 100%;
  }

  .hero {
    min-height: 860px;
  }
}

@media (max-width: 740px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 18px;
    right: 18px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    padding: 14px;
    border-radius: 8px;
  }

  .nav-cta {
    border-color: var(--line);
  }

  .hero {
    min-height: 780px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(9, 37, 44, 0.92), rgba(9, 37, 44, 0.58)),
      linear-gradient(0deg, rgba(9, 37, 44, 0.62), rgba(9, 37, 44, 0.05));
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-inline: 18px;
  }

  h1 {
    font-size: 28px;
  }

  .admission-badge {
    margin-bottom: 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-height: 46px;
    padding: 11px 15px;
  }

  .trust-band,
  .course-grid,
  .results-grid,
  .faculty-list,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .result-card img {
    margin: 0 auto;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-head {
    display: none;
  }

  .site-footer {
    display: grid;
  }
}
