@font-face {
    font-family: 'Noto-Sans-Thai';
    src: url('/assets/fonts/NotoSansThai-VariableFont_wdth\,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    background: #eaeaea;
    font-family: 'Noto-Sans-Thai';
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    padding: 10px 10%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    background: #eaeaea;
    /* z-index: 1; */

}

.logo img {
    width: 200px;
    height: 200px;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.social-media {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 180px;
    height: 60px;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid transparent;
    text-decoration: none;
    transform: rotate(45deg);
    transition: .5s;

}

.social-media a img {
    width: 40px;
    height: 40px;
    transform: rotate(-45deg);
}

.social-media a:hover {
    border-color: rgb(254, 78, 14);

}

.navbarr a {
    font-size: 20px;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    margin: 0 20px;

}

.navbarr .drop_down {
    display: inline-block;

}

.navbarr .drop_down button {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.navbarr .drop_down button:hover {
    color: rgb(254, 78, 14);
}

.navbarr .drop_down a:hover {
    background: none;
}

.navbarr .active {
    color: rgb(254, 78, 14);
}

.navbarr a:hover,
.navbarr a.active {
    color: rgb(254, 78, 14);
}

.navbarr div ul li a.active {
    color: rgb(254, 78, 14);
    background: transparent;
}

.main-home {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 50px 8% 0;
    overflow: hidden;

}

.home-content {
    max-width: 850px;
}

.home-content h1 {
    font-size: 45px;
    line-height: 1.2;
    color: rgb(254, 78, 14);
}

.home-content p {
    font-size: 25px;
    margin: 15px 0 30px;
}

.btn-call,
.btn-line {
    /* margin: 5px; */
    margin-top: 20px;
}

.btn-call img,
.btn-line img {
    width: 60px;
    height: 60px;
    padding: 5px;
}

.btn-call {
    display: inline-block;
    background: rgb(254, 78, 14);
    border: 2px solid rgb(254, 78, 14);
    border-radius: 8px;
    box-shadow: 0 0 20px rgb(0, 0, 0, .1);
}

.call {
    display: inline-block;
    padding: 20px 20px;
    border-radius: 8px;
    font-size: 20px;
    color: #eaeaea;
    background: rgb(254, 78, 14);
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 600;
    transition: .5s;
}

.btn-call .call:hover {
    background: #eaeaea;
    color: rgb(254, 78, 14);
}

.btn-line {
    display: inline-block;
    background: rgb(38, 149, 38);
    border: 2px solid rgb(38, 149, 38);
    border-radius: 8px;
    box-shadow: 0 0 20px rgb(0, 0, 0, .1);
}

.line {
    display: inline-block;
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 20px;
    color: #eaeaea;
    background: rgb(38, 149, 38);
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 600;
    transition: .5s;
}

.btn-line .line:hover {
    background: #eaeaea;
    color: rgb(38, 149, 38);
}

.btn-face {
    display: inline-block;
    background: white;
    border: 2px solid #4267B2;
    border-radius: 8px;
    box-shadow: 0 0 20px rgb(0, 0, 0, .1);
}

.face1 {
    width: 60px;
    height: 60px;
}

.face {
    display: inline-block;
    padding: 20px 25px;
    /* border-radius: 5px; */
    font-size: 20px;
    color: #eaeaea;
    background: #4267B2;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 600;
    transition: .5s;
}

.btn-face .face:hover {
    background: #eaeaea;
    color: #4267B2;
    border-radius: 8px;
}

.img-main {
    position: relative;
    right: -7%;
    width: 450px;
    height: 450px;
    transform: rotate(45deg);

}

.img-main .rhombus {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #eaeaea;
    border: 25px solid rgb(254, 78, 14);
    box-shadow: -15px 15px 15px rgb(0, 0, 0, .2);
    opacity: 0;
    animation: zoomOut 0.5s ease forwards;
    animation-delay: 1.2s;

}

.img-main .rhombus img {
    position: absolute;
    top: -100px;
    left: -300px;
    max-width: 750px;
    transform: rotate(-45deg);
    opacity: 0;
    animation: car 1s ease forwards;
    animation-delay: 1.6s;
}

.main-home .rhombus-back {
    position: absolute;
    top: -80px;
    right: -20%;
    width: 1200px;
    height: 700px;
    background: rgb(254, 78, 14);
    transform: rotate(45deg);
    z-index: -1;
}

@keyframes slideRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1.1);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes car {
    0% {
        transform: translate(300px, -300px) scale(0) rotate(-45deg);
        opacity: 0;
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(-45deg);
        opacity: 1;
    }
}

.back_orange {
    background: rgb(254, 78, 14);
    width: 100%;
    height: 100%;
    padding-top: 50px;
    padding-bottom: 50px;

}

.back_orange1 {
    background: rgb(254, 78, 14);
}

.back-orange1 a {
    text-decoration: none;
    color: #222;
}

.margin_all {
    border: 5px solid rgb(254, 78, 14);
    border-radius: 10px;
    margin-bottom: 15px;
    height: 500px;
}

.margin_all h3 {
    font-size: 28px;
}

.margin_all p {
    font-size: 20px;
}

.margin_all:hover {
    /* transform: rotate(-3deg); */
    box-shadow: 0 0 20px rgba(0, 0, 0, .2);
    transform: translateY(-10px);
}

.margin_all .btn-call {
    background: white;
    border: 2px solid white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgb(0, 0, 0, .1);
}

.margin_all .btn-line {
    background: white;
    border: 2px solid white;
    border-radius: 8px;
    /* padding-left: 13px;
    padding-right: 13px; */
    box-shadow: 0 0 20px rgb(0, 0, 0, .1);
}


.content_semple_img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.content_semple_img .content_semple {
    padding: 60px;
}

.content_semple p {
    text-indent: 2.5em;
    font-size: 25px;
}

.color_1 {
    background-color: #ff9f78;
    height: 400px;
}

.color_2 {
    background-color: #ff7d47;
    height: 400px;
}

.color_2 p,
.color_3 p {
    margin-bottom: 0;
    margin-left: 15px;
}

.color_2 ul {
    padding-left: 4rem;
}

.color_3 {
    background-color: #ff5a16;
    height: 400px;
}

.text_content h3 {
    font-weight: 700;
    color: #ff5a16;
}

/* เพิ่ม button fixed 13/05/67 */
#button_fixed {
    position: fixed;
    right: 10px;
    bottom: 15px;
    z-index: 0;
}

#btn_fiex_class {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    bottom: 0;
    margin-bottom: 15px;
    height: 50px;
    width: 50px;
    font-size: 20px;
    color: #ffffff;
    cursor: pointer;
    background-color: #f46d2d;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
    border-radius: 20px;
    /* outline: none; */
    z-index: 6;
    /* -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%; */
}

