/* ===================================================
   Tutorials Revamp Stylesheet
   =================================================== */

[x-cloak] {
  display: none !important;
}

.founders_dashboard_tutorials_body,
.investors_dashboard_tutorials_body,
.seekers_dashboard_tutorials_body {
  flex: 1 !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.founders_dashboard_tutorials_body .dashboard_tab_loader,
.investors_dashboard_tutorials_body .dashboard_tab_loader,
.seekers_dashboard_tutorials_body .dashboard_tab_loader {
  flex: 1 !important;
  height: 100% !important;
  padding: var(--shell-panel-padding) !important;
  gap: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

:root {
  --tut-font: var(--gf-font);
  --meet-font: var(--gf-font);
  --meet-primary: #2966f4;
  --meet-primary-hover: #2054cc;
  --meet-primary-light: #eff4ff;
  --meet-dark: #0a0a0a;
  --meet-text: #101828;
  --meet-text-muted: #667085;
  --meet-border: #e5e7eb;
  --meet-border-subtle: #eaecf0;
  --meet-bg-card: #ffffff;
  --meet-bg-pill: #f2f4f7;
  --meet-bg-pill-hover: #e5e7eb;
  --meet-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --meet-shadow-elevated:
    0 12px 32px rgba(16, 24, 40, 0.12), 0 2px 6px rgba(16, 24, 40, 0.04);
  --meet-radius-card: 16px;
  --meet-radius-pill: 24px;
}

.tutorials-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fafcff;
  font-family: var(--gf-font);
  color: var(--meet-text);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tutorials-wrapper button,
.tutorials-wrapper input,
.tutorials-wrapper select,
.tutorials-wrapper textarea {
  font-family: var(--gf-font);
}

/* ===================================================
   Hub View Layout
   =================================================== */

.tutorials-hub-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 20px;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  min-height: auto;
  background: #ffffff;
  border-radius: 32px;
  margin: 0;
  box-sizing: border-box;
}

.discover-hub-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

/* Header Action Row */
.tutorials-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.tutorials-pills {
  display: flex;
  gap: 8px;
}

.tutorials-pill-btn {
  background: #ffffff;
  border: 1px solid #eef1f5;
  color: #344054;
  border-radius: 100px;
  padding: 10px 20px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.tutorials-pill-btn:hover {
  background: #f9fafb;
  color: #1d2939;
  border-color: #d0d5dd;
}

.tutorials-pill-btn.is-active {
  background: #1d2939;
  color: #ffffff;
  border-color: #1d2939;
}

.tutorials-create-btn {
  background: #2966f4;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px 80px;
  box-sizing: border-box;
}

/* ══════════════════════
   TOP NAV BAR
══════════════════════ */
.topnav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0px;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 51px;
  height: auto;
  align-self: stretch;
  margin-bottom: 8px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.nav-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 12px;
  min-height: 51px;
  flex-grow: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.nav-btn {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  gap: 10px;
  height: 51px;
  background: #f2f4f7;
  border-radius: 32px;
  border: 1px solid transparent;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #0a0a0a;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    border-color 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.nav-btn:hover {
  background: #e9edf2;
  color: #0a0a0a;
}

.nav-btn.is-active {
  background: #e9edf2;
  border-color: #d0d5dd;
  color: #0a0a0a;
}

.nav-btn svg {
  width: 20px;
  height: 20px;
  stroke: #0a0a0a;
  stroke-width: 1.8px;
  fill: none;
}

/* Scoped to the Tutorials tab's own topnav: unscoped, this shared class name
   was overriding the sidebar's red .nav-badge (in dashboard-revamp.css) with
   gray everywhere, since this file loads after it. */
.tutorials-wrapper .topnav .nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0px 8px;
  min-width: 22px;
  height: 20px;
  background: #eef1f5;
  border-radius: 200px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-caption);
  line-height: 1;
  color: #344054;
  box-sizing: border-box;
  text-align: center;
}

.badge-count {
  min-width: 22px;
}

.btn-create {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  gap: 10px;
  height: 51px;
  background: #2966f4;
  border-radius: 32px;
  border: none;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.btn-create:hover {
  background: #2054cc;
  transform: translateY(-1px);
}

.btn-create svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  stroke-width: 2px;
}

/* ══════════════════════
   CATEGORY PILLS
══════════════════════ */
.cat-strip {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  /* Room above and below the cards, inside the strip, so the active ring is not clipped. */
  padding: 8px 4px 16px;
  gap: 12px;
  height: auto;
  align-self: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 0;
  box-sizing: border-box;
}

.cat-strip::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  gap: 8px;
  /* Sized by its label so long names are never clipped. */
  width: auto;
  min-width: 190px;
  height: 78px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
  border: 0;
  /* Fallback tint: the label stays readable when a cover image has not loaded. */
  background: #667085;
  color: inherit;
  font: inherit;
  transition:
    transform 160ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cat-pill.active {
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 5px #2966f4;
}

.cat-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.cat-pill-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cat-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.bg-startup {
  background: linear-gradient(135deg, #1a3060, #2966f4);
}

.bg-investor {
  background: linear-gradient(135deg, #2a3a1a, #4a7a28);
}

.bg-academic {
  background: linear-gradient(135deg, #2a1a3a, #6a3a8a);
}

.bg-networking {
  background: linear-gradient(135deg, #3a2a1a, #8a5a28);
}

.bg-leadership {
  background: linear-gradient(135deg, #1a2a3a, #2a6a9a);
}

.bg-global {
  background: linear-gradient(135deg, #0a0a1a, #1a2060);
}

.cat-label {
  position: relative;
  z-index: 2;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  display: flex;
  align-items: center;
  text-align: center;
  color: #ffffff;
  white-space: nowrap;
}

/* ══════════════════════
   SECTION HEADING ROW
══════════════════════ */
.section-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0px;
  gap: 10px;
  width: 100%;
  height: 36px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.section-title {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  color: #0a0a0a;
}

/* ══════════════════════
   TUTOR CARDS (horizontal scroll)
══════════════════════ */
.tutor-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: 8px;
  width: 100%;
}

.tutor-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px;
  gap: 16px;
  width: 100%;
  min-height: 130px;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 24px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  transition:
    transform 160ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 160ms cubic-bezier(0.2, 0, 0, 1),
    border-color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.tutor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  border-color: #b2ccff;
}

.tutor-left-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px;
  gap: 8px;
  width: 64px;
  height: 98px;
  flex-shrink: 0;
}

.tutor-av {
  width: 64px;
  height: 64px;
  position: relative;
  flex-shrink: 0;
}

.av-inner,
.tutor-mini-av > div:not(.avatar-badge) {
  position: absolute !important;
  top: 38% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 65.6% !important;
  height: 65.6% !important;
  border-radius: 50%;
  background: #fcfcfc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  box-sizing: border-box;
}

.av-avatar-img {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  object-fit: cover;
}

.tutor-av .avatar-badge,
.tutor-mini-av .avatar-badge {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  z-index: 3 !important;
  pointer-events: none;
}

.tutor-rating-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px;
  gap: 4px;
  height: 26px;
}

.tutor-rating-row .star-icon,
.tutor-rating-row svg {
  width: 20px;
  height: 20px;
  fill: #2966f4;
  stroke: none;
}

.tutor-rating-row .rating-val {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #2966f4;
}

.tutor-right-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0px;
  gap: 8px;
  width: 276px;
  height: 96px;
  min-width: 0;
  flex-grow: 1;
}

.tutor-name-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 4px;
  width: 100%;
}

.tutor-name {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  letter-spacing: -0.2px;
  color: #0a0a0a;
}

.skill-tags-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 8px;
  width: 100%;
  min-width: 0;
  height: 30px;
  position: relative;
  /* Chips scroll sideways instead of being clipped or wrapping the card taller. */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.skill-tags-row::-webkit-scrollbar {
  display: none;
}

.skill-chip {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 8px;
  height: 30px;
  flex-shrink: 0;
  background: #f2f4f7;
  border-radius: 32px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  line-height: 20px;
  letter-spacing: -0.2px;
  color: #0a0a0a;
  white-space: nowrap;
  box-sizing: border-box;
}

.tutor-stats-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 16px;
  width: 100%;
  height: 24px;
}

.tutor-stats-row .stat-item {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px;
  gap: 8px;
  height: 24px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  line-height: 24px;
  letter-spacing: -0.2px;
  color: #0a0a0a;
}

.tutor-stats-row .stat-item svg {
  width: 18px;
  height: 18px;
  stroke: #0a0a0a;
  stroke-width: 1.5px;
  fill: none;
}

/* ══════════════════════
   CATEGORY DECORATIVE BANNERS
══════════════════════ */
.cat-banner {
  position: relative;
  width: 100%;
  min-height: 130px;
  border-radius: 24px;
  padding: 24px;
  box-sizing: border-box;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 24px;
  margin-top: 24px;
}

.cat-banner.purple {
  background: #4e5ba6;
}

.cat-banner.green {
  background: #027a48;
}

.banner-title {
  font-family: var(--gf-font);
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  letter-spacing: -0.02em;
  line-height: var(--gf-leading-card);
  z-index: 1;
  margin-bottom: 4px;
  color: #ffffff;
}

.banner-sub {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-regular);
  line-height: var(--gf-leading-body);
  opacity: 0.95;
  z-index: 1;
  max-width: 720px;
  color: #ffffff;
}

/* Decorative vector shapes */
.banner-deco {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

/* ── SUB-TABS STRIP ── */
.sub-tabs {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 40px;
  border-bottom: 1px solid #d0d5dd;
  box-sizing: border-box;
}

.sub-tabs::-webkit-scrollbar {
  display: none;
}

.sub-tab {
  flex-shrink: 0;
  padding: 0px 8px 16px;
  border-radius: 0;
  border: none;
  border-bottom: 4px solid transparent;
  background: transparent;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  line-height: var(--gf-leading-body);
  color: #667085;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
  white-space: nowrap;
  box-sizing: border-box;
}

.sub-tab:hover {
  color: #0a0a0a;
}

.sub-tab.active {
  background: transparent;
  color: #2966f4;
  border-bottom-color: #2966f4;
  font-weight: var(--gf-weight-semibold);
}

/* ══════════════════════
   TUTORIAL COURSE CARDS (horizontal scroll)
══════════════════════ */
.tut-scroll {
  display: grid;
  /* Wide enough that a card's stars and price row still fit; the card was drawn at 364px. */
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 20px;
  padding: 4px 4px 12px;
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* A card host renders the shared card into its own div, so that div is the grid item. */
.tut-scroll > * {
  min-width: 0;
}

.tut-card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  gap: 12px;
  width: 100%;
  min-height: 457px;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 24px;
  cursor: pointer;
  transition:
    transform 160ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 160ms cubic-bezier(0.2, 0, 0, 1),
    border-color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.tut-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
  border-color: #b2ccff;
}

.tut-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: #f4ebff;
}

.tut-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.tut-tags-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0px;
  gap: 8px;
  width: 100%;
  height: 30px;
}

.tut-tags {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.tut-tag {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 8px;
  height: 30px;
  background: #f2f4f7;
  border-radius: 32px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  line-height: 20px;
  letter-spacing: -0.2px;
  color: #0a0a0a;
  box-sizing: border-box;
  white-space: nowrap;
}

.more-btn {
  border: none;
  background: none;
  color: #0a0a0a;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
  padding: 0;
  flex-shrink: 0;
}

.more-btn:hover {
  background: #f2f4f7;
}

.more-btn svg {
  width: 20px;
  height: 20px;
}

.tut-title {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: 32px;
  letter-spacing: -0.2px;
  color: #0a0a0a;
  min-height: 64px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

.tut-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 16px;
  height: 24px;
  width: 100%;
}

.meta-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  line-height: 24px;
  letter-spacing: -0.2px;
  color: #0a0a0a;
}

.meta-item svg {
  width: 20px;
  height: 20px;
  stroke: #0a0a0a;
  stroke-width: 1.5px;
  fill: none;
}

.stars-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 8px;
  height: 26px;
  width: 100%;
}

.stars {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  color: #2966f4;
}

.stars .star-icon,
.stars svg {
  width: 22px;
  height: 22px;
  fill: #2966f4;
  stroke: none;
}

.rating-num {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #2966f4;
}

.rating-cnt {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #667085;
}

.tut-foot {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding-top: 0;
  border-top: none;
  margin-top: 4px;
}

.price-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 0px 12px;
  gap: 4px;
  height: 40px;
  background: #f2f4f7;
  border-radius: 32px;
  box-sizing: border-box;
}

.price-pill .price-curr {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #0a0a0a;
}

.price-pill .price-val,
.price {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #000000;
}

.tutor-mini-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.tut-instructor {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 58%;
}

/* Only the achievement avatar stays on the card; the tutor name is hidden. */
.tut-instructor-name {
  display: none;
}

