/**
 * Public marketplace pages — aligned with SkillGro theme (main.css)
 * Primary orange #E85A1C and secondary blue #1E56C8 from the XLClass logo
 */
:root {
  --os-market-brand: #E85A1C;
  --os-market-brand-dark: #C44814;
  --os-market-gold: #1E56C8;
  --os-market-surface: #FFF6F1;
  --os-market-card: #ffffff;
  --os-market-border: #e5e7eb;
  --os-market-muted: #64748b;
}

/* Category chips: base layout (required — modifiers only add browse-specific colors) */
.os-category-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.os-category-chips a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.05rem;
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  line-height: 1.2;
}
.os-category-chips a:hover {
  border-color: var(--os-market-brand);
  color: var(--os-market-brand);
  background: #ecfdf5;
}
.os-category-chips a.active {
  background: var(--os-market-brand);
  border-color: var(--os-market-brand);
  color: #fff !important;
}

/* === Browse page (classes.php) === */
.os-browse-page {
  background: var(--os-market-surface);
}
.os-browse-hero {
  background: var(--os-market-surface);
  padding: 2.75rem 0 2rem;
  border-bottom: 1px solid #d1e3e4;
}
.os-browse-hero__title {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 0.65rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.os-browse-hero__lead {
  text-align: center;
  color: var(--os-market-muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  line-height: 1.55;
}
.os-browse-search-form {
  max-width: 720px;
  margin: 0 auto 1.75rem;
}
.os-browse-search {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(39, 134, 136, 0.1);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.os-browse-search:focus-within {
  border-color: rgba(39, 134, 136, 0.45);
  box-shadow: 0 8px 32px rgba(39, 134, 136, 0.15);
}
.os-browse-search__icon {
  display: flex;
  align-items: center;
  padding-left: 1.15rem;
  color: #94a3b8;
  flex-shrink: 0;
}
.os-browse-search__input {
  flex: 1;
  border: none;
  padding: 0.95rem 0.75rem;
  font-size: 1rem;
  min-width: 0;
  outline: none;
  background: transparent;
}
.os-browse-search__btn {
  border: none;
  background: var(--os-market-brand);
  color: #fff !important;
  font-weight: 700;
  padding: 0 1.75rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.os-browse-search__btn:hover {
  background: var(--os-market-brand-dark);
}
.os-category-chips--browse {
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.os-browse-main {
  padding-top: 2rem !important;
  padding-bottom: 4rem !important;
}
.os-browse-filters {
  background: #fff;
  border: 1px solid var(--os-market-border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.os-browse-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
}
.os-browse-filters__group {
  flex: 1 1 120px;
  min-width: 0;
}
.os-browse-filters__group--sort {
  flex: 1.2 1 160px;
}
.os-browse-filters__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}
.os-browse-filters__select,
.os-browse-filters__input {
  border-radius: 10px !important;
  border-color: #e2e8f0 !important;
  font-size: 0.9rem;
  display: block;
  width: 100%;
  min-height: 2.75rem;
  background-color: #fff;
}
.os-browse-filters .form-select {
  cursor: pointer;
}
.os-browse-page .btn.os-browse-filters__apply {
  min-height: 2.75rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}
.os-browse-filters__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-left: auto;
}
.os-browse-filters__apply {
  background: var(--os-market-brand) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px !important;
  padding: 0.5rem 1.25rem !important;
}
.os-browse-filters__apply:hover {
  background: var(--os-market-brand-dark) !important;
  color: #fff !important;
}
.os-browse-filters__reset {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--os-market-brand);
  text-decoration: none;
}
.os-browse-filters__reset:hover {
  text-decoration: underline;
}
.os-browse-results-head {
  margin-bottom: 1.25rem;
}
.os-browse-results-count {
  color: var(--os-market-muted);
  margin: 0;
  font-size: 0.95rem;
}
.os-browse-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
}
.os-browse-empty__btn {
  margin-top: 1rem;
  background: var(--os-market-brand);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  border: none;
  text-decoration: none;
  display: inline-block;
}
.os-browse-empty__btn:hover {
  background: var(--os-market-brand-dark);
  color: #fff !important;
}

/* === Home: featured class grid === */
.os-home-classes {
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.os-home-classes__head {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}
.os-home-classes__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--os-market-brand);
  margin-bottom: 0.5rem;
}
.os-home-classes__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.os-home-classes__sub {
  color: var(--os-market-muted);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.55;
}
.os-home-classes__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.25rem;
  background: var(--os-market-brand);
  color: #fff !important;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 8px 28px rgba(39, 134, 136, 0.22);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.os-home-classes__btn:hover {
  background: var(--os-market-brand-dark);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(39, 134, 136, 0.28);
}

