/* ==========================================================================
   OmniLearn Modernized — Design System v1.0
   Brand direction: Editorial-Enterprise (Stripe × Coursera × Framer)
   Palette: Deep midnight + electric mint accent + warm ochre + editorial off-white
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand — OmniLearn (matches theomnilearn.com exactly) */
  --ink-950: #1F1128;   /* deep purple-black */
  --ink-900: #2D1B3C;
  --ink-800: #3E2751;
  --ink-700: #503266;
  --ink-500: #6E5480;
  --ink-400: #8E7A9E;
  --ink-300: #B4A6BE;
  --ink-200: #D6CBDD;
  --ink-100: #ECE4F0;
  --ink-50:  #F6F1F8;

  --paper:      #FBF8FA;   /* soft purple-tinted paper */
  --paper-alt:  #F4EDF3;
  --paper-line: #E4D3E1;

  /* Primary — OmniLearn exact brand purple */
  --mint:       #E8D9F0;   /* soft purple tint (chips) */
  --mint-600:   #5F2E7A;   /* primary — from --primary in original site */
  --mint-700:   #4A2361;   /* darker purple for text */

  /* Secondary — OmniLearn exact brand raspberry */
  --ochre:      #E8B3C6;   /* soft raspberry tint */
  --ochre-600:  #B0315E;   /* secondary — from --sc-primary in original site */

  /* Accent */
  --plum:       #B0315E;
  --coral:      #E75279;

  /* Gradient (brand signature — purple → raspberry) */
  --brand-gradient: linear-gradient(90deg, #5F2E7A 0%, #8B3A73 50%, #B0315E 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(95,46,122,.9), rgba(139,58,115,.85), rgba(176,49,94,.9));

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Type */
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-sans:    'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --step-1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-2: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-3: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-4: clamp(1.6rem, 1.4rem + 1vw, 2.25rem);
  --step-5: clamp(2.25rem, 1.8rem + 2.2vw, 3.75rem);
  --step-6: clamp(2.8rem, 2rem + 4vw, 6rem);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 320ms;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(10,15,28,.06), 0 2px 8px rgba(10,15,28,.04);
  --shadow-2: 0 8px 24px -8px rgba(10,15,28,.18);
  --shadow-3: 0 20px 60px -20px rgba(10,15,28,.35);
  --ring:     0 0 0 3px rgba(95,46,122,.32);
}

/* Brand gradient text helper */
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-2);
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Selection */
::selection { background: var(--mint-600); color: var(--paper); }

/* Container */
.ol-container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }

/* Typography */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-6);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--ink-950);
}
.h-display .italic { font-style: italic; color: var(--mint-700); background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.h-1 { font-family: var(--font-display); font-size: var(--step-5); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.h-2 { font-family: var(--font-sans); font-size: var(--step-4); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.h-3 { font-family: var(--font-sans); font-size: var(--step-3); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-500);
  font-weight: 500;
}
.lead { font-size: var(--step-3); color: var(--ink-500); line-height: 1.4; font-weight: 400; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: .95rem; font-weight: 600;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--mint-600); color: var(--paper); }
.btn-primary:hover { background: var(--mint-700); transform: translateY(-2px); }
.btn-mint { background: var(--brand-gradient); background-size: 200% 100%; color: #fff; }
.btn-mint:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink-950); border-color: var(--ink-900); }
.btn-outline:hover { background: var(--mint-600); color: var(--paper); border-color: var(--mint-600); }
.btn-ghost { background: transparent; color: var(--ink-900); }
.btn-ghost:hover { background: var(--ink-100); }
.btn-sm { padding: 8px 14px; font-size: .82rem; }
.btn-lg { padding: 18px 28px; font-size: 1rem; }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--ink-100); color: var(--ink-900);
  font-size: .78rem; font-weight: 500;
  border: 1px solid var(--ink-200);
}
.chip-mint { background: rgba(95,46,122,.10); color: var(--mint-700); border-color: rgba(95,46,122,.22); }
.chip-ochre { background: rgba(176,49,94,.10); color: var(--ochre-600); border-color: rgba(176,49,94,.24); }
/* Bright chip variant on dark surfaces */
.stats-band .chip-mint, .cta-band .chip-mint, footer .chip-mint,
.train .chip-mint, .cert-mini .chip-mint {
  background: rgba(255,255,255,.12); color: #E8D9F0; border-color: rgba(255,255,255,.18);
}
.chip-dark { background: var(--ink-950); color: var(--paper); border-color: var(--ink-800); }
.chip-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: var(--r-lg); padding: 24px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--ink-200); }

/* Section */
section { padding: clamp(60px, 8vw, 120px) 0; position: relative; }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 780px; }

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Announcement bar */
.announce {
  background: var(--ink-950); color: var(--paper);
  font-size: .82rem; padding: 10px 0;
  border-bottom: 1px solid var(--ink-800);
}
.announce .ol-container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.announce a { color: var(--mint); font-weight: 500; }
.announce .marquee { display: flex; align-items: center; gap: 12px; }
.announce .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; }

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(247,245,239,.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--paper-line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.02em; color: var(--ink-950); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-gradient);
  color: #fff;
  display: grid; place-items: center; font-weight: 700; font-family: var(--font-sans);
  font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav-links a { padding: 10px 14px; border-radius: var(--r-pill); font-weight: 500; font-size: .92rem; transition: background var(--dur) var(--ease); position: relative; }
