/*
 * Learneva - Instructor profile "Mentor Profile" (Nov 2026). Scoped to .mp.
 * Palette: navy #185079, deep #0b1f35, blue #2563eb, green #16a34a, ink #0f172a.
 */
.mp {
    --m-navy: #185079;
    --m-deep: #0b1f35;
    --m-blue: #2563eb;
    --m-green: #16a34a;
    --m-ink: #0f172a;
    --m-text: #334155;
    --m-muted: #64748b;
    --m-line: #e6ebf2;
    --m-bg: #f6f8fc;
    background: var(--m-bg);
    font-family: 'Inter', sans-serif;
    color: var(--m-text);
}
.mp a { text-decoration: none; }

/* ============================ HERO ============================ */
.mp-hero {
    position: relative; overflow: hidden;
    padding: 28px 0 110px;
    color: #fff;
    background: linear-gradient(125deg, var(--m-deep) 0%, #0f2f52 45%, var(--m-navy) 75%, #1d4ed8 120%);
}
.mp-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.mp-hero__glow { position: absolute; right: 8%; top: 50%; width: 560px; height: 560px; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(34, 197, 94, .28), rgba(37, 99, 235, .18) 45%, transparent 70%); filter: blur(10px); }

.mp-crumbs { position: relative; z-index: 1; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
.mp-crumbs a { color: rgba(255, 255, 255, .8); }
.mp-crumbs a:hover { color: #fff; }

.mp-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.mp-verified { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: 12.5px; font-weight: 700; }
.mp-verified i { color: #86efac; }
.mp .mp-name { margin: 18px 0 14px; padding: 0; font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: #fff; }
.mp-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; }
.mp-pills li { padding: 7px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.mp-pills li:first-child { background: linear-gradient(135deg, rgba(134, 239, 172, .25), rgba(125, 211, 252, .2)); border-color: rgba(134, 239, 172, .45); color: #fff; }

.mp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border: 0; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .2s; }
.mp-btn--primary { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 14px 28px -14px rgba(22, 163, 74, .9); }
.mp-btn--primary:hover { filter: brightness(1.07); transform: translateY(-1px); color: #fff; }
.mp-btn--glass { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.mp-btn--glass:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.mp-btn--block { width: 100%; }
.mp-icon-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: #fff; color: var(--m-navy); font-size: 17px; transition: transform .2s; }
.mp-icon-btn:hover { transform: translateY(-2px); color: var(--m-blue); }

/* Orbit */
.mp-orbit { --size: 420px; --r: 190px; position: relative; justify-self: center; width: var(--size); height: var(--size); }
.mp-orbit__ring { position: absolute; inset: 16px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .22); }
.mp-orbit__ring--2 { inset: 80px; border: 1px solid rgba(255, 255, 255, .12); }
.mp-orbit__photo {
    position: absolute; left: 50%; top: 50%;
    width: 220px; height: 220px; margin: -110px 0 0 -110px;
    padding: 6px; border-radius: 50%;
    background: conic-gradient(from 0deg, #22c55e, #38bdf8, #2563eb, #22c55e);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 12px rgba(255, 255, 255, .05);
}
.mp-orbit__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 5px solid var(--m-deep); }
.mp-orbit__track { list-style: none; position: absolute; inset: 0; margin: 0; padding: 0; animation: mp-spin 70s linear infinite; }
.mp-orbit__track li {
    --a: calc(360deg / var(--n) * var(--i));
    position: absolute; left: 50%; top: 50%; width: 0; height: 0;
    transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a)));
}
.mp-orbit__track span {
    position: absolute; left: 0; top: 0;
    padding: 7px 13px; white-space: nowrap;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95); color: var(--m-navy);
    font-size: 12.5px; font-weight: 700;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7);
    animation: mp-counter 70s linear infinite;
}
.mp-orbit__track li:nth-child(3n+2) span { background: #dcfce7; color: #166534; }
.mp-orbit__track li:nth-child(3n+3) span { background: #dbeafe; color: #1e40af; }
@keyframes mp-spin { to { transform: rotate(360deg); } }
@keyframes mp-counter { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
.mp-orbit:hover .mp-orbit__track, .mp-orbit:hover .mp-orbit__track span { animation-play-state: paused; }

/* ============================ STATS ============================ */
.mp-stats {
    position: relative; z-index: 3;
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin-top: -64px;
    background: #fff;
    border: 1px solid var(--m-line); border-radius: 22px;
    box-shadow: 0 30px 60px -34px rgba(15, 42, 80, .6);
    overflow: hidden;
}
.mp-stats > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 22px 24px; }
.mp-stats > div + div { border-left: 1px solid var(--m-line); }
.mp-stats i { width: 40px; height: 40px; margin-bottom: 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, #e0e9ff, #dcfce7); color: var(--m-navy); font-size: 16px; }
.mp-stats > div:last-child i { color: #f59e0b; }
.mp-stats b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--m-ink); }
.mp-stats span { font-size: 13px; color: var(--m-muted); }

/* ============================ BODY ============================ */
.mp-body { padding: 30px 0 70px; }
.mp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.mp-block { margin-bottom: 22px; padding: 28px 30px; background: #fff; border: 1px solid var(--m-line); border-radius: 22px; box-shadow: 0 14px 34px -30px rgba(15, 42, 80, .6); scroll-margin-top: 100px; }
.mp-block--plain { padding: 0; background: transparent; border: 0; box-shadow: none; }
.mp .mp-h { margin: 0 0 16px; padding: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; color: var(--m-ink); }
.mp-h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.mp-h-row .mp-h { margin: 0; }
.mp-count { font-size: 13.5px; font-weight: 600; color: var(--m-muted); }
.mp-muted { margin: 0; color: var(--m-muted); }

.mp-prose { font-size: 15px; line-height: 1.8; color: var(--m-text); }
.mp-prose p { margin: 0 0 12px; }
.mp-collapsible { position: relative; max-height: 260px; overflow: hidden; }
.mp-collapsible::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.mp-collapsible.is-open { max-height: none; }
.mp-collapsible.is-open::after { display: none; }
.mp-more { margin-top: 10px; padding: 8px 16px; border: 1px solid var(--m-line); border-radius: 10px; background: #fff; color: var(--m-blue); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.mp-more:hover { background: #f5f8ff; }

.mp-skills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.mp-skills li { padding: 8px 14px; border-radius: 999px; background: #f1f5f9; border: 1px solid var(--m-line); font-size: 13.5px; font-weight: 600; color: var(--m-text); transition: all .15s; }
.mp-skills li:hover { border-color: #c7d2fe; background: #eef3ff; color: var(--m-navy); }
.mp-skills li.is-key { background: linear-gradient(135deg, var(--m-navy), var(--m-blue)); border-color: transparent; color: #fff; }
.mp-skills li.is-key i { color: #86efac; font-size: 11px; }

/* Course cards */
.mp-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.mp-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--m-line); border-radius: 20px; overflow: hidden; box-shadow: 0 14px 30px -26px rgba(15, 42, 80, .6); transition: transform .2s, box-shadow .2s; }
.mp-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(15, 42, 80, .6); }
.mp-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e8eef6; }
.mp-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mp-card:hover .mp-card__img img { transform: scale(1.05); }
.mp-card__level { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--m-navy); }
.mp-card__wish { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #94a3b8; cursor: pointer; transition: color .15s, transform .15s; }
.mp-card__wish:hover { color: #e11d48; transform: scale(1.1); }
.mp-card__wish.red-heart { color: #e11d48; }
.mp-card__body { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 18px; }
.mp-card__title { font-size: 16px; font-weight: 800; line-height: 1.35; color: var(--m-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-card__title:hover { color: var(--m-blue); }
.mp-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 14px; font-size: 12.5px; font-weight: 600; color: var(--m-muted); }
.mp-card__meta i { color: var(--m-blue); margin-right: 3px; }
.mp-card__meta i.fa-star { color: #cbd5e1; }
.mp-card__meta i.fa-star.on { color: #f59e0b; }
.mp-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--m-line); }
.mp-card__foot b { font-size: 18px; font-weight: 800; color: var(--m-ink); }
.mp-card__foot b.is-free { color: var(--m-green); }
.mp-card__foot del { font-size: 13px; font-weight: 500; color: #94a3b8; }
.mp-card__go { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: var(--m-ink); color: #fff; font-size: 13px; font-weight: 700; }
.mp-card__go:hover { background: var(--m-blue); color: #fff; }

/* Contact card */
.mp-contact { position: sticky; top: 96px; padding: 22px; background: #fff; border: 1px solid var(--m-line); border-radius: 22px; box-shadow: 0 24px 50px -34px rgba(15, 42, 80, .6); }
.mp-contact__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px dashed var(--m-line); }
.mp-contact__head img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.mp-contact__head b { display: block; font-size: 16px; color: var(--m-ink); }
.mp-contact__head small { font-size: 13px; color: var(--m-muted); }
.mp-contact__list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.mp-contact__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--m-ink); min-width: 0; }
.mp-contact__list i { flex: 0 0 36px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: #eef3ff; color: var(--m-blue); font-size: 14px; }
.mp-contact__list span { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.mp-contact__list small { font-size: 12px; color: var(--m-muted); }
.mp-contact__list a { color: var(--m-ink); font-weight: 600; }
.mp-contact__list a:hover { color: var(--m-blue); }
.mp-contact__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mp-contact__social a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--m-line); font-size: 13.5px; font-weight: 700; color: var(--m-text); }
.mp-contact__social a:hover { border-color: #0a66c2; color: #0a66c2; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1199px) {
    .mp .mp-name { font-size: 44px; }
    .mp-orbit { --size: 380px; --r: 170px; }
}
@media (max-width: 991px) {
    .mp-hero { padding: 22px 0 96px; }
    .mp-hero__grid { grid-template-columns: 1fr; gap: 10px; }
    .mp-orbit { order: -1; --size: 340px; --r: 150px; }
    .mp-orbit__photo { width: 170px; height: 170px; margin: -85px 0 0 -85px; }
    .mp-hero__copy { text-align: center; }
    .mp-pills, .mp-actions { justify-content: center; }
    .mp-layout { grid-template-columns: 1fr; }
    .mp-contact { position: static; }
    .mp-stats { grid-template-columns: repeat(2, 1fr); }
    .mp-stats > div:nth-child(3) { border-left: 0; }
    .mp-stats > div:nth-child(n+3) { border-top: 1px solid var(--m-line); }
}
@media (max-width: 575px) {
    .mp .mp-name { font-size: 34px; }
    .mp-orbit { --size: 230px; }
    .mp-orbit__track { display: none; }   /* skills are listed below on small phones */
    .mp-orbit__ring--2 { display: none; }
    .mp-orbit__photo { width: 160px; height: 160px; margin: -80px 0 0 -80px; }
    .mp-block { padding: 22px 18px; }
    .mp-stats > div { padding: 16px; }
    .mp-stats b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .mp-orbit__track, .mp-orbit__track span { animation: none !important; }
    .mp-orbit__track span { transform: translate(-50%, -50%); }
    .mp *, .mp *::before, .mp *::after { transition: none !important; }
}
