:root{
    --ff-heading: 'Noto Sans Thai Looped', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --ff-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --theme-header-bg: #fcedda;
    --theme-hero-bg: #fcedda;
    --theme-hero-bg-accent: #f7d19a;
    --theme-color-active: #DE5C8E;
    --global-md-spacing: 1.5rem;
    --global-font-size-small: 14px;
}

/* Reset */
a:focus-visible,button:focus-visible,[role="button"]:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
    outline: 0 !important;
    outline-offset: 0 !important
}

/* Kadence Settings */
.site .single-content .wp-block-image figure{margin-bottom:0}.site-footer-row-layout-fullwidth>.site-footer-row-container-inner>.site-container,.site-header-row-layout-fullwidth>.site-header-row-container-inner>.site-container{padding-left:1.5rem;padding-right:1.5rem}.content-width-narrow.content-style-unboxed .content-area .site-container,.content-width-normal.content-style-unboxed .content-area .site-container,.entry-hero .site-container,.kt-row-column-wrap.kb-theme-content-width,.site-footer-row-layout-contained,.site-footer-row-layout-standard>.site-footer-row-container-inner>.site-container,.site-header-row-layout-contained,.site-header-row-layout-standard>.site-header-row-container-inner>.site-container{width:calc(100% - 3rem)}@media (max-width:767px){.entry-content-wrap{padding-top:3rem;padding-bottom:3rem}}.kadence-header-row-inner{width:calc(100% - 3rem);margin:0 auto}@media (min-width:768px){.site-footer-row-layout-fullwidth>.site-footer-row-container-inner>.site-container,.site-header-row-layout-fullwidth>.site-header-row-container-inner>.site-container{padding-left:2rem;padding-right:2rem}.content-width-narrow.content-style-unboxed .content-area .site-container,.content-width-normal.content-style-unboxed .content-area .site-container,.entry-hero .site-container,.kt-row-column-wrap.kb-theme-content-width,.site-footer-row-layout-contained,.site-footer-row-layout-standard>.site-footer-row-container-inner>.site-container,.site-header-row-layout-contained,.site-header-row-layout-standard>.site-header-row-container-inner>.site-container{width:calc(100% - 4rem)}.kadence-header-row-inner{width:calc(100% - 4rem);margin:0 auto}}@media (min-width:1400px){.site-footer-row-layout-fullwidth>.site-footer-row-container-inner>.site-container,.site-header-row-layout-fullwidth>.site-header-row-container-inner>.site-container{padding-left:3rem;padding-right:3rem}.content-width-narrow.content-style-unboxed .content-area .site-container,.content-width-normal.content-style-unboxed .content-area .site-container,.entry-hero .site-container,.kt-row-column-wrap.kb-theme-content-width,.site-footer-row-layout-contained,.site-footer-row-layout-standard>.site-footer-row-container-inner>.site-container,.site-header-row-layout-contained,.site-header-row-layout-standard>.site-header-row-container-inner>.site-container{width:calc(100% - 6rem)}.kadence-header-row-inner{width:calc(100% - 6rem);margin:0 auto}}@media screen and (max-width:719px){.content-style-boxed .content-bg:not(.loop-entry){margin-left:0!important;margin-right:0!important}}

@media screen and (max-width: 1264px) {
    .content-style-boxed .content-bg:not(.loop-entry) {
        margin-left: 2rem !important;
        margin-right: 2rem !important;
        width: auto;
    }
}
@media screen and (max-width: 767px) {
    .content-style-boxed .content-bg:not(.loop-entry) {
        margin-left: 1.5rem !important;
        margin-right: 1.5rem !important;
        width: auto;
    }
}
@media screen and (max-width: 719px) {
    .content-style-boxed .content-bg:not(.loop-entry) {
        margin-left: 0.25rem !important;
        margin-right: 0.25rem !important;
        width: auto;
    }
}
@media (min-width: 1110px) {
    .content-width-narrow .wp-site-blocks .content-container .alignwide,
    .content-width-normal .wp-site-blocks .content-container .alignwide {
        margin-left: -120px;
        margin-right: -120px;
        width: unset;
        max-width: unset;
    }
}
@media(min-width:1264px) {
    .ms-xlg-0 {
        margin-left: 0 !important;
    }
    .me-xlg-0 {
        margin-right: 0 !important;
    }
    .ps-xlg-0 {
        padding-left: 0 !important;
    }
    .pe-xlg-0 {
        padding-right: 0 !important;
    }
}

/* HTML */
.has-text-align-center {
    text-align: center;
}
.wp-block-pullquote blockquote {
    padding: 1.25em;
    line-height: 1.5;
}

/* Header */
.mt-header {
    margin-top: 102px;
}
.pt-header,
.transparent-header .pt-header-transparent {
    padding-top: 102px;
}
@media(min-width:768px) {
    .mt-header {
        margin-top: 110px;
    }
    .pt-header,
    .transparent-header .pt-header-transparent {
        padding-top: 110px;
    }
}
@media(min-width:1200px) {
    .mt-header {
        margin-top: 171px;
    }
    .pt-header,
    .transparent-header .pt-header-transparent {
        padding-top: 171px;
    }
}
.header-gradient-grey #masthead::before,
.header-gradient-pink #masthead::before {
    content: '';
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    opacity: 0.5;
}
.header-gradient-pink #masthead::before {
    background: linear-gradient(
        to bottom,
        rgba(222, 92, 142, 1) 0%,
        rgba(0, 0, 0, 0) 100%
    );
}

.site-header-item {
    margin-right: 0;
}
.menu-toggle-open {
    flex-direction: row-reverse;
}
.menu-toggle-open .menu-toggle-label {
    padding-left: 0.25rem;
    padding-right: 0;
    padding-bottom: 4px;
}

 /* Site Main Header (Logo) */
.site-main-header-wrap .site-header-row-container-inner {
    background-color: var(--theme-header-bg);
}

 /* Site Bottom Header (Main Navigation) */
