:root {
    --primary: #466556;
    --secondary: #6d425a;
    --tertiary: #a56246;
    --quaternary: #ebd5bb;
    --quinary: #f8f4e8;
    --senary: #f9eddc;
    --septenary: #789080;
    --octonary: #3f3b46;

    --white: #ffffff;

    --font-color-primary: #3f3b46;
    --font-color-secondary: #f0d4b8;
    --font-color-tertiary: #6d425a;

    --font-family--primary: 'Sora', sans-serif;
    --font-family--secondary: 'SRI SURY WONGSE', sans-serif;
    --font-family--tertiary: 'WONDER SEASON', sans-serif;

    --font-icon: 'remixicon';


    /* --fs-h2: 54px; */
    --fs-h2: 32px;
    --fs-h2-m: 28px;
    /* --fs-h3: 48px; */
    --fs-h3: 32px;
    --fs-h3-m: 24px;

    --fs-h4: 24px;
    --fs-h4-m: 18px;
    --fs-intro: 18px;
    /* --fs-body: 27px; */
    --fs-body: 16px;
    --fs-tab-title: 32px;
    /* --fs-spec: 39px; */
    --fs-spec: 24px;
    /* --fs-li: 19px; */
    --fs-li: 16px;
    --fs-small: 14px;




}

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



body {
    font-family: 'Sora';
    font-size: 62.5%;
    line-height: 1;

}


.container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 100px 20px;
    /* border: 1px solid #333333; */
}

.heading {
    display: flex;
    row-gap: 16px;
    margin-bottom: 24px;
}

.heading--col {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 48px;
}

.heading .heading__h2 {
    font-family: var(--font-family--tertiary);
    letter-spacing: 1px;
    font-size: var(--fs-h2);
    line-height: 1.2;
    color: var(--primary);
    text-transform: uppercase;
}

.heading .heading__h2--q {
    color: var(--quaternary);
}

.heading__p {
    width: 86%;
    margin: auto;
    font-size: var(--fs-intro);
    color: var(--font-color-primary);
    line-height: normal;
    font-weight: 100;
}

.heading .heading__h3 {
    font-size: var(--fs-h3);
    text-transform: uppercase;
    font-family: var(--font-family--secondary);
}

.heading .heading__h3--tertiary {
    color: var(--tertiary);
}

/* HEADER */
.header {
    position: absolute;
    width: auto;
    top: 100px;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 1;
}

.header__logo {
    width: 350px;
    height: auto;
    margin: auto;
}

.header__logo img {
    width: 100%;
}

/* SLIDE */
.section-slideshow {
    position: relative;
    height: 80vh;
}

.section-slideshow.vh100 {
    height: 100vh;
}

.section-slideshow img.img-slideshow {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    display: block;
}

.section-slideshow.vh100 img.img-slideshow {
    height: 100vh;
}


