/* Team Carousel Styles */

.team-carousel-container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    position: relative;
    margin: 0 auto;
    padding: 1rem 0;
}

.team-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 450px;
    overflow: hidden;
}

/* Team Slide */
.team-slide {
    display: none;
    opacity: 0;
    height: 55%;
    width: 70%;
    gap: 4rem;
    align-items: center;
    padding: 1rem;
    transition: opacity 0.6s ease;
}

.team-slide.active {
    display: flex;
    opacity: 1;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Team Photo */
.team-photo {
    flex: 0 0 350px;
    width: 350px;
    height: 450px;
    position: relative;
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}


/* Team Info */
.team-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.role-badge {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.member-name {
    font-family: 'Noto Serif TC', serif;
    font-size: 2.5rem;
    color: #E3C878;
    margin: 0;
    font-weight: 400;
}

.member-bio {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.member-bio p {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #B0B0B0;
    margin: 0;
}

.member-bio p:first-child {
    font-family: 'Noto Serif TC', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #E3C878;
}

/* Navigation Arrows */
.team-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: #D4AF37;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.team-nav:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #D4AF37;
    transform: translateY(-50%) scale(1.1);
}

.team-nav:active {
    transform: translateY(-50%) scale(0.95);
}

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

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

/* Indicators */
.team-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(212, 175, 55, 0.5);
    border-color: #D4AF37;
}

.indicator.active {
    background: #D4AF37;
    border-color: #D4AF37;
    width: 30px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .team-slide {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
    }

    .team-photo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        height: 380px;
    }

    .member-name {
        font-size: 2rem;
        text-align: center;
    }

    .role-badge {
        align-self: center;
    }

    .member-bio {
        text-align: center;
    }

    .team-nav {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }

    .team-prev {
        left: 10px;
    }

    .team-next {
        right: 10px;
    }
}

@media (max-width: 640px) {
    .team-carousel-container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    position: relative;
    margin: 0 auto;
    padding: 0;
}

    .team-carousel {
        min-height: 400px;
    }

    .team-slide {
        padding: 1rem;
    }

    .team-photo {
        max-width: 250px;
        height: 320px;
    }

    .member-name {
        font-size: 1.8rem;
    }

    .role-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }

    .member-bio p {
        font-size: 0.9rem;
    }

    .member-bio p:first-child {
        font-size: 1rem;
    }

    .team-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .team-prev {
        left: 5px;
    }

    .team-next {
        right: 5px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 24px;
    }
}