.site-bottom-header-wrap .site-header-row-container-inner {
    background-color: var(--theme-header-bg);
}
.site-bottom-header-wrap.site-header-row-layout-fullwidth .site-header-row-container-inner .site-container,
.site-bottom-header-wrap.site-header-row-layout-standard .site-header-row-container-inner .site-container,
.site-bottom-header-wrap.site-header-row-layout-contained .site-header-row-container-inner .site-container {
    background-color: #fff;
}
.site-bottom-header-wrap.site-header-row-layout-fullwidth .site-header-row-container-inner .site-container,
.site-bottom-header-wrap.site-header-row-layout-standard .site-header-row-container-inner .site-container {
    border-radius: 50rem;
}
.site-bottom-header-wrap.site-header-row-layout-fullwidth .site-header-row-container-inner .site-container {
    max-width: calc(100% - 4rem);
}
@media(min-width:1264px) {
    .site-bottom-header-wrap.site-header-row-layout-fullwidth .site-header-row-container-inner .site-container {
        max-width: 1200px;
    }
}
@media(min-width:1400px) {
    .site-bottom-header-wrap.site-header-row-layout-fullwidth .site-header-row-container-inner .site-container {
        max-width: calc(100% - 6rem);
    }
}
@media(min-width:1776px) {
    .site-bottom-header-wrap.site-header-row-layout-fullwidth .site-header-row-container-inner .site-container {
        max-width: 1680px;
    }
}

/* Primary Menu (Desktop) */
.header-navigation .header-menu-container ul#primary-menu  ul.sub-menu, 
.header-navigation .header-menu-container ul#primary-menu ul.submenu {
    margin-top: 0.5rem;
    margin-left: -0.75rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    border-radius: 1rem;
}
.header-navigation .header-menu-container ul#primary-menu  ul.sub-menu ul.sub-menu, 
.header-navigation .header-menu-container ul#primary-menu ul.submenu ul.submenu {
    margin-top: 0;
}
.nav--toggle-sub .dropdown-nav-toggle {
    top: 0.75rem;
    width: 0.75rem;
    height: 44px;
}
/* Primary Menu (Mobile) */
.header-navigation ul ul li.menu-item > a {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
/* Secondary Menu (Mobile) */
#mobile-secondary-site-navigation.mobile-navigation a {
    padding-left: 0;
    padding-right: 0;
}
@media(max-width:575.98px) {
    #mobile-secondary-site-navigation.mobile-navigation a {
        font-size: 13px;
    }
}
@media(max-width:413.98px) {
    #mobile-secondary-site-navigation.mobile-navigation a {
        font-size: 12px;
    }
}

/* Search Drawer */
#search-drawer .drawer-inner input.search-field:focus {
    background-color: #fff;
}

/* Popup Drawer */
.popup-drawer .drawer-header {
    padding: 0;
}
.popup-drawer .drawer-header .drawer-toggle {
    padding: 1.5rem;
}
.popup-drawer .drawer-content {
    padding: 0 1.5rem 5rem 1.5rem;
}
.popup-drawer .drawer-content .site-header-item {
    margin-bottom: 0;
}
.popup-drawer .drawer-inner {
    display: block;
}
.popup-drawer .drawer-inner .site-header-item {
    max-width: 640px;
    margin: 0 auto;
}
.mobile-navigation a {
    padding-left: 0;
    padding-right: 0;
}
.mobile-navigation ul ul {
    margin-left: .25rem;
    padding-left: 1.5rem;
    padding-bottom: 1rem;
    border-left: 1px solid var(--global-palette1);;
}
.mobile-navigation ul ul ul {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 1.5rem;
}
@media(min-width:768px) {
    .mobile-navigation ul ul,
    .mobile-navigation ul ul ul {
        padding-left: 2rem;
    }
}
.mobile-navigation li.menu-item-has-children > .drawer-nav-drop-wrap > a {
    padding-right: 3rem;
}
.mobile-navigation .kadence-svg-iconset svg {
    width: 1.5rem;
    height: 1.5rem;
}
.mobile-navigation ul ul ul.sub-menu.active { 
    border-bottom: none;
}
.mobile-navigation ul ul li {
    font-weight: 400;
    font-size: 16px;
}
.mobile-navigation ul ul li a {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: none !important;
}
.mobile-navigation:not(.drawer-navigation-parent-toggle-true) ul li.menu-item-has-children .drawer-nav-drop-wrap button {
    border-left: none;
}
#mobile-menu .drawer-nav-drop-wrap .drawer-sub-toggle {
    padding: 10px 0;
}
#mobile-menu ul .drawer-sub-toggle .kadence-svg-iconset {
    margin-top: -6px;
    align-self: flex-start;
}
.mobile-navigation ul.sub-menu li.menu-item-has-children .drawer-nav-drop-wrap, 
.mobile-navigation ul.sub-menu li:not(.menu-item-has-children) a {
    border-bottom: none;
}
/* Transparent Header */
.transparent-header .secondary-navigation .secondary-menu-container > ul > li.menu-item > a,
.transparent-header .quaternary-navigation .quaternary-menu-container > ul > li.menu-item > a,
.transparent-header #mobile-secondary-site-navigation ul li > a, 
.transparent-header #mobile-secondary-site-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap,
.transparent-header .mobile-toggle-open-container .menu-toggle-open, 
.transparent-header .mobile-toggle-open-container .menu-toggle-open:focus,
.transparent-header .search-toggle-open-container .search-toggle-open {
    color: #fff;
}
/* Masthead */
@media(min-width: 1200px) {
    .transparent-header #masthead {
        z-index: 200;
    }
    #masthead.bg-nav-split-white::before,
    .header-bottom-bg-split-white #masthead::before {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 22px;
        background-color: #fff;
    }
}

/* Footer */
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
    background-color: #EDF2F7;
}
.wp-block-search.wp-block-search__button-inside input[type=search] {
    padding: 0.5rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    line-height: 1.5;
}
.wp-block-search.wp-block-search__button-inside input[type=search]:focus {
    border-color: #041a39;
}
.wp-block-search.wp-block-search__button-inside .wp-block-search__button {
    margin-left: 4px;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    background-color: transparent;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: none;
}
.wp-block-search.wp-block-search__button-inside .wp-block-search__button:hover {
    background-color: #041a39;
    border-color: #041a39;
    color: #fff;
}

/* ==========================================================================

   Page Hero Section & Thumbnail

   ========================================================================== */

.kadence-breadcrumbs {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 14px;
}