.nav-links a:hover { background: var(--ink-100); }
.nav-links .has-mega::after { content: ''; margin-left: 6px; opacity: .5; font-size: .8rem; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.mobile-toggle { display: none; padding: 10px; border: 1px solid var(--ink-200); background: transparent; border-radius: 10px; }

/* Mega menu — anchored to the first nav link (avoids left overflow) */
.mega {
  position: absolute; top: 100%; left: 0; transform: translateY(-8px);
  width: min(900px, calc(100vw - 80px));
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--shadow-3);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  z-index: 95;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mega h5 { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-500); margin: 0 0 14px; font-weight: 500; font-family: var(--font-mono); }
.mega ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mega ul a { padding: 8px 10px; border-radius: 8px; display: flex; justify-content: space-between; }
.mega ul a:hover { background: var(--ink-50); }
.mega .feat { background: var(--brand-gradient); color: #fff; border-radius: var(--r-md); padding: 20px; }
.mega .feat h4 { font-family: var(--font-display); font-size: 1.5rem; margin: 8px 0 12px; line-height: 1; }
.mega .feat p { color: var(--ink-300); font-size: .88rem; margin: 0 0 16px; }

/* Hero */
.hero {
  padding: clamp(60px, 10vw, 140px) 0 clamp(50px, 8vw, 100px);
  position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.hero-title { margin: 0 0 24px; }
.hero-title .rot { display: inline-block; color: var(--ochre-600); font-style: italic; }
.hero-sub { max-width: 560px; margin: 0 0 32px; color: var(--ink-500); font-size: 1.15rem; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-search {
  display: flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-pill);
  padding: 6px 6px 6px 22px; max-width: 500px;
  box-shadow: var(--shadow-2);
}
.hero-search input { border: none; background: transparent; padding: 12px 4px; flex: 1; font-family: inherit; font-size: .95rem; outline: none; color: var(--ink-900); }
.hero-search input::placeholder { color: var(--ink-400); }
.hero-search button { border-radius: var(--r-pill); padding: 12px 22px; border: none; background: var(--brand-gradient); background-size: 200% 100%; color: #fff; font-weight: 600; transition: background-position var(--dur) var(--ease); }
.hero-search button:hover { background-position: 100% 0; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--paper-line); }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--ink-950); }
.hero-stats .stat span { font-size: .82rem; color: var(--ink-500); }

.hero-visual { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--shadow-3);
  transform: rotate(-1.5deg);
  transition: transform var(--dur) var(--ease);
}
.hero-card:hover { transform: rotate(0) translateY(-6px); }
.hero-card + .hero-card { margin-top: -60px; margin-left: 60px; transform: rotate(2deg); z-index: 2; position: relative; }
.hero-card + .hero-card:hover { transform: rotate(0) translateY(-6px); }
.hero-card .cover {
  aspect-ratio: 16/10; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--ink-800), var(--ink-950));
  position: relative; overflow: hidden; margin-bottom: 16px;
}
.hero-card .cover::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(124,224,184,.4), transparent 60%);
}
.hero-card .cover .badge { position: absolute; top: 12px; left: 12px; background: var(--mint); color: var(--ink-950); padding: 4px 10px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 600; z-index: 2; }
.hero-card h4 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 600; }
.hero-card p { margin: 0; color: var(--ink-500); font-size: .85rem; }
.hero-card .meta { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ink-100); font-size: .82rem; color: var(--ink-500); }
.hero-card .meta b { color: var(--ink-950); font-family: var(--font-display); font-size: 1.05rem; }

/* Category pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pill-row a { padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--ink-200); background: #fff; font-size: .85rem; transition: all var(--dur) var(--ease); }
.pill-row a:hover { background: var(--brand-gradient); color: #fff; border-color: transparent; }

/* Marquee */
.marquee-wrap { overflow: hidden; padding: 32px 0; border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); background: var(--paper-alt); }
.marquee-track { display: flex; gap: 60px; animation: scroll 40s linear infinite; }
.marquee-track img { height: 40px; opacity: .6; filter: grayscale(1); transition: opacity var(--dur) var(--ease); }
.marquee-track img:hover { opacity: 1; filter: none; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Feature cards */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feat {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  padding: 28px; display: grid; gap: 16px; transition: all var(--dur) var(--ease);
  position: relative; overflow: hidden;
}
.feat:hover { border-color: var(--ink-950); transform: translateY(-4px); }
.feat-num { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-400); }
.feat h3 { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.feat p { margin: 0; color: var(--ink-500); font-size: .92rem; }
.feat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-gradient); color: #fff;
  font-size: 1.4rem;
}

