@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;
}

/* --------------------------------------------------------------------------------------- */

/* link back */
.container .link-back {
    width: 100%;
    margin-top: 5%;
    padding: 0 20%;
    display: flex;
    align-items: center;
    justify-content: left;
}

.container .link-back a {
    font-size: 14px;
    text-decoration: none;
    color: #0C4723;
    text-wrap: wrap;
}

.container .link-back p {
    font-size: 14px;
    text-decoration: none;
    color: #0C4723;
    text-wrap: wrap;
}

.container .link-back a:hover {
    font-size: 14px;
    text-decoration: underline;
    color: #0C4723;
}

/* ---------------------------------------------------------------------------------- */

/* intro */
.container .intro {
    width: 100%;
    height: fit-content;
    padding: 5% 20%;
}

.container .intro h1 {
    font-size: 30px;
}

/* ---------------------------------------------------------------------------------- */

/* section */
.container .sec1,
.container .sec2,
.container .sec3 {
    width: 100%;
    padding: 0px 20%;
}

/* section 1 picture */
.sec1 .choose {
    display: flex;
    justify-content: center;
}

.sec1 .choose .siriraj-btn button {
    font-family: inherit;
    font-size: 16px;

    padding: 10px;

    color: white;
    background: hsla(143, 71%, 16%, 0.6);
    border: black;
    border-radius: 5px 5px 0px 0px;

    cursor: pointer;
    transition: .3s;
}

.sec1 .choose .siriraj-btn button:hover {
    color: white;
    background: #0C4723;
}

.sec1 .choose .SiVPRC-btn button {
    font-family: inherit;
    font-size: 16px;

    padding: 10px;
    margin-left: 5px;

    color: white;
    background: #0C4723;
    border: black;
    border-radius: 5px 5px 0px 0px;

    cursor: pointer;
}

.sec1 .choose .SiVPRC-btn button a,
.sec1 .choose .siriraj-btn button a {
    color: white;
    text-decoration: none;
}

/* sec1 map-pin */
.sec1 .map {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec1 .map img {
    width: 100%;
    height: fit-content;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.412);
}

.sec1 .btn {
    margin-top: 20px;
}

.sec1 .btn button {
    font-family: inherit;
    font-size: 16px;

    padding: 10px 30px;

    color: white;
    background: hsl(143, 71%, 16%);
    border: black;
    border-radius: 5px;

    cursor: pointer;
}

.sec1 .btn button a {
    text-decoration: none;
    color: white;
}


/* section 2 SiVPRC Directory */
.sec2 {
    margin-top: 150px;
}

.sec2 .heading {
    display: flex;
    align-items: baseline;
}

