/* Custom Mentor Section Styles - Updated to match theme */
#mentor-sec {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

#mentor-sec::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.15"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

#mentor-sec .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Team Card 3 Styling for Mentors */
#mentor-sec .th-team.team-card3 {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(26, 104, 91, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(26, 104, 91, 0.1);
}

#mentor-sec .th-team.team-card3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1A685B 0%, #FFAC00 50%, #1A685B 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 1;
}

#mentor-sec .th-team.team-card3:hover::before {
    transform: scaleX(1);
}

#mentor-sec .th-team.team-card3:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(26, 104, 91, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(26, 104, 91, 0.2);
}

/* Enhanced Image Styling */
#mentor-sec .team-img {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

#mentor-sec .team-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(26, 104, 91, 0.1) 0%, 
        rgba(255, 172, 0, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

#mentor-sec .th-team.team-card3:hover .team-img::after {
    opacity: 1;
}

#mentor-sec .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: grayscale(0%) contrast(1.1) brightness(1.05);
}

#mentor-sec .th-team.team-card3:hover .team-img img {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(1.2) brightness(1.1);
}

/* Enhanced Content Area */
#mentor-sec .team-card-content {
    padding: 25px 20px;
    text-align: center;
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
}

#mentor-sec .team-card-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(26, 104, 91, 0.2) 50%, transparent 100%);
}

/* Enhanced Title Styling */
#mentor-sec .box-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1A685B;
    margin-bottom: 8px;
    line-height: 1.3;
    position: relative;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1A685B 0%, #0f4a42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#mentor-sec .th-team.team-card3:hover .box-title {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(26, 104, 91, 0.1);
}

/* Enhanced Designation */
#mentor-sec .team-desig {
    display: inline-block;
    background: linear-gradient(135deg, #1A685B 0%, #FFAC00 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(26, 104, 91, 0.3);
    transition: all 0.3s ease;
}

#mentor-sec .th-team.team-card3:hover .team-desig {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(26, 104, 91, 0.4);
}

/* Enhanced Social Media Icons */
#mentor-sec .th-social.style2 {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

#mentor-sec .th-social.style2 a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#mentor-sec .th-social.style2 a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mentor-sec .th-social.style2 a:hover::before {
    opacity: 1;
}

#mentor-sec .th-social.style2 a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Social Media Colors */
#mentor-sec .th-social.style2 a[href*="facebook"] {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

#mentor-sec .th-social.style2 a[href*="twitter"] {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

#mentor-sec .th-social.style2 a[href*="instagram"] {
    background: linear-gradient(135deg, #e4405f 0%, #833ab4 50%, #f77737 100%);
}

#mentor-sec .th-social.style2 a[href*="linkedin"] {
    background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
}

#mentor-sec .th-social.style2 a[href*="whatsapp"] {
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
}

#mentor-sec .th-social.style2 a.mentor-close-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Pulse Animation for Social Icons */
@keyframes socialPulse {
    0% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(26, 104, 91, 0.1); }
    100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
}

#mentor-sec .th-team.team-card3:hover .th-social.style2 a {
    animation: socialPulse 2s infinite;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    #mentor-sec .th-team.team-card3 {
        margin-bottom: 30px;
    }
    
    #mentor-sec .team-img {
        height: 250px;
    }
    
    #mentor-sec .box-title {
        font-size: 1.2rem;
    }
    
    #mentor-sec .th-social.style2 a {
        width: 38px;
        height: 38px;
    }
    
    #mentor-sec .th-social.style2 {
        gap: 10px;
    }
}

/* Loading Animation */
@keyframes mentorCardLoad {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mentor-sec .th-team.team-card3 {
    animation: mentorCardLoad 0.6s ease forwards;
}

#mentor-sec .swiper-slide:nth-child(1) .th-team { animation-delay: 0.1s; }
#mentor-sec .swiper-slide:nth-child(2) .th-team { animation-delay: 0.2s; }
#mentor-sec .swiper-slide:nth-child(3) .th-team { animation-delay: 0.3s; }
#mentor-sec .swiper-slide:nth-child(4) .th-team { animation-delay: 0.4s; }

/* Floating Elements */
#mentor-sec::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(26, 104, 91, 0.1) 0%, rgba(255, 172, 0, 0.1) 100%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}
