/* =========================================================
   VidyaRank.in — style.css
   1. Variables   2. Reset   3. Typography   4. Buttons
   5. Header      6. Hero    7. Stats        8. Cards
   9. Sections    10. Courses 11. Testimonials 12. FAQ
   13. CTA        14. Footer  15. Responsive  16. Contact Page
   ========================================================= */

/* ---------------------------------------------------------
   1. Variables
--------------------------------------------------------- */
:root {
  --navy: #0B2A50;
  --navy-deep: #081E3B;
  --orange: #FF5A00;
  --orange-deep: #E04E00;
  --white: #FFFFFF;
  --bg-light: #F7F9FC;
  --border: #E5E7EB;
  --text-dark: #172033;
  --text-secondary: #64748B;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 42, 80, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 42, 80, 0.08);
  --shadow-lg: 0 20px 48px rgba(11, 42, 80, 0.14);

  --container-width: 1200px;
  --header-height: 76px;
}

/* ---------------------------------------------------------
   2. Reset
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------
   3. Typography
--------------------------------------------------------- */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--text-secondary); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-heading {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-heading-left { text-align: left; margin-left: 0; }
.section-heading p { margin-top: 12px; font-size: 1.05rem; }
.placeholder-note { font-size: 0.85rem !important; color: var(--text-secondary); font-style: italic; }

.badge {
  display: inline-block;
  background: rgba(255, 90, 0, 0.08);
  color: var(--orange-deep);
  border: 1px solid rgba(255, 90, 0, 0.2);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.check-list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-dark); font-size: 0.98rem; }
.check-list i { color: var(--orange); margin-top: 4px; }

/* ---------------------------------------------------------
   4. Buttons
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-deep); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-light); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* ---------------------------------------------------------
   5. Header
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  /* Keep header clear of notches / Dynamic Island in standalone PWA mode */
  padding-top: env(safe-area-inset-top);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 48px; width: auto; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name-vidya { color: var(--navy); }
.brand-name-rank { color: var(--orange); }

.nav-desktop { flex: 1; }
.nav-desktop ul { display: flex; align-items: center; gap: 30px; }
.nav-desktop a {
  position: relative;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text-dark);
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s ease;
}
.nav-desktop a:hover { color: var(--navy); }
.nav-desktop a:hover::after { width: 100%; }
.nav-desktop a.active { color: var(--navy); font-weight: 600; }
.nav-desktop a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: calc(var(--header-height) + env(safe-area-inset-top));
  right: 0;
  width: min(320px, 84vw);
  height: calc(100dvh - var(--header-height) - env(safe-area-inset-top));
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 499;
  overflow-y: auto;
  padding: 28px 24px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a.active { color: var(--orange); font-weight: 600; }
.mobile-menu-actions { display: flex; flex-direction: column; gap: 12px; }

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 42, 80, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 498;
}
.mobile-menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------
   6. Hero
--------------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%); padding: 72px 0 96px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.hero-heading { margin-bottom: 20px; }
.hero-text { font-size: 1.15rem; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust { font-size: 0.88rem; color: var(--text-secondary); }

.hero-visual { display: flex; justify-content: center; }
.hero-visual-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
}
.hero-visual-base {
  position: absolute;
  inset: 10%;
  background: var(--navy);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 0;
}
.hero-visual-base i { font-size: 4.5rem; color: rgba(255,255,255,0.14); }

.float-card {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  animation: floatY 6s ease-in-out infinite;
}
.float-card i { font-size: 1.3rem; color: var(--orange); }
.float-card strong { display: block; font-size: 0.9rem; color: var(--navy); font-family: var(--font-heading); }
.float-card span { display: block; font-size: 0.78rem; color: var(--text-secondary); }

.float-card--course { top: 4%; left: -6%; animation-delay: 0s; }
.float-card--progress { bottom: 12%; left: -4%; animation-delay: 1.2s; }
.float-card--growth { top: 42%; right: -8%; animation-delay: 2.4s; }

