@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

* {
    box-sizing: border-box;
}

/* Style the body */
body {
    background-color: rgb(255, 255, 255);
    max-width: 100vw;
    margin: auto;
    font-family: 'Google Sans';
}

.container {
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* banner */
.container .banner {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    height: fit-content;

    z-index: 0;
}

.container .banner .banner-text .logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container .banner .banner-text .logo img {
    width: 20%;
}

.container .banner .banner-text {
    width: 100%;
    height: fit-content;
    position: relative;

    padding: 100px 20%;

    background-image: url(image/cover-manu/00-cover-ศูนย์วิจัย/blood-vessel-1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #ffffff9c;
    background-blend-mode: screen;

    /* border: 1px solid black; */
}

.container .banner .banner-text h1 {
    text-align: center;
    font-size: 55px;
}

.container .banner .banner-text h1 section {
    margin-top: 10px;
    text-align: center;
    font-size: 35px;
}

.container .banner .banner-text .line {
    border: 1px solid rgb(0, 0, 0);
    border-radius: 100px;
    margin-bottom: 70px;
}

.container .banner .banner-text p {
    text-align: center;
    text-wrap: wrap;
    font-size: 20px;
    font-weight: 700;
    background-color: rgba(186, 16, 16, 1);
    border-radius: 1000px;
    padding: 10px;
    color: white;
    text-shadow: 1px 5px 10px rgba(0, 0, 0, 0.8);
}

/* intro */
.container .intro {
    width: 100%;
    height: fit-content;
    padding: 100px 20%;
}

.container .intro .line {
    width: 30%;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 100px;
}

.container .intro p {
    padding: 10px 0px 10px 0px;
    font-size: 20px;
    text-align: justify;
    text-indent: 100px;
    line-height: 35px;
}

/* menu */
.wrapper {
    width: 100%;
    height: fit-content;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.parent {
    width: 33.1%;
    height: 300px;
    overflow: hidden;
    position: relative;
    display: inline-block;
    cursor: pointer;
    /* border-radius: 10px; */
    /* border: 1px solid goldenrod; */
}

.parent:hover .bg-one,
.parent:hover .bg-two,
.parent:hover .bg-three,
.parent:hover .bg-four,
.parent:hover .bg-five,
.parent:hover .bg-six {
    transform: scale(1.3);
}

.child {
    width: 100%;
    height: 100%;
    background-size: cover;
    transition: all 1s;

    display: flex;
    align-items: center;
    justify-content: center;
}

.child a {
    width: 100%;
    height: 100%;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: opacity(100%);
}

.child a p {
    width: 350px;
    height: fit-content;
    padding: 20px 10px;
    font-size: 20px;
    margin: 0;
    color: #0C4723;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #ffffff;
    background-color: rgba(255, 255, 255, 0.8);
}

.bg-one {
    background-image: url(image/cover-manu/01-งานวิจัย/paper-01.jpg);
}

.bg-two {
    background-image: url(image/cover-manu/02-ตรวจประสาทอัตโนวัติ/เครื่องมือ-02.jpg);
}

.bg-three {
    background-image: url(image/cover-manu/03-อาสาสมัคร/volunteers-02.jpg);
}

.bg-four {
    background-image: url(image/cover-manu/04-บุคลากรวิจัย/บุคลากรวิจัย-03.jpg);
}

.bg-five {
    background-image: url(image/cover-manu/05-ข่าว_บรรยาย_สัมนา/สัมมนา-01.jpg);
}

.bg-six {
    background-image: url(image/cover-manu/06-ความภาคภูมิใจ/ภาคภูมิใจ-01.jpg);
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------- */


/* blank */
.container .blank {
    width: 100%;
    height: 500px;
}
/* ---------------------------------------------------------------------------------------------------------------------------------------------- */

/* responsive */
@media screen and (max-width: 1320px) {
    .container .banner .banner-text {
        padding: 100px 15%;
    }

    .container .banner .banner-text h1 {
        font-size: 40px;
    }

    .container .banner .banner-text h1 section {
        font-size: 27px;
    }

    /* intro */
    .container .intro {
        padding: 100px 15%;
    }
}

@media screen and (max-width: 1170px) {

    /* menu */
    .parent {
        width: 100%;
    }

    .child a p {
        width: 50%;
    }
}

@media screen and (max-width: 800px) {
    .container .intro p {
        line-height: 25px;
    }

    .container .banner .banner-text .logo img {
        width: 15%;
    }

    .container .banner .banner-text {
        padding: 100px 10%;
    }

    .container .banner .banner-text h1 {
        font-size: 20px;
    }

    .container .banner .banner-text h1 section {
        font-size: 14px;
    }

    .container .banner .banner-text .line {
        border: 1px solid rgb(0, 0, 0);
        border-radius: 100px;
        margin-bottom: 20px;
    }

    .container .banner .banner-text p {
        font-size: 12px;
    }

    /* intro */
    .container .intro {
        padding: 100px 10%;
    }

    .container .intro p {
        text-indent: 50px;
        font-size: 14px;
    }

    .child a p {
        font-size: 14px;
    }
}