@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap');

:root {
    --full-size: 1920px;
    --full-minisize: 1200px;
    --fit-height: 1080px;
    --bg_santa_main: #b20000;
    --santa_main: #b20000;
    --santa_2main: #cf2e2e;
}

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 {
    width: var(--full-minisize);
    height: auto;
}

.banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


.container_all {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.all_banname_car {
    display: flex;
    width: var(--full-minisize);
    height: 250px;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    margin-top: 50px;
}

.col1,
.col2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
}

button {
    border: 0;
    background: none;
    padding: 0;
    outline: none;
    cursor: pointer;
}


.headcar {
    display: flex;
    width: 33%;
    height: 150px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 5px;
    background-color: #b2000014;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.headcar:hover {
    background-color: #b2000091;
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}


.headcar.active {
    transform: translateY(2px);
    background-color: #b2000091;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.group_headname {
    display: flex;
    width: 100%;
    background-color: #B20000;
    justify-content: center;
    border-radius: 20px;
    padding: 3px;
}

.headname {
    text-align: center;
    font-size: 15px;
    color: #ffffff;
    margin: 10px 1px;

}

.group_headimgcar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.headimgcar {
    width: 100%;
    object-fit: cover;
}

.content_sec1 {
    width: 100%;
    height: auto;
}

.all_con_sec1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.content_sec1_1 {
    display: flex;
    background-color: #B20000;
    flex-direction: column;
    justify-content: center;
    height: 450px;
    align-items: center;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.247));
    margin-top: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
    width: var(--full-size);
}

.container_img_text {
    background-color: #ffffff;
    width: var(--full-minisize);
    height: 600px;
    /* border: 10px; */
    border: 10px solid #CF2E2E;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
}


.imgcontent_sec1 {
    height: 50%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.imgcontent_sec1 img {
    width: 400px;
    height: 100%;
    object-fit: scale-down;
    transition: transform 0.3s ease;
}

/* .container_img_text:hover .imgcontent_sec1 img {
    transform: scale(1.1);

} */

.textcontent_sec1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 50%;
    width: 100%;
}

.header_sec1 {
    font-size: 40px;
    text-align: center;
    color: #B20000;
    text-shadow: 2px 2px #b2000040;
    ;
    margin: 0;
}

.text_content_sec1_p {
    font-size: 16px;
    text-align: center;
    width: 80%;
}

/* *--sec2--* */
.content_sec2_1 {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 100%;

    align-items: center;
}

.content_sec2_2 {
    display: flex;
    flex-direction: row;
    width: 50%;
    height: 90%;
    justify-content: center;
    margin: 0px;
}

.content_sec2 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.row1_sec2 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.col1_row1 {
    display: flex;
    justify-content: center;
    width: 40%;
}

.col1_row1 img {
    width: 100%;
    height: 450px;
    object-fit: scale-down;
    border-radius: 20px;
}

.col2_row1 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.head_col2 {
    display: flex;
    background-color: var(--santa_main);
    border-radius: 20px;
    width: 80%;
    height: 50px;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.247));
    margin-top: 10px;
}

.head_col2 h1 {
    color: #ffffff;
    text-align: center;
    font-size: 36px;
}

.group_col2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70%;
}

.group_textcol2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-top: 20px;
    width: 90%;
}

.text_col2 img {
    width: 50px;
    height: 50px;
    object-fit: scale-down;
    margin-left: 10px;
}

.text_col2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #ffff;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.13));
    border-radius: 20px;
    margin: 10px 0px;
    width: 100%;
    height: 50px;

}

.text_col2 h3 {
    margin: 0px 20px;
    font-size: 16px;
    font-weight: 600;
}

.col2_row2 {
    width: 100%;
    height: 50%;
    background-color: #ff6464;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.13));
}

.group_textcol2_2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* margin-top: 30px; */
    background-color: #ffffff;
    height: 50%;
    width: 90%;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.13));
    border-radius: 20px;
}

.head_col2_2 {
    display: flex;
    height: 30%;
}

.head_col2_2 h1 {
    font-size: 25px;
    color: var(--color-text);
    text-align: center;
}

.group_box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 70%;
    width: 100%;

}

.group_boximg {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
    border-radius: 20px;
    background-color: #fff;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.13));
    width: 120px;
    height: 120px;
    justify-content: center;

}

.group_boximg img {
    width: 60px;
    height: 80px;
    object-fit: scale-down;
}