.progress-ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: var(--border); }
.ring-fg { stroke: var(--orange); stroke-dasharray: 213.5; stroke-dashoffset: 47; stroke-linecap: round; }
.progress-ring span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: var(--navy);
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------------------------------------------------------
   7. Stats
--------------------------------------------------------- */
.stats { background: var(--navy); padding: 48px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-family: var(--font-heading); font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem); font-weight: 800; color: var(--white); }
.stat-label { color: rgba(255,255,255,0.7); font-size: 0.92rem; }

/* ---------------------------------------------------------
   8. Cards / Sections shared
--------------------------------------------------------- */
.about-preview { background: var(--white); }
.about-preview-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }

.about-visual { position: relative; height: 360px; }
.about-visual-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 150px;
  height: 150px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
}
.about-visual-card i { font-size: 2rem; color: var(--orange); }
.about-visual-card:nth-child(1) { top: 0; left: 10%; }
.about-visual-card:nth-child(2) { top: 90px; left: 50%; background: var(--navy); color: var(--white); }
.about-visual-card:nth-child(2) i { color: var(--white); opacity: 0.85; }
.about-visual-card:nth-child(3) { top: 200px; left: 4%; }

.about-visual-connector {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  border: 2px dashed var(--border);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.about-copy p { margin: 18px 0 0; font-size: 1.02rem; }

/* Ecosystem */
.ecosystem { background: var(--bg-light); }
.ecosystem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ecosystem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ecosystem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ecosystem-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(11, 42, 80, 0.06);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.ecosystem-icon i { color: var(--navy); font-size: 1.3rem; }
.ecosystem-card h3 { margin-bottom: 8px; }
.ecosystem-card p { font-size: 0.92rem; }

/* Why VidyaRank — asymmetric icon-row layout, not identical cards */
.why-section { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255, 90, 0, 0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-icon i { color: var(--orange); font-size: 1.15rem; }
.why-item h3 { margin-bottom: 6px; }
.why-item p { font-size: 0.92rem; }

/* How it works — horizontal connected timeline on desktop */
.how-section { background: var(--bg-light); }
.how-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
.how-timeline::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
}
.how-step { position: relative; text-align: center; padding-top: 0; }
.how-step-num {
  width: 44px; height: 44px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}
.how-step:nth-child(odd) .how-step-num { background: var(--navy); }
.how-step:nth-child(even) .how-step-num { background: var(--orange); }
.how-step h3 { margin-bottom: 6px; }
.how-step p { font-size: 0.9rem; }

/* ---------------------------------------------------------
   10. Courses (fixed 4-program offering)
--------------------------------------------------------- */
.courses-section { background: var(--bg-light); }

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.program-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(255, 90, 0, 0.35);
}

/* Integrated card carries two streams, so it earns the full row. */
.program-card--integrated { grid-column: 1 / -1; order: 1; }

.program-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(11, 42, 80, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.program-icon i { color: var(--navy); font-size: 1.4rem; }
.program-card:hover .program-icon { background: var(--orange); transform: scale(1.08); }
.program-card:hover .program-icon i { color: var(--white); }

.program-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.program-card-desc { font-size: 0.88rem; margin-bottom: 18px; }
.program-divider { height: 1px; background: var(--border); margin-bottom: 18px; }

.program-features { display: flex; flex-direction: column; gap: 12px; flex: 1; margin-bottom: 24px; }
.program-feature { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text-dark); }
.program-feature i { color: var(--orange); font-size: 0.95rem; width: 18px; text-align: center; flex-shrink: 0; transition: transform 0.2s ease; }
.program-card:hover .program-feature i { transform: scale(1.12); }

.program-cta { margin-top: auto; align-self: flex-start; }

/* Integrated card: Engineering / Medical streams side by side */
.program-streams { display: flex; gap: 28px; flex: 1; margin-bottom: 24px; }
.program-stream { flex: 1; display: flex; flex-direction: column; }
.program-stream-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--orange);
}
.program-stream-divider { width: 1px; background: var(--border); align-self: stretch; }

