/*
 * Session page (mentorship/session.blade.php) and its 410 sibling.
 * Mobile first: one column (intro → booking → content) with a sticky price
 * bar; from 992px the booking card is a sticky column on the right.
 * Every rule is scoped to .ssp / .ssp-* (and .ssp-rating inside the hero).
 */
.ssp, .ssp-rating {
    --ssp-brand: #4242d6;
    --ssp-brand-strong: #3634b8;
    --ssp-brand-tint: #ecebff;
    --ssp-brand-wash: #f6f5ff;
    --ssp-ink: #1c1c6e;
    --ssp-body: #403d59;
    --ssp-muted: #6e6a85;
    --ssp-line: #e4e2ee;
    --ssp-line-soft: #efeef5;
    --ssp-surface: #fff;
    --ssp-surface-2: #f8f7fc;
    --ssp-ok: #15803d;
    --ssp-ok-tint: #dcfce7;
    --ssp-warn: #92400e;
    --ssp-warn-tint: #fffbeb;
    --ssp-info-tint: #eff6ff;
    --ssp-info: #1e40af;
    --ssp-star: #f59e0b;
    --ssp-radius: 16px;
}

.ssp { padding: 24px 0 48px; color: var(--ssp-body); }

/* Rating line inside the dark hero. */
.ssp-rating {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0;
    font-size: 14px; line-height: 1.4; color: #fff;
}
.ssp-rating > span { display: inline-flex; align-items: center; gap: 6px; opacity: .88; }
.ssp-rating__stars { font-weight: 700; opacity: 1 !important; }
.ssp-rating__stars i { color: var(--ssp-star); font-size: 16px; line-height: 1; }
.ssp-rating__sep { opacity: .5 !important; }
.ssp-rating__new {
    padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: rgba(255, 255, 255, .14); opacity: 1 !important;
}

/* Owner banner: this is a preview of your own page. */
.ssp-owner {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
    padding: 12px 16px; border-radius: 12px; background: var(--ssp-brand-wash); color: var(--ssp-ink);
}
.ssp-owner i { font-size: 20px; line-height: 1; color: var(--ssp-brand); }
.ssp-owner p { flex: 1 1 16rem; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.45; }
.ssp-owner.is-draft { background: var(--ssp-warn-tint); color: var(--ssp-warn); }
.ssp-owner.is-draft i { color: var(--ssp-warn); }

/* Layout */
.ssp__grid {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px;
    grid-template-areas: "intro" "book" "main";
}
.ssp__intro { grid-area: intro; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ssp__book { grid-area: book; min-width: 0; }
.ssp__main { grid-area: main; display: flex; flex-direction: column; gap: 32px; min-width: 0; }

@media (min-width: 992px) {
    .ssp { padding-top: 40px; }
    .ssp__grid {
        grid-template-columns: minmax(0, 1fr) 340px; column-gap: 40px; row-gap: 32px;
        grid-template-areas: "intro book" "main book";
        align-items: start;
    }
    .ssp__book { grid-row: 1 / span 2; position: sticky; top: 96px; }
}

/* Cover */
.ssp-cover {
    position: relative; overflow: hidden; border-radius: var(--ssp-radius);
    aspect-ratio: 1200 / 630; background: var(--ssp-brand-wash);
}
.ssp-cover > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.ssp-cover > img { display: block; object-fit: cover; }
@media (min-width: 992px) { .ssp-cover { aspect-ratio: auto; height: 300px; } }


/* Facts: one wrapping chip row. */
.ssp-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ssp-facts li {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px;
    border-radius: 999px; background: var(--ssp-surface-2); border: 1px solid var(--ssp-line-soft);
    font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ssp-ink);
}
.ssp-facts i { font-size: 16px; line-height: 1; color: var(--ssp-muted); }
.ssp-facts li.is-deal { background: var(--ssp-ok-tint); border-color: transparent; color: var(--ssp-ok); }
.ssp-facts li.is-deal i { color: var(--ssp-ok); }

