﻿.team-section {
    width: 100%;
    margin: 0 auto 32px auto;
    text-align: center;
}

.team-section__title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 1px;
}

.team-section__dots {
    display: inline-block;
    vertical-align: middle;
}


.team-grid-first-row {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

    .team-grid-first-row .team-card {
        width: 260px;
    }


.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 18px;
    justify-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    border: 1px solid #222;
    border-radius: 5px;
    width: 260px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s, border-color 0.3s;
    position: relative;
    z-index: 1;
}

    .team-card:hover {
        transform: translateY(-8px) scale(1.035);
        box-shadow: 0 8px 24px rgba(0,0,0,0.13), 0 1.5px 4px rgba(0,0,0,0.08);
        border-color: #007bff;
    }

.team-card__image {
    position: relative;
    overflow: hidden;
}

    .team-card__image img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        display: block;
        padding: 0.98rem;
        border-bottom: 1px solid #eee;
        transition: transform 0.35s cubic-bezier(.4,2,.6,1), filter 0.3s;
    }

.team-card:hover .team-card__image img {
    transform: scale(1.05) rotate(-1deg);
    filter: brightness(0.96) contrast(1.08);
}

.team-card__info {
    padding: 10px 16px 0 16px;
    position: relative;
    min-height: 60px;
    background: transparent;
    transition: background 0.3s;
}

.team-card:hover .team-card__info {
    background: rgba(0,123,255,0.03);
}

.team-card__name {
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 2px;
    display: inline-block;
    transition: color 0.3s;
    color: #222;
    letter-spacing: 0.5px;
}

.team-card:hover .team-card__name {
    color: #007bff;
}

.team-card__role {
    color: #555;
    font-size: 1rem;
    margin-bottom: 6px;
    transition: color 0.3s;
}

.team-card:hover .team-card__role {
    color: #222;
}

.team-card__arrow {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 44px;
    height: 44px;
    transform: rotate(270deg);
    transition: transform 0.4s cubic-bezier(.4,2,.6,1), right 0.3s;
}

.team-card:hover .team-card__arrow {
    transform: rotate(360deg);
    right: 16px;
}

.team-card__socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 14px 0 14px 0;
    background: transparent;
    transition: background 0.3s;
}

.team-card:hover .team-card__socials {
    background: rgba(0,123,255,0.01);
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e4447;
    padding: 1px;
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
    box-shadow: 0 0 0 #fff;
    filter: grayscale(0.2);
}

    .social-icon:hover,
    .team-card:hover .social-icon {
        background: #007bff;
        box-shadow: 0 0 8px #007bff44;
        transform: scale(1.13) rotate(-8deg);
        filter: none;
    }

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 8px;
    }

    .team-card,
    .team-grid-first-row .team-card {
        width: 98%;
        min-width: 180px;
    }

    .team-card__image img {
        height: 180px;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-grid-first-row .team-card {
        width: 98%;
    }
}