/* ---------------------------------------------------------
   11. Testimonials
--------------------------------------------------------- */
.testimonials-section { background: var(--bg-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-rating i { color: var(--orange); font-size: 0.85rem; margin-right: 2px; }
.testimonial-text { font-size: 0.96rem; color: var(--text-dark); flex: 1; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-person strong { display: block; font-size: 0.92rem; color: var(--navy); }
.testimonial-person span { font-size: 0.8rem; color: var(--text-secondary); }

/* ---------------------------------------------------------
   12. FAQ
--------------------------------------------------------- */
.faq-section { background: var(--white); }
.faq-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
}
.faq-icon { transition: transform 0.25s ease; color: var(--orange); flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-answer p { padding-bottom: 18px; font-size: 0.92rem; }
.faq-answer.is-open { max-height: 240px; }

/* ---------------------------------------------------------
   13. Final CTA
--------------------------------------------------------- */
.final-cta { background: var(--navy-deep); padding: 80px 0; }
.final-cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.final-cta h2 { color: var(--white); margin-bottom: 14px; }
.final-cta p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 32px; }
.final-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------
   14. Footer
--------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.8); padding: 64px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo { height: 44px; margin-bottom: 16px; border-radius: 8px; background: var(--white); padding: 4px; }
.footer-brand p { color: rgba(255,255,255,0.62); font-size: 0.92rem; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); }

.footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--orange); }
.footer-contact li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: rgba(255,255,255,0.65); }
.footer-contact i { color: var(--orange); width: 16px; }
.footer-contact-note { font-style: italic; color: rgba(255,255,255,0.45); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
}
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom-inner p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-legal a:hover { color: var(--white); }

