/* Стили, специфичные для страницы команды */

/* Team member card */
.team-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.team-card-img {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;          /* Центрирование по вертикали */
    align-items: center;    /* Центрирование по вертикали */
    justify-content: center; /* Центрирование по горизонтали */
    background-color: #f9f9f9; /* Фон для пустого пространства */
}

.team-card-img img {
    width: 100%;
    height: auto;          /* Авто-высота сохраняет пропорции */
    max-height: 100%;      /* Ограничивает высоту контейнером */
    object-fit: contain;   /* Сохраняет пропорции без обрезки */
    object-position: center; /* Центрирует изображение */
    transition: transform 0.5s ease;
}

.team-card:hover .team-card-img img {
    transform: scale(1.05);
}

.team-card-body {
    padding: 25px;
    text-align: start;
}

.team-card-title {
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 1.4rem;
}

.team-card-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.team-social {
    margin-top: 15px;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(15, 76, 129, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Country filter badges */
.country-filter {
    margin-bottom: 2rem;
}

.country-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin: 0 8px 10px 0;
    background-color: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.country-badge.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.country-badge:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    text-decoration: none;
    color: #333;
}

.country-badge.active:hover {
    color: white;
}

.country-badge img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Office card */
.office-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
    transition: all 0.3s ease;
}

.office-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.office-img {
    height: 200px;
    overflow: hidden;
}

.office-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.office-card:hover .office-img img {
    transform: scale(1.05);
}

.office-body {
    padding: 25px;
}

.office-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.office-info {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.office-info i {
    width: 24px;
    margin-right: 10px;
    color: var(--primary-color);
}

.office-map {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
    margin-top: 15px;
}

/* Partner card */
.partner-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.partner-logo img {
    max-width: 80%;
    max-height: 80px;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo img {
    transform: scale(1.1);
}

/* CTA Section specific to team page */
.team-cta-section {
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    position: relative;
}

.team-cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Responsive styles specific to team page */
@media (max-width: 767px) {
    .team-card-img {
        height: 280px;
    }
    
    .country-filter {
        text-align: center;
    }
    
    .country-badge {
        margin: 0 5px 10px;
    }
}