


/* =====================================================
   BADGE หน้า Hero Home
===================================================== */

.bms-hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bms-hero-badge > .elementor-widget-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
}

.bms-hero-badge .elementor-heading-title,
.bms-hero-badge p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    position: relative;
    top: 2px;
}


/* =====================================================
   FOOTER MAP BUTTON
===================================================== */

.bms-map-button {
    display: inline-block;
    background: #DEBF5A;
    color: #132646 !important;
    text-decoration: none !important;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.bms-map-button:hover {
    background: #F0E089;
    color: #132646 !important;
    transform: translateY(-2px);
}


/* =====================================================
   BMS FOOTER SOCIAL
===================================================== */

.bms-footer-social h3 {
    color: #DEBF5A;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 22px 0;
}

.bms-footer-social a {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;

    color: #FFFFFF !important;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none !important;

    transition: all 0.25s ease;
}

.bms-footer-social a:hover {
    color: #DEBF5A !important;
    transform: translateX(4px);
}

.bms-social-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.bms-social-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.bms-social-logo.tiktok-bg {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #000000;
}

.bms-social-logo.tiktok-bg img {
    width: 21px;
    height: 21px;
}


/* =====================================================
   FOOTER SPACING — DESKTOP
   4 COLUMNS
   Brand | Contact | Menu | Social
===================================================== */

@media (min-width: 1025px) {

  .site-primary-footer-wrap .ast-builder-grid-row {
    width: calc(100% - 40px);
    max-width: 1140px;

    margin-left: auto;
    margin-right: auto;

    grid-template-columns:
      1.05fr
      1.35fr
      0.75fr
      1fr !important;

    column-gap: 28px;
    align-items: start;
  }

}


/* =====================================================
   CTA SERVICES IMAGE FADE
===================================================== */

.bms-cta-image-fade {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    -webkit-mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 60%,
        rgba(0,0,0,0.85) 70%,
        rgba(0,0,0,0.55) 80%,
        rgba(0,0,0,0.25) 90%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 60%,
        rgba(0,0,0,0.85) 70%,
        rgba(0,0,0,0.55) 80%,
        rgba(0,0,0,0.25) 90%,
        transparent 100%
    );
}


/* =====================================================
   CTA SERVICES BUTTONS
===================================================== */

.bms-cta-buttons .elementor-widget-button,
.bms-cta-buttons .elementor-button-wrapper {
    width: 240px !important;
}

.bms-cta-buttons .elementor-button {
    width: 240px !important;
    min-height: 44px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    padding: 10px 16px !important;
    white-space: nowrap;
}


/* =====================================================
   ROOM PRICE
===================================================== */

/* เส้นแนวตั้ง แบ่งรายละเอียดกับราคา */
.bms-room-price {
    border-left: 1px solid #E8DEC5;
}

/* เส้นแนวนอน แบ่งราคารายเดือน / รายวัน */
.bms-daily-label {
    width: 100% !important;
    border-top: 1px solid #E8DEC5;
    padding-top: 14px;
    margin-top: 12px;
    text-align: center;
}


/* =====================================================
   PRICING TABLE HEADER
===================================================== */

.bms-pricing-header {
    display: grid !important;
    grid-template-columns: 40% 30% 30% !important;
    width: 100%;
    gap: 0 !important;
    align-items: stretch !important;
}