.tut-instructor-name {
  overflow: hidden;
  color: #344054;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  line-height: var(--gf-leading-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ══════════════════════
   SECTION EMPTY STATE
══════════════════════ */
.tutorials-section-empty {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 32px 20px;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.tutorials-section-empty.is-full-tab {
  min-height: 520px;
}

.tutorials-section-empty .empty-art-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.tutorials-section-empty .empty-art-wrap svg {
  width: 104px;
  height: 104px;
  max-width: 104px;
  max-height: 104px;
  flex: 0 0 104px;
}

.tutorials-section-empty .empty-title,
.tutorials-section-empty h3 {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  letter-spacing: -0.2px;
  color: #101828;
  margin: 8px 0 0;
}

.tutorials-section-empty .empty-subtitle,
.tutorials-section-empty p {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #475467;
  margin: 0;
  max-width: 440px;
}

.tutorials-section-empty .empty-btn {
  border: 0;
  border-radius: 999px;
  background: #2966f4;
  color: #ffffff;
  cursor: pointer;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  line-height: 1;
  min-height: 44px;
  padding: 0 24px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.tutorials-section-empty .empty-btn:hover {
  background: #2054cc;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .tutorials-section-empty {
    min-height: 220px;
    padding: 24px 16px;
  }

  .tutorials-section-empty.is-full-tab {
    min-height: 420px;
  }

  .tutorials-section-empty .empty-art-wrap svg {
    width: 88px;
    height: 88px;
    max-width: 88px;
    max-height: 88px;
    flex-basis: 88px;
  }

  .tutorials-section-empty .empty-title,
  .tutorials-section-empty h3 {
    font-size: var(--gf-text-body);
  }

  .tutorials-section-empty .empty-subtitle,
  .tutorials-section-empty p {
    font-size: var(--gf-text-caption);
  }
}

.tutorials-empty-state {
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  color: #475467;
}

/* ── DROPDOWN POPUP MENU (STRICTLY CONTAINED IN CARD) ── */
.dropdown,
.card-dropdown {
  position: absolute;
  top: 236px;
  right: 16px;
  width: 220px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #d0d5dd;
  box-shadow:
    0px 12px 24px -4px rgba(16, 24, 40, 0.12),
    0px 4px 8px -2px rgba(16, 24, 40, 0.06);
  padding: 8px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
}

.tut-card.has-open-dropdown {
  z-index: 40;
}

/* The card menu is the shared dropdown; its trigger keeps the card's compact scale. */
.tut-card-menu {
  flex-shrink: 0;
}

.tut-card .gf-menu__trigger {
  width: 28px;
  height: 28px;
}

.tut-card .gf-menu__trigger svg {
  width: 16px;
  height: 16px;
}

.drop-buy {
  width: 100%;
  padding: 10px 16px;
  background: #2966f4;
  border: none;
  border-radius: 32px;
  color: #ffffff;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  line-height: var(--gf-leading-body);
  cursor: pointer;
  text-align: center;
  margin-bottom: 2px;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
  box-sizing: border-box;
}

.drop-buy:hover {
  background: #2054cc;
}

.drop-item {
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: #1d2939;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  line-height: var(--gf-leading-body);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
  box-sizing: border-box;
  height: auto;
}

.drop-item:hover {
  background: #f9fafb;
  color: #0a0a0a;
}

.drop-item svg {
  width: 18px;
  height: 18px;
  color: #667085;
  flex-shrink: 0;
}

.hover-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: var(--gf-text-caption);
  color: #344054;
  background: none;
  border: none;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.hover-menu-item:hover {
  background: #f9fafb;
  color: #1d2939;
}

.hover-menu-item svg {
  width: 16px;
  height: 16px;
  color: #667085;
}

.detail-view-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1702px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 32px;
  padding: 32px;
  gap: 40px;
  box-sizing: border-box;
}

/* The detail view sits flush with the tab content like every other tab:
   no white card inside a grey gutter, no extra 32px inset. */
.tutorials-wrapper.is-detail {
  background: transparent;
}

.tutorials-wrapper.is-detail .detail-view-container {
  max-width: none;
  padding: 0;
  background: transparent;
  border-radius: 0;
  gap: 32px;
}

.detail-hero-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 48px;
  gap: 24px;
  isolation: isolate;
  width: 100%;
  min-height: 436px;
  background:
    linear-gradient(0deg, rgba(16, 24, 40, 0.65), rgba(16, 24, 40, 0.65)),
    url("../../images/studio-portrait-afro-american-man-wearing-black-pullover-smiling-orange-wall.jpg")
      no-repeat center/cover;
  border-radius: 24px;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.detail-hero-banner-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0px;
  gap: 24px;
  width: 100%;
  max-width: 923px;
  flex: 1;
  box-sizing: border-box;
}

.detail-hero-info-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 20px;
  align-self: stretch;
}

.detail-top-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 36px;
  flex-wrap: wrap;
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  height: 34px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  color: #ffffff;
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  cursor: pointer;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    border-color 160ms cubic-bezier(0.2, 0, 0, 1),
    transform 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
}

.detail-back-btn:hover {
  background: #ffffff;
  color: #101828;
  border-color: #ffffff;
  transform: translateX(-2px);
}

.detail-back-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.detail-back-btn:hover svg {
  transform: translateX(-2px);
}

.detail-breadcrumbs {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-breadcrumbs span {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  display: flex;
  align-items: center;
  color: #ffffff;
}

.detail-breadcrumbs .crumb-link {
  cursor: pointer;
  font-weight: var(--gf-weight-medium);
  transition:
    opacity 160ms cubic-bezier(0.2, 0, 0, 1),
    text-decoration 160ms cubic-bezier(0.2, 0, 0, 1);
}

.detail-breadcrumbs .crumb-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.detail-breadcrumbs .crumb-sep {
  color: rgba(255, 255, 255, 0.6);
}

.detail-breadcrumbs .crumb-current {
  color: rgba(255, 255, 255, 0.85);
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-hero-title {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-bold);
  font-size: var(--gf-text-section);
  line-height: var(--gf-leading-section);
  display: flex;
  align-items: center;
  color: #ffffff;
  margin: 0;
}

.detail-hero-desc {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 820px;
}

.detail-hero-stats {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 24px;
  align-self: stretch;
  height: 26px;
}

.detail-hero-stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 8px;
  height: 26px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.7);
}

.detail-hero-stat strong {
  font-weight: var(--gf-weight-bold);
  color: #ffffff;
}

.detail-hero-stat svg {
  width: 20px;
  height: 20px;
  stroke: #2966f4;
  fill: none;
}

.detail-hero-stat .star-icon {
  stroke: #2966f4;
  fill: #2966f4;
}

.detail-hero-pills {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  gap: 16px;
  width: 100%;
  height: 56px;
}

.detail-hero-pill {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  gap: 10px;
  min-width: 180px;
  height: 56px;
  background: rgba(29, 41, 57, 0.5);
  border-radius: 16px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #ffffff;
  box-sizing: border-box;
}

.detail-hero-pill svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  stroke-width: 1.5px;
  fill: none;
}

/* Watch Intro Pill Button — top-right of hero banner */
.detail-watch-intro-btn-pill {
  position: absolute;
  top: 32px;
  right: 48px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  background: rgba(10, 10, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #ffffff;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 10;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.detail-watch-intro-btn-pill:hover {
  background: rgba(10, 10, 10, 0.85);
}

/* Watch Intro Circle Button — centered-right in hero banner */
.detail-watch-intro-btn-circle {
  position: absolute;
  right: 220px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  line-height: 0;
}

.detail-watch-intro-btn-circle:hover .detail-play-circle {
  transform: scale(1.08);
  background: #2054cc;
}

.detail-play-circle {
  width: 64px;
  height: 64px;
  background: #2966f4;
  border: 2.66667px solid #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 8px 24px rgba(41, 102, 244, 0.4);
  transition:
    transform 160ms cubic-bezier(0.2, 0, 0, 1),
    background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.detail-play-circle svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  margin-left: 4px;
}

/* Detail Main Grid: 2 columns for Overview/Syllabus/Reviews vs Purchase/Tutor */
.detail-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  column-gap: 48px;
  row-gap: 32px;
  align-items: start;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 1201px) {
  .detail-main-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    min-width: 0;
  }

  .detail-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    margin-top: -80px;
    position: relative;
    z-index: 10;
  }
}

@media (max-width: 1200px) {
  .detail-body-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
  }

  .detail-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    position: static;
    margin-top: 0;
  }
}

/* Floating Purchase Card */
.floating-purchase-card {
  background: #ffffff;
  border: 1px solid #eef1f5;
  box-shadow:
    0px 12px 16px -4px rgba(16, 24, 40, 0.08),
    0px 4px 6px -2px rgba(16, 24, 40, 0.03);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .floating-purchase-card {
    width: 100%;
    max-width: 100%;
  }
}

.floating-price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  width: 100%;
  height: auto;
  gap: 2px;
}

.floating-price {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-bold);
  font-size: var(--gf-text-section);
  line-height: var(--gf-leading-section);
  color: #000000;
}

.floating-price-label {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  letter-spacing: -0.2px;
  color: #475467;
}

.floating-btn-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  gap: 8px;
  width: 100%;
  height: 51px;
}

.floating-btn-buy {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  gap: 10px;
  height: 51px;
  background: #2966f4;
  border-radius: 32px;
  border: none;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #ffffff;
  cursor: pointer;
  flex-grow: 1;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.floating-btn-buy:hover {
  background: #2054cc;
}

.floating-btn-save {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  gap: 10px;
  height: 51px;
  border: 1px solid #2966f4;
  border-radius: 32px;
  background: #ffffff;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #2966f4;
  cursor: pointer;
  flex-grow: 1;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.floating-btn-save:hover {
  background: #f2f4f7;
}

.floating-wyg-title {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  letter-spacing: -0.2px;
  color: #101828;
  margin: 8px 0 0 0;
}

.floating-wyg-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 12px;
  width: 100%;
  max-width: 331px;
  height: auto;
  list-style: none;
  margin: 0;
}

.floating-wyg-item {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding: 0px;
  gap: 10px;
  height: auto;
  min-height: 24px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: 0;
  color: #475467;
}

.floating-wyg-item svg {
  width: 20px;
  height: 20px;
  stroke: none;
  fill: #2966f4;
  flex-shrink: 0;
}

.floating-wyg-item svg.stroke-svg {
  stroke: #2966f4;
  stroke-width: 1.5px;
  fill: none;
}

/* Sections Inside Detail */
.section-card {
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.section-card-title {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  color: #1d2939;
  margin: 0 0 16px 0;
}

.overview-grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  gap: 48px;
  width: 100%;
}

@media (max-width: 1024px) {
  .overview-grid {
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 24px;
  }
}

.overview-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.overview-column-title {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  letter-spacing: -0.2px;
  color: #101828;
  margin: 0 0 12px 0;
}

.overview-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 16px;
  list-style: none;
  margin: 0;
}

.overview-item {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0px;
  gap: 10px;
  min-height: 26px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #475467;
}

.overview-item .check-circle {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: #eef4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.overview-item .check-circle svg {
  width: 14px;
  height: 14px;
  stroke: #2966f4;
  stroke-width: 2.5px;
  fill: none;
  margin-top: 0;
}

.syllabus-title-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.syllabus-title {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-bold);
  font-size: var(--gf-text-section);
  line-height: var(--gf-leading-section);
  color: #101828;
  margin: 0;
}

/* Syllabus Accordions */
.syllabus-header-meta {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  color: #475467;
  margin-left: 0;
}

.syllabus-meta-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 16px;
  width: 100%;
  height: 24px;
}

.syllabus-meta-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 8px;
  height: 24px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  letter-spacing: -0.2px;
  color: #475467;
}

.syllabus-meta-item svg {
  width: 20px;
  height: 20px;
  stroke: #2966f4;
  stroke-width: 1.5px;
  fill: none;
}

.syllabus-accordion-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.syllabus-module {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  gap: 16px;
  width: 100%;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #f2f4f7;
  overflow: hidden;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.syllabus-module:hover {
  background: #f2f4f7;
}

.syllabus-module-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 10px;
  width: 100%;
  min-height: 32px;
  background: transparent;
  cursor: pointer;
}

.syllabus-module-title-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 10px;
  flex-grow: 1;
  min-height: 32px;
}

.syllabus-module-title {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  letter-spacing: -0.2px;
  color: #101828;
}

.syllabus-module-header svg {
  width: 20px;
  height: 20px;
  stroke: #667085;
  stroke-width: 2px;
  fill: none;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.syllabus-module-desc {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #475467;
  margin-top: -4px;
}

.syllabus-module-lessons-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 16px;
  width: 100%;
  border-top: 1px solid #eef1f5;
  padding-top: 16px;
  background: transparent;
}

.syllabus-lesson-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  gap: 16px;
  width: 100%;
  min-height: 26px;
  border-bottom: none;
}

.syllabus-lesson-title-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 10px;
  flex-grow: 1;
  min-height: 26px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #101828;
}

.syllabus-lesson-title-wrap svg {
  width: 20px;
  height: 20px;
  stroke: #2966f4;
  stroke-width: 1.5px;
  fill: none;
  flex-shrink: 0;
}

.syllabus-lesson-duration {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #667085;
  white-space: nowrap;
}

/* Reviews Block */
.ratings-header-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 6px;
  width: 100%;
  margin-bottom: 24px;
}

.ratings-stars-big {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-bold);
  font-size: var(--gf-text-section);
  line-height: var(--gf-leading-section);
  color: #101828;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ratings-stars-big .blue-star {
  color: #2966f4;
}

.ratings-count-big {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #667085;
}

.reviews-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  width: 100%;
}

@media (max-width: 900px) {
  .reviews-list {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

.review-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 12px;
  width: 100%;
  border-bottom: none;
  padding-bottom: 0;
}

.review-user-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  width: 100%;
  min-height: 56px;
}

.review-user-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 12px;
}

.review-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.review-user-name {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #101828;
  margin: 0;
}

.review-user-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 8px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  line-height: 24px;
  color: #667085;
}

.review-stars-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #2966f4;
}

/* Same star as the tutorial cards. */
.review-stars-wrap .star-icon {
  width: 22px;
  height: 22px;
  fill: #2966f4;
  stroke: none;
  flex: 0 0 auto;
}

.review-user-meta-right {
  position: relative;
}

.review-more-dots-btn {
  background: none;
  border: none;
  font-size: var(--gf-text-card);
  color: #98a2b3;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
  line-height: 1;
}

.review-more-dots-btn:hover {
  background: #f2f4f7;
  color: #101828;
}

