body {
    display: flex;
    max-width: 1920px;
    margin: 0px;
    font-family: "Noto Sans Thai", serif;
    background-color: rgb(255 255 255);
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
    align-items: center;

}

#banner {
    position: relative;
    width: var(--full-size);
    height: 400px;
    overflow: hidden;
}

.banner-background img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(0.6);
}


.context_banner {
    width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

.context_banner h1 {
    font-size: 48px;
    font-weight: bold;
    margin: 0;
}

.context_banner p {
    font-size: 22px;
    margin-top: 10px;
}


#section1 {
    width: var(--full-size);
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('/static/img/aboutus/bg-about.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-blend-mode: lighten;
    background-color: rgba(255, 255, 255, 0.92);
    margin: 40px 0px;
}

.row_sec1 {
    width: var(--full-minisize);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.col_row1 {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col_row1 img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.col_row1 h1 {
    font-size: 32px;
    margin: 0;
}

.col_row1 span {
    color: var(--bg_santa_main);
}

.col_row1 h3 {
    font-size: 20px;
    color: var(--bg_santa_main);
    margin: 0;
}

.col_row1 h2 {
    font-size: 28px;
}

.row2_sec1 {
    width: var(--full-minisize);
    display: flex;
    flex-direction: column;

}

.group_col_row2 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 30px;
    justify-content: center;
}

.col_row2 {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 30%;
    height: 300px;
    color: white;
    font-size: 15px;
    line-height: 1.3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    text-align: start;
}

.col_row2 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.col_row2::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.068), rgba(0, 0, 0, 0.719));
}

.col_row2 p {
    position: relative;
    z-index: 3;
    margin: 0;
}

.row3_sec1 {
    width: var(--full-minisize);
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.group_col_row3 {
    width: 100%;
    display: flex;
}

.col_row3_1 {
    height: 536px;
    display: flex;
    align-items: flex-end;
}

.col_row3_2 {
    height: 536px;
    object-fit: contain;
}

.col_row3_3 {
    display: flex;
    align-items: flex-start;
}

.col_row3_3 p {
    font-size: 16px;
}

#section2 {
    width: 100%;
    background-color: #2b9991;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 360px;
}

.row_sec2 {
    width: 90%;
    max-width: var(--full-minisize);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.col_row_sec2 {
    width: 50%;
    position: relative;
    color: white;
}

.col_row_sec2 h2 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
}

.col_row_sec2 p {
    font-size: 16px;
    line-height: 1.8;
}

.col_row_sec2:nth-child(2) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
}

.col_row_sec2:nth-child(2) img {
    width: 180px;
    height: 300px;
    background-color: #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.col_row_sec2:nth-child(2) img:nth-child(1) {
    position: absolute;
    top: 50px;
    left: 20px;
    z-index: 1;
}

.col_row_sec2:nth-child(2) img:nth-child(2) {
    position: relative;
    top: -50px;
    z-index: 2;
}

.col_row_sec2:nth-child(2) img:nth-child(3) {
    position: absolute;
    top: 50px;
    right: 20px;
    z-index: 1;
}

.col_row_sec2:nth-child(2) img:hover {
    transform: scale(1.05);
}

#section3 {
    width: var(--full-minisize);
    height: 400px;
    margin: 40px 0px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.row_sec3 {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.col_row_sec3 {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col_row_sec3 img {
    width: 100%;
    height: 350px;
    border-radius: 16px;

}

.col_row1 iframe {
    width: 100%;
    height: 350px;
}

@media (min-width:1101px) and (max-width: 1919px) {
    #banner {
        width: 100%;
    }

    #section1 {
        width: 90%;
    }
}

@media (max-width:1100px) {
    .context_banner h1 {
        font-size: 20px;
    }

    .context_banner p {
        font-size: 14px;
    }

    #banner {
        width: 100%;
        height: auto;
    }


    .context_banner {
        top: 65%;
    }

    .banner-background img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    #section1 {
        width: 90%;
        height: auto;
    }

    .row_sec1 {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .col_row1 {
        width: 100%;
    }

    .responsive-video {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .row2_sec1 {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .col_row2 {
        width: 100%;
    }

    .row3_sec1 {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .group_col_row3 {
        flex-wrap: wrap;
    }

    .col_row3_1{
        width: 40%;
        height: auto;
        justify-content: center;
        display: flex;
    }
    .col_row3_2 {
        width: 60%;
        height: auto;
        justify-content: center;
        display: flex;
    }

    .col_row3_1 img,
    .col_row3_2 img {
        max-width: 90%;
        height: auto;
    }

    .col_row3_3 {
        width: 100%;
        padding-top: 20px;
        display: block;
    }

    .col_row3_3 p {
        padding: 0 10px;
        font-size: 15px;
        line-height: 1.6;
    }

    #section2,
    #section3 {
        width: 100%;
        height: auto;
    }

    .row_sec2,
    .row_sec3 {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }

    .col_row_sec2,
    .col_row_sec3 {
        width: 90%
    }

    .col_row_sec2:nth-child(2) {
        flex-direction: unset;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0;
        position: relative;
        height: 240px;
        /* ปรับความสูงของกล่องแสดงรูป */
    }

    .col_row_sec2:nth-child(2) img {
        width: 200px;
        height: 300px;
        object-fit: cover;
        border-radius: 10px;
        position: absolute;
        transition: transform 0.3s ease;
    }

    .col_row_sec2:nth-child(2) img:nth-child(1) {
        top: 30px;
        left: 0%;
        z-index: 1;
    }

    .col_row_sec2:nth-child(2) img:nth-child(2) {
        top: -10%;
        left: 0%;
        right: 0%;
        z-index: 2;
    }

    .col_row_sec2:nth-child(2) img:nth-child(3) {
        top: 30px;
        right: 0%;
        z-index: 1;
    }

    .col_row_sec3 img {
        width: 100%;
        object-fit: contain;
    }

    .col_row1 iframe {
        width: 100%;
        height: 250px;
    }

    .col_row1 h1 {
        font-size: 22px;
    }

    .col_row1 h3 {
        font-size: 18px;
    }

    .col_row1 p {
        font-size: 16px;
    }

    .row2_sec1 h2,
    .row3_sec1,
    .col_row_sec2 h2,
    .col_row_sec3 h2 {
        font-size: 20px;
    }

    .col_row2 p,
    .col_row_sec2 p,
    .col_row_sec3 p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .col_row_sec2:nth-child(2) img {
        width: 120px;
        height: 200px;
        object-fit: cover;
        border-radius: 10px;
        position: absolute;
        transition: transform 0.3s ease;
    }

    .col_row_sec2:nth-child(2) img:nth-child(1) {
        top: 30px;
        left: 0%;
        z-index: 1;
    }

    .col_row_sec2:nth-child(2) img:nth-child(2) {
        top: -10%;
        left: 0%;
        right: 0%;
        z-index: 2;
    }

    .col_row_sec2:nth-child(2) img:nth-child(3) {
        top: 30px;
        right: 0%;
        z-index: 1;
    }

    .group_col_row2 {
        flex-wrap: wrap;
    }
}