.group_boximg p {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin: 10px;
}

.section_img {
    width: 80%;
    max-width: 1200px;
    height: auto;
    margin-top: 100px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
}

.section_img_col1,
.section_img_col2,
.section_img_col3 {
    width: 30%;
    display: flex;
    flex-direction: column;
}

.section_img img {
    width: 360px;
    height: 250px;
    object-fit: cover;
    margin: 10px 0px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section_img img:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/*--- sec3 ---*/
.container_3 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 50px 0px;
    align-items: center;
    width: 100%;
}

.content_sec3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 80%;
    align-items: flex-start;
    max-width: 1200px;
}

.content_sec3_1 {
    display: flex;
    width: 80%;
    height: 600px;
    flex-direction: row;
    margin-top: 100px;
    justify-content: flex-start;
}

.content_button_sec3 {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    transform: translateY(10px);
    z-index: 10;
}

.button_sec3 {
    background-color: #ffffff;
    color: #B20000;
    width: 160px;
    height: 60px;
    border-radius: 10px;
    border: 1px solid #B20000;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.13));
    font-size: 16px;
    font-weight: 600;
    font-family: "Noto Sans Thai", serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button_sec3:hover {
    transform: scale(1.1);
    z-index: 1;
}

.button_sec3.active {
    background-color: #B20000;
    width: 180px;
    color: white;
}

.content_sec3_2 {
    background-color: #ffffff;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.13));
    border-radius: 20px;
    width: 100%;

}

.content_sec3_3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container_text_3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 80%;
    font-size: 18px;
    margin-top: 20px;

}

.container_text_3 h1 {
    color: #B20000;
    font-size: 38px;

}

.container_text_3_1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 80%;
    font-size: 18px;
    margin: 0px 0px 20px;


}

ul {
    list-style-type: none;
    padding-left: 0;
}

/*--sec4--*/

.container_4 {
    background-color: #ffffff;
    border-radius: 20px;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.13));
    width: 90%;
    height: 450px;
    margin: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
}

.container_4 h1 {
    color: var(--color-text);
    font-size: 40px;
    margin: 0;
}

.container_contact {
    display: flex;
    flex-direction: column;
    /* margin: 50px; */
    /* gap: 50px; */
    align-items: center;
    width: 80%;
}

.container_contact_col1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.container_contact_col1 li {
    color: #000000;
    font-weight: 600;
    font-size: 16px;

}

.container_contact_col2_row {
    display: flex;
    align-items: center;
    flex-direction: row;
    width: 80%;
    justify-content: center;
}

.container_contact_col2,
.container_contact_col3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin: 0px 50px;
}

.container_line {
    display: flex;
    align-items: center;
    width: 200px;
    background-color: #ffffff;
    border-radius: 20px;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.13));
    justify-content: flex-start;
    margin-bottom: 20px;

}

.container_line img {
    width: 30px;
    height: 30px;
    object-fit: scale-down;
    margin-left: 20px;
}

.container_facebook {
    display: flex;
    align-items: center;
    width: 200px;
    background-color: #ffffff;
    border-radius: 20px;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.13));
    justify-content: flex-start;
}

.container_facebook img {
    width: 30px;
    height: 30px;
    object-fit: scale-down;
    margin-left: 20px;

}

.text_social {
    color: #000000;
    font-weight: 600;
    font-size: 18px;
    margin: 0px 0px 4px 10px;
}

#backToTop {
    display: none;
    /* ซ่อนปุ่มในตอนแรก */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    padding: 15px 15px;
    background-color: #B20000;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    bottom: 60px;
}

#backToTop img {
    width: 20px;
    height: 20px;
    object-fit: scale-down;
    filter: invert(1);
}

#backToTop:hover {
    background-color: #CF2E2E;
}

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

    .container_all {
        width: 100%;
    }

    .content_sec1_1 {
        width: 100%;
    }

    .container_img_text {
        width: 90%;
    }

    .header_sec1 {
        font-size: 36px;
    }

    .head_col2 h1 {
        font-size: 32px;
    }
}