.wp-site-blocks .page-title h1,
.entry-hero .entry-header h1 {
    margin-bottom: 0;
    font-family: var(--ff-heading);
}
.entry-meta {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 14px;
}
/* Hero Container */
.entry-hero-container-inner,
.page-hero-section .entry-hero-container-inner,
.news-hero-section .entry-hero-container-inner {
    background-color: var(--theme-hero-bg);
}
.hero-bg-transparency .page-hero-section .entry-hero-container-inner {
    background-color: transparent;
}
.hero-bg-gradient .page-hero-section .entry-hero-container-inner,
.hero-bg-gradient .news-hero-section .entry-hero-container-inner {
    background-image: linear-gradient(180deg,var(--theme-hero-bg) 0%,#fff 100%);
}

/* Thumbnail — Above */
.content-style-unboxed .kadence-thumbnail-position-above {
    margin-bottom: 0;
}
.wp-site-blocks .post-thumbnail.kadence-thumbnail-position-above {
    margin-top: -1.25rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.75rem;
}
.content-style-boxed .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-above {
    width: calc(100% - 48px);
}
/*
.content-style-unboxed .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-above {
    margin-bottom: 2.5rem;
}
*/
.content-style-unboxed .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-above + .single-entry.has-post-thumbnail {
    padding-top: 2.5rem;
}
.content-title-style-above .entry-content-wrap .post-thumbnail + .single-content {
    margin-top: 2.5rem;
}
/* Thumbnail — Below */
.wp-site-blocks .post-thumbnail.kadence-thumbnail-position-below {
    position: relative;
    border-radius: 0.75rem;
    /* overflow: visible; */
}
.wp-site-blocks .post-thumbnail.kadence-thumbnail-position-below::before {
    --global-vw: calc(100vw - (0.5 * var(--scrollbar-offset)));
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--global-vw, 100vw);
    max-width: 100vw;
    height: 50%;
    margin-left: calc(50% - var(--global-vw, 100vw) / 2);
    margin-right: calc(50% - var(--global-vw, 100vw) / 2);
    background-color: var(--theme-hero-bg);
}
.hero-bg-transparency .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-below::before {
    background-color: transparent;
}
.wp-site-blocks .post-thumbnail.kadence-thumbnail-position-below .post-thumbnail-inner {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
}
.content-width-fullwidth .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-below .post-thumbnail-inner {
    border-radius: 0;
}
.content-style-boxed .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-below {
    margin-top: -3rem;
}
/* Thumbnail — Behind */
.wp-site-blocks .post-thumbnail.kadence-thumbnail-position-behind + .single-entry.has-post-thumbnail {
    margin-top: 2.75rem;
}
.content-style-unboxed .kadence-thumbnail-position-behind::after {
    position: absolute;
    content: "";
    top: 0;
    bottom: -1px;
    left: 0;
    right: 0;
    background: linear-gradient(
        0deg,
        var(--global-palette9) 0%,
        rgba(var(--global-palette9rgb), 0.83) 25%,
        rgba(255, 255, 255, 0) 50%
    );
}
/* Entry Content Wrap */
.content-style-boxed .entry-content-wrap {
    padding-top: 2.5rem;
}

@media (min-width: 768px) {
    /* Thumbnail — Above */
    .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-above {
        margin-top: -1.5rem;
    }
    .content-style-boxed .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-above {
        width: calc(100% - 48px);
    }
    /*
    .content-style-unboxed .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-above {
        margin-bottom: 3rem;
    }
    */
    .content-style-unboxed .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-above + .single-entry.has-post-thumbnail {
        padding-top: 3rem;
    }
    .content-title-style-above .entry-content-wrap .post-thumbnail + .single-content {
        margin-top: 3rem;
    }
    /* Thumbnail — Below */
    .content-style-boxed .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-below {
        margin-top: -4rem;
    }
    /* Entry content wrap */
    .content-style-boxed .entry-content-wrap {
        padding-top: 3rem;
    }
}

@media (min-width: 1025px) {
    /* Thumbnail — Below */
    .has-sidebar .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-below::before {
        display: none;
    }
    .content-style-boxed .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-below {
        margin-top: -5rem;
    }
    /* Thumbnail — Behind */
    .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-behind {
        margin-top: -1.5rem;
        border-radius: 0.75rem;
    }
    .content-width-fullwidth .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-behind {
        border-radius: 0;
    }
}
@media (min-width: 1200px) {
    .content-title-style-above .entry-content-wrap .post-thumbnail + .single-content {
        margin-top: 3.5rem;
    }
    .content-style-boxed .entry-content-wrap {
        padding-top: 3.5rem;
    }
    /*
    .content-style-unboxed .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-above {
        margin-bottom: 3.5rem;
    }
    */
    .content-style-unboxed .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-above + .single-entry.has-post-thumbnail {
        padding-top: 3.5rem;
    }
}
@media (min-width: 1264px) {
    .content-style-boxed .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-above {
        width: 100%;
    }
    .content-width-fullwidth.content-style-boxed .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-above,
    .content-width-fullwidth.content-style-unboxed .wp-site-blocks .post-thumbnail.kadence-thumbnail-position-above {
        border-radius: 0;
    }
}

