/**
 * Team Section Block Styles
 */

.team-section {
    background-color: #2B2B2B;
    padding: 100px 0 120px;
    overflow: visible;
}

/* Header */
.team-section__header {
    max-width: 1640px;
    margin: 0 auto 60px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.team-section__header-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-section__title {
    color: #FFFFFF;
    font-size: 48px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin: 0;
}

.team-section__description p{
    color: #FFFFFF;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.team-section__description p {
    margin: 0;
}

/* Button */
.team-section__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 21px 33px;
    border: 1px solid #FFFFFF;
    border-radius: 50px;
    background: transparent;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.team-section__btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.team-section__btn-text {
    color: #FFFFFF;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.team-section__btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slider */
.team-section__slider {
    position: relative;
    padding: 0 160px;
}

.team-section__slider-wrapper {
    overflow: hidden;
}

.team-section__slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
    cursor: grab;
}

.team-section__slider-track:active {
    cursor: grabbing;
}

/* Card */
.team-section__card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: calc((100% - 48px) / 3);
    border-radius: 24px;
    overflow: hidden;
    background-color: #655442;
}

.team-section__card-photo {
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.team-section__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-section__card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    gap: 16px;
}

.team-section__card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-section__card-name {
    color: #CFC7B2;
    font-size: 24px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin: 0;
}

.team-section__card-position {
    color: #CFC7B2;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.team-section__card-icon {
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.team-section__card-icon:hover {
    transform: scale(1.1);
}

.team-section__card-icon svg {
    display: block;
}

/* Navigation */
.team-section__nav {
    position: absolute;
    top: 50%;
    left: 160px;
    right: 160px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.team-section__nav-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.team-section__nav-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.team-section__nav-btn svg {
    display: block;
}

/* Responsive */
@media (max-width: 1400px) {
    .team-section__header {
        padding: 0 80px;
    }
    
    .team-section__slider {
        padding: 0 80px;
    }
    
    .team-section__nav {
        left: 80px;
        right: 80px;
    }
}

@media (max-width: 1200px) {
    .team-section__card {
        flex: 0 0 calc((100% - 48px) / 3);
        min-width: calc((100% - 48px) / 3);
    }
    
    .team-section__card-photo {
        height: 450px;
    }
}

@media (max-width: 991px) {
    .team-section {
        padding: 80px 0 100px;
    }
    
    .team-section__header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 40px;
        gap: 24px;
    }
    
    .team-section__title {
        font-size: 36px;
    }
    
    .team-section__description {
        font-size: 16px;
    }
    
    .team-section__slider {
        padding: 0 40px;
    }
    
    .team-section__nav {
        left: 40px;
        right: 40px;
    }
    
    .team-section__card {
        flex: 0 0 calc((100% - 48px) / 3);
        min-width: calc((100% - 48px) / 3);
    }
    
    .team-section__card-photo {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 60px 24px 80px;
    }
    
    .team-section__header {
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .team-section__title {
        font-size: 32px;
    }
    
    .team-section__slider {
        padding: 0 20px;
    }
    
    .team-section__nav {
        left: 20px;
        right: 20px;
    }
    
    .team-section__card {
        flex: 0 0 calc((100% - 24px) / 2);
        min-width: calc((100% - 24px) / 2);
    }
    
    .team-section__card-photo {
        height: 350px;
    }
    
    .team-section__card-info {
        padding: 20px;
    }
    
    .team-section__card-name {
        font-size: 20px;
    }
    
    .team-section__card-position {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .team-section__title {
        font-size: 28px;
    }
    
    .team-section__btn {
        padding: 16px 24px;
        width: 100%;
        justify-content: center;
    }
    
    .team-section__card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .team-section__card-photo {
        height: 300px;
    }
    
    .team-section__nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .team-section__nav-btn svg {
        width: 40px;
        height: 40px;
    }
}
