/* ==========================================================================
   MENTORS PAGE SPECIFIC STYLES
   ========================================================================== */

/* Scroll-reveal animation for mentor cards */
@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specialists-section .stakeholder-card {
    opacity: 0;
    transform: translateY(50px);
    transition: none;
}

.specialists-section .stakeholder-card.is-visible {
    animation: cardSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Subpage Hero override if needed */
.mentors-page .subpage-hero {
    background: linear-gradient(135deg, var(--pastel-peach) 0%, var(--pastel-white) 100%);
    border-bottom: 1px solid var(--color-border);
}

.mentors-page .subpage-hero-content h1 {
    color: var(--color-primary-dark);
}

.mentors-page .breadcrumb .active {
    color: var(--color-orange);
}

/* Mentor Section Layout */
.mentors-section {
    padding: 50px 0;
    background: linear-gradient(180deg, var(--pastel-white) 0%, #FFFFFF 100%);
}

.mentors-category-title {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.mentors-category-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.mentors-category-desc {
    text-align: center;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Specialist Mentors Grid spacing & Desktop Equal Heights */
.specialists-section {
    padding: 50px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--pastel-sky) 100%);
    border-top: 1px solid var(--color-border);
}

.specialists-section .stakeholders-grid {
    align-items: stretch;
}

@media (min-width: 993px) {
    .specialists-section .stakeholders-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 1fr;
        gap: 2.5rem;
    }
}

.specialists-section .stakeholder-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    padding: 1.4rem 1.4rem;
}

.specialists-section .stakeholder-img-wrapper {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.2rem;
}

.specialists-section .stakeholder-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}

.specialists-section .stakeholder-role {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.specialists-section .stakeholder-bio {
    flex-grow: 1;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.specialists-section .stakeholder-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.specialists-section .stakeholder-bio {
    flex-grow: 1;
}

.specialists-section .card-footer {
    margin-top: auto;
    padding-top: 1.2rem;
}

.stakeholder-img {
    object-fit: cover;
    object-position: center center;
}

.stakeholder-img[src*="Dr_fatima"] {
    object-position: center 50% !important;
}

.stakeholder-img[src*="Anusmita"] {
    object-position: center 1% !important;
}

.stakeholder-img[src*="Swati"] {
    object-position: center 75% !important;
}

.stakeholder-img[src*="Dr_talat"] {
    object-position: center 10% !important;
}

/* Custom Mentor Pastel Card Styles */
.stakeholder-card.mentor-sky {
    background: var(--pastel-sky);
    border-color: #B3E5FC; /* Soft Blue */
}
.stakeholder-card.mentor-peach {
    background: var(--pastel-peach);
    border-color: #FFE0B2; /* Soft Orange */
}
.stakeholder-card.mentor-lemon {
    background: var(--pastel-lemon);
    border-color: #FFF59D; /* Soft Yellow */
}
.stakeholder-card.mentor-rose {
    background: var(--pastel-rose);
    border-color: #F8BBD0; /* Soft Pink */
}

.stakeholder-card.mentor-sky:hover,
.stakeholder-card.mentor-peach:hover,
.stakeholder-card.mentor-lemon:hover,
.stakeholder-card.mentor-rose:hover {
    background: white;
}

/* Join as Mentor CTA Banner */
.mentor-join-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--pastel-lavender-rich) 0%, var(--pastel-lavender-deep) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mentor-join-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mentor-join-content h2 {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: white;
}

.mentor-join-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.mentor-join-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.mentor-join-btns .btn-white {
    background: white;
    color: var(--color-primary-dark);
}

.mentor-join-btns .btn-white:hover {
    background: var(--pastel-lavender);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.mentor-join-btns .btn-outline-white {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.mentor-join-btns .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* Background botanical decoration for Join Section */
.mentor-join-decor {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
}

.mentor-join-decor i {
    position: absolute;
    color: white;
}

.m-leaf-1 { top: 10%; left: 5%; font-size: 8rem; transform: rotate(15deg); }
.m-leaf-2 { bottom: 10%; right: 5%; font-size: 9rem; transform: rotate(-45deg); }

/* ==========================================================================
   MOBILE & RESPONSIVE IMPROVEMENTS FOR MENTORS PAGE
   ========================================================================== */
@media (max-width: 992px) {
    .mentors-category-title {
        font-size: 1.8rem;
    }
    .mentors-category-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .specialists-section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .stakeholder-card {
        padding: 1.4rem 1.1rem !important;
        border-radius: 20px !important;
    }
    .stakeholder-img-wrapper {
        width: 110px !important;
        height: 110px !important;
        margin: 0 auto 1rem !important;
        border-width: 3px !important;
    }
    .stakeholder-info h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.3rem !important;
    }
    .stakeholder-role {
        font-size: 0.82rem !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 0.7rem !important;
    }
    .stakeholder-bio {
        font-size: 0.9rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1rem !important;
    }
    .stakeholders-grid {
        gap: 1.2rem !important;
    }
    .mentor-join-section {
        padding: 40px 0;
    }
    .mentor-join-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .mentor-join-content p {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }
}

@media (max-width: 480px) {
    .stakeholder-card {
        padding: 1.2rem 0.9rem !important;
    }
    .stakeholder-img-wrapper {
        width: 95px !important;
        height: 95px !important;
    }
    .stakeholder-info h3 {
        font-size: 1.2rem !important;
    }
    .stakeholder-bio {
        font-size: 0.88rem !important;
    }
}
