:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --blue: #1e3a8a;
  --blue-light: #3b82f6;
  --dark: #0f172a;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --max-w: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.orange { color: var(--orange); }
.blue { color: var(--blue-light); }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--orange);
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
/* Text removed from logo to avoid double text with logo image */
nav ul { display: flex; gap: 16px; list-style: none; flex-wrap: wrap; justify-content: flex-end; }
nav a {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--dark);
  transition: color 0.2s;
  white-space: nowrap;
}
nav a:hover, nav a.active { color: var(--orange); }
.nav-cta {
  background: var(--orange);
  color: white !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--orange-dark); }
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Home */
.hero-home {
  padding: 60px 0 70px;
  background:
    linear-gradient(180deg, #fff7ed 0%, #ffffff 70%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, #f1f5f9 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, #f1f5f9 40px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.admissions-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffedd5;
  color: var(--orange-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.admissions-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}
.hero-home h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
  color: #1e293b;
}
.hero-home h1 em {
  font-style: italic;
  color: var(--orange);
  font-weight: 700;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 460px;
  margin-bottom: 28px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--orange);
  color: white;
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background: white;
  border: 2px solid #e2e8f0;
  color: var(--dark);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.stats {
  display: flex;
  gap: 36px;
}
.stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
}
.stat span {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.12);
}
.hero-img img { width: 100%; }

