/* =====================================================================
   Fostering Geniuses — brand stylesheet
   Loaded after Bootstrap, so these rules win.
   ===================================================================== */

:root {
  --brand:        #760086;
  --brand-dark:   #5d006b;
  --brand-soft:   #f6edf8;
  --brand-softer: #fbf7fc;
  --accent:       #2151ae;
  --accent-soft:  #eaf0fb;
  --gold:         #f5a623;
  --ink:          #1b1524;
  --muted:        #6b6275;
  --line:         #e9e3ee;
  --ok:           #1a9d5c;

  --radius:    14px;
  --radius-lg: 20px;
  --shadow:    0 4px 20px rgba(27, 21, 36, .07);
  --shadow-lg: 0 18px 50px rgba(118, 0, 134, .14);
}

/* ------------------------------- base ------------------------------ */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.text-brand   { color: var(--brand) !important; }
.bg-brand     { background: var(--brand) !important; }
.bg-brand-soft{ background: var(--brand-soft) !important; }
.section      { padding: 84px 0; }
.section-sm   { padding: 56px 0; }

.section-label {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section-lead  { color: var(--muted); font-size: 1.06rem; max-width: 680px; }
.lead-center   { margin-left: auto; margin-right: auto; text-align: center; }

/* ------------------------------ buttons ---------------------------- */
.btn { font-weight: 600; border-radius: 10px; padding: 11px 22px; transition: .18s ease; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus {
  background: var(--brand-dark); border-color: var(--brand-dark); color: #fff;
  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(118, 0, 134, .28);
}
.btn-outline-brand { border: 2px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-light-brand { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light-brand:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }

/* ----------------------------- navbar ------------------------------ */
.fg-nav {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.fg-nav .nav-link {
  color: var(--ink); font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 8px;
}
.fg-nav .nav-link:hover { color: var(--brand); background: var(--brand-softer); }
.fg-nav .nav-link.active { color: var(--brand); }
.fg-nav .navbar-brand img { object-fit: contain; }
.fg-nav .navbar-toggler { border-color: var(--line); }
.fg-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(118, 0, 134, .2); }

.fg-account { display: flex; align-items: center; gap: 9px; }
.fg-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none;
}
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.dropdown-item { border-radius: 8px; padding: 9px 12px; font-weight: 500; }
.dropdown-item:hover { background: var(--brand-soft); color: var(--brand); }

/* ------------------------------- hero ------------------------------ */
.fg-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(125deg, #760086 0%, #5d006b 45%, #2151ae 130%);
  padding: 96px 0 104px;
}
.fg-hero::before,
.fg-hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 68%);
}
.fg-hero::before { width: 520px; height: 520px; top: -190px; right: -130px; }
.fg-hero::after  { width: 380px; height: 380px; bottom: -190px; left: -110px; }
.fg-hero .container { position: relative; z-index: 2; }
.fg-hero h1 { font-size: clamp(2rem, 5vw, 3.35rem); font-weight: 800; margin-bottom: 18px; }
.fg-hero p.hero-lead { font-size: 1.12rem; color: rgba(255,255,255,.92); max-width: 620px; margin-bottom: 30px; }
.fg-hero-badge {
  display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28); padding: 7px 16px; border-radius: 999px;
  font-size: .86rem; font-weight: 600; margin-bottom: 20px;
}
.fg-hero-art img { border-radius: var(--radius-lg); box-shadow: 0 30px 70px rgba(0,0,0,.3); width: 100%; }

.fg-hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 42px; }
.fg-hero-stats .num { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.fg-hero-stats .lbl { font-size: .85rem; color: rgba(255,255,255,.8); }

/* --------------------------- page banner --------------------------- */
.fg-banner {
  background: linear-gradient(125deg, #760086 0%, #5d006b 60%, #2151ae 150%);
  color: #fff; padding: 66px 0 58px; position: relative; overflow: hidden;
}
.fg-banner::after {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  top: -180px; right: -120px; background: radial-gradient(circle, rgba(255,255,255,.13), transparent 70%);
}
.fg-banner .container { position: relative; z-index: 2; }
.fg-banner h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); margin-bottom: 10px; }
.fg-banner p { color: rgba(255,255,255,.9); max-width: 720px; margin: 0; }
.fg-crumbs { font-size: .88rem; color: rgba(255,255,255,.75); margin-bottom: 12px; }
.fg-crumbs a { color: rgba(255,255,255,.92); }
.fg-crumbs a:hover { color: #fff; text-decoration: underline; }

/* --------------------------- course cards -------------------------- */
.course-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: .2s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-soft); }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .35s ease; }
.course-card:hover .thumb img { transform: scale(1.05); }
.course-card .cat {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--brand);
  font-size: .74rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.course-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.course-card h3 a { color: var(--ink); }
