﻿#home-top-banner {
    position: relative;
    margin-top: -102px;
    z-index: 1;
    background-color: #FAF5F1;
}

.htb-bg-img {
    background-image: url('../images/home-banner-top.jpg');
    background-size: cover;
    background-position: bottom center;
    width: 100%;
    height: 121vh;
    border-bottom-left-radius: 140px;
    border-bottom-right-radius: 140px;
}

.home-tb-detail {
    position: absolute;
    top: 108px;
    z-index: 99;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
}

.home-tb-tag {
    background: #E9FAD2;
    padding: 6px 12px;
    border-radius: 100px;
    overflow: hidden;
    white-space: nowrap;
    width: 300px;
    margin: 0 auto;
    position: relative;
    height: 30px;
}

    .home-tb-tag span {
        animation-name: slide;
        animation-duration: 10s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
        -webkit-animation-name: slide;
        -webkit-animation-duration: 11s;
        -webkit-animation-timing-function: linear;
        -webkit-animation-iteration-count: infinite;
        white-space: nowrap;
        position: absolute;
        transform: translate(-100px);
        color: #86BA41;
        font-family: 'IBMPlexSansThai-SemiBold';
        line-height: 22px;
        font-size: 14px;
    }

.home-tb-title {
    font-family: 'IBMPlexSansThai-Bold';
    font-size: 40px;
    line-height: 48px;
    color: #766092;
    margin-top: 8px;
}

    .home-tb-title h1 {
        font-family: 'IBMPlexSansThai-Bold';
        font-size: 42px;
        line-height: 50px;
        color: #766092;
        margin-top: 8px;
    }

.home-tb-description {
    color: #766092;
    margin-top: 8px;
}


/* Home page */

#home-news {
    padding: 80px 0px;
    background-color: #FAF5F1;
}

.home-news-top {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
}

    .home-news-top h2 {
        font-size: 40px;
        line-height: 48px;
        font-family: 'IBMPlexSansThai-SemiBold';
        color: #766092;
    }

.home-news-viewAll {
    justify-content: end;
    display: grid;
}

.home-news-hightlight {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 45px;
}

.home-news-items-img {
    position: relative;
}

    .home-news-items-img img {
        border-radius: 24px;
        max-height: 250px;
        width: 100%;
        object-fit: cover;
    }

.home-news-item-viewmore {
    opacity: 0;
    background: #9B7EBDCC;
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 100;
    border-radius: 24px;
    transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out;
}

    .home-news-item-viewmore a {
        opacity: 0;
        position: absolute;
        background: unset;
        border: 1px solid #FFF;
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        transition: all 1.5s;
    }

        .home-news-item-viewmore a:hover {
            color: #A378B5;
            background: white;
        }

.home-news-items:hover .home-news-item-viewmore {
    opacity: 1;
    transition: opacity 1s ease-in-out;
    -moz-transition: opacity .55s ease-in-out;
    -webkit-transition: opacity .55s ease-in-out;
}

    .home-news-items:hover .home-news-item-viewmore a {
        opacity: 1;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
    }

.home-news-items-detail {
    margin-top: 24px;
}

.home-news-items-date {
    color: #A378B5;
    line-height: 18px;
    font-size: 12px;
}

.home-news-items-title {
    font-family: "IBMPlexSansThai-Medium";
    font-size: 24px;
    line-height: 32px;
    color: #212121;
    margin: 16px 0px 8px;
}

#home-service {
    background-image: linear-gradient(275.62deg, #a277bad9 8.89%, #785e93e3 85.38%), url('../images/backgroud-service.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left;
    width: 100%;
    height: 100%;
    min-height: 550px;
    overflow: hidden;
    border-bottom-left-radius: 140px;
    position: relative;
    z-index: 500;
}


    #home-service .home-service-wrapper {
        position: relative;
        z-index: 1000;
        padding-top: 80px;
        padding-bottom: 80px;
        display: grid;
        grid-template-columns: 25% 75%;
        gap: 24px;
        margin-left: calc(-100% - -111.5%);
    }

.home-service-leftZone {
    padding-right: 50px;
    position: relative;
}

.home-service-lz-title {
    margin-bottom: 16px;
    color: white;
    font-family: 'IBMPlexSansThai-SemiBold';
    font-size: 40px;
    line-height: 48px;
}

.home-service-lz-desc {
    margin-bottom: 0px;
    font-size: 16px;
    line-height: 24px;
    color: white;
}

.home-service-lz-button {
    position: absolute;
    bottom: 0;
    display: grid;
    grid-template-columns: auto auto;
    gap: 8px;
    height: 50px;
    width: 50px;
}

    .home-service-lz-button .slick-prev,
    .home-service-lz-button .slick-next {
        width: 100%;
        height: auto;
        transform: translate(23px, -50%);
        display: block;
    }

    .home-service-lz-button .slick-next {
        right: -45px;
    }