.review-helpful-dropdown {
  position: absolute;
  top: 32px;
  right: 0;
  width: 240px;
  background: #ffffff;
  border: 1px solid #eef1f5;
  box-shadow: 0px 12px 32px -4px rgba(16, 24, 40, 0.12);
  border-radius: 16px;
  padding: 14px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.review-dropdown-title {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  line-height: 24px;
  font-weight: var(--gf-weight-medium);
  color: #344054;
  margin-bottom: 2px;
}

.review-dropdown-btn-group {
  display: flex;
  gap: 6px;
}

.review-dropdown-opt-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 8px 14px;
  background: #f9fafb;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  line-height: 24px;
  font-weight: var(--gf-weight-medium);
  color: #344054;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.review-dropdown-opt-btn:hover {
  background: #f2f4f7;
  border-color: #98a2b3;
  color: #101828;
}

.review-dropdown-opt-btn.is-active {
  background: #eff4ff;
  border-color: #2966f4;
  color: #2966f4;
}

.review-dropdown-divider {
  height: 1px;
  background: #eef1f5;
  margin: 2px 0;
}

.review-dropdown-report-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  line-height: 24px;
  font-weight: var(--gf-weight-medium);
  color: #f04438;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
  text-align: left;
}

.review-dropdown-report-btn:hover {
  background: #fef3f2;
}

.review-text {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: 26px;
  color: #475467;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Write a review sits at the same scale as the header Create button. */
.tut-review-cta {
  align-self: flex-start;
  flex-grow: 0;
  height: 44px;
  padding: 10px 18px;
  border-radius: 22px;
}

/* Write-a-review form: the star row, the input and the action share one 16px rhythm. */
.tut-review-form-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.tut-review-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tut-review-stars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tut-review-star {
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--gf-text-section);
  line-height: 1;
  color: #d0d5dd;
  cursor: pointer;
  transition: color 120ms cubic-bezier(0.2, 0, 0, 1);
}

.tut-review-star.is-on {
  color: #2966f4;
}

.tut-review-star:hover,
.tut-review-star:focus-visible {
  color: #2054cc;
}

.tut-review-rating-value {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  font-weight: var(--gf-weight-semibold);
  color: #475467;
}

.tut-review-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 112px;
  padding: 14px 16px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #101828;
  resize: vertical;
  transition:
    border-color 160ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 160ms cubic-bezier(0.2, 0, 0, 1);
}

.tut-review-input::placeholder {
  color: #98a2b3;
}

.tut-review-input:focus {
  outline: none;
  border-color: #2966f4;
  box-shadow: 0 0 0 4px rgba(41, 102, 244, 0.12);
}

.tut-review-actions {
  display: flex;
  justify-content: flex-start;
}

/* The submit button hugs its label instead of stretching across the card. */
.tut-review-submit {
  flex-grow: 0;
  width: max-content;
  max-width: 100%;
  height: 48px;
  padding: 12px 28px;
  border-radius: 24px;
}

/* Numbered review pager: two columns by four rows is one page. */
.reviews-pager {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 0 4px;
  width: 100%;
}

.reviews-pager-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  line-height: 24px;
  font-weight: var(--gf-weight-medium);
  color: #475467;
  cursor: pointer;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.reviews-pager-btn:hover:not(:disabled):not(.is-gap) {
  background: #f2f4f7;
  color: #101828;
}

.reviews-pager-btn.is-active {
  background: #eff4ff;
  color: #2966f4;
}

.reviews-pager-btn:disabled {
  color: #98a2b3;
  cursor: default;
}

.reviews-pager-btn.is-gap {
  min-width: 24px;
  cursor: default;
}

.reviews-pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px;
  gap: 8px;
  width: 100%;
  height: 40px;
  border-top: none;
  margin-top: 32px;
}

.pagination-btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 14px;
  min-width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #344054;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.pagination-btn:hover {
  background: #f2f4f7;
}

.pagination-btn.is-active {
  background: #2966f4;
  border-color: #2966f4;
  color: #ffffff;
}

.pagination-dots {
  color: #667085;
  padding: 0 4px;
}

/* Instructor Sidebar Widget */
.tutor-sidebar-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  gap: 16px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 20px;
  box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.04);
}

.tutor-sidebar-profile {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 16px;
  width: 100%;
}

.tutor-sidebar-btn-view {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  gap: 10px;
  width: 100%;
  height: 48px;
  background: #f2f4f7;
  border-radius: 100px;
  border: none;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #101828;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.tutor-sidebar-btn-view:hover {
  background: #eef1f5;
}

.tutor-stats-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  gap: 16px;
}

.tutor-stats-row .stat-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  line-height: 24px;
  color: #475467;
}

.tutor-stats-row .stat-item svg {
  width: 18px;
  height: 18px;
  color: #2966f4;
  stroke-width: 1.5px;
}

/* ===================================================
   Detail page card sections (More by Tutor / More like this)
   =================================================== */

.detail-bottom-sections {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  margin-top: 16px;
}

.detail-bottom-sections .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 24px;
}

.detail-bottom-sections .section-title {
  font-family: var(--gf-font);
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  color: #101828;
}

.detail-bottom-sections .tut-scroll {
  padding-top: 6px;
}

/* Hub rows and the detail rows hold four cards across instead of auto-filling: auto-fill kept
   adding columns as the viewport grew (six or seven cramped cards per row on wide screens). */
.tutorials-hub-container .tut-scroll,
.detail-bottom-sections .tut-scroll {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .tutorials-hub-container .tut-scroll,
  .detail-bottom-sections .tut-scroll {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tutorials-hub-container .tut-scroll,
  .detail-bottom-sections .tut-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tutorials-hub-container .tut-scroll,
  .detail-bottom-sections .tut-scroll {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tut-card.has-open-dropdown {
  z-index: 50 !important;
}

.detail-bottom-sections .tut-card.has-open-dropdown {
  z-index: 50 !important;
}

.detail-bottom-sections .tut-card .stars {
  color: #2966f4;
}

.detail-bottom-sections .tut-card .stars-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

.detail-bottom-sections .tut-card .rating-num {
  font-weight: var(--gf-weight-semibold);
  color: #101828;
  font-size: var(--gf-text-body);
}

.detail-bottom-sections .tut-card .rating-cnt {
  color: #667085;
  font-size: var(--gf-text-caption);
}

.detail-bottom-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 0 8px;
  width: 100%;
}

.detail-bottom-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: #f2f4f7;
  border: 1px solid #d0d5dd;
  border-radius: 100px;
  color: #344054;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.detail-bottom-back-btn:hover {
  background: #2966f4;
  border-color: #2966f4;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(41, 102, 244, 0.25);
}

.detail-bottom-back-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.detail-bottom-back-btn:hover svg {
  transform: translateX(-3px);
}

/* ===================================================
   Share & Saved Modals Styles
   =================================================== */

.tut-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.tut-modal-container {
  background: #ffffff;
  border-radius: 32px;
  padding: 24px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  box-sizing: border-box;
}

.tut-modal-container.large {
  max-width: 1240px;
  width: min(94vw, 1240px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px 40px 40px;
  border-radius: 28px;
  box-shadow: 0 24px 64px -12px rgba(16, 24, 40, 0.16);
  box-sizing: border-box;
}

.tut-modal-close {
  position: absolute;
  right: 24px;
  top: 24px;
  border: none;
  background: #f2f4f7;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.tut-modal-close svg {
  width: 20px;
  height: 20px;
  color: #667085;
}

.tut-modal-close:hover {
  background: #eef1f5;
}

/* ── MODAL HEADER ROW ── */
.tut-share-header-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  gap: 24px;
  width: 100%;
  height: 56px;
  flex-shrink: 0;
}

.tut-modal-title {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-bold);
  font-size: var(--gf-text-section);
  line-height: var(--gf-leading-section);
  color: #000000;
  margin: 0;
  display: flex;
  align-items: center;
  flex: 1;
}

/* ── CARD PREVIEW ── */
.share-card-preview {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid #d0d5dd;
  border-radius: 24px;
  padding: 16px;
  background: #ffffff;
  width: 100%;
  height: 230px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.share-card-img {
  width: 335px;
  height: 198px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f4ebff;
}

.share-card-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
  height: 198px;
  justify-content: flex-start;
}

.share-card-title {
  font-family: var(--gf-font);
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  color: #0a0a0a;
  line-height: var(--gf-leading-section);
  letter-spacing: -0.2px;
  margin: 0;
}

.share-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  color: #0a0a0a;
  letter-spacing: -0.2px;
  height: 24px;
}

.share-card-meta svg {
  width: 24px;
  height: 24px;
  color: #0a0a0a;
}

.share-card-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--gf-text-body);
  height: 26px;
}

.share-card-stars .star-gold {
  color: #2966f4;
  font-size: var(--gf-text-card);
}

.share-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
}

.share-card-price {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #f2f4f7;
  border-radius: 32px;
  padding: 0 12px;
  height: 40px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #0a0a0a;
  line-height: var(--gf-leading-card);
}

.share-section-label {
  font-family: var(--gf-font);
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  line-height: var(--gf-leading-card);
  letter-spacing: -0.2px;
  color: #0a0a0a;
  margin: 0 0 8px 0;
}

.share-people-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.share-people-scroll::-webkit-scrollbar {
  display: none;
}

.share-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  cursor: pointer;
}

.share-person .tutor-av {
  width: 64px;
  height: 64px;
  min-width: 64px;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.share-person:hover .tutor-av,
.share-person:hover .share-more-btn {
  transform: scale(1.08);
}

.share-person-name {
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  line-height: var(--gf-leading-caption);
  letter-spacing: -0.2px;
  color: #0a0a0a;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.share-more-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f2f4f7;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition:
    transform 160ms cubic-bezier(0.2, 0, 0, 1),
    background 160ms cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
}

.share-more-btn:hover {
  background: #eef1f5;
  transform: scale(1.08);
}

.share-more-btn svg {
  width: 22px;
  height: 22px;
  color: #0a0a0a;
}

.share-socials-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  box-sizing: border-box;
  padding: 2px 2px 6px 2px;
}

.share-socials-row::-webkit-scrollbar {
  display: none;
}

.share-social-btn {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform 160ms cubic-bezier(0.2, 0, 0, 1),
    opacity 160ms cubic-bezier(0.2, 0, 0, 1);
  overflow: hidden;
}

.share-social-btn:hover {
  transform: scale(1.08);
}

.share-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f2f4f7;
  border: none;
  border-radius: 32px;
  padding: 12px 24px;
  width: 100%;
  height: 51px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #0a0a0a;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
  box-sizing: border-box;
}

.share-copy-btn:hover {
  background: #eef1f5;
}

/* ========================================================
   REFINED SHARE MODAL STYLING (FIGMA MATCH - COMPACT)
   ======================================================== */
.tut-modal-container.share-modal-refinement {
  width: 580px;
  max-width: 92vw;
  height: auto;
  max-height: 88vh;
  padding: 24px;
  gap: 16px;
  background: #ffffff;
  box-shadow: 0px 20px 64px -4px rgba(16, 24, 40, 0.12);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.share-modal-scrollable-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

.share-modal-scrollable-body::-webkit-scrollbar {
  width: 6px;
}

.share-modal-scrollable-body::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.share-modal-refinement .tut-share-header-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: auto;
  flex-shrink: 0;
}

.share-modal-refinement .tut-modal-title {
  font-family: var(--gf-font);
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  line-height: var(--gf-leading-card);
  color: #000000;
  margin: 0;
}

.share-modal-refinement .tut-modal-close {
  width: 40px !important;
  height: 40px !important;
  background: #f2f4f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.share-modal-refinement .tut-modal-close svg {
  width: 18px;
  height: 18px;
  color: #0a0a0a;
  stroke-width: 2px;
}

.share-modal-refinement .share-card-preview {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px;
  gap: 14px;
  width: 100%;
  height: auto;
  min-height: 130px;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
}

.share-modal-refinement .share-card-img {
  width: 180px;
  height: 114px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f4ebff;
}

.share-modal-refinement .share-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 6px;
  width: auto;
  height: auto;
  flex: 1;
  min-width: 0;
}

.share-modal-refinement .share-card-title {
  font-family: var(--gf-font);
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  line-height: var(--gf-leading-card);
  letter-spacing: -0.2px;
  color: #0a0a0a;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-modal-refinement .share-card-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 12px;
  width: auto;
  height: auto;
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  color: #475467;
}

.share-modal-refinement .share-card-meta svg {
  width: 14px;
  height: 14px;
  color: #475467;
  stroke-width: 1.5px;
}

.share-modal-refinement .share-card-stars {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 4px;
  width: auto;
  height: auto;
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
}

.share-modal-refinement .share-card-stars .star-gold {
  color: #2966f4;
  font-size: var(--gf-text-body);
  line-height: 1;
}

.share-modal-refinement .share-card-stars span[x-text*="rating"] {
  font-weight: var(--gf-weight-medium) !important;
  color: #2966f4 !important;
  margin-left: 4px;
}

.share-modal-refinement .share-card-stars span[x-text*="reviewsCount"] {
  color: #667085 !important;
}

.share-modal-refinement .share-card-foot {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0px;
  width: 100%;
  height: 32px;
  margin-top: 2px;
}

.share-modal-refinement .share-card-price {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px 10px;
  gap: 4px;
  height: 30px;
  background: #f2f4f7;
  border-radius: 20px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #000000;
}

.share-modal-refinement .share-card-foot .tutor-mini-av {
  width: 28px !important;
  height: 28px !important;
}

.share-modal-refinement .share-section-label {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #0a0a0a;
  margin-top: 2px;
  margin-bottom: 8px;
  height: auto;
  display: flex;
  align-items: center;
}

.share-modal-refinement .share-people-scroll {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 2px 2px 6px 2px;
  gap: 14px;
  width: 100%;
  height: auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

.share-modal-refinement .share-people-scroll::-webkit-scrollbar {
  display: none;
}

.share-modal-refinement .share-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: 6px;
  width: 64px;
  height: auto;
  flex-shrink: 0;
  cursor: pointer;
}

