/* SkillCedar Marketplace — uses the child theme's --ot-* tokens, with fallbacks. */
.ot-ui {
  --w9: var(--ot-wine-900, #3d1119); --w7: var(--ot-wine-700, #7a1f2e); --w8: var(--ot-wine-800, #561824);
  --w1: var(--ot-wine-100, #f3e4e7); --w0: var(--ot-wine-50, #f4ecee);
  --g5: var(--ot-gold-500, #e0b468); --g1: var(--ot-gold-100, #f7ebd2);
  --ink: var(--ot-ink-900, #1f1416); --ink7: var(--ot-ink-700, #4a3c3f); --ink5: var(--ot-ink-500, #7a6a6d);
  --bd: var(--ot-border, #eadfe1); --r: var(--ot-radius, 14px);
  max-width: 1200px; margin: 0 auto; padding: 32px 24px 56px; color: var(--ink); font-size: 15px; line-height: 1.55;
}
.ot-ui *, .ot-ui *::before, .ot-ui *::after { box-sizing: border-box; }
.ot-ui h2 { font-family: var(--ot-serif, Georgia, serif); font-size: 1.5rem; font-weight: 600; margin: 32px 0 14px; }
.ot-ui h3 { font-size: 1.05rem; font-weight: 600; margin: 28px 0 12px; }
.ot-ui p { margin: 0 0 .6em; }
.ot-muted { color: var(--ink5, #7a6a6d); }
.ot-small { font-size: .82rem; }
.ot-center { text-align: center; }
.ot-inline { display: inline; margin: 0; }
.ot-head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ot-head-row h2 { margin: 0; }

/* Buttons (mirror the theme's) */
.ot-ui .ot-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--w7); border: 1px solid var(--w7); color: #fff; border-radius: 10px; font-weight: 600; font-size: .9rem; padding: .7rem 1.15rem; text-decoration: none; cursor: pointer; line-height: 1.2; }
.ot-ui .ot-btn:hover { background: var(--w8); border-color: var(--w8); color: #fff; }
.ot-ui .ot-btn:disabled { opacity: .5; cursor: not-allowed; }
.ot-ui .ot-btn--gold { background: var(--g5); border-color: var(--g5); color: #2a0a11; }
.ot-ui .ot-btn--gold:hover { background: #d4a24f; border-color: #d4a24f; color: #2a0a11; }
.ot-ui .ot-btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.ot-ui .ot-btn--outline:hover { background: #fff; color: var(--w7); border-color: var(--w7); }
.ot-ui .ot-btn--sm { padding: .45rem .8rem; font-size: .8rem; border-radius: 8px; }
.ot-ui .ot-btn--block { display: flex; width: 100%; }

/* Notices, chips, badges */
.ot-notice { border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; background: #f3f0f0; border: 1px solid #e5dcdd; }
.ot-notice--success { background: #ecf7ef; border-color: #bfe3c9; }
.ot-notice--error { background: #fcebec; border-color: #f2c2c6; }
.ot-notice--info { background: var(--g1, #f7ebd2); border-color: #ecd9ae; }
.ot-chip { display: inline-flex; align-items: center; border-radius: 999px; background: var(--w1); color: var(--w7); padding: .15rem .6rem; font-size: .72rem; font-weight: 600; }
.ot-chip--plain { background: #fff; border: 1px solid var(--bd); color: var(--ink7); font-weight: 500; }
.ot-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ot-badge { display: inline-block; border-radius: 999px; padding: .1rem .55rem; font-size: .72rem; font-weight: 600; vertical-align: middle; }
.ot-badge--ok { background: #e6f4ea; color: #1e6b37; }
.ot-badge--warn { background: var(--g1); color: #7a5410; }
.ot-badge--muted { background: #eee8e9; color: var(--ink7); }
.ot-avatar { display: block; flex: 0 0 auto; border-radius: 14px; object-fit: cover; background: var(--w1); }
.ot-avatar--initials { display: grid; place-items: center; color: var(--w7); font-weight: 700; font-size: 1.1rem; }

/* Forms */
.ot-form label { display: block; font-size: .85rem; font-weight: 600; margin: 14px 0 6px; }
.ot-form input[type=text], .ot-form input:not([type]), .ot-form input[type=email], .ot-form input[type=password], .ot-form input[type=number], .ot-form input[type=search], .ot-form select, .ot-form textarea,
.ot-filters input, .ot-filters select, .ot-auth input[type=text], .ot-auth input[type=password] {
  width: 100%; border: 1px solid var(--bd); border-radius: 10px; background: #fff; padding: .65rem .8rem; font: inherit; font-size: .9rem; color: var(--ink);
}
.ot-form button[type=submit], .ot-form .ot-btn--block { margin-top: 18px; }
.ot-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ot-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.ot-checks label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.ot-card { background: #fff; border: 1px solid var(--bd); border-radius: var(--r); padding: 24px; }
.ot-apply { max-width: 760px; margin: 0 auto; }
.ot-apply h2 { margin-top: 0; }
.ot-auth { max-width: 460px; }
.ot-auth #loginform p { margin: 0 0 12px; }
.ot-auth #loginform label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
.ot-auth #loginform .login-remember label { display: inline; font-weight: 500; }
.ot-auth #wp-submit { background: var(--w7); color: #fff; border: 0; border-radius: 10px; padding: .7rem 1.4rem; font-weight: 600; cursor: pointer; width: 100%; }

/* Browse */
.ot-filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; margin-bottom: 16px; }
.ot-tutor-grid { display: grid; gap: 14px; }
.ot-tutor-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--bd); border-radius: var(--r); padding: 18px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ot-tutor-card:hover { border-color: var(--w7); box-shadow: 0 6px 18px rgba(61,17,25,.08); color: var(--ink); }
.ot-tutor-card__name { font-family: var(--ot-serif, Georgia, serif); font-size: 1.2rem; font-weight: 600; margin: 0 0 2px !important; }
.ot-tutor-card__headline { margin: 6px 0 8px !important; color: var(--ink7); }
.ot-tutor-card__price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ot-tutor-card__price strong { font-size: 1.3rem; }
.ot-tutor-card__price > span:not(.ot-btn) { font-size: .78rem; color: var(--ink5); margin-bottom: 10px; }

/* Profile + booking */
.ot-profile { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding-top: 8px; }
.ot-profile__head { display: flex; gap: 20px; align-items: center; }
.ot-profile__headline { font-size: 1.1rem; font-weight: 600; margin: 0 0 4px !important; }
.ot-profile__side { position: sticky; top: 24px; }
.ot-book { background: #fff; border: 1px solid var(--bd); border-radius: var(--r); padding: 22px; box-shadow: 0 8px 24px rgba(61,17,25,.06); }
.ot-book__price { font-family: var(--ot-serif, Georgia, serif); font-size: 1.8rem; font-weight: 600; margin: 0 0 12px !important; }
.ot-book__price span { font-family: var(--ot-sans, sans-serif); font-size: .85rem; color: var(--ink5); font-weight: 400; }
.ot-book__types { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ot-radio-card { margin: 0 !important; cursor: pointer; }
.ot-radio-card input { position: absolute; opacity: 0; }
.ot-radio-card span { display: block; border: 1px solid var(--bd); border-radius: 10px; padding: 10px 12px; }
.ot-radio-card strong { display: block; font-size: .88rem; }
.ot-radio-card em { font-style: normal; font-size: .78rem; color: var(--ink5); }
.ot-radio-card input:checked + span { border-color: var(--w7); background: var(--w0); box-shadow: inset 0 0 0 1px var(--w7); }
.ot-radio-card input:focus-visible + span { outline: 2px solid var(--w7); outline-offset: 2px; }
.ot-times { max-height: 300px; overflow: auto; border: 1px solid var(--bd); border-radius: 10px; padding: 10px; }
.ot-times__day + .ot-times__day { margin-top: 10px; }
.ot-times__day p { font-size: .78rem; font-weight: 600; color: var(--ink7); margin: 0 0 6px !important; }
.ot-times__day div { display: flex; flex-wrap: wrap; gap: 6px; }
.ot-time { border: 1px solid var(--bd); background: #fff; color: var(--ink); border-radius: 8px; padding: 5px 10px; font-size: .8rem; cursor: pointer; }
.ot-time:hover { border-color: var(--w7); }
.ot-time.is-on { background: var(--w7); border-color: var(--w7); color: #fff; font-weight: 700; }
.ot-reviews { display: grid; gap: 12px; }
.ot-review { border-bottom: 1px solid var(--bd); padding-bottom: 10px; }
.ot-stars { color: #c9922e; letter-spacing: 1px; }

/* Lessons lists, dashboard */
.ot-lessons { display: grid; gap: 10px; }
.ot-lesson { display: grid; grid-template-columns: 210px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--bd); border-radius: 12px; padding: 14px 16px; }
.ot-lesson__when { font-weight: 600; font-size: .9rem; }
.ot-lesson__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.ot-review-form summary { list-style: none; }
.ot-review-form[open] { flex-basis: 100%; }
.ot-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--bd); margin: 8px 0 20px; flex-wrap: wrap; }
.ot-tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink7); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ot-tabs a.is-on, .ot-tabs a:hover { color: var(--w7); border-bottom-color: var(--w7); }
.ot-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.ot-stat { background: #fff; border: 1px solid var(--bd); border-radius: 12px; padding: 14px 16px; font-size: .82rem; color: var(--ink5); }
.ot-stat span { display: block; font-family: var(--ot-serif, Georgia, serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.ot-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--bd); border-radius: 12px; overflow: hidden; font-size: .88rem; }
.ot-table th, .ot-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bd); }
.ot-table th { background: var(--w0); font-weight: 600; }
.ot-profile-photo { display: flex; gap: 18px; align-items: center; }
.ot-profile-photo label { margin-top: 0; }

/* Availability grid */
.ot-avail { overflow-x: auto; margin: 10px 0; }
.ot-avail table { border-collapse: separate; border-spacing: 3px; font-size: .75rem; }
.ot-avail th { font-weight: 600; color: var(--ink5, #7a6a6d); padding: 2px 6px; text-align: center; }
.ot-avail__cell { display: block; margin: 0 !important; cursor: pointer; }
.ot-avail__cell input { position: absolute; opacity: 0; }
.ot-avail__cell span { display: block; width: 44px; height: 24px; border-radius: 6px; background: #f1ecec; border: 1px solid #e3dadb; }
.ot-avail__cell input:checked + span { background: var(--ot-wine-700, #7a1f2e); border-color: var(--ot-wine-700, #7a1f2e); }
.ot-avail__cell input:focus-visible + span { outline: 2px solid var(--ot-wine-700, #7a1f2e); }

/* Classroom */
.ot-classroom { max-width: 1440px; padding-top: 16px; }
.ot-classroom__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ot-classroom__layout { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ot-classroom__layout button { border: 1px solid var(--bd); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: .8rem; cursor: pointer; color: var(--ink); }
.ot-classroom__layout button.is-on { background: var(--w9); border-color: var(--w9); color: #fff; }
.ot-classroom__grid { display: grid; grid-template-columns: minmax(300px, 2fr) 3fr; gap: 14px; }
.ot-classroom__grid[data-layout="board"] { grid-template-columns: 1fr; }
.ot-classroom__grid[data-layout="board"] .ot-video { display: none; }
.ot-classroom__grid[data-layout="video"] { grid-template-columns: 1fr; }
.ot-classroom__grid[data-layout="video"] .ot-board { display: none; }
.ot-video { background: var(--w9); border-radius: var(--r); overflow: hidden; min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
.ot-video .ot-notice { margin: 16px; }
.ot-video__frame { width: 100%; height: 100%; min-height: 560px; border: 0; display: block; }
.ot-board { background: #fff; border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.ot-board__tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--bd); background: var(--w0); }
.ot-board__tools button, .ot-board__tools select { border: 1px solid var(--bd); background: #fff; border-radius: 8px; padding: 5px 9px; font-size: .8rem; cursor: pointer; color: var(--ink); }
.ot-board__tools button.is-on { border-color: var(--w7); box-shadow: inset 0 0 0 1px var(--w7); }
.ot-board__color { width: 26px; height: 26px; padding: 0 !important; border-radius: 999px !important; background: var(--c) !important; }
.ot-board__color.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c) !important; }
.ot-board__sep { width: 1px; height: 22px; background: var(--bd); }
.ot-board__status { margin-left: auto; font-size: .75rem; color: var(--ink5); }
.ot-board__canvas { flex: 1; display: flex; align-items: center; justify-content: center; background: #f6f2f2; padding: 8px; }
.ot-board__canvas canvas { width: 100%; height: auto; aspect-ratio: 16 / 10; background: #fff; border-radius: 6px; touch-action: none; cursor: crosshair; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

@media (max-width: 980px) {
  .ot-profile { grid-template-columns: 1fr; }
  .ot-profile__side { position: static; }
  .ot-classroom__grid { grid-template-columns: 1fr; }
  .ot-video__frame { min-height: 380px; }
  .ot-lesson { grid-template-columns: 1fr; }
  .ot-lesson__actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .ot-ui { padding: 24px 16px 40px; }
  .ot-filters, .ot-form__row, .ot-stat-row { grid-template-columns: 1fr; }
  .ot-tutor-card { grid-template-columns: auto 1fr; }
  .ot-tutor-card__price { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .ot-tutor-card__price > span:not(.ot-btn) { margin: 0; }
}
.ot-time { white-space: nowrap; }

/* Tutor profile pages: drop Astra's blog-post chrome */
body.single-ot_tutor { background: var(--ot-bg, #faf7f6); }
.single-ot_tutor .entry-meta, .single-ot_tutor .post-navigation, .single-ot_tutor .ast-single-related-posts-container, .single-ot_tutor .ast-author-box { display: none !important; }
.single-ot_tutor .ast-article-single, .single-ot_tutor .site-main > article { background: transparent !important; padding: 0 !important; box-shadow: none !important; }
.single-ot_tutor .entry-header { max-width: 1200px; margin: 0 auto; padding: 40px 24px 0; }
.single-ot_tutor .entry-title { font-family: var(--ot-serif, Georgia, serif); font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 600; }
.single-ot_tutor .ot-profile { padding-top: 16px; }

/* Theme (Astra) overrides */
.ot-ui .ot-tabs a { text-decoration: none; }
.ot-ui .ot-board__tools select { width: auto; padding: 5px 9px; }
.ot-avail table, .ot-avail th, .ot-avail td { border: 0 !important; background: transparent; padding: 1px 2px; }
.ot-ui .ot-classroom__layout .ot-btn--sm { padding: 6px 12px; }
.ot-ui a.ot-tutor-card, .ot-ui a.ot-tutor-card * { text-decoration: none; }
.ot-tutor-card .ot-chip { font-family: var(--ot-sans, sans-serif); vertical-align: middle; }

/* ---------- 1.1: hidden helper, header buttons ---------- */
.ot-ui [hidden] { display: none !important; }
.main-header-menu .ot-menu-signin > .menu-link { font-weight: 600; }
.main-header-menu .ot-menu-signup > .menu-link,
.ast-header-break-point .main-header-menu .ot-menu-signup > .menu-link {
  background: var(--ot-gold-500, #e0b468); color: #2a0a11 !important; border-radius: 10px; font-weight: 700;
  padding: .6rem 1.15rem !important; line-height: 1.2 !important; height: auto !important; margin-left: 6px;
}
.main-header-menu .ot-menu-signup > .menu-link:hover { background: #d4a24f; }
@media (min-width: 922px) {
  .main-header-menu .ot-menu-signin { margin-left: 10px; }
  .main-header-menu .ot-menu-signup, .main-header-menu .ot-menu-signin { display: flex; align-items: center; align-self: center; }
}
@media (max-width: 921px) {
  .ast-header-break-point .main-header-menu .ot-menu-signup > .menu-link { display: inline-block; margin: 10px 20px 14px; }
}

/* ---------- Sign-up role switch ---------- */
.ot-role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 auto 22px; max-width: 760px; }
.ot-role-switch a { display: block; border: 1.5px solid var(--bd); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); background: #fff; }
.ot-role-switch a strong { display: block; font-size: 1rem; }
.ot-role-switch a span { font-size: .82rem; color: var(--ink5); }
.ot-role-switch a.is-on { border-color: var(--w7); background: var(--w0); box-shadow: inset 0 0 0 1px var(--w7); }
.ot-role-switch a:hover { border-color: var(--w7); }
@media (max-width: 520px) { .ot-role-switch { grid-template-columns: 1fr; } }

/* ---------- Intro video recorder ---------- */
.ot-videos-field { border: 1px solid var(--bd); border-radius: var(--r); padding: 16px 18px 12px; margin: 22px 0 6px; background: #fffdfb; }
.ot-videos-field legend { font-weight: 700; padding: 0 6px; font-size: 1rem; }
.ot-videos-field select { max-width: 220px; }
.ot-rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 14px 0 8px; }
.ot-rec { border: 1.5px dashed var(--bd); border-radius: 12px; padding: 12px; background: #fff; min-width: 0; }
.ot-rec.is-done { border-style: solid; border-color: #9cc7a6; }
.ot-rec.is-recording { border-style: solid; border-color: #c0392b; }
.ot-rec__head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ot-rec__status { font-size: .78rem; color: var(--ink5); }
.ot-rec__status.is-ok { color: #1e7b3a; font-weight: 600; }
.ot-rec__video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #1b0d10; border-radius: 8px; margin: 8px 0; object-fit: cover; }
.ot-rec__bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.ot-rec__file { font-size: .8rem; color: var(--ink5); display: flex; flex-direction: column; gap: 4px; margin: 0; font-weight: 400; }
.ot-rec__file input { font-size: .8rem; max-width: 100%; }
.ot-ui .ot-btn--danger { background: #c0392b; border-color: #c0392b; }
.ot-ui .ot-btn--danger:hover { background: #a93226; border-color: #a93226; }
.ot-intro-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ot-intro-videos figure { margin: 0; }
.ot-intro-videos video { width: 100%; aspect-ratio: 16 / 9; background: #1b0d10; border-radius: 10px; display: block; }
.ot-intro-videos figcaption { font-size: .82rem; color: var(--ink5); margin-top: 6px; }

/* ---------- Course pages ---------- */
.ot-course-hero, .ot-course {
  --w7: var(--ot-wine-700, #7a1f2e); --w8: var(--ot-wine-800, #561824); --w0: var(--ot-wine-50, #f4ecee);
  --g5: var(--ot-gold-500, #e0b468); --ink5: var(--ot-ink-500, #7a6a6d); --bd: var(--ot-border, #eadfe1);
}
.wp-block-group.ot-course-hero { background: var(--ot-wine-900, #3d1119); color: #fff; padding: 64px 24px 56px; margin: 0; }
.ot-course-hero > * { max-width: 860px !important; margin-left: auto !important; margin-right: auto !important; }
.ot-course-hero h1 { color: #fff; font-family: var(--ot-serif, Georgia, serif); font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; margin: 6px auto 14px; }
.ot-course-hero .ot-course-kicker { color: var(--g5); font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 0; }
.ot-course-hero .ot-course-kicker a { color: var(--g5); text-decoration: none; }
.ot-course-hero .ot-course-kicker a:hover { text-decoration: underline; }
.ot-course-hero .ot-course-lead { font-size: 1.15rem; color: #f1e3e6; }
.ot-course-hero .wp-block-buttons { margin-top: 22px; gap: 10px; }
.ot-course-hero .wp-block-button .wp-block-button__link { background: var(--g5) !important; color: #2a0a11 !important; border-radius: 10px; font-weight: 700; padding: .8rem 1.3rem; font-size: .95rem; border: 1.5px solid var(--g5) !important; }
.ot-course-hero .wp-block-button .wp-block-button__link:hover { background: #d4a24f !important; }
.ot-course-hero .wp-block-button.is-style-outline .wp-block-button__link { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.6) !important; }
.ot-course-hero .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.08) !important; }
.wp-block-group.ot-course { padding: 24px 24px 72px; margin: 0; }
.ot-course > * { max-width: 860px !important; margin-left: auto !important; margin-right: auto !important; }
.ot-course > .wp-block-shortcode, .ot-course > .ot-ui { max-width: 860px !important; }
.ot-course h2 { font-family: var(--ot-serif, Georgia, serif); font-size: 1.65rem; margin-top: 44px; margin-bottom: 14px; }
.ot-course h3 { font-size: 1.05rem; margin-top: 22px; margin-bottom: 6px; }
.ot-course ul.wp-block-list { padding-left: 0; list-style: none; }
.ot-course ul.wp-block-list li { position: relative; padding-left: 28px; margin: 0 0 10px; }
.ot-course ul.wp-block-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--w7); font-weight: 700; }
.ot-course .ot-ui { padding: 0; max-width: none; }
.ot-course-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ot-course-tile { position: relative; display: block; border: 1px solid var(--bd); border-radius: 12px; padding: 16px 40px 16px 16px; background: #fff; text-decoration: none !important; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.ot-course-tile:hover { border-color: var(--w7); box-shadow: 0 6px 18px rgba(61, 17, 25, .08); }
.ot-course-tile strong { display: block; font-size: 1rem; color: var(--ink); }
.ot-course-tile span { font-size: .85rem; color: var(--ink5); }
.ot-course-tile .ot-course-tile__go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--w7); }
.ot-empty { border: 1px dashed var(--bd); border-radius: 12px; padding: 18px 20px; background: #fff; }
@media (max-width: 600px) {
  .wp-block-group.ot-course-hero { padding: 40px 16px 36px; }
  .wp-block-group.ot-course { padding: 8px 16px 48px; }
}
.ot-role-switch a, .ot-role-switch a * { text-decoration: none !important; }
.ot-ui.ot-auth { max-width: 760px; }
/* Mobile: Sign in / Sign up stay visible above the header instead of hiding in the menu. */
.ot-mobile-auth { display: none; }
@media (max-width: 921px) {
  .ot-mobile-auth { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 8px 16px; background: var(--ot-wine-950, #2a0a11); }
  .ot-mobile-auth a { font: 600 .85rem/1.2 var(--ot-sans, sans-serif); color: #fff; text-decoration: none; padding: .45rem .9rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.45); }
  .ot-mobile-auth a.ot-mobile-auth__primary { background: var(--ot-gold-500, #e0b468); border-color: var(--ot-gold-500, #e0b468); color: #2a0a11; }
}
.ot-intro-videos figure { background: none; box-shadow: none; padding: 0; }

/* ---------- 1.3: language + currency selectors ---------- */
.ot-prefs { display: inline-flex; gap: 8px; align-items: center; }
.ot-prefs select.ot-pref {
  appearance: auto; font: 500 .85rem/1.2 var(--ot-sans, Inter, sans-serif); color: var(--ot-ink-900, #1f1416);
  background: #fff; border: 1.5px solid var(--ot-border, #eadfe1); border-radius: 10px; padding: .45rem .5rem; height: auto; min-height: 0; width: auto; cursor: pointer;
}
.ot-prefs select.ot-pref:hover, .ot-prefs select.ot-pref:focus { border-color: var(--ot-gold-500, #e0b468); outline: none; box-shadow: 0 0 0 2px rgba(224, 180, 104, .25); }
.main-header-menu .ot-menu-prefs { display: flex; align-items: center; margin-inline-start: 18px; padding-inline-start: 18px; border-inline-start: 1px solid var(--ot-border, #eadfe1); align-self: center; height: 34px; }
@media (max-width: 921px) {
  .main-header-menu .ot-menu-prefs { display: none; }
  .ot-mobile-auth { justify-content: space-between; flex-wrap: wrap; }
  .ot-mobile-auth .ot-prefs select.ot-pref { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); padding: .35rem .4rem; font-size: .8rem; }
  .ot-mobile-auth .ot-prefs select.ot-pref option { color: #1f1416; }
  .ot-mobile-auth__links { display: inline-flex; gap: 8px; }
}

/* ---------- Contact ---------- */
.ot-hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.ot-contact__urgent { margin-top: 6px; }
.ot-ui.ot-contact { padding: 0; max-width: none; }

/* ---------- Languages ---------- */
.ot-lang-note { background: var(--ot-gold-100, #f7ebd2); color: #2a0a11; text-align: center; padding: 10px 16px; font-size: .9rem; font-weight: 500; }
html[lang="ar"] { --ot-sans: "Noto Naskh Arabic", Inter, system-ui, sans-serif; --ot-serif: "Noto Naskh Arabic", "Source Serif 4", Georgia, serif; }
html[lang="ur"] { --ot-sans: "Noto Naskh Arabic", Inter, system-ui, sans-serif; --ot-serif: "Noto Naskh Arabic", "Source Serif 4", Georgia, serif; }
html[lang="ar"] body, html[lang="ar"] button, html[lang="ar"] input, html[lang="ar"] select, html[lang="ar"] textarea,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] .menu-link { font-family: var(--ot-sans) !important; letter-spacing: 0 !important; }
html[lang="ur"] body, html[lang="ur"] button, html[lang="ur"] input, html[lang="ur"] select, html[lang="ur"] textarea,
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3, html[lang="ur"] h4, html[lang="ur"] .menu-link { font-family: var(--ot-sans) !important; letter-spacing: 0 !important; }
html[lang="ur"] body, html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { line-height: 1.5 !important; }
/* The language names in the selector always use their own script's font. */
select.ot-pref option[lang="ar"], select.ot-pref option[lang="ur"] { font-family: "Noto Naskh Arabic", system-ui, sans-serif; }
/* Right-to-left fixes */
[dir="rtl"] .ot-course ul.wp-block-list li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .ot-course ul.wp-block-list li::before { left: auto; right: 0; }
[dir="rtl"] .ot-course-tile { padding: 16px 16px 16px 40px; }
[dir="rtl"] .ot-course-tile .ot-course-tile__go { right: auto; left: 16px; transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .main-header-menu .ot-menu-signup > .menu-link { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .main-header-menu .ot-menu-signin { margin-left: 0; margin-right: 10px; }
[dir="rtl"] .ot-legal ul, [dir="rtl"] .ot-legal ol { margin: 0 1.25rem 1.2rem 0; }
[dir="rtl"] .ot-legal__callout { border-left: 0; border-right: 4px solid var(--ot-wine-700, #7a1f2e); }
[dir="rtl"] .ot-subject__arrow { transform: scaleX(-1); }
/* Numbers, emails and times stay left-to-right inside RTL text. */
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="number"], [dir="rtl"] time { direction: ltr; unicode-bidi: plaintext; }
/* English-only content inside an Arabic/Urdu page keeps the Latin fonts. */
html[lang] [lang="en"], html[lang] [lang="en"] p, html[lang] [lang="en"] li, html[lang] [lang="en"] a, html[lang] [lang="en"] strong { font-family: Inter, system-ui, sans-serif !important; line-height: 1.7; }
html[lang] [lang="en"] h1, html[lang] [lang="en"] h2, html[lang] [lang="en"] h3 { font-family: "Source Serif 4", Georgia, serif !important; line-height: 1.25 !important; }

/* Arabic headings: Amiri (classical book Naskh), the Arabic counterpart of the English serif headings. */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .ot-section-title, html[lang="ar"] .ot-profile__headline { font-family: "Amiri", "Noto Naskh Arabic", serif !important; font-weight: 700; line-height: 1.5 !important; }

/* =========================================================================
 * 1.5: Section themes — Arabic & Quran (Islamic geometric), Urdu (Pakistani)
 * ========================================================================= */
.ot-theme {
  /* eight-point star (khatam) pattern, gold lines */
  --ot-pat-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23e0b468' stroke-width='1.1'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='9'/%3E%3Cpath d='M0 0l16 16M88 0L72 16M0 88l16-16M88 88L72 72M44 0v8M44 80v8M0 44h8M80 44h8'/%3E%3C/g%3E%3C/svg%3E");
  /* Mughal-style jaali lattice, white lines */
  --ot-pat-jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.1'%3E%3Cpath d='M32 4c8 10 8 18 0 28c-8-10-8-18 0-28zM32 60c8-10 8-18 0-28c-8 10-8 18 0 28zM4 32c10-8 18-8 28 0c-10 8-18 8-28 0zM60 32c-10-8-18-8-28 0c10 8 18 8 28 0z'/%3E%3Ccircle cx='32' cy='32' r='3'/%3E%3Cpath d='M0 0l8 8M64 0l-8 8M0 64l8-8M64 64l-8-8'/%3E%3C/g%3E%3C/svg%3E");
}

/* ----- Hero ----- */
.ot-theme .wp-block-group.ot-course-hero { position: relative; overflow: hidden; isolation: isolate; padding-top: 72px; padding-bottom: 72px; }
.ot-theme .wp-block-group.ot-course-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--ot-pat-star); background-size: 88px; opacity: .14; }
.ot-theme-quran .wp-block-group.ot-course-hero { background: radial-gradient(120% 140% at 85% 20%, #14594c 0%, #0b3b33 55%, #072924 100%); }
.ot-theme-arabic .wp-block-group.ot-course-hero { background: radial-gradient(120% 140% at 85% 20%, #5a1a27 0%, #3d1119 55%, #2a0a11 100%); }
.ot-theme-urdu .wp-block-group.ot-course-hero { background: radial-gradient(120% 140% at 85% 20%, #0f6a3d 0%, #0b4d2c 55%, #01411c 100%); }
.ot-theme-urdu .wp-block-group.ot-course-hero::before { background-image: var(--ot-pat-jaali); background-size: 64px; opacity: .10; }
/* gold band along the bottom of the hero, like a border in an illuminated page */
.ot-theme .wp-block-group.ot-course-hero > .ot-course-lead + .wp-block-buttons { position: relative; }
.ot-theme .wp-block-group.ot-course-hero { border-bottom: 6px solid transparent; border-image: repeating-linear-gradient(90deg, #e0b468 0 18px, #b98a3a 18px 22px, #e0b468 22px 40px) 6; }

/* Calligraphy arch (mihrab) beside the hero text */
.ot-theme .wp-block-group.ot-course-hero::after {
  position: absolute; top: 50%; right: max(24px, calc((100vw - 1240px) / 2)); left: auto; transform: translateY(-50%);
  width: 230px; height: 300px; display: grid; place-items: center; padding: 70px 18px 24px; box-sizing: border-box;
  border: 2px solid rgba(224, 180, 104, .75); border-radius: 115px 115px 10px 10px;
  box-shadow: inset 0 0 0 7px rgba(224, 180, 104, .12), inset 0 0 0 8px rgba(224, 180, 104, .45);
  background: rgba(0, 0, 0, .12);
  color: #f1d9a6; font-family: "Amiri", "Noto Naskh Arabic", serif; font-size: 3.1rem; font-weight: 700; line-height: 1.35; text-align: center;
  white-space: pre-line; unicode-bidi: plaintext; text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
[dir="rtl"] .ot-theme .wp-block-group.ot-course-hero::after { right: auto; left: max(24px, calc((100vw - 1240px) / 2)); }
.ot-theme-arabic .wp-block-group.ot-course-hero::after { content: "العربية"; }
.ot-theme-quran .wp-block-group.ot-course-hero::after { content: "القرآن\A الكريم"; }
.ot-theme-urdu .wp-block-group.ot-course-hero::after { content: "اردو"; font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif; font-size: 3.4rem; line-height: 2; color: #fff; border-color: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .08), inset 0 0 0 8px rgba(224, 180, 104, .55); }
@media (max-width: 1279px) {
  /* not enough room beside the text: becomes a faint watermark behind it */
  .ot-theme .wp-block-group.ot-course-hero::after { opacity: .16; border: 0; box-shadow: none; background: none; font-size: 6rem; width: auto; height: auto; padding: 0; right: 4vw; }
  [dir="rtl"] .ot-theme .wp-block-group.ot-course-hero::after { right: auto; left: 4vw; }
}
@media (max-width: 600px) { .ot-theme .wp-block-group.ot-course-hero::after { font-size: 4.2rem; top: 70%; } }
@media (min-width: 1280px) { .ot-theme .ot-course-hero > * { max-width: 760px !important; margin-inline-start: max(24px, calc((100vw - 1240px) / 2)) !important; margin-inline-end: auto !important; } }

/* ----- Body: faint pattern, ornamental headings, themed accents ----- */
.ot-theme .wp-block-group.ot-course { position: relative; background: #fffdf8; }
.ot-theme-urdu .wp-block-group.ot-course { background: #fbfdfa; }
.ot-theme .ot-course h2 { display: flex; align-items: center; gap: 12px; }
.ot-theme .ot-course h2::before { content: ""; flex: 0 0 22px; height: 22px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23c9963f'%3E%3Crect x='10' y='10' width='20' height='20'/%3E%3Crect x='10' y='10' width='20' height='20' transform='rotate(45 20 20)'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='4' fill='%23fffdf8'/%3E%3C/svg%3E"); }
.ot-theme-quran .ot-course ul.wp-block-list li::before { color: #0f6b5a; }
.ot-theme-urdu .ot-course ul.wp-block-list li::before { color: #0b6b3a; }
.ot-theme-quran .ot-course-tile:hover { border-color: #0f6b5a; }
.ot-theme-urdu .ot-course-tile:hover { border-color: #0b6b3a; }
.ot-theme-quran .ot-course-tile .ot-course-tile__go { color: #0f6b5a; }
.ot-theme-urdu .ot-course-tile .ot-course-tile__go { color: #0b6b3a; }
.ot-theme .ot-course-tile { background: #fff linear-gradient(180deg, rgba(224, 180, 104, .07), transparent 60%); }
.ot-theme-quran .wp-block-group.ot-course-hero .is-style-outline .wp-block-button__link,
.ot-theme-urdu .wp-block-group.ot-course-hero .is-style-outline .wp-block-button__link { border-color: rgba(255,255,255,.65) !important; }

/* ----- Verse / hadith / poetry card ----- */
.ot-verse {
  position: relative; margin: 8px auto 36px; padding: 30px 28px 22px; text-align: center;
  background: #fbf5e8 radial-gradient(circle at 50% 0, rgba(224,180,104,.18), transparent 70%);
  border: 1px solid #e2c88f; border-radius: 16px; box-shadow: inset 0 0 0 5px #fbf5e8, inset 0 0 0 6px #e8d3a3;
}
.ot-verse::before, .ot-verse::after { content: "۞"; position: absolute; top: 12px; color: #c9963f; font-size: 1.1rem; }
.ot-verse::before { left: 16px; } .ot-verse::after { right: 16px; }
.ot-verse__label { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9a6f25; margin-bottom: 8px; }
html[lang="ar"] .ot-verse__label, html[lang="ur"] .ot-verse__label { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.ot-verse blockquote.ot-verse__text { margin: 0 0 10px; padding: 0; border: 0; quotes: none; font-family: "Amiri Quran", "Amiri", "Noto Naskh Arabic", serif !important; font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 2.1; color: #1f3d2f; font-style: normal; }
.ot-verse--poetry blockquote.ot-verse__text { font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif !important; font-size: clamp(1.3rem, 2.8vw, 1.8rem); line-height: 2.5; color: #12452c; }
.ot-verse--hadith blockquote.ot-verse__text { font-family: "Amiri", "Noto Naskh Arabic", serif !important; }
.ot-verse__mean { max-width: 620px; margin: 0 auto 8px !important; color: #4a3c3f; font-size: 1rem; font-style: italic; }
html[lang="ar"] .ot-verse__mean, html[lang="ur"] .ot-verse__mean { font-style: normal; }
.ot-verse__ref { font-size: .82rem; color: #9a6f25; font-weight: 600; }

/* =========================================================================
 * 1.5: Tutor profile, booking card, schedule, tutor cards
 * ========================================================================= */
.ot-flag { font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 1.05em; line-height: 1; vertical-align: -0.08em; }
.ot-linkbtn { background: none; border: 0; padding: 0; color: var(--w7); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: .92rem; }
.ot-chip--ok { background: #e3f3e8; color: #1e7b3a; }

/* Layout */
.ot-ui.ot-tp { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; max-width: 1160px; padding-top: 28px; }
.ot-tp__side { position: sticky; top: 24px; }
.ot-tp__section { margin-top: 40px; }
.ot-tp__section > h2 { margin-top: 0 !important; }
@media (max-width: 900px) {
  .ot-ui.ot-tp { grid-template-columns: 1fr; gap: 24px; }
  .ot-tp__side { position: static; order: -1; }
  .ot-tp__main { display: contents; }
  .ot-tp__video { order: -2; }
}

/* Video */
.ot-tp__video { background: #1b0d10; border-radius: 16px; overflow: hidden; border: 1px solid var(--bd); }
.ot-tp__video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #1b0d10; }
.ot-tp__video-tabs { display: flex; gap: 6px; padding: 10px; background: #fff; border-top: 1px solid var(--bd); }
.ot-tp__video-tabs button { border: 1px solid var(--bd); background: #fff; border-radius: 999px; padding: .35rem .9rem; font-size: .82rem; font-weight: 600; color: var(--ink7); cursor: pointer; }
.ot-tp__video-tabs button.is-on { background: var(--w7); border-color: var(--w7); color: #fff; }

/* Header + facts */
.ot-tp__head { display: flex; gap: 20px; align-items: center; margin-top: 28px; }
.ot-tp__head .ot-avatar { border-radius: 16px; object-fit: cover; flex: none; }
.ot-tp__head .ot-avatar--initials { border-radius: 16px; font-size: 2rem; }
.ot-ui h1.ot-tp__name { font-family: var(--ot-serif, Georgia, serif); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 6px; color: var(--ink); }
.ot-tp__sub { font-weight: 600; color: var(--ink7); margin: 0 !important; }
.ot-tp__headline { color: var(--ink5); margin: 6px 0 0 !important; }
.ot-tp__facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.ot-tp__fact { display: flex; gap: 14px; align-items: flex-start; }
.ot-tp__fact div { display: flex; flex-direction: column; }
.ot-tp__fact strong { font-size: 1rem; }
.ot-tp__fact span:not(.ot-tp__icon) { color: var(--ink7); font-size: .92rem; }
.ot-tp__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--w0); color: var(--w7); font-weight: 700; }
.ot-tp__fact--top .ot-tp__icon { background: var(--g1); color: #8a5a12; }
.ot-tp__fact--top strong { font-family: var(--ot-serif, Georgia, serif); font-size: 1.25rem; }
.ot-tp__fact--ok .ot-tp__icon { background: #e3f3e8; color: #1e7b3a; }

/* About, languages, accordion, resume, categories */
.ot-tp__about { position: relative; }
.ot-tp__about.is-clamped { max-height: 9.5em; overflow: hidden; }
.ot-tp__about.is-clamped::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3em; background: linear-gradient(transparent, #fff); }
.ot-tp__langs { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ot-tp__langs > span { display: inline-flex; align-items: center; gap: 8px; }
.ot-level { font-style: normal; font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 6px; background: #e8eefc; color: #2b4aa0; }
.ot-level--native { background: #e3f3e8; color: #1e7b3a; }
.ot-acc { border-top: 1px solid var(--bd); }
.ot-acc details, .ot-acc__plain { border-bottom: 1px solid var(--bd); }
.ot-acc summary, .ot-acc__plain { padding: 15px 2px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.ot-acc__plain { cursor: default; }
.ot-acc summary::-webkit-details-marker { display: none; }
.ot-acc summary::after { content: "⌄"; font-size: 1.2rem; color: var(--ink5); transition: transform .15s; }
.ot-acc details[open] summary::after { transform: rotate(180deg); }
.ot-acc details p { margin: 0 0 16px !important; color: var(--ink7); }
.ot-ui .ot-tabs--inline { display: flex; gap: 4px; border-bottom: 1px solid var(--bd); margin-bottom: 16px; }
.ot-ui .ot-tabs--inline button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font-weight: 600; color: var(--ink5); cursor: pointer; margin-bottom: -1px; }
.ot-ui .ot-tabs--inline button.is-on { color: var(--ink); border-bottom-color: var(--w7); }
.ot-resume { display: grid; grid-template-columns: 140px 1fr; gap: 14px 18px; margin: 0; }
.ot-resume dt { color: var(--ink5); }
.ot-resume dd { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.ot-resume dd span { color: var(--ink7); }
.ot-resume dd .ot-level { align-self: flex-start; margin-top: 4px; }
.ot-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 8px; }
.ot-cat { background: var(--w0); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.ot-cat strong { font-size: 1.3rem; }
.ot-cat span { color: var(--ink7); font-weight: 600; }

/* Reviews */
.ot-tp__per { display: flex; gap: 14px; align-items: center; border: 1px solid var(--bd); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.ot-tp__per div { display: flex; flex-direction: column; }
.ot-tp__per span { color: var(--ink7); }
.ot-tp__score { display: flex; align-items: baseline; gap: 8px; }
.ot-tp__score strong { font-family: var(--ot-serif, Georgia, serif); font-size: 2.6rem; line-height: 1; }
.ot-tp__score .ot-stars { color: var(--g5); font-size: 1.6rem; }
.ot-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px 28px; margin: 12px 0 18px; }
.ot-review.is-extra { display: none; }
.ot-review__who { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.ot-review__who div { display: flex; flex-direction: column; }
.ot-review .ot-stars { color: #1f1416; letter-spacing: 2px; margin: 0 0 6px !important; }
.ot-stars__off { color: #d9cfd1; }
.ot-review__text { color: var(--ink7); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* Schedule */
.ot-sched__note { background: #eef3fd; color: #2b3a5c; border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.ot-sched__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 10px; }
.ot-sched__nav { display: inline-flex; border: 1px solid var(--bd); border-radius: 10px; overflow: hidden; }
.ot-sched__nav button { background: #fff; border: 0; width: 40px; height: 36px; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.ot-sched__nav button + button { border-inline-start: 1px solid var(--bd); }
.ot-sched__nav button:disabled { color: #c9bfc1; cursor: default; background: #faf7f7; }
[dir="rtl"] .ot-sched__nav { flex-direction: row-reverse; }
.ot-sched__tz { margin-inline-start: auto; font-size: .85rem; color: var(--ink5); border: 1px solid var(--bd); border-radius: 8px; padding: 6px 10px; }
.ot-sched__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ot-sched__day { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding-top: 10px; border-top: 4px solid var(--w7); }
.ot-sched__day.is-empty { border-top-color: #d9cfd1; }
.ot-sched__day p { display: flex; flex-direction: column; align-items: center; margin: 0 0 4px !important; font-size: .82rem; color: var(--ink5); }
.ot-sched__day p b { font-size: 1rem; color: var(--ink); }
.ot-sched__day .ot-time { width: 100%; padding: .45rem 0; text-align: center; }
.ot-sched__none { grid-column: 1 / -1; text-align: center; }
@media (max-width: 600px) { .ot-sched__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; } }

/* Booking card */
.ot-bc { background: #fff; border: 1px solid var(--bd); border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px rgba(61, 17, 25, .08); }
.ot-bc__price { margin: 0 0 10px !important; display: flex; align-items: baseline; gap: 8px; }
.ot-bc__price strong { font-family: var(--ot-serif, Georgia, serif); font-size: 2rem; }
.ot-bc__price span { color: var(--ink5); }
.ot-bc__stats { display: flex; gap: 28px; margin-bottom: 16px; }
.ot-bc__stats div { display: flex; flex-direction: column; }
.ot-bc__stats strong { font-size: 1.2rem; }
.ot-bc__stats span { font-size: .8rem; color: var(--ink5); }
.ot-bc__when { background: var(--g1); border-radius: 10px; padding: 10px 12px; font-weight: 600; margin: 12px 0 0 !important; }
.ot-bc__form .ot-btn--block { margin-top: 12px; }
.ot-bc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ot-bc__actions form { margin: 0; }
.ot-iconbtn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 1px solid var(--bd); border-radius: 10px; padding: .6rem; font-weight: 600; font-size: .88rem; color: var(--ink); cursor: pointer; text-decoration: none; }
.ot-iconbtn:hover { border-color: var(--w7); color: var(--w7); }
.ot-iconbtn.is-on { color: #b3261e; border-color: #f0c4c1; background: #fff6f5; }
.ot-bc__protect { background: var(--w0); border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
.ot-bc__protect p { margin: 0 0 8px !important; }
.ot-bc__protect ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .86rem; color: var(--ink7); }
.ot-bc__protect li { display: flex; gap: 8px; }
.ot-bc__protect li span { width: 18px; text-align: center; color: var(--w7); }

/* Similar / saved tutors */
.ot-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.ot-mini { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none !important; }
.ot-mini__photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--w1); display: grid; place-items: center; }
.ot-mini__photo img { width: 100%; height: 100%; object-fit: cover; }
.ot-mini__initials { font-family: var(--ot-serif, Georgia, serif); font-size: 2.4rem; color: var(--w7); }
.ot-mini__name { position: absolute; inset: auto 0 0 0; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #fff; font-weight: 700; }
.ot-mini__meta { font-size: .88rem; font-weight: 600; }
.ot-mini__meta span { color: var(--ink5); font-weight: 400; }
.ot-mini__headline { font-size: .86rem; color: var(--ink7); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ot-mini__price { font-size: .86rem; color: var(--ink5); }
.ot-mini__price strong { color: var(--ink); font-size: 1.05rem; }
.ot-ui.ot-saved { padding-top: 0; }
.ot-crumbs { margin-top: 40px; font-size: .9rem; color: var(--ink5); display: flex; flex-wrap: wrap; gap: 6px; }
.ot-crumbs a { color: var(--ink7); }

/* Search result card */
.ot-tutor-grid:has(.ot-tc) { grid-template-columns: 1fr; }
.ot-tc { display: grid; grid-template-columns: 132px minmax(0, 1fr) 210px; gap: 20px; background: #fff; border: 1px solid var(--bd); border-radius: 16px; padding: 18px; transition: border-color .15s, box-shadow .15s; }
.ot-tc:hover { border-color: var(--w7); box-shadow: 0 8px 24px rgba(61, 17, 25, .08); }
.ot-tc__photo { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 12px; overflow: hidden; background: var(--w1); text-decoration: none !important; }
.ot-tc__photo img { width: 100%; height: 100%; object-fit: cover; }
.ot-tc__photo span { font-family: var(--ot-serif, Georgia, serif); font-size: 2.6rem; color: var(--w7); }
.ot-ui h3.ot-tc__name { margin: 0 0 6px; font-family: var(--ot-serif, Georgia, serif); font-size: 1.3rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ot-tc__name a { color: var(--ink); text-decoration: none !important; }
.ot-tc__name .ot-chip { font-family: var(--ot-sans, sans-serif); }
.ot-tc__line { margin: 0 0 4px !important; color: var(--ink7); font-size: .9rem; }
.ot-tc__text { margin: 8px 0 0 !important; color: var(--ink7); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ot-tc__text strong { color: var(--ink); }
.ot-tc__side { display: flex; flex-direction: column; gap: 8px; }
.ot-tc__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.ot-tc__nums div { display: flex; flex-direction: column; }
.ot-tc__nums strong { font-size: 1.15rem; }
.ot-tc__nums span { font-size: .78rem; color: var(--ink5); }
.ot-tc__side .ot-btn { margin: 0; padding: .6rem .8rem; }
.ot-tc__play { background: none; border: 0; color: var(--w7); font-weight: 600; cursor: pointer; padding: 4px; }
@media (max-width: 820px) {
  .ot-tc { grid-template-columns: 88px minmax(0, 1fr); }
  .ot-tc__photo { width: 88px; height: 88px; }
  .ot-tc__side { grid-column: 1 / -1; }
}
.ot-vdlg { border: 0; border-radius: 16px; padding: 0; width: min(860px, 94vw); background: #1b0d10; color: #fff; }
.ot-vdlg::backdrop { background: rgba(20, 8, 10, .7); }
.ot-vdlg__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
.ot-vdlg__bar button { background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.ot-vdlg video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* Profile editors (dashboard + WP Admin) */
.ot-rows { border: 1px solid var(--bd); border-radius: 12px; padding: 12px 14px 4px; margin: 18px 0 0; }
.ot-rows legend { font-weight: 700; padding: 0 6px; }
.ot-rows__row { display: grid; gap: 8px; margin-bottom: 10px; }
.ot-rows__row--2 { grid-template-columns: 1fr 1fr; }
.ot-rows__row--3 { grid-template-columns: 90px 1fr 1fr; }
.ot-rows__row--4 { grid-template-columns: 90px 110px 1fr 1fr; }
.ot-rows__row input, .ot-rows__row select, .ot-rows__row textarea { width: 100%; margin: 0 !important; }
@media (max-width: 600px) { .ot-rows__row--3, .ot-rows__row--4 { grid-template-columns: 1fr 1fr; } }
.ot-rate-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 8px; }
.ot-rate-cats label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 500; }
.ot-ui .ot-radio-card { position: relative; }
.ot-ui .ot-radio-card input { left: 0; top: 0; }
.ot-ui ul.ot-tp__facts { margin-inline-start: 0; margin-left: 0; margin-right: 0; }
.ot-ui a.ot-iconbtn, .ot-ui a.ot-iconbtn:hover { text-decoration: none; }
.ot-sched__nav button { display: grid; place-items: center; line-height: 1; padding: 0; }
.ot-ui ul.ot-tp__facts { margin: 24px 0 0 !important; padding: 0 !important; }
.ot-rows__row select, .ot-rows__row input { height: auto !important; min-height: 44px; line-height: 1.4 !important; padding-top: .55rem !important; padding-bottom: .55rem !important; }
/* Course page photo, framed as an arch */
.ot-photo-band { margin: 0 auto 34px; position: relative; }
.ot-photo-band img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 260px 260px 16px 16px / 160px 160px 16px 16px; }
.ot-photo-band::after { content: ""; position: absolute; inset: -8px -8px 26px; border: 2px solid rgba(201, 150, 63, .6); border-radius: 268px 268px 20px 20px / 168px 168px 20px 20px; pointer-events: none; }
.ot-photo-band figcaption { text-align: center; font-size: .82rem; color: var(--ot-ink-500, #7a6a6d); margin-top: 10px; }
