/* =====================================================================
   KayScience — "Live Lessons" (/live-lessons, public visitors) page CSS.
   Built on the shared ks-common.css tokens/buttons/headings. Page-specific
   classes are prefixed `.ll-`. Loaded ONLY on this page.
   ===================================================================== */

/* The hero is a full-bleed gradient that must sit UNDER the floating menu
   bar (same trick the homepage/pastpapers/tutors heroes use), so the <main>
   top padding is removed and the hero reserves the header space itself. */
.ks-scope main:has(.ll-hero) { padding-top: 0; }

.ks-livelessons { overflow: hidden; }

/* ---------- Hero ---------- */
.ll-hero {
  position: relative;
  padding: 150px 0 70px;
  background: linear-gradient(120deg, #eaf2fb 0%, #eef1fb 40%, #e3f3ee 100%);
}
.ll-hero__inner {
  /* Wider than the standard --ks-container (same trick ke-hero__inner /
     kt-hero__inner use) and skewed toward the media column so the 500px
     "Live Lesson" card has room to sit beside the other cards instead of
     covering them. */
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.ll-hero__content h1 {
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  color: var(--ks-navy);
  margin: 0 0 18px;
}
.ll-hero__content p {
  color: var(--ks-navy-soft);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 480px;
}
.ll-hero__checks {
  list-style: none;
  margin: 20px 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ll-hero__checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ks-navy);
}
.ll-hero__checks img.ks-tick { flex: none; }
.ll-hero__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---- Hero composite graphic (4 overlapping mock cards) ---- */
.ll-hero__media {
  position: relative;
  min-height: 460px;
}
.ll-hero__card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--ks-shadow-lg);
  overflow: hidden;
}