.share-modal-refinement .share-person .tutor-av {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.share-modal-refinement .share-person:hover .tutor-av,
.share-modal-refinement .share-person:hover .share-more-btn {
  transform: scale(1.08);
}

.share-modal-refinement .share-person-name {
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  color: #0a0a0a;
  margin: 0;
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-modal-refinement .share-more-btn {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  background: #f2f4f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition:
    transform 160ms cubic-bezier(0.2, 0, 0, 1),
    background 160ms cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
}

.share-modal-refinement .share-more-btn:hover {
  background: #eef1f5;
  transform: scale(1.08);
}

.share-modal-refinement .share-more-btn svg {
  width: 22px;
  height: 22px;
  color: #0a0a0a;
}

.share-modal-refinement .share-socials-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 2px 2px 6px 2px;
  gap: 14px;
  width: 100%;
  height: auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

.share-modal-refinement .share-socials-row::-webkit-scrollbar {
  display: none;
}

.share-modal-refinement .share-social-btn {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
  overflow: hidden;
}

.share-modal-refinement .share-social-btn:hover {
  transform: scale(1.08);
}

.share-modal-refinement .share-social-btn svg {
  width: 24px;
  height: 24px;
}

.share-modal-refinement .share-copy-btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  gap: 8px;
  width: 100%;
  height: 44px;
  background: #f2f4f7;
  border-radius: 24px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #0a0a0a;
  border: none;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
  margin-top: 4px;
}

.share-modal-refinement .share-copy-btn:hover {
  background: #eef1f5;
  color: #000000;
}

.share-modal-refinement .share-copy-btn svg {
  width: 18px;
  height: 18px;
  color: #0a0a0a;
  stroke-width: 2px;
}

/* ===================================================
   Video Preview Modal Styles (pixel-accurate rebuild)
   =================================================== */

/* Modal outer shell — near full-bleed 16:9 player */
.tut-video-modal-content {
  border-radius: 20px;
  width: min(96vw, 1680px);
  height: min(92vh, 960px);
  height: min(92dvh, 960px);
  max-width: none;
  max-height: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  background: #000;
}

/* Fullscreen keeps the frame edge to edge. */
.tut-video-modal-content:fullscreen,
.tut-video-modal-content:-webkit-full-screen {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  transform: none !important;
  outline: none !important;
  overflow: hidden !important;
  box-shadow: none !important;
  background: #000 !important;
}

.tut-video-modal-content:fullscreen::backdrop,
.tut-video-modal-content:-webkit-full-screen::backdrop {
  background: #000;
}

.tut-video-modal-content.is-expanded {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  transform: none !important;
  outline: none !important;
  overflow: hidden !important;
  box-shadow: none !important;
  background: #000 !important;
}

.tut-video-modal-content.is-expanded .tut-vp-frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background-color: #000 !important;
}

.tut-video-modal-content.is-expanded .tut-vp-frame video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  object-fit: contain !important;
  background: #000 !important;
}

.tut-video-modal-content:fullscreen .tut-vp-frame,
.tut-video-modal-content:-webkit-full-screen .tut-vp-frame,
.tut-video-modal-content.is-expanded .tut-vp-frame {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

.tut-video-modal-content:fullscreen video,
.tut-video-modal-content:-webkit-full-screen video,
.tut-video-modal-content.is-expanded video {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
}

@media (max-width: 720px) {
  .tut-video-modal-content {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }
}

/* Full-bleed image/video frame */
.tut-vp-frame {
  width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tut-vp-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.tut-vp-frame video {
  opacity: 0;
  transition: opacity 160ms ease;
}

.tut-vp-frame video.tut-vp-video--ready {
  opacity: 1;
}

.tut-vp-load-state {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  color: #fff;
  font-size: var(--gf-text-body);
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.tut-vp-load-state--error {
  background: rgba(16, 24, 40, 0.58);
}

.tut-vp-load-state p {
  margin: 0;
}

.tut-vp-load-state button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 22px;
  background: #2966f4;
  color: #fff;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}

/* ── Left-side vertical volume column (opens from the speaker button) ───── */
.tut-vp-vol-col {
  position: absolute;
  left: calc(var(--tut-vp-controls-inset, 18px) + 71px);
  bottom: 92px;
  /* sits just above the timeline + controls */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 9px;
  border-radius: 999px;
  background: rgba(71, 84, 103, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 18px rgba(16, 24, 40, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 6;
  transform: translateX(-50%);
}

.tut-vp-vol-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.tut-vp-vol-mute {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.tut-vp-vol-mute:hover .tut-vp-vol-icon {
  color: #ffffff;
}

/* Vertical track */
.tut-vp-vol-track {
  width: 4px;
  height: 100px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  touch-action: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tut-vp-vol-fill {
  width: 100%;
  background: #2966f4;
  border-radius: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
}

/* Draggable thumb dot */
.tut-vp-vol-thumb {
  width: 14px;
  height: 14px;
  background: #2966f4;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(41, 102, 244, 0.35);
}

/* ── Bottom section: controls + timeline ───────────── */
.tut-vp-bottom {
  --tut-vp-controls-inset: 18px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 72px var(--tut-vp-controls-inset) 16px;
  background: linear-gradient(
    180deg,
    rgba(16, 24, 40, 0) 0%,
    rgba(16, 24, 40, 0.56) 100%
  );
}

/* Controls row */
.tut-vp-controls-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 14px;
}

/* The tools sit in a translucent rounded pill, as in the player design. */
.tut-vp-ctrl-left,
.tut-vp-ctrl-right {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(71, 84, 103, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 18px rgba(16, 24, 40, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Circular control button inside the pill */
.tut-vp-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(16, 24, 40, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.tut-video-modal-content .tut-vp-btn:not(.tut-vp-speed-btn) {
  position: relative;
  inset: auto;
  max-width: 40px;
  max-height: 40px;
  padding: 0;
}

.tut-vp-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.tut-vp-btn svg {
  width: 15px;
  height: 15px;
}

.tut-video-modal-content .tut-vp-btn svg {
  flex: 0 0 15px;
  max-width: 15px;
  max-height: 15px;
}

/* Active/highlighted blue volume button */
.tut-vp-btn--active {
  background: #2966f4;
}

.tut-vp-btn--active:hover {
  background: #2054cc;
}

/* Speed text button — same circle but shows text */
.tut-vp-speed-btn {
  width: auto;
  min-height: 40px;
  flex: 0 0 auto;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #ffffff;
  letter-spacing: -0.2px;
}

/* Inset timeline sits below the controls and tracks the full video duration. */
.tut-vp-timeline {
  width: 100%;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-sizing: border-box;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(71, 84, 103, 0.76);
  box-shadow:
    inset 0 1px 2px rgba(16, 24, 40, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  touch-action: none;
  outline: none;
}

.tut-vp-timeline:focus-visible {
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px #2966f4;
}

.tut-vp-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #2966f4;
  border-radius: inherit;
  transition: width 120ms linear;
  pointer-events: none;
}

@media (max-width: 720px) {
  .tut-vp-bottom {
    --tut-vp-controls-inset: 10px;
    padding: 48px var(--tut-vp-controls-inset) 10px;
  }

  .tut-vp-controls-row {
    padding-bottom: 10px;
  }

  .tut-vp-ctrl-left,
  .tut-vp-ctrl-right {
    gap: 3px;
    padding: 3px;
  }

  .tut-vp-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex-basis: 36px;
  }

  .tut-video-modal-content .tut-vp-btn:not(.tut-vp-speed-btn) {
    max-width: 36px;
    max-height: 36px;
  }

  .tut-vp-speed-btn {
    min-height: 36px;
    flex-basis: auto;
  }

  .tut-vp-vol-col {
    left: 10px;
    bottom: 78px;
  }
}

/* Floating Save Button Active State */
.floating-btn-save.is-saved {
  background: #2966f4;
  color: #ffffff;
}

.floating-btn-save.is-saved:hover {
  background: #2054cc;
  color: #ffffff;
}

/* ===================================================
   Checkout / Purchase Confirmation Modal Styles
   =================================================== */
.tut-checkout-modal-content {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  font-family: var(--gf-font);
  animation: tutFadeIn 0.3s ease-out;
  padding: 0;
}

@keyframes tutFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tut-checkout-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
}

/* Left Column - Summary */
.tut-checkout-left {
  background: #f3f4f6;
  width: 320px;
  padding: 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.tut-checkout-title {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  color: #111827;
  margin: 0;
}

/* Card inside Left Column */
.tut-checkout-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid #eaedf1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.tut-checkout-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
}

.tut-checkout-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tut-checkout-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tut-checkout-card-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tut-checkout-card-tag {
  background: #f3f4f6;
  color: #4b5563;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  padding: 4px 12px;
  border-radius: 100px;
}

.tut-checkout-card-tag-more {
  font-size: var(--gf-text-caption);
  color: #9ca3af;
  font-weight: var(--gf-weight-semibold);
  padding-left: 2px;
}

.tut-checkout-card-title {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  color: #111827;
  margin: 0;
  line-height: var(--gf-leading-body);
}

.tut-checkout-card-meta {
  display: flex;
  gap: 16px;
  color: #4b5563;
  font-size: var(--gf-text-caption);
  align-items: center;
}

.tut-checkout-card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tut-checkout-card-meta-item svg {
  width: 14px;
  height: 14px;
  stroke-width: 2px;
  color: #4b5563;
}

.tut-checkout-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--gf-text-caption);
}

.tut-checkout-card-stars {
  display: flex;
  gap: 2px;
  color: #2966f4;
}

.tut-checkout-card-stars .star {
  font-size: var(--gf-text-body);
}

.tut-checkout-card-rating .rating-val {
  font-weight: var(--gf-weight-semibold);
  color: #2966f4;
}

.tut-checkout-card-rating .rating-cnt {
  color: #6b7280;
}

.tut-checkout-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.tut-checkout-card-price {
  background: #f3f4f6;
  color: #111827;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  padding: 6px 16px;
  border-radius: 100px;
}

.tut-checkout-card-avatar-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #eaedf1;
}

.tut-checkout-card-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right Column - Card Form */
.tut-checkout-right {
  flex: 1;
  padding: 28px 36px 28px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #ffffff;
}

.tut-checkout-right-title {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  color: #111827;
  margin: 0;
}

.tut-checkout-form-pixel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.tut-checkout-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.tut-checkout-input-group label {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #111827;
}

.tut-checkout-input-group input {
  background: #f0f2f6;
  border: none;
  border-radius: 100px;
  padding: 14px 20px;
  outline: none;
  font-size: var(--gf-text-body);
  color: #111827;
  width: 100%;
  box-sizing: border-box;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 160ms cubic-bezier(0.2, 0, 0, 1);
}

.tut-checkout-input-group input::placeholder {
  color: #9ca3af;
}

.tut-checkout-input-group input:focus {
  background: #eaedf1;
  box-shadow: 0 0 0 4px rgba(41, 102, 244, 0.1);
}

.tut-checkout-form-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.flex-1 {
  flex: 1;
}

.tut-checkout-actions-pixel {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
}

.tut-checkout-btn-continue {
  background: #2966f4;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 14px 36px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.tut-checkout-btn-continue:hover {
  background: #2054cc;
}

.tut-checkout-btn-continue:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Close button style override */
.tut-checkout-close {
  font-size: var(--gf-text-section);
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px;
  transition: color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.tut-checkout-close:hover {
  color: #4b5563;
}

.tut-checkout-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
}

.tut-checkout-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d1fadf;
  color: #039855;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.tut-checkout-success-icon svg {
  width: 28px;
  height: 28px;
}

.tut-checkout-success h3 {
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
  margin: 0 0 8px 0;
}

.tut-checkout-success p {
  font-size: var(--gf-text-body);
  color: #667085;
  margin: 0;
  line-height: var(--gf-leading-body);
}

@media (max-width: 768px) {
  .tut-checkout-layout {
    flex-direction: column;
  }

  .tut-checkout-left {
    width: 100%;
    padding: 32px 24px;
  }

  .tut-checkout-right {
    padding: 32px 24px;
  }
}

/* ========================================================
   Refined Saved, My Learning & My Tutorials Modals Styles
   ======================================================== */
.saved-modal-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.saved-modal-header .tut-modal-title {
  font-family: var(--gf-font);
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  line-height: var(--gf-leading-section);
  letter-spacing: -0.02em;
  color: #101828;
  margin: 0;
  white-space: nowrap;
  flex: none;
}

.saved-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.saved-modal-search-wrap {
  position: relative;
  width: min(474px, 100%);
  max-width: 100%;
}

.saved-modal-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #667085;
  pointer-events: none;
}

.saved-modal-search-input {
  width: 100%;
  height: 44px;
  padding: 10px 18px 10px 44px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: #f2f4f7;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  color: #101828;
  outline: none;
  box-sizing: border-box;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 160ms cubic-bezier(0.2, 0, 0, 1),
    border-color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.saved-modal-search-input::placeholder {
  color: #667085;
}

.saved-modal-search-input:focus {
  background: #ffffff;
  border-color: #d0d5dd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.saved-modal-header-actions .tut-modal-close,
.tut-modal-container.large .tut-modal-close {
  position: static;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f2f4f7;
  border: 1px solid #eef1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    transform 160ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.saved-modal-header-actions .tut-modal-close {
  margin-left: auto;
}

.saved-modal-header-actions .tut-modal-close:hover,
.tut-modal-container.large .tut-modal-close:hover {
  background: #eef1f5;
  transform: scale(1.04);
}

.saved-modal-header-actions .tut-modal-close svg,
.tut-modal-container.large .tut-modal-close svg {
  width: 20px;
  height: 20px;
  stroke: #475467;
}

.saved-tutorials-modal {
  min-height: 72vh;
}

.saved-modal-empty {
  flex: 1;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (max-width: 640px) {
  .saved-tutorials-modal {
    min-height: 72vh;
  }

  .saved-modal-empty {
    min-height: 340px;
  }
}

/* The saved modal lays out the same 364px cards the hub rows use. */
.saved-modal-grid {
  display: grid;
  /* The modal cards fill the width like the saved-tutorials design: even 24px gutters,
     no fixed 364px columns centred with dead space on either side. */
  grid-template-columns: repeat(auto-fit, minmax(244px, 1fr));
  justify-content: stretch;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  margin-top: 8px;
  padding-bottom: 12px;
  box-sizing: border-box;
}

/* Grid cells stretch the same shared card instead of keeping the scroller width.
   Each cell is the x-component host, so it stretches and the card fills it.
   (Scoped to div so the x-for <template> never becomes a grid item.) */
.saved-modal-grid > div {
  display: flex;
  min-width: 0;
}

.saved-modal-grid .tut-card {
  width: 100%;
  min-height: 0;
  height: 100%;
}

/* Price + tutor row align along the bottom of every card, like the design grid. */
.saved-modal-grid .tut-card .tut-body {
  flex: 1 1 auto;
}

.saved-modal-grid .tut-card .tut-foot {
  margin-top: auto;
}

/* Narrower grid columns: let the tag row wrap instead of clipping labels. */
.saved-modal-grid .tut-tags-row {
  height: auto;
  align-items: flex-start;
}

.saved-modal-grid .tut-tags {
  flex-wrap: wrap;
  overflow: visible;
  white-space: normal;
  row-gap: 6px;
}

@media (max-width: 900px) {
  .saved-modal-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }
}

/* Purchased State Sidebar Card Styles */
.floating-purchase-card.purchased {
  padding: 24px;
}

.floating-purchase-card-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.floating-purchase-card.purchased .floating-purchase-card-inner {
  gap: 20px;
}

.purchased-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.purchased-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.purchased-title {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  color: #101828;
  margin: 0;
  letter-spacing: -0.8px;
  font-family: var(--gf-font);
}

.purchased-subtitle {
  font-size: var(--gf-text-body);
  color: #667085;
}

/* Circular Progress Style matching design */
.circular-progress-container {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.circular-progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circular-progress-svg .circle-bg {
  stroke: #f2f4f7;
}

.circular-progress-svg .circle-progress {
  stroke: #000000;
  stroke-linecap: round;
}

.circular-progress-container .progress-text {
  position: absolute;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
  font-family: var(--gf-font);
}

/* Continue learning button style */
.floating-btn-continue {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;
  background: #2966f4;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.floating-btn-continue:hover {
  background: #2054cc;
}

/* WYG list items overrides for purchased state */
.floating-wyg-list .purchased-item {
  font-weight: var(--gf-weight-regular);
  color: #344054;
}

.floating-wyg-list .purchased-item svg {
  margin-right: 4px;
}

/* =====================================================
   Full-Screen Course Player (.cp-*)
   ===================================================== */

.cp-shell {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f2f4f7;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  font-family: var(--gf-font);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  gap: 24px;
  box-sizing: border-box;
}

/* ---- Sidebar card layout ---- */
.cp-sidebar {
  width: 363px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 32px;
  padding: 16px;
  gap: 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.cp-sidebar::-webkit-scrollbar {
  display: none;
}

/* Sidebar progress container (with back button + progress card) */
.cp-sidebar-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  gap: 12px;
  align-self: stretch;
  height: 69px;
  flex-shrink: 0;
  background: none;
  box-sizing: border-box;
}

/* Rounded back button */
.cp-back-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px;
  gap: 12px;
  width: 48px;
  height: 69px;
  background: #f2f4f7;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cp-back-btn:hover {
  background: #e9edf2;
}

.cp-back-btn svg {
  width: 24px;
  height: 24px;
  color: #0a0a0a;
  stroke-width: 2.5;
}

/* Blue Progress Card matching screenshot */
.cp-progress-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 16px;
  gap: 32px;
  height: 69px;
  background: #2966f4;
  border-radius: 16px;
  flex-grow: 1;
  box-sizing: border-box;
  border: none;
}

.cp-progress-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0px;
  gap: 4px;
  flex-grow: 1;
  min-width: 0;
}

.cp-progress-label {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  color: #ffffff;
}

.cp-progress-count {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-progress-pct-ring {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cp-progress-pct-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.cp-progress-pct-ring span {
  position: absolute;
  box-sizing: border-box;
  padding: 2px 4px;
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
}

/* Sidebar tabs styled as premium segment control */
.cp-sidebar-tabs {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 8px;
  gap: 8px;
  height: 67px;
  background: #f9fafb;
  border-radius: 32px;
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.cp-stab {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
  height: 51px;
  border-radius: 32px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #98a2b3;
  background: transparent;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cp-stab.active {
  background: #ffffff;
  color: #0a0a0a;
}

.cp-stab svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.25;
  fill: none;
}

.cp-stab.active svg {
  stroke: #0a0a0a;
}

.cp-stab:hover:not(.active) {
  color: #667085;
}

/* Lessons list and expanded module containers */
.cp-lessons-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-module {
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    border-radius 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cp-module.is-expanded {
  background: #f9fafb;
  border-radius: 24px;
  padding-bottom: 12px;
}

.cp-module-header {
  width: 100%;
  height: 50px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cp-module-header:hover {
  background: #f9fafb;
}

.cp-module.is-expanded .cp-module-header:hover {
  background: transparent;
}

.cp-module-title-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  overflow: hidden;
}

.cp-module-name {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #101828;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-module-name.locked-text {
  color: #101828;
}

.cp-module-lock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #98a2b3;
  flex-shrink: 0;
}

.cp-module-lock-icon svg {
  width: 20px;
  height: 20px;
}

.cp-module-chevron {
  width: 24px;
  height: 24px;
  color: #98a2b3;
  flex-shrink: 0;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cp-module-chevron.rotated {
  transform: rotate(-180deg);
}

/* Module lessons list */
.cp-module-lessons {
  display: flex;
  flex-direction: column;
  padding: 9px 16px;
  gap: 18px;
  box-sizing: border-box;
  width: 100%;
}

/* Lesson rows */
.cp-lesson-row {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 12px;
  width: 100%;
  height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  overflow: visible;
}

.cp-lesson-active-indicator {
  position: absolute;
  width: 8px;
  height: 26px;
  left: -20px;
  top: 0px;
  background: #2966f4;
  border-radius: 0 32px 32px 0;
}

.cp-lesson-video-icon {
  width: 20px;
  height: 20px;
  color: #2966f4;
  flex-shrink: 0;
}

.cp-lesson-complete-check {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2966f4;
  color: #ffffff;
}

.cp-lesson-complete-check svg {
  width: 14px;
  height: 14px;
}

.cp-lesson-text-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 8px;
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
}

.cp-lesson-num {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #2966f4;
  flex-shrink: 0;
}

.cp-lesson-num.is-active {
  font-weight: var(--gf-weight-medium);
}

.cp-lesson-title-text {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #475467;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  min-width: 0;
  flex-grow: 1;
}

.tutorial-resource-card {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  padding: 12px;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
  box-sizing: border-box;
}

.tutorial-resource-card:hover {
  border-color: #d0d5dd;
  background: #f9fafb;
}

.tutorial-resource-card__download {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.tutorial-resource-card__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #f5f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-resource-card__icon svg {
  width: 16px;
  height: 20px;
}

.tutorial-resource-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.tutorial-resource-card__title {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  color: #101828;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tutorial-resource-card__subtitle {
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  color: #667085;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tutorial-resource-card > .gf-menu {
  flex: 0 0 auto;
}

.cp-resource-item svg {
  width: 20px;
  height: 20px;
  color: #0a0a0a;
  flex-shrink: 0;
}

/* ---- Content (right panel) ---- */
.cp-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 32px;
  padding: 20px 24px;
  gap: 16px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Right Content Header Row */
.cp-content-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 16px;
  align-self: stretch;
  flex-shrink: 0;
  background: transparent;
  border-bottom: none;
  box-sizing: border-box;
}

.cp-content-header-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0px;
  gap: 4px;
  flex-grow: 1;
  min-width: 0;
}

.cp-lesson-label {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  color: #2966f4;
  letter-spacing: -0.2px;
  text-transform: none;
}

.cp-lesson-title {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-bold);
  font-size: var(--gf-text-section);
  line-height: var(--gf-leading-section);
  color: #0a0a0a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-next-btn-header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  gap: 10px;
  height: 51px;
  background: #2966f4;
  border-radius: 32px;
  color: #ffffff;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  border: none;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
  box-sizing: border-box;
}

.cp-next-btn-header:hover {
  background: #2054cc;
}

.cp-next-btn-header:disabled {
  background: #9fb8fb;
  cursor: not-allowed;
}

.cp-next-btn-header svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

/* Video area */
.cp-video-wrap {
  width: 100%;
  flex-shrink: 0;
}

.cp-video-frame {
  position: relative;
  width: 100%;
  height: min(571.5px, 55.8vh);
  aspect-ratio: auto;
  max-height: none;
  min-height: 234px;
  background: #f2f4f7;
  border-radius: 24px;
  overflow: hidden;
}

/* Play overlay container matching Screenshot 2 */
.cp-play-overlay-container {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(16, 24, 40, 0.6), rgba(16, 24, 40, 0.6)),
    url("https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=1280&q=80")
      center/cover no-repeat,
    #f2f4f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  z-index: 10;
  text-align: center;
  padding: 24px;
}

.cp-play-overlay-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 594px;
  height: 154px;
}

.cp-play-circle-large {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 16px;
  width: 64px;
  height: 64px;
  border: 2.66667px solid #ffffff;
  border-radius: 1000px;
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
  box-sizing: border-box;
}

.cp-play-circle-large svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  color: #ffffff;
}