/* ---------------------------------------------------------
   15. Responsive
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto 48px; }
  .float-card--course { left: 2%; }
  .float-card--progress { left: 2%; }
  .float-card--growth { right: 2%; }
  .about-preview-inner { grid-template-columns: 1fr; }
  .about-visual { order: -1; height: 300px; max-width: 420px; margin: 0 auto; }
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .program-card--integrated { grid-column: 1 / -1; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .faq-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-desktop, .header-actions { display: none; }
  .menu-toggle { display: flex; }
  .how-timeline { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .how-timeline::before { display: none; }
  .how-step { display: flex; align-items: flex-start; gap: 18px; text-align: left; }
  .how-step-num { margin: 0; flex-shrink: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 640px) {
  :root { --header-height: 68px; }
  .btn { padding: 13px 26px; } /* keep touch targets >= 44px tall on small screens */
  .btn-sm { padding: 11px 18px; }
  .section { padding: 64px 0; }
  .brand-logo { height: 40px; }
  .brand-name { font-size: 1.05rem; }
  .hero { padding: 40px 0 64px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { max-width: 280px; margin: 0 auto 64px; }
  .float-card { padding: 8px 12px; gap: 8px; }
  .float-card strong { font-size: 0.8rem; }
  .float-card span { font-size: 0.7rem; }
  .float-card--course { left: 0; top: -6%; }
  .float-card--progress { left: 0; bottom: -6%; }
  .float-card--growth { right: 0; top: 44%; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card--integrated { grid-column: auto; order: 0; }
  .program-streams { flex-direction: column; gap: 22px; }
  .program-stream-divider { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .final-cta-actions { flex-direction: column; align-items: stretch; }
}

/* ---------------------------------------------------------
   16. PWA install banner (mobile only — see assets/js/pwa.js,
   which is the ONLY code that ever removes the `hidden` attribute.
   Never shown on desktop and never shown once installed.)
--------------------------------------------------------- */
.pwa-install-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 600;
  padding: 14px 16px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  background: var(--white);
  box-shadow: 0 -8px 24px rgba(11, 42, 80, 0.14);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.pwa-install-banner.is-visible { transform: translateY(0); }
.pwa-install-banner-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pwa-install-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.pwa-install-text { flex: 1; font-size: 0.88rem; color: var(--text-dark); line-height: 1.35; }
.pwa-install-dismiss {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* This banner must never appear on desktop, regardless of any JS
   timing edge case — belt-and-braces alongside the JS feature checks. */
@media (min-width: 901px) {
  .pwa-install-banner { display: none !important; }
}

/* ---------------------------------------------------------
   17. Courses Page (courses.php)
--------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Courses hero visual (static panel, reuses .hero / .hero-visual grid) --- */
.courses-hero-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px;
  color: var(--white);
}
.courses-hero-panel-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: rgba(255, 90, 0, 0.16);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.courses-hero-panel-icon i { color: var(--orange); font-size: 1.7rem; }
.courses-hero-panel h2 { color: var(--white); font-size: 1.3rem; margin-bottom: 20px; }
.courses-hero-facts { display: flex; flex-direction: column; gap: 16px; }
.courses-hero-fact { display: flex; align-items: center; gap: 14px; }
.courses-hero-fact i { color: var(--orange); font-size: 1.05rem; width: 20px; text-align: center; flex-shrink: 0; }
.courses-hero-fact strong { display: block; font-family: var(--font-heading); font-size: 0.95rem; color: var(--white); }
.courses-hero-fact span { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.62); }

/* --- Integrated program badge on the course card --- */
.program-card { position: relative; }
.program-badge {
  position: absolute;
  top: 22px; right: 22px;
  background: rgba(255, 90, 0, 0.1);
  color: var(--orange-deep);
  border: 1px solid rgba(255, 90, 0, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

/* --- Fee summary cards --- */
.fee-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fee-summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.fee-summary-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(255, 90, 0, 0.3); }
.fee-summary-card h3 { font-size: 1rem; margin-bottom: 4px; }
.fee-summary-card-sub { font-size: 0.8rem; margin-bottom: 16px; }
.fee-summary-card-price { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; color: var(--orange); display: block; }
.fee-summary-card-price small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.03em; }
.fee-summary-card-link { display: inline-block; margin-top: 16px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.fee-summary-card-link:hover { color: var(--orange); }
.fee-summary-card-link i { margin-left: 4px; font-size: 0.75rem; }

/* --- Fee table --- */
.fee-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.fee-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.fee-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: right;
  padding: 16px 18px;
  white-space: nowrap;
}
.fee-table thead th.fee-table-particular-head {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 2;
}
.fee-table tbody th.fee-table-particular {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--white);
  position: sticky;
  left: 0;
  z-index: 1;
  white-space: nowrap;
}
.fee-table tbody tr.fee-row-alt th.fee-table-particular,
.fee-table tbody tr.fee-row-alt td { background: var(--bg-light); }
.fee-table td {
  text-align: right;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fee-table tbody th.fee-table-particular { border-bottom: 1px solid var(--border); padding: 14px 18px; }
.fee-table-total-row th.fee-table-particular,
.fee-table-total-row td {
  background: rgba(255, 90, 0, 0.09) !important;
  color: var(--navy);
  font-weight: 800;
  font-size: 1rem;
  border-top: 2px solid var(--orange);
  border-bottom: none;
}

/* --- Fee breakdown formula strip --- */
.fee-breakdown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}
.fee-breakdown-item { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; text-align: center; }
.fee-breakdown-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(11, 42, 80, 0.07);
  display: flex; align-items: center; justify-content: center;
}
.fee-breakdown-icon i { color: var(--navy); font-size: 1.25rem; }
.fee-breakdown-item.is-total .fee-breakdown-icon { background: var(--orange); }
.fee-breakdown-item.is-total .fee-breakdown-icon i { color: var(--white); }
.fee-breakdown-item span { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.fee-breakdown-op { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--orange); }

/* --- Important fee note banner --- */
.fee-note-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 90, 0, 0.08);
  border: 1px solid rgba(255, 90, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 32px;
}
.fee-note-banner i { color: var(--orange); font-size: 1.5rem; flex-shrink: 0; }
.fee-note-banner p { color: var(--navy); font-weight: 600; font-size: 0.95rem; margin: 0; }

/* --- Refund / payment policy --- */
.refund-section { background: var(--bg-light); }
.refund-institute-tag {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: -28px;
  margin-bottom: 40px;
}
.refund-institute-tag strong { color: var(--navy); }
.refund-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }

.refund-timeline { display: flex; flex-direction: column; }
.refund-step { display: flex; align-items: center; gap: 20px; }
.refund-step-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.refund-step-badge span { font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
.refund-step.is-final .refund-step-badge { background: var(--orange); }
.refund-step.is-final .refund-step-badge span { font-size: 0.68rem; font-weight: 700; padding: 0 6px; text-align: center; line-height: 1.2; }
.refund-step-info strong { display: block; font-family: var(--font-heading); color: var(--navy); font-size: 0.98rem; }
.refund-step-info span { font-size: 0.85rem; color: var(--text-secondary); }
.refund-connector { width: 2px; height: 30px; background: var(--border); margin-left: 31px; }

.refund-nonrefundable-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.refund-nonrefundable-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255, 90, 0, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.refund-nonrefundable-icon i { color: var(--orange); font-size: 1.25rem; }
.refund-nonrefundable-card h3 { margin-bottom: 10px; }
.refund-nonrefundable-pill {
  display: inline-block;
  margin-top: 14px;
  background: rgba(255, 90, 0, 0.1);
  color: var(--orange-deep);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
}

/* --- Courses page responsive --- */
@media (max-width: 1024px) {
  .fee-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .refund-layout { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .fee-summary-grid { grid-template-columns: 1fr; }
  .fee-breakdown { gap: 8px; }
  .fee-breakdown-item { width: 84px; }
  .fee-breakdown-icon { width: 46px; height: 46px; }
  .fee-note-banner { flex-direction: column; text-align: center; }
  .refund-institute-tag { margin-top: -20px; margin-bottom: 32px; }
  .courses-hero-panel { padding: 32px 24px; }
}

/* ---------------------------------------------------------
   18. Header — Scholarship Test CTA (global, all pages)
--------------------------------------------------------- */
.btn-scholarship {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 90, 0, 0.45);
  animation: scholarshipPulse 2.6s ease-in-out infinite;
}
.btn-scholarship:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn-scholarship i { font-size: 0.92em; }

@keyframes scholarshipPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 90, 0, 0.35); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 90, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 0, 0); }
}

@media (max-width: 1150px) and (min-width: 901px) {
  .header-actions { gap: 8px; }
  .btn-scholarship span.btn-scholarship-full { display: none; }
}

/* ---------------------------------------------------------
   19. Scholarship Test Page (scholarship-test.php)
--------------------------------------------------------- */

/* --- Hero --- */
.scholarship-hero { background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%); }
.scholarship-hero .hero-heading { margin-bottom: 14px; }
.scholarship-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 90, 0, 0.1);
  color: var(--orange-deep);
  border: 1px solid rgba(255, 90, 0, 0.25);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.scholarship-highlight-pill i { color: var(--orange); }
.scholarship-eligibility-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 600;
  margin-top: 4px;
}
.scholarship-eligibility-line i { color: var(--orange); }

/* --- Hero visual: badge ring + floating cards --- */
.scholarship-hero-visual-frame { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1; margin: 0 auto; }
.scholarship-badge-ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255, 90, 0, 0.25);
  z-index: 0;
  text-align: center;
  padding: 20px;
}
.scholarship-badge-ring i { color: var(--orange); font-size: 1.8rem; margin-bottom: 10px; }
.scholarship-badge-ring .scholarship-badge-uptolabel {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scholarship-badge-ring .scholarship-badge-percent {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw + 1rem, 3.4rem);
  line-height: 1;
  margin: 4px 0;
}
.scholarship-badge-ring .scholarship-badge-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 600;
}
.scholarship-hero-visual-frame .float-card--sch-a { top: 2%; left: -8%; animation-delay: 0s; }
.scholarship-hero-visual-frame .float-card--sch-b { bottom: 6%; left: -6%; animation-delay: 1.4s; }
.scholarship-hero-visual-frame .float-card--sch-c { top: 46%; right: -10%; animation-delay: 2.6s; }