/* CPT: News */
.entry-hero.news-hero-section .entry-header {
    padding-top: calc(var(--bs-content-space) * 2);
    padding-bottom: calc(var(--bs-content-space) * 3);
}
.single-news .entry {
    padding-bottom: calc(var(--bs-content-space) * 3);
}
.single-news .primary-sidebar {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: calc(var(--bs-content-space) * 3);
    padding-bottom: calc(var(--bs-content-space) * 3);
    background: var(--global-palette7, #EDF2F7);
}

@media (min-width: 768px) {
    .entry-hero.news-hero-section .entry-header {
        padding-top: calc(var(--bs-content-space) * 2);
        padding-bottom: calc(var(--bs-content-space) * 3.5);
    }
    .single-news .entry {
        padding-bottom: calc(var(--bs-content-space) * 4);
    }
    .single-news .primary-sidebar {
        margin-left: -2rem;
        margin-right: -2rem;
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: calc(var(--bs-content-space) * 4);
        padding-bottom: calc(var(--bs-content-space) * 4);
    }
}
@media screen and (min-width: 1025px) {
    .entry-hero.news-hero-section .entry-header {
        padding-top: calc(var(--bs-content-space) * 3);
        padding-bottom: calc(var(--bs-content-space) * 4);
    }
    .single-news.has-sidebar .content-container {
        display: grid;
        grid-template-columns: 5fr 2fr;
        grid-gap: var(--global-lg-spacing);
        justify-content: center;
    }
    .single-news.has-sidebar .content-container .site-main {
        padding-right: var(--global-lg-spacing);
        border-right: 1px solid var(--global-palette7, #EDF2F7);
    }
    .single-news .primary-sidebar {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        padding-bottom: 0;
        background-color: transparent;
    }
}
@media (min-width: 1200px) {
    .single-news .entry {
        padding-bottom: calc(var(--bs-content-space) * 5);
    }
}

/* CPT: Service */
.header-text-dark #mobile-secondary-site-navigation ul li > a,
.header-text-dark .secondary-navigation .secondary-menu-container > ul > li.menu-item > a,
.header-text-dark .search-toggle-open-container .search-toggle-open,
.header-text-dark .mobile-toggle-open-container .menu-toggle-open,
.header-text-dark .header-social-wrap a.social-button,
.header-text-dark .quaternary-navigation .quaternary-menu-container > ul > li.menu-item > a {
    color: #000 !important;
}
.header-text-dark #mobile-header .header-mobile-divider,
.header-text-dark #main-header .header-divider,
.header-text-dark #main-header .header-divider2 {
    border-color: var(--global-palette1); !important;
}
@media screen and (min-width: 1025px) {
    .header-text-dark.has-featured-image .search-toggle-open-container .search-toggle-open,
    .header-text-dark.has-featured-image .mobile-toggle-open-container .menu-toggle-open,
    .header-text-dark.has-featured-image .header-social-wrap a.social-button,
    .header-text-dark.has-featured-image .quaternary-navigation .quaternary-menu-container > ul > li.menu-item > a {
        color: #fff !important;
    }
    .header-text-dark.has-featured-image #mobile-header .header-mobile-divider,
    .header-text-dark.has-featured-image #main-header .header-divider,
    .header-text-dark.has-featured-image #main-header .header-divider2 {
        border-color: #fff !important;
    }
}

/* Main Content */
#inner-wrap {
    position: relative;
}

/* Typo */
.text-primary{color:var(--bs-primary)!important}.text-primary-dark{color:var(--bs-primary-dark)!important}.text-secondary{color:var(--bs-secondary)!important}.text-secondary-dark{color:var(--bs-secondary-dark)!important}.text-tertiary{color:var(--bs-tertiary)!important}.text-tertiary-dark{color:var(--bs-tertiary-dark)!important}.text-white,.text-white a{color:var(--bs-white)!important}.text-black,.text-black a{color:var(--bs-black)!important}.text-active,.text-active a{color:var(--theme-color-active)!important}.text-success,.text-success a{color:var(--bs-success)!important}.text-indent{text-indent:36px}.text-hover-underline span{position:relative;display:inline;background-image:-webkit-linear-gradient(currentColor,currentColor);background-image:-o-linear-gradient(currentColor,currentColor);background-image:linear-gradient(currentColor,currentColor);background-position:0 100%;background-repeat:no-repeat;background-size:0 2px;transition:background-size .3s}.text-hover-underline span:hover{background-size:100% 2px}.text-alt{color:rgba(0, 0, 0, .5)}

.ff-heading {
    font-family: var(--ff-heading) !important;
}
.text-blue {
    color: #194793;
}
.text-blue {
    color: #194793;
}