.home-service-rz-item {
    position: relative;
    min-height: 355px;
    margin: 0px 10px;
}

.home-service-rz-list .slick-slide {
    margin: 0px 10px;
}

.home-service-rz-item-img {
    overflow: hidden;
    border-radius: 10px;
}

    .home-service-rz-item-img img {
        border-radius: 10px;
        height: 100%;
        width: 100%;
        transition: all 1s;
        height:450px;
    }

/*.home-service-rz-item-img:after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 -80px 120px 0px rgb(0 0 0 / 60%);
    pointer-events: none;
    width: 95.5%;
    border-radius: 10px;
}*/

.home-service-rz-item-title {
    position: absolute;
    bottom: 0;
    width: max-content;
    color: white;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    font-family: 'IBMPlexSansThai-SemiBold';
    text-align: center;
    font-size: 20px;
    line-height: 28px;
    transition: all 1s;
}

.home-service-rz-item-viewmore {
    position: absolute;
    bottom: -12%;
    left: 50%;
    opacity: 0;
    transform: translateX(-50%);
    width: max-content;
    transition: all 1s;
}

.home-service-rz-item:hover .home-service-rz-item-img img {
    transform: scale(1.1);
}

.home-service-rz-item:hover .home-service-rz-item-title {
    bottom: 60px
}

.home-service-rz-item:hover .home-service-rz-item-viewmore {
    opacity: 1;
    bottom: 20px;
}

.home-service-rz-item-content {
    height: 100%;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    /* inset: 0; */
    box-shadow: inset 0px -140px 120px -90px rgb(0 0 0);
    width: 100%;
    border-radius: 10px;
}

#home-activities {
    padding: 80px 0px 58px;
    position: relative;
    background-color: white;
}

.home-activities-content {
    width: 100%;
    position: relative;
    /* create stacking/clipping context */
    overflow: hidden;
    /* prevent slider from bleeding out */
}

/* ค่าเริ่มต้นของทุกแท็บ: ซ่อน + ขยับมาจากขวานิดนึง */
.hac-anim-wrapper {
    opacity: 0;
}

    /* เวลาต้องการให้เล่น animation → ใส่คลาสนี้ด้วย JS */
    .hac-anim-wrapper.hac-anim-play {
        animation: hacFadeInRight 1s ease forwards;
    }

.home-activities-content .hac-list .slick-list {
    --hac-padding: clamp(40px, 30vw, 348px);
    /* ขั้นต่ำ 40px สูงสุด 260px */
    padding-left: var(--hac-padding);
    margin-right: calc(-1 * var(--hac-padding));
}

/* keep arrows inside this section */
.home-activities-content .slick-prev:before {
    left: 300px;
}

.home-activities-content .slick-next:before {
    right: 50px;
}

.home-activities-anm img {
    position: absolute;
    top: -7%;
    right: 0;
    z-index: 1;
    width: 23%;
    margin-right: 0;
    text-align: right;
}

.home-activities-title {
    font-family: 'IBMPlexSansThai-SemiBold';
    font-size: 40px;
    line-height: 48px;
    text-align: center;
    color: #766092;
    margin-bottom: 16px;
}

.home-activities-desc {
    margin-bottom: 36px;
}

.home-activities-cate ul {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    border: 1px solid #B567AC;
    border-radius: 100px;
    padding: 8px;
    gap: 100px;
    text-align: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    /* ensure it sits above slider */
    z-index: 2;
}

.home-activities-cate li {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

    .home-activities-cate li::marker {
        content: "";
    }

.home-activities-cate.nav-tabs li a {
    border: none;
    color: #B567AC;
    padding: 6px 16px;
    border-radius: unset;
    outline: unset;
    min-width: 140px;
}

    .home-activities-cate.nav-tabs li a.active {
        background: #B567AC;
        color: white;
        border-radius: 100px
    }


.hac-detail {
    position: relative;
    padding-left: 16px;
    overflow: hidden;
}

.hac-item {
    padding: 16px;
    background: #FAF5F1;
    border-radius: 16px;
    display: grid !important;
    grid-template-columns: 40% auto;
    margin: 0px 10px;
    max-width: 525px;
}

.hac-detail-top {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.hac-detail-group {
    margin-right: 15px;
}

    .hac-detail-group span {
        border-radius: 100px;
        padding: 8px 16px;
        color: #A378B5;
        font-size: 12px;
        font-family: 'IBMPlexSansThai-SemiBold';
        background: #E7DDE7;
        display: flex;
        width: fit-content;
        line-height: 18px;
        align-items: center;
    }

.hac-top-line {
    background: #b5b5b5;
    padding: 15px 0.5px;
}

.hac-detail-date {
    margin-left: 16px;
}

    .hac-detail-date span {
        color: #A378B5;
        font-size: 12px;
        line-height: 18px;
    }

.hac-detail-title h3 {
    font-family: 'IBMPlexSansThai-Medium';
    color: #212121;
    font-size: 20px;
    line-height: 28px;
}

.hac-detail-text {
    font-size: 12px;
    line-height: 18px;
}

.hac-detail-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #11111117;
}

.hac-detail-viewmore a {
    padding-top: 16px;
    display: flex;
    align-items: center;
    color: #B567AC;
    text-decoration: unset;
    font-size: 14px;
    line-height: 20px;
}

.hac-img img {
    border-radius: 16px;
}

.hac-detail-viewmore a img {
    display: flex;
    align-items: center;
    margin-left: 4px;
    width: 10px;
}

.hac-detail-viewmore a:hover img {
    margin-left: 6px;
}



.slick-arrow.slick-disabled {
    opacity: 0.25 !important;
}

.home-activities-viewAll {
    text-align: center;
    margin-top: 40px;
}

#home-event-calendar {
    position: relative;
    padding: 40px 0px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 200.25%, #000000 145.89%);
    border-bottom-right-radius: 140px;
}

