/* Core Members Section */
#core-members {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Flexbox Grid for Core Member Cards */
.core-member-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    /* Adjust gap between cards as needed */
}

.core-member-card {
    flex: 0 1 calc(33.333% - 20px);
    /* 3 cards per row with gap adjustment */
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    box-sizing: border-box;
    text-align: center;
    padding: 20px;
}

.core-member-card img {
    width: 100%;
    border-radius: 50%;
}

.core-member-card h3 {
    font-size: 20px;
    margin: 10px 0;
}

.core-member-card p {
    font-size: 16px;
    color: #666;
    margin: 5px 0;
}

.core-member-card:hover {
    transform: translateY(-10px);
}

/* Team Group Photos Section Styles */
.team-group-photos {
    margin-top: 40px;
    text-align: center;
}

.team-group-photos h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.team-group-photos p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* Flexbox Grid */
.team-group-photo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    /* Adjust gap between photos as needed */
}

.team-group-photo {
    flex: 0 1 calc(33.333% - 20px);
    /* 3 photos per row with gap adjustment */
    box-sizing: border-box;
}

.team-group-photo img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {

    .core-member-card {
        flex: 0 1 calc(50% - 20px);
        /* 2 cards per row */
    }

    .team-group-photo {
        flex: 0 1 calc(50% - 20px);
        /* 2 photos per row */
    }
}

@media (max-width: 768px) {

    .core-member-card {
        flex: 0 1 calc(50% - 20px);
        /* 1 card per row */
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .team-group-photo {
        flex: 0 1 calc(100% - 20px);
        /* 1 photo per row */
    }

    .section-header h2 {
        font-size: 26px;
    }

    .section-header p {
        font-size: 15px;
    }

    .core-member-card h3 {
        font-size: 17px;
    }

    .core-member-card p {
        font-size: 14px;
    }

    .team-group-photos h2 {
        font-size: 28px;
    }

    .team-group-photos p {
        font-size: 15px;
    }
}

@media (max-width: 620px) {
    .core-member-card {
        flex: 0 1 calc(100% - 20px);
        /* 1 card per row */
    }
}