.cp-play-title {
  width: 100%;
  height: 32px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: -0.2px;
  color: #ffffff;
  margin: 0;
}

.cp-play-subtitle {
  width: 100%;
  height: 26px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.6);
}

/* Bottom video bar */
.cp-video-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  padding: 32px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-vp-timecodes {
  display: flex;
  justify-content: space-between;
  font-size: var(--gf-text-caption);
  color: rgba(255, 255, 255, 0.75);
  font-weight: var(--gf-weight-medium);
}

.cp-vp-timeline {
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
}

.cp-vp-timeline:hover {
  height: 5px;
}

.cp-vp-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #2966f4;
  border-radius: 10px;
  pointer-events: none;
  transition: width 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cp-vp-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2966f4;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cp-vp-timeline:hover .cp-vp-thumb {
  opacity: 1;
}

.cp-vp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cp-vp-ctrl-left,
.cp-vp-ctrl-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cp-vbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cp-vbtn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.cp-vbtn svg {
  width: 18px;
  height: 18px;
}

.cp-vbtn-speed {
  width: auto;
  padding: 0 10px;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  color: #fff;
}

/* ---- Content Tabs ---- */
.cp-content-tabs-bar {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  gap: 24px;
  border-bottom: 1px solid #eef1f5;
  background: transparent;
  height: 40px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.cp-ctab {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px 8px 16px;
  gap: 10px;
  height: 40px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #98a2b3;
  background: none;
  border: none;
  border-bottom: 4px solid transparent;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
  box-sizing: border-box;
  margin-bottom: 0;
}

.cp-ctab svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.25;
  fill: none;
}

.cp-ctab.active {
  color: #2966f4;
  border-bottom-color: #2966f4;
  font-weight: var(--gf-weight-medium);
}

.cp-ctab.active svg {
  stroke: #2966f4;
}

.cp-ctab:hover:not(.active) {
  color: #667085;
}

/* ---- Tab panels ---- */
.cp-tab-content {
  background: #fff;
  flex: 1;
}

.cp-tab-panel {
  padding: 24px 8px 24px 0px;
  height: 320px;
  overflow-y: auto;
}

.cp-tab-heading {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  letter-spacing: -0.2px;
  color: #101828;
  margin: 0 0 8px;
}

.cp-tab-subheading {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  letter-spacing: -0.2px;
  color: #101828;
  margin: 24px 0 12px;
}

.cp-tab-body {
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  letter-spacing: -0.2px;
  color: #667085;
  margin: 0 0 8px;
}

.cp-tab-objectives {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-tab-objectives li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  gap: 16px;
  min-height: 26px;
  font-family: var(--gf-font);
  font-style: normal;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #667085;
}

.cp-tab-objectives li .cp-obj-check-wrap {
  width: 24px;
  height: 24px;
  background: rgba(41, 102, 244, 0.12);
  border-radius: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cp-tab-objectives li .cp-obj-check-wrap svg {
  width: 14px;
  height: 14px;
  color: #2966f4;
}

/* Notes section */
.cp-tab-note-hint {
  font-size: var(--gf-text-caption);
  color: #98a2b3;
  margin-bottom: 12px;
}

.cp-notes-textarea {
  width: 100%;
  min-height: 150px;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: var(--gf-text-body);
  color: #344054;
  outline: none;
  resize: none;
}

.cp-notes-save-btn {
  margin-top: 12px;
  padding: 10px 24px;
  border-radius: 32px;
  background: #2966f4;
  color: #ffffff;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  border: none;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cp-notes-save-btn:hover {
  background: #2054cc;
}

/* Resources tab */
.cp-tab-resource-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-tab-resource-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px;
  gap: 16px;
  background: #f9fafb;
  border-radius: 16px;
}

.cp-tab-resource-item svg {
  width: 24px;
  height: 24px;
  color: #0a0a0a;
}

.cp-tab-resource-item > div {
  flex-grow: 1;
}

.cp-res-name {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  color: #0a0a0a;
}

