.team-section {
    padding: 0 0 80px;
    position: relative;
}

.team-header {
    text-align: center;
    max-width: 1104px;
    margin: 0 auto 50px;
}

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

.team-card {
    text-align: center;
}

.team-image {
    height: 345px;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #D9D9D9;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-detail h5 {
    margin-bottom: 14px;
    color: var(--black);
}

.team-load-more-wrapper {
    text-align: center;
}

.leaf-wrapper {
    display: none;
}

@media (min-width: 1024px) {
    .team-section.show-leaf .leaf-wrapper {
        position: absolute;
        right: 0;
        bottom: 116px;
        z-index: -1;
        display: block;
    }
}

@media (max-width: 1200px) {
    .team-image {
        height: 300px;
    }
}

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

@media (max-width: 991px) {
    .team-section {
        padding: 0 0 60px;
    }
    .team-image {
        border-radius: 15px;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 0 0 40px;
    }
    .team-grid {
        gap: 20px 15px;
        grid-template-columns: repeat(2, 1fr);
    }
    .team-detail h5 {
        margin-bottom: 8px;
    }
    .team-image {
        margin-bottom: 10px;
        border-radius: 10px;
    }
}

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