@media (max-width:1100px) {
    .banner {
        width: 100%;
    }

    .container_all {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        gap: 20px;
    }

    .all_con_sec1 {
        width: 100%;
        margin-top: 20px;
    }

    .all_banname_car {
        flex-direction: column;
        width: 100%;
        height: auto;
        margin-top: 0px
    }

    .col1,
    .col2 {
        width: 100%;
        height: 50%;
    }

    .headcar {
        width: 30%;
        height: auto;
        border-radius: 10px;
        margin: 10px 5px;

    }

    .headname {
        font-size: 15px;
        margin: 5px 1px;
    }


    .content_sec1 {
        width: 100%;
        height: auto;
    }

    .content_sec1_1 {
        height: 500px;
        padding: 20px;
        width: 90%;
    }
    .section_img_col1, .section_img_col2, .section_img_col3 {
        width: 30%;
        height: 300px;
    }

    .section_img img {
        width: 100%;
        height: 100%;
    }

    .container_img_text {
        width: 95%;
        height: 600px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .content_sec2_1 {
        width: 100%;
        height: 40%;

    }

    .content_sec2_2 {
        width: 100%;
        height: 50%;
        margin-top: 10px
    }

    .imgcontent_sec1 {
        height: 40%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .imgcontent_sec1 img {
        width: 100%;
        height: 100%;
    }

    .textcontent_sec1 {
        padding: 10px;
        height: 60%;
    }

    .header_sec1 {
        font-size: 18px;
    }

    .text_content_sec1_p {
        font-size: 12px;
        width: 90%;
    }

    /*section_img*/
    .section_img {
        width: 100%;
        height: auto;
        margin-top: 60px;
    }

    /* Section 2 Adjustments */
    .content_sec2 {
        flex-direction: column;
        height: auto;
        margin-top: 40px;
    }

    .row1_sec2 {
        flex-direction: column;
        width: 90%;
    }

    .col1_row1 img {
        width: 100%;
        height: 220px;
        border-radius: 10px;
    }

    .col2_row1 {
        width: 100%;
    }

    .head_col2 {
        width: 80%;
        height: 5px;

        padding: 15px;
        margin: 0px 0px 0px;
    }

    .text_col2 img {
        width: 20px;
        height: 20px;
    }

    .head_col2 h1 {
        font-size: 14px;
    }

    .group_textcol2 {
        margin-top: 10px;
    }

    .text_col2 {
        height: 30px;
        margin: 5px 0;
    }

    .text_col2 h3 {
        font-size: 10px;
        margin-left: 20px;
    }

    .head_col2_2 h1 {
        font-size: 16px;
    }

    /* Section 3 Adjustments */
    .container_3 {
        margin-top: 20px;
    }

    .content_sec3 {
        width: 90%;
    }

    .content_sec3_1 {
        flex-direction: column;
        margin-top: 50px;
    }

    .content_button_sec3 {
        flex-direction: row;
    }

    .button_sec3 {
        width: 100%;
        height: 40px;
        font-size: 10px;
        margin: 5px 0;
    }

    .button_sec3.active {
        background-color: #B20000;
        width: 100%;
        color: white;
    }

    .container_text_3 {
        width: 80%;
    }

    .container_text_3 h1 {
        font-size: 18px;
    }

    ul,
    p {
        font-size: 12px;
    }

    .group_box {
        display: flex;
        flex-direction: row;
    }

    .group_col2 {
        height: 70%;
    }

    .group_textcol2_2 {
        width: 100%;
        height: 45%;
        margin-top: 10px;
    }


    .group_boximg {
        width: 100%;
        height: 70px;
        margin: 8px;
        margin-top: 10px;
    }

    .group_boximg img {
        width: 30px;
        height: 30px;

    }

    .group_boximg p {
        font-size: 9px;
        margin: 5px;
    }

    /* Section 4 Adjustments */
    .container_4 {
        padding: 10px;
        height: 300px;
        margin: 0px;
    }

    .container_4 h1 {
        font-size: 18px;
        margin: 10px;
    }

    .content_sec4 {
        width: 100%;
    }

    .container_contact {
        gap: 0px;
        width: 90%;

    }

    .container_contact_col2_row {
        display: flex;
        flex-direction: row;
        width: 100%;
        margin-top: 20px;
    }

    .container_contact_col1 {
        width: 100%;
        align-items: center;

    }

    .container_contact_col2,
    .container_contact_col3 {
        width: 100%;
        margin: 0;
    }

    .container_line,
    .container_facebook {
        width: 100%;
        height: 30px;
    }

    .text_social {
        font-size: 10px;
        margin: 2px;
    }

    .container_line img,
    .container_facebook img {
        width: 20px;
        height: 20px;

    }
}