.cp-res-type {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  color: #98a2b3;
}

.cp-res-dl {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 32px;
  font-size: var(--gf-text-body);
  color: #0a0a0a;
  cursor: pointer;
}

/* About tutor info */
.cp-about-tutor {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}

.cp-tutor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.cp-tutor-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-tutor-name {
  font-family: var(--gf-font);
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #0a0a0a;
}

.cp-tutor-tags {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.cp-tutor-tag {
  padding: 4px 12px;
  background: #f2f4f7;
  border-radius: 32px;
  font-size: var(--gf-text-caption);
  color: #475467;
}

.cp-tutor-meta {
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  color: #667085;
}

.cp-tutor-meta strong {
  color: #0a0a0a;
}

/* ---- Notes Tab Redesign ---- */
.cp-notes-toolbar {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 40px;
  gap: 16px;
  margin-bottom: 24px;
}

.cp-notes-toolbar-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.cp-notes-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #667085;
  cursor: pointer;
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cp-notes-tool-btn:hover {
  background: #f9fafb;
  color: #101828;
}

.cp-notes-tool-btn svg {
  width: 18px;
  height: 18px;
}

.cp-notes-tool-btn-active {
  background: #eff4ff;
  color: #2966f4;
}

.cp-notes-tool-btn-active:hover {
  background: #d1e0ff;
  color: #2054cc;
}

.cp-notes-title-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-weight: var(--gf-weight-bold);
  font-size: var(--gf-text-section);
  color: #0a0a0a;
  font-family: var(--gf-font);
  margin: 0 0 12px 0;
  padding: 0;
}

.cp-notes-title-input::placeholder {
  color: #98a2b3;
}

.cp-notes-editor {
  width: 100%;
  min-height: 160px;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--gf-font);
  color: #0a0a0a;
  box-sizing: border-box;
}

.cp-notes-editor p {
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  margin: 0;
}

.cp-notes-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
}

.cp-notes-placeholder p {
  font-size: var(--gf-text-body);
  color: #98a2b3;
  line-height: var(--gf-leading-body);
  margin: 0;
}

/* ---- Resources Tab Redesign ---- */
.cp-tab-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
}

/* ---- About Tutor Tab Redesign ---- */
.cp-about-tutor-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cp-tutor-header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cp-tutor-profile {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.cp-tutor-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-tutor-name {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-bold);
  font-size: var(--gf-text-section);
  color: #101828;
  margin: 0;
}

.cp-tutor-stats {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.cp-tutor-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  color: #475467;
}

.cp-tutor-stat svg {
  width: 16px;
  height: 16px;
  color: #98a2b3;
}

.cp-tutor-rating {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.cp-stars {
  display: flex;
  flex-direction: row;
  gap: 2px;
}

.cp-stars svg {
  width: 16px;
  height: 16px;
}

.cp-rating-score {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  color: #101828;
}

.cp-rating-count {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  color: #667085;
}

.cp-tutor-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.cp-tutor-btn-secondary {
  padding: 10px 20px;
  background: #f9fafb;
  border: 1px solid #eef1f5;
  border-radius: 32px;
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  color: #344054;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cp-tutor-btn-secondary:hover {
  background: #f2f4f7;
}

.cp-tutor-btn-primary {
  padding: 10px 20px;
  background: #2966f4;
  border: none;
  border-radius: 32px;
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  color: #ffffff;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cp-tutor-btn-primary:hover {
  background: #2054cc;
}

.cp-tutor-desc-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-tutor-desc-title {
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  color: #2966f4;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cp-tutor-desc-body {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #475467;
}

.cp-tutor-desc-body p {
  margin: 0 0 16px 0;
}

.cp-tutor-desc-body p:last-child {
  margin: 0;
}

/* ---- Custom Video Mock Player ---- */
.cp-mock-player {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.cp-mock-player:fullscreen,
.cp-mock-player:-webkit-full-screen,
.cp-mock-player.is-expanded {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  clip-path: none !important;
  mask: none !important;
  -webkit-mask: none !important;
  transform: none !important;
  box-shadow: none !important;
  background: #000000;
}

.cp-mock-player:fullscreen .cp-mock-player-bg,
.cp-mock-player:-webkit-full-screen .cp-mock-player-bg,
.cp-mock-player.is-expanded .cp-mock-player-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  clip-path: none !important;
  mask: none !important;
  -webkit-mask: none !important;
  object-fit: cover !important;
  background: #000000 !important;
}

.cp-mock-player:fullscreen .cp-mock-top-left,
.cp-mock-player:-webkit-full-screen .cp-mock-top-left,
.cp-mock-player.is-expanded .cp-mock-top-left {
  top: 14px;
  left: 14px;
}

.cp-mock-player:fullscreen .cp-mock-tl-title,
.cp-mock-player:-webkit-full-screen .cp-mock-tl-title,
.cp-mock-player.is-expanded .cp-mock-tl-title {
  font-size: var(--gf-text-body);
}

.cp-mock-player:fullscreen .cp-mock-tl-subtitle,
.cp-mock-player:-webkit-full-screen .cp-mock-tl-subtitle,
.cp-mock-player.is-expanded .cp-mock-tl-subtitle {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-medium);
}

.cp-mock-player:fullscreen .cp-mock-top-right,
.cp-mock-player:-webkit-full-screen .cp-mock-top-right,
.cp-mock-player.is-expanded .cp-mock-top-right {
  top: 18px;
  right: 22px;
  gap: 16px;
}

.cp-mock-player:fullscreen .cp-mock-bottom,
.cp-mock-player:-webkit-full-screen .cp-mock-bottom,
.cp-mock-player.is-expanded .cp-mock-bottom {
  bottom: 14px;
  left: 12px;
  right: 12px;
  gap: 12px;
}

.cp-mock-player:fullscreen .cp-mock-ctrl-left,
.cp-mock-player:-webkit-full-screen .cp-mock-ctrl-left,
.cp-mock-player.is-expanded .cp-mock-ctrl-left {
  gap: 6px;
}

.cp-mock-player:fullscreen .cp-mock-btn,
.cp-mock-player:-webkit-full-screen .cp-mock-btn,
.cp-mock-player.is-expanded .cp-mock-btn {
  width: 32px;
  height: 32px;
}

.cp-mock-player:fullscreen .cp-mock-progress-wrap,
.cp-mock-player:-webkit-full-screen .cp-mock-progress-wrap,
.cp-mock-player.is-expanded .cp-mock-progress-wrap {
  height: 6px;
  border-radius: 3px;
}

.cp-mock-player-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.cp-mock-player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.cp-mock-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  padding: 12px 24px;
  border-radius: 40px;
  z-index: 10;
  pointer-events: none;
}

.cp-mock-top-right {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(8px, 1vw, 20px);
  max-width: calc(100% - 48px);
  flex-wrap: wrap;
  justify-content: flex-end;
  z-index: 3;
}

.cp-mock-tr-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-family: var(--gf-font);
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  cursor: pointer;
  transition: opacity 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cp-mock-tr-item:hover {
  opacity: 0.8;
}

.cp-mock-tr-item svg {
  width: 18px;
  height: 18px;
}

.cp-mock-toolbar-btn {
  padding: 4px 0;
  border: 0;
  background: transparent;
  font: inherit;
  white-space: nowrap;
}

.cp-mock-toolbar-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 4px;
}

.cp-mock-toolbar-btn[aria-pressed="true"] {
  color: #ffffff;
}

.cp-mock-bottom {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 3;
}

.cp-mock-controls-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.cp-mock-ctrl-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.cp-mock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.cp-mock-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.cp-mock-btn svg {
  width: 18px;
  height: 18px;
}

.cp-mock-progress-wrap {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
}

.cp-mock-progress-preview {
  position: absolute;
  top: -126px;
  left: 38%;
  transform: translateX(-50%);
  width: 140px;
  height: 80px;
  background: #101828;
  border-radius: 8px;
  border: 2px solid #ffffff;
  overflow: visible;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 5;
  pointer-events: none;
}

.cp-mock-progress-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0;
  background: #101828;
}

.cp-mock-progress-preview canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  pointer-events: none;
}

.cp-mock-progress-preview video.is-ready {
  opacity: 0;
}

.cp-mock-progress-preview-time {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 10px;
  color: #fff;
  background: rgba(16, 24, 40, 0.82);
  font-size: var(--gf-text-caption);
  line-height: 16px;
  white-space: nowrap;
}

.cp-mock-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 38%;
  background: #ffffff;
  border-radius: 2px;
}

.cp-mock-progress-thumb {
  position: absolute;
  top: -6px;
  left: 38%;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cp-mock-progress-hover-marker {
  position: absolute;
  z-index: 2;
  top: -4px;
  left: 0;
  width: 6px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  pointer-events: none;
}

/* =====================================================
   Peer Learning Modals
   ===================================================== */

.peer-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.peer-modal-card {
  background: #ffffff;
  border-radius: 32px;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  box-sizing: border-box;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
  display: flex;
  flex-direction: column;
  font-family: var(--gf-font);
}

.peer-modal2-card {
  width: min(100%, 500px);
  max-width: 500px;
  padding: 20px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}

.peer-panel .peer-participant-menu-host .gf-menu__trigger {
  color: #ffffff;
}

.peer-panel .peer-participant-menu-host .gf-menu__trigger:hover,
.peer-panel .peer-participant-menu-host .gf-menu__trigger.is-open {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.peer-panel .peer-participant-menu-host .gf-menu__panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.peer-panel .peer-participant-menu-host .gf-menu__panel::-webkit-scrollbar {
  display: none;
}

.peer-panel .peer-participant-role {
  color: #ffffff;
}

/* Modal 1 Specific */
.peer-modal1-hero {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #1e1e1e;
}

.peer-modal1-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.peer-modal1-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.peer-modal1-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

/* Modal 2 Header */
.peer-modal2-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.peer-modal2-header .peer-modal-title {
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
  color: #000000;
  margin: 0;
}

.peer-modal2-close {
  width: 32px;
  height: 32px;
  background: #f2f4f7;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  color: #0a0a0a;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.peer-modal2-close:hover {
  background: #e9edf2;
}

/* Course Box */
.peer-course-box {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px;
  gap: 12px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
  margin-bottom: 20px;
}

.peer-course-box-img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.peer-course-box-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.peer-course-box-title {
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  color: #0a0a0a;
  margin: 0;
  letter-spacing: -0.2px;
}

.peer-course-box-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.peer-course-box-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  color: #0a0a0a;
}

.peer-course-box-meta span svg {
  width: 16px;
  height: 16px;
}

.peer-course-box-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.peer-course-box-rating .stars {
  display: flex;
  gap: 2px;
}

.peer-course-box-rating .star {
  width: 16px;
  height: 16px;
  color: #2966f4;
  fill: #2966f4;
}

.peer-course-box-rating strong {
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  color: #2966f4;
}

.peer-course-box-rating span {
  font-size: var(--gf-text-body);
  color: #667085;
}

.peer-course-box-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 2px;
}

.peer-course-price-pill {
  display: flex;
  align-items: center;
  padding: 2px 10px;
  background: #f2f4f7;
  border-radius: 32px;
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  color: #000000;
  height: 32px;
  box-sizing: border-box;
}

/* Gamified Avatar (Simplified) */
.gamified-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(90deg, #fffca8, #fdb836, #fdc966, #f1dc83);
  box-shadow: 0px 2px 4px rgba(1, 5, 51, 0.08);
}