/* Course card */
.course-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: all var(--dur) var(--ease);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); border-color: var(--ink-950); }
.course-cover {
  aspect-ratio: 16/10; background: var(--ink-100); position: relative; overflow: hidden;
}
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.course-card:hover .course-cover img { transform: scale(1.06); }
.course-cover .badge { position: absolute; top: 14px; left: 14px; }
.course-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-cat { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mint-700); }
.course-title { font-size: 1.15rem; font-weight: 600; margin: 0; line-height: 1.3; color: var(--ink-950); }
.course-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--ink-100); margin-top: auto; font-size: .85rem; color: var(--ink-500); }
.course-price { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink-950); }
.rating { display: inline-flex; align-items: center; gap: 4px; color: var(--ochre-600); }

/* Training options */
.train-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.train {
  background: var(--ink-950); color: var(--paper);
  border-radius: var(--r-lg); padding: 32px 28px;
  display: grid; gap: 20px; position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease);
}
.train::before { content:''; position:absolute; inset:0; background: var(--brand-gradient-soft); opacity:.35; pointer-events:none; }
.train > * { position: relative; z-index: 1; }
.train:hover { transform: translateY(-6px); }
.train.alt { background: var(--paper-alt); color: var(--ink-950); }
.train.alt .train-list li::before { color: var(--mint-700); }
.train h3 { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; margin: 0; }
.train-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; }
.train-list li { padding-left: 22px; position: relative; }
.train-list li::before { content: '✓'; position: absolute; left: 0; color: var(--mint); font-weight: 700; }
.train .price { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }

/* Testimonials */
.tst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.tst {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  padding: 28px; display: grid; gap: 18px;
}
.tst-quote { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; color: var(--ink-950); margin: 0; }
.tst-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--ink-100); }
.tst-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--mint), var(--ochre)); display: grid; place-items: center; font-weight: 700; color: var(--ink-950); }
.tst-name { font-weight: 600; font-size: .95rem; }
.tst-role { font-size: .82rem; color: var(--ink-500); }

/* Stats banner */
.stats-band {
  background: var(--ink-950); color: var(--paper); border-radius: var(--r-xl);
  padding: 56px clamp(24px, 4vw, 56px); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
}
.stats-band .stat b { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem); display: block; line-height: 1; letter-spacing: -.03em; }
.stats-band .stat span { color: var(--ink-300); font-size: .9rem; margin-top: 6px; display: block; }
.stats-band .stat .plus { background: var(--brand-gradient); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent; }

/* FAQ */
.faq-list { display: grid; gap: 8px; max-width: 900px; }
.faq {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease);
}
.faq[open] { border-color: var(--ink-950); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; gap: 20px; font-weight: 500; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--ink-400); transition: transform var(--dur) var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); color: var(--mint-700); }
.faq-body { padding: 0 24px 24px; color: var(--ink-500); }

/* CTA band */
.cta-band {
  background: var(--ink-950); color: var(--paper);
  border-radius: var(--r-xl); padding: clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: -50% 0 0 30%;
  background: var(--brand-gradient-soft);
  opacity: .35;
  pointer-events: none;
}
.cta-band h2 { position: relative; margin: 0 0 16px; }
.cta-band p { position: relative; color: var(--ink-300); margin: 0 0 24px; }
.cta-band .btns { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-newsletter { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 24px; }
.cta-newsletter form { display: flex; gap: 8px; margin-top: 12px; }
.cta-newsletter input { flex: 1; padding: 12px 16px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: var(--paper); font-family: inherit; font-size: .9rem; }
.cta-newsletter input::placeholder { color: var(--ink-300); }

/* Footer */
footer { background: var(--ink-950); color: var(--paper); padding: 80px 0 40px; margin-top: 80px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px 32px; }
.foot h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-400); font-family: var(--font-mono); font-weight: 500; margin: 0 0 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot ul a:hover { color: var(--mint); }
.foot ul a { color: var(--ink-200); font-size: .92rem; transition: color var(--dur) var(--ease); }
.foot-brand h4 { font-family: var(--font-display); font-size: 2rem; margin: 12px 0; }
.foot-brand p { color: var(--ink-300); font-size: .9rem; max-width: 320px; margin-bottom: 20px; }
.foot-social { display: flex; gap: 8px; }
.foot-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink-800); display: grid; place-items: center; transition: all var(--dur) var(--ease); }
.foot-social a:hover { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.foot-bottom { margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--ink-800); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-400); }

/* Breadcrumb */
.crumb { display: flex; gap: 10px; align-items: center; font-size: .85rem; color: var(--ink-500); padding: 24px 0; }
.crumb a { color: var(--ink-500); }
.crumb a:hover { color: var(--ink-950); }
.crumb .sep { color: var(--ink-300); }
.crumb .current { color: var(--ink-950); font-weight: 500; }