.section-cover {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.overlay-slideshow {
    background: #00000080;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.408) 0%, #00000000 100%);
}

.slide-show .slick-dots {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 30px;
    z-index: 1;
}

.slide-show .slick-dots button {
    background: var(--quinary);
    opacity: 1;
    width: 12px;
    height: 12px;
}


.slick-dots li.slick-active button {
    background-color: var(--primary);

}


.section-slideshow::before,
.overlay-slideshow {
    pointer-events: none;
}

.section-slideshow .img-slideshow {
    transform: scale(1.05);
    /* เริ่ม zoom */
    opacity: 0;
}

.section-slideshow .slide-show .slick-active .img-slideshow {
    animation: zoomOnly 6s ease forwards;
}

@keyframes zoomOnly {
    0% {
        transform: scale(1.05);
        /* ใหญ่ */
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: scale(1);
        /* zoom ออก */
        opacity: 1;
    }
}

/* Intro Section Layout & Style */
.intro {
    background-color: var(--quinary);
    overflow: hidden;

}

.intro__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.intro__content {
    flex: 1;
    max-width: 80%;
}

.intro__text {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.intro__text p {
    font-family: 'Sora', sans-serif;
    font-size: var(--fs-body);
    color: var(--font-color-primary);
    line-height: 1.6;
    padding-right: 10%;
}

.intro__image {
    flex: 0 0 20%;
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
}

.intro__image__block {
    position: absolute;
    width: 380px;
}

.intro__image img {
    width: 100%;
    height: auto;
    display: block;

}

/* ======================================= */
/* MENU */
/* ======================================= */
.menu {

    background-color: var(--senary);

    background-image: url(../images/background-menu.png);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;

    /* background-attachment: fixed; */


}

.menu::before,
.menu::after {
    content: '';
    width: 50%;
    height: 31px;
    display: block;
    left: 0;
    right: 0;
    margin: auto;
    background-image: url(../images/section-menu-line.svg);
    background-repeat: repeat-x;
    background-size: cover;
}

.menu::before {
    top: 0;
    transform: translateY(-50%);
}

.menu::after {
    bottom: 0;
    transform: translateY(50%);
}

.menu .container {
    padding-top: 30px;
    padding-bottom: 30px;
    position: relative;
}

.parallax-bg {
    width: auto;
    max-width: 150px;
    position: absolute;
    left: 0;
    top: 60%;
    transform: translateX(-50%);

    z-index: 1;
}

.parallax-bg img {
    width: 100%;
}

/* ===Boxset=== */

.menu__boxset {
    width: 100%;
    margin-bottom: 40px;
}

.menu__boxset__heading {
    margin-bottom: 24px;
}

.menu__boxset__heading h3 {
    margin: 0;
    font-size: 32px;
    text-transform: uppercase;
    font-family: var(--font-family--secondary);
}


/* ===Tabs=== */

.menu__boxset__tabs {
    width: 100%;
}

.menu__boxset__tablist {
    display: flex;
    /* border-top-left-radius: 10px;
    border-top-right-radius: 10px; */


}

.menu__boxset__tab {
    position: relative;
    padding: 10px 20px;
    border: 0;
    background: var(--quinary);
    cursor: pointer;
    border: 1px solid var(--secondary);
    font-size: 18px;
    color: var(--secondary);
    overflow: hidden;
    text-transform: uppercase;
    font-family: var(--font-family--secondary);
    font-weight: bold;

    transition: color 0.2s ease, border-color 0.2s ease;


}

.menu__boxset__tab:not(:first-child) {

    transform: skewX(20deg) translateX(-20px);
}

.menu__boxset__tab:not(:first-child) span {
    transform: skewX(-20deg);
}




.menu__boxset__tab:first-child {
    border-top-left-radius: 4px;
    padding-right: 40px;
}

.menu__boxset__tab:last-child {
    border-top-right-radius: 4px;

}

.menu__boxset__tab span {
    display: inline-block;
    /* transform: skewX(-20deg); */
    /* ใส่ค่าเป็นบวกเพื่อดึงข้อความกลับ */
}

.menu__boxset__tab:hover {
    color: var(--white)
}

.menu__boxset__tab.active {
    color: var(--white);
}



.theme__color--1 .menu__boxset__heading {
    color: var(--secondary);
}

.theme__color--1.menu__boxset__tab {
    border: var(--secondary);
}

.theme__color--1 .menu__boxset__tab.active,
.theme__color--1 .menu__boxset__tab:hover {
    background-color: var(--secondary);

}

.theme__color--1 .menu__boxset__tab.active {
    border: var(--secondary);
}

/*  */
.theme__color--2 .menu__boxset__heading {
    color: var(--primary);
}

.theme__color--2.menu__boxset__tab {
    border: var(--primary);
}

.theme__color--2 .menu__boxset__tab.active,
.theme__color--2 .menu__boxset__tab:hover {
    background-color: var(--primary);

}

.theme__color--2 .menu__boxset__tab.active {
    border: var(--primary);
}

/*  */
.theme__color--3 .menu__boxset__heading {
    color: var(--tertiary);
}

.theme__color--3.menu__boxset__tab {
    border: var(--tertiary);
}

.theme__color--3 .menu__boxset__tab.active,
.theme__color--3 .menu__boxset__tab:hover {
    background-color: var(--tertiary);

}

.theme__color--3 .menu__boxset__tab.active {
    border: var(--tertiary);
}


/* ===Tab Content==== */


.menu__boxset__content {
    height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
}

.menu__boxset__content.active {
    height: auto;
    overflow: visible;
    visibility: visible;
    opacity: 1;
}

.menu__footer {
    display: flex;
    justify-content: center;
    font-size: var(--fs-spec);
    text-align: center;
    color: var(--secondary);
}

.menu__footer a {
    color: var(--secondary);
    text-decoration: none;
}

.menu__footer a:hover {
    text-decoration: underline;
}

.slide-menu {
    background-color: var(--secondary);
    border: 1px solid var(--secondary);
}

.slide-menu .slide-menu__item {
    border: 1px solid var(--secondary);
    background-color: var(--quaternary);
}

.menu__item {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.menu__item h4 {
    text-align: center;
    text-transform: uppercase;
    color: var(--secondary);
    font-family: var(--font-family--secondary);
    font-size: var(--fs-h4);
    line-height: 1;
    height: 45px;

}

.menu__item img {
    aspect-ratio: 1/1;
    width: 100%;
}

/* CONDITION */
.condition__wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 100px;
}

/* โครงสร้างเดิมของคุณ */
.condition__wrapper ul {
    margin: 0;
    padding: 0;
    list-style: none;
    /* ซ่อน bullet มาตรฐาน */
}

.condition__wrapper ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #333;
    font-size: var(--fs-li);
}

/* สร้าง Diamond Narrow Bullet */
.condition__wrapper ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 8px;
    height: 10px;
    background-color: var(--primary);
    /* สี Diamond ปกติ (แถวคู่) */
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* เปลี่ยนสีข้อความสำหรับแถวคี่ */


/* เปลี่ยนสี Diamond Bullet สำหรับแถวคี่ */
.condition__wrapper ul li:nth-child(even)::before {
    background-color: #bf5731;
}


/* ======================================= */
/* CONDITION */
/* ======================================= */
.condition {
    background-color: var(--quinary);
    color: var(--font-color-primary);
}



/* ======================================= */
/* FOOTER */
/* ======================================= */



/* COPYRIGHT */
.footer {
    background-color: var(--septenary);
    color: var(--quaternary);
}

.footer .container {
    padding-top: 48px;
    padding-bottom: 48px;
    position: relative;
}

.footer a {
    color: var(--quaternary);
    text-decoration: none;
    line-height: normal;
}


.footer__bg .object__img {
    position: absolute;
    display: block;
    bottom: 0;
    left: 0px;
    transform: translate(-20%, 0);
}

.footer__bg .object__img img {
    width: 110%;
    height: auto;
}

.footer i {
    font-family: var(--font-icon);
    font-size: 18px;
    line-height: 1;

    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--quaternary);
}