.course-card h3 a:hover { color: var(--brand); }
.course-card .desc { color: var(--muted); font-size: .91rem; margin-bottom: 14px; flex: 1; }
.course-card .meta {
  display: flex; gap: 16px; font-size: .82rem; color: var(--muted);
  padding-top: 13px; border-top: 1px solid var(--line); margin-bottom: 13px;
}
.course-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.course-price { font-size: 1.22rem; font-weight: 800; color: var(--brand); }
.course-price .old { font-size: .85rem; font-weight: 500; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.course-price .usd { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.badge-free { background: var(--ok); color: #fff; font-weight: 700; padding: 5px 11px; border-radius: 999px; font-size: .78rem; }
.badge-owned { background: var(--accent-soft); color: var(--accent); font-weight: 700; padding: 5px 11px; border-radius: 999px; font-size: .78rem; }

/* --------------------------- feature cards ------------------------- */
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; height: 100%; transition: .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 1.4rem; margin-bottom: 18px;
}
.feature-icon.alt { background: var(--accent-soft); color: var(--accent); }
.feature-card h3 { font-size: 1.13rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ------------------------------ stats ------------------------------ */
.stat-band { background: var(--brand-soft); border-radius: var(--radius-lg); padding: 44px 30px; }
.stat-item .num { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat-item .lbl { color: var(--muted); font-size: .93rem; margin-top: 4px; }

/* ----------------------------- accordion --------------------------- */
.accordion-item { border: 1px solid var(--line); border-radius: var(--radius) !important; margin-bottom: 12px; overflow: hidden; }
.accordion-button { font-weight: 600; padding: 18px 20px; background: #fff; color: var(--ink); }
.accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(118,0,134,.16); border-color: transparent; }
.accordion-button::after { filter: hue-rotate(260deg) saturate(4); }
.accordion-body { color: var(--muted); padding: 4px 20px 20px; }

/* ------------------------------ forms ------------------------------ */
.form-control, .form-select {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .96rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(118, 0, 134, .13);
}
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-text { font-size: .84rem; color: var(--muted); }

.auth-wrap { min-height: 78vh; display: grid; place-items: center; padding: 48px 16px; background: var(--brand-softer); }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line);
             border-radius: var(--radius-lg); padding: 38px 34px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.55rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 26px; }

/* ------------------------------ tables ----------------------------- */
.table-clean { border-collapse: separate; border-spacing: 0; }
.table-clean th {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); padding: 12px 14px;
}
.table-clean td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .93rem; }
.table-clean tr:hover td { background: var(--brand-softer); }

/* ------------------------------ misc ------------------------------- */
.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: var(--line); margin-bottom: 16px; display: block; }

.prose { color: #3c3447; font-size: 1.03rem; }
.prose p { margin-bottom: 1.05rem; }
.prose h5 { margin: 1.8rem 0 .7rem; color: var(--ink); font-size: 1.12rem; }
.prose ul, .prose ol { margin-bottom: 1.05rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--ink); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; color: #3c3447; }
.check-list li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: 1px; color: var(--ok); font-size: .88rem;
}