/* Filters */
.filter-bar {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  padding: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  position: sticky; top: 80px; z-index: 40;
}
.filter-search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--ink-200); border-radius: var(--r-pill); }
.filter-search input { border: none; outline: none; flex: 1; font-family: inherit; font-size: .9rem; background: transparent; }
.filter-select { padding: 10px 14px; border: 1px solid var(--ink-200); border-radius: var(--r-pill); background: #fff; font-family: inherit; font-size: .88rem; color: var(--ink-900); cursor: pointer; }
.view-toggle { display: flex; border: 1px solid var(--ink-200); border-radius: var(--r-pill); overflow: hidden; }
.view-toggle button { padding: 10px 14px; border: none; background: transparent; font-size: .82rem; }
.view-toggle button.active { background: var(--ink-950); color: var(--paper); }

/* Sidebar (course details) */
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.side-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  padding: 24px; position: sticky; top: 90px;
}
.side-card .price-row { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 20px; }
.side-card .price { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--ink-950); }
.side-card .strike { color: var(--ink-400); text-decoration: line-through; font-size: 1rem; }
.side-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: .9rem; }
.side-card ul li { display: flex; align-items: center; gap: 10px; color: var(--ink-500); }
.side-card ul li i { color: var(--mint-700); }
.side-card .actions { display: grid; gap: 10px; }

/* Timeline */
.timeline { display: grid; gap: 8px; }
.timeline .item { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--ink-100); }
.timeline .year { font-family: var(--font-display); font-size: 2rem; color: var(--mint-700); line-height: 1; }
.timeline .body h4 { margin: 0 0 8px; font-size: 1.1rem; }
.timeline .body p { margin: 0; color: var(--ink-500); font-size: .95rem; }

/* Values grid */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.value {
  background: var(--paper-alt); border-radius: var(--r-lg); padding: 28px;
  border: 1px solid var(--paper-line);
}
.value h4 { margin: 12px 0 8px; font-size: 1.1rem; }
.value p { margin: 0; color: var(--ink-500); font-size: .92rem; }
.value-num { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-500); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-info { display: grid; gap: 24px; }
.contact-card {
  background: var(--paper-alt); border-radius: var(--r-lg); padding: 24px;
  border: 1px solid var(--paper-line);
}
.contact-card h4 { margin: 0 0 8px; }
.contact-card p { margin: 0; color: var(--ink-500); font-size: .92rem; }
.contact-card a { color: var(--ink-950); font-weight: 500; }

.contact-form {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: .82rem; font-weight: 500; color: var(--ink-900); }
.form-field .req { color: var(--coral); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1px solid var(--ink-200); border-radius: var(--r-md);
  font-family: inherit; font-size: .92rem; background: #fff; color: var(--ink-950);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--ink-950); box-shadow: var(--ring);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* Blob decoration */
.blob {
  position: absolute; pointer-events: none; z-index: 0;
  filter: blur(60px); opacity: .5;
}

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links, .nav-cta .desktop { display: none; }
  .mobile-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 24px; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .timeline .item { grid-template-columns: 80px 1fr; }
}
@media (max-width: 560px) {
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-card + .hero-card { margin-left: 0; margin-top: 20px; }
}

/* ============================================================
   HERO SLIDER (Modern, auto-advancing, dot navigation)
   ============================================================ */