/* --- Scholarship % highlight section --- */
.scholarship-percent-section { text-align: center; background: var(--white); }
.scholarship-percent-value {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--orange);
  font-size: clamp(3.5rem, 9vw + 1rem, 6.5rem);
  line-height: 1;
}
.scholarship-percent-uptolabel {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.scholarship-percent-sub { max-width: 520px; margin: 18px auto 0; }
.scholarship-percent-legal { font-size: 0.8rem; color: var(--text-secondary); font-style: italic; margin-top: 10px; }

/* --- Who Can Apply: compact eligibility chips --- */
.eligibility-chip-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.eligibility-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 152px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.eligibility-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(255, 90, 0, 0.3); }
.eligibility-chip-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(11, 42, 80, 0.07);
  display: flex; align-items: center; justify-content: center;
}
.eligibility-chip-icon i { color: var(--navy); font-size: 1.25rem; }
.eligibility-chip:hover .eligibility-chip-icon { background: var(--orange); }
.eligibility-chip:hover .eligibility-chip-icon i { color: var(--white); }
.eligibility-chip span { font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem; color: var(--navy); text-align: center; }

/* --- Why take the test: 5-card grid (reuses .ecosystem-card look) --- */
.scholarship-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

/* --- Benefits: numbered cards --- */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: rgba(11, 42, 80, 0.14);
  margin-bottom: 8px;
}
.benefit-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255, 90, 0, 0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.benefit-icon i { color: var(--orange); font-size: 1.1rem; }
.benefit-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.benefit-card p { font-size: 0.9rem; }

/* --- Eligible programs: icon + title + description cards --- */
.scholarship-program-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.scholarship-program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.scholarship-program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(255, 90, 0, 0.3); }
.scholarship-program-icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: rgba(11, 42, 80, 0.07);
  display: flex; align-items: center; justify-content: center;
}
.scholarship-program-icon i { color: var(--navy); font-size: 1.25rem; }
.scholarship-program-card h3 { font-size: 1rem; margin-bottom: 6px; }
.scholarship-program-card p { font-size: 0.86rem; }

/* --- How it works: 4-step timeline (horizontal desktop, vertical mobile) --- */
.scholarship-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.scholarship-steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--border);
}
.scholarship-step { position: relative; text-align: center; }
.scholarship-step-num {
  width: 44px; height: 44px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}
.scholarship-step:nth-child(even) .scholarship-step-num { background: var(--orange); }
.scholarship-step-icon { font-size: 1rem; }
.scholarship-step h3 { margin-bottom: 6px; }
.scholarship-step p { font-size: 0.9rem; }

/* --- Register highlight panel --- */
.register-panel {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.register-panel h2 { color: var(--white); margin-bottom: 12px; }
.register-panel p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 28px; }
.register-panel-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.register-panel-fact { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.register-panel-fact i { color: var(--orange); font-size: 1.05rem; }

/* --- Terms note --- */
.scholarship-terms-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  max-width: 720px;
  margin: 0 auto;
}
.scholarship-terms-note i { color: var(--text-secondary); font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.scholarship-terms-note p { font-size: 0.86rem; margin: 0; }
.scholarship-terms-note a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* --- Final CTA trophy icon --- */
.final-cta-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: rgba(255, 90, 0, 0.14);
  display: flex; align-items: center; justify-content: center;
}
.final-cta-icon i { color: var(--orange); font-size: 1.6rem; }