/* Mentor strip */
.ssp-mentor {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 72px;
    border: 1px solid var(--ssp-line); border-radius: 14px; background: var(--ssp-surface);
    color: inherit; text-decoration: none; transition: border-color .15s ease;
}
.ssp-mentor:hover { border-color: #c7c7f5; color: inherit; }
.ssp-mentor:focus-visible { outline: 2px solid var(--ssp-brand); outline-offset: 2px; }
.ssp-mentor img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.ssp-mentor__text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.ssp-mentor__name { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ssp-ink); }
.ssp-mentor__role { font-size: 13px; color: var(--ssp-muted); }
.ssp-mentor__link {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    font-size: 13px; font-weight: 700; color: var(--ssp-brand); line-height: 1;
}
.ssp-mentor__link i { font-size: 13px; line-height: 1; }
@media (max-width: 420px) {
    .ssp-mentor__link { font-size: 0; gap: 0; }
    .ssp-mentor__link i { font-size: 16px; }
}

/* Booking card */
.ssp-book {
    display: flex; flex-direction: column; gap: 12px; padding: 20px;
    border: 1px solid var(--ssp-line); border-radius: var(--ssp-radius); background: var(--ssp-surface);
    box-shadow: 0 1px 2px rgba(28, 28, 110, .05), 0 8px 24px rgba(28, 28, 110, .06);
}
.ssp-book__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.ssp-book__amount { font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--ssp-ink); white-space: nowrap; }
.ssp-book__amount.is-free { color: var(--ssp-ok); }
.ssp-book__was { font-size: 15px; font-weight: 500; color: var(--ssp-muted); text-decoration: line-through; }
.ssp-book__unit { font-size: 13px; color: var(--ssp-muted); }
.ssp-book__deal {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0;
    padding: 10px 12px; border-radius: 10px; background: var(--ssp-surface-2);
    font-size: 13px; line-height: 1.45; color: var(--ssp-body);
}
.ssp-book__deal i { font-size: 16px; line-height: 1; color: var(--ssp-ok); }
.ssp-book__deal strong { color: var(--ssp-ink); }
.ssp-book__save {
    padding: 2px 8px; border-radius: 999px; background: var(--ssp-ok-tint); color: var(--ssp-ok);
    font-size: 12px; font-weight: 700; white-space: nowrap;
}
.ssp-book__status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--ssp-ok); }
.ssp-book__status.is-off { color: var(--ssp-muted); }
.ssp-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ssp-book__actions { display: flex; flex-direction: column; gap: 8px; }
.ssp-book__hint { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ssp-muted); }
.ssp-book__note {
    display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; line-height: 1.45; color: var(--ssp-muted);
}
.ssp-book__note i { flex: none; font-size: 16px; line-height: 1; }
.ssp-book__note.is-ok { color: var(--ssp-ok); font-weight: 600; }
.ssp-book__note.is-info { padding: 10px 12px; border-radius: 10px; background: var(--ssp-info-tint); color: var(--ssp-info); }
.ssp-book__note.is-info a { font-weight: 700; color: inherit; text-decoration: underline; }
.ssp-book__coin {
    display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin: 0; padding: 4px 12px;
    border-radius: 999px; background: #fef3c7; border: 1px solid #fcd34d; color: #78350f; font-size: 12px; font-weight: 700;
}
.ssp-book__coin img { display: block; width: 14px; height: 14px; }
.ssp-book .waitlist-cta { margin-top: 0; }

/* Buttons */
.ssp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
    font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ssp-btn:focus-visible { outline: 2px solid var(--ssp-brand); outline-offset: 2px; }
.ssp-btn--primary { background: var(--ssp-brand); color: #fff; }
.ssp-btn--primary:hover { background: var(--ssp-brand-strong); color: #fff; }
.ssp-btn--secondary { background: var(--ssp-surface); border-color: #c7c7f5; color: var(--ssp-brand); }
.ssp-btn--secondary:hover { border-color: var(--ssp-brand); color: var(--ssp-brand); }
.ssp-btn--block { width: 100%; }

/* Content blocks */
.ssp-block { display: flex; flex-direction: column; gap: 12px; }
.ssp-block > h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ssp-ink); text-wrap: balance; }

/* The mentor's own text: each paragraph and list item takes its own
   direction, so English and Arabic both read from their own start. */
.ssp-prose { font-size: 15px; line-height: 1.7; color: var(--ssp-body); overflow-wrap: anywhere; }
.ssp-prose > *, .ssp-prose li, .ssp-prose__h { unicode-bidi: plaintext; text-align: start; }
.ssp-prose p { margin: 0 0 12px; }
.ssp-prose > :last-child { margin-bottom: 0; }
.ssp-prose strong { font-weight: 700; color: var(--ssp-ink); }
.ssp-prose a { color: var(--ssp-brand); text-decoration: underline; }
.ssp-prose ul, .ssp-prose ol { margin: 0 0 12px; padding-inline-start: 22px; }
.ssp-prose ul { list-style: disc; }
.ssp-prose ol { list-style: decimal; }
.ssp-prose li + li { margin-top: 6px; }
.ssp-prose :is(h3, h4, h5) { margin: 16px 0 6px; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ssp-ink); }
.ssp-prose blockquote { margin: 0 0 12px; padding-inline-start: 14px; border-inline-start: 3px solid var(--ssp-line); color: var(--ssp-muted); }
.ssp-lead { font-size: 16px; }

