@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: #E4A211;
    --santa_main: #be8200;
    --santa_2main: #C00000;
}


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 =================== */

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

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


.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;
}
.container_all {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.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%;
    align-items: center;
    margin: 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


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


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


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

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

}

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

.headimgcar {
    width: 50%;
    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;
    flex-direction: column;
    justify-content: flex-start;
    height: 500px;
    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: #EDEDED;
    background-image: url(/static/img/car/covercar\ copy.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.247));
    background-color: rgba(255, 255, 255, 0.92);
    width: var(--full-minisize);
    height: 600px;
    border-radius: 10px;
    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: 500px;
    object-fit: scale-down;
    transition: transform 0.3s ease;
    margin-top: -70px;
    margin-left: 300px;
}

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

} */

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

.header_sec1 {
    font-size: 40px;
    text-align: center;
    color: var(--bg_santa_main);
    text-shadow: 2px 2px #b2000040;
    ;
    margin: 0;
    padding: 0px 20px;
}

.text_content_sec1_p {
    font-size: 16px;
    text-align:left;
    width: 80%;
    padding: 0px 20px;
}

/* *--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: 40px;
    height: 40px;
    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;
    
    width: 120px;
    height: 120px;
    justify-content: center;

}

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

.group_boximg p {
    font-size: 14px;
    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: var(--bg_santa_main);
    width: 160px;
    height: 60px;
    border-radius: 10px;
    /* border: 1px solid var(--santa_main); */
    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 {
    background-color: var(--bg_santa_main);
    color: white;
}

.button_sec3.active {
    background-color: var(--bg_santa_main);
    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: var(--santa_main);
    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: var(--santa_main);
    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: #e4a11186;
    ;
}

.slider-wrapper {
    position: relative;
    width: var(--full-minisize);
    
    margin: 30px;
    overflow: hidden;
  }
  
  .slider-container {
    overflow: hidden;
  }
  
  .slider {
    display: flex;
    transition: transform 0.5s ease;
    
  }
  
  .slider img {
    width: calc(100% / 3); /* 3 ภาพต่อแถว */
    height: auto;
    object-fit: cover;
    padding: 20px 5px;
    border-radius: 10px;
  }
  
  .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
    padding: 10px;
    
  }
  
  .prev {
    left: 0;
    
  }
  
  .next {
    right: 0;
    
    }

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

    .all_banname_car {
        width: 90%;
    }

    .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) {
    .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;
    }



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

    .all_con_sec1 {
        width: 100%;
        margin: 0px;
    }

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

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

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

    }

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


    .content_sec1 {
        width: 100%;
        height: auto;
        margin: 0px;
        padding: 0px 10px;
        display: flex;
    }

    .content_sec1_1 {
        height: 600px;
        padding: 0;
        margin: 0;
        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: 150%;
        height: 150%;
        object-fit: scale-down;
        transition: transform 0.3s ease;
        margin-top: -10px;
        margin-left: 20px;
    }

    .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;
        padding: 5px 10px;
    }

    .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%;
        margin-top: -50px;
    }

    .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;

    }

    .slider-wrapper {
        position: relative;
        width: 100%;
        margin: 0px;
        margin-bottom: -20px;
        overflow: hidden;
      }

    .slider img {
        width: 80%; /* แสดงทีละภาพบนมือถือ */
        padding: 10px 5px;
      }
    
    
      .nav {
        font-size: 1.5rem;
        padding: 8px;
      }
    
}