/* --- Scholarship page responsive --- */
@media (max-width: 1024px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .scholarship-program-grid { grid-template-columns: repeat(3, 1fr); }
  .scholarship-steps { grid-template-columns: 1fr; gap: 32px; }
  .scholarship-steps::before { display: none; }
  .scholarship-step { display: flex; align-items: flex-start; gap: 18px; text-align: left; }
  .scholarship-step-num { margin: 0; flex-shrink: 0; }
}
@media (max-width: 640px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .scholarship-program-grid { grid-template-columns: 1fr; }
  .eligibility-chip { width: 130px; padding: 20px 12px; }
  .register-panel { padding: 40px 24px; }
  .register-panel-facts { flex-direction: column; align-items: center; gap: 14px; }
  .scholarship-terms-note { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------------------------------------------------------
   16. Contact Page
--------------------------------------------------------- */

/* --- Hero visual: reuses base .hero-visual-frame / .float-card --- */
.contact-hero-visual-frame { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1; margin: 0 auto; }
.contact-hero-icon-ring {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 0;
}
.contact-hero-icon-ring i { font-size: 3.6rem; color: rgba(255,255,255,0.16); }
.contact-hero-visual-frame .float-card--contact-a { top: 2%; left: -8%; animation-delay: 0s; }
.contact-hero-visual-frame .float-card--contact-b { bottom: 10%; left: -6%; animation-delay: 1.3s; }
.contact-hero-visual-frame .float-card--contact-c { top: 48%; right: -10%; animation-delay: 2.5s; }

/* --- Contact info cards --- */
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(255, 90, 0, 0.3); }
.contact-card-icon {
  width: 56px; height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(11, 42, 80, 0.07);
  display: flex; align-items: center; justify-content: center;
}
.contact-card-icon i { color: var(--navy); font-size: 1.4rem; }
.contact-card--whatsapp .contact-card-icon { background: rgba(37, 211, 102, 0.12); }
.contact-card--whatsapp .contact-card-icon i { color: #25D366; }
.contact-card--scholarship .contact-card-icon { background: rgba(255, 90, 0, 0.1); }
.contact-card--scholarship .contact-card-icon i { color: var(--orange); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-card p { font-size: 0.9rem; margin-bottom: 6px; flex-grow: 1; }
.contact-card-cta { margin-top: 18px; }

/* --- Enquiry section --- */
.enquiry-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.enquiry-heading { margin: 0; max-width: none; }
.enquiry-side-facts { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.enquiry-side-facts li { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--text-secondary); }
.enquiry-side-facts i { color: var(--orange); font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

.enquiry-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; }
.form-group-full { grid-column: 1 / -1; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; font-family: var(--font-heading); }
.form-group .required { color: var(--orange); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.12);
}
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%2364748B' d='M1 1l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.enquiry-form-note { text-align: center; font-size: 0.82rem; margin-top: 14px; margin-bottom: 0; }

/* --- Location --- */
.location-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.location-card-icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.location-card-icon i { color: var(--white); font-size: 1.4rem; }
.location-address { font-size: 1.02rem; color: var(--text-dark); max-width: 440px; margin: 0 auto 24px; line-height: 1.6; }

/* --- Mobile-only sticky contact bar --- */
.mobile-contact-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 480;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(11, 42, 80, 0.1);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-contact-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.86rem;
  border: 1px solid var(--border);
  min-height: 44px;
}
.mobile-contact-bar-btn--primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.mobile-contact-bar-btn i { font-size: 1rem; }

/* --- Contact page responsive --- */
@media (max-width: 1024px) {
  .contact-card-grid { grid-template-columns: repeat(2, 1fr); }
  .enquiry-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .mobile-contact-bar { display: flex; }
  /* Reserve space for the sticky bar so it never covers the footer —
     scoped with :has() so pages without the bar are unaffected. */
  body:has(.mobile-contact-bar) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .contact-card-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .enquiry-form-wrap { padding: 26px 20px; }
  .location-card { padding: 30px 22px; }
}

/* ---------------------------------------------------------
   20. Homepage — ₹1 Campaign Hero (index.php)
   Copy/CTAs are data-driven from $homePageContent
   (includes/config.php); these rules only style that markup.
--------------------------------------------------------- */
.campaign-hero { padding: 56px 0 88px; }
.campaign-hero .hero-heading { margin-bottom: 12px; }
.campaign-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 14px;
  max-width: 480px;
}
.campaign-hero .hero-text { margin-bottom: 24px; }

.campaign-offer-highlight {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid rgba(255, 90, 0, 0.28);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 10px 20px 10px 10px;
  margin-bottom: 28px;
}
.campaign-offer-badge {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.campaign-offer-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--orange);
  line-height: 1;
}
.campaign-offer-price sup { font-size: 1rem; top: -0.9em; color: var(--orange-deep); }

.campaign-scholarship-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  margin-top: 18px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
}
.campaign-scholarship-link i { color: var(--orange); }
.campaign-scholarship-link:hover { color: var(--orange-deep); border-color: var(--orange-deep); }