/* === Class card v2 (Outschool-style) === */
.os-class-card-v2 {
  background: var(--os-market-card);
  border-radius: 14px;
  border: 1px solid var(--os-market-border);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.os-class-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgba(39, 134, 136, 0.28);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}
.os-class-card-v2__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}
.os-class-card-v2__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.os-class-card-v2:hover .os-class-card-v2__media img {
  transform: scale(1.04);
}
.os-class-card-v2__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  pointer-events: none;
}
.os-class-card-v2__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.os-class-card-v2__body {
  padding: 1rem 1.1rem 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.os-class-card-v2__title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.os-class-card-v2__title a {
  color: inherit;
  text-decoration: none;
}
.os-class-card-v2__title a:hover {
  color: var(--os-market-brand);
}
.os-class-card-v2__type {
  font-size: 0.78rem;
  color: var(--os-market-muted);
  margin: 0;
}
.os-class-card-v2__type-label {
  font-weight: 600;
  color: #94a3b8;
  margin-right: 0.35rem;
}
.os-class-card-v2__teacher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}
.os-class-card-v2__teacher-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.os-class-card-v2__teacher-name {
  font-size: 0.85rem;
  color: #334155;
  font-weight: 500;
}
.os-class-card-v2__rating-row {
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.os-class-card-v2__stars {
  color: #eab308;
  font-size: 0.95rem;
  line-height: 1;
}
.os-class-card-v2__rating-num {
  font-weight: 700;
  color: #0f172a;
}
.os-class-card-v2__reviews {
  color: #94a3b8;
}
.os-class-card-v2__new-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--os-market-brand);
  background: rgba(39, 134, 136, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}
.os-class-card-v2__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.os-class-card-v2__badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: #C44814;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  line-height: 1.2;
  max-width: 100%;
}
.os-class-card-v2__excerpt {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0.25rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.os-class-card-v2__stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 0;
  margin-top: auto;
  border-top: 1px solid #eef0f4;
  background: #f8fafc;
}
.os-class-card-v2__stat {
  padding: 0.65rem 0.5rem;
  text-align: center;
  border-right: 1px solid #eef0f4;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.os-class-card-v2__stat:last-child {
  border-right: none;
}
.os-class-card-v2__stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}
.os-class-card-v2__stat-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  word-break: break-word;
}
.os-class-card-v2__stat--price {
  justify-content: center;
}
.os-class-card-v2__stat--price .os-class-card-v2__stat-label {
  margin-bottom: 0.1rem;
}
.os-class-card-v2__price-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}
.os-class-card-v2__coin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--os-market-gold);
  flex-shrink: 0;
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.12);
}
.os-class-card-v2__stat-value--money {
  font-weight: 800;
  color: #0f172a;
}
.os-class-card-v2__per {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 0.1rem;
}
.os-class-card-v2__next {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #64748b;
  padding: 0.5rem 1rem;
  border-top: 1px solid #eef0f4;
  background: #fff;
}
.os-class-card-v2__next svg {
  flex-shrink: 0;
  opacity: 0.7;
}

@media (max-width: 575.98px) {
  .os-class-card-v2__stats {
    grid-template-columns: 1fr;
  }
  .os-class-card-v2__stat {
    border-right: none;
    border-bottom: 1px solid #eef0f4;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 0.55rem 0.85rem;
  }
  .os-class-card-v2__stat:last-child {
    border-bottom: none;
  }
  .os-browse-filters__actions {
    width: 100%;
    margin-left: 0;
  }
}