.sec2 .heading h3 {
    width: fit-content;
    font-size: 20px;
    background: linear-gradient(90deg, rgba(93, 8, 8, 1) 0%, rgba(186, 16, 16, 1) 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 5px 50px 5px 50px;
    box-shadow: 3px 1px 10px rgba(0, 0, 0, 0.5);

    z-index: 3;
}

.sec2 .heading h5 {
    width: fit-content;
    font-size: 20px;
    background: linear-gradient(180deg, #D80000 0%, #FF5A5A 100%);
    color: white;
    padding: 10px 70px;
    border-radius: 5px 50px 5px 50px;
    box-shadow: 3px 1px 10px rgba(0, 0, 0, 0.5);
    margin-left: -30px;

    z-index: 2;
}

.sec2 .direct {
    width: 100%;
}

.sec2 .direct .p-th {
    text-align: justify;
    text-wrap: wrap;
    line-height: 30px;
}

.sec2 .direct .p-eng {
    text-align: justify;
    text-wrap: wrap;
    line-height: 30px;
}

/* sec3 */
.sec3 {
    margin-top: 100px;
    height: fit-content;
}

.sec3 .heading {
    display: flex;
    align-items: baseline;
}

.sec3 .heading h3 {
    width: fit-content;
    font-size: 20px;
    background: linear-gradient(90deg, rgba(93, 8, 8, 1) 0%, rgba(186, 16, 16, 1) 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 5px 50px 5px 50px;
    box-shadow: 3px 1px 10px rgba(0, 0, 0, 0.5);

    z-index: 3;
}

.sec3 .heading h5 {
    width: fit-content;
    font-size: 20px;
    background: linear-gradient(180deg, #D80000 0%, #FF5A5A 100%);
    color: white;
    padding: 10px 70px;
    border-radius: 5px 50px 5px 50px;
    box-shadow: 3px 1px 10px rgba(0, 0, 0, 0.5);
    margin-left: -30px;

    z-index: 2;
}

.sec3 .row {
    display: flex;
}

.sec3 .gallery {
    border: 1px solid #ccc;
}

.sec3 .gallery:hover {
    border: 1px solid #777;
}

.sec3 .gallery img {
    width: 100%;
    height: auto;
    padding: 10px 0px 0px 0px;
}

.sec3 .desc {
    padding: 15px;
    text-align: center;
    width: 100%;
    height: 200px;
}


.sec3 .responsive {
    padding: 6px;
    width: 33.33%;
    display: inherit;

    margin-bottom: 10px;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.blank {
    width: 100%;
    height: 100%;

    margin-bottom: 25%;
}

/* ---------------------------------------------------------------------------------- */

/* responsive */
@media screen and (max-width: 1320px) {

    /* intro */
    .container .intro {
        padding: 100px 15%;
    }

    /* link back */
    .container .link-back {
        padding-left: 15%;
    }

    /* section */
    .container .sec1,
    .container .sec2,
    .container .sec3 {
        width: 100%;
        padding: 0px 15%;
    }

    .sec1 .choose .siriraj-btn button {
        font-size: 14px;
    }

    .sec1 .choose .SiVPRC-btn button {
        font-size: 14px;
    }
}

@media screen and (max-width: 1050px) {

    .sec2 .heading,
    .sec3 .heading {
        display: flex;
        flex-direction: column;
        align-items: baseline;
    }

    .sec2 .heading h5,
    .sec3 .heading h5{
        margin: 0 0 30px 0;
    }

    /* sec3 */
    .sec3 .row {
        display: flex;
        flex-direction: column;
    }

    .sec3 .gallery img {
        width: 100%;
        height: auto;
        padding: 10px 0px 0px 0px;
    }

    .sec3 .desc {
        padding: 15px;
        text-align: center;
        width: 100%;
        height: fit-content;
    }

    .sec3 .responsive {
        padding: 6px;
        width: 100%;
        display: inherit;
        margin-bottom: 10px;
    }
}

/* responsive phone */
@media screen and (max-width: 800px) {

    /* intro */
    .container .intro {
        padding: 100px 10%;
    }

    .container .intro h1 {
        font-size: 20px;
    }

    /* link back */
    .container .link-back {
        padding-left: 10%;
    }

    /* section */
    .container .sec1,
    .container .sec2,
    .container .sec3 {
        width: 100%;
        height: fit-content;
        padding: 0px 10%;
    }

    .sec2 .heading,
    .sec3 .heading {
        display: flex;
        flex-direction: column;
        align-items: baseline;
    }

    .sec2 .heading h3,
    .sec3 .heading h3 {
        width: fit-content;
        font-size: 16px;
        background: linear-gradient(90deg, rgba(93, 8, 8, 1) 0%, rgba(186, 16, 16, 1) 100%);
        color: white;
        padding: 10px 25px;
        border-radius: 5px 50px 5px 50px;
        box-shadow: 3px 1px 10px rgba(0, 0, 0, 0.5);

        z-index: 3;
    }

    .sec2 .heading h5,
    .sec3 .heading h5 {
        width: fit-content;
        margin: 0 0 30px 0;
        font-size: 14px;
        background: linear-gradient(180deg, #D80000 0%, #FF5A5A 100%);
        color: white;
        padding: 10px 70px;
        border-radius: 5px 50px 5px 50px;
        box-shadow: 3px 1px 10px rgba(0, 0, 0, 0.5);

        z-index: 2;
    }

    /* sec3 */
    .sec3 .row {
        display: flex;
        flex-direction: column;
    }

    .sec3 .gallery img {
        width: 100%;
        height: auto;
        padding: 10px 0px 0px 0px;
    }

    .sec3 .desc {
        padding: 15px;
        text-align: center;
        width: 100%;
        height: fit-content;
    }

    .sec3 .responsive {
        padding: 6px;
        width: 100%;
        display: inherit;
        margin-bottom: 10px;
    }
}