/* Border */
.border-black { border-color: #000 !important; }

/* Background */
.bg-green, .bg-theme-green { background-color: #006738; }
.bg-hero, .bg-theme-hero { background-color: var(--theme-hero-bg); }
.bg-hero-accent, .bg-theme-hero-accent { background-color: var(--theme-hero-bg-accent); }
.bg-gradient-circle {
  width: 720px;
  height: 720px;
  filter: blur(80px);
  background-image: linear-gradient(#4ddc9e, #5b37eb, #f1307e);
  animation: bg-gradient-circle-rotate 30s cubic-bezier(0.8, 0.2, 0.2, 0.8) alternate infinite;
  border-radius: 30% 70% 70% 30%/30% 30% 70% 70%;
}
.bg-gradient-fade-to-bottom {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0) 100%
    );
}
.mt-nbg-gradient-circle {
    margin-top: -720px;
}
@media(min-width:1025px) {
    .bg-gradient-circle {
        width: 960px;
        height: 960px;
    }
    .mt-nbg-gradient-circle {
        margin-top: -960px;
    }
}
@keyframes bg-gradient-circle-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.bg-pattern-dec-01 {
    background-image: linear-gradient(45deg, transparent 49%, #f9eddc 49%,#f9eddc 51%, transparent 51%), linear-gradient(-45deg,transparent 49%,#f9eddc 49%,#f9eddc 51%,transparent 51%);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 100%,#000 50%, transparent 90%);
    mask-image: radial-gradient(ellipse 100% 80% at 50% 100%,#000 50%,transparent 90%);
}

.btn {
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--bs-border-radius);
    line-height: 1.5;
}
.btn.with-icon {
    position: relative;
    display: flex !important;
    justify-content: space-between;
}
.btn.with-icon.icon-arrow::after {
    content: '→';
    position: relative;
}
.btn-primary {
    background-color: #de5c8e;
    color: #fff !important;
    text-decoration: none;
}
.btn-primary:hover {
    background-color: #cb3769;
}
.btn-secondary {
    background-color: #024ba6;
    color: #fff !important;
    text-decoration: none;
}
.btn-secondary:hover {
    background-color: #041a39;
}

.btn-cta,
.btn-outline,
.btn-clear {
    z-index: 1;
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
    padding: 12px 32px;
    border-radius: 0.75rem;
    border: 1px solid #000;
    background-color: #000;
    cursor: pointer;
    outline: none;
    color: #fff;
    line-height: 1.5;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}
.btn-cta:after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    z-index: -1;
    background-color: var(--bs-primary);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}
.btn-cta.rounded-pill:after {
    border-radius: 50rem;
}
.btn-cta:hover,
.btn-cta:focus {
    border-color: var(--bs-primary);
    background-color: #000;
    color: #fff;
}
.btn-cta:hover:after,
.btn-cta:focus:after {
    left: 0;
    width: 100%;
}
.btn-outline {
    background-color: #fff;
    border: 1px solid #000;
    color: #000;
}
.btn-outline:hover,
.btn-outline:focus {
    border-color: var(--bs-primary);
    background-color: #fff;
    color: var(--bs-primary);
}
.btn-clear {
    border-color: transparent;
    background-color: transparent;
    color: #000;
}
.btn-clear:hover,
.btn-clear:focus {
    border-color: transparent;
    background-color: transparent;
    color: var(--bs-primary);
    box-shadow: none;
}

.wp-element-button {
    padding: 0.375rem 1rem;
    border-radius: 50rem;
    font-size: 12px;
}
.wp-block-file *+.wp-block-file__button {
    margin-left: 1rem !important;
}



/* List */
.list-steps-01 {
    counter-reset: my-awesome-counter;
    list-style: none;
    padding-left: 48px !important;
}
.list-steps-01 > li {
    position: relative;
    counter-increment: my-awesome-counter;
    margin: 0 0 1rem 0;
    padding-top: 0.25rem;
}
.list-steps-01 > li::before {
  --size: 36px;
    content: counter(my-awesome-counter);
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    position: absolute;
    left: calc(-1 * var(--size) - 12px);
    line-height: var(--size);
    width: var(--size);
    height: var(--size);
    top: 0;
    background-color: var(--bs-primary);
    border-radius: 50%;
    text-align: center;
}
.list-steps-01 ol,
.list-steps-01 ul {
    margin-top: 0.25rem;
}

.list-bullet {
    counter-reset: a;
    list-style-type: none;
    padding-left: 0
}
.list-bullet li {
    padding-left: 36px;
    position: relative
}
.list-bullet li:before {
    position: absolute;
    top: 0;
    left: 0;
    content: "•";
    display: inline-block;
    width: 36px
}
.list-bullet.fs-small li,
.list-bullet-filled.fs-small li {
    padding-left: 28px;
}
.list-bullet.fs-small li:before {
    width: 28px
}

.list-number,
.list-number-filled {
    counter-reset: a;
    list-style-type: none;
    padding-left: 0
}
.list-number li,
.list-number-filled li {
    padding-left: 36px;
    position: relative
}
.list-number > li:before {
    position: absolute;
    top: 0;
    left: 0;
    counter-increment: a;
    content: counter(a) ".";
    display: inline-block;
    width: 36px
}
.list-number-filled > li:before {
    position: absolute;
    top: 0;
    left: 0;
    counter-increment: a;
    content: counter(a,decimal-leading-zero) ".";
    display: inline-block;
    width: 36px
}
.list-number.fs-small li,
.list-number-filled.fs-small li {
    padding-left: 28px;
}
.list-number.fs-small li:before
.list-number-filled.fs-small li:before {
    width: 28px
}

/* Block */
.wp-block-pullquote blockquote::before {
    color: #fcedda;
    left: -10px;
    top: 64px;
}

/* Card */
.card-title-style-folder-01 {
    --card-title-translate-x: 0;
    --card-title-translate-y: 0;
    --card-title-rotate: 0;
    --card-title-skew-x: -24deg;
    --card-title-skew-y: 0;
    --card-title-scale-x: 1;
    --card-title-scale-y: 1;
    position: absolute;
    top: 0;
    left: 0;
    padding-right: 1.5rem;
    background-color: #fff;
    border-bottom-right-radius: .5rem;
    transform: translate(var(--card-title-translate-x), var(--card-title-translate-y)) rotate(var(--card-title-rotate)) skewX(var(--card-title-skew-x)) skewY(var(--card-title-skew-y)) scaleX(var(--card-title-scale-x)) scaleY(var(--card-title-scale-y));
}
.card-title-style-folder-01 .title-text,
.card-title-style-folder-01 .text-title {
    --card-title-text-translate-x: 0;
    --card-title-text-translate-y: 0;
    --card-title-text-rotate: 0;
    --card-title-text-skew-x: 24deg;
    --card-title-text-skew-y: 0;
    --card-title-text-scale-x: 1;
    --card-title-text-scale-y: 1;
    position: relative;
    margin: 0;
    padding: 1rem 0 1rem 1.5rem;
    background-color: #fff;
    line-height: 32px;
    transform: translate(var(--card-title-text-translate-x), var(--card-title-text-translate-y)) rotate(var(--card-title-text-rotate)) skewX(var(--card-title-text-skew-x)) skewY(var(--card-title-text-skew-y)) scaleX(var(--card-title-text-scale-x)) scaleY(var(--card-title-text-scale-y));
}
.card-title-style-folder-01.fs-md .title-text,
.card-title-style-folder-01.fs-md .text-title {
    padding: 0.5rem 0 0.5rem 1.5rem;
}
.card-title-style-folder-01 .title-text::after,
.card-title-style-folder-01 .text-title::after {
    content: '';
    position: absolute;
    top: 0;
    right: -68px;
    width: 36px;
    height: 64px;
    background-color: transparent;
    border-top-left-radius: 1rem;
    box-shadow: 0 -24px 0 0 #fff;
}
.card-title-style-folder-01.fs-md .title-text::after,
.card-title-style-folder-01.fs-md .text-title::after {
    right: 0;
}
@media(min-width: 768px) {
    .card-title-style-folder-01 {
        --card-title-skew-x: -32deg;
        padding-right: 2rem;
        border-bottom-right-radius: .75rem;
    }
    .card-title-style-folder-01 .title-text,
    .card-title-style-folder-01.fs-md .title-text,
    .card-title-style-folder-01 .text-title,
    .card-title-style-folder-01.fs-md .text-title {
        --card-title-text-skew-x: 32deg;
        padding-left: 2rem;
    }
    .card-title-style-folder-01 .title-text::after,
    .card-title-style-folder-01 .text-title::after {
        right: -188px;
        width: 144px;
        border-top-left-radius: 24px;
        height: 24px;
        box-shadow: -4px -12px 0 0 #fff;
    }
    .card-title-style-folder-01.fs-md .title-text::after,
    .card-title-style-folder-01.fs-md .text-title::after {
        right: 0;
    }
}

/* Custom Hero Section */
@media(min-width:1025px) {
    .me-hero-theme-container,
    .me-hero-theme-wrapper {
        margin-right: calc(((100vw - 1025px ) / -2) - 32px) !important;
    }
    .me-hero-theme-container.gx-0,
    .me-hero-theme-wrapper.gx-0 {
        margin-right: calc(((100vw - 1025px ) / -2)) !important;
    }
}
@media(min-width:1264px) {
    .me-hero-theme-container,
    .me-hero-theme-wrapper {
        margin-right: calc(((100vw - 1200px ) / -2) + 32px) !important;
    }
    .me-hero-theme-container.gx-0,
    .me-hero-theme-wrapper.gx-0 {
        margin-right: calc(((100vw - 1200px ) / -2)) !important;
    }
}
@media(min-width:1440px) {
    .me-hero-theme-container,
    .me-hero-theme-wrapper {
        margin-right: calc(((100vw - 1200px ) / -2)) !important;
    }
    .me-hero-theme-container.gx-0,
    .me-hero-theme-wrapper.gx-0 {
        margin-right: calc(((100vw - 1200px ) / -2)) !important;
    }
}

.section-link-before-footer {
    position: relative;
    background-color: #006738;
}
.section-link-before-footer .link-title {
    display: inline-block;
    padding-bottom: 2px;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: left bottom;
    background-size: 0% 2px;
    background-repeat: no-repeat;
    transition: background-size 0.5s cubic-bezier(0.7, 0.3, 0, 1);
}

.section-link-before-footer:hover .link-title {
    background-size: 100% 2px;
}
.section-link-before-footer .link-icon svg {
    width: 2rem;
    height: 2rem;
}

.program-summary {

}
@media(min-width:576px) {
    
}
@media(min-width:1025px) {
    
}

/* Knowledge */
.img-hero-knowledge {
    border-radius: 0 12px 12px 0;
}
.single-knowledge.has-left-sidebar .content-container .primary-sidebar {
    padding-top: 0;
    padding-bottom: 0;
}
@media (max-width: 1024.98px) {
    .single-knowledge.has-left-sidebar .content-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .single-knowledge.has-left-sidebar .content-container .primary-sidebar {
		order: -1;
        width: 100%;
	}
}
.single-knowledge.has-left-sidebar .content-container .primary-sidebar .sidebar-knowledge {
    margin: -16px 80px 0 -24px;
    padding: 32px 24px;
    border-radius: 0 12px 12px 0;
    background-color: #fff;
    -webkit-box-shadow: 24px 24px 32px -24px rgba(0, 0, 0, .05) !important;
    -moz-box-shadow: 24px 24px 32px -24px rgba(0,0,0,.05) !important;
    box-shadow: 24px 24px 32px -24px rgba(0, 0, 0, .05) !important;
}
@media(min-width:768px) {
    .single-knowledge.has-left-sidebar .content-container .primary-sidebar .sidebar-knowledge {
        margin-left: -32px;
    }
    .single-knowledge.has-left-sidebar .content-container .entry-content {
        padding-left: 48px;
        padding-right: 48px;
    }
}
@media(min-width:1025px) {
    .img-hero-knowledge {
        border-radius: 12px;
    }
    .single-knowledge.has-left-sidebar .content-container {
        align-items: start;
        grid-gap: 80px;
    }
    .single-knowledge.has-left-sidebar .content-container .primary-sidebar {
        position: sticky;
        top: 16px;
    }
    .single-knowledge.has-left-sidebar .content-container .primary-sidebar .sidebar-knowledge {
        
        margin-left: 0;
        margin-right: 0;
        padding: 80px 32px 80px 0;
    }
    .single-knowledge.has-left-sidebar .content-container .entry-content {
        padding: 64px 80px 80px 0;
    }
}


.row-layout-img-people {

}
.row-layout-img-people .kt-row-column-wrap {
    position: relative;
    display: flex;
    flex-flow: row;
    flex: none;
    place-content: center;
    align-items: center;
    width: 100%;
    height: min-content;
    overflow: visible;
}
.row-layout-img-people-frame {
    position: relative;
    flex: none;
    aspect-ratio: 1;
    width: 66.66%;
    height: auto;
    border-radius: 50rem;
    will-change: none;
    overflow: hidden;
}
.row-layout-img-people-frame::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #f7d19a;
    box-sizing: border-box;
    border-radius: inherit;
    pointer-events: none;
}
.row-layout-img-people-frame img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50rem;
    object-position: center;
    object-fit: cover;
}
@media(min-width:576px) {
    .row-layout-img-people-frame {
        width: 50%;
    }
}
@media(min-width:768px) {
    .row-layout-img-people-frame {
        width: 41%;
    }
}
@media(min-width:1025px) {
    .row-layout-img-people-frame {
        width: 66%;
    }
}

