@import url('https://fonts.googleapis.com/css2?family=Athiti:wght@200;300;400;500;600;700&display=swap');

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

html,
body {
    font-family: "Athiti", sans-serif;
    height: 100%;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

.banner {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.40));
    z-index: 1;
}

.logo {
    height: 92px;
    width: 130px;
    margin-top: -10px;
    cursor: pointer;
}

.navbar {
    width: 70%;
    height: 110px;
    padding: 20px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(73, 72, 72, 0.5);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease-in-out;
}

.nav-list li {
    position: relative;
    padding: 20px;
}

.nav-list a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    background: rgb(109, 109, 109);
    transition: 0.3s;
    color: black;
}

.content {
    width: 100%;
    max-width: 1600px;
    position: absolute;
    color: rgb(255, 255, 255);
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.content h1 {
    font-size: 70px;
    font-weight: 100;
}

.banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    /* จัด dropdown ให้ติดกับเมนูหลัก */
    left: 0;
    background-color: #474747;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-menu-btn {
    display: none;
}

.nav-close-btn {
    display: none;
    position: absolute;
    top: 20px;
    /* ปรับตามตำแหน่งที่ต้องการ */
    right: 20px;
    font-size: 18px;
    color: #fff;
    z-index: 2001;
    background: none;
    border: none;
    cursor: pointer;
}

#languageSwitcher {
    background: transparent;
    color: #f8f6f6;
    border: none;
}


