.content-header {
    padding: 40px 0;
}
.content-body {
    margin-bottom: 40px;
}
.heading-2 {
    font-weight: bold;
    text-align: center;
    color: #030F20;
    position: relative;
}
.heading-2::after {
    content: '';
    width: 150px;
    height: 3px;
    background-color: #A5312D;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}
.p-subheading {
    font-size: 15px;
    color: #133957;
    text-align: center;
    text-transform: uppercase;
}
.board-img {
    height: 500px;
    cursor: pointer;
    position: relative;
}
.board-img::before {
    content: 'ดูประวัติ';
    width: 100%;
    height: 100%;
    background-color: rgba(19, 57, 87, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    /* font-family: Karla, Arial, Helvetica, sans-serif; */
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 0;
    padding-right: 30px;
}
.board-img::after {
    content: '';
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    background:  url('../img/profile-icon.png') no-repeat center center/ 12px;
    opacity: 0;
    transition: all 0.3s ease;
}
.board-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.board-content {
    padding: 40px 0;
}
.board-img:hover::before,
.board-img:hover::after {
    opacity: 1;
}
.board-title {
    font-size: 20px;
    font-family: 'Kaisei Opti';
    text-transform: uppercase;
    color: #030F20;
    text-align: center;
    margin-bottom: 15px;
}
.board-para-1,
.board-para-2 {
    font-size: 12px;
    color: #333;
    text-align: center;
    font-weight: bold;
    font-family: 'Kaisei Opti', 'Times New Roman', Times, serif;
    margin-bottom: 0;
    text-transform: uppercase;
}
.board-para-1 {
    letter-spacing: 0.02rem;
}
.board-para-2 {
    font-weight: 400;
}
.grid-1,
.grid-2,
.grid-3,
.grid-4,
.grid-5,
.grid-6,
.grid-7,
.grid-8 {
    animation: fadeup 0.8s ease forwards;
    opacity: 0;
}
.grid-4 {
    animation-delay: 1s;
}
.grid-5 {
    animation-delay: 1s;
}
.grid-6 {
    animation-delay: 1s;
}
.grid-7 {
    animation-delay: 1.5s;
}
.grid-8 {
    animation-delay: 1.5s;
}
@keyframes fadeup {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@media screen and (min-width: 768px) {
    .content-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 40px;
    }
    .board-img {
        height: 380px;
    }
    .profile-modal .board-title,
    .profile-modal .board-para-1,
    .profile-modal .board-para-2 {
        text-align: start;
    }
}
@media screen and (min-width: 1024px) {
    .heading-2 {
        font-size: 40px;
    }
    .heading-2::after {
        width: 180px;
    }
    .content-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        grid-gap: 20px;
        justify-content: center;
    }
    .grid-1,
    .grid-4 {
        grid-column: 1 / 3;
    }
    .grid-2,
    .grid-5 {
        grid-column: 3 / 5;
    }
    .grid-3,
    .grid-6 {
        grid-column: 5 / 7;
    }
    .grid-7 {
        grid-column: 1 / 4;
    }
    .grid-7 .board-img,
    .grid-7 .board-content {
        width: 298px;
        margin: 0 auto;
        margin-right: 0;
    }
    .grid-8 {
        grid-column: 4 / 7;
    }
    .grid-8 .board-img,
    .grid-8 .board-content {
        width: 298px;
        margin: 0 auto;
        margin-left: 0;
    }
    .profile-modal .board-title {
        font-size: 30px;
    }
    .profile-modal .board-para-1,
    .profile-modal .board-para-2,
    .profile-modal .profile-q,
    .profile-modal .profile-a {
        font-size: 18px;
        line-height: 2.1rem;
    }
}
@media screen and (min-width: 1200px) {
    .heading-2 {
        font-size: 50px;
    }
    .heading-2::after {
        width: 240px;
    }
    .content-grid {
        grid-gap: 40px;
        max-width: 970px;
        margin: 0 auto;
    }
    .board-title {
        font-size: 22px;
    }

}
@media screen and (min-width: 1400px) {
    .content-grid {
        max-width: 1000px;
        grid-gap: 60px;
    }
}