.gamified-avatar-blue {
  background: linear-gradient(90deg, #41b8fd, #0013bd, #5866e0, #6cc7fd);
}

.gamified-avatar-silver {
  background: linear-gradient(
    90deg,
    #fff8c1,
    #c2e8fd,
    #919191,
    #dddddd,
    #e3e3e3
  );
}

.gamified-avatar-inner {
  width: 100%;
  height: 100%;
  background: #fcfcfc;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.gamified-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Search Box */
.peer-search-container {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 12px;
  width: 100%;
  height: 40px;
  background: #f2f4f7;
  border-radius: 20px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.peer-search-container svg {
  width: 20px;
  height: 20px;
  color: #101828;
}

.peer-search-container input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  color: #101828;
  width: 100%;
}

.peer-search-container input::placeholder {
  color: #667085;
}

/* User List */
.peer-user-list-large {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  width: 100%;
}

.peer-user-row-lg {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 12px;
  gap: 12px;
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  cursor: pointer;
  border-radius: 12px;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.peer-user-row-lg:hover {
  background: #f9fafb;
}

.peer-user-row-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.peer-user-row-info .name {
  font-weight: var(--gf-weight-medium);
  font-size: var(--gf-text-body);
  color: #000000;
}

.peer-user-row-info .role {
  font-weight: var(--gf-weight-regular);
  font-size: var(--gf-text-body);
  color: #667085;
}

.peer-checkbox-circle {
  width: 20px;
  height: 20px;
  border: 1px solid #d0d5dd;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.peer-user-row-lg.selected .peer-checkbox-circle {
  background: #2966f4;
  border-color: #2966f4;
}

.peer-user-row-lg.selected .peer-checkbox-circle svg {
  width: 12px;
  height: 12px;
}

.peer-invited-label {
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  color: #667085;
  background: #f2f4f7;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Footer & Selected Users - Combined in Figma */
.peer-modal2-action-bar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #eef1f5;
  width: 100%;
  min-width: 0;
}

.peer-selected-avatars {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.peer-selected-avatar-overflow {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
}

.peer-selected-avatars .avatar-wrapper {
  position: relative;
  margin-left: -8px;
}

.peer-selected-avatars .avatar-wrapper:first-child {
  margin-left: 0;
}

.peer-selected-avatars .avatar-wrapper img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
}

.peer-selected-avatars .remove-icon {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  color: #667085;
}

.peer-modal2-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .peer-modal-overlay {
    padding: 12px;
  }

  .peer-modal2-card {
    padding: 16px;
  }

  .peer-modal2-action-bar,
  .peer-modal2-actions {
    gap: 8px;
  }

  .peer-btn-back-lg,
  .peer-btn-invite-lg {
    padding: 8px 14px;
  }
}

.peer-btn-back-lg {
  padding: 8px 20px;
  background: #f2f4f7;
  border-radius: 24px;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  color: #344054;
  border: none;
  cursor: pointer;
}

.peer-btn-invite-lg {
  padding: 8px 20px;
  background: #2966f4;
  border-radius: 24px;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.peer-modal-title {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  color: #0a0a0a;
  margin: 0 0 16px 0;
  text-align: center;
}

.peer-modal-desc {
  font-size: var(--gf-text-body);
  color: #475467;
  line-height: var(--gf-leading-body);
  text-align: center;
  margin: 0 0 32px 0;
}

.peer-modal1-continue-btn {
  align-self: center;
  background: #2966f4;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 12px 24px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.peer-modal1-continue-btn:hover {
  background: #2054cc;
}

/* Modal 2 Specific */
.peer-modal2-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.peer-modal2-header .peer-modal-title {
  margin: 0;
  text-align: left;
}

.peer-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f2f4f7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.peer-modal-close-btn:hover {
  background: #e9edf2;
}

.peer-course-card {
  display: flex;
  flex-direction: row;
  gap: 16px;
  border: 1px solid #eef1f5;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 24px;
}

.peer-course-img {
  width: 140px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.peer-course-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.peer-course-info h3 {
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
  margin: 0 0 8px 0;
  line-height: var(--gf-leading-card);
}

.peer-course-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: var(--gf-text-caption);
  color: #475467;
  margin-bottom: 8px;
}

.peer-course-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.peer-course-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--gf-text-caption);
  color: #475467;
  margin-bottom: 12px;
}

.peer-course-rating .star {
  color: #2966f4;
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.peer-course-rating strong {
  color: #2966f4;
  margin-left: 2px;
}

.peer-course-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.peer-course-price {
  background: #f2f4f7;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
}

.peer-course-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.peer-invite-title {
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
  margin: 0 0 12px 0;
}

.peer-search-box {
  display: flex;
  align-items: center;
  background: #f2f4f7;
  border-radius: 20px;
  padding: 8px 16px;
  gap: 8px;
  margin-bottom: 20px;
}

.peer-search-box svg {
  width: 18px;
  height: 18px;
  color: #667085;
}

.peer-search-box input {
  border: none;
  background: transparent;
  font-size: var(--gf-text-body);
  color: #101828;
  width: 100%;
  outline: none;
}

.peer-selected-users {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 24px;
}

.peer-selected-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
}

.peer-selected-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.peer-remove-avatar {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  cursor: pointer;
}

.peer-remove-avatar svg {
  width: 10px;
  height: 10px;
}

.peer-user-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.peer-user-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.peer-user-row img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.peer-user-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.peer-user-row-info .name {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  color: #101828;
}

.peer-user-row-info .role {
  font-size: var(--gf-text-caption);
  color: #667085;
}

.peer-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2966f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.peer-checkbox svg {
  width: 12px;
  height: 12px;
}

.peer-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #eef1f5;
  padding-top: 24px;
  margin-top: 8px;
}

.peer-btn-back {
  background: #f2f4f7;
  color: #101828;
  border: none;
  border-radius: 100px;
  padding: 10px 20px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.peer-btn-back:hover {
  background: #e9edf2;
}

.peer-btn-invite {
  background: #2966f4;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 10px 20px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.peer-btn-invite:hover {
  background: #2054cc;
}

/* ==========================================================================
   TUTORIALS UPGRADE: MY LEARNING & MY TUTORIALS PAGES + PERFORMANCE DRAWER
   ========================================================================== */

/* Active TopNav Pill */
.tutorials-wrapper .topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* The hub container already spaces its children, so the nav needs no extra margin. */
  margin-bottom: 0;
}

.tutorials-wrapper .topnav .nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tutorials-wrapper .topnav .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 999px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #344054;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.tutorials-wrapper .topnav .nav-btn:hover {
  background: #f9fafb;
  border-color: #d0d5dd;
}

.tutorials-wrapper .topnav .nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: #344054;
  fill: none;
  stroke-width: 1.8px;
}

.tutorials-wrapper .topnav .nav-btn.is-active {
  background: #2966f4 !important;
  color: #ffffff !important;
  border-color: #2966f4 !important;
  box-shadow: 0 1px 3px rgba(41, 102, 244, 0.25) !important;
}

.tutorials-wrapper .topnav .nav-btn.is-active svg {
  stroke: #ffffff !important;
}

.tutorials-wrapper .topnav .nav-btn .nav-badge {
  display: none !important;
}

/* Timeframe Dropdown (TopNav & Drawer) */
.drawer-timeframe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 999px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #344054;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  font-family: var(--gf-font);
}

.drawer-timeframe-btn:hover {
  background: #f9fafb;
  border-color: #d0d5dd;
}

.timeframe-select-wrap {
  position: relative;
}

.timeframe-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.1);
  padding: 6px;
  display: flex;
  flex-direction: column;
  z-index: 120;
  min-width: 120px;
}

.timeframe-dropdown button {
  background: none;
  border: none;
  padding: 8px 12px;
  text-align: left;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  color: #344054;
  border-radius: 6px;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
  font-family: var(--gf-font);
}

.timeframe-dropdown button:hover {
  background: #f2f4f7;
  color: #101828;
}

.btn-create {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: #2966f4;
  color: #ffffff;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(41, 102, 244, 0.2);
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
  font-family: var(--gf-font);
}

.btn-create:hover {
  background: #2054cc;
}

.btn-create svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
}

.timeframe-dropdown button:hover {
  background: #f2f4f7;
  color: #101828;
}

/* Page Containers */
.my-learning-container,
.my-tutorials-page-container {
  width: 100%;
  /* The hub already spaces the nav from its content (20px), so the subviews must not add
     another 28px on top of it. */
  margin-top: 0;
  box-sizing: border-box;
}

.my-learning-grid,
.my-tutorials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1360px) {
  .my-learning-grid,
  .my-tutorials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 980px) {
  .my-learning-grid,
  .my-tutorials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .my-learning-grid,
  .my-tutorials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Card layout inside My Learning & My Tutorials grids */
.my-learning-grid > div,
.my-tutorials-grid > div {
  display: flex;
  min-width: 0;
}

.my-learning-grid .tut-card,
.my-tutorials-grid .tut-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 16px !important;
  gap: 14px !important;
  /* Same chrome as the catalogue card so both views read as one component. */
  border-radius: 24px !important;
  border: 1px solid #d0d5dd !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  flex-shrink: 1 !important;
  transition:
    transform 160ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 160ms cubic-bezier(0.2, 0, 0, 1),
    border-color 160ms cubic-bezier(0.2, 0, 0, 1) !important;
  position: relative !important;
}

.my-learning-grid .tut-card:hover,
.my-tutorials-grid .tut-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 24px -4px rgba(16, 24, 40, 0.08),
    0 4px 6px -2px rgba(16, 24, 40, 0.03) !important;
  border-color: #d0d5dd !important;
}

/* My Tutorials still renders the inline card with a fixed-height cover wrapper.
   My Learning uses the shared card, whose .tut-cover keeps its own 16:9 ratio. */
.my-tutorials-grid .tut-card .card-cover-wrap {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  position: relative !important;
}

.my-tutorials-grid .tut-card .card-cover-wrap .tut-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  display: block !important;
}

.my-learning-grid .tut-card .tut-body,
.my-tutorials-grid .tut-card .tut-body {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 0 !important;
}

.my-learning-grid .tut-card .tut-tags-row,
.my-tutorials-grid .tut-card .tut-tags-row {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  height: auto !important;
  min-height: 28px !important;
  margin-top: 2px !important;
}

.my-learning-grid .tut-card .tut-tags,
.my-tutorials-grid .tut-card .tut-tags {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow: hidden !important;
  flex-wrap: wrap !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.my-learning-grid .tut-card .tut-tag,
.my-tutorials-grid .tut-card .tut-tag {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 10px !important;
  height: auto !important;
  background: #f2f4f7 !important;
  border-radius: 100px !important;
  font-size: var(--gf-text-caption) !important;
  font-weight: var(--gf-weight-medium) !important;
  color: #344054 !important;
  line-height: var(--gf-leading-caption) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.my-tutorials-grid .tut-card .more-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  color: #344054 !important;
  border-radius: 6px !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1) !important;
}

.my-tutorials-grid .tut-card .more-btn:hover {
  background: #f2f4f7 !important;
}

.my-learning-grid .tut-card .tut-title,
.my-tutorials-grid .tut-card .tut-title {
  font-size: var(--gf-text-card) !important;
  font-weight: var(--gf-weight-semibold) !important;
  line-height: var(--gf-leading-card) !important;
  color: #101828 !important;
  min-height: calc(var(--gf-leading-card) * 2) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 0 !important;
  width: 100% !important;
}

.my-learning-grid .tut-card .tut-meta,
.my-tutorials-grid .tut-card .tut-meta {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  font-size: var(--gf-text-caption) !important;
  color: #344054 !important;
  font-weight: var(--gf-weight-medium) !important;
  margin: 0 !important;
}

.my-learning-grid .tut-card .tut-meta .meta-item,
.my-tutorials-grid .tut-card .tut-meta .meta-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.my-learning-grid .tut-card .tut-meta svg,
.my-tutorials-grid .tut-card .tut-meta svg {
  stroke: #344054 !important;
}

.my-learning-grid .tut-card .stars-row,
.my-tutorials-grid .tut-card .stars-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

.my-learning-grid .tut-card .stars,
.my-tutorials-grid .tut-card .stars {
  display: flex !important;
  gap: 2px !important;
}

.my-learning-grid .tut-card .star-icon,
.my-tutorials-grid .tut-card .star-icon {
  width: 14px !important;
  height: 14px !important;
  fill: #2966f4 !important;
  stroke: none !important;
}

.my-learning-grid .tut-card .rating-num,
.my-tutorials-grid .tut-card .rating-num {
  font-size: var(--gf-text-caption) !important;
  font-weight: var(--gf-weight-semibold) !important;
  color: #2966f4 !important;
}

.my-learning-grid .tut-card .rating-cnt,
.my-tutorials-grid .tut-card .rating-cnt {
  font-size: var(--gf-text-caption) !important;
  color: #667085 !important;
}

/* My Learning Card Footer */
.tut-foot.my-learning-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-top: auto !important;
  padding-top: 8px !important;
  border-top: 0 !important;
  box-sizing: border-box !important;
  gap: 10px !important;
}

/* Let the body fill the card so every footer sits on the same line. */
.my-learning-grid .tut-card .tut-body {
  flex: 1 1 auto !important;
}

.learning-progress-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.learning-ring-wrap {
  position: relative;
  /* Room inside the stroke so the percentage never touches the ring. */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.learning-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.learning-ring-text {
  position: absolute;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  line-height: 1;
  color: #101828;
  font-family: var(--gf-font);
}

.learning-progress-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.purchased-label {
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  color: #344054;
  white-space: nowrap;
}

.modules-completed-label {
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  color: #667085;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-start-learning {
  background: #2966f4;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  font-family: var(--gf-font);
  flex-shrink: 0;
}

.btn-start-learning:hover {
  background: #2054cc;
}

/* My Tutorials Top KPI Stat Cards */
.my-tut-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
  width: 100%;
}

@media (max-width: 1100px) {
  .my-tut-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .my-tut-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.kpi-label {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
  letter-spacing: -0.2px;
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
}

.kpi-value {
  font-size: var(--gf-text-page);
  font-weight: var(--gf-weight-bold);
  color: #101828;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.kpi-value.primary {
  color: #2966f4;
  font-weight: var(--gf-weight-medium);
}

.kpi-unit {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-regular);
  color: #667085;
  margin-left: 6px;
}

.kpi-trend {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  line-height: 1;
  white-space: nowrap;
}

.kpi-trend.positive {
  color: #12b76a;
}

.kpi-trend.negative {
  color: #f04438;
}

/* Manage Tutorials Section Header & Sub-Nav Tabs */
.manage-tut-header {
  margin: 32px 0 16px 0;
}

.manage-tut-title {
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
  margin: 0;
}

.manage-tut-tabs-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eef1f5;
  margin-bottom: 24px;
}

.manage-tut-tabs {
  display: flex;
  gap: 28px;
}

.tut-status-tab {
  position: relative;
  background: none;
  border: none;
  padding: 10px 4px 14px 4px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #475467;
  cursor: pointer;
  transition: color 160ms cubic-bezier(0.2, 0, 0, 1);
  font-family: var(--gf-font);
}

.tut-status-tab:hover {
  color: #101828;
}

.tut-status-tab.is-active {
  color: #2966f4;
  font-weight: var(--gf-weight-semibold);
}

.tut-status-tab .tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #2966f4;
  border-radius: 2px 2px 0 0;
}

/* Card Disabled Badge & Draft Footer Button */
.card-cover-wrap {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.card-disabled-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: #344054;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  padding: 3px 10px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
  z-index: 2;
}

.my-tutorials-grid .tut-card-btn-wrap {
  margin-top: 4px;
  display: flex;
  justify-content: flex-start;
}

/* The shared card pads by 16px, so the status badge sits inside the cover. */
.my-tutorials-grid .tut-card > .card-disabled-badge {
  top: 26px;
  left: 26px;
}

/* Moderation feedback now lives in the shared card, so it is styled here. */
.my-tutorials-grid .tut-card .tut-review-feedback {
  font-size: var(--gf-text-caption);
  color: #b42318;
  background: #fef3f2;
  border-radius: 8px;
  padding: 6px 8px;
}