/* "Who it's for" and outcomes: lists as a checklist. */
.ssp-prose--checks ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ssp-prose--checks ul li { margin: 0; padding-block: 12px; position: relative; border-radius: 12px; background: var(--ssp-surface-2); }
.ssp-prose--checks ul li + li { margin-top: 0; }
.ssp-prose--checks ul li::before {
    content: ""; position: absolute; inset-inline-start: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--ssp-ok-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ssp-prose--checks ul li { padding-inline-start: 44px; padding-inline-end: 14px; }

/* Agenda: numbered steps. */
.ssp-prose--steps ol { list-style: none; padding: 0; counter-reset: ssp-step; display: flex; flex-direction: column; gap: 10px; }
.ssp-prose--steps ol li { counter-increment: ssp-step; position: relative; margin: 0; padding-inline-start: 40px; min-height: 28px; }
.ssp-prose--steps ol li::before {
    content: counter(ssp-step); position: absolute; inset-inline-start: 0; top: 0;
    display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--ssp-brand-tint); color: var(--ssp-brand); font-size: 13px; font-weight: 800; line-height: 1;
}

/* Goals and level */
.ssp-tags { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ssp-tags > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ssp-tags dt { font-size: 13px; font-weight: 600; color: var(--ssp-muted); min-width: 4.5rem; }
.ssp-tags dd { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ssp-tag {
    display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px;
    background: var(--ssp-brand-tint); color: var(--ssp-brand-strong); font-size: 13px; font-weight: 600;
}

/* What's included */
.ssp-included { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ssp-included li {
    display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px;
    border: 1px solid var(--ssp-line-soft); border-radius: 12px; background: var(--ssp-surface);
    font-size: 14px; font-weight: 600; color: var(--ssp-ink);
}
.ssp-included i { flex: none; font-size: 20px; line-height: 1; color: var(--ssp-brand); }

/* About: long text folds after ~12 lines. */
.ssp-prose__h { margin: 20px 0 6px; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ssp-ink); }
.ssp-clamp__body > .ssp-prose__h:first-child { margin-top: 0; }
.ssp-clamp.is-clamped .ssp-clamp__body {
    max-height: calc(1.7em * 12); overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.ssp-clamp__toggle, .ssp-link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; width: fit-content;
    background: none; border: 0; font-size: 14px; font-weight: 700; color: var(--ssp-brand); line-height: 1; cursor: pointer; text-decoration: none;
}
.ssp-link i { font-size: 13px; line-height: 1; }
.ssp-clamp__toggle:hover, .ssp-link:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--ssp-brand); }
.ssp-clamp__toggle:focus-visible, .ssp-link:focus-visible { outline: 2px solid var(--ssp-brand); outline-offset: 2px; border-radius: 6px; }

.ssp-owner-hint {
    display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px;
    background: var(--ssp-warn-tint); color: var(--ssp-warn); font-size: 14px; line-height: 1.45;
}
.ssp-owner-hint i { flex: none; font-size: 18px; line-height: 1; }
.ssp-owner-hint a { font-weight: 700; color: inherit; text-decoration: underline; }

/* Questions */
.ssp-faq { border-top: 1px solid var(--ssp-line-soft); }
.ssp-faq__item { border-bottom: 1px solid var(--ssp-line-soft); }
.ssp-faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 0;
    list-style: none; cursor: pointer; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ssp-ink);
}
.ssp-faq__item summary::-webkit-details-marker { display: none; }
.ssp-faq__item summary i { flex: none; font-size: 14px; line-height: 1; color: var(--ssp-muted); transition: transform .15s ease; }
.ssp-faq__item[open] summary i { transform: rotate(180deg); }
.ssp-faq__item summary:focus-visible { outline: 2px solid var(--ssp-brand); outline-offset: 2px; border-radius: 6px; }
.ssp-faq__item .ssp-prose { padding-bottom: 16px; }

