/* =============================================================
   PASS GO AND COLLECT $200
   Main Stylesheet
   ============================================================= */

/* ----- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:    #1a56db;
  --color-primary-dk: #1340a8;
  --color-accent:     #f59e0b;
  --color-text:       #1a1a2e;
  --color-text-mid:   #4b5563;
  --color-text-light: #6b7280;
  --color-bg:         #ffffff;
  --color-bg-alt:     #f8faff;
  --color-border:     #e5e7eb;
  --color-success:    #10b981;
  --color-error:      #ef4444;

  --font-sans:  'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:     8px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);

  --max-w: 1100px;
  --header-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ----- Utilities ------------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0;
           margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ----- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, opacity .18s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-dk); border-color: var(--color-primary-dk); }
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover { background: var(--color-bg-alt); }
.btn-nav {
  background: var(--color-accent);
  color: var(--color-text);
  border-color: var(--color-accent);
  padding: .45rem 1.1rem;
}
.btn-nav:hover { filter: brightness(0.92); }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }


/* =============================================================
   SITE HEADER
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
  letter-spacing: -.01em;
}
.logo:hover { text-decoration: none; opacity: .85; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-links a { color: var(--color-text-mid); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--color-primary); text-decoration: none; }


/* =============================================================
   HERO
   ============================================================= */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 60%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: #e0e7ff;
  color: var(--color-primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-text);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--color-text-mid);
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-checks {
  list-style: none;
  margin-bottom: 32px;
}
.hero-checks li {
  padding: 4px 0;
  color: var(--color-text-mid);
  font-size: .97rem;
}
.hero-image {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
}
.hero-card-icon { font-size: 2rem; }
.hero-card-text { display: flex; flex-direction: column; }
.hero-card-text strong { font-size: 1rem; font-weight: 700; }
.hero-card-text span { font-size: .88rem; color: var(--color-text-light); }


/* =============================================================
   TRUST BAR
   ============================================================= */
.trust-bar {
  background: var(--color-primary);
  padding: 32px 0;
  color: #fff;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-item { text-align: center; }
.trust-number { display: block; font-size: 1.5rem; font-weight: 800; }
.trust-label { font-size: .85rem; opacity: .85; }
.trust-divider { width: 1px; height: 40px; background: rgba(255,255,255,.3); }


/* =============================================================
   GENERIC SECTIONS
   ============================================================= */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--color-text-mid);
  font-size: 1.05rem;
  margin-bottom: 48px;
}


/* ----- HOW IT WORKS steps ---------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.step {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { color: var(--color-text-mid); font-size: .95rem; }


/* ----- FEATURES grid --------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.feature {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--color-text-mid); font-size: .95rem; }


/* ----- MODULES list --------------------------------------- */
.modules { display: flex; flex-direction: column; gap: 16px; }
.module {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.module-num {
  flex-shrink: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: .25;
  line-height: 1;
  min-width: 48px;
}
.module h3 { margin-bottom: 4px; }
.module p { color: var(--color-text-mid); font-size: .95rem; }


/* ----- FAQ ------------------------------------------------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--color-primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 24px 20px; color: var(--color-text-mid); font-size: .97rem; }


/* ----- ENROLL section -------------------------------------- */
.enroll-section { background: var(--color-primary); }
.enroll-section .section-title { color: #fff; }
.enroll-box {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}
.enroll-box h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.enroll-box > p {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.enroll-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.enroll-form input[type="email"] {
  flex: 1 1 260px;
  padding: .8rem 1.2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-size: 1rem;
  outline: none;
  transition: border-color .15s;
}
.enroll-form input[type="email"]:focus { border-color: var(--color-accent); }
.enroll-error {
  color: #ffd6d6;
  font-size: .9rem;
  margin-top: 8px;
  min-height: 1.4em;
}
.enroll-fine-print {
  margin-top: 16px;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}
.enroll-fine-print a { color: rgba(255,255,255,.8); text-decoration: underline; }


/* =============================================================
   SITE FOOTER
   ============================================================= */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,.75);
  padding: 48px 0 32px;
  text-align: center;
}
.footer-logo { font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 6px; }
.footer-tagline { font-size: .9rem; margin-bottom: 20px; }
.footer-nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-nav a { color: rgba(255,255,255,.65); font-size: .9rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: .82rem; opacity: .5; }


/* =============================================================
   COURSE PAGE
   ============================================================= */
.course-body { background: var(--color-bg-alt); }

.course-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}
.course-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.course-progress-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}
.course-progress-bar {
  height: 100%;
  background: var(--color-success);
  border-radius: 999px;
  width: 0%;
  transition: width .4s ease;
}
.progress-label { font-size: .82rem; font-weight: 600; color: var(--color-text-mid); white-space: nowrap; }