.campaign-disclaimer { font-size: 0.8rem; color: var(--text-secondary); margin-top: 16px; }
.final-cta-disclaimer { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 18px; }

/* --- Hero visual: badge ring + doctor/education themed float cards --- */
.campaign-hero-visual-frame { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; margin: 0 auto; }

.campaign-badge-ring {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255, 90, 0, 0.28);
  z-index: 0;
  text-align: center;
  padding: 20px;
}
.campaign-badge-ring i { color: var(--orange); font-size: 1.7rem; margin-bottom: 8px; }
.campaign-badge-uptolabel {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.campaign-badge-price {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw + 1rem, 3.6rem);
  line-height: 1;
  margin: 4px 0;
}
.campaign-badge-caption { color: rgba(255,255,255,0.75); font-size: 0.8rem; font-weight: 600; }

.campaign-hero-visual-frame .float-card--campaign-a { top: 0%; left: -8%; animation-delay: 0s; }
.campaign-hero-visual-frame .float-card--campaign-b { bottom: 10%; left: -8%; animation-delay: 1.3s; }
.campaign-hero-visual-frame .float-card--campaign-c { top: 44%; right: -10%; animation-delay: 2.5s; }

/* --- Responsive: mobile-first hero priority ---
   Content (headline, ₹1 offer, CTA) must be reachable without scrolling
   past decorative artwork, so on smaller screens the visual moves
   *below* the content instead of above it (unlike the default hero). */
@media (max-width: 1024px) {
  .campaign-hero .hero-content { order: 1; }
  .campaign-hero .hero-visual { order: 2; max-width: 360px; margin: 40px auto 0; }
}

@media (max-width: 640px) {
  .campaign-hero { padding: 28px 0 48px; }
  .campaign-subtitle { font-size: 1.02rem; }
  .campaign-offer-highlight { padding: 8px 16px 8px 8px; gap: 10px; margin-bottom: 22px; }
  .campaign-offer-price { font-size: 1.5rem; }
  .campaign-hero .hero-visual { max-width: 260px; margin-top: 28px; }
  .campaign-badge-price { font-size: 2.2rem; }
  .campaign-hero-visual-frame .float-card--campaign-a { left: 0; top: -4%; }
  .campaign-hero-visual-frame .float-card--campaign-b { left: 0; bottom: -2%; }
  .campaign-hero-visual-frame .float-card--campaign-c { right: 0; top: 42%; }
  .campaign-scholarship-link { font-size: 0.88rem; }
}

/* ---------------------------------------------------------
   21. Homepage — Scholarship Test promo strip (index.php)
   Copy sourced from $homePageContent; mirrors the vetted wording
   already used on scholarship-test.php.
--------------------------------------------------------- */
.scholarship-strip { background: var(--white); }
.scholarship-strip-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow-lg);
}
.scholarship-strip-icon {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 90, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scholarship-strip-icon i { color: var(--orange); font-size: 2rem; }

.scholarship-strip-copy { flex: 1; min-width: 0; }
.scholarship-strip-copy .eyebrow { color: var(--orange); margin-bottom: 8px; }
.scholarship-strip-copy h2 { color: var(--white); margin-bottom: 10px; }
.scholarship-strip-highlight {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--orange);
  font-size: 1.15rem;
  margin-bottom: 8px !important;
}
.scholarship-strip-copy p { color: rgba(255,255,255,0.75); margin-top: 0; }

.scholarship-strip-cta { flex-shrink: 0; text-align: center; }
.scholarship-strip-disclaimer { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 12px; }

@media (max-width: 1024px) {
  .scholarship-strip-inner { flex-direction: column; text-align: center; padding: 40px 32px; }
  .scholarship-strip-copy p { margin-top: 4px; }
}
@media (max-width: 640px) {
  .scholarship-strip-inner { padding: 32px 22px; border-radius: var(--radius-md); gap: 20px; }
  .scholarship-strip-icon { width: 64px; height: 64px; }
  .scholarship-strip-icon i { font-size: 1.5rem; }
  .scholarship-strip-cta .btn { width: 100%; }
}