#btn_fiex_class~.line_color {
    background: #fff;
    border: 3px solid #06c755;
}

#btn_fiex_class~.face_color {
    background: #fff;
    border: 3px solid #1877f2;
}

#btn_fiex_class~.phone_color {
    background: #fff;
    border: 3px solid #f46d2d;
}

#button_fixed {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 4;
    transition: height 0.3s ease-in-out;
}

#button_fixed.btnf a {
    /* ปุ่มเมื่อปิด */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    white-space: nowrap;
    cursor: pointer;
    transition: .2s all linear;
    -webkit-transition: .2s all linear;
    -moz-transition: .2s all linear;
    -ms-transition: .2s all linear;
    -o-transition: .2s all linear;
    border-radius: 20px;

}

#button_fixed {
    /* height: 240px; */
    margin-right: 12px;
}

#button_fixed.btnf button {
    /* visibility: hidden; */
    font-weight: 600;
    height: 45px;
    padding: 0 20px;
    margin-bottom: 17px;
    color: #fff;
    background: linear-gradient(90deg, #f46d2d, #f4804a);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
    border: 0;
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    opacity: 0;
    white-space: nowrap;
    cursor: pointer;
    transition: .2s all linear;
    -webkit-transition: .2s all linear;
    -moz-transition: .2s all linear;
    -ms-transition: .2s all linear;
    -o-transition: .2s all linear;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

#button_fixed.btnf.open a {
    display: block;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 10px; */
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    opacity: 1;
    transform: translateY(-120%);
}

#button_fixed.btnf.open button {
    transform: translateX(-50%);
    opacity: 1;
}

@keyframes pulse {

    0%,
    100% {
        width: 18px;
        height: 18px;
    }

    50% {
        width: 25px;
        height: 25px;
    }
}

#btn_fiex_class .arrow_open {
    width: 20px;
    height: 20px;
    transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
    animation: pulse 1s infinite ease-in-out;
}

@keyframes phone {

    0%,
    100% {
        transform: rotate(-20deg);
    }

    50% {
        transform: rotate(30deg);
    }
}

#button_fixed .phone_color_bi {
    animation: phone 1s infinite ease-in-out;
}

