/* ==========================================================================
   Destination guides (/study-in/...) and mentor profiles (/mentors/...).
   Logical properties (inline-start/end) so Arabic mirrors by itself.
   ========================================================================== */

/* ---------- breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .86rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "›"; color: var(--line-strong); }
[dir="rtl"] .crumbs li + li::before { content: "‹"; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }

/* ---------- destination hero ---------- */
.dest-head { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
.dest-flag { flex: none; width: 76px; height: 76px; border-radius: 50%; box-shadow: 0 10px 24px rgba(12, 26, 74, .18); }
.dest-head h1 { margin: 4px 0 0; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.12; }
.dest-hero .section-lead { max-width: 720px; }
.dest-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- mentor cards ---------- */
.seo-mentors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.seo-mentor {
    display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
    transition: border-color .15s, box-shadow .2s, transform .2s;
}
.seo-mentor:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.seo-avatar, .mp-avatar {
    flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
    background: var(--brand-50); color: var(--brand); font-weight: 800;
}
.seo-avatar { width: 56px; height: 56px; font-size: 1.05rem; }
.seo-avatar img, .mp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seo-mentor-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.seo-mentor-body strong { font-size: 1.02rem; }
.seo-mentor-body > span:not(.seo-price) { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-price, .mp-rate { font-weight: 800; color: var(--brand-800); font-size: .92rem; }
.seo-price small, .mp-rate small { font-weight: 600; color: var(--muted); font-size: .78rem; }
.seo-more { margin-top: 22px; }
.seo-empty {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 24px; border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: var(--surface);
}
.seo-empty p { margin: 0; max-width: 560px; }

/* ---------- guide ---------- */
.dest-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.dest-guide-item { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.dest-guide-item h3 { margin: 0 0 8px; font-size: 1.08rem; }
.dest-guide-item p { margin: 0; line-height: 1.7; color: var(--text); }
.dest-guide-item.is-mentor { background: var(--brand-800); border-color: var(--brand-800); }
.dest-guide-item.is-mentor h3 { color: #fff; }
.dest-guide-item.is-mentor p { color: #d7defa; }
.dest-note { display: flex; align-items: flex-start; gap: 8px; margin: 20px 0 0; color: var(--muted); font-size: .9rem; }
.dest-note .material-symbols-outlined { font-size: 20px; color: var(--brand); }

/* ---------- chips (other destinations, mentor destinations and topics) ---------- */
.dest-other-title { font-size: 1.15rem; margin: 0 0 14px; }
.dest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dest-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
    padding-inline: 6px 14px; background: var(--surface); border: 1px solid var(--line);
    color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none;
}
.dest-chip img { width: 22px; height: 22px; border-radius: 50%; }
.dest-chip.is-plain { padding-inline: 14px; background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-800); }
a.dest-chip:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- mentor profile ---------- */
.mp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.mp-avatar { width: 112px; height: 112px; font-size: 2rem; box-shadow: 0 12px 28px rgba(12, 26, 74, .16); border: 4px solid #fff; }
.mp-id h1 { margin: 4px 0 2px; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; }
.mp-sub { margin: 0; color: var(--muted); font-weight: 600; }
.mp-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mp-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--text);
}
.mp-badge .material-symbols-outlined { font-size: 18px; color: var(--brand); }
.mp-badge.is-verified { background: var(--success-bg); border-color: transparent; color: var(--success); }
.mp-badge.is-verified .material-symbols-outlined { color: var(--success); }
.mp-book {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 18px 20px; min-width: 240px;
    border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.mp-rate-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mp-rate { font-size: 1.25rem; margin-bottom: 8px; }
.mp-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.mp-main h2, .mp-side h2 { font-size: 1.1rem; margin: 0 0 12px; }
.mp-main h2:not(:first-child), .mp-side h2:not(:first-child) { margin-top: 30px; }
.mp-bio p { line-height: 1.8; margin: 0 0 12px; unicode-bidi: plaintext; }
.mp-records { display: flex; flex-direction: column; gap: 12px; }
.mp-record {
    display: flex; flex-direction: column; gap: 2px; padding-inline-start: 14px;
    border-inline-start: 3px solid var(--brand-200);
}
.mp-record span { color: var(--muted); font-size: .9rem; }
.mp-side { padding: 22px; border-radius: var(--radius-lg); background: var(--canvas); border: 1px solid var(--line); }
.mp-langs { margin: 0; }

@media (max-width: 860px) {
    .mp-head { grid-template-columns: auto minmax(0, 1fr); }
    .mp-book { grid-column: 1 / -1; min-width: 0; }
    .mp-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
    .dest-head { gap: 14px; }
    .dest-flag { width: 56px; height: 56px; }
    .mp-head { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
    .mp-badges { justify-content: center; }
    .mp-book { width: 100%; }
    .dest-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- the mentor's own touches: theme, headline, video, packages ---------- */
.mp-page .page-hero { background: linear-gradient(180deg, var(--theme-soft), var(--surface) 92%); }
.mp-page .eyebrow { color: var(--theme); }
.mp-page .eyebrow::before { background: var(--theme); }
.mp-page .btn-primary { background: var(--theme); border-color: var(--theme); }
.mp-page .btn-primary:hover { background: var(--theme-ink); border-color: var(--theme-ink); }
.mp-page .mp-rate, .mp-page .mp-avatar { color: var(--theme-ink); }
.mp-page .mp-avatar { background: var(--theme-soft); }
.mp-page .mp-record { border-inline-start-color: var(--theme); }
.mp-headline { margin: 10px 0 0; font-size: 1.08rem; font-weight: 600; color: var(--ink); max-width: 620px; unicode-bidi: plaintext; }
.mp-highlights { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mp-highlights li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; unicode-bidi: plaintext; }
.mp-highlights .material-symbols-outlined { font-size: 20px; color: var(--theme); }

.mp-video {
    position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px;
    background: radial-gradient(circle at 30% 20%, var(--theme), var(--theme-ink));
}
.mp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mp-video-play {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    border: 0; background: transparent; color: #fff; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.05rem;
}
.mp-video-play .material-symbols-outlined { font-size: 72px; transition: transform .2s; }
.mp-video-play:hover .material-symbols-outlined, .mp-video-play:focus-visible .material-symbols-outlined { transform: scale(1.08); }
.mp-video-play small { font-weight: 500; opacity: .8; font-size: .8rem; }

.mp-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 8px; }
.mp-offer {
    display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, box-shadow .2s;
}
.mp-offer:hover { border-color: var(--theme); box-shadow: var(--shadow-sm); }
.mp-offer.is-standard { background: var(--theme-soft); border-color: transparent; }
.mp-offer h3 { margin: 0; font-size: 1.02rem; unicode-bidi: plaintext; }
.mp-offer p { margin: 0; color: var(--text); font-size: .92rem; line-height: 1.6; unicode-bidi: plaintext; white-space: pre-line; }
.mp-offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.mp-offers-note { margin: 0 0 30px; color: var(--muted); font-size: .86rem; }
.mp-main > h2:first-child + .mp-video { margin-top: 0; }
.mp-offer-foot .mp-rate { white-space: nowrap; line-height: 1.2; }
.mp-offer-foot .mp-rate small { display: block; margin-top: 2px; }
.mp-offer-count {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
    background: var(--theme-soft); color: var(--theme-ink); font-size: .78rem; font-weight: 700;
}
.mp-offer-count .material-symbols-outlined { font-size: 16px; }

/* ---------- a mentor's own sections ---------- */
.mp-section { margin-top: 30px; }
.mp-section h2 { margin: 0 0 12px; }
.mp-section-photo { display: block; width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 14px; background: var(--canvas); }
.mp-section .mp-video { margin: 14px 0 0; }