.photo-frame-circle {
    flex-flow: row;
    flex: none;
    place-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: min-content;
    padding: 0;
    display: flex;
    position: relative;
    overflow: visible;
}
.photo-frame-circle .photo-frame-circle-side {
    --border-color: #f7d19a;
    --border-bottom-width: 1px;
    --border-left-width: 1px;
    --border-right-width: 1px;
    --border-style: solid;
    --border-top-width: 1px;
    aspect-ratio: 1 / 1;
    height: auto;                 /* FIX: ไม่พึ่ง framer var */
    min-height: 0;                /* FIX: กันเนื้อหาดันความสูง */
    border-radius: 50%;
    flex: none;
    width: 66.66%;
    position: relative;
    overflow: hidden;
}
.photo-frame-circle .photo-frame-circle-center {
    --border-bottom-width: 1px;
    --border-color: var(--token-de167d88-4d56-4548-a62e-2999d0bd774c, #f7d19a);
    --border-left-width: 1px;
    --border-right-width: 1px;
    --border-style: solid;
    --border-top-width: 1px;
    --frame-padding: 12px;        /* FIX: ใช้ร่วมกับตำแหน่งรูป */
    aspect-ratio: 1 / 1;
    height: auto;                 /* FIX */
    min-height: 0;                /* FIX: ตัวหลักที่ทำให้กล่องไม่ยืดตามรูป */
    border-radius: 50%;
    flex: none;
    width: 66.66%;
    padding: 0;                   /* FIX: ย้าย padding ไปเป็น inset ของรูป */
    background-color: #fff;
    display: block;               /* FIX: ไม่ต้องเป็น flex แล้ว */
    position: relative;
    overflow: hidden;
    isolation: isolate;           /* FIX: Safari overflow + radius */
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* FIX: Safari รุ่นเก่า */
}
/* FIX: fallback สำหรับ iOS < 15 ที่ไม่รองรับ aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
    .photo-frame-circle .photo-frame-circle-side::before,
    .photo-frame-circle .photo-frame-circle-center::before {
        content: "";
        display: block;
        padding-top: 100%;
    }
}
.photo-frame-circle .photo-frame-circle-side::after,
.photo-frame-circle .photo-frame-circle-center::after {
    content: "";
    border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0);
    border-color: var(--border-color, transparent);
    border-style: var(--border-style, none);
    box-sizing: border-box;
    border-radius: inherit;
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 2;                   /* FIX: ให้เส้นกรอบอยู่เหนือรูปเสมอ */
}
/* FIX: รูปที่เป็นลูกตรงของ center (ตรงกับ HTML ปัจจุบัน) */
.photo-frame-circle .photo-frame-circle-center > img {
    position: absolute;
    inset: var(--frame-padding);  /* = padding 12px เดิม */
    width: calc(100% - var(--frame-padding) * 2) !important;
    height: calc(100% - var(--frame-padding) * 2) !important;
    max-width: none;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}