/* โค้ดส่วนคำถามที่พบบ่อย  เริ่มต้น  */


.faq .section-title {
    margin-bottom: 30px;
}

.faq-list {
    list-style: none;
    padding: 20px;
}
.faq-list .collapse p {
    /* padding: 20; */
    color: #f46d2d;
    margin-left: 15px;
}

/* .faq-list .collapse.show p {
    color: #f46d2d;
    margin-left: 15px;
} */
.faq-list li button img{
    margin-left: 10px;
}
.faq-list div p {
    color: #f46d2d;
    margin-left: 15px;
    margin-top: 10px;
}

.faq-list li {
    margin-bottom: 20px;
}

.question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    /* padding-bottom: 15px; */
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s;
    width: 100%;
    text-align: left;
    /* background: none; */
    /* border: none;
    outline: none; */
}

.question:hover {
    background-color: #e9ecef;
}

/* สถานะเริ่มต้น: เมื่อคำถามถูกปิดอยู่ */
.question.collapsed .icon-close {
    display: none;
}

.question.collapsed .icon-show {
    display: inline;
}

/* สถานะเมื่อคำถามถูกเปิด: เมื่อคำถามถูกเปิด */
.question:not(.collapsed) .icon-close {
    display: inline;
}

.question:not(.collapsed) .icon-show {
    display: none;
}

.collapse {
    transition: max-height 0.3s ease-out;
}

.collapse.show {
    transition: max-height 0.3s ease-in;
}

div .question_head {
    color: #f46d2d;
    font-weight: 600;
}

.faq-list li button{
    font-size: 18px;
}
.icon-show,
.icon-close {
    width: 20px;
    height: 20px;
    /* display: inline-block; */
    vertical-align: middle;
    /* จัดให้อยู่ตรงกลางของปุ่ม */
} 

/* โค้ดส่วนคำถามที่พบบ่อย  จบ  */

/* screen <1876 */
@media only screen and (max-width:1876px) {
    .rhombus-back {
        display: none;
    }
}

/* screen <1100 */
@media only screen and (max-width:1100px) {
    .header {
        height: 90px;
    }

    .header .logo img {
        width: 120px;
        height: 120px;
    }

    .navbarr {
        display: none;
        position: absolute;
        right: 1rem;
        top: 90px;
        height: 200px;
        background-color: white;
        border-radius: 10px;
        padding: 20px;
    }

    .navbarr .drop_down button {
        font-size: 18px;
    }

    .navbarr a,
    .navbarr button {
        display: block;
        margin: 0;
        margin-bottom: 5px;
        padding: 0;
        font-size: 18px;
    }

    .navbarr ul li {
        padding: 5px 20px;
    }

    .social-media {
        display: none;
    }

    .main-home {
        display: inline-block;
        margin-top: 90px;
        height: 1100px;
    }

    .home-content {
        background-color: #eaeaea;

    }

    .home-content h1 {
        font-size: 30px;
    }

    .home-content p {
        font-size: 20px;
        margin: 5px;
    }

    .img-main {
        margin-top: 11rem;
        right: -25rem;

    }

    .rhombus-back {
        display: none;
    }

    .content_semple_img {
        display: inline;
    }

    .img_semple img {
        width: 100%;
        height: auto;
    }

    /* Menu hamburder css */
    .menu_ham {
        display: inline-block;
        cursor: pointer;
        position: absolute;
        right: 6rem;
    }

    .bar1,
    .bar2,
    .bar3 {
        width: 35px;
        height: 5px;
        background-color: rgb(254, 78, 14);
        margin: 6px 0;
        transition: 0.4s;
    }

    .navbarr .drop_down {
        display: block;
    }

    .manu-active {
        display: block;
    }

    /* Rotate first bar */
    .change .bar1 {
        transform: translate(0, 11px) rotate(-45deg);
    }

    /* Fade out the second bar */
    .change .bar2 {
        opacity: 0;
    }

    /* Rotate last bar */
    .change .bar3 {
        transform: translate(0, -11px) rotate(45deg);
    }

    .back_orange {
        padding-top: 0;
        padding-bottom: 0;

    }

    .back_orange1 h2 {
        font-size: 30px;
    }

    .back_orange1 h3 {
        font-size: 23px;
        font-weight: bold;
    }

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

    .content_semple p {
        font-size: 20px;
    }

}

