/* ===========================
   TEAM SECTION - team.css
   =========================== */

.team {
    padding: 80px 0;
    background-color: var(--white);
}

/* ===========================
   СІТКА КОМАНДИ
   =========================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

/* ===========================
   КАРТКА ЧЛЕНА КОМАНДИ
   =========================== */

.team-card {
    position: relative;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.team-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* ===========================
   ЗОБРАЖЕННЯ
   =========================== */

.team-card img,
.team-card .team-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.team-card .team-placeholder {
    background: linear-gradient(135deg, #91d072 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-card:hover img,
.team-card:hover .team-placeholder {
    transform: scale(1.15);
}

/* ===========================
   ОВЕРЛЕЙ
   =========================== */

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
            rgba(44, 62, 80, 0.95) 0%,
            rgba(44, 62, 80, 0.7) 50%,
            transparent 100%);
    padding: 35px 30px;
    transition: all 0.4s ease;
}

.team-card:hover .team-overlay {
    background: linear-gradient(to top,
            rgba(145, 208, 114, 0.95) 0%,
            rgba(145, 208, 114, 0.85) 60%,
            rgba(145, 208, 114, 0.4) 100%);
    padding: 45px 30px;
}

/* ===========================
   ТЕКСТ
   =========================== */

.team-overlay h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.team-overlay .team-position {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.team-overlay .team-description {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===========================
   АДАПТИВНІСТЬ
   =========================== */

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .team-card {
        height: 400px;
    }

    .team-overlay h3 {
        font-size: 1.2rem;
    }

    .team-overlay .team-position {
        font-size: 0.9rem;
    }

    .team-overlay .team-description {
        font-size: 0.85rem;
    }
}