.os-stars { color: #fbbf24; }
.bg-teal { background-color: #E85A1C !important; }

/* === Class Detail === */
.os-detail-hero {
  background: #f8fafc;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.os-detail-hero .breadcrumb { background: transparent; padding: 0; margin: 0; --bs-breadcrumb-divider: "/"; }
.os-detail-hero .breadcrumb-item + .breadcrumb-item::before {
  content: "/" !important;
  float: left;
  padding-right: var(--bs-breadcrumb-item-padding-x);
  color: var(--bs-breadcrumb-divider-color);
}
.os-detail-hero .breadcrumb-item { color: #64748b; }
.os-detail-hero .breadcrumb-item.active { color: #0f172a; font-weight: 500; }
.os-detail-hero .breadcrumb a { color: #E85A1C; text-decoration: none; }
.os-detail-hero .breadcrumb a:hover { text-decoration: underline; }
.os-detail-thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.os-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.os-detail-sidebar {
  position: sticky;
  top: 100px;
}
.os-detail-sidebar .card {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.os-detail-enroll-btn {
  background: #E85A1C;
  border: none;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  width: 100%;
}
.os-detail-enroll-btn:hover { opacity: 0.95; color: #fff; }
.os-tutor-card-mini {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}
.os-tutor-card-mini img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.os-tab-content h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }

.os-class-section-nav {
  position: sticky;
  top: 76px;
  z-index: 1020;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  padding: 0.65rem 0;
  margin: 0 -0.25rem 1rem;
  background: linear-gradient(to bottom, #fff 70%, rgba(255,255,255,0.92));
  border-bottom: 1px solid #e5e7eb;
}
.os-class-section-nav__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.os-class-section-nav__link:hover {
  color: #E85A1C;
  background: #f0fdfa;
}
.os-class-section-nav__link.is-active {
  color: #C44814;
  background: #ecfdf5;
  border-color: #99f6e4;
}
.os-detail-section {
  scroll-margin-top: 7rem;
}
.os-detail-overview-body {
  line-height: 1.65;
  color: #334155;
}
.os-detail-overview-body p:last-child {
  margin-bottom: 0;
}
.os-detail-overview-body p {
  margin-bottom: 0.75rem;
}
.os-detail-overview-excerpt {
  color: #334155;
  line-height: 1.6;
}
.os-detail-read-full-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff !important;
  background: #E85A1C;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.os-detail-read-full-btn:hover {
  background: #C44814;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}
.os-detail-read-full-btn:focus-visible {
  outline: 2px solid #E85A1C;
  outline-offset: 2px;
}
.os-detail-facts .text-uppercase {
  letter-spacing: 0.04em;
}
.os-detail-facts-list .os-detail-facts__icon {
  flex-shrink: 0;
  color: var(--os-market-brand);
  margin-top: 0.1rem;
}
.os-detail-facts__row:last-child {
  border-bottom: none !important;
}
.os-detail-sidebar-facts li {
  margin-bottom: 0.35rem;
}
.os-detail-sidebar-facts li:last-child {
  margin-bottom: 0;
}
.os-detail-glance__item {
  border: 1px solid var(--os-market-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.os-detail-glance__item:hover {
  border-color: rgba(39, 134, 136, 0.35);
  box-shadow: 0 4px 16px rgba(39, 134, 136, 0.08);
}
.os-detail-glance__icon {
  color: var(--os-market-brand);
  margin-bottom: 0.5rem;
}
.os-detail-glance__more {
  border-radius: 10px;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600;
  padding: 0.55rem 1rem;
  background: #f8fafc !important;
}
.os-detail-glance__more:hover {
  background: #ecfdf5 !important;
  border-color: var(--os-market-brand) !important;
  color: #C44814 !important;
}
.os-learning-overview-dl dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 700;
}
.os-learning-overview-dl dd {
  margin-bottom: 0.75rem;
}
.os-other-detail-card {
  display: flex;
  gap: 1rem;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: #fff;
}
.os-other-detail-card__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fef3c7;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.os-other-detail-card__body {
  min-width: 0;
}
.os-other-detail-card__body p {
  color: #111827;
}
@media (max-width: 575.98px) {
  .os-learning-overview-dl dt {
    margin-top: 0.5rem;
  }
  .os-other-detail-card {
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
  }
}
.os-schedule-card {
  border-radius: 10px;
}
.os-schedule-tz-select {
  max-width: min(100%, 22rem);
  min-width: 12rem;
}
.os-schedule-tz-bar label {
  white-space: nowrap;
}
@media (max-width: 991.98px) {
  .os-class-section-nav {
    top: 64px;
  }
}

/* === Tutors Browse === */
.os-tutors-page {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}
.os-tutor-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1.25rem 1.35rem;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.os-tutor-card:hover {
  box-shadow: 0 12px 40px rgba(14, 16, 24, 0.08);
  border-color: #E85A1C;
  transform: translateY(-4px);
}
.os-tutor-card__thumb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 0.85rem;
  overflow: hidden;
}
.os-tutor-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.os-tutor-card__name { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.15rem; }
.os-tutor-card__name a { color: inherit; text-decoration: none; }
.os-tutor-card__name a:hover { color: #E85A1C; }
.os-tutor-card__focus {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 0.45rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.os-tutor-card__stats { font-size: 0.85rem; color: #6b7280; margin-bottom: 0.75rem; }
.os-tutor-card__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 0.75rem;
}
.os-tutor-card__stars {
  color: #eab308;
  font-size: 1rem;
  line-height: 1;
}
.os-tutor-card__rating strong { color: #0f172a; font-weight: 700; }
.os-tutor-card__reviews { color: #94a3b8; }
.os-tutor-card__new {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #E85A1C;
  background: rgba(232, 90, 28, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}
.os-tutor-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0;
  list-style: none;
  border-top: 1px solid #E4DFD6;
  border-bottom: 1px solid #E4DFD6;
}
.os-tutor-card__metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0 0.35rem;
}
.os-tutor-card__metrics li + li {
  border-left: 1px solid #E4DFD6;
}
.os-tutor-card__metrics strong {
  font-size: 1rem;
  font-weight: 700;
  color: #14141A;
  line-height: 1.2;
}
.os-tutor-card__metrics span {
  font-size: 0.7rem;
  color: #5C6170;
  line-height: 1.2;
}
.os-tutor-card__bio {
  font-size: 0.9rem;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1 1 auto;
}
.os-tutors-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.os-tutors-toolbar__count {
  color: #5C6170;
  font-size: 0.95rem;
}
.os-tutors-pager {
  margin-top: 2.25rem;
}
.os-tutors-page .xl-page-link:hover {
  border-color: #E85A1C;
  color: #E85A1C;
}
.os-tutors-page .xl-page-link.is-active {
  background: #E85A1C;
  border-color: #E85A1C;
  color: #fff;
}

/* === Tutor Profile === */
.os-tutor-hero {
  background: #f8fafc;
  color: #1e293b;
  padding: 2.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.os-tutor-hero__wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.os-tutor-hero__thumb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid #e2e8f0;
}
.os-tutor-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.os-tutor-hero__name { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; color: #0f172a; }
.os-tutor-hero__tagline { color: #64748b; font-size: 1rem; }
.os-tutor-hero__stats { display: flex; flex-wrap: wrap; gap: 0.65rem 1.35rem; margin-top: 0.75rem; font-size: 0.95rem; color: #475569; }
.os-tutor-reviews { display: flex; flex-direction: column; gap: 1.15rem; }
.os-tutor-review + .os-tutor-review {
  padding-top: 1.15rem;
  border-top: 1px solid #E4DFD6;
}
.os-tutor-review__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}
.os-tutor-review__title { font-weight: 600; color: #14141A; }
.os-section-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}
.os-section-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
@media (max-width: 767.98px) {
  .os-tutors-page {
    padding-top: 0.75rem;
    padding-bottom: 1.75rem;
  }
  .os-tutor-hero__wrap { flex-direction: column; text-align: center; }
}

/* === Homepage Categories Section (icon tiles) === */
.os-categories {
  position: relative;
  background: #f8fafc;
  padding: 4rem 0 5rem;
  overflow: hidden;
}
.os-categories .container {
  position: relative;
  z-index: 1;
}
.os-categories__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}
.os-categories__title-wrap .sub {
  font-size: 0.8rem;
  color: #E85A1C;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.os-categories__title-wrap h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0.35rem 0 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.os-categories__lead {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  font-size: 1rem;
  color: #64748b;
  line-height: 1.55;
}
.os-categories__view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  background: #E85A1C;
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.os-categories__view-all:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.4);
}
.os-categories__grid {
  --os-cat-gap: 1.25rem;
}

/* Base tile */
.os-cat-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 220px;
  padding: 1.35rem 1.35rem 1.15rem;
  position: relative;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 32px -12px rgba(15, 23, 42, 0.12);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
  isolation: isolate;
}
.os-cat-tile__blob {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  right: -40px;
  top: -50px;
  background: var(--cat-blob, rgba(13, 148, 136, 0.12));
  z-index: 0;
  pointer-events: none;
}
.os-cat-tile:hover {
  transform: translateY(-8px);
  border-color: var(--cat-ring, rgba(13, 148, 136, 0.45));
  box-shadow: 0 20px 48px -16px rgba(15, 23, 42, 0.18), 0 0 0 1px var(--cat-ring-soft, rgba(13, 148, 136, 0.12));
}
.os-cat-tile__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.os-cat-tile__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  background: var(--cat-icon-bg, #E85A1C);
  box-shadow: 0 8px 20px var(--cat-icon-shadow, rgba(13, 148, 136, 0.35));
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.35s;
}
.os-cat-tile:hover .os-cat-tile__icon {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 12px 28px var(--cat-icon-shadow, rgba(13, 148, 136, 0.45));
}
.os-cat-tile__badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--cat-badge-bg, rgba(13, 148, 136, 0.12));
  color: var(--cat-badge-fg, #C44814);
  white-space: nowrap;
}
.os-cat-tile__name {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.os-cat-tile__desc {
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.os-cat-tile__cta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cat-cta, #E85A1C);
  letter-spacing: 0.01em;
}
.os-cat-tile__cta-arrow {
  display: inline-flex;
  transition: transform 0.25s ease;
}
.os-cat-tile:hover .os-cat-tile__cta-arrow {
  transform: translateX(5px);
}

/* Theme: STEM */
.os-cat-tile--stem {
  --cat-blob: rgba(14, 165, 233, 0.14);
  --cat-icon-bg: #0284c7;
  --cat-icon-shadow: rgba(37, 99, 235, 0.4);
  --cat-ring: rgba(14, 165, 233, 0.5);
  --cat-ring-soft: rgba(14, 165, 233, 0.15);
  --cat-badge-bg: rgba(14, 165, 233, 0.12);
  --cat-badge-fg: #0369a1;
  --cat-cta: #0284c7;
}
/* Arts & Design (rose — distinct from brand teal) */
.os-cat-tile--arts-design {
  --cat-blob: rgba(244, 63, 94, 0.12);
  --cat-icon-bg: #f43f5e;
  --cat-icon-shadow: rgba(244, 63, 94, 0.38);
  --cat-ring: rgba(244, 63, 94, 0.45);
  --cat-ring-soft: rgba(244, 63, 94, 0.14);
  --cat-badge-bg: rgba(244, 63, 94, 0.12);
  --cat-badge-fg: #be123c;
  --cat-cta: #e11d48;
}
/* Languages */
.os-cat-tile--languages {
  --cat-blob: rgba(5, 150, 105, 0.12);
  --cat-icon-bg: #059669;
  --cat-icon-shadow: rgba(5, 150, 105, 0.38);
  --cat-ring: rgba(16, 185, 129, 0.45);
  --cat-ring-soft: rgba(16, 185, 129, 0.14);
  --cat-badge-bg: rgba(16, 185, 129, 0.12);
  --cat-badge-fg: #047857;
  --cat-cta: #059669;
}
/* Coding */
.os-cat-tile--coding {
  --cat-blob: rgba(37, 99, 235, 0.12);
  --cat-icon-bg: #2563eb;
  --cat-icon-shadow: rgba(37, 99, 235, 0.4);
  --cat-ring: rgba(59, 130, 246, 0.5);
  --cat-ring-soft: rgba(59, 130, 246, 0.15);
  --cat-badge-bg: rgba(59, 130, 246, 0.14);
  --cat-badge-fg: #1d4ed8;
  --cat-cta: #2563eb;
}
/* Life Skills */
.os-cat-tile--life-skills {
  --cat-blob: rgba(234, 88, 12, 0.12);
  --cat-icon-bg: #ea580c;
  --cat-icon-shadow: rgba(234, 88, 12, 0.38);
  --cat-ring: rgba(251, 191, 36, 0.5);
  --cat-ring-soft: rgba(251, 191, 36, 0.16);
  --cat-badge-bg: rgba(251, 191, 36, 0.18);
  --cat-badge-fg: #c2410c;
  --cat-cta: #ea580c;
}
/* Test Prep */
.os-cat-tile--test-prep {
  --cat-blob: rgba(225, 29, 72, 0.1);
  --cat-icon-bg: #e11d48;
  --cat-icon-shadow: rgba(225, 29, 72, 0.38);
  --cat-ring: rgba(244, 63, 94, 0.45);
  --cat-ring-soft: rgba(244, 63, 94, 0.14);
  --cat-badge-bg: rgba(244, 63, 94, 0.12);
  --cat-badge-fg: #be123c;
  --cat-cta: #e11d48;
}
/* Other + fallback */
.os-cat-tile--other {
  --cat-blob: rgba(100, 116, 139, 0.12);
  --cat-icon-bg: #64748b;
  --cat-icon-shadow: rgba(71, 85, 105, 0.35);
  --cat-ring: rgba(100, 116, 139, 0.4);
  --cat-ring-soft: rgba(100, 116, 139, 0.12);
  --cat-badge-bg: rgba(100, 116, 139, 0.12);
  --cat-badge-fg: #334155;
  --cat-cta: #475569;
}

@media (max-width: 575.98px) {
  .os-cat-tile {
    min-height: 0;
    padding: 1.2rem 1.15rem 1rem;
  }
  .os-cat-tile__icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    border-radius: 14px;
  }
}

/* Home hero (index): three floating metric cards — same layout as Live Classes (.banner__courses) */
.banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric {
  border: none;
  box-shadow: -8px 8px 0 0 rgba(0, 0, 0, 0.16);
}
.banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--enrolled {
  background: var(--os-market-brand, #E85A1C);
  left: 8%;
  top: 19%;
  right: auto;
  bottom: auto;
}
.banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--tutors {
  background: var(--tg-theme-secondary, #1E56C8);
  right: 3%;
  top: 25%;
  left: auto;
  bottom: auto;
}
.banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--classes {
  background: #fff;
  border: 1px solid var(--os-market-border, #e5e7eb);
  box-shadow: -8px 8px 0 0 rgba(15, 23, 42, 0.1);
  /* inherits right/bottom from theme .banner__courses */
}
.banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric .icon i {
  line-height: 1;
}
.banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--enrolled .title span,
.banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--tutors .title span {
  color: rgba(255, 255, 255, 0.92);
}
.banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--classes .title,
.banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--classes .title span {
  color: var(--tg-heading-color, #0f172a);
}
.banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--classes .title span {
  color: var(--os-market-muted, #64748b);
  font-weight: 600;
}
.banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--classes .icon {
  background: var(--os-market-brand, #E85A1C);
  color: #fff;
}

@media (max-width: 1199.98px) {
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--enrolled {
    left: 0;
  }
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--tutors {
    right: 0;
  }
}

@media (max-width: 991.98px) {
  .banner-area.banner-bg-six .banner__images-six .main-img {
    display: inline-block !important;
  }
  .banner-area.banner-bg-six .banner__images-six {
    min-height: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 420px;
  }
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--enrolled {
    display: flex !important;
    position: absolute;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    top: 14% !important;
    max-width: min(188px, 48vw);
    padding: 10px 14px !important;
    z-index: 2;
    gap: 8px !important;
  }
}

@media (max-width: 767.98px) {
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric {
    display: flex !important;
  }
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--enrolled {
    left: 0 !important;
    right: auto !important;
    top: 12% !important;
    bottom: auto !important;
    max-width: min(175px, 46vw);
    padding: 10px 12px !important;
    z-index: 2;
    box-shadow: -6px 6px 0 0 rgba(0, 0, 0, 0.18) !important;
  }
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--tutors {
    display: flex !important;
    position: absolute;
    right: 0 !important;
    left: auto !important;
    top: 16% !important;
    bottom: auto !important;
    padding: 10px 12px !important;
    gap: 6px !important;
    z-index: 2;
    max-width: min(188px, 52vw);
    box-shadow: -6px 6px 0 0 rgba(0, 0, 0, 0.18) !important;
  }
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--classes {
    display: flex !important;
    position: absolute;
    right: 0 !important;
    left: auto !important;
    bottom: 12% !important;
    top: auto !important;
    padding: 10px 12px !important;
    gap: 6px !important;
    z-index: 2;
    max-width: min(175px, 48vw);
    box-shadow: -6px 6px 0 0 rgba(0, 0, 0, 0.15) !important;
  }
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric .icon {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
    font-size: 18px !important;
  }
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric .title {
    font-size: 15px !important;
    margin-bottom: 0 !important;
  }
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric .title span {
    font-size: 13px !important;
  }
}

@media (max-width: 575.98px) {
  .banner-area.banner-bg-six .banner__images-six {
    max-width: 320px;
  }
  .banner-area.banner-bg-six .banner__images-six .main-img {
    max-width: min(100%, 280px);
  }
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--enrolled {
    max-width: min(158px, 44vw);
    padding: 8px 10px !important;
    top: 10% !important;
  }
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--tutors {
    top: 12% !important;
    padding: 8px 10px !important;
    max-width: min(172px, 50vw);
  }
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric--classes {
    bottom: 8% !important;
    padding: 8px 10px !important;
    max-width: min(158px, 46vw);
  }
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric .title {
    font-size: 14px !important;
  }
  .banner-area.banner-bg-six .banner__images-six .banner__courses.banner__hero-metric .title span {
    font-size: 12px !important;
  }
}

/* === Homepage: Why choose (light section + value cards) === */
.os-why-choose {
  background: #ffffff;
  color: #0f172a;
  padding: 3.5rem 0 4.25rem;
}
.os-why-choose__intro-row {
  margin-bottom: 2.5rem;
}
.os-why-choose__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--os-market-brand);
  margin: 0 0 0.5rem;
}
.os-why-choose__headline {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}
.os-why-choose__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--os-market-muted);
  margin: 0;
  max-width: 38rem;
}
.os-why-choose__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.os-why-choose__stats li {
  background: var(--os-market-surface);
  border: 1px solid var(--os-market-border);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: #334155;
}
.os-why-choose__stats strong {
  font-weight: 800;
  color: #0f172a;
}
.os-why-choose__intro-row .col-12 {
  text-align: left;
}
.os-why-choose__cards-row {
  margin-bottom: 0;
}
.os-why-choose__card {
  background: var(--os-market-card);
  border-radius: 18px;
  padding: 1.65rem 1.5rem 1.5rem;
  height: 100%;
  color: #0f172a;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--os-market-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.os-why-choose__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}
.os-why-choose__card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 1.1rem;
}
.os-why-choose__card-icon--teal {
  background: #E85A1C;
}
.os-why-choose__card-icon--rose {
  background: #db2777;
}
.os-why-choose__card-icon--amber {
  background: #ea580c;
}
.os-why-choose__card-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.55rem;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.os-why-choose__card-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}
@media (max-width: 991.98px) {
  .os-why-choose {
    padding: 3rem 0 3.5rem;
  }
}
@media (max-width: 575.98px) {
  .os-why-choose__card {
    padding: 1.35rem 1.25rem 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .os-why-choose__card {
    transition: none;
  }
  .os-why-choose__card:hover {
    transform: none;
  }
}
