/* ===== Mentor Page ===== */
.mentor-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.mentor-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.mentor-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1060px;
    margin: 0 auto;
}

/* Container */
.m-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Sections */
.m-section {
    padding: var(--space-xl) 0;
}

.m-section + .m-section {
    border-top: 1px solid var(--color-border);
}

/* Section titles */
.m-section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.m-section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

/* ===== HERO ===== */
.m-hero-section {
    padding-bottom: var(--space-lg);
}

.m-hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-lg);
}

.m-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-sm);
}

.m-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.m-tagline {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.m-hero-portrait {
    width: 200px;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.m-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bio */
.m-bio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.m-bio-col h2 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.m-bio-list {
    list-style: none;
    padding: 0;
}

.m-bio-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.m-bio-list li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--color-text-tertiary);
}

/* ===== EXPERTISE ===== */
.m-expertise-section {
    background: var(--color-bg);
}

.m-expertise-block {
    margin-bottom: var(--space-lg);
}

.m-expertise-block:last-child {
    margin-bottom: 0;
}

.m-block-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* Tag groups */
.m-tag-groups {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.m-tag-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.m-tag-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-tertiary);
}

/* Tags */
.m-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.m-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    line-height: 1.4;
}

/* Tag colors */
.tag-science {
    background: #e8f5e9;
    color: #2e7d32;
}
[data-theme="dark"] .tag-science {
    background: #1b3a1e;
    color: #81c784;
}

.tag-service {
    background: #fce4ec;
    color: #c62828;
}
[data-theme="dark"] .tag-service {
    background: #3e1a22;
    color: #ef9a9a;
}

.tag-validation {
    background: #fff3e0;
    color: #e65100;
}
[data-theme="dark"] .tag-validation {
    background: #3e2a10;
    color: #ffb74d;
}

.tag-grants {
    background: #e3f2fd;
    color: #1565c0;
}
[data-theme="dark"] .tag-grants {
    background: #0d2e4a;
    color: #64b5f6;
}

.tag-tech {
    background: #ede7f6;
    color: #4527a0;
}
[data-theme="dark"] .tag-tech {
    background: #261a4a;
    color: #b39ddb;
}

.tag-research {
    background: #e0f2f1;
    color: #00695c;
}
[data-theme="dark"] .tag-research {
    background: #0d3b36;
    color: #80cbc4;
}

.tag-arts {
    background: #f3e5f5;
    color: #6a1b9a;
}
[data-theme="dark"] .tag-arts {
    background: #2e1245;
    color: #ce93d8;
}