.bms-pricing-header > .elementor-element {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    height: 100% !important;

    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bms-pricing-header > .elementor-element:nth-child(2),
.bms-pricing-header > .elementor-element:nth-child(3) {
    border-left: 1px solid rgba(255,255,255,0.25) !important;
}


/* =====================================================
   PRICING TABLE BODY ROW
===================================================== */

.bms-pricing-row {
    display: grid !important;
    grid-template-columns: 40% 30% 30% !important;
    width: 100%;
    gap: 0 !important;
    align-items: stretch !important;
}

.bms-pricing-row > .elementor-element {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;

    height: 100% !important;
    min-height: 100% !important;
    align-self: stretch !important;
}

.bms-pricing-row > .elementor-element:nth-child(2),
.bms-pricing-row > .elementor-element:nth-child(3) {
    border-left: 1px solid #E8DEC5 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bms-price-line {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}


/* =====================================================
   CTA HOME
===================================================== */

.bms-cta-box {
    width: calc(100% - 80px) !important;
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 40px !important;
    margin-bottom: 32px !important;

    border-radius: 18px;
    overflow: hidden;
}


/* =====================================================
   SINGLE POST BACKGROUND
   เฉพาะเนื้อหา — ไม่แตะ Header / Footer
===================================================== */

body.single-post {
    background: #FEFAF2 !important;
}

body.single-post #content,
body.single-post .site-content,
body.single-post .content-area,
body.single-post .site-main,
body.single-post article,
body.single-post .post,
body.single-post .entry-content,
body.single-post .elementor-location-single,
body.single-post .elementor-widget-theme-post-content {
    background: #FEFAF2 !important;
}


/* =====================================================
   HEADER — GLOBAL
   Normal = Cream
   Sticky = White
===================================================== */


/* NORMAL — อยู่บนสุด */
#masthead,
#masthead .ast-primary-header-bar,
#masthead .main-header-bar {
    background-color: #FEFAF2 !important;
    background-image: none !important;
}


/* STICKY — ตอนเลื่อนตาม */
#mysticky-nav.wrapfixed #masthead,
#mysticky-nav.wrapfixed #masthead .ast-primary-header-bar,
#mysticky-nav.wrapfixed #masthead .main-header-bar {
    background-color: #FFFFFF !important;
    background-image: none !important;
}


/* =====================================================
   ARTICLE CTA
===================================================== */

.bms-article-cta {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: stretch !important;
    justify-content: space-between !important;

    gap: 20px !important;

    box-sizing: border-box !important;
    align-self: stretch !important;

    overflow: hidden !important;
}

.bms-article-cta > .elementor-element {
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
}


/* รูปด้านซ้าย */
.bms-article-cta > .elementor-element:nth-child(1) {
    flex: 0 0 28% !important;
    width: 28% !important;

    align-self: stretch !important;
}

.bms-article-cta > .elementor-element:nth-child(1) img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    display: block !important;
}