/* ----- Course layout --------------------------------------- */
.course-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - var(--header-h));
  align-items: start;
  padding-top: 0;
  padding-bottom: 48px;
}

/* ----- Course sidebar -------------------------------------- */
.course-nav {
  position: sticky;
  top: var(--header-h);
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  min-height: calc(100vh - var(--header-h));
  padding: 28px 0;
}
.course-nav-list { list-style: none; }
.course-nav-link {
  display: block;
  padding: 10px 20px;
  font-size: .9rem;
  color: var(--color-text-mid);
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
  text-decoration: none;
  line-height: 1.35;
}
.course-nav-link:hover { background: var(--color-bg-alt); color: var(--color-primary); text-decoration: none; }
.course-nav-link.active { color: var(--color-primary); border-left-color: var(--color-primary); background: #f0f4ff; font-weight: 700; }
.course-nav-link.completed { color: var(--color-success); }
.course-nav-link.completed::after { content: ' ✓'; }

/* ----- Course main content --------------------------------- */
.course-main { padding: 40px 40px 40px 48px; max-width: 780px; }

.module-section {
  display: none;
  animation: fadeIn .3s ease;
}
.module-section.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.module-header { margin-bottom: 32px; }
.module-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: #e0e7ff;
  padding: .3rem .75rem;
  border-radius: 999px;
  margin-bottom: 10px;
}
.module-header h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 6px; }
.module-estimate { font-size: .85rem; color: var(--color-text-light); }

.module-content h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.module-content p { margin-bottom: 16px; color: var(--color-text-mid); line-height: 1.75; }
.module-content ol, .module-content ul { margin: 0 0 16px 24px; }
.module-content li { margin-bottom: 6px; color: var(--color-text-mid); line-height: 1.65; }
.module-content blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 24px 0;
  padding: 16px 20px;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
  color: var(--color-text);
  font-size: .97rem;
}

/* ----- Outline style (non-introduction modules) ------------ */
.module-outline { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 28px 32px; }
.outline-badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: 18px;
}
.outline-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.outline-list li {
  padding: 10px 16px;
  background: var(--color-bg-alt);
  border-radius: 8px;
  font-size: .97rem;
  color: var(--color-text-mid);
  border-left: 3px solid var(--color-primary);
}
.certificate-cta { margin-top: 28px; padding: 24px; background: #f0f4ff; border-radius: 10px; text-align: center; }
.certificate-cta p { margin-bottom: 14px; font-weight: 600; color: var(--color-text-mid); }

/* ----- Module footer --------------------------------------- */
.module-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-border); }


/* =============================================================
   COMPLETION MODAL
   ============================================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.modal-icon { font-size: 3.5rem; margin-bottom: 16px; }
.modal h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.modal p { color: var(--color-text-mid); margin-bottom: 10px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }


/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { display: none; }
  .trust-inner { justify-content: center; }
  .trust-divider { display: none; }
  .course-layout { grid-template-columns: 1fr; }
  .course-nav {
    position: static;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
  }
  .course-nav-list { display: flex; overflow-x: auto; gap: 4px; padding: 0 16px; }
  .course-nav-link { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; padding: 8px 14px; }
  .course-nav-link.active { border-bottom-color: var(--color-primary); border-left: none; }
  .course-main { padding: 28px 20px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .enroll-form { flex-direction: column; }
  .enroll-form input[type="email"] { min-width: 0; flex: none; width: 100%; }
  .steps { grid-template-columns: 1fr; }
}