/* Dark mode via media query */
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) .tag-science { background: #1b3a1e; color: #81c784; }
    html:not([data-theme]) .tag-service { background: #3e1a22; color: #ef9a9a; }
    html:not([data-theme]) .tag-validation { background: #3e2a10; color: #ffb74d; }
    html:not([data-theme]) .tag-grants { background: #0d2e4a; color: #64b5f6; }
    html:not([data-theme]) .tag-tech { background: #261a4a; color: #b39ddb; }
    html:not([data-theme]) .tag-research { background: #0d3b36; color: #80cbc4; }
    html:not([data-theme]) .tag-arts { background: #2e1245; color: #ce93d8; }
    html:not([data-theme]) .prog-science { border-color: #2e7d32; background: #1b3a1e; }
    html:not([data-theme]) .prog-science .prog-theme { color: #81c784; }
    html:not([data-theme]) .prog-math { border-color: #1565c0; background: #0d2e4a; }
    html:not([data-theme]) .prog-math .prog-theme { color: #64b5f6; }
    html:not([data-theme]) .prog-entrepreneurship { border-color: #e65100; background: #3e2a10; }
    html:not([data-theme]) .prog-entrepreneurship .prog-theme { color: #ffb74d; }
    html:not([data-theme]) .prog-multi { border-color: #6a1b9a; background: #2e1245; }
    html:not([data-theme]) .prog-multi .prog-theme { color: #ce93d8; }
}

/* Programs grid */
.m-programs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.m-program {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1.5px solid;
    min-width: 110px;
    text-align: center;
}

.prog-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
}

.prog-theme {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
}

/* Program colors */
.prog-science {
    border-color: #2e7d32;
    background: #e8f5e920;
}
.prog-science .prog-theme { color: #2e7d32; }

.prog-math {
    border-color: #1565c0;
    background: #e3f2fd20;
}
.prog-math .prog-theme { color: #1565c0; }

.prog-entrepreneurship {
    border-color: #e65100;
    background: #fff3e020;
}
.prog-entrepreneurship .prog-theme { color: #e65100; }

.prog-multi {
    border-color: #6a1b9a;
    background: #f3e5f520;
}
.prog-multi .prog-theme { color: #6a1b9a; }

[data-theme="dark"] .prog-science { border-color: #2e7d32; background: #1b3a1e; }
[data-theme="dark"] .prog-science .prog-theme { color: #81c784; }
[data-theme="dark"] .prog-math { border-color: #1565c0; background: #0d2e4a; }
[data-theme="dark"] .prog-math .prog-theme { color: #64b5f6; }
[data-theme="dark"] .prog-entrepreneurship { border-color: #e65100; background: #3e2a10; }
[data-theme="dark"] .prog-entrepreneurship .prog-theme { color: #ffb74d; }
[data-theme="dark"] .prog-multi { border-color: #6a1b9a; background: #2e1245; }
[data-theme="dark"] .prog-multi .prog-theme { color: #ce93d8; }

/* ===== JOURNEY / TIMELINE ===== */
.m-journey-section {
    background: var(--color-bg);
}

.m-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.m-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.m-step:last-child {
    border-bottom: none;
}

.m-step-num {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--color-text-tertiary);
    padding-top: 0.1rem;
}

.m-step-content h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}

.m-step-content p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.m-testimonials-section {
    background: var(--color-bg);
    overflow: hidden;
}

.m-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.m-carousel-track-container {
    overflow: hidden;
    flex: 1;
}

.m-carousel-track {
    display: flex;
    gap: var(--space-md);
    transition: transform 0.4s ease;
}

.m-testimonial-card {
    flex: 0 0 calc((100% - 2 * var(--space-md)) / 3);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
}

/* Embedded testimonial (LinkedIn, etc.) */
.m-embed-card {
    padding: 0;
    overflow: hidden;
    min-height: auto;
}

.m-embed-card iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    border-radius: 12px;
    display: block;
}

.m-testimonial-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    flex: 1;
}

.m-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.m-author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.m-author-role {
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
}

/* Carousel buttons */
.m-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.m-carousel-btn:hover {
    border-color: var(--color-text);
    background: var(--color-border);
}

.m-carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Carousel dots */
.m-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--space-md);
}

.m-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.m-dot.active {
    background: var(--color-text);
}

/* ===== Contact ===== */
.m-contact-section {
    padding: var(--space-xl) 0;
}

.m-contact-line {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.m-cta-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-bg);
    background: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    transition: opacity 0.2s;
}

.m-cta-btn:hover {
    opacity: 0.85;
}

/* ===== Footer ===== */
.m-footer {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--color-border);
}

.m-footer span {
    font-size: 0.95rem;
    color: var(--color-text-tertiary);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .m-testimonial-card {
        flex: 0 0 calc((100% - var(--space-md)) / 2);
    }
}

@media (max-width: 650px) {
    .m-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .m-hero-portrait {
        margin: 0 auto var(--space-md);
        order: -1;
    }

    .m-bio {
        grid-template-columns: 1fr;
    }

    .m-step {
        grid-template-columns: 40px 1fr;
        gap: var(--space-sm);
    }

    .m-step-num {
        font-size: 1.35rem;
    }

    .m-testimonial-card {
        flex: 0 0 100%;
    }

    .m-carousel-btn {
        display: none;
    }

    .m-carousel-track-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .m-carousel-track {
        transition: none;
    }

    .m-testimonial-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .m-container {
        padding: 0 var(--space-sm);
    }

    .m-section {
        padding: var(--space-lg) 0;
    }

    .mentor-header {
        padding: var(--space-sm);
    }

    .nav-links {
        gap: var(--space-sm);
    }

    .nav-links a {
        font-size: 0.85rem;
    }
}