.hec-banner {
    /* overflow: hidden; */
    min-height: 816px;
    height: 100%;
}

[class^=hec-banner-img-] {
    position: absolute;
    top: 0;
    width: 100%;
    min-height: 816px;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
    z-index: -18;
    opacity: 0;
    animation-name: fadeBanner;
    animation-duration: 12s;
    animation-iteration-count: infinite;
    border-bottom-right-radius: 140px;
}

.hec-banner-img-1 {
    animation-delay: 0s;
}

.hec-banner-img-2 {
    animation-delay: 4s;
}

.hec-banner-img-3 {
    animation-delay: 8s;
}

.hec-banner-img-4 {
    animation-delay: 12s;
}

.hec-content {
    position: absolute;
    top: 0;
    margin-left: auto;
    margin-right: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
}

.hec-title {
    color: white;
    font-size: 40px;
    line-height: 48px;
    font-family: 'IBMPlexSansThai-SemiBold';
    margin-bottom: 32px;
    text-align: center;
}

.hec-wrapper {
    position: relative;
    display: inline-block;
    /* ให้เงาทะลุออกนอกกล่องได้ */
    overflow: visible;
    width: 100%;
}

    .hec-wrapper::before,
    .hec-wrapper::after {
        content: "";
        position: absolute;
        inset: 12px;
        /* ให้เล็กกว่าการ์ดหลักนิดหน่อย */
        border-radius: 24px;
        z-index: 0;
        top: 0;
        bottom: 0;
    }

    .hec-wrapper::before {
        left: 50%;
        width: 135%;
        transform: translateX(-50%) scale(0.85);
        background: #766092;
        z-index: 10;
        opacity: 0.6;
    }

    /* ใบขวา */
    .hec-wrapper::after {
        left: 50%;
        width: 200%;
        transform: translateX(-50%) scale(0.65);
        background: #766092;
        z-index: 5;
        opacity: 0.4;
    }

#event-calendar {
    border: 2px solid white;
    border-radius: 16px;
    padding: 30px;
    background: #9562A7;
    box-shadow: 10px 10px 25px 0px #764C8F;
    z-index: 10;
    position: relative;
}




img.hec-event-icon {
    width: 12px;
}

.hec-remark {
    margin-top: 32px;
}

    .hec-remark ul {
        display: grid;
        grid-template-columns: auto auto auto;
        padding-left: 0;
        gap: 35px;
        margin-bottom: 0;
        justify-content: center;
        align-items: center;
    }

    .hec-remark li::marker {
        content: '';
    }

    .hec-remark li > * {
        display: inline-block;
    }

    .hec-remark li span {
        color: white;
        font-size: 20px;
        line-height: 28px;
        padding-left: 10px;
        font-family: 'IBMPlexSansThai-SemiBold';
        vertical-align: middle;
    }

/* ===== Base: ซ่อน/โชว์ Modal แบบ Fade-in ===== */

.hec-event-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

    .hec-event-modal.is-open {
        visibility: visible;
        opacity: 1;
    }

/* Backdrop ดำโปร่งด้านหลัง */
.hec-event-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* กล่อง Dialog ขาวตรงกลาง + FadeIn */
.hec-event-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: 1050px;
    max-height: 395px;
    width: 90%;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hec-event-modal.is-open .hec-event-modal__dialog {
    opacity: 1;
    transform: translateY(0);
}

/* ปุ่มปิดมุมขวาบน */
.hec-event-modal__close {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 2;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    font-weight: bold;
}

/* ===== Layout ซ้าย/ขวา ===== */

.hec-event-modal__layout {
    display: grid;
    grid-template-columns: 40% 60%;
}

/* ด้านซ้าย: รูป + วันที่ใหญ่ */
.hec-event-modal__media {
    position: relative;
    overflow: hidden;
}

