@font-face {
    font-family: 'prompt-r';
    src: url('../fonts/Prompt-Regular.eot');
    src: url('../fonts/Prompt-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Prompt-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'prompt-b';
    src: url('../fonts/Prompt-SemiBold.eot');
    src: url('../fonts/Prompt-SemiBold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Prompt-SemiBold.ttf') format('truetype');
}


@font-face {
    font-family: 'bradley-b';
    src: url('../fonts/Bradley-Hand-Bold.eot');
    src: url('../fonts/Bradley-Hand-Bold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Bradley-Hand-Bold.ttf') format('truetype');
}

:root {
    --max-width:1200px;
    --dark-brown:#9b8067;
    --white:#fff;
    --dark-gray:#717173;
    --blue: #40b7e1;
    --light-brown:#f3ede5;
    --light-blue:#d8f1f9;
    --light-brown-trans:rgba(243, 237, 229, 0.4);
}

/*
*reset
**/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    /*vertical-align: baseline;*/
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

html,body{
    /*height: 100%;*/
    min-height: 100%;
    /*overflow-x: hidden;*/
}

body {
    font-size: 14px;
    font-family: prompt-r;
    min-height:100%;
    line-height: 20px;
    /*color: #3c5060;*/
    color: #7e7f7f;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;
}

h1{
    font-family: bradley-b;
    margin-bottom: 22px;
    font-size: 2.5em;
    line-height: 32px;
    color: var(--color1);
}

h2,h3,h4,h5,h6{
    font-family: prompt-b;
}

strong, b{
    font-family: prompt-b;
}

img{
    width: 100%;
}

a{
    text-decoration: none;
    color: var(--dark-brown);
}

/* GLOBAL a.blue_button - Minimal styling here to avoid conflicts */
a.blue-button{
    background: var(--blue);
    color: #fff !important;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    /* Default display and padding for general usage */
    display: inline-block;
    padding: 8px 16px;
    padding-bottom: 6px;
    box-sizing: border-box;
    /* !!! เพิ่ม reset สำหรับ position และ float ที่นี่เผื่อมีกฎอื่นมาทับ !!! */
    position: static; /* หรือ relative */
    float: none;
    /* *************************************************************** */
}

a.trans_button_white{
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 20px;
    cursor: pointer;
}

a.brown-button{
    display: inline-block;
    background: var(--dark-brown);
    color: #fff;
    text-transform: uppercase;
    padding: 7px 20px;
    padding-bottom: 6px;
    cursor: pointer;
}

a.brown-button:active{
    position: relative;
    top: 1px;
}

a.trans-button-brown{
    text-transform: uppercase;
    color: var(--dark-brown);
    border: 1px solid var(--dark-brown);
    padding: 8px 20px;
    cursor: pointer;
    text-decoration: none; /* ลบขีดเส้นใต้เริ่มต้นของลิงก์ */
    transition: background-color 0.3s ease, color 0.3s ease; /* เพิ่ม transition เพื่อให้เกิด effect ที่นุ่มนวล */
}

a.trans-button-brown:hover{
    background-color: var(--dark-brown);
    color: var(--white);
}

a.more-detail-button{
    color: var(--dark-brown);
    text-decoration: underline;
}

a.more-detail-button i{
    font-size: 1.4em;
    margin-left: 4px;
}

ul, ul li, ul li ul {
    list-style: none;
    margin: 0;

}

blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

table td{
    vertical-align: top;
}


/*
*gobal
*/


input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea, select{
    font-family: Arial, Helvetica, sans-serif;
    font-size:14px;
    letter-spacing:1px;
    color:#575757;
    border:1px solid var(--dark-brown);
    resize:none;
    padding:1px 4px 1px 4px;
    height:34px;
    border-radius: 2px;

    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus{
    border-color: #d2d2d2;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 3px var(--dark-brown);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 3px var(--dark-brown);
}

.ui-widget{
    font-size: 0.8em !important;
}

.ui-datepicker td span,
.ui-datepicker td a{
    padding-right: 10px !important;
}

.ui-datepicker {
    width: 19em !important;
}

select{
    /*background:none;*/
    -webkit-appearance: menulist-button;
}

select:focus{
    border:0;
    outline: 0;
}

/* start smll-top-nav */
.small-top-nav * {
  padding: 0;
  margin: 0;
}

.small-top-nav nav {
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.small-top-nav nav .m-menu__checkbox {
  display: none;
}

.small-top-nav nav label.m-menu__toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
}

/* Base style สำหรับไอคอน (Font Awesome) */
.m-menu__icon {
    display: inline-block;
    width: 35px; /* กำหนดขนาดของพื้นที่ไอคอน */
    height: 35px; /* กำหนดขนาดของพื้นที่ไอคอน */
    vertical-align: middle; /* ช่วยให้จัดตำแหน่งแนวตั้งดีขึ้น */
}

/* Specific styles สำหรับ Font Awesome Icons (Hamburger, Back และ Close) */
.m-menu__icon.fa {
    background-image: none;
    background-color: transparent;
    border: none;
    font-size: 32px;
    color: #333;
    text-align: center;
    line-height: 35px;
}

.m-menu__icon.fa.fa-arrow-left{
    position: relative;
    top: -6px;
}


.small-top-nav nav .m-menu {
    height: 100dvh;
    position: absolute;
    top: 0;
    right: 0;
    max-width: 450px;
    width: calc(100vw - 30px);
    display: flex;
    width: 0;
    flex-direction: column;
    z-index: 101;
    overflow: hidden; /* ปิด overflow ของ .m-menu หลัก */
    background-color: #fff;

    -moz-transform: translate3d(450px, 0, 0);
    -o-transform: translate3d(450px, 0, 0);
    -ms-transform: translate3d(450px, 0, 0);
    -webkit-transform: translate3d(450px, 0, 0);
    transform: translate3d(450px, 0, 0);
    -moz-transition: transform 0.35s;
    -o-transition: transform 0.35s;
    -webkit-transition: transform 0.35s;
    transition: transform 0.35s;

    -moz-transition: transform 0.35s ease-out, width 0.35s ease-out;
    -o-transition: transform 0.35s ease-out, width 0.35s ease-out;
    -ms-transition: transform 0.35s ease-out, width 0.35s ease-out;
    -webkit-transition: transform 0.35s ease-out, width 0.35s ease-out;
    transition: transform 0.35s ease-out, width 0.35s ease-out;
}
.small-top-nav nav .m-menu__overlay {
  background-color: rgba(103, 103, 103, 0.5);
  position: absolute;
  top: 0;
  left: 0;   /* <--- เพิ่ม: เพื่อให้ครอบคลุมจากซ้ายสุด */
  width: 100%;
  height: 100vh;
  z-index: 1;
  display: none;
  opacity: 0; /* <--- เพิ่ม: สำหรับ fade effect */

  /* <--- ปรับ transition ตรงนี้: */
  /* เมื่อปิด overlay: opacity ทำงาน 0.35s, แล้ว display: none หลังจากหน่วง 0.35s */
  transition: opacity 0.35s ease-out, display 0s 0.35s;

  z-index: 100;
}
.small-top-nav nav .m-menu__header {
  padding: 0 16px;
  height: 50px; /* Header มีความสูงคงที่ */
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0; /* Header จะไม่หดตัว */
}
.small-top-nav nav .m-menu__header span {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  width: 100%;
}

.small-top-nav nav .m-menu__header span.home i {
    font-size: 2em;
}

/* สไตล์สำหรับเนื้อหาเมนูที่เลื่อนได้ */
.small-top-nav nav .m-menu__scrollable-content {
  height: 0; /* ตั้งค่าเริ่มต้นเป็น 0 เพื่อให้ flex-grow ทำงานได้อย่างถูกต้อง */
  overflow-y: auto; /* ทำให้ส่วนนี้เลื่อนได้ */
  flex-grow: 1; /* ส่วนนี้จะขยายเพื่อเติมเต็มพื้นที่ที่เหลือทั้งหมด */
  margin: 0;
  padding: 0;
  /* ตรวจสอบให้แน่ใจว่าไม่มี margin-bottom หรือ padding-bottom ที่นี่ */
}

/* สไตล์สำหรับส่วน footer (ปุ่ม Book Now) */
.small-top-nav nav .m-menu__bottom-button { /* *** แก้ไข selector ตรงนี้ครับ *** */
  flex-shrink: 0; /* Footer จะไม่หดตัว */
  padding: 0; /* ลบ padding ออกจาก container เพื่อให้ปุ่มติดขอบ */
  background-color: #fff;
  border-top: 1px solid #e8e8e8;
  margin-top: auto; /* ผลัก footer ลงไปด้านล่างสุด */
  text-align: center;
}

/* ปรับ a.blue_button ให้แสดงผลอย่างถูกต้องใน footer */
.small-top-nav nav .m-menu__bottom-button .blue-button { /* *** แก้ไข selector ตรงนี้ครับ *** */
    font-size: 1.3em;
    display: block !important;
    width: 100% !important;
    padding: 10px 0;
    padding-top: 12;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}


.small-top-nav nav .m-menu .m-menu {
  -moz-transform: translate3d(480px, 0, 0);
  -o-transform: translate3d(480px, 0, 0);
  -ms-transform: translate3d(480px, 0, 0);
  -webkit-transform: translate3d(480px, 0, 0);
  transform: translate3d(480px, 0, 0);
}
.small-top-nav nav .m-menu ul li a, .small-top-nav nav .m-menu ul li label {
  display: block;
  text-align: left;
  padding: 0 15px;
  line-height: 47px;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  font-size: 1rem;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
}
.small-top-nav nav .m-menu ul li label.a-label__chevron::after {
  content: "";
  position: absolute;
  display: inline-block;
  height: 10px;
  width: 10px;
  border-color: #333;
  border-style: solid;
  border-width: 1px 1px 0 0;
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  top: 50%;
  margin-top: -5px;
  right: 16px;
}
.small-top-nav nav .m-menu ul li .-invisible {
  border-bottom: 0;
}
.small-top-nav nav .m-menu .m-menu label.m-menu__toggle {
  border-bottom: 0;
  padding: 0;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
}
.small-top-nav nav .m-menu__checkbox:checked ~ .m-menu__overlay {
  display: block;
  opacity: 1;
}
.small-top-nav nav .m-menu__checkbox:checked ~ .m-menu {
    width: calc(100vw - 30px);
  -moz-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* end smll-top-nav */

.wrapper{
    /*border: 1px solid #ff0000;*/
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;

}

.wrapper:after{
    content: '';
    display: table;
    clear: both;
}

header {
    position: sticky; /* ทำให้ header "ติด" เมื่อเลื่อนหน้า */
    top: 0;           /* ให้ติดที่ด้านบนสุดของ viewport */
    z-index: 99;    /* ให้ header อยู่บนสุดขององค์ประกอบอื่นๆ */
    background-color: #fff; /* กำหนดสีพื้นหลัง (เช่น สีขาว) */
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    width: 100%;      /* ทำให้ header กว้างเต็มหน้าจอ */
}

/* คุณอาจต้องการปรับ padding หรือ margin ของ body เพื่อไม่ให้เนื้อหาถูก header บัง */
body {
    padding-top: 0; /* หรือความสูงของ header ถ้า header มีความสูงคงที่และไม่ได้อยู่ภายใน wrapper */
}

header .logo{
    float: left;
    padding-top: 8px;
}

header .logo img{
    width: 100px;
}

.small-top-nav{
    float: right;
    width:1px;
    text-align: right;
}

.large-top-nav{
    display: none;
}

.large-top-nav .topnav > .active{
    color: var(--blue);
}

.content-container{
    line-height: 24px;
    padding-bottom: 32px;
}

.static-banner{
    height: 250px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

footer{
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    background: var(--light-blue);
    color: var(--dark-brown);
    text-align: center;
    padding-top: 24px;
    padding-bottom: 24px;
    
}

footer p{
    margin-bottom: 12px;
}

footer .r1{
    box-shadow: 0 2px 2px  var(--blue);
    padding-bottom: 12px;
}

footer h6{
    display: block;
    font-size: 1.5em;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 32px;
    text-align: center;
    line-height: 26px;
}

footer .r1 strong{
    font-size: 1.2em;
}

footer .r1 .logo{
    text-align: center;
    margin-bottom: 32px;
}

footer .r1 .logo a{
    display: block;
    text-align: center;
    margin-bottom: 12px;
}

footer .r1 .logo a img{
    display: inline-block;
    width: 150px;
    height: auto;
}

footer .r1 .logo ul li{
    display: inline-block;
}

footer .r1 .logo ul li a{
    border: 2px solid var(--dark-brown);
    padding-top:3px;
    font-size: 18px;
    border-radius: 8px;
    width: 30px;
    height: 29px;
    cursor: pointer;
}

footer .r1 .logo ul li a img{
    width: 100%;
    height: auto;
}

footer .r1 li.tiktok{
    display: inline-block;
}

footer .r1 li.tiktok a{
    position: relative;
    top: 2px;
    display: inline-block;
    font-size: 14px;
    border: 2px solid var(--dark-brown);
    width: 26px;
    height: 25px;
    border-radius: 8px;
    padding-top: 4px;
    padding: 2px;
    padding-top: 3px;
    padding: 4px;
}

footer .r1 .address{
    margin-bottom: 32px;
}


footer .r2{
    padding-top: 24px;
}

footer .r2 .c1{
    margin-bottom: 32px;
}

footer .r2 .c2 p{
    margin-bottom: 32px;
}

footer .r2 .c2 label{
    display: block;
    text-transform: uppercase;
}

footer .r2 .c2 input{
    background: none;
    border: 0;
    border-bottom: 1px solid var(--dark-brown);
    text-align: center;
    width: 100%;
    max-width: 380px;
}

footer .r2 .c3 .subscribe{
    width: 100%;
    max-width: 380px;
    padding: 12px;
}

@media screen and (min-width: 680px){
    .static-banner{
        height: 300px;
    }
}

@media screen and (min-width: 800px){
    .static-banner{
        height: 420px;
    }
}

@media screen and (min-width: 980px){
    .static-banner{
        height: 480px;
    }

    footer{
        padding-bottom: 0;
    }

    footer .r1 .contact{
        display: flex;
    }

    footer .r1 .contact .logo{
        width: 25%;
        text-align: center;
    }

    footer .r1 .contact .address{
        width: 55%;
        text-align: left;
    }

    footer .r1 .contact .gds{
        width: 20%;
        text-align: left;
    }

    footer .r2 .wrapper{
        display: flex;
    }

    footer .r2  .c1{
        width: 20%;   
    }

    footer .r2  .c1 h6{
        text-align: left;
        font-size: 1em;
        line-height: 20px;
    }

    footer .r2  .c1 h6{
        margin-bottom: 0;
    }

    footer .r2  .c2{
        display: flex;
        column-gap: 20px;
        width: 60%;
    }

    footer .r2  .c2 p{
        text-align: left;
        width: 100%;
        margin-bottom: 0;
    }

    footer .r2 .c2 input{
        max-width: 100%;
        text-align: left;
    }

    footer .r2 .wrapper .c3{
        width: 20%;
        padding: 0 32px;
    }
}

@media screen and (min-width: 1100px){
    .static-banner{
        height: 520px;
    }

    .wrapper{
        width: 95%;
    }

    .small-top-nav{
        display: none; /* ถูกต้องแล้วสำหรับหน้าจอขนาดใหญ่ */
    }

    .large-top-nav{
        display: block;
        float: right;
        width: calc(100% - 112px);
    }

    .large-top-nav nav{
        margin-top: 48px;
        float: right;
    }

    .large-top-nav ul {
        font-size: 12px;
        text-align: left;
        display: inline;
        margin: 0 auto;
        margin-left: 0;
        list-style: none;
    }

    .large-top-nav ul li {
        display: inline-block;
        padding: 3px 10px;
        /*margin-top: 1px;*/
        padding-top: 5px;
        position: relative;
        cursor: default;
        -webkit-transition: all 0.2s;
        -moz-transition: all 0.2s;
        -ms-transition: all 0.2s;
        -o-transition: all 0.2s;
        transition: all 0.2s;
    }

    .large-top-nav .topnav.home i{
        font-size: 2em;
    }

    .large-top-nav .topnav.booking-button{
        position: relative;
        width: 130px;
    }

    .large-top-nav .topnav.booking-button a{
        position: absolute;
        top: -25px;
        right: 0;
        padding: 13px 20px;
        padding-bottom: 10px;
    }

    .large-top-nav ul li a{
        display:block;
        line-height: 18px;
        color: rgba(152, 110, 96, 1.0);
        text-transform: uppercase;
        font-family: prompt-b;
        font-size: 1.04em;
    }

    .large-top-nav ul li a.haschild{
        /*cursor: default;*/
    }

    .large-top-nav ul li a.active{
        color: #444;
    }

    .large-top-nav ul > li.active {
        background: rgba(129, 132, 147, .9);
        color: #8a8c8e;
    }

    .large-top-nav ul > li:hover {
        background: none;
    }

    .large-top-nav ul li:hover > a {
        color: #40b7e1;
        display:block;
    }

    /* Styles for the second level dropdown (ul) */
    .large-top-nav ul li ul {
        padding: 0;
        position: absolute;
        z-index:999;
        top: 22px;
        left: 1px;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        display: none; /* ซ่อนเมนูระดับ 2 เมื่อไม่ได้โฮเวอร์ */
        -webkit-transition: opacity 0.2s;
        -moz-transition: opacity 0.2s;
        -ms-transition: opacity 0.2s;
        -o-transition: opacity 0.2s;
        transition: opacity 0.2s;
    }

    /* Styles for list items within the second level dropdown (li) */
    .large-top-nav ul li ul li {
        border-bottom: none; /* *** ลบ border-bottom เดิมออก *** */
        background: rgba(255, 255, 255, .8);
        display: block;
        top: 21px;
        position: relative; /* สำคัญ: เพื่อให้ pseudo-element จัดตำแหน่งแบบ absolute ได้ */
        width: 200px;
        padding: 8px 10px; /* Padding สำหรับข้อความ */
        text-align: left;
        box-sizing: border-box;
    }

    /* สร้างเส้นคั่นสำหรับเมนูระดับ 2 ด้วย pseudo-element */
    .large-top-nav ul li ul li:not(:last-child)::after { /* ใช้ :not(:last-child) เพื่อไม่ให้มีเส้นคั่นรายการสุดท้าย */
        content: "";
        position: absolute;
        bottom: 0;
        left: 10px; /* *** ปรับระยะห่างจากด้านซ้ายของเส้นคั่น *** */
        right: 10px; /* *** ปรับระยะห่างจากด้านขวาของเส้นคั่น *** */
        height: 1px;
        background-color: var(--dark-gray); /* สีเส้นคั่น */
    }

    /* Adjusting width for specific second level dropdowns */


    /* Styles for links within the second level dropdown (a) */
    .large-top-nav ul li ul li a{
        color:#818493;
        text-transform: uppercase !important;
        padding: 0; /* ล้าง padding เดิมที่อาจจะมาจาก li */
    }

    .large-top-nav ul li.active ul li a{
        color:#818493;
    }

    /* Hover styles for second level list items */
    .large-top-nav ul li ul li:hover {
        background: rgba(255, 255, 255, .9);
    }

    /* Hover styles for links within the second level dropdown */
    .large-top-nav ul li ul li:hover a {
        color: #444;
    }

    /* Show second level dropdown on hover of the main list item */
    .large-top-nav ul li:hover > ul {
        display: block; /* แสดงเมนูระดับ 2 */
        opacity: 1;
        visibility: visible;
    }

    /* ------------------- Styles for the Third Level Navigation ------------------- */

    /* Third level UL (submenu of a submenu) */
    .large-top-nav ul li ul li ul {
        padding: 0;
        position: absolute;
        left: 100%; /* จัดตำแหน่งไปทางขวาของ li ระดับที่ 2 */
        top: 0; /* จัดตำแหน่งให้ตรงกับด้านบนของ li ระดับที่ 2 */
        margin-left: 1px;
        width: 180px; /* กำหนดความกว้างสำหรับเมนูระดับ 3 */
        background: rgba(255, 255, 255, .95); /* พื้นหลังที่แตกต่างเล็กน้อย */
        z-index: 1000; /* ให้ z-index สูงกว่าเมนูระดับ 2 */
        opacity: 0; /* ซ่อนตอนเริ่มต้น */
        visibility: hidden; /* ซ่อนตอนเริ่มต้น */
        display: none; /* ซ่อนเมนูระดับ 3 เมื่อไม่ได้โฮเวอร์ */
        -webkit-transition: opacity 0.2s; /* เพิ่ม transition */
        -moz-transition: opacity 0.2s;
        -ms-transition: opacity 0.2s;
        -o-transition: opacity 0.2s;
        transition: opacity 0.2s;
        padding: 0;
        border: 1px solid rgba(230, 230, 230, .5); /* เพิ่มเส้นขอบเพื่อให้ดูชัดเจน */
        border-top: none; /* ไม่มีเส้นขอบด้านบน */
    }

    /* Styles for list items within the third level dropdown (li) */
    .large-top-nav ul li ul li ul li {
        width: 100%; /* ให้ li ใช้ความกว้างเต็มของ ul ระดับ 3 */
        display: block;
        position: relative; /* สำคัญ: เพื่อให้ pseudo-element จัดตำแหน่งแบบ absolute ได้ */
        top: 0;
        margin-top: 0;
        padding: 8px 16px; /* Padding สำหรับข้อความ */
        background: none; /* ไม่ต้องมีพื้นหลังที่ li โดยตรง */
        border-bottom: none; /* *** ลบ border-bottom เดิมออก *** */
        box-sizing: border-box;
    }

    /* สร้างเส้นคั่นสำหรับเมนูระดับ 3 ด้วย pseudo-element */
    .large-top-nav ul li ul li ul li:not(:last-child)::after { /* ใช้ :not(:last-child) เพื่อไม่ให้มีเส้นคั่นรายการสุดท้าย */
        content: "";
        position: absolute;
        bottom: 0;
        left: 15px; /* *** ปรับระยะห่างจากด้านซ้ายของเส้นคั่น *** */
        right: 15px; /* *** ปรับระยะห่างจากด้านขวาของเส้นคั่น *** */
        height: 1px;
        background-color: rgba(230, 230, 230, .5); /* สีเส้นคั่น */
    }

    .large-top-nav ul li ul li ul li:last-child {
        /* border-bottom: none; */ /* ไม่ต้องมีเส้นคั่นสำหรับรายการสุดท้าย (ถูกจัดการด้วย :not(:last-child) แล้ว) */
    }

    /* Styles for links within the third level dropdown (a) */
    .large-top-nav ul li ul li ul li a {
        color: #666; /* สีตัวอักษรสำหรับเมนูระดับ 3 */
        text-transform: none; /* ไม่ต้องเป็นตัวพิมพ์ใหญ่ */
        font-size: 0.95em; /* ขนาดฟอนต์เล็กลงเล็กน้อย */
        line-height: normal; /* ปรับ line-height */
        padding: 0; /* ล้าง padding เดิม */
    }

    /* Hover styles for third level list items */
    .large-top-nav ul li ul li ul li:hover {
        background: rgba(240, 240, 240, .8); /* พื้นหลังเมื่อโฮเวอร์ */
    }

    /* Hover styles for links within the third level dropdown */
    .large-top-nav ul li ul li ul li:hover a {
        color: #40b7e1; /* สีตัวอักษรเมื่อโฮเวอร์ */
    }

    /* Show third level dropdown on hover of its parent second-level LI */
    .large-top-nav ul li ul li:hover > ul {
        display: block; /* แสดงเมนูระดับ 3 */
        opacity: 1;
        visibility: visible;
    }

    footer .r1 .contact .logo{
        width: 30%;
    }

    footer .r1 .contact .address{
        width: 50%;
    }

    footer .r1 .contact .gds{
        width: 20%;
    }
}

@media screen and (min-width: 1200px){
    header{
        padding-left: 0;
    }

    header .logo img{
        width: 110px;
    }

    .large-top-nav nav{
        margin-top: 57px;
        
    }

    .large-top-nav ul li ul {
        top: 22px;
    }

    .large-top-nav ul li ul li {
        top: 20px;
    }

    .static-banner{
        height: 550px;
    }

    footer .wrapper{
        max-width: 100%;
    }

    footer .fcrow1{
        flex-direction: row;
        text-align: left;
        column-gap: 22px;
    }

    footer .fcrow3{
        flex-direction: row;
    }

    footer .fcrow3 > div{
        width: 50%;
        margin: 0 42px;
    }

    footer .fcrow3 > div:nth-child(1){
        text-align: left;
    }

    footer .fcrow3 > div:nth-child(2){
        text-align: right;
    }

    footer .fcrow3 li{
        display: inline-block;
        margin-left: 20px;
    }

}