.footer__icon {
    width: 35px;
    height: auto;
}

.footer__content {
    display: grid;
    grid-template-columns: 0.9fr 1.7fr 1fr;
    align-items: center;
    column-gap: 40px;
}

.footer__contact li {
    font-size: var(--fs-li);
}

.footer__contact li:last-child {
    padding-left: 40px;
}

.heading__h2--footer {
    font-family: var(--font-family--tertiary);
    font-size: 28px;
    color: var(--quaternary);
    text-transform: capitalize;
    letter-spacing: 1px;
}

.footer__follow {
    margin-top: 24px;
    padding-top: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer__follow h4 {
    font-size: 16px;
}

.footer__follow ul {

    display: flex;
    gap: 8px;
}

.footer__follow ul li {
    list-style: none;
}


.footer__contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__contact li {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer__contact li .icon {
    width: 35px;
    height: auto;

}

.footer__link {
    text-decoration: underline !important;
}


.footer__logo {
    display: flex;
    padding: 20px;
}



.footer__copy .container {
    padding-top: 16px;
    padding-bottom: 16px;
}

.footer__copy-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

}

.footer__copy-wrapper .text-end {
    text-align: right;
}

.footer__copy {
    background-color: var(--octonary);
    color: var(--quaternary);
    font-size: var(--fs-small);
}

.footer__copy a {
    color: var(--quaternary);
}

.line {
    border-top: 1px solid var(--quaternary);
}

/* PAGE NOT FOUND */
.section_page_not_found {
    background-color: var(--senary);
    color: var(--primary);

}

.error404 header,
.error404 .site-header {
    display: none;
}

.page-not-found {
    text-align: center;
    padding-top: 100px;
}

.page-not-found .heading-large {
    font-size: 10rem;
    line-height: 1;

}

.page-not-found .heading-sub {
    font-size: 1.5rem;

}

.page-not-found h2 {
    margin-bottom: 16px;
}

.page-not-found .button-group {
    margin-top: 32px;
}


/* ======================================= */
/* SLICK */
/* ======================================= */

.slick-arrow {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    z-index: 1;
}

.slick-prev.slick-arrow {
    left: 0px;
    transform: translateX(-50%);
}

.slick-next.slick-arrow {
    right: 0px;
    transform: translateX(50%);
}

.slick-arrow::before {
    font-family: "remixicon";
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* background-color: #a56246; */
    transform: rotate(45deg);
    border: 1px solid var(--secondary);

}

.theme__color--1 .slick-arrow::before {
    background-color: var(--secondary);
}

.theme__color--2 .slick-arrow::before {
    background-color: var(--primary);
}

.theme__color--3 .slick-arrow::before {
    background-color: var(--tertiary);
}

.slick-arrow::after {

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: var(--white);

}

.slick-prev.slick-arrow::after {
    font-family: 'remixicon' !important;
    content: "\ea60";

}

.slick-next.slick-arrow::after {
    font-family: 'remixicon' !important;
    content: "\ea6c";
}

.slick-arrow:hover::after {
    cursor: pointer;
}

/* 1. กำหนดให้ Track หลักของ Slick แสดงผลแบบ Flexbox */
.slide-menu .slick-track {
    display: flex !important;
}

/* 2. บังคับให้แต่ละ Slide ยืดความสูงเต็ม Track */
.slide-menu .slick-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column;
}

