.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.team-item:hover {
    transform: translateY(-10px);
}

.team-thumb {
    position: relative;
    overflow: hidden;
}

.team-thumb img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.team-item:hover .team-thumb img {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    bottom: -50px; /* Ẩn bên dưới */
    left: 0;
    width: 100%;
    background: rgba(10, 37, 64, 0.9);
    padding: 10px 0;
    text-align: center;
    transition: bottom 0.3s ease;
}

.team-item:hover .team-social {
    bottom: 0;
}

.team-social a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.1rem;
}

.team-social a:hover {
    color: var(--secondary-color);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.team-role {
    font-size: 0.9rem;
    color: #777;
    text-transform: uppercase;
    font-size: 0.8rem;
}

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

/* Tighten Spacing for Team Section */
.home-team {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    margin-bottom: 0 !important;
}

@media (max-width: 992px) {
    .home-team {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        margin-bottom: 0 !important;
    }
}