:root {
  /* Numerology Palette (8/Saturn + Sun Gold) */
  --primary: #1E40AF;     /* royal blue */
  --blue: #1E40AF;
  --navy: #0B1B3A;        /* deep navy */

  --dark: #0F172A;        /* main text */
  --muted: #475569;       /* readable muted */

  --light: #F3F6FF;       /* base bg */
  --pageBg: #F2F6FF;      /* slightly deeper bg */

  --accent: #D4A106;      /* premium gold */
  --accentHover: #B88900; /* gold hover */
  --accentTint: #FFF2C6;  /* soft gold background */

  --card-bg: #ffffff;
  --border: #D6E0FF;
  --borderStrong: #C9D7FF;

  --softBlue: #EEF2FF;    /* card bg */
  --softBlue2: #E6EDFF;   /* section tint */

  --shadow: 0 14px 30px rgba(11, 27, 58, 0.10);
  --shadowStrong: 0 18px 36px rgba(11, 27, 58, 0.12);
  --radius: 16px;

  --t: 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

img, svg { max-width: 100%; height: auto; }

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--pageBg);
}

a { text-decoration: none; color: inherit; }

.container { width: min(1120px, 90%); margin: 0 auto; }

header { background: transparent; color: inherit; }

/* -------------------------
   Legacy styles (kept safe)
-------------------------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.navbar h1 { font-size: 1.4rem; letter-spacing: 1px; }
.navbar nav a {
  color: white;
  margin-left: 20px;
  font-weight: 500;
}

.hero { padding: 40px 0 60px; }
.hero h2 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 12px; }
.hero p { color: #e2e8f0; max-width: 680px; }

main { padding: 50px 0 70px; }

.sectionTitle { font-size: 1.8rem; margin-bottom: 10px; }
.sectionLead { color: var(--muted); margin-bottom: 26px; }

/* -------------------------
   Results / Feedback cards
-------------------------- */
.resultGrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.resultCard {
  background: var(--softBlue);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--borderStrong);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resultPhoto {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
}

.resultMeta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.resultMeta h3 { font-size: 1.1rem; }

.resultRank {
  background: var(--primary);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.resultDetails { color: var(--muted); font-size: 0.95rem; }

.feedback {
  margin-top: 50px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feedbackCard {
  background: var(--softBlue);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--borderStrong);
}
.feedbackCard p { color: var(--muted); }
.feedbackCard span { display: block; margin-top: 14px; font-weight: 800; }

/* -------------------------
   Topbar / Header / Nav
-------------------------- */
.topbar {
  background: #E9F0FF;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.link { color: var(--navy); font-weight: 800; }
.link:hover { color: var(--primary); }

.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__logoImg {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand__text strong { display: block; font-size: 16px; color: var(--navy); font-weight: 900; }
.brand__text small { color: var(--muted); font-weight: 600; }

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 10px;
  transition: color var(--t), background var(--t);
}
.nav a:hover { color: var(--primary); background: rgba(30,64,175,0.06); }
.nav a[aria-current="page"] { color: var(--primary); }

.navSep {
  width: 1px;
  height: 16px;
  background: var(--border);
  display: inline-block;
}

.navToggle {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 900;
  color: var(--navy);
}

/* -------------------------
   Buttons / Pills
-------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--navy);
  font-weight: 900;
  border: 1px solid transparent;
  box-shadow: 0 10px 20px rgba(212, 161, 6, 0.18);
  transition: transform var(--t), background var(--t), box-shadow var(--t);
}
.btn:hover { background: var(--accentHover); transform: translateY(-1px); }

.btn--ghost {
  background: #fff;
  border: 1px solid var(--borderStrong);
  color: var(--navy);
  box-shadow: 0 10px 20px rgba(11, 27, 58, 0.06);
}
.btn--ghost:hover { transform: translateY(-1px); }

.btn--sm { padding: 6px 12px; font-size: 12px; box-shadow: none; }

.pillRow, .btnRow { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  background: #fff;
  color: var(--navy);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--borderStrong);
  font-weight: 800;
}

.pill--gold {
  background: var(--accentTint);
  color: var(--navy);
  border-color: rgba(212, 161, 6, 0.35);
}

/* -------------------------
   Sections / Home hero
-------------------------- */
.section { padding: 40px 0; background: transparent; }

.sectionHead h2 { font-size: 24px; color: var(--navy); }
.sectionHead p, .muted { color: var(--muted); }

.section--hero {
  background: linear-gradient(180deg, var(--softBlue2), var(--pageBg));
  color: var(--navy);
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.heroTitle {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}

.heroSub { margin-top: 10px; color: var(--muted); }

.gold { color: var(--accent); }

.heroCard {
  background: #fff;
  border: 1px solid var(--borderStrong);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadowStrong);
}

.founderCard {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}

.founderImg {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.founderName { font-weight: 900; margin: 0; color: var(--navy); }
.founderRole { margin: 0; color: var(--muted); font-size: 13px; }

/* -------------------------
   Quick Actions / Cards
-------------------------- */
.quickActions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  align-items: center;
}

.qBtn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--borderStrong);
  background: var(--softBlue);
  transition: transform var(--t), box-shadow var(--t);
}

.qBtn svg, .qMini svg { width: 22px; height: 22px; }

.qIcon, .qMiniIcon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--borderStrong);
  display: grid;
  place-items: center;
}

.qText strong { display: block; color: var(--navy); font-weight: 900; }
.qArrow { margin-left: auto; color: var(--muted); }