/* 3. ยืด Container ซ้อนด้านในให้เต็มความสูง */
.slide-menu .slick-slide>div {
    height: 100%;
    width: 100%;
    display: flex;
}

/* 4. ปรับโครงสร้าง Item ด้านในสุดให้ยืดเต็มและจัดแนว */
.slide-menu__item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu__item {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* จัดปุ่ม/ข้อความให้อยู่ตำแหน่งเดียวกัน */
}


@media (max-width: 992px) {
    .container {
        padding: 100px 30px;
    }

    .intro__wrapper {
        flex-direction: column;
    }

    .intro__image, .intro__content {
        width: 100%;
        max-width: 100%;
    }

    .intro__image__block {
        right: 0;
        bottom: 0;
        transform: translateX(50%);
    }

    .intro__text {
        padding-right: 100px;
    }

    .footer__bg .object__img img {
        width: 90%;

    }
}

@media (max-width: 768px) {
    .header__logo {
        width: 250px;
    }

    .heading {
        margin-bottom: 32px;
    }

    .heading .heading__h2 {
        text-align: center;
    }

    .intro__text p {
        padding-right: 0;
        text-align: center;
    }

    .intro__image__block {
        width: 200px;
        position: relative;
        left: 0;
        transform: none;
        margin-top: 32px;
    }

    .intro__text {
        padding-right: 0px;
    }

    .condition__wrapper {

        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 32px;
    }

    .menu {
        background-position: left top;
    }

    .menu__item h4 {
        font-size: var(--fs-h4-m);
    }

    .footer__bg .object__img {
        position: relative;
        display: block;
        bottom: inherit;
        left: inherit;
        transform: none;
        text-align: center;
    }

    .footer__bg .object__img img {
        width: 50%;
    }

    .footer__content {
        display: flex;
        flex-direction: column-reverse;
    }

    .footer__logo {
        width: 100%;
        margin-bottom: 32px;
    }

    .footer__logo img {
        width: 70%;
        margin: auto;
    }

    .footer__contact__wrapper {
        justify-items: center;

    }

    .footer__contact {

        align-items: center;
    }

    .footer__bg {
        display: none;
    }



}

@media (max-width: 545px) {
    .footer__copy-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer__copy-wrapper .text-end {
        text-align: center;
    }

    .heading .heading__h2 {
        font-size: var(--fs-h2-m);
    }



    .menu__boxset__heading h3 {
        font-size: var(--fs-h3-m);
    }


}