/* Upcoming-lesson countdown card, top-left — floats above the video card */
.ll-card-upcoming { top: 0; left: 0; width: 230px; padding: 14px; z-index: 3; }
.ll-card-upcoming__tag {
  display: inline-block;
  background: var(--ks-grad-btn);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.ll-card-upcoming__title { font-size: 13px; font-weight: 700; color: var(--ks-navy); margin: 0 0 12px; line-height: 1.35; }
.ll-card-upcoming__timer { display: flex; gap: 8px; margin-bottom: 12px; }
.ll-card-upcoming__timer div {
  flex: 1;
  background: #f4f2fd;
  border-radius: 8px;
  text-align: center;
  padding: 6px 0 5px;
}
.ll-card-upcoming__timer b { display: block; font-size: 15px; color: var(--ks-navy); }
.ll-card-upcoming__timer span { font-size: 9px; color: var(--ks-muted); text-transform: uppercase; }
.ll-card-upcoming__btn {
  display: block;
  text-align: center;
  background: var(--ks-grad-btn);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 8px;
}

/* Main live-lesson video card — sits as the base layer; the 3 smaller
   accent cards (upcoming/mini/progress) overlap its corners on top of it. */
.ll-card-live { top: 40px; right: 0; width: 500px; padding: 14px; z-index: 1; }
.ll-card-live__head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ks-purple-deep); margin-bottom: 10px; }
.ll-card-live__head svg { width: 14px; height: 14px; }
.ll-card-live__body { position: relative; border-radius: 12px; overflow: hidden; background: #2c2c3e; display: flex; }
.ll-card-live__teacher { position: relative; flex: 1; min-height: 190px; }
.ll-card-live__teacher img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ll-card-live__badge {
  position: absolute; top: 10px; left: 10px;
  display: flex; align-items: center; gap: 5px;
  background: var(--ks-purple-deep); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 6px;
}
.ll-card-live__badge i { width: 6px; height: 6px; border-radius: 50%; background: #ff5c6c; display: inline-block; }
.ll-card-live__diagram {
  width: 150px;
  background: #f4f4f8;
  padding: 10px;
  font-size: 9px;
  color: var(--ks-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.ll-card-live__diagram b { font-size: 10px; }
.ll-card-live__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: #23232f; color: #cfcfe0; font-size: 10px;
}
.ll-card-live__foot span { display: flex; align-items: center; gap: 5px; }
.ll-card-live__foot .is-live { color: #ff8f97; font-weight: 700; }
.ll-card-live__people {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 2;
}
.ll-card-live__person {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92);
  border-radius: 20px; padding: 3px 10px 3px 3px;
  font-size: 10px; font-weight: 600; color: var(--ks-navy);
  box-shadow: var(--ks-shadow-sm);
}
.ll-card-live__avatar {
  width: 22px; height: 22px; border-radius: 50%;
  object-fit: cover;
}
.ll-card-live__count {
  background: rgba(255,255,255,.95);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  box-shadow: var(--ks-shadow-sm);
}
.ll-card-live__count b { display: block; font-size: 15px; color: var(--ks-navy); }
.ll-card-live__count span { font-size: 9px; color: var(--ks-muted); }

/* Mini timetable card, bottom-left — floats above the video card */
.ll-card-mini {
  bottom: -10px; left: 0; width: 250px; padding: 12px 14px; z-index: 3;
}
.ll-card-mini__label { font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--ks-purple-deep); text-transform: uppercase; margin-bottom: 8px; }
.ll-card-mini__row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #f0eef8; font-size: 10px; }
.ll-card-mini__row:first-of-type { border-top: 0; }
.ll-card-mini__row b { display: block; color: var(--ks-navy); font-weight: 600; font-size: 10.5px; }
.ll-card-mini__row span { color: var(--ks-muted); }
.ll-card-mini__pill { align-self: center; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.ll-card-mini__pill--live { background: #e6f7f2; color: var(--ks-teal); }
.ll-card-mini__pill--ok { background: #eef0fc; color: var(--ks-purple-deep); }

/* Progress donut card, bottom-right — floats above the video card */
.ll-card-progress { bottom: -40px; right: 20px; width: 190px; padding: 14px; z-index: 3; text-align: center; }
.ll-card-progress__label { font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--ks-purple-deep); text-transform: uppercase; margin-bottom: 2px; }
.ll-card-progress__sub { font-size: 10px; color: var(--ks-muted); margin-bottom: 10px; }
.ll-card-progress__ring {
  width: 78px; height: 78px; margin: 0 auto 6px;
  border-radius: 50%;
  background: conic-gradient(var(--ks-purple) 0deg 280deg, #ece9fb 280deg 360deg);
  display: flex; align-items: center; justify-content: center;
}
.ll-card-progress__ring span {
  width: 58px; height: 58px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--ks-navy);
}

/* ---------- Trustpilot reviews (same block used on the homepage) ---------- */
.ks-reviews { text-align: center; padding: 40px 0 60px; }
.ks-trustpilot { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 20px; }
.ks-trustpilot__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: #191919; }
.ks-trustpilot__name svg { width: 22px; height: 22px; color: #00b67a; }
.ks-stars { display: inline-flex; gap: 3px; }
.ks-stars span { width: 26px; height: 26px; background: #00b67a; display: inline-flex; align-items: center; justify-content: center; }
.ks-stars span svg { width: 17px; height: 17px; color: #fff; }
.ks-stars span.half { background: linear-gradient(90deg, #00b67a 50%, #dcdce6 50%); }
.ks-reviews h2 { margin: 26px 0 6px; }
.ks-reviews__sub { color: var(--ks-navy); font-weight: 600; font-size: 16px; margin: 0 0 40px; }
.ks-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: left; }
.ks-review {
  background: #fff; border-radius: var(--ks-radius);
  box-shadow: var(--ks-shadow-sm); padding: 26px;
}
.ks-review__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ks-review__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 15px; background: var(--ks-navy);
  background-size: cover; background-position: center;
}
.ks-review__name { font-weight: 700; color: #1a1a2e; font-size: 15px; }
.ks-review__date { color: #8a8aa0; font-size: 13px; }
.ks-review .ks-stars { margin-bottom: 12px; }
.ks-review .ks-stars span { width: 22px; height: 22px; }
.ks-review .ks-stars span svg { width: 14px; height: 14px; }
.ks-review p { font-style: italic; font-size: 14.5px; color: var(--ks-navy-soft); margin: 0; line-height: 1.55; }

/* ---------- Free-trial note (reused reviews-note style) ---------- */
.ll-note {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 10px;
  text-align: center;
  color: var(--ks-navy-soft);
  font-size: 15px;
}

/* ---------- "Great Resources" + 3 cards ---------- */
.ll-guidance { padding: 70px 0 30px; text-align: center; }
.ll-guidance__head { max-width: 760px; margin: 0 auto 40px; }
.ll-guidance__head .ks-btn { margin-top: 22px; }
.ll-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.ll-guidance-card {
  background: #fff;
  border: 1px solid #edeaf9;
  border-radius: var(--ks-radius);
  box-shadow: var(--ks-shadow-sm);
  padding: 26px 24px;
}
.ll-guidance-card img { width: 40px; height: 40px; margin-bottom: 16px; }
.ll-guidance-card h3 { font-size: 17px; font-weight: 600; color: var(--ks-navy); margin: 0 0 10px; }
.ll-guidance-card p { font-size: 13.5px; color: var(--ks-navy-soft); margin: 0 0 12px; }
.ll-guidance-card small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ks-purple-deep);
  line-height: 1.5;
}

/* ---------- "Bring everything together" card ---------- */
.ll-together { padding: 30px 0 60px; }
.ll-together__card {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--ks-radius-lg);
  box-shadow: var(--ks-shadow-lg);
  padding: 34px 40px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.ll-together__icon {
  flex: none;
  width: 96px; height: 96px;
  border-radius: 20px;
  background: #f2effc;
  display: flex; align-items: center; justify-content: center;
}
.ll-together__icon svg { width: 46px; height: 46px; color: var(--ks-purple-deep); }
.ll-together__body h3 { font-size: 19px; font-weight: 600; color: var(--ks-navy); margin: 0 0 16px; }
.ll-together__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; }
.ll-together__list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--ks-navy); }
.ll-together__list img.ks-tick { width: 15px; height: 15px; flex: none; }
.ll-together__list b { color: var(--ks-purple-deep); font-weight: 600; }

/* ---------- Teachers (short variant) ---------- */
.ll-teachers { padding: 40px 0 70px; text-align: center; }
.ll-teachers__head { max-width: 700px; margin: 0 auto 60px; }
.ll-teachers__grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}
.ll-teacher {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.ll-teacher__photo {
  width: 92px; height: 92px;
  border-radius: 50%;
  flex: none;
  padding: 4px;
  background: linear-gradient(135deg, var(--ks-teal-light), var(--ks-purple));
}
.ll-teacher__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ll-teacher h3 { font-size: 17px; font-weight: 600; color: var(--ks-navy); margin: 0 0 2px; }
.ll-teacher__role { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ks-purple-deep); margin: 0 0 12px; }
.ll-teacher ul { list-style: none; margin: 0; padding: 0; }
.ll-teacher li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ks-navy-soft); margin-bottom: 7px; }
.ll-teacher li img.ks-tick { width: 14px; height: 14px; flex: none; }

/* ---------- Step row ---------- */
.ll-steps { padding: 60px 0 60px; }
.ll-steps__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.ll-steps__head h2 { margin: 0; }
.ll-steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}
.ll-step { display: flex; flex-direction: column; align-items: center; text-align: center; width: 150px; }
.ll-step__icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--ks-shadow-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.ll-step__icon img { width: 40px; height: 40px; }
.ll-step p { margin: 0; font-size: 13px; font-weight: 600; color: var(--ks-navy); line-height: 1.4; }
.ll-step-arrow { flex: none; margin-top: 32px; color: var(--ks-purple-deep); }
.ll-step-arrow svg { width: 20px; height: 20px; }