.qMini {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--borderStrong);
  background: var(--softBlue);
  transition: transform var(--t), box-shadow var(--t);
}

.whyGrid, .gridCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.whyCard, .courseTile {
  border: 1px solid var(--borderStrong);
  background: var(--softBlue);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t);
}

.courseTile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 900;
  color: var(--navy);
}

.ctaBar {
  border: 1px solid var(--borderStrong);
  background: var(--softBlue);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadowStrong);
}

.whyCard:hover,
.courseTile:hover,
.qBtn:hover,
.qMini:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadowStrong);
}

/* Floating WhatsApp */
.waFloat {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #16A34A;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.25);
  z-index: 60;
}

/* -------------------------
   Footer (Premium Dark)
-------------------------- */
.footer {
  background: var(--navy);
  color: #E8EEFF;
  padding: 30px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(214, 224, 255, 0.25);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.footer .muted { color: #C7D2FE; }
.footer a { color: #FFD56A; text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: #FFE08A; }

.footerSocial {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.iconBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  color: #E8EEFF;
  border: 1px solid rgba(214, 224, 255, 0.25);
  transition: background var(--t), border-color var(--t);
}

.iconBtn:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255, 213, 106, 0.35);
}

.iconBtn .icon { width: 18px; height: 18px; }

.tiny { font-size: 12px; }

/* =========================
   UNIFORM COURSE PAGE LAYOUT
   ========================= */
.coursePage { background: transparent; }

.courseHero {
  background: linear-gradient(180deg, var(--softBlue2), var(--pageBg));
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.courseHeroGrid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: start;
}

.courseTitle {
  color: var(--navy);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  margin: 0 0 10px;
}

.courseLead {
  color: var(--muted);
  margin: 0;
  max-width: 720px;
}

.courseCTA {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.courseBadgeRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.courseSideCard {
  background: #fff;
  border: 1px solid var(--borderStrong);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadowStrong);
}

.courseSideCard h3 { margin: 0 0 8px; color: var(--navy); }
.courseSideCard .muted { margin: 0 0 12px; }

.courseSection { padding: 34px 0; }

.courseSectionAlt {
  background: #fff;
  border-top: 1px solid rgba(214, 224, 255, 0.6);
  border-bottom: 1px solid rgba(214, 224, 255, 0.6);
}

.courseCardGrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.courseCard {
  background: var(--softBlue);
  border: 1px solid var(--borderStrong);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 16px 32px rgba(11, 27, 58, 0.10);
}

.courseCard h4 { margin: 0 0 6px; color: var(--navy); font-weight: 900; }
.courseCard p { margin: 0; color: var(--muted); font-size: 14px; }

.courseSplit {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--borderStrong);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 36px rgba(11, 27, 58, 0.10);
}

.panel h3 { margin: 0 0 8px; color: var(--navy); font-weight: 900; }
.panel .btnRow { margin-top: 12px; }

.faq {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--borderStrong);
  border-radius: 14px;
  padding: 12px 14px;
}

.faq summary { cursor: pointer; font-weight: 900; color: var(--navy); }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* Sticky CTA (conversion) */
.stickyCTA {
  position: sticky;
  bottom: 0;
  z-index: 50;
  background: rgba(11, 27, 58, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(214, 224, 255, 0.25);
  padding: 10px 0;
}

.stickyCTA__inner {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.stickyCTA__text { color: #E8EEFF; font-weight: 900; }
.stickyCTA__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================
   RESPONSIVE (GLOBAL)
   ========================= */
@media (max-width: 900px) {
  .heroGrid, .quickActions { grid-template-columns: 1fr; }
  .courseHeroGrid { grid-template-columns: 1fr; }
  .courseSplit { grid-template-columns: 1fr; }
}

/* =========================
   MOBILE FIX (HEADER + COURSE)
   ========================= */
@media (max-width: 768px) {

  .header__inner { flex-wrap: wrap; align-items: center; }
  .navToggle { display: block; margin-left: auto; }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0 4px;
  }

  /* ✅ MUST MATCH main.js */
  .nav.is-open { display: flex; }

  .nav a {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .navSep { display: none; }

  .nav .btn {
    width: 100%;
    justify-content: center;
  }
}

  /* Course hero spacing */
  .courseHero { padding: 26px 0; }
  .courseTitle { font-size: 24px; line-height: 1.25; }
  .courseLead { font-size: 14px; }

  /* Course CTA full width */
  .courseCTA { flex-direction: column; gap: 10px; }
  .courseCTA .btn { width: 100%; justify-content: center; }

  /* Pills tighter */
  .courseBadgeRow { gap: 6px; }
  .pill { font-size: 12px; padding: 6px 10px; }

  /* Cards one column */
  .courseCardGrid { grid-template-columns: 1fr; }

  /* Panels padding */
  .panel { padding: 14px; }

  /* Sticky CTA stack */
  .stickyCTA__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .stickyCTA__text { font-size: 14px; text-align: center; }
  .stickyCTA__actions { flex-direction: column; }
  .stickyCTA__actions .btn { width: 100%; justify-content: center; }

  /* Footer center */
  .footer__inner { flex-direction: column; text-align: center; gap: 10px; }

  /* Floating WA */
  .waFloat { bottom: 16px; right: 14px; }
}

/* Tiny phones */
@media (max-width: 420px) {
  .container { width: min(1120px, 92%); }
  .brand__text strong { font-size: 15px; }
}
