:root {
  --primary: #354088;
  --secondary: #fbe99e;
  --accent: #e34949;
  --text: #1f2340;
  --bg: #f7f9ff;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  z-index: 1200;
}

.sticky-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  text-decoration: none;
  background: var(--accent);
  color: var(--white);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(227, 73, 73, 0.35);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #e8ecff 0%, #fdf5cf 90%);
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-layer-1 {
  background: radial-gradient(circle at 20% 20%, rgba(53, 64, 136, 0.25), transparent 35%);
}

.bg-layer-2 {
  background: radial-gradient(circle at 80% 30%, rgba(251, 233, 158, 0.7), transparent 40%);
}

.floating-icons span {
  position: absolute;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  opacity: 0.8;
}

.floating-icons span:nth-child(1) {
  top: 20%;
  left: 12%;
}

.floating-icons span:nth-child(2) {
  top: 12%;
  right: 14%;
}

.floating-icons span:nth-child(3) {
  top: 64%;
  right: 22%;
}

.floating-icons span:nth-child(4) {
  bottom: 20%;
  left: 18%;
}

.floating-icons span:nth-child(5) {
  top: 45%;
  left: 45%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 2.5rem 0 4rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  max-width: 40ch;
  margin-bottom: 1.4rem;
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0.75rem;
  padding: 0.85rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(53, 64, 136, 0.28);
}

.btn-small {
  font-size: 0.9rem;
  padding: 0.65rem 0.95rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.child-card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 1.5rem;
  width: min(100%, 380px);
  box-shadow: 0 14px 35px rgba(53, 64, 136, 0.2);
}

