.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #343a40;
    position: relative;
    padding-bottom: 20px;
    font-weight: 500;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100px;
    height: 4px;
    background-color: #224e87;
    transform: translateX(-50%);
}

.section-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.team-hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive columns */
    grid-gap: 15px;
    /* Spacing between images */
}

.team-activities-image-wrapper {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    /* Clip any potential overflow */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.team-activities-image {
    display: block;
    object-fit: cover;
    width: 100% !important;
    height: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 30px;
        padding-bottom: 15px;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    .section-content {
        padding: 30px;
    }

    .team-activities-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        /* Adjust for smaller screens */
    }
}