.hec-event-modal__image {
    width: 100%;
    max-height: 395px;
    height: auto;
    object-fit: cover;
    display: block;
    filter: blur(1px);
    transform: scale(1.05);
    /* ให้ภาพกินเต็มไม่เห็นขอบ */
}

/* Overlay มืดนิดหน่อยให้ตัวเลขเด่น */
.hec-event-modal__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

/* กล่องวันที่ */
.hec-event-modal__date {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
}

.hec-event-modal__day {
    font-size: 72px;
    line-height: 1;
    font-weight: 700;
}

.hec-event-modal__monthyear {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 500;
}

/* ด้านขวา: รายละเอียด */
.hec-event-modal__content {
    padding: 90px 48px 32px 48px;
    background: #ffffff;
}

/* Badge ประเภทกิจกรรม */
.hec-event-modal__badge {
    display: block;
    padding: 8px 25px;
    border-radius: 10px;
    font-size: 32px;
    color: #ffffff;
    width: auto;
    font-family: 'IBMPlexSansThai-SemiBold';
    line-height: 40px;
}

/* สีตามประเภท (ปรับตาม legend ด้านล่างปฏิทิน) */
.hec-event-modal__badge--market {
    background: #48845A;
    /* เขียว ตลาดนัด */
}

.hec-event-modal__badge--activity {
    background: #f6a623;
    /* ส้ม กิจกรรม */
}

/* เส้นคั่น */
.hec-event-modal__divider {
    border: none;
    border-top: 1px solid #111111;
    margin: 24px 0;
    opacity: 0.1;
}

/* เนื้อหาคำอธิบาย */
.hec-event-modal__description {
    font-size: 20px;
    line-height: 28px;
    margin: 0 0 40px 0;
}

/* Meta (วันที่, สถานที่) */
.hec-event-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    font-size: 14px;
    color: #7a7a7a;
}

.hec-event-modal__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* icon placeholder (ถ้ามี svg จริงก็เอามาแทนได้) */
.hec-event-modal__meta-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
}

/* ตัวอย่างใช้สีเขียวอ่อน แบบในดีไซน์ */
.hec-event-modal__meta-icon--date {
    background: #b2d98c;
}

.hec-event-modal__meta-icon--location {
    background: #b2d98c;
}

.hec-event-modal__meta-text {
    white-space: nowrap;
}

.hp-wrapper {
    padding: 60px 0px 80px;
}

.hp-title {
    margin-bottom: 40px;
}

.hp-list {
    margin-left: 17%;
    margin-bottom: 0px !important;
}

    .hp-list .slick-prev:before,
    .hp-list .slick-next:before {
        transform: translate(0px, -200%);
    }

.hp-item {
    margin: 0px 15px;
    max-width: 300px;
}

.hp-item-media img {
    border-radius: 10px;
    max-height: 225px;
    min-width: 300px;
}

.hp-content {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hp-item-title {
    font-family: 'IBMPlexSansThai-SemiBold';
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 10px;
}



/* ซ่อนปุ่มดอทปกติของ slick */
.hp-list .slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: none;
}

/* กล่องรวม dot ให้เป็นแท่งยาว */
.hp-list .slick-dots {
    position: static;
    /* ไม่ให้ลอยทับสไลด์ */
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 53px auto 0;
    list-style: none;
    background: #f3f3f3;
    /* สีเทาอ่อนตามรูป */
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
    /* ให้โค้งเนียน */
    max-width: 80%;
    margin-left: 0px;
}

    /* แต่ละ li เป็น “segment” ของแท่ง */
    .hp-list .slick-dots li {
        flex: 1 1 auto;
        height: 100%;
        margin: 0;
        padding: 0;
    }

        /* อันที่ active ให้เป็นสีม่วง */
        .hp-list .slick-dots li.slick-active {
            background: #b276d9;
            /* ปรับเป็นโทนม่วงที่ใช้ในเว็บ */
        }

#home-provincial-herbs {
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
}

    #home-provincial-herbs .container {
        position: relative;
        z-index: 10;
    }

.hph-tabs-list {
    padding-left: 0;
    list-style: none;
    display: grid;
    grid-template-columns: auto auto auto auto auto auto;
    border: 1px solid #B567AC;
    border-radius: 100px;
    padding: 8px;
    gap: 10px;
    text-align: center;
    align-items: center;
    margin-bottom: 40px;
    margin-top: 40px;
    position: relative;
}