.child-avatar {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.section {
  padding: 5.5rem 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.reverse {
  direction: ltr;
}

.section-text h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  margin-bottom: 0.9rem;
  color: var(--primary);
}

.center {
  text-align: center;
}

.dream {
  background: #fffdf3;
}

.dream-bubbles {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 1rem;
}

.bubble {
  background: var(--white);
  border: 2px solid #dbe1ff;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 600;
}

.challenge {
  background: linear-gradient(180deg, #f3f6ff, #ebf0ff);
}

.challenge-scene {
  position: relative;
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  min-height: 220px;
  display: grid;
  place-content: center;
  box-shadow: 0 10px 25px rgba(52, 62, 124, 0.12);
}

.desk {
  font-weight: 700;
}

.question {
  position: absolute;
  font-size: 1.7rem;
  color: var(--accent);
}

.q1 { top: 18%; left: 12%; }
.q2 { top: 30%; right: 14%; }
.q3 { bottom: 18%; left: 25%; }

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

.benefit-grid,
.branch-grid,
.testimonial-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.benefit-card,
.branch-card,
.testimonial {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 8px 20px rgba(45, 58, 133, 0.12);
}

.benefit-card span {
  font-size: 1.8rem;
}

.progress {
  background: #f7f9ff;
}

.before-after {
  margin-top: 2rem;
}

.state {
  font-weight: 600;
  margin: 0.75rem 0;
}

.progress-track {
  background: #d9e0ff;
  border-radius: 999px;
  height: 16px;
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.branches {
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.branch-card {
  border: 1px solid #dfe4ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 24px rgba(53, 64, 136, 0.2);
}

.branch-card h3 {
  margin-bottom: 0.75rem;
}

.testimonials {
  background: #fff7d8;
}

.stars {
  color: #f8b500;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.parent {
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.final-cta {
  background: linear-gradient(145deg, var(--primary), #4e5bc7);
  color: var(--white);
}

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

.btn-pulse {
  background: var(--accent);
  margin-top: 1rem;
}

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

.enroll-form {
  max-width: 640px;
  margin: 1.8rem auto 0;
  display: grid;
  gap: 0.9rem;
}

.enroll-form label {
  font-weight: 600;
  display: grid;
  gap: 0.4rem;
}

.enroll-form input,
.enroll-form select {
  padding: 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid #cfd5f3;
  font-size: 1rem;
}

.footer {
  background: #212953;
  color: #e4e7ff;
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.footer ul {
  list-style: none;
}

.js-enabled .reveal,
.js-enabled .reveal-card {
  opacity: 0;
  transform: translateY(26px);
}

@media (min-width: 768px) {
  .hero-content,
  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .reverse {
    direction: rtl;
  }

  .reverse > * {
    direction: ltr;
  }

  .benefit-grid,
  .branch-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .benefit-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

.dream-hero-image {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 14px 35px rgba(53, 64, 136, 0.2);
}

.dream-hero-image img,
.career-image-wrap img,
.confused-image {
  width: 100%;
  display: block;
  border-radius: 1rem;
}

.speech-bubble {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
}

.career-image-wrap {
  background: #fff;
  border-radius: 1rem;
  padding: 0.8rem;
  box-shadow: 0 8px 20px rgba(45, 58, 133, 0.12);
}

.challenge-scene {
  padding: 1rem;
}

.branch-grid-2x2 {
  grid-template-columns: 1fr;
}

.branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.school-logos {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.school-logos img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #dbe1ff;
  border-radius: 0.8rem;
  padding: 0.5rem;
}

.footer a {
  color: #e4e7ff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .branch-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Mobile spacing fixes */
.hero-content {
  min-height: auto;
  padding: 1.5rem 0 2rem;
}

.hero {
  min-height: auto;
}

.dream {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Better image visibility */
.career-image-wrap img {
  min-height: 220px;
  object-fit: cover;
  background: #f4f6ff;
}

/* Progress comparison stacked bar */
.before-after {
  max-width: 860px;
  margin: 2rem auto 0;
}

.state-points {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.state-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.state-item .emoji {
  font-size: 1.4rem;
}

.stacked-track {
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: #e8ecff;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.12);
}

.segment {
  height: 100%;
  transition: width 0.8s ease;
}

.before-segment {
  width: 20%;
  background: #a9abb3;
}

.after-segment {
  width: 80%;
  background: linear-gradient(90deg, #354088, #fbe99e);
}

.branch-card h3 a {
  color: var(--primary);
  text-decoration: none;
}

.branch-card h3 a:hover {
  text-decoration: underline;
}

.form-note {
  color: #4b517a;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .hero-content {
    min-height: calc(100vh - 72px);
    padding: 2.25rem 0 3.25rem;
  }

  .dream {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}


.career-image-wrap picture {
  display: block;
}

/* Career image hardening for mixed deploy roots */
.career-image-wrap img {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 0.8rem;
}

/* Reference-style progress chart */
.progress-chart {
  max-width: 920px;
  margin: 2rem auto 0;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.dot.before { background: #4e79e4; }
.dot.after { background: #d7c078; }

.chart-frame {
  background: #f2f4ff;
  border-radius: 1rem;
  padding: 0.8rem;
  position: relative;
}

.chart-frame svg {
  width: 100%;
  height: auto;
  display: block;
}

.axis {
  stroke: #8b90a8;
  stroke-width: 2;
}

.grid-lines line {
  stroke: #d4d8ea;
  stroke-width: 1;
}

.area-before {
  fill: rgba(78, 121, 228, 0.65);
  stroke: #4e79e4;
  stroke-width: 3;
}

.area-after {
  fill: rgba(215, 192, 120, 0.5);
  stroke: #d7c078;
  stroke-width: 3;
}

.axis-label {
  fill: #2d3356;
  font-size: 30px;
  font-family: Poppins, sans-serif;
}

.chart-note {
  position: absolute;
  background: #002751;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.note-before {
  left: 34%;
  bottom: 18%;
}

.note-after {
  right: 7%;
  top: 18%;
}

.gallery {
  background: #fffdf3;
}

.gallery-slider {
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  max-width: 900px;
}

.gallery-frame {
  background: #fff;
  border-radius: 1rem;
  padding: 0.6rem;
  box-shadow: 0 8px 20px rgba(45, 58, 133, 0.12);
}

.gallery-frame img {
  width: 100%;
  height: clamp(220px, 42vw, 460px);
  object-fit: cover;
  border-radius: 0.8rem;
  display: block;
}

.gallery-btn {
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-counter {
  text-align: center;
  margin-top: 0.7rem;
  font-weight: 600;
  color: var(--primary);
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

#brandLogo {
  height: 54px;
  width: auto;
  display: block;
}

.logo-fallback {
  display: none;
}

.logo-wrap.fallback #brandLogo {
  display: none;
}

.logo-wrap.fallback .logo-fallback {
  display: inline;
}

.fabulous {
  background: linear-gradient(140deg, #fff8df, #eef2ff 60%, #fff3c9);
}

.paint-card {
  background: linear-gradient(135deg, rgba(53, 64, 136, 0.09), rgba(251, 233, 158, 0.4));
  border: 1px solid #dce3ff;
  border-radius: 1.2rem;
  padding: 1.3rem;
  box-shadow: 0 10px 25px rgba(53, 64, 136, 0.12);
}

.tagline-box {
  margin-top: 1rem;
  background: #fff;
  border-radius: 1rem;
  padding: 1.2rem;
  border-left: 6px solid var(--accent);
}

.tagline-box ul,
.service-list {
  margin-top: 0.8rem;
  padding-left: 1.1rem;
}

.about-edupedia {
  background: #ffffff;
}

.reasons-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.reason-card {
  background: #f5f7ff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid #e0e6ff;
}

.dream-right {
  background: #fffdf1;
}

.final-cta .btn {
  white-space: normal;
  max-width: 700px;
  text-align: center;
}

@media (min-width: 900px) {
  .reasons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


.fabulous-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .fabulous-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.reveal-cards-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  justify-items: center;
}

.reveal-photo-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(34, 46, 120, 0.15);
}

.reveal-photo-card img {
  width: 100%;
  height: clamp(220px, 34vw, 380px);
  object-fit: cover;
  display: block;
}

.reveal-overlay {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(31, 35, 64, 0.68);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.35s ease;
}

.reveal-photo-card.unlocked .reveal-overlay {
  opacity: 0;
  pointer-events: none;
}

.final-reveal {
  margin-top: 1.3rem;
  background: #fff;
  border-radius: 1rem;
  padding: 0.6rem;
  box-shadow: 0 10px 20px rgba(34, 46, 120, 0.15);
}

.final-reveal img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #f7f8fc;
  border-radius: 0.8rem;
}

.final-caption {
  text-align: center;
  margin-top: 0.65rem;
  font-weight: 700;
  color: var(--primary);
}

@media (min-width: 900px) {
  .reveal-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Flip cards for learning choices */
.flip-card {
  perspective: 1200px;
  border-radius: 1rem;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: clamp(220px, 34vw, 380px);
  transform-style: preserve-3d;
  transition: transform 0.75s ease;
}

.flip-card.unlocked .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 10px 20px rgba(34, 46, 120, 0.15);
}

.flip-front {
  background: #002751;
  display: grid;
  place-content: center;
  gap: 0.9rem;
}

.mini-logo {
  width: min(220px, 80%);
  margin: 0 auto;
}

.flip-cta {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}

.flip-back {
  transform: rotateY(180deg);
}

.flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


#learningCards {
  align-items: center;
  justify-content: center;
  justify-items: center;
  width: 100%;
  margin: 1rem auto 0;
}

.flip-card {
  width: clamp(260px, 28vw, 360px);
  max-width: 100%;
}

.flip-card-inner {
  height: clamp(340px, 42vw, 480px);
}

.choice-separator {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

.flip-cta {
  width: fit-content;
  justify-self: center;
}

@media (min-width: 900px) {
  #learningCards {
    grid-template-columns: minmax(260px, 360px) auto minmax(260px, 360px);
    gap: 1.25rem;
  }

  .choice-separator {
    margin: 0 0.25rem;
  }
}


.dream-right .container {
  max-width: 1200px;
}


.phone-field {
  display: flex;
  align-items: center;
  border: 1px solid #cfd5f3;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #fff;
}

.phone-field span {
  padding: 0.85rem 0.75rem;
  background: #eef2ff;
  color: #2b346e;
  font-weight: 600;
  border-right: 1px solid #cfd5f3;
}

.phone-field input {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
}

.phone-field input:focus {
  outline: none;
}

.registration-page {
  background: #f8faff;
}

.registration-form {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 18px rgba(35, 50, 130, 0.12);
}


.birth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

@media (max-width: 700px) {
  .birth-row {
    grid-template-columns: 1fr;
  }
}

.registration-form fieldset {
  border: 1px solid #d5dcff;
  border-radius: 0.75rem;
  padding: 0.8rem;
}

.checkbox-grid {
  display: grid;
  gap: 0.45rem;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-weight: 500;
}

.checkbox-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
}

.hari-grid {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.checkbox-grid input[type="checkbox"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  width: 1px;
  height: 1px;
}