/* เผื่อกรณีใช้โครงสร้างแบบมี wrapper (outer/inner) */
.photo-frame-circle .photo-frame-circle-center .photo-frame-img-outer {
    position: absolute;
    inset: var(--frame-padding);
    border-radius: 50%;
    overflow: hidden;
}
.photo-frame-circle .photo-frame-circle-center .photo-frame-img-inner {
    position: absolute;
    inset: 0;
    border-radius: inherit;
}
.photo-frame-circle .photo-frame-circle-center .photo-frame-img-inner img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    border-radius: inherit;
    object-fit: cover;
    object-position: center top;
}
@media (min-width: 576px) {
    .photo-frame-circle .photo-frame-circle-side,
    .photo-frame-circle .photo-frame-circle-center {
        width: 50%;
    }
}
@media (min-width: 768px) {
    .photo-frame-circle .photo-frame-circle-side,
    .photo-frame-circle .photo-frame-circle-center {
        width: 41%;
    }
}
@media (min-width: 1025px) {
    .photo-frame-circle .photo-frame-circle-side,
    .photo-frame-circle .photo-frame-circle-center {
        width: 66%;
    }
}


/*----------

	# Template & Design
		## Table: Custom

*************************************************************/
.table-responsive {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
}
.table thead th {
    color: #000;
    text-transform: none;
}
.table-sm > :not(caption) > * > * {
    padding: 0.25rem 0.5rem;
}
.table-custom-theme {
	margin: 0;
	padding: 0;
	background-color: #fff;
	border-collapse: separate;
	color: #000;
}
.table-custom-theme thead th,
.table-custom-theme tbody td {
	position: relative;
	padding: 0;
	border: none;
    vertical-align: top;
	white-space: normal;
	border-radius: 0.25rem;
	text-transform: inherit;
}
.table-custom-theme thead th {
	color: #000;
	line-height: 1.375;
	text-align: center;
}
.table-custom-theme tbody td {
    border-bottom: 1px solid #c8c9ca;
}
.table-custom-theme th::after,
.table-custom-theme td::after {
	content: "";
	position: absolute;
	top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 0;
	background-color: #fff;
    box-sizing: border-box;
    overflow: hidden;
}
.table-custom-theme th > div,
.table-custom-theme td > div {
	z-index: 100;
    position: relative;
	width: 100%;
	height: 100%;
	padding: 1.25rem 1rem;
    border-radius: 0.25rem;
    overflow: hidden;
    vertical-align: middle;
}
.table-custom-theme th > div {
	padding: 1.25rem 1rem;
}

.table-custom-theme.table-striped tbody tr:nth-child(even) td:after {
    background-color: #e8e9ea;
}
.table-custom-theme.table-hover tbody tr:hover td::after {
    background-color: #F9EDDC;
}