/* screen <930 */
@media only screen and (max-width:930px) {

    .menu_ham {
        right: 2rem;
    }

    .img-main {
        right: -60%;
        width: 300px;
        height: 300px;
        top: -50px;
    }

    .main-home {
        height: 920px;
    }

    .img-main .rhombus img {
        top: -15px;
        left: -200px;
        max-width: 450px;

    }

    .call {
        font-size: 15px;
    }

    .line {
        font-size: 15px;

    }

    .margin_all {
        height: 450px;
    }

    .icon_footer img {
        width: 30px;
        height: 30px;
    }
}

/* screen <764 */
@media only screen and (max-width:770px) {

    .call {
        font-size: 12px;
    }

    .line {
        font-size: 12px;
    }

    .back_orange1 h2 {
        font-size: 30px;
    }

    .back_orange1 h3 {
        font-size: 16px;
        font-weight: bold;
    }

    .margin_all {
        height: 450px;
    }

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

    .margin_all .img_ion {
        padding: 2rem;
    }

    .fs-5 {
        font-size: 1rem !important;
    }

    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 0rem !important;
    }
}

/* screen <574 */
@media only screen and (max-width:574px) {
    .btn_b {
        justify-content: center;
        align-content: center;
    }

    .face1 {
        width: 50px;
        height: 50px;
    }

    .face {
        font-size: 14px;
        padding: 18px 25px;
    }

    .btn_call_button:hover {
        background: transparent;
    }

    .btn_line_button:hover {
        background: transparent;
    }
}

/* screen <531 */
@media only screen and (max-width:531px) {
    .header {
        height: 70px;
    }

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

    .margin_all {
        width: 200px;
    }

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

    .back_orange {
        background: none;
    }

    .call {
        font-size: 10px;
    }

    .line {
        font-size: 10px;
    }

    .btn-call .call1,
    .btn-line .line1 {
        width: 40px;
        height: 40px;
    }

}

/* screen <470 */
@media only screen and (max-width:470px) {

    .home-content h1 {
        font-size: 28px;
    }

    .home-content p {
        font-size: 16px;
    }

    .back_orange1 h2 {
        font-size: 18px;
    }

    .back_orange1 h3 {
        font-size: 14px;
        font-weight: bold;
    }

    .back_orange1 p {
        font-size: 12px;
    }

    .margin_all {
        height: 310px;
    }

    .margin_all .img_ion img {
        width: 40px;
        height: 40px;
    }

    .call {
        font-size: 10px;
        padding: 10px;
    }

    .line {
        font-size: 10px;
        padding: 10px 15px;
    }

    .face {
        font-size: 12px;
        padding: 12px 20px;
    }


    .btn-call .call1,
    .btn-line .line1,
    .btn-face .face1 {
        width: 30px;
        height: 30px;
    }
}

/* screen <414 */
@media only screen and (max-width:416px) {
    .img-main {
        right: -52%;
        width: 270px;
        height: 270px;
        top: -80px;
    }

    .main-home {
        height: 820px;
    }

    .main-home .rhombus img {
        width: 420px;
        height: 420px;
    }


    .margin_all {
        width: 150px;
        height: 250px;
    }

    .margin_all .img_ion {
        padding: 10px 5px;
    }

    .margin_all .img_ion img {
        width: 70px;
        height: 40px;
    }

    .back_orange1 h3 {
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 0;
    }

    .back_orange1 p {
        font-size: 12px;
        margin-bottom: 0;

    }

    .content_semple_img .content_semple {
        padding: 20px 10px;

    }

    .content_semple p {
        font-size: 16px;

    }

    .px-5 {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    .p-2 {
        padding: 5px !important;
    }

    .btn-call,
    .btn-line {
        margin-top: 10px;
    }

    .col {
        flex: 1 0 50%;
    }

}

/* screen <342  */
@media only screen and (max-width:335px) {
    .back_orange1 h3 {
        font-size: 13px;
    }

    .back_orange1 p {
        font-size: 11px;
    }

    .line {
        padding: 10px 14px;
    }

    .call {
        font-size: 10px;
        padding: 9px;
    }
}

/* screen <268  */
@media only screen and (max-width:282px) {
    .col {
        flex: 1 0 100%;
    }

    .back_orange1 h3 {
        font-size: 16px;
    }

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

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

    .color_1 h2,
    .color_2 h2,
    .color_3 h2 {
        font-size: 18px;
    }

    .fs-5 {
        font-size: 0.85rem !important;
    }

    .color_1 {
        height: 350px;
    }

    .color_2 {
        height: 350px;
    }

    .color_3 {
        height: 350px;
    }
}