.btn-card-publish {
  background: #2966f4;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  height: 38px;
  padding: 0 24px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    transform 160ms cubic-bezier(0.2, 0, 0, 1);
  font-family: var(--gf-font);
}

.btn-card-publish:hover {
  background: #2054cc;
}

.btn-card-publish:active {
  transform: scale(0.98);
}

/* My Tutorials Status-Tailored Dropdown */
.my-tut-dropdown {
  width: 180px !important;
  border-radius: 16px !important;
  padding: 8px 6px !important;
  background: #ffffff;
  border: 1px solid #eef1f5;
  box-shadow:
    0px 12px 32px rgba(16, 24, 40, 0.12),
    0px 4px 8px rgba(16, 24, 40, 0.04);
  z-index: 100;
  top: 242px;
  right: 14px;
}

.drop-publish-full-btn {
  width: 100%;
  background: #2966f4;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
  font-family: var(--gf-font);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-publish-full-btn:hover {
  background: #2054cc;
}

.my-tut-dropdown .drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  color: #344054;
  cursor: pointer;
  text-align: left;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
  font-family: var(--gf-font);
  box-sizing: border-box;
}

.my-tut-dropdown .drop-item svg {
  flex-shrink: 0;
  stroke: #344054;
  width: 18px;
  height: 18px;
}

.my-tut-dropdown .drop-item:hover {
  background: #f9fafb;
  color: #101828;
}

.my-tut-dropdown .drop-item:hover svg {
  stroke: #101828;
}

.my-tut-dropdown .drop-item.delete-item {
  color: #344054;
}

.my-tut-dropdown .drop-item.delete-item svg {
  stroke: #344054;
}

.my-tut-dropdown .drop-item.delete-item:hover {
  background: #fef3f2;
  color: #d92d20;
}

.my-tut-dropdown .drop-item.delete-item:hover svg {
  stroke: #d92d20;
}

/* ==========================================================================
   TUTORIAL PERFORMANCE SLIDE-OVER DRAWER
   ========================================================================== */
.tut-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
}

.tut-performance-drawer {
  width: min(560px, 94vw);
  max-width: 94vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -12px 0 40px rgba(16, 24, 40, 0.18);
  display: flex;
  flex-direction: column;
  padding: 0;
  /* The panel never scrolls itself: the header stays put and .drawer-body scrolls, so the
     rounded corners are never clipped at the bottom. */
  overflow: hidden;
  border-radius: 24px 0 0 24px;
  box-sizing: border-box;
  animation: drawerSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawerSlideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 32px 18px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.drawer-title {
  font-size: var(--gf-text-section);
  line-height: var(--gf-leading-section);
  font-weight: var(--gf-weight-bold);
  letter-spacing: -0.02em;
  color: #101828;
  margin: 0;
  font-family: var(--gf-font);
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.drawer-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f2f4f7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
}

.drawer-close-btn:hover {
  background: #e9edf2;
  color: #101828;
}

/* Scroll container: 36px of bottom padding keeps the last chart clear of the rounded edge. */
.drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

.drawer-tut-banner {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  margin-bottom: 0;
  align-items: center;
}

.drawer-tut-thumb {
  width: 160px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.drawer-tut-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.drawer-tut-title {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
  line-height: var(--gf-leading-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drawer-tut-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--gf-text-caption);
  color: #667085;
}

.drawer-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.drawer-meta-price {
  font-weight: var(--gf-weight-semibold);
  color: #101828;
}

.drawer-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.drawer-metric-card {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.metric-card-title {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  line-height: var(--gf-leading-body);
  color: #101828;
}

.metric-card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.metric-card-body .metric-val {
  font-size: var(--gf-text-page);
  font-weight: var(--gf-weight-medium);
  color: #101828;
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric-card-body .metric-val.primary {
  color: #2966f4;
}

.metric-unit {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-regular);
  color: #667085;
}

.drawer-chart-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
}

.drawer-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-section-title {
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
}

.chart-section-stat {
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #2966f4;
}

.bar-chart-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 200px;
  padding-top: 8px;
  gap: 12px;
  /* Faint horizontal guides like the design, instead of a filled track behind each bar. */
  background-image: repeating-linear-gradient(
    to top,
    #f2f4f7 0,
    #f2f4f7 1px,
    transparent 1px,
    transparent 25%
  );
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  height: 100%;
}

.bar-track {
  width: 12px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: transparent;
  border-radius: 6px;
}

.bar-fill {
  width: 100%;
  background: #2966f4;
  border-radius: 6px;
  transition: height 400ms cubic-bezier(0.2, 0, 0, 1);
}

.bar-fill.active {
  background: #2054cc;
}

.bar-day {
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  color: #98a2b3;
}

.area-chart-container {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: flex-end;
}

.area-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Tutorial performance is a centered sheet, not a viewport-height side rail. */
.tut-drawer-backdrop {
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
  overflow-y: auto;
}

.tut-performance-drawer {
  width: min(900px, 88vw);
  max-width: 900px;
  height: min(95vh, 1120px);
  max-height: calc(100vh - 40px);
  flex: 0 0 auto;
  border-radius: 28px;
  box-shadow: 0 24px 72px rgba(16, 24, 40, 0.2);
  animation: tutorialSheetEnter 220ms cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes tutorialSheetEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tut-performance-drawer .drawer-header {
  padding: 24px 28px 18px;
}

.tut-performance-drawer .drawer-body {
  gap: 22px;
  padding: 0 28px 28px;
}

.tut-performance-drawer .drawer-tut-banner {
  gap: 18px;
  min-height: 132px;
  padding: 14px;
  border-color: #d0d5dd;
  border-radius: 20px;
}

.tut-performance-drawer .drawer-tut-thumb {
  width: 184px;
  height: 104px;
}

.tut-performance-drawer .drawer-tut-title {
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
}

.tut-performance-drawer .drawer-tut-meta {
  flex-wrap: wrap;
  font-size: var(--gf-text-body);
}

.tut-performance-drawer .drawer-metrics-grid {
  gap: 14px;
}

.tut-performance-drawer .drawer-metric-card {
  box-sizing: border-box;
  min-height: 168px;
  justify-content: space-between;
  padding: 22px 20px;
  gap: 20px;
  border-color: #d0d5dd;
  border-radius: 20px;
}

.tut-performance-drawer .metric-card-title {
  font-size: var(--gf-text-card);
  line-height: var(--gf-leading-card);
}

.tut-performance-drawer .metric-card-body .metric-val {
  font-size: var(--gf-text-page);
}

.tut-performance-drawer .drawer-chart-section {
  gap: 18px;
}

.tut-performance-drawer .chart-section-title,
.tut-performance-drawer .chart-section-stat {
  font-size: var(--gf-text-card);
}

.tut-performance-drawer .bar-chart-container {
  height: 230px;
  gap: 14px;
}

.tut-performance-drawer .bar-track {
  width: 14px;
}

.tut-performance-drawer .bar-day {
  font-size: var(--gf-text-caption);
}

.tut-performance-drawer .area-chart-container {
  height: 190px;
}

@media (max-width: 640px) {
  .tut-drawer-backdrop {
    padding: 12px;
  }

  .tut-performance-drawer {
    width: min(620px, calc(100vw - 24px));
    height: min(95vh, 1120px);
    max-height: calc(100vh - 24px);
    border-radius: 24px;
  }

  .tut-performance-drawer .drawer-header {
    padding: 18px 18px 14px;
  }

  .tut-performance-drawer .drawer-body {
    gap: 18px;
    padding: 0 18px 22px;
  }

  .tut-performance-drawer .drawer-tut-banner {
    gap: 12px;
    min-height: 108px;
    padding: 10px;
  }

  .tut-performance-drawer .drawer-tut-thumb {
    width: 38%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .tut-performance-drawer .drawer-metric-card {
    min-height: 146px;
    padding: 18px 16px;
  }

  .tut-performance-drawer .metric-card-body .metric-val {
    font-size: var(--gf-text-page);
  }

  .tut-performance-drawer .bar-chart-container {
    height: 200px;
  }

  .tut-performance-drawer .area-chart-container {
    height: 160px;
  }
}

@media (max-width: 420px) {
  .tut-performance-drawer .drawer-metrics-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tut-performance-drawer .drawer-metric-card {
    min-height: 120px;
    gap: 14px;
  }

  .tut-performance-drawer .drawer-tut-meta {
    gap: 6px 10px;
    font-size: var(--gf-text-caption);
  }
}

/* ===================================================
   Unregistered Gated Cards & Blurred Sections
   =================================================== */

.tutor-card-gated-wrapper {
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 388px;
  height: 130px;
  border: 1px solid #d0d5dd;
  border-radius: 24px;
  background: #ffffff;
  overflow: hidden;
}

.tutor-card-gated-wrapper .tutor-card--blurred {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  filter: blur(6px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  cursor: default;
}

.tutor-gated-cta-card {
  position: absolute;
  z-index: 10;
  background: #ffffff;
  border: 1px solid var(--meet-border-subtle, #eaecf0);
  border-radius: 16px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: var(
    --meet-shadow-elevated,
    0 12px 32px rgba(16, 24, 40, 0.12),
    0 2px 6px rgba(16, 24, 40, 0.04)
  );
  width: 86%;
  max-width: 290px;
  box-sizing: border-box;
}

.tut-card-gated-wrapper {
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 748px;
  max-width: 100%;
  min-height: 457px;
  border: 1px solid var(--meet-border, #e5e7eb);
  border-radius: var(--meet-radius-card, 16px);
  background: #ffffff;
  overflow: hidden;
}

.tut-card-gated-inner {
  display: flex;
  gap: 20px;
  width: 100%;
  height: 100%;
  filter: blur(8px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  padding: 16px;
  box-sizing: border-box;
}

.tut-gated-cta-card {
  position: absolute;
  z-index: 10;
  background: #ffffff;
  border: 1px solid var(--meet-border-subtle, #eaecf0);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(
    --meet-shadow-elevated,
    0 12px 32px rgba(16, 24, 40, 0.12),
    0 2px 6px rgba(16, 24, 40, 0.04)
  );
  width: 88%;
  max-width: 320px;
  box-sizing: border-box;
}

.gated-cta-title {
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  color: var(--meet-dark, #101828);
  margin: 0 0 12px 0;
  line-height: var(--gf-leading-caption);
}

.gated-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gated-signup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--meet-radius-pill, 24px);
  background: var(--meet-primary, #2966f4);
  color: #ffffff !important;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  font-family: var(--gf-font);
  text-decoration: none;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    transform 160ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 2px 8px rgba(41, 102, 244, 0.2);
}

.gated-signup-btn:hover {
  background: var(--meet-primary-hover, #2054cc);
  transform: translateY(-1px);
}

.gated-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--meet-border, #d0d5dd);
  background: #ffffff;
  text-decoration: none;
  transition:
    border-color 160ms cubic-bezier(0.2, 0, 0, 1),
    transform 160ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 160ms cubic-bezier(0.2, 0, 0, 1),
    background 160ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.gated-social-btn:hover {
  background: var(--meet-bg-pill, #f2f4f7);
  border-color: #98a2b3;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(16, 24, 40, 0.08);
}

/* Detail View Syllabus Gated */
.syllabus-gated-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 12px;
  min-height: 160px;
}

.syllabus-gated-inner {
  width: 100%;
  filter: blur(6px);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

.syllabus-gated-cta-card {
  position: absolute;
  z-index: 10;
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 16px 36px -4px rgba(16, 24, 40, 0.16);
  width: 86%;
  max-width: 360px;
  box-sizing: border-box;
}

/* Detail View Sidebar Gated Card */
.detail-sidebar-gated-card {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.06);
  width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
}

/* Video Preview Modal */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.video-modal-container {
  background: #101828;
  border-radius: 20px;
  width: 100%;
  max-width: 840px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #1d2939;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal-title {
  color: #ffffff;
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-modal-close {
  background: none;
  border: none;
  color: #98a2b3;
  font-size: var(--gf-text-card);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.video-modal-close:hover {
  color: #ffffff;
}

.video-modal-player-wrap {
  padding: 0;
  background: #000000;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Card menu stacking ─────────────────────────────────────────────────────────
   The card menu panel is position:fixed, but a hover-lifted card (transform: translateY)
   becomes its containing block and a stacking context, so the panel got stacked under the
   next card and clipped at the card edge. While a menu is open, drop the lift and raise
   the card above its siblings. */
.tut-card:has(.gf-menu--open),
.tut-card:has(.gf-menu--open):hover {
  transform: none;
  z-index: 60;
}

.my-learning-grid .tut-card:has(.gf-menu--open),
.my-learning-grid .tut-card:has(.gf-menu--open):hover,
.my-tutorials-grid .tut-card:has(.gf-menu--open),
.my-tutorials-grid .tut-card:has(.gf-menu--open):hover,
.saved-modal-grid .tut-card:has(.gf-menu--open),
.saved-modal-grid .tut-card:has(.gf-menu--open):hover {
  transform: none;
  z-index: 60;
}
.tutorials-wrapper .tutorial-catalog-search {
  width: min(340px, 28vw);
  min-width: 200px;
  flex: 1 1 240px;
}

/* The discover hub stacks its children in a flex column, so the flex-basis above became a
   240px-tall search box and left a blank band under the field. Keep its own height there. */
.discover-hub-content > .tutorial-catalog-search {
  flex: 0 0 auto;
  align-self: flex-start;
}

.tutorials-wrapper .tutorial-catalog-paging {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 24px auto 32px;
  color: #b42318;
  font-size: var(--gf-text-body);
}

@media (max-width: 720px) {
  .tutorials-wrapper .topnav {
    flex-wrap: wrap;
  }

  .tutorials-wrapper .tutorial-catalog-search {
    order: 3;
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }
}
