.team-carousel-section {
    background-color: #E0EDF4;
    padding: 100px 5%;
    position: relative;
    z-index: 10;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
    color: #2A4356;
}

.team-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.team-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    font-family: 'Comfortaa', sans-serif;
}

.highlight {
    color: #E07A93;
}

.team-desc {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(42, 67, 86, 0.85);
}

.team-desc strong {
    font-weight: 700;
    color: #E07A93;
}

.team-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.team-carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.team-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease-in-out;
    padding: 20px 0;
}

.team-card {
    flex: 0 0 calc(25% - 18px);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .team-card {
        flex: 0 0 calc(33.333% - 16px);
    }
}

@media (max-width: 768px) {
    .team-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 480px) {
    .team-card {
        flex: 0 0 85%;
    }
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px 24px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.team-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
    font-family: 'Comfortaa', sans-serif;
}

.team-card-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.team-nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #2A4356;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.team-nav-btn:hover {
    transform: scale(1.05);
    background-color: #E07A93;
}

.team-nav-btn svg {
    width: 24px;
    height: 24px;
    fill: #FFFFFF;
}

.team-nav-btn.prev {
    left: -28px;
}

.team-nav-btn.next {
    right: -28px;
}

.team-footer {
    display: flex;
    align-items: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(42, 67, 86, 0.2);
    gap: 40px;
}

.team-footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2A4356;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.team-footer-br {
    display: none;
}

.team-footer-marquee {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.team-footer-marquee-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
}

.marquee-group img {
    height: 40px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease;
}

.marquee-group img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 30px)); }
}

@media (max-width: 768px) {
    .team-footer {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding-top: 32px;
        margin-top: 48px;
    }
    
    .team-footer-title {
        font-size: 0.85rem;
        text-align: left;
        white-space: normal;
    }

    .team-footer-br {
        display: block;
    }
}