.hero-slider { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ink-950); min-height: 560px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity 700ms var(--ease);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  padding: 60px clamp(28px, 5vw, 72px); align-items: center;
  color: var(--paper);
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.14), transparent 55%),
              radial-gradient(circle at 20% 90%, rgba(0,0,0,.30), transparent 55%);
  pointer-events: none;
}
.hero-slide > * { position: relative; z-index: 1; }
.hero-slide .eyebrow { color: rgba(255,255,255,.75); }
.hero-slide h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.02em; margin: 16px 0 20px; color: #fff; }
.hero-slide h1 em { font-style: italic; background: linear-gradient(90deg, #FDD3E0, #F5B0C7); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-slide p.sub { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 520px; margin: 0 0 28px; }
.hero-slide .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-slide .actions .btn-mint { background: #fff; color: var(--mint-700); }
.hero-slide .actions .btn-mint:hover { background: var(--paper); transform: translateY(-2px); }
.hero-slide .actions .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.hero-slide .actions .btn-ghost:hover { background: rgba(255,255,255,.10); border-color: #fff; }
.hero-slide .visual { position: relative; height: 100%; min-height: 300px; display: grid; place-items: center; }
.hero-slide .visual img { width: 100%; max-width: 480px; border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(0,0,0,.55); }
.hero-slide.a { background: linear-gradient(135deg, #5F2E7A 0%, #4A2361 100%); }
.hero-slide.b { background: linear-gradient(135deg, #B0315E 0%, #8B3A73 100%); }
.hero-slide.c { background: linear-gradient(135deg, #3E2751 0%, #5F2E7A 60%, #B0315E 100%); }
.hero-slide.d { background: linear-gradient(135deg, #1F1128 0%, #3E2751 60%, #B0315E 100%); }

/* Slider controls */
.slider-nav {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.slider-nav button {
  width: 32px; height: 4px; border-radius: 4px; border: none;
  background: rgba(255,255,255,.30); cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.slider-nav button.active { background: #fff; width: 48px; }
.slider-arrows {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%; display: flex; justify-content: space-between;
  padding: 0 20px; pointer-events: none; z-index: 3;
}
.slider-arrows button {
  pointer-events: auto;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.14); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.20); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.slider-arrows button:hover { background: rgba(255,255,255,.24); transform: scale(1.1); }

/* Feature strip below hero (like Coursera) */
.feat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--paper-line); }
.feat-strip .item { display: flex; gap: 14px; align-items: start; }
.feat-strip .item i { color: var(--mint-600); font-size: 1.6rem; flex-shrink: 0; }
.feat-strip .item b { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.feat-strip .item span { font-size: .85rem; color: var(--ink-500); }

/* Modern instructor spotlight */
.spotlight {
  background: var(--ink-950); color: var(--paper);
  border-radius: var(--r-xl); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: stretch;
  min-height: 440px;
}
.spotlight-img { background-size: cover; background-position: center; position: relative; min-height: 380px; }
.spotlight-img::before { content:''; position:absolute; inset:0; background: linear-gradient(to right, transparent 60%, var(--ink-950)); }
.spotlight-body { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.spotlight-body h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1; color: #fff; margin: 0; }
.spotlight-body p { color: rgba(255,255,255,.80); margin: 0; }
.spotlight-body .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.spotlight-body .stats b { font-family: var(--font-display); font-size: 1.6rem; color: #fff; display: block; line-height: 1; }
.spotlight-body .stats span { font-size: .8rem; color: rgba(255,255,255,.65); }

@media (max-width: 900px) {
  .hero-slide { grid-template-columns: 1fr; padding: 40px 24px 80px; }
  .hero-slide .visual { display: none; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-img::before { background: linear-gradient(to bottom, transparent 30%, var(--ink-950)); }
}

/* Chip visibility on hero slider (dark purple bg) */
.hero-slide .chip-mint {
  background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.28);
}
.hero-slide .chip-mint .dot, .hero-slide .chip-dot::before { background: #FDD3E0; }






/* ============================================================
   COURSE LEARNING PAGE (Video Player + Tabs + Curriculum)
   ============================================================ */
.learn-shell { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 32px 0 80px; align-items: start; }
.learn-topbar { background: var(--ink-950); color: var(--paper); padding: 14px 0; border-bottom: 1px solid var(--ink-800); position: sticky; top: 0; z-index: 60; }
.learn-topbar .inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.learn-topbar .title { display: flex; align-items: center; gap: 14px; }
.learn-topbar .title h4 { margin: 0; font-size: 1rem; font-weight: 600; color: #fff; }
.learn-topbar .title small { color: var(--ink-300); font-size: .78rem; font-family: var(--font-mono); }
.learn-topbar .prog { display: flex; align-items: center; gap: 12px; color: var(--ink-300); font-size: .82rem; }
.learn-topbar .bar { width: 180px; height: 6px; background: rgba(255,255,255,.12); border-radius: var(--r-pill); overflow: hidden; }
.learn-topbar .bar > i { display: block; height: 100%; background: var(--brand-gradient); border-radius: var(--r-pill); }
.learn-topbar a.exit { color: var(--ink-200); font-size: .85rem; }
.learn-topbar a.exit:hover { color: #fff; }

.player-wrap { background: #000; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-3); aspect-ratio: 16 / 9; position: relative; }
.player-wrap video { width: 100%; height: 100%; display: block; }
.player-wrap .zoom-cover { position: absolute; inset: 0; background: linear-gradient(135deg, #5F2E7A, #B0315E); display: grid; place-items: center; text-align: center; padding: 40px; color: #fff; }
.player-wrap .zoom-cover .z-icon { width: 76px; height: 76px; border-radius: 22px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 20px; border: 1px solid rgba(255,255,255,.18); }
.player-wrap .zoom-cover h3 { font-family: var(--font-display); font-size: 2rem; margin: 0 0 8px; }
.player-wrap .zoom-cover p { color: rgba(255,255,255,.85); margin: 0 0 24px; }
.player-wrap .zoom-cover .btn { color: var(--mint-700); background: #fff; }

.lesson-meta { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 24px; border-bottom: 1px solid var(--ink-100); flex-wrap: wrap; gap: 16px; }
.lesson-meta .l { display: flex; align-items: center; gap: 12px; }
.lesson-meta .l .num { font-family: var(--font-mono); color: var(--ink-400); font-size: .82rem; }
.lesson-meta .l h2 { margin: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; line-height: 1.1; }
.lesson-meta .r { display: flex; gap: 8px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ink-100); margin: 28px 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 14px 18px; background: transparent; border: none; font-size: .92rem; font-weight: 500; color: var(--ink-500); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); white-space: nowrap; }
.tabs button:hover { color: var(--ink-950); }
.tabs button.active { color: var(--mint-700); border-bottom-color: var(--mint-700); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 400ms var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Curriculum sidebar (learning) */
.curriculum { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg); padding: 20px; position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; }
.curriculum h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.curriculum .prog-line { display: flex; justify-content: space-between; color: var(--ink-500); font-size: .82rem; margin-bottom: 14px; }
.curr-module { border-top: 1px solid var(--ink-100); padding-top: 14px; margin-top: 14px; }
.curr-module:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.curr-module summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-weight: 600; font-size: .92rem; }
.curr-module summary::-webkit-details-marker { display: none; }
.curr-module summary::after { content: '⌄'; color: var(--ink-400); transition: transform var(--dur) var(--ease); }
.curr-module[open] summary::after { transform: rotate(180deg); }
.curr-module small { display: block; color: var(--ink-500); font-size: .76rem; font-weight: 400; margin-top: 2px; }
.curr-lesson { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 8px; cursor: pointer; font-size: .88rem; transition: background var(--dur) var(--ease); }
.curr-lesson:hover { background: var(--ink-50); }
.curr-lesson.active { background: rgba(95,46,122,.08); color: var(--mint-700); font-weight: 500; }
.curr-lesson .check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink-300); display: grid; place-items: center; flex-shrink: 0; font-size: .68rem; color: transparent; }
.curr-lesson.done .check { background: var(--mint-600); border-color: var(--mint-600); color: #fff; }
.curr-lesson .txt { flex: 1; }
.curr-lesson .dur { color: var(--ink-400); font-size: .76rem; font-family: var(--font-mono); }
.curr-lesson i.type { color: var(--ink-400); font-size: .95rem; }

/* Assessment tab */
.assessment-card { display: grid; grid-template-columns: 60px 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg); padding: 22px; margin-bottom: 12px; transition: all var(--dur) var(--ease); }
.assessment-card:hover { border-color: var(--ink-950); transform: translateY(-2px); }
.assessment-card .icn { width: 60px; height: 60px; border-radius: 16px; background: rgba(95,46,122,.10); color: var(--mint-700); display: grid; place-items: center; font-size: 1.6rem; }
.assessment-card h4 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; }
.assessment-card p { margin: 0; color: var(--ink-500); font-size: .85rem; }
.assessment-card .badge-status { padding: 6px 12px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 500; }
.status-pass { background: rgba(38,150,90,.12); color: #1e7a4a; border: 1px solid rgba(38,150,90,.22); }
.status-pending { background: rgba(176,49,94,.10); color: var(--ochre-600); border: 1px solid rgba(176,49,94,.22); }

/* Resources */
.resource-item { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--ink-100); border-radius: var(--r-md); margin-bottom: 10px; transition: all var(--dur) var(--ease); background: #fff; }
.resource-item:hover { border-color: var(--mint-600); background: var(--ink-50); }
.resource-item .ext { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-gradient); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.resource-item .info { flex: 1; }
.resource-item .info h5 { margin: 0 0 2px; font-size: .95rem; font-weight: 600; }
.resource-item .info span { color: var(--ink-500); font-size: .8rem; }

/* ============================================================
   EXAM PAGE
   ============================================================ */
.exam-shell { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 40px 0 80px; align-items: start; }
.q-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg); padding: 36px; min-height: 360px; }
.q-card .q-num { font-family: var(--font-mono); color: var(--ink-400); font-size: .82rem; margin-bottom: 8px; letter-spacing: .1em; }
.q-card .q-text { font-size: 1.2rem; font-weight: 600; margin: 0 0 28px; line-height: 1.4; color: var(--ink-950); }
.q-options { display: grid; gap: 10px; }
.q-option { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--ink-200); border-radius: var(--r-md); cursor: pointer; transition: all var(--dur) var(--ease); background: #fff; }
.q-option:hover { border-color: var(--mint-600); background: var(--ink-50); }
.q-option input { accent-color: var(--mint-600); width: 18px; height: 18px; margin: 0; }
.q-option.selected { border-color: var(--mint-600); background: rgba(95,46,122,.06); }
.q-option .letter { width: 28px; height: 28px; border-radius: 8px; background: var(--ink-100); display: grid; place-items: center; font-family: var(--font-mono); font-size: .82rem; font-weight: 600; color: var(--ink-700); flex-shrink: 0; }
.q-option.selected .letter { background: var(--mint-600); color: #fff; }
.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; flex-wrap: wrap; }
.q-nav .left, .q-nav .right { display: flex; gap: 10px; }

/* Exam sidebar */
.exam-side { position: sticky; top: 20px; display: grid; gap: 16px; }
.timer-card { background: var(--brand-gradient); color: #fff; border-radius: var(--r-md); padding: 20px; text-align: center; }
.timer-card b { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.timer-card span { font-size: .78rem; color: rgba(255,255,255,.85); letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-mono); }
.q-legend { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg); padding: 20px; }
.q-legend h5 { margin: 0 0 4px; font-size: .95rem; }
.q-legend .filter-tabs { display: flex; gap: 4px; padding: 4px; background: var(--ink-50); border-radius: var(--r-pill); margin: 12px 0 16px; font-size: .74rem; }
.q-legend .filter-tabs button { flex: 1; padding: 6px 8px; border: none; background: transparent; border-radius: var(--r-pill); font-weight: 500; color: var(--ink-500); }
.q-legend .filter-tabs button.active { background: #fff; color: var(--ink-950); box-shadow: var(--shadow-1); }
.q-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.q-grid button { aspect-ratio: 1; border-radius: 8px; border: 1.5px solid var(--ink-200); background: #fff; font-family: var(--font-mono); font-size: .82rem; font-weight: 600; color: var(--ink-700); cursor: pointer; transition: all var(--dur) var(--ease); }
.q-grid button:hover { border-color: var(--mint-600); }
.q-grid button.answered { background: rgba(38,150,90,.12); border-color: rgba(38,150,90,.35); color: #1e7a4a; }
.q-grid button.marked { background: rgba(212,155,52,.15); border-color: rgba(212,155,52,.4); color: #7a5511; }
.q-grid button.current { background: var(--mint-600); color: #fff; border-color: var(--mint-600); box-shadow: var(--ring); }
.q-grid button.skipped { background: rgba(176,49,94,.10); border-color: rgba(176,49,94,.30); color: var(--ochre-600); }
.legend-dots { display: flex; gap: 14px; margin-top: 14px; font-size: .76rem; color: var(--ink-500); flex-wrap: wrap; }
.legend-dots span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dots i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Exam states */
.exam-intro, .exam-result { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); text-align: center; max-width: 720px; margin: 40px auto; }
.exam-intro .icn, .exam-result .icn { width: 88px; height: 88px; border-radius: 26px; background: var(--brand-gradient); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; font-size: 2.4rem; }
.exam-intro h1, .exam-result h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 12px; }
.exam-intro p, .exam-result p { color: var(--ink-500); max-width: 480px; margin: 0 auto 28px; }
.exam-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; padding: 28px 0; margin: 20px 0; border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); }
.exam-info-grid .info b { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.exam-info-grid .info span { color: var(--ink-500); font-size: .8rem; }

.result-score { width: 200px; height: 200px; border-radius: 50%; background: conic-gradient(var(--mint-600) calc(var(--pct) * 1%), var(--ink-100) 0); display: grid; place-items: center; margin: 0 auto 24px; position: relative; }
.result-score::after { content: ''; position: absolute; inset: 14px; background: #fff; border-radius: 50%; }
.result-score b { position: relative; z-index: 1; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; }
.result-score span { position: relative; z-index: 1; font-size: .78rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .1em; }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; text-align: center; }
.result-stats .box { padding: 20px 12px; background: var(--paper-alt); border-radius: var(--r-md); border: 1px solid var(--paper-line); }
.result-stats .box b { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.result-stats .box span { color: var(--ink-500); font-size: .78rem; }
.result-stats .box.pass b { color: #1e7a4a; }
.result-stats .box.fail b { color: var(--ochre-600); }

/* ============================================================
   CART / CHECKOUT
   ============================================================ */
.cart-shell, .checkout-shell { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; padding: 20px 0 80px; }
.cart-item { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg); padding: 20px; display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; align-items: center; margin-bottom: 12px; transition: all var(--dur) var(--ease); }
.cart-item:hover { border-color: var(--ink-950); box-shadow: var(--shadow-2); }
.cart-item .cover { border-radius: var(--r-md); aspect-ratio: 16 / 10; overflow: hidden; }
.cart-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info h4 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; }
.cart-item .info small { color: var(--ink-500); font-size: .82rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.cart-item .info .badges { display: flex; gap: 6px; margin-top: 10px; }
.cart-item .price-col { text-align: right; }
.cart-item .price-col b { font-family: var(--font-display); font-size: 1.5rem; display: block; }
.cart-item .price-col small { color: var(--ink-400); text-decoration: line-through; font-size: .82rem; }
.cart-item .remove { background: transparent; border: none; color: var(--ink-500); font-size: .82rem; margin-top: 10px; padding: 0; }
.cart-item .remove:hover { color: var(--ochre-600); }

.summary-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg); padding: 28px; position: sticky; top: 100px; }
.summary-card h3 { margin: 0 0 20px; font-size: 1.15rem; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; color: var(--ink-500); font-size: .92rem; }
.summary-row.total { border-top: 1px solid var(--ink-100); padding-top: 16px; margin-top: 8px; font-size: 1.1rem; color: var(--ink-950); font-weight: 600; }
.summary-row.total b { font-family: var(--font-display); font-size: 1.6rem; }
.coupon-row { display: flex; gap: 8px; margin: 16px 0; }
.coupon-row input { flex: 1; padding: 12px 14px; border: 1px solid var(--ink-200); border-radius: var(--r-pill); font-family: inherit; font-size: .88rem; outline: none; }
.coupon-row input:focus { border-color: var(--ink-950); }

.empty-state { text-align: center; padding: 80px 24px; background: #fff; border: 1px dashed var(--ink-200); border-radius: var(--r-lg); }
.empty-state .icn { width: 88px; height: 88px; border-radius: 24px; background: var(--paper-alt); color: var(--ink-400); display: grid; place-items: center; margin: 0 auto 20px; font-size: 2.4rem; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.8rem; margin: 0 0 8px; }
.empty-state p { color: var(--ink-500); margin: 0 0 24px; }

/* Payment methods */
.pay-methods { display: grid; gap: 10px; margin-top: 20px; }
.pay-option { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1.5px solid var(--ink-200); border-radius: var(--r-md); cursor: pointer; transition: all var(--dur) var(--ease); }
.pay-option:hover { border-color: var(--mint-600); }
.pay-option input { accent-color: var(--mint-600); }
.pay-option.active { border-color: var(--mint-600); background: rgba(95,46,122,.04); }
.pay-option .logo { margin-left: auto; height: 24px; opacity: .7; font-family: var(--font-display); font-size: 1.1rem; color: var(--mint-700); font-weight: 600; }

/* ============================================================
   MY LEARNING / PROFILE / DASHBOARD SHARED
   ============================================================ */
.page-hero { background: var(--ink-950); color: var(--paper); padding: 60px 0 40px; position: relative; overflow: hidden; }
.page-hero::before { content:''; position: absolute; inset: 0; background: var(--brand-gradient-soft); opacity: .32; }
.page-hero .ol-container { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 12px 0 8px; color: #fff; letter-spacing: -.02em; }
.page-hero .eyebrow { color: rgba(255,255,255,.7); }
.page-hero p { color: rgba(255,255,255,.78); max-width: 560px; margin: 0; }

.mylearn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.mylearn-stats .stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 20px; backdrop-filter: blur(10px); }
.mylearn-stats .stat b { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: #fff; }
.mylearn-stats .stat span { color: rgba(255,255,255,.72); font-size: .82rem; }

.learn-card { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: all var(--dur) var(--ease); }
.learn-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--ink-950); }
.learn-card .cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.learn-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.learn-card .cover .type { position: absolute; top: 12px; left: 12px; }
.learn-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.learn-card h4 { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.learn-card .cat { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mint-700); }
.progress { height: 6px; background: var(--ink-100); border-radius: var(--r-pill); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand-gradient); border-radius: var(--r-pill); }
.learn-card .prog-txt { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-500); }
.learn-card .foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--ink-100); margin-top: auto; }

/* Profile layout */
.profile-shell { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; padding: 40px 0 80px; }
.profile-side { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-lg); padding: 28px; position: sticky; top: 100px; }
.profile-avatar { display: grid; place-items: center; gap: 12px; text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--ink-100); margin-bottom: 20px; }
.profile-avatar .avi { width: 84px; height: 84px; border-radius: 50%; background: var(--brand-gradient); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 2.2rem; }
.profile-avatar h3 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.profile-avatar span { color: var(--ink-500); font-size: .85rem; }
.profile-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.profile-menu a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); font-size: .92rem; color: var(--ink-700); font-weight: 500; transition: background var(--dur) var(--ease); }
.profile-menu a:hover { background: var(--ink-50); }
.profile-menu a.active { background: rgba(95,46,122,.08); color: var(--mint-700); }
.profile-menu a i { font-size: 1.1rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.info-cell { background: var(--paper-alt); border: 1px solid var(--paper-line); border-radius: var(--r-md); padding: 18px; }
.info-cell small { color: var(--ink-500); font-family: var(--font-mono); text-transform: uppercase; font-size: .7rem; letter-spacing: .12em; }
.info-cell b { display: block; margin-top: 6px; font-size: 1.02rem; color: var(--ink-950); font-weight: 500; }

/* Sub-tabs (inside profile / my learning) */
.subtabs { display: flex; gap: 4px; background: var(--paper-alt); border: 1px solid var(--paper-line); border-radius: var(--r-pill); padding: 4px; margin-bottom: 28px; width: fit-content; overflow-x: auto; }
.subtabs button { padding: 10px 18px; border-radius: var(--r-pill); border: none; background: transparent; font-size: .88rem; font-weight: 500; color: var(--ink-500); transition: all var(--dur) var(--ease); white-space: nowrap; }
.subtabs button.active { background: #fff; color: var(--ink-950); box-shadow: var(--shadow-1); }

/* Responsive learn/checkout/cart/profile */
@media (max-width: 960px) {
  .learn-shell, .cart-shell, .checkout-shell, .exam-shell, .profile-shell { grid-template-columns: 1fr; }
  .curriculum, .summary-card, .exam-side, .profile-side { position: static; max-height: none; }
  .cart-item { grid-template-columns: 100px 1fr; }
  .cart-item .price-col { grid-column: 1 / -1; text-align: left; padding-top: 12px; border-top: 1px solid var(--ink-100); display: flex; justify-content: space-between; align-items: center; }
}


/* ============================================================
   BRAND LOGO
   ============================================================ */
.brand-logo { height: 34px; width: auto; display: block; }
.brand-logo-lg { height: 44px; }
.brand-logo-light { filter: brightness(0) invert(1); }   /* white version on dark bg */
.brand { display: inline-flex; align-items: center; gap: 0; }
/* On dark backgrounds (sidebar in dashboard, footer, hero slider, auth panel dark) */
footer .brand-logo,
.side .brand-logo,
.auth-brand .brand-logo,
.hero-slider .brand-logo {
  filter: brightness(0) invert(1);
}