/* ---------- What Students Get ---------- */
.ll-what { padding: 30px 0 70px; text-align: center; }
.ll-what__head { max-width: 720px; margin: 0 auto 40px; }
.ll-what__head .ks-btn { margin-top: 22px; }
.ll-what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.ll-what-card {
  border-radius: var(--ks-radius);
  padding: 14px;
  background: linear-gradient(160deg, #eaf8f2 0%, #eeecfb 100%);
}
.ll-what-card--purple { background: linear-gradient(160deg, #f1eefc 0%, #e7f4f0 100%); }
.ll-what-card--teal   { background: linear-gradient(160deg, #e9f7f1 0%, #eef4fb 100%); }
.ll-what-card__thumb {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ks-shadow-sm);
  margin-bottom: 16px;
  background: #fff;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ll-what-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ll-what-card h3 { font-size: 16px; font-weight: 600; color: var(--ks-navy); margin: 0 8px 6px; }
.ll-what-card p { font-size: 13px; color: var(--ks-navy-soft); margin: 0 8px 10px; }

/* generic mock-thumb (no exported asset — recreated) */
.ll-mock { width: 100%; padding: 14px; }
.ll-mock__bar { height: 8px; border-radius: 4px; background: #ece9f9; margin-bottom: 8px; }
.ll-mock__bar--sm { width: 55%; }
.ll-mock__bar--md { width: 80%; }
.ll-mock__chip { display: inline-block; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--ks-grad-btn); color: #fff; margin-bottom: 10px; }
.ll-mock__box { height: 60px; border-radius: 8px; background: #f4f2fd; margin-top: 8px; }
.ll-mock__photo { width: 100%; height: 132px; object-fit: cover; display: block; }

/* ---------- Timetable ---------- */
.ll-timetable { padding: 30px 0 80px; text-align: center; }
.ll-timetable h2 { margin-bottom: 30px; }
.ll-timetable__frame {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--ks-radius-lg);
  padding: 3px;
  background: linear-gradient(120deg, var(--ks-teal-light), var(--ks-purple));
  box-shadow: var(--ks-shadow-lg);
}
.ll-timetable__inner {
  background: #fff;
  border-radius: calc(var(--ks-radius-lg) - 3px);
  padding: 22px;
  text-align: left;
}
.ll-timetable table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ll-timetable th, .ll-timetable td {
  border: 1px solid #ece9f7;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  min-width: 130px;
}
.ll-timetable thead th { color: var(--ks-navy); font-weight: 700; background: #faf9fe; }
.ll-timetable thead th:first-child { color: var(--ks-purple-deep); }
.ll-timetable td.today, .ll-timetable th.today { background: #f6f4fd; }
.ll-timetable .subject-box h5 { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--ks-navy); }
.ll-timetable .subject-box div { font-size: 11.5px; color: var(--ks-navy-soft); line-height: 1.5; }
.ll-timetable__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #f6f4fd;
  color: var(--ks-navy);
  font-size: 12.5px;
  font-weight: 600;
}
.ll-timetable__download svg { width: 16px; height: 16px; color: var(--ks-purple-deep); flex: none; }
.ll-timetable__download span { text-transform: uppercase; font-weight: 700; letter-spacing: .02em; color: var(--ks-purple-deep); }
.ll-timetable__empty { padding: 30px 12px; text-align: center; color: var(--ks-muted); }

/* ---------- Final signup section ---------- */
.ll-signup { padding: 20px 0 80px; }
.ll-signup__inner {
  max-width: var(--ks-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.ll-signup__content h2 { margin-bottom: 16px; }
.ll-signup__content p { color: var(--ks-navy-soft); font-size: 15px; line-height: 1.7; margin: 0 0 26px; max-width: 460px; }
.ll-signup__bubble { display: flex; align-items: center; gap: 12px; }
.ll-signup__bubble svg { width: 40px; height: 40px; flex: none; color: var(--ks-teal); }
.ll-signup__bubble span {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--ks-shadow-sm);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ks-navy);
}
.ll-signup__card {
  background: #fff;
  border-radius: var(--ks-radius-lg);
  box-shadow: var(--ks-shadow-lg);
  padding: 30px;
}
.ll-signup__google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid #eae7f5;
  background: #fff;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ks-navy);
  margin-bottom: 18px;
}
.ll-signup__google img { width: 18px; height: 18px; }
.ll-signup__divider { text-align: center; font-size: 11px; color: var(--ks-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; position: relative; }
.ll-signup__divider::before, .ll-signup__divider::after { content: ""; position: absolute; top: 50%; width: 40%; border-top: 1px solid #eee; }
.ll-signup__divider::before { left: 0; }
.ll-signup__divider::after { right: 0; }

/* Form fields — same shared pattern as the homepage trial card (ks-home.css
   .ks-form-*), re-themed here for a white card instead of a gradient one. */
.ll-signup__card .ks-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ll-signup__card .ks-form-field {
  width: 100%;
  border: 1.5px solid #eae7f5;
  border-radius: 12px;
  background: #faf9fe;
  padding: 14px 16px;
  font-family: var(--ks-font);
  font-size: 14px;
  color: var(--ks-navy);
  margin-bottom: 14px;
}
.ll-signup__card .ks-form-field::placeholder { color: #9a9ab5; }
.ll-signup__card .ks-form-field:focus { outline: 2px solid rgba(111, 102, 201, .3); border-color: transparent; }
.ll-signup__card .ks-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.ll-signup__card .ks-form-foot p { color: var(--ks-navy-soft); font-size: 12px; line-height: 1.5; margin: 0; }
.ll-signup__card .ks-form-foot p b { color: var(--ks-navy); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ll-hero__inner { grid-template-columns: 1fr; }
  .ll-hero__media { min-height: 380px; margin-top: 40px; }
  .ll-card-live { width: 100%; right: 0; }
  .ll-card-upcoming { width: 190px; }
  .ll-guidance-grid, .ll-what-grid, .ks-review-grid { grid-template-columns: 1fr; }
  .ll-teachers__grid { grid-template-columns: 1fr; }
  .ll-steps-row { flex-wrap: wrap; justify-content: center; }
  .ll-step-arrow { display: none; }
  .ll-signup__inner { grid-template-columns: 1fr; }
  .ll-together__card { flex-direction: column; text-align: center; }
  .ll-together__list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ll-timetable table { font-size: 11.5px; }
  .ll-timetable th, .ll-timetable td { padding: 8px; min-width: 110px; }
}
@media (max-width: 560px) {
  .ll-signup__card .ks-form-row { grid-template-columns: 1fr; }
  .ll-signup__card .ks-form-foot { flex-direction: column; align-items: flex-start; }
}