/* ------------------------------ footer ----------------------------- */
.fg-footer { background: #1b1524; color: #b8b1c2; padding: 68px 0 26px; margin-top: 80px; }
.fg-footer-logo { filter: brightness(0) invert(1); opacity: .95; }
.fg-footer h6 { color: #fff; font-size: .93rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.fg-footer-text { font-size: .93rem; color: #a49cb0; }
.fg-footer-links { list-style: none; padding: 0; margin: 0; }
.fg-footer-links li { margin-bottom: 10px; }
.fg-footer-links a { color: #b8b1c2; font-size: .93rem; }
.fg-footer-links a:hover { color: #fff; padding-left: 4px; }
.fg-social { display: flex; gap: 10px; margin-top: 18px; }
.fg-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #d6d1dd; transition: .18s ease;
}
.fg-social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.fg-contact-mini { list-style: none; padding: 0; margin: 0; font-size: .89rem; }
.fg-contact-mini li { margin-bottom: 9px; display: flex; gap: 10px; align-items: flex-start; }
.fg-contact-mini i { color: var(--brand); margin-top: 5px; width: 15px; flex: none; }
.fg-contact-mini a { color: #b8b1c2; }
.fg-contact-mini a:hover { color: #fff; }
.fg-subscribe .form-control { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #fff; }
.fg-subscribe .form-control::placeholder { color: #857d92; }
.fg-subscribe .form-control:focus { background: rgba(255,255,255,.12); color: #fff; }
.fg-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 46px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.fg-footer-bottom p { margin: 0; font-size: .88rem; }
.fg-pay { display: flex; align-items: center; gap: 12px; font-size: .84rem; }
.fg-pay i { font-size: 1.7rem; color: #8f879c; }
.fg-paystack { background: rgba(255,255,255,.1); padding: 3px 9px; border-radius: 5px; font-weight: 600; font-size: .78rem; }

/* --------------------------- back to top --------------------------- */
.fg-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transition: .25s ease; z-index: 900; box-shadow: var(--shadow-lg);
}
.fg-top.show { opacity: 1; visibility: visible; }
.fg-top:hover { background: var(--brand-dark); transform: translateY(-3px); }

/* --------------------------- responsive ---------------------------- */
@media (max-width: 991.98px) {
  .fg-nav .navbar-nav { padding: 14px 0; gap: 2px; }
  .fg-nav .nav-item.ms-lg-3, .fg-nav .nav-item.ms-lg-2 { margin-left: 0 !important; }
  .fg-hero { padding: 66px 0 74px; }
  .section { padding: 60px 0; }
  .fg-hero-stats { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   Lesson player (learn.php)
   ===================================================================== */
.learn-page .fg-footer { display: none; }
.learn-page .fg-top { display: none; }

.learn-bar {
  background: var(--ink); color: #fff; padding: 12px 0;
  position: sticky; top: 0; z-index: 1020;
}
.learn-title {
  font-size: .98rem; font-weight: 600; color: #fff;
  max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.learn-bar .btn-outline-light { border-color: rgba(255,255,255,.35); }
.learn-bar .btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.learn-progress { align-items: center; gap: 12px; font-size: .84rem; color: rgba(255,255,255,.85); }

.learn-layout { display: grid; grid-template-columns: 1fr 360px; min-height: calc(100vh - 130px); }
.learn-main { min-width: 0; background: #fff; }

.learn-video { background: #000; aspect-ratio: 16 / 9; width: 100%; }
.learn-video iframe,
.learn-video video { width: 100%; height: 100%; border: 0; display: block; }
.learn-video-empty {
  height: 100%; display: grid; place-content: center; justify-items: center;
  gap: 12px; color: #7e7590; text-align: center; padding: 20px;
}
.learn-video-empty i { font-size: 2.6rem; }

.learn-body { padding: 28px 30px 60px; max-width: 900px; }
.learn-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 5px;
}

.learn-attachment {
  display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--brand-softer);
  color: var(--ink); transition: .18s ease;
}
.learn-attachment:hover { border-color: var(--brand); color: var(--brand); }
.learn-attachment > i:first-child { color: var(--brand); font-size: 1.1rem; }
.learn-attachment strong { display: block; font-size: .95rem; }
.learn-attachment small { color: var(--muted); font-size: .82rem; }

.learn-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
}

/* sidebar */
.learn-side { background: #fbfafc; border-left: 1px solid var(--line); }
.learn-side-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.learn-side-head p { font-size: .84rem; color: var(--muted); }

.learn-section { border-bottom: 1px solid var(--line); }
.learn-section-title {
  margin: 0; padding: 14px 22px 10px; font-size: .93rem; font-weight: 700; color: var(--ink);
}
.learn-section-title span {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
}

.learn-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 22px;
  color: #3c3447; font-size: .9rem; border-left: 3px solid transparent; transition: .15s ease;
}
a.learn-item:hover { background: var(--brand-soft); color: var(--brand); }
.learn-item.current { background: #fff; border-left-color: var(--brand); font-weight: 600; color: var(--brand); }
.learn-item.locked { color: #9c94a8; cursor: not-allowed; }
.learn-item-icon { width: 15px; flex: none; font-size: .9rem; color: var(--muted); }
.learn-item-icon.done { color: var(--ok); }
.learn-item.current .learn-item-icon { color: var(--brand); }
.learn-item-text { flex: 1; min-width: 0; }
.learn-item-time { font-size: .78rem; color: var(--muted); flex: none; }

@media (max-width: 991.98px) {
  .learn-layout { grid-template-columns: 1fr; }
  .learn-body { padding: 22px 18px 50px; }
  .learn-title { max-width: 38vw; }
  .learn-side { border-left: 0; }
  .learn-side.offcanvas-lg { width: min(360px, 88vw); }
}