/* Responsive dropdown styling for hph-tabs-list */
.nav-tabs-dropdown .hph-tabs-list.nav-tabs-dropdown-list {
    display: none !important;
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 0;
    list-style: none;
    margin: 0;
    top: 100%;
    left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 4px;
    grid-template-columns: unset;
    border: none;
    background: transparent;
    box-shadow: none;
}

    .nav-tabs-dropdown .hph-tabs-list.nav-tabs-dropdown-list.show {
        display: flex !important;
        max-height: 500px;
        flex-direction: column;
        background: white;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .nav-tabs-dropdown .hph-tabs-list.nav-tabs-dropdown-list li {
        margin: 0 !important;
        display: block !important;
        padding: 0 !important;
        font-size: 14px !important;
        line-height: auto !important;
        position: relative !important;
    }

        .nav-tabs-dropdown .hph-tabs-list.nav-tabs-dropdown-list li span {
            display: block;
            padding: 10px 16px;
            color: #666;
            text-decoration: none;
            cursor: pointer;
            border: none;
            background: white;
            border-radius: 0;
            transition: all 0.2s ease;
            font-size: 14px;
            width: 100%;
            margin: 0;
            font-family: inherit;
            position: relative;
            z-index: auto;
        }

            .nav-tabs-dropdown .hph-tabs-list.nav-tabs-dropdown-list li span:hover {
                background: #f5f5f5;
                color: #B567AC;
            }

        .nav-tabs-dropdown .hph-tabs-list.nav-tabs-dropdown-list li.active span {
            background: #f0e6f0;
            color: #B567AC;
            font-weight: 500;
            font-family: inherit;
        }

.hph-tabs-item {
    padding: 6px 20px;
    font-size: 20px;
    line-height: 28px;
    cursor: pointer;
    position: relative;
}

    .hph-tabs-item span {
        position: relative;
        z-index: 2;
        color: #B567AC
    }

    .hph-tabs-item.active span {
        color: white;
        font-family: 'IBMPlexSansThai-SemiBold';
        transition: color 1.2s ease, font-family 1.2s ease;
    }

/* Moving background indicator that slides between items */
.hph-tabs-indicator {
    position: absolute;
    height: calc(100% - 15px);
    border-radius: 100px;
    background: #B567AC;
    box-shadow: 0 4px 12px rgba(181, 103, 172, 0.25);
    width: 0;
    transform: translateX(0);
    transition: transform 1.2s ease, width 1.2s ease;
    z-index: 1;
}

.hph-map {
    position: relative;
    padding: 0;
}

.hph-sector-position-item {
    position: absolute;
    border: 1px solid #766092;
    border-radius: 10px;
    background: #F2EBF7;
    padding: 12px 10px 12px 15px;
    width: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .hph-sector-position-item.active {
        background: #A378B5;
        border-width: 2px;
        border-color: white;
        box-shadow: 5px 10px 18px 0px #6D459C;
    }

        .hph-sector-position-item.active img {
            -webkit-filter: brightness(0) invert(1);
            filter: brightness(0) invert(1);
        }

    .hph-sector-position-item span {
        display: inline-block;
        font-size: 20px;
        color: white;
        font-family: 'IBMPlexSansThai-SemiBold';
        padding-left: 7px;
        opacity: 0;
        transform: translateX(8px);
        max-width: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: opacity 1.5s ease, transform 1.5s ease, max-width 1s ease;
    }

    .hph-sector-position-item.active span {
        opacity: 1;
        transform: translateX(0);
        max-width: 240px;
        /* enough for long labels */
    }

[data-region-badge="north"] {
    left: 25.5%;
    top: 10%;
}

[data-region-badge="south"] {
    top: 80.7%;
    left: 30%;
}

[data-region-badge="west"] {
    top: 37%;
    left: 22.5%;
}

[data-region-badge="northeast"] {
    top: 20%;
    right: 26%;
}

[data-region-badge="east"] {
    bottom: 47.5%;
    right: 40.5%;
}

[data-region-badge="central"] {
    top: 27%;
    right: 37%;
}

.hph-detail {
    padding-right: 0px;
    padding-left: 57px;
}

    /* HPH detail enter/exit animations */
    .hph-detail,
    .hph-detail * {
        /* ensure transforms are GPU-accelerated and don't blur text */
        will-change: transform, opacity;
    }

        .hph-detail.hph-detail--in {
            opacity: 0;
            transform: translateX(40px);
            transition: opacity 0.9s ease, transform 0.9s ease;
        }

            .hph-detail.hph-detail--in.hph-detail--in-play {
                opacity: 1;
                transform: translateX(0);
            }

        .hph-detail.hph-detail--out {
            opacity: 1;
            transform: translateX(0);
            transition: opacity 0.9s ease, transform 0.9s ease;
        }

            .hph-detail.hph-detail--out.hph-detail--out-play {
                opacity: 0;
                transform: translateX(-40px);
            }

.hph-region-top h3 {
    font-size: 60px;
    font-family: 'IBMPlexSansThai-SemiBold';
    color: #766092;
    line-height: 80px;
}

.hph-region-top p {
    margin-bottom: 30px;
}

.hph-province-list {
    max-height: 540px;
    overflow-y: scroll;
}

.hph-province-item {
    background-color: #FAF5F1;
    margin-bottom: 10px;
    padding: 14px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 12% auto 9%;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
    text-decoration: unset;
    width: 98%;
}

    .hph-province-item:before {
        content: '';
        height: 100%;
        width: 100%;
        /* display: block; */
        background: #a378b53d;
        position: absolute;
        border-radius: 24px;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    .hph-province-item:hover:before {
        opacity: 1;
    }

    .hph-province-item > img {
        border-radius: 12px;
        height: 72px;
        width: 72px;
        object-fit: cover;
    }

.hph-item-provinvcName {
    font-size: 24px;
    line-height: 150%;
    margin-bottom: 0;
    color: #766092;
    font-family: 'IBMPlexSansThai-Bold';
}


.hph-item-arrow {
    cursor: pointer;
    background: #B567AC;
    border-radius: 100%;
    padding: 13px;
    height: 45px;
    width: 45px;
}

    .hph-item-arrow img {
        rotate: 320deg;
    }

.leaf-bottom {
    position: absolute;
    bottom: -15%;
    z-index: 1;
    mix-blend-mode: multiply;
    transform: scale(1.2);
}

#ourServicesModal .modal-dialog {
    max-width: 70%;
}

#ourServicesModal .modal-content {
    padding: 32px 15%;
    border-radius: 40px;
}

#ourServicesModal .btn-close {
    position: absolute;
    top: 4%;
    right: 3%;
    font-size: 22px;
    color: #111111;
    opacity: 1;
}