/* Content ตรงกลาง */
.bms-article-cta > .elementor-element:nth-child(2) {
    flex: 1 1 42% !important;
    width: auto !important;
    min-width: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.bms-article-cta > .elementor-element:nth-child(2) *,
.bms-article-cta .elementor-heading-title,
.bms-article-cta .elementor-widget-text-editor {
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
}

.bms-article-cta .elementor-widget-heading {
    width: 100% !important;
    max-width: 100% !important;
}

.bms-article-cta .elementor-widget-text-editor {
    width: 100% !important;
    max-width: 100% !important;
}


/* ปุ่มด้านขวา */
.bms-article-cta > .elementor-element:nth-child(3) {
    flex: 0 0 30% !important;
    width: 30% !important;

    display: flex !important;
    flex-direction: column !important;

    justify-content: center !important;
    align-items: stretch !important;

    gap: 10px !important;
}

.bms-article-cta > .elementor-element:nth-child(3) .elementor-widget-button {
    width: 100% !important;
    max-width: 100% !important;
}

.bms-article-cta > .elementor-element:nth-child(3) .elementor-button-wrapper {
    width: 100% !important;
}

.bms-article-cta > .elementor-element:nth-child(3) .elementor-button {
    width: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.bms-article-cta .elementor-widget-heading,
.bms-article-cta .elementor-widget-text-editor,
.bms-article-cta .elementor-widget-button {
    max-width: 100% !important;
}


/* =====================================================
   BMS RECOMMENDED ARTICLE
   EA POST GRID
   DESKTOP ONLY
===================================================== */

@media (min-width: 1025px) {

    .bms-featured-post {
        width: 100% !important;
        max-width: 999px !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }

    .bms-featured-post .eael-post-grid-container,
    .bms-featured-post .eael-post-grid {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .bms-featured-post .eael-post-grid {
        display: block !important;
    }

    .bms-featured-post .eael-grid-post {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .bms-featured-post .eael-grid-post-holder,
    .bms-featured-post .eael-grid-post-holder-inner {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;
    }

    .bms-featured-post .eael-grid-post-holder-inner {
        display: grid !important;

        grid-template-columns: 42% 58% !important;

        min-height: 280px !important;

        background: #FFFFFF !important;

        border: 1px solid #E8DEC5 !important;
        border-radius: 14px !important;

        overflow: hidden !important;
    }


    /* IMAGE */
    .bms-featured-post .eael-entry-media {
        grid-column: 1 !important;

        position: relative !important;

        width: 100% !important;
        height: 100% !important;
        min-height: 280px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;
    }

    .bms-featured-post .eael-entry-thumbnail {
        width: 100% !important;
        height: 100% !important;
        min-height: 280px !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .bms-featured-post .eael-entry-thumbnail a {
        display: block !important;

        width: 100% !important;
        height: 100% !important;
    }

    .bms-featured-post .eael-entry-thumbnail img {
        display: block !important;

        width: 100% !important;
        height: 100% !important;
        min-height: 280px !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: cover !important;
        object-position: center center !important;
    }


    /* IMAGE FADE → RIGHT */
    .bms-featured-post .eael-entry-media::after {
        content: "" !important;

        position: absolute !important;

        top: 0 !important;
        right: 0 !important;

        width: 110px !important;
        height: 100% !important;

        background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.25) 35%,
            rgba(255, 255, 255, 0.65) 70%,
            #FFFFFF 100%
        ) !important;

        pointer-events: none !important;

        z-index: 3 !important;
    }

    .bms-featured-post .eael-entry-overlay {
        display: none !important;
    }


    /* CONTENT */
    .bms-featured-post .eael-entry-wrapper {
        grid-column: 2 !important;

        width: 100% !important;
        min-width: 0 !important;
        min-height: 280px !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: flex-start !important;
        justify-content: flex-start !important;

        padding: 28px 30px 24px 28px !important;
        margin: 0 !important;

        background: #FFFFFF !important;

        box-sizing: border-box !important;
    }

    .bms-featured-post .eael-entry-header {
        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* TITLE */
    .bms-featured-post .eael-entry-title {
        width: 100% !important;

        margin: 0 0 16px 0 !important;
        padding: 0 !important;

        font-family: "Prompt", sans-serif !important;

        font-size: 28px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;

        color: #132646 !important;

        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .bms-featured-post .eael-entry-title a {
        color: #132646 !important;
        text-decoration: none !important;
    }

    .bms-featured-post .eael-entry-title a:hover {
        color: #B48F2E !important;
    }


    /* CONTENT */
    .bms-featured-post .eael-entry-content {
        width: 100% !important;

        flex: 1 !important;

        display: flex !important;
        flex-direction: column !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* EXCERPT */
    .bms-featured-post .eael-grid-post-excerpt {
        width: 100% !important;

        flex: 1 !important;

        display: flex !important;
        flex-direction: column !important;

        margin: 0 !important;
        padding: 0 !important;

        font-family: "Prompt", sans-serif !important;

        font-size: 17px !important;
        font-weight: 400 !important;
        line-height: 1.75 !important;

        color: #293040 !important;

        word-break: normal !important;
        overflow-wrap: normal !important;
        white-space: normal !important;
    }

    .bms-featured-post .eael-grid-post-excerpt p {
        margin: 0 !important;
        padding: 0 !important;

        color: #293040 !important;
    }


    /* HIDE META */
    .bms-featured-post .eael-entry-meta,
    .bms-featured-post .eael-meta-posted-on,
    .bms-featured-post .eael-meta-posted-by {
        display: none !important;
    }


    /* READ MORE */
    .bms-featured-post .eael-post-elements-readmore-btn,
    .bms-featured-post .eael-post-elements-readmore {
        display: inline-flex !important;

        align-items: center !important;
        justify-content: center !important;

        align-self: flex-end !important;

        margin-top: auto !important;

        width: fit-content !important;

        padding: 8px 17px !important;

        background: transparent !important;
        color: #132646 !important;

        border: 1px solid #132646 !important;
        border-radius: 999px !important;

        font-family: "Prompt", sans-serif !important;

        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;

        text-decoration: none !important;

        transition:
            background-color 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease !important;
    }

    .bms-featured-post .eael-post-elements-readmore-btn:hover,
    .bms-featured-post .eael-post-elements-readmore:hover {
        background: #132646 !important;
        color: #FFFFFF !important;

        transform: translateY(-1px);
    }

}



/* =====================================================
   FIX ASTRA FOOTER ON SINGLE POST
===================================================== */

body.single-post footer#colophon,
body.single-post #colophon .site-primary-footer-wrap,
body.single-post #colophon .site-below-footer-wrap {
    background-color: #132646 !important;
    background-image: none !important;
}

body.single-post #colophon .ast-builder-grid-row-container-inner,
body.single-post #colophon .ast-builder-grid-row,
body.single-post #colophon .site-primary-footer-inner-wrap,
body.single-post #colophon .site-footer-section,
body.single-post #colophon .site-footer-primary-section-1,
body.single-post #colophon .site-footer-primary-section-2,
body.single-post #colophon .site-footer-primary-section-3,
body.single-post #colophon .footer-widget-area,
body.single-post #colophon .footer-widget-area-inner,
body.single-post #colophon .widget,
body.single-post #colophon .widget_block,
body.single-post #colophon .ast-builder-html-element,
body.single-post #colophon .site-info-inner {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

body.single-post #colophon .site-footer-section::before,
body.single-post #colophon .site-footer-section::after,
body.single-post #colophon .footer-widget-area::before,
body.single-post #colophon .footer-widget-area::after,
body.single-post #colophon .footer-widget-area-inner::before,
body.single-post #colophon .footer-widget-area-inner::after {
    background: transparent !important;
    background-image: none !important;
}


/* =====================================================
   HIDE PREVIOUS / NEXT — SINGLE POST
===================================================== */

.single-post .post-navigation {
    display: none !important;
}




/* =====================================================
   HOME — 3 LATEST ARTICLES
   THE POST GRID
   DESKTOP ONLY
   Default Read More Button
===================================================== */

@media (min-width: 1025px) {

    /* =========================
       WIDTH
       รวม 3 การ์ดไม่เกิน REC
    ========================= */

    .bms-home-latest {
        width: 100% !important;
        max-width: 999px !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }

    .bms-home-latest .rt-tpg-container {
        width: 100% !important;
        max-width: 100% !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }


    /* =========================
       3 COLUMNS
    ========================= */

    .bms-home-latest .rt-row {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

        gap: 20px !important;

        margin: 0 !important;
    }

    .bms-home-latest .rt-col-md-4,
    .bms-home-latest .rt-col-lg-4,
    .bms-home-latest .rt-col-sm-6,
    .bms-home-latest [class*="rt-col-"] {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* =========================
       CARD
    ========================= */

    .bms-home-latest .rt-holder {
        height: 100% !important;

        display: flex !important;
        flex-direction: column !important;

        background: #FFFFFF !important;

        border: 1px solid #E8DEC5 !important;
        border-radius: 14px !important;

        overflow: hidden !important;

        box-sizing: border-box !important;
    }


    /* =========================
       IMAGE
    ========================= */

    .bms-home-latest .rt-img-holder {
        width: 100% !important;
        height: 190px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;
    }

    .bms-home-latest .rt-img-holder a {
        display: block !important;

        width: 100% !important;
        height: 100% !important;
    }

    .bms-home-latest .rt-img-holder img {
        display: block !important;

        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;
        object-position: center center !important;

        margin: 0 !important;
    }


    /* =========================
       CONTENT
    ========================= */

    .bms-home-latest .rt-detail {
        flex: 1 !important;

        display: flex !important;
        flex-direction: column !important;

        padding: 18px 18px 18px 18px !important;

        box-sizing: border-box !important;
    }


    /* =========================
       TITLE
    ========================= */

    .bms-home-latest .entry-title {
        margin: 0 0 10px 0 !important;

        font-family: "Prompt", sans-serif !important;
        font-size: 19px !important;
        font-weight: 700 !important;
        line-height: 1.45 !important;

        color: #132646 !important;
    }

    .bms-home-latest .entry-title a {
        color: #132646 !important;
        text-decoration: none !important;
    }

    .bms-home-latest .entry-title a:hover {
        color: #B48F2E !important;
    }


    /* =========================
       DATE / META
    ========================= */

    .bms-home-latest .post-meta,
    .bms-home-latest .post-meta-user,
    .bms-home-latest .post-meta-tags {
        font-family: "Prompt", sans-serif !important;
        font-size: 12px !important;
        line-height: 1.5 !important;

        color: #6B7280 !important;
    }


    /* =========================
       EXCERPT
    ========================= */

    .bms-home-latest .tpg-excerpt,
    .bms-home-latest .post-content {
        font-family: "Prompt", sans-serif !important;

        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.7 !important;

        color: #293040 !important;
    }

    .bms-home-latest .tpg-excerpt p,
    .bms-home-latest .post-content p {
        margin-bottom: 12px !important;
    }


    /* =================================================
       READ MORE
       ไม่แตะ — ใช้ Default ของ The Post Grid
    ================================================= */

}



/* =====================================================
   HOME — RECOMMENDED ARTICLE
   THE POST GRID
   DESKTOP ONLY

   IMAGE LEFT 42%
   CONTENT RIGHT 58%
   DEFAULT READ MORE BUTTON
===================================================== */

@media (min-width: 1025px) {

    /* =========================
       WIDGET WIDTH
    ========================= */

    .bms-rec-tpg {
        width: 100% !important;
        max-width: 999px !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }

    .bms-rec-tpg .rt-tpg-container {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* =========================
       OUTER COLUMN
    ========================= */

    .bms-rec-tpg .rt-row {
        margin: 0 !important;
    }

    .bms-rec-tpg [class*="rt-col-"] {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* =========================
       CARD
    ========================= */

    .bms-rec-tpg .rt-holder {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #FFFFFF !important;

        border: 1px solid #E8DEC5 !important;
        border-radius: 14px !important;

        overflow: hidden !important;

        box-sizing: border-box !important;
    }


    /* =================================================
       สำคัญที่สุด
       รูปและ Content จริง ๆ เป็นลูกของ .rt-detail
    ================================================= */

    .bms-rec-tpg .rt-detail.rt-el-content-wrapper {
        display: grid !important;

        grid-template-columns: 42% 58% !important;
        grid-template-rows: auto auto 1fr auto !important;

        width: 100% !important;
        min-height: 280px !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #FFFFFF !important;

        box-sizing: border-box !important;
    }


    /* =========================
       IMAGE — LEFT
       กินความสูงทั้ง Card
    ========================= */

    .bms-rec-tpg .rt-img-holder {
        grid-column: 1 !important;
        grid-row: 1 / -1 !important;

        position: relative !important;

        width: 100% !important;
        height: 100% !important;
        min-height: 280px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;
    }

    .bms-rec-tpg .rt-img-holder a {
        display: block !important;

        width: 100% !important;
        height: 100% !important;
    }

    .bms-rec-tpg .rt-img-holder img {
        display: block !important;

        width: 100% !important;
        height: 100% !important;
        min-height: 280px !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: cover !important;
        object-position: center center !important;
    }


    /* =========================
       IMAGE FADE → RIGHT
    ========================= */

    .bms-rec-tpg .rt-img-holder::after {
        content: "" !important;

        position: absolute !important;

        top: 0 !important;
        right: 0 !important;

        width: 100px !important;
        height: 100% !important;

        background: linear-gradient(
            to right,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.25) 35%,
            rgba(255,255,255,0.65) 70%,
            #FFFFFF 100%
        ) !important;

        pointer-events: none !important;
        z-index: 2 !important;
    }


    /* =========================
       TITLE — RIGHT
    ========================= */

    .bms-rec-tpg .entry-title-wrapper {
        grid-column: 2 !important;
        grid-row: 1 !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 28px 30px 0 28px !important;

        box-sizing: border-box !important;
    }

    .bms-rec-tpg .entry-title {
        margin: 0 0 16px 0 !important;

        font-family: "Prompt", sans-serif !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;

        color: #132646 !important;
    }

    .bms-rec-tpg .entry-title a {
        color: #132646 !important;
        text-decoration: none !important;
    }

    .bms-rec-tpg .entry-title a:hover {
        color: #B48F2E !important;
    }


    /* =========================
       META — RIGHT
       ถ้าปิดใน Widget อยู่แล้วก็ไม่ขึ้น
    ========================= */

    .bms-rec-tpg .post-meta-tags {
        grid-column: 2 !important;
        grid-row: 2 !important;

        margin: 0 !important;
        padding: 0 30px 0 28px !important;

        box-sizing: border-box !important;
    }


    /* =========================
       EXCERPT — RIGHT
    ========================= */

    .bms-rec-tpg .tpg-excerpt {
        grid-column: 2 !important;
        grid-row: 3 !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 30px 20px 28px !important;

        font-family: "Prompt", sans-serif !important;
        font-size: 17px !important;
        font-weight: 400 !important;
        line-height: 1.75 !important;

        color: #293040 !important;

        box-sizing: border-box !important;
    }

    .bms-rec-tpg .tpg-excerpt p {
        margin: 0 !important;
        color: #293040 !important;
    }


    /* =========================
       FOOTER / READ MORE
       ขวาล่าง
       ไม่แต่งหน้าตาปุ่ม
    ========================= */

    .bms-rec-tpg .post-footer {
        grid-column: 2 !important;
        grid-row: 4 !important;

        width: 100% !important;

        display: flex !important;
        justify-content: flex-end !important;
        align-items: flex-end !important;

        margin: 0 !important;
        padding: 0 30px 24px 28px !important;

        box-sizing: border-box !important;
    }

}



/* =========================================
   BMS FLOATING CTA - DESKTOP
========================================= */

@media (min-width: 1025px) {

  .bms-floating-cta {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0;
    margin: 0;

    background: transparent;
    border: none;
    box-shadow: none;
  }

  /* ALL BUTTONS */
  .bms-floating-cta a {
    width: 210px;
    min-width: 210px;
    max-width: 210px;

    height: 54px;
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 18px;

    font-family: "Prompt", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;

    text-align: center;
    text-decoration: none !important;

    border-radius: 14px;
    box-sizing: border-box;

    box-shadow: 0 4px 14px rgba(19, 38, 70, 0.16);

    transition:
      transform 0.2s ease,
      background-color 0.2s ease,
      color 0.2s ease,
      box-shadow 0.2s ease;
  }

  /* ICON */
  .bms-float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 18px;
    line-height: 1;
  }

  /* PROMOTION */
  .bms-float-promo {
    background: #DEBF5A;
    color: #132646 !important;
    border: 2px solid #DEBF5A;
  }

  .bms-float-promo:hover {
    background: #F0E089;
    color: #132646 !important;
    border-color: #F0E089;
  }

  /* LINE */
  .bms-float-line {
    background: #06C755;
    color: #FFFFFF !important;
    border: 2px solid #06C755;
  }

  .bms-float-line:hover {
    background: #05B94E;
    color: #FFFFFF !important;
    border-color: #05B94E;
  }

  /* PHONE */
  .bms-float-phone {
    background: #FFFFFF;
    color: #132646 !important;

    border: 2px solid #132646;

    position: relative;
    top: -4px;
  }

  .bms-float-phone:hover {
    background: #132646;
    color: #FFFFFF !important;
  }

  /* HOVER */
  .bms-floating-cta a:hover {
    transform: translateY(-2px);

    box-shadow:
      0 6px 18px rgba(19, 38, 70, 0.20);
  }

}



/* =====================================================
   FOOTER MENU TITLE
   Align with Contact / Social headings
===================================================== */

.site-footer .footer-nav-wrap {
    align-self: flex-start;
}

.site-footer .footer-nav-wrap::before {
    content: "เมนู";
    display: block;

    margin: 0 0 22px 0;
    padding: 0;

    font-family: "Prompt", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;

    color: #DEBF5A;
}






/* =====================================================
         MOBILE 
===================================================== */





/* =====================================================
   FOOTER — MOBILE
===================================================== */

@media (max-width: 767px) {

  /* =========================
     CONTACT — CENTER
  ========================= */

  .site-footer-primary-section-2,
  .site-footer-primary-section-2 .widget,
  .site-footer-primary-section-2 .widget_text,
  .site-footer-primary-section-2 .textwidget {
    text-align: center !important;
  }

  .site-footer-primary-section-2 .bms-map-button {
    margin-left: auto !important;
    margin-right: auto !important;
  }


  /* =========================
     MENU — CENTER
  ========================= */

  .site-footer .footer-nav-wrap,
  .site-footer .footer-nav-wrap::before {
    text-align: center !important;
  }


  /* =========================
     SOCIAL
     Heading center
     Rows left aligned
  ========================= */

  .bms-footer-social {
    text-align: center !important;
  }

  .bms-footer-social h3 {
    text-align: center !important;
  }

  .bms-footer-social a {
    width: 250px !important;

    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 16px !important;

    justify-content: flex-start !important;
    text-align: left !important;
  }

}



/* =========================================
   BMS FLOATING CTA - MOBILE
========================================= */

@media (max-width: 767px) {

  .bms-floating-cta {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 9999;

    width: calc(100% - 16px);
    max-width: 430px;

    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 5px;

    padding: 0;
    margin: 0;

    background: transparent;
    border: none;
    box-shadow: none;
  }

  .bms-floating-cta a {
    flex: 1 1 0;

    width: auto;
    min-width: 0;
    max-width: none;

    height: 52px;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 0 6px;

    box-sizing: border-box;

    font-family: "Prompt", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;

    text-align: center;
    text-decoration: none !important;

    border-radius: 11px;

    box-shadow: 0 3px 10px rgba(19, 38, 70, 0.16);
  }

  .bms-float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    font-size: 15px;
    line-height: 1;
  }

  .bms-float-promo {
    background: #DEBF5A;
    color: #132646 !important;
    border: 1px solid #DEBF5A;
  }

  .bms-float-line {
    background: #06C755;
    color: #FFFFFF !important;
    border: 1px solid #06C755;
  }

  .bms-float-line .bms-float-icon {
    font-size: 12px;
    font-weight: 700;
  }

  .bms-float-phone {
    background: #FFFFFF;
    color: #132646 !important;
    border: 1.5px solid #132646;

    position: relative;
    top: 0;
  }

  .bms-floating-cta a:hover {
    transform: none;
  }
}




/* =====================================================
   MOBILE FOOTER SPACING
===================================================== */

@media (max-width: 767px) {

  /* =========================
     MENU SECTION
     เว้นจาก Contact และ Social
  ========================= */

  .site-footer .footer-nav-wrap {
    margin-top: 32px !important;
    margin-bottom: 32px !important;
  }

  /* ระหว่างหัวข้อ "เมนู" กับรายการเมนู */
  .site-footer .footer-nav-wrap::before {
    margin-bottom: 18px !important;
  }


  /* =========================
     SOCIAL SECTION
  ========================= */

  .bms-footer-social {
    margin-top: 0 !important;
  }

  /* หัวข้อ "ติดตามเรา" */
  .bms-footer-social h3 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
  }

  /* ระหว่าง Social แต่ละรายการ */
  .bms-footer-social a {
    margin-bottom: 14px !important;
  }

  .bms-footer-social a:last-child {
    margin-bottom: 0 !important;
  }

}




/* =====================================================
   CARE STANDARD — MOBILE WIDTH
===================================================== */

@media (max-width: 767px) {

  .bms-care-standard {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    box-sizing: border-box !important;
  }

}



/* =====================================================
   ติดตามเรา Mobile Social media อยู่กลาง
===================================================== */
@media (max-width: 767px) {
  .bms-social-section {
    width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}




/* =====================================================
   ABOVE FOOTER — REMOVE EMPTY SPACE GLOBALLY
   Keep Floating CTA working
===================================================== */

.site-above-footer-wrap,
.site-above-footer-wrap .ast-builder-grid-row-container-inner,
.site-above-footer-wrap .ast-builder-grid-row {
    height: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;
    background-image: none !important;

    overflow: visible !important;
}

/* ไม่ให้ section ภายในสร้างความสูงเพิ่ม */
.site-above-footer-wrap .site-footer-section,
.site-above-footer-wrap .footer-widget-area,
.site-above-footer-wrap .footer-widget-area-inner {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
}



/* ไม่ให้ header desktop มี ติดต่อเรา */
@media (min-width: 768px) {
  .mobile-only-contact {
    display: none !important;
  }
}


/* บทความแก้ list ติดขอบ */
/* BMS - Article list spacing */
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-left: 0;
    padding-left: 28px;
}

/* Tablet */
@media (max-width: 921px) {
    .single-post .entry-content ul,
    .single-post .entry-content ol {
        padding-left: 26px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .single-post .entry-content ul,
    .single-post .entry-content ol {
        padding-left: 24px;
    }
}

/* =====================================================
   MOBILE HERO — FIX CLS / FIXED HEIGHT 600PX
===================================================== */
@media (max-width: 767px) {

  .bms-mobile-hero {
    width: 100% !important;
    height: 600px !important;
    min-height: 600px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative;
  }

  .bms-mobile-hero-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .bms-mobile-hero-image .elementor-widget-container {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .bms-mobile-hero-image img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

}





/* Force Hero visibility by device */

/* Mobile */
@media (max-width: 767px) {
  .bms-desktop-hero {
    display: none !important;
  }

  .bms-mobile-hero {
    display: flex !important;
  }
}

/* Tablet + Desktop */
@media (min-width: 768px) {
  .bms-mobile-hero {
    display: none !important;
  }
}


/* =====================================================
   BMS ACTIVITY — CENTERED HORIZONTAL SCROLL
   Desktop: 50%
   Mobile: 92%
===================================================== */


/* =====================================================
   SCROLL TRACK
===================================================== */

.bms-activity-scroll,
.bms-activity-scroll > .e-con-inner {

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    width: 100% !important;
    max-width: 100% !important;

    gap: 16px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none !important;

    padding: 0 !important;
    margin: 0 !important;
}


/* =====================================================
   HIDE SCROLLBAR
===================================================== */

.bms-activity-scroll::-webkit-scrollbar,
.bms-activity-scroll > .e-con-inner::-webkit-scrollbar {

    display: none !important;

}


/* =====================================================
   DESKTOP — EACH SLIDE
===================================================== */

.bms-activity-scroll > .elementor-widget-image,
.bms-activity-scroll > .e-con-inner > .elementor-widget-image {

    flex: 0 0 50% !important;

    width: 50% !important;
    max-width: 50% !important;
    min-width: 50% !important;

    scroll-snap-align: center !important;
    scroll-snap-stop: always;

    margin: 0 !important;
    padding: 0 !important;
}


/* =====================================================
   IMAGE BOX
===================================================== */

.bms-activity-scroll
.elementor-widget-image
.elementor-widget-container {

    width: 100% !important;

    aspect-ratio: 3 / 2;

    overflow: hidden !important;

    border-radius: 14px;

    margin: 0 !important;
    padding: 0 !important;
}


/* =====================================================
   IMAGE
===================================================== */

.bms-activity-scroll
.elementor-widget-image img {

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;
    object-position: center center !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {

    .bms-activity-scroll,
    .bms-activity-scroll > .e-con-inner {

        gap: 14px !important;

    }

}


/* =====================================================
   MOBILE — LARGE CENTER IMAGE
===================================================== */

@media (max-width: 767px) {

    .bms-activity-scroll,
    .bms-activity-scroll > .e-con-inner {

        gap: 8px !important;

    }


    .bms-activity-scroll > .elementor-widget-image,
    .bms-activity-scroll > .e-con-inner > .elementor-widget-image {

        flex: 0 0 92% !important;

        width: 92% !important;
        max-width: 92% !important;
        min-width: 92% !important;

        scroll-snap-align: center !important;
        scroll-snap-stop: always;

    }


    .bms-activity-scroll
    .elementor-widget-image
    .elementor-widget-container {

        border-radius: 12px;

    }

}


/* =====================================================
   BMS HERO DESKTOP — RESPONSIVE PICTURE FADE
   Desktop Hero loads only on Desktop
   No Swiper / No Carousel
===================================================== */

@media (min-width: 768px) {

    /* MAIN WRAPPER */
    .bms-hero-picture-fade {
        position: relative !important;

        width: 100% !important;
        max-width: 100% !important;

        aspect-ratio: 3 / 2;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;
        isolation: isolate;
    }


    /* SLIDES */
    .bms-hero-picture-slide {
        position: absolute !important;
        inset: 0 !important;

        display: block !important;

        width: 100% !important;
        height: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        opacity: 0;
        pointer-events: none;
        z-index: 1;

        transition: opacity 0.8s ease !important;
    }


    /* ACTIVE SLIDE */
    .bms-hero-picture-slide.is-active {
        opacity: 1 !important;
        z-index: 2 !important;
    }


    /* IMAGE */
    .bms-hero-picture-slide img {
        display: block !important;

        width: 100% !important;
        height: 100% !important;

        max-width: none !important;

        object-fit: cover !important;
        object-position: center center !important;

        margin: 0 !important;
        padding: 0 !important;

        /* Fade ซ้าย + ล่าง เหมือน Hero เดิม */
        -webkit-mask-image:
            linear-gradient(
                to right,
                transparent 0%,
                rgba(0,0,0,0.25) 10%,
                rgba(0,0,0,0.70) 22%,
                #000 35%,
                #000 100%
            ),
            linear-gradient(
                to bottom,
                #000 0%,
                #000 70%,
                rgba(0,0,0,0.75) 82%,
                rgba(0,0,0,0.35) 92%,
                transparent 100%
            );

        -webkit-mask-composite: source-in;

        mask-image:
            linear-gradient(
                to right,
                transparent 0%,
                rgba(0,0,0,0.25) 10%,
                rgba(0,0,0,0.70) 22%,
                #000 35%,
                #000 100%
            ),
            linear-gradient(
                to bottom,
                #000 0%,
                #000 70%,
                rgba(0,0,0,0.75) 82%,
                rgba(0,0,0,0.35) 92%,
                transparent 100%
            );

        mask-composite: intersect;
    }

}


/* =====================================================
   FAQ - Home
===================================================== */
/* FAQ — CENTER */
.bms-faq-center {
    width: 100% !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* FAQ — MOBILE SPACING */
@media (max-width: 767px) {
    .bms-faq-center {
        width: calc(100% - 48px) !important;
        max-width: calc(100% - 48px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}