/* TEAM SECTION */

#team {
    padding: 80px 5%;
    background: #ffffff;
}

.team-header {
    text-align: center;
    margin-bottom: 50px;
}

.team-header h2 {
    font-size: 1.6rem;
    color: #ff8a00;
    margin-bottom: 10px;
}

.team-header p {
    color: #666;
    font-size: 1rem;
}

/* GRID */

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1600px;
    margin: auto;
}

/* CARD */

.team-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);

    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* PROFILE PHOTO */

.team-card > img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid #f4f4f4;
}

.team-card h3 {
    margin-bottom: 5px;
    color: #222;
}

.team-card h4 {
    color: #ff8a00;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.team-card p {
    color: #555;
    font-size: 0.7rem;
    line-height: 1.7;
    text-align: justify;
    flex-grow: 1;
}

/* LINKEDIN */

.linkedin {
    margin-top: 20px;
    display: inline-block;
}

.linkedin img {
    width: 36px;
    height: 36px;
    transition: transform .3s ease;
}

.linkedin:hover img {
    transform: scale(1.15);
}

/* TABLET */

@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */

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

    .team-card > img {
        width: 150px;
        height: 150px;
    }

    .team-header h2 {
        font-size: 2rem;
    }
}