#ourServicesModal .modal-header {
    border-bottom: 1px solid #1111111f;
    padding-bottom: 14px;
}

    #ourServicesModal .modal-header .modal-title {
        font-size: 32px;
        line-height: 40px;
        font-family: 'IBMPlexSansThai-SemiBold';
        color: #766092;
        width: 100%;
    }

.ourservices-summary p {
    text-align: center;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 24px;
}

.ourservices-gallery-item img {
    border-radius: 16px;
}

#ourServicesModal .slider-counter {
    text-align: center;
    margin-top: 20px;
}

.hac-list.container {
    display: flex;
    width: max-content;
    padding: 0px;
}

    .hac-list.container .hac-item {
        max-width: 470px;
        margin:0px 15px;
        min-height:290px;
    }
.home-activities-cate{
    border-bottom:none;
}
/* End home page */
/* ===== Responsive ===== */
/* 1600–1919px */
@media (max-width: 1919px) and (min-width: 1600px) {
    .home-activities-content .hac-list .slick-list {
        padding-left: 220px;
        margin-right: -220px;
    }
}

/* 1440–1599px */
@media (max-width: 1599px) and (min-width: 1200px) {
    .home-activities-content .hac-list .slick-list {
        padding-left: 116px;
        margin-right: -116px;
    }
}

@media (max-width:1250px) {
    .home-tb-tag {
        height: 25px;
    }

        .home-tb-tag span {
            font-size: 12px;
            line-height: 18px;
        }
}

/* 1024–1199px */
@media (max-width: 1199px) and (min-width: 1024px) {
    .home-activities-content .hac-list .slick-list {
        padding-left: 80px;
        margin-right: -80px;
    }
}

@media (max-width:1024px) {
    .container-fluid:not(:has(#about-hero)) #top-menu{
        box-shadow:none;
    }
    .home-tb-title h1 {
        font-size: 36px;
        line-height: 44px;
    }

    .home-news-items {
        padding: 0px 10px;
    }

    #home-service .home-service-wrapper {
        display: block;
        margin-left: 0px;
    }

    .home-service-leftZone {
        padding-right: 0px;
        text-align: center;
        margin-bottom: 45px;
    }

    .home-service-lz-button {
        display: none;
    }

    .home-service-rz-item {
        min-height: 100%;
    }

    .home-service-rightZone {
        max-width: 85%;
        margin: 0px auto;
    }

    .home-news-hightlight {
        display: block;
    }

    .home-service-rz-list .slick-slide {
        margin: 0px;
    }

        .home-service-rz-list .slick-slide > div {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
        }

    .home-service-rz-item .home-service-rz-item-viewmore {
        bottom: 20px;
        opacity: 1;
    }

    .home-service-rz-item .home-service-rz-item-title {
        bottom: 60px;
    }

    .home-activities-anm img {
        width: 43%;
        top: -11%;
    }

    .home-activities-content .hac-list .slick-list {
        padding-left: 0px;
        ;
    }

    .home-activities-content {
        padding-left: 25px;
        margin-top: 45px;
    }

        .home-activities-content .slick-slide {
            margin: 0 10px;
        }

            .home-activities-content .slick-slide:first-child,
            .hac-item {
                margin-left: 0px;
            }

    .hec-content {
        width: 60%;
    }

    .nav-tabs-dropdown .hph-tabs-list.nav-tabs-dropdown-list.show {
        display: block !important;
    }

    .hph-map {
        max-width: 600px;
        margin: 40px auto;
    }

    .hph-sector-position-item {
        padding: 8px 8px 8px 13px;
    }

    .hp-list {
        max-width: 960px;
        margin: 0 auto;
        padding: 0px 25px;
    }

    .hp-item {
        max-width: 100%;
        padding: 15px 25px;
        margin: 0 auto;
    }

    .hp-list.slick-initialized .slick-slide > div:first-child {
        display: flex;
        justify-content: center;
    }

    .hp-list.slick-initialized .slick-slide {
        display: grid;
        justify-content: center;
    }

    .hp-list .slick-dots {
        margin-left: auto;
    }

    .hp-item-media img {
        margin: 0 auto;
        width: 100%;
    }

    .hph-tabs-wrapper {
        margin-top: 30px;
        position:relative;
        z-index:10;
    }

    .hph-content {
        margin: auto;
    }

    .hph-detail {
        padding-left: 0px;
    }

    .hph-province-item {
        width: 100%;
    }

    #ourServicesModal .modal-dialog {
        max-width: 100%;
        padding: 0px 20px;
    }
}

