/* ======================================================================= */
/* ФАЙЛ: team.css (Стили для страницы команды)                            */
/* ======================================================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.team-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--card-border-color);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-card img {
    width: 200px; /* Фиксированная ширина */
    height: 200px; /* Фиксированная высота */
    border-radius: 50%; /* Делаем изображение круглым */
    object-fit: cover;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.team-card-content {
     padding: 0 1rem 1rem;  /*Убираем верхний паддинг */
}

.team-card-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--primary-text-color);
}

.team-card-content p {
    color: var(--secondary-text-color);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    max-width: 75%;
    margin: 0 auto;
}

/* Styles for Swiper */

.swiper-outer-container {
    overflow: hidden;
    width: 100%;
}
#team-swiper {
    display: none; /* Hidden by default */
    width: 100%;
    padding-bottom: 2.5rem; /* Space for pagination */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}


/* Mobile view: Show Swiper, hide grid */
@media (max-width: 768px) {
    .team-grid {
        display: none;
    }

    #team-swiper {
        display: block; /* Show on mobile */
    }


}
