/* Mentors Section Styles */
.mentors-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    margin-top: 35px;
    width: 100%;
}

.mentors-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9370DB, #4a86e8);
}

.mentors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.mentors-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

.mentors-back {
    font-size: 0.85rem;
    color: #4a86e8;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.mentors-back i {
    font-size: 0.8rem;
}

.mentors-content {
    margin-bottom: 25px;
}

.mentors-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mentors-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.mentors-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
    color: white;
}

.mentors-image-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.mentors-image-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

.mentors-info-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 24px;
    margin-top: 5px;
    background-color: transparent;
    padding: 16px 0;
    border-radius: 0;
    position: relative;
    border: none;
    border-bottom: 1px solid #eee;
    box-shadow: none;
}

.mentors-info-text::before {
    display: none;
}

.mentors-info-text p {
    margin-bottom: 10px;
}

.mentors-info-text p:first-child {
    color: #8064c9;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.85;
    margin-bottom: 12px;
}

.mentors-info-text p:first-child i {
    font-size: 0.7rem;
    margin-right: 5px;
    opacity: 0.9;
}

.mentors-info-text a {
    color: #9370DB;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

.mentors-info-text a:hover {
    color: #6a4ea3;
    text-decoration: underline;
}

.mentors-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.mentors-action-btn {
    background-color: #9370DB;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(147, 112, 219, 0.15);
}

.mentors-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(147, 112, 219, 0.2);
    background-color: #8064c9;
}

.mentors-action-btn i {
    font-size: 0.8rem;
}

.mentors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.mentor-card {
    background-color: #f5f5f7;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.mentor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.mentor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.mentor-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.mentor-role {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px;
}

.mentor-company {
    font-size: 0.7rem;
    color: #999;
    font-style: italic;
}

