/*
==============================================
TEAM SECTION STYLES
==============================================
*/

/* Team Section Container */
.team-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 74, 92, 0.8);
    z-index: 1;
}

.team-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

/* Team Section Headers */
.team-section .section-title {
    color: #25d06f;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.team-section .section-summary {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    line-height: 1.2;
}

/* Team Carousel Container */
.team-carousel-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
}

.team-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.team-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

/* Team Member Cards */
.team-member {
    flex: 0 0 300px;
    margin: 0 15px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Team Member Image */
.team-member-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .team-member-image img {
    transform: scale(1.05);
}

/* Social Media Overlay */
.team-social-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(37, 208, 111, 0.9));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.team-member:hover .team-social-overlay {
    transform: translateY(0);
}

.team-social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.team-social-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.team-social-links li a:hover {
    background: #fff;
    color: #25d06f;
    transform: scale(1.1);
}

/* Team Member Info */
.team-member-info {
    padding: 25px 20px;
    text-align: center;
    background: #fff;
}

.team-member-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.team-member-position {
    font-size: 14px;
    color: #25d06f;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Buttons */
.team-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #25d06f;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.team-carousel-wrapper:hover .team-nav {
    opacity: 1;
    visibility: visible;
}

.team-nav:hover {
    background: #1fa85f;
    transform: translateY(-50%) scale(1.1);
}

.team-nav.prev {
    left: -25px;
}

.team-nav.next {
    right: -25px;
}

/* Dots Indicator */
.team-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    list-style: none;
    padding: 0;
}

.team-dots li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-dots li.active,
.team-dots li:hover {
    background: #25d06f;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .team-member {
        flex: 0 0 280px;
        margin: 0 10px;
    }
}

@media (max-width: 992px) {
    .team-member {
        flex: 0 0 250px;
    }
    
    .team-section .section-summary {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .team-member {
        flex: 0 0 280px;
        margin: 0 15px;
    }
    
    .team-section {
        padding: 60px 0;
    }
    
    .team-section .section-summary {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .team-nav {
        display: none;
    }
}

@media (max-width: 576px) {
    .team-member {
        flex: 0 0 260px;
        margin: 0 10px;
    }
    
    .team-member-image {
        height: 240px;
    }
}

/* Loading State */
.team-carousel.loading {
    opacity: 0.5;
    pointer-events: none;
}

.team-carousel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(37, 208, 111, 0.3);
    border-top: 3px solid #25d06f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 100;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
