/* ============================================
   Team Section Styling
   ============================================ */

.team-section {
    margin-top: -90px;
    padding: 60px 20px;
    background-color: #ffffff;
}

.team-section-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Team Header */
.team-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.team-section-title {
    font-size: 48px;
    font-weight: 600;
    color: #000;
    letter-spacing: -1px;
    margin: 0;
    padding: 0;
}

.team-section-title strong {
    color: #007bff;
}

/* Team Grid */
.team-section-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Team Card */
.team-member-card {
    animation: fadeInUp 0.8s ease-out backwards;
    transition: all 0.3s ease;
}

.team-member-card:nth-child(1) { animation-delay: 0s; }
.team-member-card:nth-child(2) { animation-delay: 0.1s; }
.team-member-card:nth-child(3) { animation-delay: 0.2s; }
.team-member-card:nth-child(4) { animation-delay: 0.3s; }

.team-member-card:hover {
    transform: translateY(-8px);
}

/* Team Image Container */
.team-member-image {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background-color: #e8eef0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.team-member-card:hover .team-member-image img {
    transform: scale(1.05);
}

/* Black Overlay */
.team-member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member-card:hover .team-member-overlay {
    opacity: 1;
}

/* Overlay Content */
.team-member-overlay-content {
    transform: translateY(30px);
    transition: transform 0.3s ease;
    text-align: center;
}

.team-member-card:hover .team-member-overlay-content {
    transform: translateY(0);
}

.team-member-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.team-member-role {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 500;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablets - 2 items per row */
@media (max-width: 992px) {
    .team-section {
        padding: 50px 20px;
    }

    .team-section-title {
        font-size: 36px;
    }

    .team-section-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .team-member-image {
        height: 380px;
    }
}

/* Small Devices - 2 items per row */
@media (max-width: 768px) {
    .team-section {
        padding: 45px 15px;
    }

    .team-section-title {
        font-size: 32px;
    }

    .team-section-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .team-member-image {
        height: 350px;
    }

    .team-member-name {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .team-member-role {
        font-size: 13px;
    }
}

/* Extra Small Devices - 2 items per row */
@media (max-width: 576px) {
    .team-section {
        padding: 40px 12px;
    }

    .team-section-title {
        font-size: 26px;
    }

    .team-section-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .team-member-image {
        height: 300px;
    }

    .team-member-overlay {
        padding: 20px 12px;
    }

    .team-member-name {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .team-member-role {
        font-size: 12px;
    }
}

/* Small Devices - 480px and below */
@media (max-width: 480px) {
    .team-section {
        padding: 35px 10px;
    }

    .team-section-header {
        margin-bottom: 30px;
    }

    .team-section-title {
        font-size: 24px;
    }

    .team-section-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .team-member-image {
        height: 280px;
    }

    .team-member-overlay {
        padding: 18px 10px;
    }

    .team-member-name {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .team-member-role {
        font-size: 11px;
    }
}

/* Very Small Devices - 360px and below */
@media (max-width: 360px) {
    .team-section {
        padding: 30px 8px;
    }

    .team-section-header {
        margin-bottom: 25px;
    }

    .team-section-title {
        font-size: 22px;
    }

    .team-section-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .team-member-image {
        height: 250px;
    }

    .team-member-overlay {
        padding: 16px 8px;
    }

    .team-member-name {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .team-member-role {
        font-size: 10px;
    }
}