.table-custom-theme .bg-primary,
.table-custom-theme .bg-primary-dark,
.table-custom-theme .bg-secondary,
.table-custom-theme .bg-secondary-dark,
.table-custom-theme .bg-black,
.table-custom-theme .bg-dark { color: #fff; }
.table-custom-theme .bg-white,
.table-custom-theme .bg-light,
.table-custom-theme .bg-light-1,
.table-custom-theme .bg-light-2,
.table-custom-theme .bg-primary-light,
.table-custom-theme .bg-secondary-light { color: #000; }

.table-custom-theme .bg-primary::after { background-color: #8D43AD !important; }
.table-custom-theme .bg-primary-dark::after { background-color: #6F3588 !important; }
.table-custom-theme .bg-primary-light::after { background-color: #BA86D0 !important; }
.table-custom-theme .bg-secondary::after { background-color: #de5e8f !important; }
.table-custom-theme .bg-secondary-dark::after { background-color: #d53472 !important; }
.table-custom-theme .bg-secondary-light::after { background-color: #e788ad !important; }
.table-custom-theme .bg-black::after { background-color: #000 !important; }
.table-custom-theme .bg-dark::after { background-color: #a46900 !important; }
.table-custom-theme .bg-white::after { background-color: #fff !important; }
.table-custom-theme .bg-light::after { background-color: #f8f9fa !important; }
.table-custom-theme .bg-light-1::after,
.table-custom-theme .bg-light-dark::after { background-color: #e8e9ea  !important; }
.table-custom-theme .bg-light-2::after { background-color: #d8d9da !important; }

.table-custom-theme.rounded-0 th,
.table-custom-theme.rounded-0 td,
.table-custom-theme.rounded-0 th::after,
.table-custom-theme.rounded-0 td::after {
	border-radius: 0;
}













/* ---- form controls (Bootstrap-compatible reset, ใช้ร่วมกับ search input / checkbox filter) ---- */
.form-control,
input.form-control[type=text],
input.form-control[type=email],
input.form-control[type=search],
input.form-control[type=password] {
	display: block;
	width: 100%;
	padding: 0.75rem 20px;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #000;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: var(--bs-light);
	background-clip: padding-box;
	border: var(--bs-border-width) solid var(--bs-border-color);
	border-radius: var(--bs-border-radius);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
	.form-control {
		transition: none;
	}
}
.form-control[type=file] {
	overflow: hidden;
}
.form-control[type=file]:not(:disabled):not([readonly]) {
	cursor: pointer;
}
.form-control::placeholder,
input.form-control[type=text]::placeholder,
input.form-control[type=email]::placeholder,
input.form-control[type=search]::placeholder,
input.form-control[type=password]::placeholder {
    color: rgba(0, 0, 0, .25);
}
.form-control:focus,
input.form-control[type=text]:focus,
input.form-control[type=email]:focus,
input.form-control[type=search]:focus,
input.form-control[type=password]:focus {
	--bs-border-color: var(--bs-primary);
	border-color: var(--bs-border-color);
    background-color: #fff;
	outline: 0;
	box-shadow: 0 0 0 0.25rem rgba(222, 92, 142, 0.25);
}
.form-control::-webkit-date-and-time-value {
	min-width: 85px;
	height: 1.5em;
	margin: 0;
}
.form-control::-webkit-datetime-edit {
	display: block;
	padding: 0;
}
.form-control::placeholder {
	color: var(--bs-secondary-color);
	opacity: 1;
}
.form-control:disabled {
	background-color: var(--bs-secondary-bg);
	opacity: 1;
}
.form-control-sm {
	min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	border-radius: var(--bs-border-radius-sm);
}
.form-control-sm::-webkit-file-upload-button {
	padding: 0.25rem 0.5rem;
	margin: -0.25rem -0.5rem;
	-webkit-margin-end: 0.5rem;
	margin-inline-end: 0.5rem;
}
.form-control-sm::file-selector-button {
	padding: 0.25rem 0.5rem;
	margin: -0.25rem -0.5rem;
	-webkit-margin-end: 0.5rem;
	margin-inline-end: 0.5rem;
}
.form-control-lg {
	min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));
	padding: 0.5rem 1rem;
	font-size: 1.25rem;
	border-radius: var(--bs-border-radius-lg);
}
.form-check-input {
	--bs-form-check-bg: var(--bs-body-bg);
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	vertical-align: top;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: var(--bs-form-check-bg);
	background-image: var(--bs-form-check-bg-image);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	border: var(--bs-border-width) solid var(--bs-border-color);
	-webkit-print-color-adjust: exact;
	color-adjust: exact;
	print-color-adjust: exact;
}
.form-check-input[type=checkbox] {
	border-radius: 0.25em;
}
.form-check-input:active {
	filter: brightness(90%);
}
.form-check-input:focus {
	border-color: var(--saf-accent);
	outline: 0;
	box-shadow: 0 0 0 0.25rem rgba(222, 92, 142, 0.25);
}
.form-check-input:checked {
	background-color: var(--saf-accent);
	border-color: #000;
}
.form-check-input:checked[type=checkbox] {
	--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
.form-check-input[type=checkbox]:indeterminate {
	background-color: #0d6efd;
	border-color: #0d6efd;
	--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
}
.form-check-input:disabled {
	pointer-events: none;
	filter: none;
	opacity: 0.5;
}
.form-check-input[disabled] ~ .form-check-label,
.form-check-input:disabled ~ .form-check-label {
	cursor: default;
	opacity: 0.5;
}



/* =========================
   2) SCROLL WRAPPER (สำหรับ gradient)
========================= */
.section-toc .toc-scroll {
  position: relative;
  overflow: hidden;
}

/* =========================
   3) HORIZONTAL LIST
========================= */
.section-toc .kb-table-of-content-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-right: 24px;
  scroll-behavior: smooth;
  /* iOS smooth scroll */
  -webkit-overflow-scrolling: touch;
  /* SNAP (สำคัญมาก UX ดีขึ้นเยอะ) */
  scroll-snap-type: x mandatory;
}

/* ซ่อน scrollbar */
.section-toc .kb-table-of-content-list::-webkit-scrollbar {
  display: none;
}

/* =========================
   4) ITEM STYLE
========================= */
.section-toc .kb-table-of-contents__entry {
  flex: 0 0 auto;
  white-space: nowrap;
  transition: all 0.2s ease;
  padding: 8px 12px;
  /* SNAP */
  scroll-snap-align: center;
}

/* =========================
   5) GRADIENT FADE (modern UI)
========================= */
.section-toc .toc-scroll::before,
.section-toc .toc-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  width: 64px;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.3s ease;
}

/* ซ้าย */
.section-toc .toc-scroll::before {
  left: 0;
  width: 0;
  background: linear-gradient(to right, #fff, transparent);
}

/* ขวา */
.section-toc .toc-scroll::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

/* ซ่อนเมื่อ scroll สุด */
.toc-scroll.hide-left::before {
  opacity: 0;
}

.toc-scroll.hide-right::after {
  opacity: 0;
}

/* =========================
   6) SCROLL OFFSET (กันโดน sticky บัง)
========================= */
:root {
  --toc-offset: 120px; /* fallback */
}

h1, h2, h3, h4, h5, h6 {
  scroll-margin-top: var(--toc-offset);
}

.table-mw-640px table {
  min-width: 640px;
}



.hero-bg {
    z-index: 0;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 720px; /* ความสูงของส่วนที่มีสี ปรับได้ */
    overflow: hidden;
    pointer-events: none;
}
.gradient-canvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 1.5s ease;
    /* ไล่ fade ลงสู่สีขาว: ด้านบนทึบ 100% แล้วจางหายด้านล่าง */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
.gradient-canvas.isLoaded { 
    opacity: 1; 
}
.gradient-canvas.is-fallback {
  opacity: 1;
  background: linear-gradient(135deg, var(--gradient-color-2), var(--gradient-color-4));
}