/* Team Section */
.team-section {
    padding: var(--section-padding);
    background-color: var(--primary-dark);
    overflow: hidden;
}

.team-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.team-slider-wrapper {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 600%;
}

.team-slide {
    width: calc(100% / 6);
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.team-member {
    flex: 0 0 45%;
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.team-member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
}

.placeholder-photo {
    background-color: rgba(160, 160, 160, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-photo::after {
    content: '\1F464';
    font-size: 72px;
    color: rgba(255, 255, 255, 0.3);
}

.team-member-info {
    text-align: center;
}

.team-member-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--accent-color);
}

.team-member-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.team-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.team-slider-prev,
.team-slider-next {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.team-slider-prev:hover,
.team-slider-next:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

.team-slider-dots {
    display: flex;
    margin: 0 20px;
}

.team-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-slider-dot.active {
    background-color: var(--accent-color);
}


/* Styl dla ostatniego slajdu */
.last-slide {
    justify-content: center;
}

/* Styl dla wycentrowanego członka zespołu */
.centered-member {
    max-width: 450px;
    margin: 0 auto;
}


.centered-member .team-member-photo {
    width: 200px;
    height: 200px;
}



@media (max-width: 768px) {
    .team-member {
        flex: 0 0 100%;
    }
}