/* Reset any dividers that might be showing on desktop */
.footer-link-item:not(:last-child)::after {
    content: none;
    display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hide profile section on mobile */
    .profile-section {
        display: none;
    }
    
    /* Make impact section take full width */
    .impact-section {
        min-width: 100%;
        flex: 1;
        margin: 0;
        width: 100%;
    }
    
    /* Adjust spacing and sizing */
    .mentors-section {
        padding: 22px 18px;
        width: 100%;
    }
    
    .mentors-title {
        font-size: 1.1rem;
    }
    
    .mentors-info-text {
        font-size: 0.85rem;
        margin-bottom: 20px;
        padding: 14px;
    }
    
    .mentors-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .mentor-avatar {
        width: 70px;
        height: 70px;
    }
    
    /* Footer links styles exactly as in styles.css */
    .footer-links {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        padding: 10px 5px !important;
        margin: 12px 0 !important;
        width: 100% !important;
        border-top: 1px solid #eee !important;
        border-bottom: 1px solid #eee !important;
        overflow-x: auto !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    
    .footer-links::-webkit-scrollbar {
        display: none !important;
    }
    
    .footer-link-item {
        flex: 0 0 auto !important;
        font-size: 0.65rem !important;
        color: #9370DB !important;
        font-weight: 500 !important;
        display: flex !important;
        align-items: center !important;
        padding: 3px 7px !important;
        margin: 0 1px !important;
        white-space: nowrap !important;
        border-radius: 3px !important;
        transition: all 0.2s ease !important;
    }
    
    /* Add vertical separators exactly as on other pages, but ONLY for mobile */
    .footer-link-item:not(:last-child)::after {
        content: "|" !important;
        padding: 0 2px !important;
        color: #ccc !important;
        position: relative !important;
        right: -4px !important;
        display: inline-block !important;
    }
    
    /* Action buttons styles to match main styles.css */
    .action-buttons {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 5px !important;
        padding: 0 !important;
        margin: 10px 0 !important;
        width: 100% !important;
        overflow-x: auto !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    
    .action-buttons::-webkit-scrollbar {
        display: none !important;
    }
    
    .fellows-btn, .mentors-btn, .commitment-btn {
        font-size: 0.65rem !important;
        padding: 0 8px !important;
        min-width: 0 !important;
        height: 32px !important;
        flex: 1 0 auto !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .fellows-btn i, .mentors-btn i, .commitment-btn i {
        font-size: 0.7rem !important;
        margin-right: 2px !important;
    }
    
    .impact-gallery-container {
        padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    }
    
    .impact-gallery {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .mentors-section {
        padding: 18px 15px;
        border-radius: 8px;
        width: 100%;
    }
    
    .mentors-title {
        font-size: 1rem;
    }
    
    .mentors-image-title {
        font-size: 0.95rem;
    }
    
    .mentors-image-subtitle {
        font-size: 0.8rem;
    }
    
    .mentors-info-text {
        font-size: 0.8rem;
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .mentors-action-buttons {
        gap: 10px;
    }
    
    .mentors-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .mentor-avatar {
        width: 65px;
        height: 65px;
    }
    
    .mentor-name {
        font-size: 0.85rem;
    }
    
    .mentor-role {
        font-size: 0.7rem;
    }
    
    /* Footer links styles for 480px */
    .footer-links {
        padding: 8px 0 !important;
        gap: 0 !important;
    }
    
    .footer-link-item {
        font-size: 0.58rem !important;
        padding: 2px 2px !important;
        margin: 0 !important;
    }
    
    /* Smaller text for longer items */
    .footer-link-item:nth-child(3), /* Give Gratitude */
    .footer-link-item:nth-child(4), /* Unreasonable Team */
    .footer-link-item:nth-child(5) { /* Report Misconduct */
        font-size: 0.52rem !important;
        letter-spacing: -0.02em !important;
    }
    
    /* Smaller separators for small phones */
    .footer-link-item:not(:last-child)::after {
        padding: 0 1px !important;
        right: -2px !important;
        color: #ddd !important;
    }
    
    /* Action buttons for 480px */
    .action-buttons {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 3px !important;
        padding: 0 !important;
        margin: 10px 0 !important;
        width: 100% !important;
    }
    
    .fellows-btn, .mentors-btn, .commitment-btn {
        font-size: 0.6rem !important;
        padding: 0 5px !important;
        height: 28px !important;
        min-width: 0 !important;
        flex: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .fellows-btn i, .mentors-btn i, .commitment-btn i {
        font-size: 0.55rem !important;
        margin-right: 2px !important;
    }
    
    .impact-gallery-container {
        padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    }
    
    .impact-gallery {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

@media (max-width: 375px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .mentors-section {
        padding: 14px 12px;
        margin-top: 20px;
        width: 100%;
    }
    
    .mentors-title {
        font-size: 0.9rem;
    }
    
    .mentors-info-text {
        font-size: 0.75rem;
        padding: 10px;
        margin-bottom: 14px;
    }
    
    .mentors-image-title {
        font-size: 0.85rem;
    }
    
    .mentors-image-subtitle {
        font-size: 0.75rem;
    }
    
    .mentors-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .mentor-avatar {
        width: 60px;
        height: 60px;
    }
    
    .mentor-name {
        font-size: 0.8rem;
    }
    
    .mentor-role {
        font-size: 0.65rem;
    }
    
    .mentor-company {
        font-size: 0.65rem;
    }
    
    /* Footer links for 375px */
    .footer-links {
        padding: 5px 0 !important;
        margin: 8px 0 !important;
    }
    
    .footer-link-item {
        font-size: 0.52rem !important;
        padding: 1px !important;
        letter-spacing: -0.01em !important;
    }
    
    /* Tiny separators for smallest screens */
    .footer-link-item:not(:last-child)::after {
        padding: 0 !important;
        right: -1px !important;
        font-size: 0.4rem !important;
    }
    
    /* Action buttons for 375px */
    .action-buttons {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 2px !important;
        padding: 0 !important;
        margin: 5px 0 !important;
    }
    
    .fellows-btn, .mentors-btn, .commitment-btn {
        font-size: 0.55rem !important;
        padding: 0 3px !important;
        height: 26px !important;
        letter-spacing: -0.01em !important;
        flex: 1 !important;
    }
    
    .fellows-btn i, .mentors-btn i, .commitment-btn i {
        font-size: 0.5rem !important;
        margin-right: 1px !important;
    }
    
    .impact-gallery-container {
        padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    }
    
    .impact-gallery {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

.impact-gallery-container {
    margin-bottom: 22px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.impact-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.impact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0;
}

/* First image - large feature image */
.impact-img:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
    object-position: center 25%;
}

/* Second image - vertical rectangle */
.impact-img:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
    object-position: center 20%;
}

/* Third image - small square */
.impact-img:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    object-position: center 25%;
}

/* Fourth image - small square */
.impact-img:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
    object-position: center 25%;
} 