/* More sessions: one row, never a wrapped 4th card. */
.ssp-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .ssp-more { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ssp-more__card {
    display: flex; flex-direction: column; height: 100%; overflow: hidden;
    border: 1px solid var(--ssp-line); border-radius: 14px; background: var(--ssp-surface);
    color: inherit; text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ssp-more__card:hover { border-color: #c7c7f5; box-shadow: 0 14px 32px -18px rgba(28, 28, 110, .35); transform: translateY(-2px); color: inherit; }
.ssp-more__card:focus-visible { outline: 2px solid var(--ssp-brand); outline-offset: 2px; }
/* The cover, with the generated one underneath a missing image. */
.ssp-more__cover { position: relative; display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: #1b1746; }
.ssp-more__cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ssp-more__card:hover .ssp-more__cover > img, .ssp-more__card:hover .ssp-more__cover .msc__art { transform: scale(1.04); }
.ssp-more__cover .msc__art { transition: transform .35s ease; }
/* The card body names the session; the cover is only the picture. */
.ssp-more__cover .msc .msc__content, .ssp-more__cover .msc .msc__scrim { display: none; }
/* Live status on the cover: can I book it now? */
.ssp-more__status {
    position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .94); font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--ssp-muted);
}
.ssp-more__status.is-open { color: var(--ssp-ok); }
.ssp-more__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ssp-more__status.is-open .ssp-more__pulse::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor;
    animation: ssp-pulse 1.8s ease-out infinite;
}
@keyframes ssp-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
.ssp-more__body { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; padding: 14px 16px 16px; }
.ssp-more__title {
    font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ssp-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: start;
}
.ssp-more__card:hover .ssp-more__title { color: var(--ssp-brand); }
.ssp-more__meta { display: flex; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ssp-muted); }
.ssp-more__dot { margin-inline: 6px; color: #c9c6da; font-weight: 800; }
.ssp-more__rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ssp-body); font-weight: 600; }
.ssp-more__rating i { color: var(--ssp-star); line-height: 1; }
.ssp-more__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.ssp-more__price { font-size: 15px; font-weight: 800; color: var(--ssp-ink); }
.ssp-more__price.is-free { color: var(--ssp-ok); }
.ssp-more__go { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ssp-brand); }
.ssp-more__go i { font-size: 14px; line-height: 1; transition: transform .2s ease; }
.ssp-more__card:hover .ssp-more__go i { transform: translateX(3px); }
[dir="rtl"] .ssp-more__card:hover .ssp-more__go i { transform: translateX(-3px); }
@media (prefers-reduced-motion: reduce) {
    .ssp-more__card, .ssp-more__cover > img, .ssp-more__cover .msc__art, .ssp-more__go i { transition: none; }
    .ssp-more__card:hover { transform: none; }
    .ssp-more__status.is-open .ssp-more__pulse::after { animation: none; }
}

/* Sticky price bar (phones) */
.ssp-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 900;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--ssp-surface); border-top: 1px solid var(--ssp-line);
    box-shadow: 0 -6px 20px rgba(28, 28, 110, .08);
}
.ssp-bar[hidden] { display: none; }
.ssp-bar__price { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.ssp-bar .ssp-book__amount { font-size: 20px; }
.ssp-bar .ssp-btn { flex: none; }
body.ssp-has-bar { padding-bottom: 72px; }
@media (min-width: 992px) { .ssp-bar { display: none !important; } body.ssp-has-bar { padding-bottom: 0; } }

/* 410: the mentor isn't taking bookings. */
.ssp-gone { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 760px; }
.ssp-gone h1 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.25; color: var(--ssp-ink); }
.ssp-gone p { margin: 0; font-size: 15px; line-height: 1.6; }
.ssp-gone .ssp-block, .ssp-gone .ssp-more { width: 100%; }

@media (prefers-reduced-motion: reduce) {
    .ssp-faq__item summary i, .ssp-btn, .ssp-mentor, .ssp-more__card { transition: none; }
}
