/* The why hero image section */
.the-why-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background-color: #000;
    color: #fff;
    width: 100%;
    min-height: var(--banner-height);
    margin-bottom: 20px;
}

.the-why-showcase h1 {
    font-size: 60px;
    font-weight: bold;
}

.the-why-showcase p {
    width: 85%;
    font-size: 36px;
    font-weight: bold;
}

.the-why-showcase img {
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* .the-why-showcase > div:nth-of-type(1) {
    margin-top: 100px;
} */

/* Purpose section */
.purpose {
    padding: 50px;
    color: #000000;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.purpose .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    margin: 30px 0;
}

.purpose > div:nth-of-type(4),
.purpose > div:nth-of-type(6) {
    margin-top: 150px; /* set margin-top for the mission and management */
}

.purpose .sub-content p {
    margin-top: 25px;
    width: 90%;
    font-size: 20px;
}

.purpose .sub-content .sub-text {
    margin-top: 25px;
}

/* .purpose .img-container {
    background-color: #f1f1f1;
} */

/* .purpose > div:nth-of-type(6) img {
    max-width: 36%;
} */

.purpose img {
    height: auto;
    max-width: 40%;
}

/* Team section */
.the-team {
    background: #000000;
    color: #fff;
    padding: 0 20px 20px 20px;
}

.the-team a {
    text-decoration: none;
    color: #fff;
}

.the-team .member-imgs h3 {
    font-size: 17px;
    text-align: center;
}

.the-team .member-imgs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 70px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.the-team .member-imgs > div {
    flex: 20%;
    padding: 0 4px;
}

.the-team .member-imgs img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.the-team .member-imgs-mobile img {
    max-height: 185px; 
    width: 152px; 
    object-fit: cover;
}

.the-team .content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 140px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.the-team .content > div:nth-of-type(1) {
    align-self: start;
}

.the-team .content p {
    margin-top: 25px;
    width: 70%;
}

.the-team .content .sub-text {
    margin-top: 15px;
}

/* The board */
.the-board {
    text-align: center;
    padding: 50px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

.the-board .member-imgs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.the-board .member-imgs img {
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
}

.the-board h3 {
    font-size: 17px;
}

.the-board a {
    display: block;
    font-size: 17px;
    text-decoration: none;
    color: #000000;
    margin-bottom: 5px;
}

/* Utilities */
.text-xl {
    font-family: 'Myriad Pro Bold';
    font-size: 40px;
    font-weight: bold;
    line-height: 40px;
}

.sub-text {
    font-family: 'Myriad Pro Bold';
    font-size: 20px;
    font-weight: bold;
}

@media (max-width: 1200px) {
}

/* Media query */
@media (max-width: 1100px) {
    .purpose .content {
        grid-template-columns: 1fr;
    }

    .the-team {
        padding: 0 60px 50px 60px;
    }

    .the-team .member-imgs img {
        height: 150px;
    }
}

@media (max-width: 992px) {
    .the-why-showcase {
        grid-template-columns: 1fr;
    }

    .the-why-showcase p {
        width: 100%;
    }

    .the-why-showcase > div:nth-of-type(2) {
        text-align: center;
    }

    .the-team .member-imgs {
        display: none;
    }

    .the-team .content p {
        width: 90%;
    }

    .the-team .content {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .the-team .content > div {
        align-self: center;
    }

    .the-board .member-imgs {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .purpose {
        padding: 20px 30px;
    }

    .purpose .sub-content p {
        width: 100%;
    }

    .the-board .member-imgs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .the-board .member-imgs img {
        max-width: 50%;
        height: auto;
    }

    .the-board .member-imgs > div {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .the-why-showcase {
        height: 800px;
        margin-bottom: 5px;
        padding: 20px;
    }

    .the-why-showcase img {
        max-width: 90%;
        height: auto;
    }

    .the-why-showcase h1 {
        font-size: 45px;
    }
    
    .the-why-showcase p {
        width: 100%;
        font-size: 35px;
    }

    .purpose {
        padding: 15px;
    }

    /* .purpose img {
        max-width: 100%;
        height: auto;
    } */

    .purpose > div:nth-of-type(4) {
        margin-top: 50px; /* set margin-top for the management */
    }

    .the-team {
        padding: 0 20px 50px 20px;
    }

    .the-team .content p {
        width: 100%;
    }

    .the-board .member-imgs {
        flex-wrap: wrap;
        justify-content: center;
    }
}