/* Sections */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 16px; }
.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.badge-orange { background: #ffedd5; color: var(--orange-dark); }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-purple { background: #f3e8ff; color: #7c3aed; }
.badge-green { background: #dcfce7; color: #15803d; }

/* Ways */
.ways { background: var(--light); }
.ways-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.way-card {
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.way-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.way-card img {
  border-radius: 12px;
  margin-bottom: 16px;
  height: 180px;
  object-fit: cover;
  width: 100%;
}
.way-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.way-card p { color: var(--gray); font-size: 0.95rem; flex-grow: 1; margin-bottom: 14px; }
.learn-more {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Courses */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.course-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.course-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(249,115,22,0.1);
}
.course-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.course-card p { color: var(--gray); font-size: 0.9rem; margin-bottom: 12px; }

/* CTA */
.cta {
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  color: white;
  text-align: center;
  padding: 70px 0;
}
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.cta p { color: #94a3b8; max-width: 500px; margin: 0 auto 28px; font-size: 1.05rem; }

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 50px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 10px;
}
.footer-logo span {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 500;
}
footer h4 { color: white; font-size: 0.95rem; margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; }
footer a:hover { color: var(--orange); }
.socials { display: flex; gap: 12px; margin-top: 14px; }
.socials a {
  width: 38px;
  height: 38px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
}
.socials a:hover { background: var(--orange); color: white; }
.contact-info p { margin-bottom: 7px; font-size: 0.9rem; }
.map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #1e293b;
  margin-bottom: 28px;
}
.copyright {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* WhatsApp */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.7rem;
  box-shadow: 0 4px 18px rgba(37,211,102,0.4);
  z-index: 90;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }

/* Page specific */
.page-hero {
  padding: 50px 0 30px;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p { color: var(--gray); max-width: 560px; margin: 0 auto; }

/* About */
.story-block { max-width: 720px; margin: 0 auto 40px; }
.story-block p { color: var(--gray); margin-bottom: 16px; font-size: 1.05rem; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.value-card {
  background: #1e293b;
  color: white;
  border-radius: 16px;
  padding: 24px;
}
.value-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.value-card p { color: #94a3b8; font-size: 0.95rem; }
.timeline { max-width: 640px; margin: 40px auto 0; }
.timeline-item {
  padding: 20px 0 20px 28px;
  border-left: 3px solid #ffedd5;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 26px;
  width: 13px;
  height: 13px;
  background: var(--orange);
  border-radius: 50%;
}
.timeline-item strong {
  display: block;
  color: var(--orange);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* Methods detail */
.method-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 50px 0;
  padding: 30px 0;
  border-bottom: 1px solid #e2e8f0;
}
.method-detail:last-child { border-bottom: none; }
.method-detail img {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.method-detail ul { list-style: none; margin: 16px 0; }
.method-detail li {
  padding: 6px 0;
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
}
.method-detail li::before {
  content: "✓";
  color: #16a34a;
  font-weight: 700;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  margin: 40px 0;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
th { background: #f8fafc; font-weight: 600; }
td.check { color: #16a34a; font-weight: 700; }
td.cross { color: #94a3b8; }

/* Courses page */
.course-block {
  margin: 40px 0;
  padding: 30px;
  background: var(--light);
  border-radius: 18px;
}
.course-block h3 { font-size: 1.4rem; margin-bottom: 10px; }
.course-block p { color: var(--gray); margin-bottom: 14px; }
.course-block ul { list-style: none; }
.course-block li {
  padding: 5px 0;
  display: flex;
  gap: 10px;
}
.course-block li::before {
  content: "✓";
  color: #16a34a;
  font-weight: 700;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .ways-grid,
  .courses-grid,
  .footer-grid,
  .values-grid,
  .method-detail,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  nav ul { display: none; }
  .menu-btn { display: block; }
  .nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    gap: 14px;
  }
  .stats { flex-wrap: wrap; gap: 20px; }
  .hero-home { padding: 40px 0 50px; }
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* Feature cards used on Students / Parents / Mentors */
.feature-list { max-width: 720px; margin: 0 auto; }
.feature-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid #e2e8f0;
  align-items: flex-start;
}
.feature-item:last-child { border-bottom: none; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  font-weight: 700;
  color: white;
}
.feature-item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.feature-item p { color: var(--gray); font-size: 0.95rem; line-height: 1.5; }

/* Testimonial cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.testimonial-card {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 24px;
}
.testimonial-card p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1rem;
}
.author-info strong { display: block; color: white; font-size: 0.95rem; }
.author-info span { font-size: 0.8rem; color: #94a3b8; }

/* Phase / Roadmap cards */
.phase-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.phase-card.completed { border-color: #22c55e; }
.phase-card.in-progress { border-color: #f97316; }
.phase-card.upcoming { border-color: #94a3b8; }
.phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.phase-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge-completed { background: #dcfce7; color: #16a34a; }
.badge-progress { background: #ffedd5; color: #ea580c; }
.badge-upcoming { background: #f1f5f9; color: #64748b; }
.phase-card ul { list-style: none; margin-top: 16px; }
.phase-card li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--gray);
  font-size: 0.95rem;
}
.phase-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}
.phase-card.upcoming li::before { content: "○"; color: #94a3b8; }

/* FAQ */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: white;
  border: none;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dark);
}
.faq-q:hover { background: #f8fafc; }
.faq-a {
  padding: 0 20px 18px;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { color: var(--orange); }

/* Mentor form */
.mentor-form {
  max-width: 560px;
  margin: 40px auto;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
}
.mentor-form .form-group { margin-bottom: 18px; }
.mentor-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.mentor-form input,
.mentor-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
}
.mentor-form button {
  width: 100%;
  margin-top: 8px;
}

/* Promise / CTA band */
.promise-band {
  background: var(--orange);
  color: white;
  text-align: center;
  padding: 48px 24px;
  border-radius: 20px;
  margin: 40px 0;
}
.promise-band h2 { color: white; margin-bottom: 12px; }
.promise-band p { opacity: 0.95; max-width: 560px; margin: 0 auto 24px; }

@media (max-width: 1100px) {
  nav ul { gap: 12px; }
  nav a { font-size: 0.8rem; }
}

/* ========== Scroll reveal / text flow animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Slightly faster for small elements */
.stat.reveal,
.btn.reveal {
  transition-duration: 0.5s;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Smooth page load fade for body content */
body {
  animation: pageFade 0.45s ease-out;
}
@keyframes pageFade {
  from { opacity: 0.6; }
  to { opacity: 1; }
}