/* Mobile Styles - ปรับเมนูให้ชัดเจน */
@media screen and (max-width: 1049px) {

    html,
    body {
        font-family: "Athiti", sans-serif;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* จัดให้เนื้อหาเริ่มต้นจากด้านซ้าย */
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 50%;
        background-color: rgba(0, 0, 0, 0.9);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding: 60px 20px 20px 20px;
        /* เพิ่ม padding เพื่อขยับเนื้อหาด้านบนลงมา */
        overflow-y: auto;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        z-index: 2000;
    }

    .nav-list.active {
        transform: translateX(0);
        /* margin-top: 40[px]; */
        padding-top: 70px;
    }

    .nav-list li {
        margin: 0px 0;
        /* เพิ่มระยะห่างระหว่างรายการเมนู */
        width: 100%;
        list-style: none;
    }

    #languageSwitcher {
        margin-left: 18px;
        font-size: 15px;
        padding: 10px;
        border: 1px solid #ffffff;
    }
    
    .nav-list a {

        text-decoration: none;
        color: #fff;
        font-size: 1em;
        /* ปรับขนาดฟอนต์ให้ใหญ่ขึ้นเล็กน้อย */
        padding: 0px 0;
        /* เพิ่ม padding บนและล่างเพื่อให้ดูเด่นชัด */
        /* margin-top: 60px; */

        transition: background-color 0.3s, color 0.3s;
        width: 100%;
        /* ให้ครอบคลุมความกว้างของเมนู */
    }

    .nav-menu-btn {
        font-family: "Athiti", sans-serif;
        display: block;
        font-size: 18px;
        /* Adjust font size as needed */
        color: #fff;
        /* White text */
        background: none;
        /* Remove background color */
        border: none;
        /* Remove border */
        cursor: pointer;
        /* Change cursor to pointer to indicate it's clickable */
        z-index: 2001;
        padding: 0;
        /* Remove any padding that may cause a larger clickable area */
        margin-right: 5%;
    }

    .nav-close-btn {
        display: none;
        position: absolute;
        /* top: 20px;
        right: -30px; */
        margin-right: 10%;
        font-size: 18px;
        /* Adjust font size as needed */
        color: #fff;
        z-index: 2001;
        background: none;
        /* Remove any background if applicable */
        border: none;
        /* Remove border */
        cursor: pointer;
        /* Change cursor to pointer */
    }

    .nav-list.active+.nav-close-btn {
        display: block;
    }

    .nav-menu-btn:hover,
    .nav-menu-btn:focus,
    .nav-menu-btn:active {
        background: none;
        /* Remove background on any interactive state */
        border: none;
        /* Remove border */
        outline: none;
        /* Remove any outline that may be causing a border effect */
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        /* จัด dropdown ให้ติดกับเมนูหลัก */
        left: 0;
        background-color: #474747;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

    .dropdown-content a:hover {
        background-color: #f1f1f1;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}


/* ค้นหน้า */
.search-container {
    background-color: #a16922;
    /* สีพื้นหลังของกล่อง */
    padding: 50px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 800px;
    position: absolute;
    /* ใช้ absolute เพื่อจัดตำแหน่ง */
    top: 100%;
    /* ระยะห่างจากด้านบนของหน้าจอ */
    left: 50%;
    /* ระยะห่างจากด้านซ้ายของหน้าจอ */
    transform: translate(-50%, -50%);
    /* ใช้เพื่อจัดกึ่งกลาง */
    z-index: 1000;
    /* ให้อยู่ด้านหน้าสุด */
}

.option-btn {
    background-color: #fff;
    color: #a16922;
    border: 1px solid #a16922;
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.option-btn.active {
    background-color: #f7941d;
    /* สีปุ่มที่ถูกเลือก */
    color: #fff;
}

.option-btn:hover {
    background-color: #f7941d;
    color: #fff;
}

.search-box {
    display: flex;
    width: 100%;
}

.search-box input[type="text"] {
    flex: 4;
    /* เพิ่มความกว้างของฟิลด์ค้นหา */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-box .search-btn {
    flex: 1;
    /* ลดขนาดปุ่มค้นหาให้สอดคล้องกับฟิลด์ค้นหา */
    background-color: #f7941d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box .search-btn:hover {
    background-color: #e6831a;
}

.toggle-container {
    display: flex;
    position: relative;
    width: 450px;
    background-color: #a16922;
    /* สีพื้นหลังกล่อง */
    border-radius: 10px;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked+.toggle-btn {
    background-color: #f7941d;
    /* สีปุ่มที่ถูกเลือก */
    color: #fff;
}

input[type="radio"]:not(:checked)+.toggle-btn {
    background-color: #fff;
    /* สีปุ่มที่ไม่ถูกเลือก */
    color: #000;
}

.toggle-container label:first-of-type {
    border-radius: 25px 0 0 25px;
}

.toggle-container label:last-of-type {
    border-radius: 0 25px 25px 0;
}








/* ทำเลนิยม */
.gallery {
    border: 1px solid #ccc;
}

.gallery:hover {
    border: 1px solid #777;
}

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

.desc {
    padding: 15px;
    text-align: center;
}


.responsive {
    padding: 0 30px;
    float: left;
    width: 24.99999%;
    margin-top: 130px;
    /* เพิ่ม margin-top */
}

@media only screen and (max-width: 700px) {
    .responsive {
        width: 49.99999%;
        margin: 10px 0;
    }
}

@media only screen and (max-width: 500px) {
    .responsive {
        width: 100%;
    }
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* ซ่อนเนื้อหาที่ล้นออกจากกรอบ */
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.responsive {
    flex: 0 0 auto;
    width: 30%;
    /* ปรับให้เหมาะสมกับจำนวนภาพที่ต้องการแสดงในแต่ละครั้ง */
    box-sizing: border-box;
}

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

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 60%;
    width: 40px;
    /* ขนาดของปุ่ม */
    height: 40px;
    /* ขนาดของปุ่ม */
    margin-top: -20px;
    /* จัดให้อยู่ตรงกลางในแนวตั้ง */
    background-color: #a16922;
    /* พื้นหลังโปร่งแสง */
    border: none;
    /* ลบขอบ */
    border-radius: 50%;
    /* ทำให้ปุ่มเป็นวงกลม */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 1000;
    /* ให้อยู่ด้านหน้าสุด */
}

.next {
    right: 1px;
    /* ระยะจากขอบด้านขวา */
}

.prev {
    left: 10px;
    /* ระยะจากขอบด้านซ้าย */
}

.prev:hover,
.next:hover {
    background-color: #7941df;
    /* สีเข้มขึ้นเมื่อ hover */
}

.prev::before,
.next::before {
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 5px;
}

.prev::before {
    transform: rotate(135deg);
    /* ลูกศรชี้ไปทางซ้าย */
    -webkit-transform: rotate(135deg);
}

.next::before {
    transform: rotate(-45deg);
    /* ลูกศรชี้ไปทางขวา */
    -webkit-transform: rotate(-45deg);
}

/* ------------------------ข่าว2--------------------------- */

.image-container {
    width: 100%;
}

.image-container img {
    width: 100%;
    height: auto;
}

.main-container {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FBFDF3;
    /* สีพื้นหลังหลัก */
}

.inner-container {
    background-color: #D6C6A5;
    /* สีพื้นหลังของกล่องด้านใน */
    height: 60vh;
    width: 80%;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
}

.inner-container h1 {
    font-size: 33px;
    margin-top: 0;
    padding-top: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.gallery-container {
    display: flex;
    justify-content: space-around;
    height: calc(100% - 70px);
    /* เว้นพื้นที่สำหรับหัวข้อ */
}

.gallery-item {
    /* background-color: #ccc; */
    width: 30%;
    display: flex;
    flex-direction: column;
    /* จัดเรียงในแนวตั้ง */
    align-items: center;
    justify-content: center;
}

.gallery-image {
    width: 450px;
    height: 370px;
    background-color: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
}

.image-caption {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
    text-align: center;
}



/* --------------------โครงการแนะนำ---------------------------*/
.main-container1 {
    padding: 40px;
    text-align: left;
}

.main-container1 h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.gallery-container1 {
    display: flex;
    justify-content: space-between;
    /* เว้นระยะห่างระหว่างกล่อง */
}

.gallery-item1 {
    background-color: #fff;
    width: 23%;
    /* ปรับขนาดตามความเหมาะสม */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* เพิ่มเงา */
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}

.gallery-image1 {
    width: 100%;
    padding-bottom: 0;
    /* ทำให้กล่องเป็นสี่เหลี่ยมจัตุรัส */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
    /* ป้องกันภาพล้นขอบ */
}

.gallery-image1 img {
    width: 150%;
    height: 150%;
    object-fit: cover;
    /* ปรับขนาดของภาพให้พอดีกับกรอบโดยไม่เสียสัดส่วน */
    border-radius: 4px;
}


.gallery-desc1 {
    font-size: 16px;
    color: #555;
}


/* ------------------------------คำนวนเงินกู้--------------------------------*/

.loan-calculator-container {
    background-color: #A16922;
    /* สีน้ำตาล */
    border-radius: 10px;
    display: flex;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    margin-left: 500px;
}

.loan-calculator {
    flex: 1;
    padding-right: 20px;
}

.loan-calculator h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.loan-calculator label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.loan-calculator input,
.loan-calculator select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.button-container {
    display: flex;
    justify-content: space-between;
}

.button-container button {
    width: 48%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #F7941D;
    color: rgb(0, 0, 0);
    font-size: 16px;
    cursor: pointer;
}

.button-container button:hover {
    background-color: #E6831A;
}

.loan-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loan-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}



/* --------------------------------------------------popup-------------------------------------------------- */

.popup {
    display: none;
    /* ซ่อน popup โดยค่าเริ่มต้น */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Style for the popup content */
.popup-content {
    background-color: #A16922;
    /* สีน้ำตาล */
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    border-radius: 10px;
    text-align: center;
    color: white;
}

/* Close button */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Popup image */
.popup-image img {
    position: absolute;
    width: 655px;
    left: 210px;
}

/* Popup text */
.popup-text p {
    margin: 70px 0;
    font-size: 20px;
}

/* Popup buttons */
.popup-buttons button {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    background-color: #F7941D;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.popup-buttons button:hover {
    background-color: #E6831A;
}

/* ---------------------------------------------------------------------------------------Style for the cookie popup background */
.cookie-popup {
    display: none;
    /* ซ่อนแบนเนอร์คุกกี้ในตอนเริ่มต้น */
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    z-index: 9999;
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-popup button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #f7941d;
    border: none;
    color: white;
    cursor: pointer;
}

/* ---------------------------footer---------------------------------- */



.popup {
    display: none;
    /* ซ่อน popup โดยค่าเริ่มต้น */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Style for the popup content */
.popup-content {
    background-color: #A16922;
    /* สีน้ำตาล */
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    border-radius: 10px;
    text-align: center;
    color: white;
}

/* Close button */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Popup image */
.popup-image img {
    position: absolute;
    width: 655px;
    left: 210px;
}

/* Popup text */
.popup-text p {
    margin: 70px 0;
    font-size: 20px;
}

/* Popup buttons */
.popup-buttons button {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    background-color: #F7941D;
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-family: "Athiti", sans-serif;
}

.popup-buttons button:hover {
    background-color: #E6831A;
}

.popupwechat {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.popupline{
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.footer-box1 {
    width: 100%;
    background-color: #EDE9D3;
    color: #000000;
    padding: 40px 0 20px;
    font-size: 14px;
    line-height: 20px;
}

.row {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.col {
    flex-basis: 100%;
    padding: 15px;
    /* width: 50px; */
    box-sizing: border-box;
}


.col:nth-child(2),
.col:nth-child(3) {
    flex-basis: 100%; /* Full width on smaller screens */
}


.-footer-logo {
    width: 70%;
    height: auto;
    max-width: 250px;
    margin: 0 auto 20px auto;
}


.col .Texth3 {
    width: fit-content;
    margin: 0 auto 15px auto;
    position: relative;
}


.email-id {
    width: fit-content;
    border-bottom: 1px solid #000000;
    margin: 20px 0;
}


.ul1 .li1 {
    list-style: none;
    margin-bottom: 10px;
}

.ul1 .li1 .a1 {
    text-decoration: none;
    color: #000000;
}

.form-box1 {
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #000000;
    margin-bottom: 20px;
}

.form-box1 .uil {
    font-size: 18px;
    margin-right: 5px;
}

.form-box1 .input-box1 {
    width: 65%;
    max-width: 250px;
    background: transparent;
    color: #030303;
    border: 0;
    outline: none;
    text-align: center;
    margin-bottom: 10px;
    font-family: "Athiti", sans-serif;
}

.form-box1 .button-box1 {
    background: transparent;
    border: 0;
    outline: none;
    cursor: pointer;
}

.form-box1 .button-box1 .uil {
    font-size: 18px;
    color: #000000;
}

.social-icons1 {
    text-align: center;
    margin-top: 15px;
}

.social-icons1 .uil,
.social-icons1 .fa-brands {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-size: 20px;
    color: #000;
    margin: 8px;
    cursor: pointer;
}

hr {
    width: 90%;
    border: 0;
    border-bottom: 1px solid #000000;
    margin: 15px auto;
}

.copyright {
    text-align: center;
    font-size: 12px;
    margin-top: 15px;
}


.underline {
    width: 100%;
    height: 5px;
    background: #000000;
    border-radius: 3px;
    position: absolute;
    top: 25px;
    left: 0;
    overflow: hidden;
}

.underline span {
    width: 15px;
    height: 100%;
    background: #fff;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 10px;
    animation: moving 2s linear infinite;
}

@keyframes moving {
    0% {
        left: -20px;
    }

    100% {
        left: 100%;
    }
}

@media screen and (min-width: 480px) {
    .col {
        flex-basis: 45%;
    }

    .col:nth-child(2),
    .col:nth-child(3) {
        flex-basis: 45%;
    }

    .form-box1 .input-box1 {
        width: 70%;
        max-width: 250px;
    }
}

@media screen and (min-width: 768px) {
    .col {
        flex-basis: 45%; /* Adjust for larger screens */
    }

    .col:nth-child(2),
    .col:nth-child(3) {
        flex-basis: 20%; /* Adjust for the 'Links' and 'Newsletter' columns on larger screens */
    }

    .form-box1 .uil {
        font-size: 25px;
    }

    .form-box1 .button-box1 .uil {
        font-size: 25px;
    }
}


@media screen and (min-width: 1024px) {
    .col {
        flex-basis: 22%; /* Adjust for desktop */
    }

    .col:nth-child(2),
    .col:nth-child(3) {
        flex-basis: 15%;
    }
}

/* ---------------------------footer---------------------------------- */

@media screen and (max-width: 1112px) {
    .content h1 {
        font-size: 50px;
        margin-top: 80px;
    }
}

@media screen and (max-width: 794px) {
    .content h1 {
        font-size: 40px;
        margin-top: 100px;
    }
}

@media screen and (max-width: 635px) {
    .content h1 {
        font-size: 30px;
        margin-top: 120px;
    }
}

@media screen and (max-width: 476px) {
    .content h1 {
        font-size: 20px;
        margin-top: 140px;
    }
}