/*
Theme Name: SkillCedar Child
Theme URI: https://bitbucket.org/sajid/online-tutor
Description: Child theme for Astra. Wine-and-gold editorial look (serif headings, warm off-white, gold CTAs) for the SkillCedar Marketplace plugin (Arabic, Quran, Urdu tutoring).
Author: SkillCedar
Template: astra
Version: 2.3.2
Text Domain: onlinetutor-child
*/

/* ==========================================================================
   Tokens — change the brand here
   ========================================================================== */
:root {
  --ot-wine-950: #2a0a11;   /* footer, deepest */
  --ot-wine-900: #3d1119;   /* hero band, dark panels */
  --ot-wine-800: #561824;
  --ot-wine-700: #7a1f2e;   /* primary buttons, step badges, links */
  --ot-wine-600: #932a3b;
  --ot-wine-100: #f3e4e7;   /* tile code chips */
  --ot-wine-50:  #f4ecee;   /* tinted section */
  --ot-gold-500: #e0b468;   /* gold CTA */
  --ot-gold-600: #d4a24f;
  --ot-gold-100: #f7ebd2;   /* guarantee banner */
  --ot-bg:       #faf7f6;   /* page background */
  --ot-surface:  #ffffff;
  --ot-ink-900:  #1f1416;
  --ot-ink-700:  #4a3c3f;
  --ot-ink-500:  #7a6a6d;
  --ot-border:   #eadfe1;
  --ot-on-dark:  #f6e9ec;
  --ot-on-dark-muted: #d9bfc5;

  --ot-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ot-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ot-radius: 14px;
  --ot-radius-lg: 22px;
  --ot-wrap: 1200px;

  /* Legacy aliases so older snippets keep working */
  --ot-brand-50: var(--ot-wine-50);
  --ot-brand-100: var(--ot-wine-100);
  --ot-brand-500: var(--ot-wine-600);
  --ot-brand-600: var(--ot-wine-700);
  --ot-brand-700: var(--ot-wine-800);
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
  background: var(--ot-bg);
  color: var(--ot-ink-900);
  font-family: var(--ot-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .ot-serif,
.entry-content h1, .entry-content h2 {
  font-family: var(--ot-serif);
  color: inherit;
  letter-spacing: -0.01em;
}
a { color: var(--ot-wine-700); }
a:hover { color: var(--ot-wine-600); }

/* Full-bleed sections inside Astra's content area.
   Set each page to Astra → "Full Width / Stretched" + "Disable title". */
.ot-page { margin: 0; }
.ot-page * { box-sizing: border-box; }
.ot-page p { margin: 0; }
.ot-page h1, .ot-page h2, .ot-page h3 { margin: 0; }
.ot-wrap { max-width: var(--ot-wrap); margin: 0 auto; padding: 0 24px; }
.ot-section { padding: 72px 0; }
.ot-section--tint { background: var(--ot-wine-50); }
.ot-muted { color: var(--ot-ink-500); }

/* ==========================================================================
   Header (Astra)
   ========================================================================== */
.site-header, .ast-primary-header-bar, .main-header-bar {
  background: var(--ot-surface) !important;
  border-bottom: 1px solid var(--ot-border) !important;
}
.site-title a, .site-title a:hover {
  font-family: var(--ot-serif); font-weight: 700; color: var(--ot-ink-900) !important;
}
.main-header-menu .menu-link, .ast-builder-menu .menu-link {
  color: var(--ot-ink-700) !important; font-size: .9rem; font-weight: 500;
}
.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link { color: var(--ot-wine-700) !important; }
/* Header "Button" element styled as the outlined "Log in" */
.ast-header-button-1 .ast-custom-button {
  background: transparent !important; color: var(--ot-ink-900) !important;
  border: 1px solid var(--ot-ink-900) !important; border-radius: 8px !important;
  padding: .45rem 1rem !important; font-weight: 600 !important; font-size: .875rem !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.ot-btn, .ast-button, .wp-block-button__link, .bookingpress_front_btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--ot-wine-700) !important; border: 1px solid var(--ot-wine-700) !important;
  color: #fff !important; border-radius: 10px !important;
  font-family: var(--ot-sans); font-weight: 600 !important; font-size: .9rem;
  padding: .75rem 1.25rem !important; text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease;
}
.ot-btn:hover, .ast-button:hover, .wp-block-button__link:hover, .bookingpress_front_btn:hover {
  background: var(--ot-wine-800) !important; border-color: var(--ot-wine-800) !important;
}
.ot-btn--gold { background: var(--ot-gold-500) !important; border-color: var(--ot-gold-500) !important; color: var(--ot-wine-950) !important; }
.ot-btn--gold:hover { background: var(--ot-gold-600) !important; border-color: var(--ot-gold-600) !important; }
.ot-btn--dark { background: var(--ot-wine-950) !important; border-color: var(--ot-wine-950) !important; }
.ot-btn-outline, .ot-btn--outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent !important; color: var(--ot-ink-900) !important;
  border: 1px solid var(--ot-ink-900) !important; border-radius: 10px !important;
  font-weight: 600 !important; font-size: .9rem; padding: .75rem 1.25rem !important;
  text-decoration: none !important;
}
.ot-btn-outline:hover, .ot-btn--outline:hover { background: var(--ot-surface) !important; color: var(--ot-wine-700) !important; border-color: var(--ot-wine-700) !important; }
.ot-btn--ghost-light { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.55) !important; }
.ot-btn--ghost-light:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }

/* ==========================================================================
   Generic pieces
   ========================================================================== */
.ot-card {
  background: var(--ot-surface); border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius); padding: 1.25rem;
}
.ot-chip {
  display: inline-flex; align-items: center; border-radius: 999px;
  background: var(--ot-wine-100); color: var(--ot-wine-700);
  padding: .25rem .75rem; font-size: .75rem; font-weight: 600;
}
.ot-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ot-gold-500); }
.ot-section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; }
.ot-photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--ot-radius); background: var(--ot-wine-100); }

/* ==========================================================================
   Hero
   ========================================================================== */
.ot-hero { background: var(--ot-wine-900); color: #fff; padding: 72px 0; }
.ot-hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.ot-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 600; line-height: 1.1; color: #fff; }
.ot-hero__lead { margin-top: 1.1rem !important; font-size: 1.05rem; line-height: 1.6; color: var(--ot-on-dark); max-width: 34rem; }
.ot-hero__media { aspect-ratio: 5 / 5.6; max-height: 460px; justify-self: end; width: 100%; max-width: 400px; }
.ot-hero__media .ot-photo { border-radius: var(--ot-radius-lg); }

.ot-search {
  margin-top: 1.75rem; display: flex; gap: .5rem; align-items: center;
  background: #fff; border-radius: 12px; padding: 6px 6px 6px 16px; max-width: 520px;
}
.ot-search input {
  flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important;
  font: inherit; font-size: .9rem; color: var(--ot-ink-900); padding: .55rem 0 !important; box-shadow: none !important;
}
.ot-search button { flex: 0 0 auto; cursor: pointer; }

/* Stats band */
.ot-stats { background: var(--ot-wine-900); border-top: 1px solid rgba(255,255,255,.12); color: #fff; padding: 28px 0; }
.ot-stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.ot-stat__value { font-family: var(--ot-serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; color: #fff; }
.ot-stat__label { margin-top: .25rem !important; font-size: .78rem; color: var(--ot-on-dark-muted); }

/* ==========================================================================
   Subjects grid
   ========================================================================== */
.ot-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 28px; }
.ot-head-row a { font-size: .85rem; font-weight: 600; }
.ot-subjects { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.ot-subject {
  display: flex; align-items: center; gap: 14px; text-decoration: none !important; color: var(--ot-ink-900) !important;
  background: var(--ot-surface); border: 1px solid var(--ot-border); border-radius: 12px; padding: 18px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ot-subject:hover { border-color: var(--ot-wine-600); box-shadow: 0 6px 18px rgba(61,17,25,.08); transform: translateY(-1px); }
.ot-subject .ot-icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  background: var(--ot-wine-100); color: var(--ot-wine-700); font-weight: 700; font-size: .78rem; letter-spacing: .03em;
}
.ot-subject__text { flex: 1; min-width: 0; line-height: 1.3; }
.ot-subject__text strong { display: block; font-size: .92rem; font-weight: 600; }
.ot-subject__text span { font-size: .78rem; color: var(--ot-ink-500); }
.ot-subject__arrow { color: var(--ot-ink-500); font-size: 1.1rem; }

/* ==========================================================================
   How it works
   ========================================================================== */
.ot-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.ot-step { background: var(--ot-surface); border-radius: var(--ot-radius); padding: 20px; display: flex; flex-direction: column; }
.ot-step__media { aspect-ratio: 16 / 9.5; }
.ot-step__num {
  display: grid; place-items: center; width: 30px; height: 30px; margin-top: 18px; border-radius: 999px;
  background: var(--ot-wine-700); color: #fff; font-size: .8rem; font-weight: 700;
}
.ot-step h3 { font-family: var(--ot-sans); font-size: 1.05rem; font-weight: 600; margin-top: 14px !important; }
.ot-step__body { margin-top: .5rem !important; font-size: .85rem; line-height: 1.55; color: var(--ot-ink-700); }
.ot-step__demo { margin-top: auto; padding-top: 18px; }

.ot-mini-filters { display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid var(--ot-border); border-radius: 10px; padding: 12px; }
.ot-mini-filters span { font-size: .72rem; border: 1px solid var(--ot-border); border-radius: 999px; padding: 4px 10px; }
.ot-mini-filters span.is-on { background: var(--ot-wine-700); border-color: var(--ot-wine-700); color: #fff; font-weight: 600; }

.ot-slots { border: 1px solid var(--ot-border); border-radius: 10px; padding: 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.ot-slots__day { font-size: .68rem; color: var(--ot-ink-500); }
.ot-slots__time { font-size: .72rem; border: 1px solid var(--ot-border); border-radius: 6px; padding: 4px 0; }
.ot-slots__time.is-on { background: var(--ot-wine-700); border-color: var(--ot-wine-700); color: #fff; font-weight: 700; }

.ot-progress__row { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ot-ink-700); }
.ot-progress__row strong { color: var(--ot-ink-900); }
.ot-progress__bar { margin-top: 8px; height: 6px; border-radius: 999px; background: var(--ot-wine-100); overflow: hidden; }
.ot-progress__bar span { display: block; height: 100%; background: var(--ot-wine-700); border-radius: inherit; }

/* Guarantee / reassurance banner */
.ot-banner {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--ot-gold-100); border-radius: var(--ot-radius); padding: 26px 30px;
}
.ot-banner h3 { font-size: 1.35rem; font-weight: 600; }
.ot-banner p { margin-top: .3rem !important; font-size: .85rem; color: var(--ot-ink-700); }

/* ==========================================================================
   Become a tutor
   ========================================================================== */
.ot-teach { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: end; }
.ot-teach__media { aspect-ratio: 4 / 2.8; }
.ot-teach h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; margin-top: 22px !important; }
.ot-teach__lead { margin-top: .75rem !important; color: var(--ot-ink-700); font-size: .95rem; line-height: 1.6; }
.ot-teach__actions { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ot-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ot-perk { border-top: 2px solid var(--ot-ink-900); padding-top: 14px; }
.ot-perk h3 { font-family: var(--ot-sans); font-size: .95rem; font-weight: 600; }
.ot-perk p { margin-top: .4rem !important; font-size: .84rem; line-height: 1.55; color: var(--ot-ink-700); }

/* ==========================================================================
   Community / B2B panel
   ========================================================================== */
.ot-panel {
  background: var(--ot-wine-900); color: #fff; border-radius: var(--ot-radius-lg); padding: 44px;
  display: grid; grid-template-columns: 1.4fr .8fr .9fr; gap: 36px; align-items: center;
}
.ot-panel h2 { margin-top: .6rem !important; font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.2; font-weight: 600; color: #fff; }
.ot-panel p { margin-top: .75rem !important; font-size: .9rem; color: var(--ot-on-dark); line-height: 1.55; }
.ot-panel__media { aspect-ratio: 1 / 1.05; }
.ot-panel__actions { display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================
   Footer (rendered by functions.php)
   ========================================================================== */
.ot-footer { background: var(--ot-wine-950); color: var(--ot-on-dark); padding: 56px 0 28px; font-size: .85rem; }
.ot-footer__cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.ot-footer h4 { font-family: var(--ot-sans); font-size: .85rem; font-weight: 700; color: #fff; margin: 0 0 12px; }
.ot-footer ul { list-style: none; margin: 0; padding: 0; }
.ot-footer li + li { margin-top: 8px; }
.ot-footer a { color: var(--ot-on-dark-muted); text-decoration: none; }
.ot-footer a:hover { color: #fff; }
.ot-footer__bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--ot-on-dark-muted); }
.ot-footer__bottom nav { display: flex; gap: 18px; }
.ot-footer__bottom a { text-decoration: underline; }
/* Hide Astra's own footer when ours is active */
body.ot-has-footer .site-footer { display: none; }

/* ==========================================================================
   Inner pages (How it works, Become a tutor)
   ========================================================================== */
.ot-pagehead { background: var(--ot-wine-900); color: #fff; padding: 64px 0 56px; }
.ot-pagehead h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: #fff; }
.ot-pagehead p { margin-top: .8rem !important; color: var(--ot-on-dark); font-size: 1.05rem; max-width: 40rem; }
.ot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ot-list li { display: flex; gap: 16px; align-items: flex-start; }
.ot-list .ot-step__num { margin-top: 0; flex: 0 0 auto; }
.ot-list h3 { font-family: var(--ot-sans); font-size: 1rem; font-weight: 600; }
.ot-list p { margin-top: .3rem !important; color: var(--ot-ink-700); font-size: .9rem; line-height: 1.55; }
.ot-faq details { background: var(--ot-surface); border: 1px solid var(--ot-border); border-radius: 12px; padding: 16px 18px; }
.ot-faq details + details { margin-top: 10px; }
.ot-faq summary { cursor: pointer; font-weight: 600; }
.ot-faq details p { margin-top: .6rem !important; color: var(--ot-ink-700); font-size: .9rem; line-height: 1.55; }
.ot-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.ot-form input, .ot-form select, .ot-form textarea {
  width: 100%; border: 1px solid var(--ot-border) !important; border-radius: 10px !important; background: #fff !important;
  padding: .7rem .85rem !important; font: inherit; font-size: .9rem;
}
.ot-form input:focus, .ot-form select:focus, .ot-form textarea:focus { border-color: var(--ot-wine-600) !important; outline: 2px solid var(--ot-wine-100); }

/* ==========================================================================
   BookingPress accent polish
   ========================================================================== */
.bookingpress_front_step_wizard .active,
.bookingpress-step.active { color: var(--ot-wine-700) !important; }
.bookingpress_front_timeslot.selected,
.bookingpress_front_date.selected { background: var(--ot-wine-700) !important; border-color: var(--ot-wine-700) !important; color: #fff !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .ot-hero__grid, .ot-teach, .ot-panel { grid-template-columns: 1fr; }
  .ot-hero__media { justify-self: start; max-width: 100%; aspect-ratio: 16 / 10; }
  .ot-stats__grid { grid-template-columns: repeat(3, 1fr); }
  .ot-subjects { grid-template-columns: repeat(2, 1fr); }
  .ot-steps { grid-template-columns: 1fr; }
  .ot-panel__media { aspect-ratio: 16 / 10; }
  .ot-footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .ot-wrap { padding: 0 16px; }
  .ot-section { padding: 52px 0; }
  .ot-hero { padding: 48px 0; }
  .ot-search { flex-direction: column; align-items: stretch; padding: 8px; }
  .ot-search input { padding: .55rem .5rem !important; }
  .ot-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .ot-subjects, .ot-perks { grid-template-columns: 1fr; }
  .ot-banner { flex-direction: column; align-items: flex-start; padding: 22px; }
  .ot-panel { padding: 28px 22px; }
  .ot-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* Plugin blocks embedded inside designed pages */
.ot-embed .ot-ui { padding: 0; max-width: none; }
.ot-embed .ot-apply { max-width: none; }

/* Legal / policy pages (Terms, Privacy, Safeguarding, Tutor standards) */
.ot-legal { max-width: 780px; color: var(--ot-ink-700); font-size: 1rem; line-height: 1.7; }
.ot-legal h2 { font-size: 1.35rem; color: var(--ot-ink-900); margin: 2.2rem 0 .7rem; }
.ot-legal h3 { font-size: 1.02rem; font-family: var(--ot-sans, sans-serif); font-weight: 700; color: var(--ot-ink-900); margin: 1.4rem 0 .4rem; }
.ot-legal p { margin: 0 0 1rem; }
.ot-legal ul, .ot-legal ol { margin: 0 0 1.2rem 1.25rem; padding: 0; }
.ot-legal li { margin: 0 0 .45rem; }
.ot-legal a { color: var(--ot-wine-700); }
.ot-legal__callout { background: var(--ot-wine-50); border-left: 4px solid var(--ot-wine-700); border-radius: 10px; padding: 16px 20px; margin-bottom: 1.5rem; }
.ot-legal__callout p:last-child { margin-bottom: 0; }

/* Contact page */
.ot-contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ot-contact-side { display: grid; gap: 14px; }
.ot-contact-card { background: var(--ot-surface, #fff); border: 1px solid var(--ot-border); border-radius: 14px; padding: 18px 20px; }
.ot-contact-card h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.ot-contact-card p { font-size: .92rem; color: var(--ot-ink-700); margin: 0 0 .5rem !important; line-height: 1.55; }
.ot-contact-card p:last-child { margin-bottom: 0 !important; }
.ot-contact-card a { color: var(--ot-wine-700); font-weight: 600; }
.ot-contact-card--alert { background: var(--ot-wine-50); border-color: transparent; border-inline-start: 4px solid var(--ot-wine-700); }
@media (max-width: 860px) { .ot-contact-grid { grid-template-columns: 1fr; } }

/* =========================================================================
 * v2.3 — Islamic geometric look across the whole site
 * (eight-point star pattern, gold bands, arches, calligraphy accents)
 * ========================================================================= */
:root {
  --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");
  --ot-star-icon: 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='%23ffffff'/%3E%3C/svg%3E");
  --ot-band: repeating-linear-gradient(90deg, #e0b468 0 18px, #b98a3a 18px 22px, #e0b468 22px 40px);
}

/* Dark bands: hero, stats, page headers, banners, panel, footer */
.ot-hero, .ot-pagehead, .ot-panel, .ot-footer { position: relative; isolation: isolate; overflow: hidden; }
.ot-hero::before, .ot-pagehead::before, .ot-panel::before, .ot-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--ot-pat-star); background-size: 88px; opacity: .12; pointer-events: none;
}
.ot-footer::before { opacity: .06; }
.ot-hero { background: radial-gradient(110% 130% at 80% 10%, #5a1a27 0%, #3d1119 55%, #2a0a11 100%); padding: 84px 0 80px; }
.ot-stats { border-top: 0; }
.ot-stats::after, .ot-pagehead::after { content: ""; display: block; height: 6px; background: var(--ot-band); position: absolute; left: 0; right: 0; bottom: 0; }
.ot-stats { position: relative; padding-bottom: 34px; }
.ot-footer { border-top: 6px solid transparent; border-image: var(--ot-band) 6; }

/* Calligraphy watermark behind the hero text: «اقرأ» (Read) */
.ot-hero .ot-hero__grid > div:first-child { position: relative; }
.ot-hero .ot-hero__grid > div:first-child::before {
  content: "اقْرَأْ"; position: absolute; z-index: -1; top: -46px; inset-inline-start: -14px;
  font-family: "Amiri", "Noto Naskh Arabic", serif; font-size: 9rem; line-height: 1; color: #e0b468; opacity: .09; pointer-events: none;
}
/* Photo in a gold-framed arch (mihrab) */
.ot-arch, .ot-hero__media, .ot-teach__media, .ot-panel__media { position: relative; }
.ot-hero__media .ot-photo, .ot-arch .ot-photo { border-radius: 220px 220px 18px 18px !important; }
.ot-hero__media::after, .ot-arch::after {
  content: ""; position: absolute; inset: -10px; border: 2px solid rgba(224, 180, 104, .75); border-radius: 230px 230px 24px 24px; pointer-events: none;
  box-shadow: inset 0 0 0 6px rgba(224, 180, 104, .1);
}
.ot-hero__media { max-width: 380px; }

/* Ornamental section headings */
.ot-section-title, .ot-teach h2, .ot-paths h2 { display: flex; align-items: center; gap: 12px; }
.ot-section-title::before, .ot-teach h2::before, .ot-paths h2::before { content: ""; flex: 0 0 24px; height: 24px; background: center / contain no-repeat var(--ot-star-icon); }
.ot-head-row .ot-section-title { margin: 0; }

/* Subject badges become eight-point stars */
.ot-subject .ot-icon { clip-path: polygon(50% 0, 64% 15%, 85% 15%, 85% 36%, 100% 50%, 85% 64%, 85% 85%, 64% 85%, 50% 100%, 36% 85%, 15% 85%, 15% 64%, 0 50%, 15% 36%, 15% 15%, 36% 15%); border-radius: 0 !important; background: var(--ot-gold-100) !important; color: #8a5a12 !important; }
.ot-subject:hover .ot-icon { background: var(--ot-gold-500) !important; color: #2a0a11 !important; }

/* Step photos and other photos: arched tops */
.ot-step__media .ot-photo { border-radius: 120px 120px 14px 14px; }
.ot-teach__media .ot-photo, .ot-panel__media .ot-photo { border-radius: 200px 200px 18px 18px; }
.ot-panel { border: 1px solid rgba(224, 180, 104, .35); }
.ot-banner { position: relative; overflow: hidden; border: 1px solid rgba(224, 180, 104, .45); }
.ot-banner::after { content: ""; position: absolute; inset: 0; background-image: var(--ot-pat-star); background-size: 88px; opacity: .08; pointer-events: none; }

/* Page headers: calligraphy arch watermark («علم» = knowledge) */
.ot-pagehead { padding-bottom: 62px; }
.ot-pagehead .ot-wrap { position: relative; }
.ot-pagehead .ot-wrap::after {
  content: "عِلْم"; position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 24px;
  font-family: "Amiri", "Noto Naskh Arabic", serif; font-size: 7rem; line-height: 1; color: #e0b468; opacity: .14; pointer-events: none;
}

/* ---------- Home: "Choose your path" ---------- */
.ot-paths { padding: 72px 0 24px; }
.ot-paths__intro { color: var(--ot-ink-700); max-width: 42rem; margin-top: .4rem !important; }
.ot-paths__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.ot-path { display: flex; flex-direction: column; text-decoration: none !important; color: var(--ot-ink-900); background: #fff; border: 1px solid var(--ot-border); border-radius: 26px 26px 18px 18px; padding: 16px 16px 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ot-path:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(61, 17, 25, .12); border-color: var(--ot-gold-500); }
.ot-path__arch { position: relative; display: block; aspect-ratio: 4 / 4.4; border-radius: 200px 200px 14px 14px; overflow: hidden; background: var(--ot-wine-100); }
.ot-path__arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ot-path:hover .ot-path__arch img { transform: scale(1.04); }
.ot-path__arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20, 6, 9, .78)); }
.ot-path__script { position: absolute; z-index: 1; bottom: 14px; left: 0; right: 0; text-align: center; color: #f1d9a6; font-family: "Amiri", "Noto Naskh Arabic", serif; font-size: 2.6rem; line-height: 1.3; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.ot-path--urdu .ot-path__script { font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif; font-size: 2.3rem; line-height: 1.9; }
.ot-path strong { font-family: var(--ot-serif); font-size: 1.5rem; margin: 18px 4px 4px; }
.ot-path > span:not(.ot-path__arch) { color: var(--ot-ink-700); font-size: .95rem; margin: 0 4px; }
.ot-path em { font-style: normal; font-weight: 700; color: var(--ot-wine-700); margin: 14px 4px 0; }
.ot-path--quran .ot-path__arch { background: #0b3b33; }
.ot-path--urdu .ot-path__arch { background: #0b4d2c; }
@media (max-width: 900px) { .ot-paths__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* Verse band on the home page */
.ot-versebar { padding: 40px 0 12px; }
.ot-versebar .ot-verse { max-width: 820px; }

@media (max-width: 921px) {
  .ot-hero .ot-hero__grid > div:first-child::before { font-size: 6rem; top: -30px; }
  .ot-pagehead .ot-wrap::after { font-size: 4.5rem; opacity: .1; }
  .ot-hero__media::after { inset: -7px; }
}
/* Photo credits page */
.ot-credits { list-style: none; margin: 0 0 1.5rem !important; padding: 0; display: grid; gap: 14px; }
.ot-credit { display: flex; gap: 14px; align-items: center; }
.ot-credit img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.ot-credit div { display: flex; flex-direction: column; font-size: .92rem; }
html[lang="en"] .ot-path em::after { content: " →"; }
.ot-hero .ot-hero__grid > div:first-child::before { top: -6px; font-size: 7.5rem; opacity: .1; }