@media (max-width:992px) {
    #ourServicesModal .modal-header .modal-title {
        font-size: 24px;
        line-height: 32px;
    }

    #ourServicesModal .slick-prev:before,
    #ourServicesModal .slick-next:before {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .hec-event-modal__dialog {
        max-width: 96%;
        border-radius: 24px;
    }

    .hec-event-modal__layout {
        grid-template-columns: 1fr;
    }

    .hec-event-modal__media {
        min-height: 220px;
    }

    .hec-event-modal__content {
        padding: 24px 20px 20px 20px;
    }

    .hec-event-modal__day {
        font-size: 56px;
    }

    .hec-event-modal__monthyear {
        font-size: 18px;
    }

    .home-activities-content {
        padding-left: 25px;
    }

    .leaf-top {
        top: 20%;
        opacity: 1;
    }

    .leaf-bottom {
        transform: scale(2.2);
        bottom: 0;
    }

    .home-service-rightZone .slick-arrow {
        display: none;
    }

    .hph-content {
        margin: 0px auto;
    }

    .hph-detail {
        padding: 0px;
    }
}

@media (max-width: 767px) {


    .home-news-hightlight .slick-dots {
        bottom: -60px;
    }

        .home-news-hightlight .slick-dots li button:before {
            color: #A378B5;
            opacity: 0.4;
        }

        .home-news-hightlight .slick-dots li.slick-active button:before {
            opacity: 1;
            background-color: #A378B5;
            color: #A378B5;
        }

    .home-news-viewAll {
        margin-top: 110px !important;
    }

    .home-service-rightZone .slick-arrow {
        position: absolute;
        top: 50%;
        z-index: 1;
        transform: translate(0px, 100%);
    }

        .home-service-rightZone .slick-arrow.slick-prev-mobile {
            left: 5%;
        }

        .home-service-rightZone .slick-arrow.slick-next-mobile {
            right: 5%;
        }

    .home-service-rz-list {
        max-width: 84%;
        margin: 0 auto;
    }

        .home-service-rz-list .slick-slide > div {
            margin-bottom: 0px;
        }

    .home-service-leftZone {
        padding: 0px 25px;
    }

    #home-activities {
        padding-top: 56px;
    }

    .home-activities-anm img {
        top: -5%;
    }

    .home-activities-desc {
        margin-bottom: 24px;
    }

    .home-activities-content {
        padding-left: 0px;
        ;
    }

    .hac-list {
        padding: 0px 25px;
        margin-bottom: 0px !important;
    }

    .home-activities-content .hac-list .slick-list {
        margin-right: 0px;
    }

    .hac-list .slick-dots li button:before {
        color: #A378B5;
    }

    .hac-list .slick-dots li.slick-active button:before {
        background-color: #A378B5;
    }

    .hac-list .slick-dots {
        position: relative;
        margin: 40px auto;
        bottom: 0px;
    }

    .home-activities-content .slick-slide {
        margin: 0 auto;
    }

    .hac-item {
        background-color: #F8F8F8;
        max-width: 100%;
        display: block !important;
        margin: 0 auto;
    }

    .hac-img img {
        margin: 0 auto;
    }

    .hac-detail {
        margin-top: 10px;
        padding: 0px;
    }

    .hac-detail-footer {
        position: relative;
        margin-top: 30px;
    }

    #home-event-calendar {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 3.25%, #000000 145.89%);
    }

    #home-event-calendar,
    .hec-banner,
    [class^=hec-banner-img-] {
        min-height: 750px;
        max-height: 750px;
        border-bottom-right-radius: 80px;
        ;
    }

    .hec-content {
        width: 100%;
        padding: 20px 25px;
    }

    .fc .fc-toolbar-title,
    .fc .fc-button .fc-icon {
        font-size: 22px;
    }

    .hec-wrapper::after,
    .hec-wrapper::before {
        content: none;
    }

    .font-topic-style {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .hp-wrapper {
        padding-bottom: 60px;
    }

    .hp-list {
        padding-left: 10px !important;
        padding: 0px;
    }

        .hp-list .slick-list {
            padding-left: 15px !important;
        }

    .hp-item {
        padding-right: 25px;
        padding-left: 0px;
    }

    .hph-sector-position-item.active img {
        width: 15px;
    }

    .hph-sector-position-item span {
        font-size: 16px;
    }

    .hph-region-top h3 {
        font-size: 48px;
        line-height: 56px;
    }

    .hph-item-provinvcName {
        font-size: 20px;
    }

    .hph-province-item {
        grid-template-columns: 54px auto 40px;
        width: 100%;
        padding: 12px 15px;
        border-radius: 16px;
        background-color: #F8F8F8;
    }

        .hph-province-item > img {
            width: 54px;
            height: 54px;
        }

    .hph-item-arrow {
        width: 40px;
        height: 40px;
        padding: 10px;
    }

    .fc .fc-toolbar-title, .fc .fc-button .fc-icon {
        font-size: 16px;
    }

    .fc .fc-daygrid-day-number, .fc .fc-col-header-cell-cushion {
        font-size: 12px;
    }

    .fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
        padding-top: 30%;
    }

    img.hec-event-icon {
        width: 8px;
    }

    .fc .fc-toolbar.fc-header-toolbar {
        margin-bottom: 10px;
    }

    #event-calendar thead .fc-col-header {
        margin-bottom: 0px;
    }

    .fc .fc-scroller-liquid-absolute {
        position: relative;
    }

    .fc tbody .fc-scrollgrid-section, .fc .fc-scrollgrid-section-liquid > td {
        border-radius: 10px;
    }

    .hph-item-provinvcName {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .htb-bg-img {
        border-bottom-left-radius: 64px;
        border-bottom-right-radius: 64px;
        height: 95vh;
    }

    .home-tb-title h1 {
        font-size: 32px;
        line-height: 40px;
    }

    .leaf-top {
        top: 30%;
        opacity: 0.7;
    }

    .home-tb-detail {
        padding: 0px 15px;
    }
    .home-tb-tag{
        width:220px;
    }
    .home-tb-tag span {
        font-size: 10px;
        line-height: 14px;
    }

    #home-service {
        border-bottom-left-radius: 80px;
    }

    .home-service-rightZone .slick-arrow {
        width: 40px;
    }

    .home-activities-title {
        font-size: 32px;
    }

    .hec-remark ul {
        grid-template-columns: auto auto;
        gap: 20px 50px;
    }

    #ourServicesModal .btn-close {
        top: 4%;
        right: 7%;
        font-size: 18px;
    }

    #ourServicesModal .modal-dialog {
        margin-left: 0px;
        margin-right: 0px;
        padding: 0px 10px;
    }

    #ourServicesModal .modal-content {
        padding-left: 5%;
        padding-right: 5%;
    }

    #ourServicesModal .slick-prev:before,
    #ourServicesModal .slick-next:before {
        width: 30px;
        height: 30px;
    }

    #ourServicesModal .slick-prev:before {
        left: -7px;
    }

    #ourServicesModal .slick-next:before {
        right: -7px;
    }
}
@media (max-width:480px){
    .hph-title.font-topic-style {
        font-size: 28px;
        line-height: 46px;
    }
    .home-service-rz-item-img img{
        height:auto;
        min-height:425px;
    }
}
@media (max-width:425px) {
    .home-tb-description {
        font-size: 13px;
        line-height: 18px;
    }

    .home-service-lz-title {
        font-size: 32px;
        line-height: 48px;
    }

    #event-calendar {
        padding: 15px;
    }
}

@media (max-width: 414px) {
    .home-tb-title h1 {
        font-size: 28px;
        line-height: 38px;
    }
}

@media (max-width: 375px) {
    .home-tb-title h1 {
        font-size: 26px;
        line-height: 36px;
    }

    .home-service-rightZone .slick-arrow {
        width: 35px
    }
    .home-service-rz-item-img img{
        min-height:355px;
    }
}

@keyframes fadeBanner {
    /* By offsetting the fade out and animating z-index, we can prevent the background from showing up at all*/
    00.00% {
        opacity: 0;
        z-index: -10;
    }

    06.25% {
        opacity: 1;
        z-index: -10;
    }

    31.25% {
        opacity: 1;
        z-index: -12;
    }

    37.50% {
        opacity: 0;
        z-index: -14;
    }

    100.0% {
        opacity: 0;
        z-index: -16;
    }
}

@keyframes slide {
    to {
        transform: translate(-80%);
    }
}

/* keyframes: เลื่อนจากขวา + fade in */
@keyframes hacFadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
