/**
 * Frontend site stylesheet (public pages only)
 * ------------------------------------------------
 * Link this file ONLY from resources/views/frontend/** layouts.
 * Do NOT load it on admin / settings pages.
 *
 * Deployed copy: public_html/assets/css/frontend.css
 * Scope root:    body.fe-site
 */

/* -------------------------------------------------------------------------- */
/* Font — ไม่เกิน 22px Noto Sans Thai · 23–29px Noto Sans Thai Bold · 30px+ TH K2D July8 */
/* -------------------------------------------------------------------------- */
@font-face {
    font-family: "Noto Sans Thai";
    src: url("/assets/fonts/noto-sans-thai/NotoSansThai-thai.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-stretch: 100%;
    font-display: swap;
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: "Noto Sans Thai Bold";
    src: url("/assets/fonts/noto-sans-thai/NotoSansThai-thai.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-stretch: 100%;
    font-display: swap;
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: "Noto Sans Thai";
    src: url("/assets/fonts/noto-sans-thai/NotoSansThai-latin-ext.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-stretch: 100%;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Noto Sans Thai Bold";
    src: url("/assets/fonts/noto-sans-thai/NotoSansThai-latin-ext.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-stretch: 100%;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Noto Sans Thai";
    src: url("/assets/fonts/noto-sans-thai/NotoSansThai-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-stretch: 100%;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Noto Sans Thai Bold";
    src: url("/assets/fonts/noto-sans-thai/NotoSansThai-latin.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-stretch: 100%;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------------------- */
/* Scroll reveal — Fade Up · ใส่ data-fe-reveal ที่ element                    */
/* หน่วงทีละชิ้น: style="--fe-reveal-delay: 120ms" · JS อยู่ใน base-layout     */
/* ซ่อนเฉพาะเมื่อมี .fe-js (JS ทำงาน) — ไม่มี JS ก็ยังเห็นเนื้อหา              */
/* -------------------------------------------------------------------------- */
.fe-js [data-fe-reveal] {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--fe-reveal-delay, 0ms);
}

.fe-js [data-fe-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

/* Splide โคลนสไลด์หลัง IO ผูกแล้ว — อย่าให้ค้างโปร่งใส */
.fe-js .splide__slide--clone [data-fe-reveal],
.fe-js .splide__slide--clone[data-fe-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .fe-js [data-fe-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Design tokens                                                              */
/* -------------------------------------------------------------------------- */
:root {
    --fe-font: "Noto Sans Thai", sans-serif;
    --fe-max-width: 1920px;

    /* Breakpoints (match project responsive rules) */
    --fe-bp-sm: 640px;   /* phone landscape / large phone */
    --fe-bp-md: 768px;   /* tablet */
    --fe-bp-lg: 1024px;  /* laptop */
    --fe-bp-xl: 1280px;  /* desktop */
    --fe-bp-2xl: 1536px; /* large desktop */
    --fe-bp-max: 1920px; /* site ceiling */

    /* Horizontal padding by viewport */
    --fe-pad-x: 1rem;
    --fe-pad-x-md: 1.5rem;
    --fe-pad-x-lg: 2rem;
}

/* -------------------------------------------------------------------------- */
/* Site shell — width never exceeds 1920px                                    */
/* -------------------------------------------------------------------------- */
html:has(body.fe-site) {
    overflow-x: clip;
}

body.fe-site {
    width: 100%;
    max-width: var(--fe-max-width);
    margin-left: auto;
    margin-right: auto;
    overflow-x: clip;
    box-sizing: border-box;
    font-family: var(--fe-font);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.fe-site *,
body.fe-site *::before,
body.fe-site *::after {
    box-sizing: border-box;
}

/* Widget stack — บล็อกต่อกันชิด ไม่มีช่องว่างแนวตั้งระหว่างชุด */
body.fe-site main > * {
    margin-top: 0;
    margin-bottom: 0;
}

body.fe-site > .fe-quick-cards,
body.fe-site > .fe-exec-merge,
body.fe-site > .fe-exec-stack,
body.fe-site > .fe-area,
body.fe-site > .fe-map-banner,
body.fe-site main > .fe-section-title,
body.fe-site main > .fe-quick-cards,
body.fe-site main > .fe-slides,
body.fe-site main > .fe-exec-merge,
body.fe-site main > .fe-exec-stack,
body.fe-site main > .fe-area,
body.fe-site main > .fe-map-banner,
body.fe-site main > .fe-news,
body.fe-site main > .fe-events,
body.fe-site main > .fe-participate,
body.fe-site main > .fe-treasury,
body.fe-site main > .fe-eservice,
body.fe-site main > .fe-banner,
body.fe-site main > .fe-qa,
body.fe-site main > .fe-journal,
body.fe-site main > .fe-highlights,
body.fe-site main > .fe-infosys,
body.fe-site main > .fe-mobile-app,
body.fe-site main > .fe-lineapp,
body.fe-site main > .fe-egp,
body.fe-site main > .fe-news-alt,
body.fe-site main > .fe-map,
body.fe-site main > .fe-saraban,
body.fe-site main > .fe-strategy,
body.fe-site main > .fe-searchhero,
body.fe-site main > .fe-divider {
    margin-top: 0;
    margin-bottom: 0;
}

/* ขั้นระหว่างวิดเจ็ต — ไม่กินที่ในแถว รูปทับขอบวิดเจ็ตบนและล่างอย่างละ 40px */
.fe-divider {
    position: relative;
    z-index: 6;
    height: 0;
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    pointer-events: none;
}

body.fe-site .fe-divider__img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: none;
    height: 135px;
    transform: translateY(calc(-50% - 4.2px));
    object-fit: fill;
    pointer-events: none;
}

body.fe-site .fe-divider__img--custom {
    height: 80px;
    transform: translateY(-50%);
}

body.fe-site > .fe-footer {
    margin-top: 0;
    margin-bottom: 0;
}

/* Base 6 intro — ต้องมี margin-top ติดลบเพื่อทับ canvas (อย่า zero) */
body.fe-site > .fe-intro {
    margin-bottom: 0;
}

/* Optional inner wrappers for sections that should stay within the shell */
.fe-shell,
.fe-container {
    width: 100%;
    max-width: var(--fe-max-width);
    margin-left: auto;
    margin-right: auto;
}

.fe-container {
    padding-left: var(--fe-pad-x);
    padding-right: var(--fe-pad-x);
}

@media (min-width: 768px) {
    .fe-container {
        padding-left: var(--fe-pad-x-md);
        padding-right: var(--fe-pad-x-md);
    }
}

@media (min-width: 1024px) {
    .fe-container {
        padding-left: var(--fe-pad-x-lg);
        padding-right: var(--fe-pad-x-lg);
    }
}

/* Narrower reading/content width (cards, article body) — still ≤ 1920 */
.fe-container--narrow {
    max-width: 1200px;
}

.fe-container--wide {
    max-width: var(--fe-max-width);
}

/* -------------------------------------------------------------------------- */
/* Template shells — แบบที่ 2 (เมนูซ้าย float-wrap) / แบบที่ 3 (ซ้าย+ขวา)      */
/* -------------------------------------------------------------------------- */
body.fe-site {
    --fe-sidebar-w: clamp(220px, 22vw, 280px);
    --fe-sidebar-inset: 75px;
}

.fe-main {
    width: 100%;
    max-width: var(--fe-max-width);
    margin-left: auto;
    margin-right: auto;
}

/*
 * แบบที่ 2/3 — เมนู float ซ้าย/ขวา
 * widgets ใช้ margin เท่าความกว้างเมนู (ไม่แข่ง float) → เรียงต่อกันข้างเมนูได้จริง
 * พอเลยปลายเมนู → JS ใส่ .fe-widget--full = เต็มความกว้าง
 */
.fe-main--with-sidebar {
    display: block;
    position: relative;
    z-index: 0;
    isolation: isolate;
    /* ไม่ padding ด้านข้าง — โซน above ต้องเต็มกว้าง 1920 ได้ */
    padding: 0;
    box-sizing: border-box;
}

.fe-main--with-sidebar::after {
    content: "";
    display: table;
    clear: both;
}

/* 2 widgets แรก — เต็มความกว้าง 1920 เหนือเมนู */
.fe-main__above {
    display: block;
    width: 100%;
    max-width: var(--fe-max-width);
    margin-left: auto;
    margin-right: auto;
    clear: both;
    box-sizing: border-box;
}

.fe-main__above > * {
    width: 100% !important;
    max-width: var(--fe-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    clear: none;
    float: none;
    box-sizing: border-box;
}

/* กางเนื้อหาด้านในโซน above ให้ใกล้เพดาน 1920 (เลิกจำกัด 1100/1280) */
.fe-main__above .fe-exec-merge,
.fe-main__above .fe-exec-stack,
.fe-main__above .fe-exec-board,
.fe-main__above .fe-area,
.fe-main__above .fe-map-banner,
.fe-main__above .fe-news,
.fe-main__above .fe-quick-cards {
    width: 100% !important;
    max-width: var(--fe-max-width) !important;
}

.fe-main__above .fe-exec-board__inner,
.fe-main__above .fe-exec-board__inner--wide {
    width: min(100% - 2rem, 1860px) !important;
    max-width: none !important;
}

.fe-main__above .fe-area__inner {
    width: min(100% - 2rem, 1860px) !important;
    max-width: none !important;
}

.fe-main__above .fe-container,
.fe-main__above .fe-news__inner {
    width: 100% !important;
    max-width: var(--fe-max-width) !important;
    padding-left: clamp(1rem, 2.2vw, 2rem);
    padding-right: clamp(1rem, 2.2vw, 2rem);
    box-sizing: border-box;
}

.fe-sidebar {
    position: relative;
    width: var(--fe-sidebar-w);
    max-width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

.fe-sidebar--left {
    float: left;
    margin: 0.75rem 0 1.25rem var(--fe-sidebar-inset);
}

.fe-sidebar--right {
    float: right;
    margin: 0.75rem var(--fe-sidebar-inset) 1.25rem 0;
}

/* ข้างเมนู: เฉพาะเดสก์ท็อป ≥1024 — มือถือต้องเต็มกว้าง (อย่าใส่ margin ข้างนอก media) */
@media (min-width: 1024px) {
    body.fe-has-sidebar .fe-main--tpl2 > *:not(.fe-sidebar):not(.fe-widget--full):not(.fe-main__above) {
        float: none !important;
        clear: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin-left: calc(var(--fe-sidebar-w) + var(--fe-sidebar-inset) + 0.75rem) !important;
        margin-right: 0.75rem !important;
        box-sizing: border-box;
    }

    body.fe-has-sidebar .fe-main--tpl3 > *:not(.fe-sidebar):not(.fe-widget--full):not(.fe-main__above) {
        float: none !important;
        clear: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin-left: calc(var(--fe-sidebar-w) + var(--fe-sidebar-inset) + 0.75rem) !important;
        margin-right: calc(var(--fe-sidebar-w) + var(--fe-sidebar-inset) + 0.75rem) !important;
        box-sizing: border-box;
    }

    /* เลยปลายเมนู — เต็มแถว ไม่เว้นคอลัมน์เมนู */
    body.fe-has-sidebar .fe-main--with-sidebar > .fe-widget--full {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        clear: both;
    }
}

.fe-sidebar__block {
    margin-bottom: 0;
}

.fe-sidebar__cap {
    width: 100%;
    height: 52px;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

.fe-sidebar__cap--head {
    background-image: var(--fe-sidebar-head-bg, none);
}

.fe-sidebar__cap--foot {
    background-image: var(--fe-sidebar-foot-bg, none);
}

.fe-sidebar__body {
    background-image: var(--fe-sidebar-body-bg, none);
    background-repeat: repeat;
    background-color: var(--fe-sidebar-fallback, #5b2d8e);
    padding: 0.35rem 0.85rem 0.65rem;
    color: #fff;
}

.fe-sidebar__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    padding-bottom: 0.35rem;
}

.fe-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fe-sidebar__list li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.fe-sidebar__sub {
    list-style: none;
    margin: 0 0 0.2rem;
    padding: 0 0 0.15rem 1.85rem;
}

.fe-sidebar__sub > li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.fe-sidebar__sub a {
    padding: 0.38rem 0.15rem;
    font-size: 0.88rem;
}

.fe-sidebar__sub img {
    width: 16px;
    height: 16px;
}

.fe-sidebar__list a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.15rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.35;
    transition: opacity 0.15s ease;
}

.fe-sidebar__list a:hover,
.fe-sidebar__list a:focus-visible {
    opacity: 0.88;
    outline: none;
}

.fe-sidebar__list img {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
}

.fe-sidebar__banners {
    padding: 0.65rem 0.75rem 1rem;
}

.fe-sidebar__banner + .fe-sidebar__banner {
    margin-top: 0.65rem;
}

.fe-sidebar__banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.fe-sidebar__event {
    margin: 0 0 0.75rem;
    padding: 0.85rem 0.75rem 1rem;
    background: #fff;
    border-radius: 0.5rem;
}

.fe-sidebar__event-title {
    margin: 0 0 0.65rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a2b3c;
}

.fe-sidebar__event-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.fe-sidebar__event-card:hover {
    transform: translateY(-2px);
}

.fe-sidebar__event-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.fe-sidebar__event-name {
    display: block;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #1a2b3c;
    margin-bottom: 0.25rem;
}

.fe-sidebar__event-date {
    display: block;
    font-size: 0.8rem;
    color: #6b7c8f;
}

@media (max-width: 1023px) {
    .fe-main--with-sidebar {
        padding: 0;
        display: block;
    }

    /* แบบ 2/3: มือถือ/แท็บเล็ตไม่แสดงเมนูซ้าย (และขวา) */
    body.fe-has-sidebar .fe-sidebar,
    body.fe-has-sidebar .fe-sidebar--left,
    body.fe-has-sidebar .fe-sidebar--right {
        display: none !important;
        float: none !important;
        width: 0 !important;
        max-width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        pointer-events: none !important;
    }

    /* specificity เท่ากฎ desktop — widgets เต็มความกว้างทุกรายการ */
    body.fe-has-sidebar .fe-main--tpl2 > *:not(.fe-sidebar):not(.fe-widget--full):not(.fe-main__above),
    body.fe-has-sidebar .fe-main--tpl3 > *:not(.fe-sidebar):not(.fe-widget--full):not(.fe-main__above),
    body.fe-has-sidebar .fe-main--tpl2 > *:not(.fe-sidebar),
    body.fe-has-sidebar .fe-main--tpl3 > *:not(.fe-sidebar),
    body.fe-has-sidebar .fe-main--with-sidebar > .fe-widget--full,
    body.fe-has-sidebar .fe-main--with-sidebar > .fe-main__above,
    body.fe-has-sidebar .fe-main--with-sidebar > .fe-main__above > * {
        float: none !important;
        clear: both !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* -------------------------------------------------------------------------- */
/* แบบที่ 1 — เมนูลิ้นชักซ่อน/เปิด (เนื้อหาเดียวกับเมนูซ้ายแบบที่ 2)          */
/* -------------------------------------------------------------------------- */
.fe-menu-drawer {
    --fe-drawer-w: clamp(220px, 22vw, 280px);
    --fe-drawer-top: 5.4rem;
    --fe-drawer-tab: 2.55rem;
    position: fixed;
    z-index: 45;
    top: var(--fe-drawer-top);
    left: 0;
    display: flex;
    align-items: flex-start;
    max-height: none;
    overflow: visible;
    left: calc(-1 * var(--fe-drawer-w));
    transform: none;
    transition: left 0.28s ease;
}

.fe-menu-drawer.is-open {
    left: 0;
}

.fe-menu-drawer--right {
    left: auto;
    right: calc(-1 * var(--fe-drawer-w));
    flex-direction: row-reverse;
    transform: none;
    transition: right 0.28s ease;
}

.fe-menu-drawer--right.is-open {
    right: 0;
}

.fe-menu-drawer--right .fe-menu-drawer__panel {
    border-radius: 0 0 0 14px;
    box-shadow: -8px 10px 28px rgba(20, 10, 40, 0.22);
}

.fe-menu-drawer--right .fe-menu-drawer__tools {
    border-radius: 16px 0 0 16px;
    box-shadow: -6px 8px 18px rgba(8, 28, 58, 0.22);
}

.fe-menu-drawer__panel {
    width: var(--fe-drawer-w);
    max-height: none;
    overflow: visible;
    margin-top: calc(-1 * var(--fe-drawer-shift, 0px));
    transform: none;
    flex: 0 0 auto;
    border-radius: 0 0 14px 0;
    box-shadow: 8px 10px 28px rgba(20, 10, 40, 0.22);
    background-color: transparent;
    background-image: var(--fe-drawer-bg, linear-gradient(180deg, rgba(8, 96, 190, 0.56) 0%, rgba(8, 96, 190, 0.48) 48%, rgba(8, 96, 190, 0.36) 100%));
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center top;
    -webkit-backdrop-filter: blur(14px) saturate(1.35);
    backdrop-filter: blur(14px) saturate(1.35);
}

.fe-menu-drawer .fe-sidebar {
    float: none !important;
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    pointer-events: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0.35rem 0 0.5rem !important;
    overflow: visible !important;
    visibility: visible !important;
    left: auto !important;
    background: transparent;
}

.fe-menu-drawer .fe-sidebar__cap {
    display: none;
}

.fe-menu-drawer .fe-sidebar__block + .fe-sidebar__block {
    margin-top: 0.4rem;
}

.fe-menu-drawer .fe-sidebar__body {
    margin: 0 0.4rem;
    border-radius: 12px;
    background-image: none;
    background-color: transparent;
    color: #fff;
}

.fe-menu-drawer .fe-sidebar__title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.fe-menu-drawer .fe-sidebar__list li + li {
    border-top-color: rgba(255, 255, 255, 0.35);
}

.fe-menu-drawer:not(.fe-menu-drawer--graphic) .fe-sidebar,
.fe-menu-drawer:not(.fe-menu-drawer--graphic) .fe-menu-drawer__sheet-title {
    text-shadow: 0 1px 2px rgba(0, 15, 40, 0.55);
}

.fe-menu-drawer .fe-sidebar__list a {
    color: #fff;
}

.fe-menu-drawer__tools {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: var(--fe-drawer-tab);
    margin-top: 1.35rem;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 0 16px 16px 0;
    background: var(--fe-drawer-color, #0860be);
    box-shadow: 6px 8px 18px rgba(8, 28, 58, 0.22);
}

.fe-menu-drawer__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    width: 100%;
    margin-top: 0;
    padding: 0.72rem 0.12rem 0.62rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
    flex: 0 0 auto;
}

.fe-menu-drawer__tab svg {
    display: block;
    width: 18px;
    height: 18px;
}

.fe-menu-drawer__tab-text {
    display: block;
}

.fe-menu-drawer__tab-text[hidden] {
    display: none !important;
}

.fe-menu-drawer__tab:hover,
.fe-menu-drawer__pin:hover {
    background: rgba(255, 255, 255, 0.12);
}

.fe-menu-drawer__tab:focus-visible,
.fe-menu-drawer__pin:focus-visible {
    outline: 2px solid #ffe14a;
    outline-offset: -3px;
}

.fe-menu-drawer__pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.16rem;
    width: 100%;
    min-height: 3.15rem;
    padding: 0.48rem 0.1rem 0.55rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
}

.fe-menu-drawer__pin svg {
    display: block;
    width: 16px;
    height: 16px;
}

.fe-menu-drawer__pin.is-on,
.fe-menu-drawer__pin.is-on:hover {
    background: #f5c518;
    color: #1c2430;
    border-top-color: rgba(28, 36, 48, 0.16);
}

/* รูปแบบที่ 3 — แผงใหญ่เลื่อนขึ้นจากด้านล่าง */
.fe-menu-drawer--sheet {
    left: 0;
    right: auto;
    width: auto;
    transform: none;
    transition: none;
    pointer-events: none;
}

.fe-menu-drawer--sheet.is-open {
    transform: none;
}

.fe-menu-drawer--sheet .fe-menu-drawer__tools {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.fe-menu-drawer--sheet .fe-menu-drawer__panel {
    position: fixed;
    top: var(--fe-drawer-top);
    right: 0;
    bottom: 0;
    left: var(--fe-drawer-tab);
    z-index: 1;
    width: auto;
    height: auto;
    max-height: none;
    overflow: auto;
    pointer-events: none;
    border-radius: 22px 0 0 0;
    transform: translateY(110%);
    transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.2, 1);
    background-size: 100% 100%;
    background-position: center top;
}

.fe-menu-drawer--sheet.is-open .fe-menu-drawer__panel {
    pointer-events: auto;
    transform: translateY(0);
}

.fe-menu-drawer__sheet-title {
    margin: 0;
    padding: 1.15rem 1.25rem 0.2rem 1.1rem;
    color: #fff;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
}

.fe-menu-drawer--sheet .fe-sidebar {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem 1rem;
    padding: 0.85rem 1.15rem 1.6rem !important;
}

.fe-menu-drawer--sheet .fe-sidebar__title {
    font-size: 1.12rem;
    font-weight: 800;
}

/* รูปแบบที่ 4 — กราฟิก B1 หัว B2 ตัว B3 ท้าย ทำงานแบบเมนูซ้าย */
.fe-menu-drawer--graphic {
    --fe-drawer-w: 300px;
}

.fe-menu-drawer--graphic .fe-menu-drawer__panel {
    background: transparent;
    background-image: none;
    box-shadow: 8px 12px 24px rgba(20, 10, 40, 0.16);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.fe-menu-drawer--graphic .fe-sidebar {
    padding: 0 !important;
}

.fe-menu-drawer--graphic .fe-sidebar__cap {
    display: block;
    height: 52px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.fe-menu-drawer--graphic .fe-sidebar__body {
    margin: 0;
    border-radius: 0;
    background-image: var(--fe-sidebar-body-bg, none);
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-color: var(--fe-sidebar-fallback, #5b2d8e);
}

@media (max-width: 767px) {
    .fe-menu-drawer {
        --fe-drawer-w: min(78vw, 280px);
        --fe-drawer-top: 4.2rem;
        max-height: none;
    }

    .fe-menu-drawer__panel {
        max-height: none;
        overflow: visible;
    }

    body.fe-drawer-split .fe-menu-drawer {
        --fe-drawer-w: min(40vw, 220px);
    }

    .fe-menu-drawer--graphic {
        --fe-drawer-w: min(86vw, 300px);
    }

    .fe-menu-drawer--sheet .fe-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-menu-drawer,
    .fe-menu-drawer--sheet .fe-menu-drawer__panel {
        transition: none;
    }
}

/* Media should never blow past the shell */
body.fe-site img,
body.fe-site video,
body.fe-site iframe,
body.fe-site svg,
body.fe-site canvas {
    max-width: 100%;
    height: auto;
}

body.fe-site iframe {
    height: auto;
}

/* -------------------------------------------------------------------------- */
/* Responsive visibility helpers                                              */
/* -------------------------------------------------------------------------- */
.fe-hide {
    display: none !important;
}

/* Mobile only: < 768px */
.fe-mobile-only {
    display: block;
}

.fe-desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .fe-mobile-only {
        display: none !important;
    }

    .fe-desktop-only {
        display: block;
    }
}

/* -------------------------------------------------------------------------- */
/* Responsive typography / spacing baselines                                  */
/* -------------------------------------------------------------------------- */
body.fe-site {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (max-width: 639px) {
    body.fe-site {
        --fe-pad-x: 0.75rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Breakpoint reference (for @media in this file / future components)         */
/*                                                                            */
/*  max-width: 639px   → mobile                                               */
/*  min-width: 640px   → sm                                                   */
/*  min-width: 768px   → md (tablet)                                          */
/*  min-width: 1024px  → lg                                                   */
/*  min-width: 1280px  → xl                                                   */
/*  min-width: 1536px  → 2xl                                                  */
/*  max-width: 1920px  → site hard ceiling (body.fe-site / .fe-shell)         */
/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/* Navbar (template 1 — navbar1 widget)                                       */
/* -------------------------------------------------------------------------- */
.fe-navbar {
    --fe-brand-logo-width: 440px;
    --fe-brand-logo-height: 72px;
    --fe-navbar-bg-height: 102;
    --fe-navbar-utility-px: 0;
    --fe-navbar-utility-height: 0;
    --fe-navbar-top-ratio: 1; /* Base 1 nav_bg = 1920 × 102 (ไม่มีแถบ utility) */
    --fe-utility-lift: 0;
    --fe-utility-font: 12px;
    --fe-utility-text: #000000;
    --fe-utility-active-bg: #0993d7;
    --fe-utility-inactive-bg: #d1f4ff;
    --fe-utility-border: #a9ddf4;
    position: sticky;
    top: 0;
    width: 100%;
    max-width: var(--fe-max-width);
    margin-left: auto;
    margin-right: auto;
    z-index: 50;
    isolation: isolate;
}

body.fe-site .fe-mourning {
    position: absolute;
    top: calc(100% + 12px);
    right: 14px;
    z-index: 6;
    width: 68px;
    height: auto;
    max-width: 68px;
    pointer-events: none;
    user-select: none;
}

@media (min-width: 768px) {
    body.fe-site .fe-mourning {
        right: 22px;
        width: 96px;
        max-width: 96px;
    }
}

.fe-navbar__shell {
    position: relative;
    background-color: transparent;
    overflow: visible;
    min-height: 0;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.fe-navbar__shell:not(:has(.fe-navbar__shell-bg)) {
    min-height: 150px;
    background-color: var(--fe-nav-primary, #0470c3);
}

@media (min-width: 768px) {
    .fe-navbar__shell:has(.fe-navbar__shell-bg) {
        aspect-ratio: 1920 / 102;
    }
}

/* รูปพื้นหลังเติม shell ตาม aspect-ratio — จองความสูงก่อนโหลดรูป */
.fe-navbar__shell-bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 1920px;
    margin: 0 auto;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

.fe-navbar__shell-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

.fe-navbar__top {
    background: transparent;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
}

.fe-navbar__top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    height: 100%;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.fe-navbar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    height: 100%;
    min-width: 0;
    margin-left: 80px;
}

.fe-navbar__logo {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
    max-height: 100%;
    margin-bottom: 0;
    line-height: 0;
}

.fe-navbar__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: var(--fe-brand-logo-width);
    max-height: var(--fe-brand-logo-height);
    object-fit: contain;
    object-position: left center;
}

.fe-navbar__nav {
    display: none;
    flex: 1;
    justify-content: flex-end;
    padding-right: 0.5rem;
}

.fe-navbar__menu {
    display: flex;
    align-items: center;
    gap: clamp(0.35rem, 1.2vw, 1.5rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.fe-navbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.15rem;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: clamp(0.82rem, 1vw, 1rem);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.fe-navbar__link:hover,
.fe-navbar__link.is-active {
    opacity: 0.85;
}

.fe-navbar__item { position: relative; }

.fe-navbar__drop {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    z-index: 60;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.fe-navbar__drop[hidden] { display: none; }

.fe-navbar__drop a {
    display: block;
    padding: 8px 14px;
    color: #163e78;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}

.fe-navbar__drop a:hover { background: #f3f8ff; }

.fe-navbar__link--mega::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-top: 2px;
}

.fe-navbar__actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.fe-navbar__user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    text-decoration: none;
}

.fe-navbar__utility {
    display: none;
}

.fe-navbar__utility-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
    padding: 0;
    font-size: var(--fe-utility-font);
    line-height: 1;
    color: var(--fe-utility-text);
}

.fe-navbar__utility-part--1 {
    min-width: 0;
}

.fe-navbar__utility-part--2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.45rem, 1.1vw, 1rem);
    height: 100%;
    min-width: 0;
    transform: translateY(var(--fe-utility-lift));
}

.fe-navbar__utility-group {
    display: none;
    align-items: center;
    gap: 0.4rem;
    height: 100%;
}

.fe-navbar__utility-label {
    white-space: nowrap;
    color: var(--fe-utility-text);
    line-height: 1;
    font-size: var(--fe-utility-font);
    font-weight: 500;
}

.fe-navbar__size-btns,
.fe-navbar__lang-btns {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 100%;
}

.fe-navbar__size-btn,
.fe-navbar__lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid var(--fe-utility-border);
    border-radius: 6px;
    background: var(--fe-utility-inactive-bg);
    color: var(--fe-utility-text);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
}

.fe-navbar__size-btn[data-size='small'] { font-size: 8px; }
.fe-navbar__size-btn[data-size='medium'] { font-size: 10px; }
.fe-navbar__size-btn[data-size='large'] { font-size: 12px; }

.fe-navbar__size-btn.is-active,
.fe-navbar__lang-btn.is-active {
    background: var(--fe-utility-active-bg);
    border-color: var(--fe-utility-active-bg);
    color: #fff;
}

.fe-navbar__lang-btn img {
    display: block;
    width: 14px;
    height: 10px;
    object-fit: cover;
    border-radius: 1px;
}

.fe-navbar__search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 0;
    background: transparent;
    color: var(--fe-utility-text);
    font-size: var(--fe-utility-font);
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.fe-navbar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
}

.fe-navbar__mobile-panel {
    display: none;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.fe-navbar__mobile-panel.is-open {
    display: block;
}

.fe-navbar__mobile-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
}

.fe-navbar__mobile-list > li > a,
.fe-navbar__mobile-list > li > button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0;
    background: transparent;
    color: #111;
    text-align: left;
    text-decoration: none;
    font: inherit;
}

.fe-navbar__mobile-sub {
    list-style: none;
    margin: 0;
    padding: 0 0 0.5rem 1rem;
}

.fe-navbar__mobile-sub a {
    display: block;
    padding: 0.55rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.92rem;
}

.fe-mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.fe-mega-menu.is-open {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.fe-mega-menu__panel {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: auto;
    aspect-ratio: auto;
    container-type: inline-size;
    /* สูงตามเนื้อหา แต่ไม่เกินสัดส่วนรูปพื้น 1920 × 648 */
    max-height: calc(100cqw * 648 / 1920);
    margin: 0 auto;
    overflow: hidden;
    background-color: transparent;
}

.fe-mega-menu__panel:not(:has(.fe-mega-menu__bg)) {
    min-height: 280px;
    background-color: #0470c3;
}

.fe-mega-menu__bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
    user-select: none;
}

.fe-mega-menu__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    max-height: calc(100cqw * 648 / 1920);
    overflow-y: auto;
    padding: clamp(0.6rem, 2.2vw, 1.7rem) 4% 50px;
}

.fe-mega-menu__grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.fe-mega-menu__col {
    flex: 0 1 calc((100% - 20px - 45px) / 4);
    min-width: 0;
    max-width: calc((100% - 20px - 45px) / 4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.fe-mega-menu__col:first-child {
    margin-left: 20px;
}

.fe-mega-menu__col li + li {
    margin-top: 0.275rem;
}

.fe-mega-menu__col a {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    max-width: 100%;
    word-break: break-word;
    color: #111;
    font-size: clamp(0.88rem, 1vw, 1rem);
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.fe-mega-menu__col a::before {
    content: '';
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    margin-top: 0.45rem;
    background: #f5c518;
    transform: rotate(45deg);
}

.fe-mega-menu__col a:hover {
    opacity: 0.75;
}


@media (min-width: 768px) {
    .fe-navbar__nav,
    .fe-navbar__actions,
    .fe-navbar__utility-group {
        display: flex;
    }

    .fe-navbar__toggle {
        display: none;
    }
}

@media (min-width: 1024px) {
    .fe-navbar__top-inner {
        gap: 1.5rem;
    }
}

/* มือถือ: ซ่อนแบนเนอร์ nav_bg — ใช้แถบขาว (ปุ่มเมนูซ้าย · โลโก้+ชื่อกลาง · เส้นสีหลักล่าง) */
.fe-navbar__mbar {
    display: none;
}

@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait) {
    .fe-navbar__shell {
        display: none !important;
    }

    .fe-navbar__mbar {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 56px;
        padding: 0.4rem 3.75rem;
        background: #fff;
        border-bottom: 3px solid var(--fe-nav-primary, #0470c3);
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    }

    .fe-navbar__mbar-brand {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 0;
        color: #111827;
        text-decoration: none;
    }

    .fe-navbar__mbar-brand-img {
        display: block;
        width: auto;
        height: 44px;
        max-width: 100%;
        object-fit: contain;
    }

    .fe-navbar__mbar-logo {
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
        object-fit: contain;
    }

    .fe-navbar__mbar-name {
        overflow: hidden;
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .fe-navbar__mbar .fe-navbar__toggle {
        position: absolute;
        top: 50%;
        right: 0.75rem;
        margin: 0;
        width: 46px;
        height: 36px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        background: #fff;
        color: #6b7280;
        font-size: 1.15rem;
        transform: translateY(-50%);
    }

    .fe-navbar__mbar .fe-navbar__toggle[aria-expanded="true"] {
        border-color: var(--fe-nav-primary, #0470c3);
        color: var(--fe-nav-primary, #0470c3);
    }

    .fe-navbar__utility {
        display: none !important;
    }

    .fe-navbar__mobile-panel.fe-mobile-only {
        display: none !important;
    }

    .fe-navbar__mobile-panel.fe-mobile-only.is-open {
        display: block !important;
    }

    .fe-navbar__mobile-panel {
        border-bottom: 0;
        box-shadow: 0 8px 18px rgba(2, 8, 23, 0.12);
    }

    .fe-navbar__mobile-list {
        padding: 0.4rem 0 0.8rem;
    }

    .fe-navbar__mobile-list > li > a,
    .fe-navbar__mobile-list > li > button {
        font-size: 0.95rem;
        font-weight: 500;
        padding: 0.7rem 1rem;
    }

    .fe-navbar__mobile-list > li > button {
        position: relative;
        padding-right: 2.25rem;
    }

    .fe-navbar__mobile-list > li > button::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.95rem;
        color: #111827;
    }

    .fe-navbar__mobile-sub {
        padding: 0.15rem 0 0.45rem 1rem;
        max-height: 120px;
        overflow-y: auto;
    }

    .fe-navbar__mobile-sub a {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .fe-mega-menu {
        display: none !important;
    }
}


/* -------------------------------------------------------------------------- */
/* Intro (Base 6 — intro_bg under hero animation)                             */
/* -------------------------------------------------------------------------- */
.fe-intro {
    --fe-intro-w: 1920;
    --fe-intro-h: 155;
    /* ทับ canvas 70% ของความสูงรูป Base 6 */
    --fe-intro-overlap: calc(min(100vw, 1920px) * -0.7 * var(--fe-intro-h) / var(--fe-intro-w));
    position: relative;
    z-index: 3;
    isolation: isolate;
    width: 100%;
    max-width: var(--fe-max-width);
    margin-top: var(--fe-intro-overlap);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    overflow: visible;
    line-height: 0;
    background-color: transparent;
}

.fe-intro__bg {
    display: block;
    width: 100%;
    max-width: 1920px;
    height: auto;
    margin: 0 auto;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

/* Navbar แบบ 4–5 เป็นแถบสีตามที่ตั้งไว้ ไม่ใช้รูปพื้นหลัง และไม่ทับแอนิเมชัน */
body.fe-site:has(.fe-navbar--flow) .fe-hero-animate {
    margin-top: 0;
}

.fe-navbar--flow {
    background: #fff;
}

.fe-navflow {
    width: min(100% - 2rem, 1280px);
    margin: 0 auto;
    box-sizing: border-box;
}

.fe-navflow__menu {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fe-navflow__menu a,
.fe-navflow__menu button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.fe-navflow__drop {
    position: relative;
}

.fe-navflow__sub {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 5;
    display: none;
    min-width: 220px;
    margin: 0;
    padding: 0.45rem 0;
    list-style: none;
    background: #fff;
    border-radius: 0.7rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.fe-navflow__drop:hover .fe-navflow__sub,
.fe-navflow__drop:focus-within .fe-navflow__sub {
    display: block;
}

.fe-navflow__sub--menu,
.fe-navbar__drop--menu {
    top: 100%;
    left: 0;
    right: auto;
    z-index: 80;
    min-width: 280px;
    padding: 0.75rem 0.3rem 0.9rem;
    border-radius: 16px;
    background-color: #7a1fa2;
    background-image: var(--fe-nav-menu-bg);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    box-shadow: 0 14px 28px rgba(60, 0, 90, 0.28);
}

.fe-navflow__sub--menu a,
.fe-navbar__drop--menu a {
    color: #fff;
    font-weight: 600;
}

.fe-navflow__sub--menu a:hover,
.fe-navbar__drop--menu a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.fe-navflow__sub a {
    display: block;
    padding: 0.4rem 0.9rem;
    color: #16324a;
    white-space: normal;
}

.fe-navflow__panel {
    display: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.fe-navflow__panel.is-open {
    display: block;
}

.fe-navflow__panel a,
.fe-navflow__panel button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0;
    background: transparent;
    color: #16324a;
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}

.fe-navbar--4 {
    --fe-nav-h: 68px;
    background: linear-gradient(
        180deg,
        var(--fe-nav4-top, #ffffff) 0%,
        var(--fe-nav4-top, #ffffff) 62%,
        var(--fe-nav4-mid, #e5e5e5) 74%,
        var(--fe-nav4-mid, #e5e5e5) 88.9%,
        var(--fe-nav4-bot, #d1d1d1) 88.9%,
        var(--fe-nav4-bot, #d1d1d1) 100%
    );
    color: var(--fe-nav4-ink, #1d4ed8);
    box-shadow: none;
}
.fe-navbar--4::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
    background: linear-gradient(180deg, var(--fe-nav4-shadow, #7b7b7b), transparent);
    pointer-events: none;
}
.fe-navbar--4 .fe-nav4__name,
.fe-navbar--4 .fe-navflow__menu a,
.fe-navbar--4 .fe-navflow__menu button,
.fe-navbar--4 .fe-navflow__toggle { color: var(--fe-nav4-ink, #1d4ed8); }
.fe-navbar--5 {
    --fe-nav-h: auto;
    background: #fff;
    color: var(--fe-nav5-menu, #fff);
    box-shadow: none;
}
.fe-navbar--5 .fe-nav5 {
    display: block;
    min-height: 0;
}
.fe-nav5__top {
    height: 47px;
    background: #fff;
}
.fe-nav5__bar {
    height: 47px;
    background: linear-gradient(90deg, var(--fe-nav5-bg, #00c4fe) 0%, var(--fe-nav5-side, #00a1ff) 100%);
    border-top: 4px solid var(--fe-nav5-top, #1a99e4);
    box-shadow: inset 0 -4px 0 var(--fe-nav5-line, #1493d6);
    overflow: visible;
}
.fe-nav5__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    height: 100%;
    min-height: 0;
    padding-bottom: 0;
}
.fe-nav5__row > nav {
    align-self: stretch;
    flex: 0 1 auto;
    margin-left: auto;
    min-width: 0;
}
.fe-navbar--5 .fe-navflow__menu {
    align-items: stretch;
    height: 100%;
    justify-content: flex-end;
    width: auto;
    gap: 2.75rem;
}
.fe-navbar--5 .fe-navflow__menu > li {
    display: flex;
    align-items: center;
}
.fe-navbar--5 .fe-navflow__sub {
    top: 100%;
}
.fe-navbar--5 .fe-nav5__brand {
    min-height: 0;
}
.fe-navbar--5 .fe-nav5__name strong { color: var(--fe-nav5-name, #262575); }
.fe-navbar--5 .fe-nav5__name small { color: var(--fe-nav5-sub, #fff); opacity: 1; }
.fe-navbar--5 .fe-navflow__menu a,
.fe-navbar--5 .fe-navflow__menu button,
.fe-navbar--5 .fe-navflow__toggle { color: var(--fe-nav5-menu, #fff); }

.fe-navbar--4 .fe-navflow__sub a,
.fe-navbar--5 .fe-navflow__sub a {
    color: #16324a;
}

.fe-navbar--4 .fe-navflow__sub--menu a,
.fe-navbar--5 .fe-navflow__sub--menu a,
.fe-navbar--4 .fe-navflow__sub--menu a:hover,
.fe-navbar--5 .fe-navflow__sub--menu a:hover {
    color: #fff;
}

.fe-navbar--flow .fe-mega-menu {
    z-index: 60;
    top: calc(100% - 12px);
    padding-top: 12px;
}

body.fe-site .fe-mega-menu__bg {
    height: 100%;
}

.fe-nav4,
.fe-nav5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--fe-nav-h);
}

.fe-nav4__brand,
.fe-nav5__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.fe-nav4__brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex: 0 0 auto;
}

.fe-nav4__brand img { width: 46px; height: 46px; }
.fe-navbar--4 .fe-nav4__brandimg {
    display: block;
    width: auto;
    height: auto;
    max-height: 64px;
    max-width: min(320px, 46vw);
    object-fit: contain;
    object-position: left center;
}

.fe-nav4__name,
.fe-nav5__name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.fe-nav4__name strong { font-size: 1.02rem; }
.fe-nav4__name small { font-size: 0.78rem; opacity: 0.8; }

.fe-nav4__menu { font-size: 0.86rem; }

.fe-nav5__brandimg {
    display: block;
    height: 86px;
    width: auto;
    max-width: min(480px, 52vw);
    margin-top: 0;
    object-fit: contain;
    object-position: left bottom;
    position: relative;
    z-index: 2;
}
.fe-nav5__seal {
    width: 96px;
    height: 96px;
    margin-top: -52px;
    padding: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    object-fit: contain;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}
.fe-navbar--5 .fe-nav5__brand {
    align-items: flex-end;
    margin-bottom: 0;
}

.fe-nav5__name strong { font-size: 1.55rem; }
.fe-nav5__name small { font-size: 0.95rem; }

.fe-navflow__toggle { display: none; }

@media (max-width: 900px) {
    .fe-nav4__menu,
    .fe-nav5 .fe-navflow__menu { display: none; }
    .fe-navflow__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 36px;
        border: 1px solid currentColor;
        border-radius: 6px;
        background: transparent;
        color: inherit;
    }
    .fe-nav5__top { height: 28px; }
    .fe-nav5__brandimg { height: 58px; margin-top: 0; max-width: 70vw; }
    .fe-navbar--4 .fe-nav4__brandimg { max-height: 58px; max-width: 72vw; }
    .fe-nav5__seal { width: 72px; height: 72px; margin-top: -28px; }
    .fe-nav5__name strong { font-size: 1.05rem; }
    .fe-navbar--4,
    .fe-navbar--5 { --fe-nav-h: 72px; }
}

/* -------------------------------------------------------------------------- */
/* Section title (โครงหัวข้อ section — กึ่งกลาง)                               */
/* -------------------------------------------------------------------------- */
.fe-section-title {
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    padding: 0.75rem 1rem;
    text-align: center;
}

.fe-section-title__tag-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.fe-section-title__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    padding: 0.35rem 1.25rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.fe-section-title__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.fe-section-title__line {
    display: block;
    flex: 1 1 auto;
    max-width: 120px;
    height: 2px;
    opacity: 0.55;
    border-radius: 2px;
}

.fe-section-title__text {
    margin: 0;
    flex: 0 0 auto;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.fe-section-title__subtitle {
    margin: 0.45rem 0 0;
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    font-weight: 500;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .fe-section-title {
        margin: 0 auto;
        padding: 0.55rem 0.65rem;
        overflow-x: clip;
        box-sizing: border-box;
    }

    .fe-section-title__row {
        gap: 0.4rem;
        max-width: 100%;
    }

    .fe-section-title__line {
        max-width: 36px;
        flex: 1 1 24px;
    }

    .fe-section-title__text {
        white-space: normal;
        font-size: 1.2rem;
        line-height: 1.35;
        max-width: min(100%, 16rem);
    }

    .fe-section-title__subtitle {
        padding: 0 0.35rem;
        font-size: 0.9rem;
    }

    .fe-section-title__tag {
        min-width: 5.5rem;
        font-size: 0.85rem;
        padding: 0.3rem 1rem;
    }

    .fe-section-title__ornament {
        max-width: 52px;
        height: 8px;
    }

    .fe-section-title__row--graphic {
        min-height: 48px;
        padding: 0.4rem 0.5rem;
        background-size: contain;
    }
}

.fe-section-title__row--graphic {
    min-height: 72px;
    padding: 0.65rem 1rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.fe-section-title__ornament {
    display: block;
    width: auto;
    max-width: 120px;
    height: 12px;
    object-fit: contain;
    flex: 0 0 auto;
}

.fe-section-title__ornament--flip {
    transform: scaleX(-1);
}

/* -------------------------------------------------------------------------- */
/* Quick cards — ท่องเที่ยว / กิจกรรม / ร้องทุกข์ / E-Service (โครง U)          */
/* -------------------------------------------------------------------------- */
.fe-quick-cards {
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 3;
    isolation: isolate;
    overflow: visible;
    background-color: #fff;
}

.fe-quick-cards--has-bg {
    line-height: 0;
    --fe-w1-w: 1920;
    --fe-w1-h: 1160;
    --fe-cards-zone: 41%;
    --fe-w1-lift: min(100px, 8.621%);
}

.fe-quick-cards__stage {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.fe-quick-cards__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    line-height: normal;
    pointer-events: none;
}

.fe-quick-cards__overlay > * {
    pointer-events: auto;
}

/* W1 — สัดส่วนจริง 1920×1160 (ไม่ใช้ cover) */
.fe-quick-cards__bg {
    display: block;
    width: 100%;
    max-width: 1920px;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.fe-quick-cards--has-bg .fe-quick-cards__slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: normal;
}

.fe-quick-cards--has-bg .fe-quick-cards__lower {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--fe-cards-zone) - var(--fe-w1-lift));
    bottom: auto;
    height: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    line-height: normal;
    pointer-events: none;
}

.fe-quick-cards--has-bg .fe-quick-cards__lower > * {
    pointer-events: auto;
    flex: 0 0 auto;
}

.fe-quick-cards--has-bg .fe-quick-cards__lower .fe-textrun {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    line-height: 0;
}

.fe-quick-cards--has-bg .fe-quick-cards__lower .fe-textrun.fe-textrun--has-bg {
    min-height: 0;
    height: auto;
}

/* ผู้บริหาร+สไลด์ — ใต้ข้อความวิ่ง บน W1 */
.fe-quick-cards .fe-executives {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    line-height: normal;
    box-sizing: border-box;
}

.fe-quick-cards--has-bg .fe-quick-cards__lower .fe-executives {
    position: relative;
    top: auto;
    bottom: auto;
    max-width: none;
    margin: 0;
    padding: 0 clamp(6px, 0.8vw, 20px);
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: visible;
}

.fe-quick-cards--has-bg .fe-executives__inner {
    width: min(99%, 1720px);
    max-height: none;
    margin: 0 auto;
    align-items: start;
    gap: clamp(8px, 0.85vw, 16px);
}

.fe-quick-cards--has-bg .fe-executives__inner--both {
    grid-template-columns: minmax(0, auto) minmax(0, 2.5fr) minmax(0, auto);
}

.fe-quick-cards--has-bg .fe-executives__center {
    width: 100%;
    min-width: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.fe-quick-cards--has-bg .fe-executives__vision-head {
    padding: clamp(10px, 0.75vw, 14px) clamp(12px, 1vw, 16px);
}

.fe-quick-cards--has-bg .fe-executives__vision-title {
    font-size: clamp(0.88rem, 1vw, 1.05rem);
}

.fe-quick-cards--has-bg .fe-executives__vision-text {
    font-size: clamp(0.74rem, 0.82vw, 0.875rem);
    line-height: 1.5;
}

.fe-quick-cards--has-bg .fe-executives__slider {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    border-radius: 0;
}

.fe-quick-cards--has-bg .fe-executives__slide-link {
    aspect-ratio: 16 / 9;
    height: auto;
}

.fe-quick-cards--has-bg .fe-executives__slide-link img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    object-fit: cover;
}

.fe-quick-cards--has-bg .fe-executives__slide-placeholder {
    display: none;
}

/* การ์ด 4 ช่อง — สเกลตาม W1 (1920×1160) */
.fe-quick-cards--has-bg .fe-quick-cards__inner {
    max-width: min(1080px, 56.25vw);
    gap: clamp(12px, 1.15vw, 22px);
    padding: clamp(8px, 0.52vw, 10px) clamp(10px, 1.04vw, 20px) clamp(6px, 0.65vw, 8px);
}

.fe-quick-cards--has-bg .fe-quick-cards__item {
    border-radius: clamp(12px, 0.94vw, 18px);
}

.fe-quick-cards--has-bg .fe-quick-cards__item--down {
    transform: translateY(clamp(40px, 3.35vw, 62px));
}

.fe-quick-cards--has-bg .fe-quick-cards__item--up:hover {
    transform: translateY(-4px);
}

.fe-quick-cards--has-bg .fe-quick-cards__item--down:hover {
    transform: translateY(clamp(34px, 2.9vw, 56px));
}

.fe-quick-cards__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(calc(0.75rem + 10px), calc(2vw + 10px), calc(1.5rem + 10px));
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 1rem 0.75rem;
    align-items: start;
    box-sizing: border-box;
}

.fe-quick-cards__item {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 10px 24px rgba(2, 20, 40, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.fe-quick-cards__item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 300 / 360;
    object-fit: cover;
}

.fe-quick-cards__item--up {
    transform: translateY(0);
}

.fe-quick-cards__item--down {
    transform: translateY(62px);
}

.fe-quick-cards__item:hover {
    box-shadow: 0 14px 28px rgba(2, 20, 40, 0.2);
}

.fe-quick-cards__item--up:hover {
    transform: translateY(-6px);
}

.fe-quick-cards__item--down:hover {
    transform: translateY(56px);
}

/* Splide slider shell — desktop ใช้ grid กึ่งกลางเหมือนเดิม */
@media (min-width: 768px) {
    .fe-quick-cards__slider.splide {
        visibility: visible;
        width: 100%;
    }

    .fe-quick-cards__slider .splide__track {
        overflow: visible;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
    }

    .fe-quick-cards__slider .splide__list.fe-quick-cards__inner {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: clamp(calc(0.75rem + 10px), calc(2vw + 10px), calc(1.5rem + 10px)) !important;
        width: min(100%, 1080px) !important;
        max-width: 1080px !important;
        height: auto !important;
        transform: none !important;
        margin: 0 auto !important;
        padding: 10px 1rem 0.75rem !important;
        align-content: start;
        align-items: start;
        box-sizing: border-box;
    }

    .fe-quick-cards__slider .splide__slide {
        width: auto !important;
        margin: 0 !important;
        flex: initial !important;
    }

    .fe-quick-cards--has-bg .fe-quick-cards__slider .splide__list.fe-quick-cards__inner {
        gap: clamp(12px, 1.15vw, 22px) !important;
        width: min(100%, min(1080px, 56.25vw)) !important;
        max-width: min(1080px, 56.25vw) !important;
        padding: clamp(8px, 0.52vw, 10px) clamp(10px, 1.04vw, 20px) clamp(6px, 0.65vw, 8px) !important;
    }
}

@media (max-width: 1023px) {
    .fe-quick-cards__item--down {
        transform: translateY(40px);
    }

    .fe-quick-cards__item--down:hover {
        transform: translateY(34px);
    }
}

@media (max-width: 767px) {
    /* W1: เลิก absolute บนมือถือ — ไหลแนวตั้งตามความสูงเนื้อหา ไม่ทับชุดถัดไป */
    .fe-quick-cards {
        margin-top: 0.5rem;
        margin-bottom: 1.25rem;
        overflow: hidden;
        isolation: isolate;
    }

    .fe-quick-cards--has-bg {
        --fe-cards-zone: auto;
        --fe-w1-lift: 0;
        line-height: normal;
    }

    .fe-quick-cards--has-bg .fe-quick-cards__stage {
        position: relative;
        display: block;
        min-height: 0;
        overflow: hidden;
    }

    .fe-quick-cards--has-bg .fe-quick-cards__bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        object-fit: cover;
        object-position: top center;
        z-index: 0;
    }

    .fe-quick-cards--has-bg .fe-quick-cards__overlay {
        position: relative;
        inset: auto;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.65rem 0 1.1rem;
        box-sizing: border-box;
    }

    .fe-quick-cards--has-bg .fe-quick-cards__slider {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        z-index: 2;
    }

    .fe-quick-cards--has-bg .fe-quick-cards__lower {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        height: auto;
        gap: 0.75rem;
        padding: 0 0.5rem;
        box-sizing: border-box;
        pointer-events: auto;
    }

    .fe-quick-cards--has-bg .fe-quick-cards__lower .fe-executives {
        align-items: flex-start;
        overflow: visible;
        margin: 0;
        padding: 0 0.25rem 0.5rem;
        max-height: none;
    }

    .fe-quick-cards--has-bg .fe-executives__slider {
        overflow: visible;
    }

    .fe-quick-cards__slider .splide__track {
        overflow: hidden;
    }

    .fe-quick-cards__slider .splide__list {
        display: flex;
        align-items: stretch;
    }

    .fe-quick-cards__slider .splide__slide {
        width: min(260px, 72vw) !important;
        height: auto !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .fe-quick-cards__slider .splide__slide.is-active,
    .fe-quick-cards__slider .splide__slide.is-visible,
    .fe-quick-cards__slider .splide__slide.is-next,
    .fe-quick-cards__slider .splide__slide.is-prev {
        transform: none !important;
    }

    .fe-quick-cards__inner {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 10px 0 0.5rem;
        box-sizing: border-box;
        align-items: stretch;
    }

    .fe-quick-cards__item {
        display: block;
        width: 100%;
        height: auto;
        background: transparent;
        border-radius: 18px;
        overflow: hidden;
        line-height: 0;
        box-shadow: 0 10px 24px rgba(2, 20, 40, 0.14);
        box-sizing: border-box;
        transform: none !important;
    }

    .fe-quick-cards__item img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
        object-position: center top;
        border-radius: 0;
        box-shadow: none;
    }

    .fe-quick-cards__item--up,
    .fe-quick-cards__item--down,
    .fe-quick-cards__slider .splide__slide .fe-quick-cards__item--up,
    .fe-quick-cards__slider .splide__slide .fe-quick-cards__item--down,
    .fe-quick-cards__slider .splide__slide.is-active .fe-quick-cards__item {
        transform: none !important;
    }

    .fe-quick-cards__item:hover {
        transform: none !important;
        box-shadow: 0 14px 28px rgba(2, 20, 40, 0.2);
    }

    .fe-quick-cards__item:hover img {
        box-shadow: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Text run — Base 2 ข้อความวิ่ง (1920×100)                                   */
/* -------------------------------------------------------------------------- */
.fe-textrun {
    --fe-textrun-w: 1920;
    --fe-textrun-h: 100;
    --fe-textrun-zoom: 1;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    overflow: hidden;
    line-height: 0;
}

.fe-textrun--has-bg {
    min-height: calc(min(100vw, 1920px) * var(--fe-textrun-h) / var(--fe-textrun-w));
}

/* ต่อจากการ์ด — Base 2 (textrun_bg) อยู่ใต้การ์ดบน W1 */
.fe-quick-cards .fe-textrun {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    line-height: 0;
}

.fe-textrun__bg {
    display: block;
    width: 100%;
    max-width: 1920px;
    height: auto;
    margin: 0 auto;
    pointer-events: none;
    user-select: none;
}

.fe-textrun__content {
    position: absolute;
    top: 12%;
    right: 6.4%;
    bottom: 32%;
    left: 7.6%;
    z-index: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.fe-textrun__marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.fe-textrun__text {
    display: inline-block;
    font-family: inherit;
    font-size: clamp(0.75rem, 0.85vw, 0.92rem);
    font-weight: 500;
    line-height: 1.4;
    color: #000000;
    animation: fe-textrun-marquee 40s linear infinite;
    transform: translateX(100%);
}

.fe-textrun__marquee:hover .fe-textrun__text {
    animation-play-state: paused;
}

@keyframes fe-textrun-marquee {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-200%);
    }
}

@media (max-width: 767px) {
    .fe-textrun {
        --fe-textrun-zoom: 2.1;
    }

    .fe-textrun--has-bg,
    .fe-quick-cards--has-bg .fe-quick-cards__lower .fe-textrun.fe-textrun--has-bg {
        min-height: 48px;
        height: 48px;
    }

    .fe-textrun__bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        object-fit: cover;
        object-position: center 52%;
        transform: scale(var(--fe-textrun-zoom));
        transform-origin: center center;
    }

    .fe-textrun__content {
        top: 10%;
        right: 5%;
        bottom: 18%;
        left: 5%;
        padding: 0;
    }

    .fe-textrun__text {
        font-size: clamp(0.72rem, 3.1vw, 0.82rem);
        animation-duration: 32s;
    }
}

/* -------------------------------------------------------------------------- */
/* Executives — นายก / ปลัด + ภาพสไลด์ (อยู่ใน fe-quick-cards)                 */
/* -------------------------------------------------------------------------- */
.fe-executives {
    width: 100%;
    box-sizing: border-box;
}

.fe-executives__inner {
    display: grid;
    gap: clamp(8px, 0.85vw, 16px);
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    align-items: start;
}

.fe-executives__inner--both {
    grid-template-columns: minmax(0, auto) minmax(0, 2.2fr) minmax(0, auto);
}

.fe-executives__center {
    width: 100%;
    min-width: 0;
    align-self: start;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.fe-executives__inner--mayor-only,
.fe-executives__inner--palad-only {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.fe-executives__inner:not(.fe-executives__inner--both):not(.fe-executives__inner--mayor-only):not(.fe-executives__inner--palad-only) {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
}

.fe-executives__vision-head {
    padding: clamp(10px, 0.75vw, 14px) clamp(12px, 1vw, 16px);
    border-bottom: 1px solid rgba(4, 112, 195, 0.1);
    background: transparent;
    text-align: center;
    box-shadow: none;
    flex: 0 0 auto;
}

.fe-executives__vision-title {
    margin: 0;
    font-size: clamp(0.95rem, 1.05vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.fe-executives__vision-text {
    margin: 0.4rem 0 0;
    font-size: clamp(0.78rem, 0.85vw, 0.9rem);
    line-height: 1.55;
    color: #4b5563;
}

.fe-executives__slider {
    visibility: visible;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    border-radius: clamp(8px, 0.6vw, 12px);
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.fe-executives__slider .splide__track {
    overflow: hidden;
    border-radius: clamp(8px, 0.6vw, 12px);
}

.fe-executives__slider .splide__track,
.fe-executives__slider .splide__list {
    height: auto;
}

.fe-executives__slider .splide__slide {
    height: auto;
    position: relative;
    z-index: 1;
}

.fe-executives__slider .splide__arrow {
    display: none !important;
}

.fe-executives__slider .splide__pagination {
    position: relative !important;
    bottom: auto !important;
    left: 0;
    right: 0;
    top: auto !important;
    margin: 20px 0 0 !important;
    padding: 4px 0 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 4;
}

.fe-executives__slider .splide__pagination__page,
.fe-executives__pager {
    position: relative;
    width: 16px;
    height: 16px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.92);
    opacity: 1;
    transform: rotate(45deg);
    box-shadow:
        0 0 0 1px rgba(0, 40, 80, 0.2),
        0 2px 6px rgba(0, 20, 40, 0.35);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fe-executives__slider .splide__pagination__page.is-active,
.fe-executives__pager.is-active {
    background: #00d4ff;
    transform: rotate(45deg) scale(1.18);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.75),
        0 2px 10px rgba(0, 180, 220, 0.55);
}

.fe-executives__pager-preview {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 16px);
    width: clamp(140px, 22vw, 220px);
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: #0b1f33;
    box-shadow: 0 10px 28px rgba(0, 20, 40, 0.35);
    border: 2px solid #fff;
    transform: translateX(-50%) rotate(-45deg) translateY(6px) scale(0.92);
    transform-origin: center bottom;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 5;
}

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

.fe-executives__pager:hover .fe-executives__pager-preview,
.fe-executives__pager:focus-visible .fe-executives__pager-preview {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) rotate(-45deg) translateY(0) scale(1);
}

.fe-executives__slide-placeholder {
    flex: 1 1 auto;
    min-height: clamp(120px, 12vw, 180px);
    border-radius: 0;
    background: rgba(238, 246, 252, 0.6);
    border: none;
    border-top: 1px solid rgba(4, 112, 195, 0.08);
}

@media (max-width: 767px) {
    .fe-executives__slider .splide__pagination {
        gap: 10px;
        margin: 20px 0 0 !important;
        padding: 4px 0 8px;
    }

    .fe-executives__slider .splide__pagination__page,
    .fe-executives__pager {
        width: 12px;
        height: 12px;
    }

    .fe-executives__pager-preview {
        width: min(42vw, 160px);
        bottom: calc(100% + 12px);
    }
}

@media (hover: none) {
    .fe-executives__pager-preview {
        display: none;
    }
}

.fe-executives__slide-link {
    display: block;
    position: relative;
    line-height: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    border-radius: clamp(8px, 0.6vw, 12px);
    box-shadow: 0 4px 16px rgba(4, 56, 120, 0.12);
    z-index: 1;
}

.fe-executives__slide-link img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: clamp(8px, 0.6vw, 12px);
}

/* -------------------------------------------------------------------------- */
/* นายและปลัด — วิสัยทัศน์ + นายก / สไลด์ + ปลัด สูง 910                     */
/* -------------------------------------------------------------------------- */
.fe-leaders {
    --fe-leaders-blue: #0470c3;
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 910px;
    min-height: 910px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #e7f3fb;
    color: #12324d;
    box-sizing: border-box;
}

.fe-leaders--has-bg {
    background-color: transparent;
    background-image: var(--fe-leaders-bg);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
}

.fe-leaders__top,
.fe-leaders__bottom {
    flex: 1 1 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.7rem;
    background: transparent;
}

.fe-leaders__vision {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
    min-width: 0;
    padding: clamp(1.1rem, 2vw, 1.8rem);
    color: #fff;
}

.fe-leaders__kicker {
    margin: 0;
    font-size: clamp(1.7rem, 2.5vw, 2.7rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.fe-leaders__vision-text {
    margin: 0;
    max-width: 28em;
    font-size: clamp(0.88rem, 1.02vw, 1.08rem);
    font-weight: 600;
    line-height: 1.5;
}

.fe-leaders__mayor {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.fe-leaders__mayor-photo {
    position: relative;
    top: 90px;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 0;
    overflow: hidden;
}

body.fe-site .fe-leaders__mayor-photo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.fe-leaders__plate {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.55rem 0.7rem 0.55rem 1rem;
}

.fe-leaders__plate-name,
.fe-leaders__plate-role {
    margin: 0;
    color: #fff;
}

.fe-leaders__plate-name {
    font-size: calc(clamp(0.95rem, 1.15vw, 1.2rem) + 6px);
    font-weight: 800;
    line-height: 1.25;
}

.fe-leaders__plate-role {
    font-size: calc(clamp(0.75rem, 0.85vw, 0.92rem) + 4px);
    line-height: 1.3;
}

.fe-leaders__plate-hotline,
.fe-leaders__palad-hotline {
    margin: 0.2rem 0 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.fe-leaders__know {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
    min-height: 40px;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    background: #f3e7b8;
    color: #1d4e89;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.fe-leaders__know svg {
    width: 18px;
    height: 18px;
    display: block;
}

.fe-leaders__know--light {
    background: rgba(255, 255, 255, 0.92);
    color: var(--fe-leaders-blue);
}

.fe-leaders__bottom {
    padding-top: 0;
}

.fe-leaders__slides {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 2.2vw, 2.25rem) 1rem clamp(2.5rem, 5vw, 5.5rem);
    box-sizing: border-box;
}

.fe-leaders .fe-executives__slider {
    flex: 0 0 auto;
    width: 720px;
    max-width: 100%;
    height: 350px;
    max-height: 100%;
}

.fe-leaders .fe-executives__slider .splide__track,
.fe-leaders .fe-executives__slider .splide__list,
.fe-leaders .fe-executives__slider .splide__slide,
.fe-leaders .fe-executives__slide-link,
.fe-leaders .fe-executives__slide-link img {
    height: 100%;
    min-height: 0;
}

.fe-leaders .fe-executives__slider {
    border-radius: 0;
}

.fe-leaders .fe-executives__slider .splide__track,
.fe-leaders .fe-executives__slide-link,
.fe-leaders .fe-executives__slide-link img {
    border-radius: 0;
    aspect-ratio: auto;
    box-shadow: none;
}

.fe-leaders .fe-executives__slide-link {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.fe-leaders .fe-executives__slide-link img {
    position: relative;
    z-index: 1;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

.fe-leaders .fe-executives__slider .splide__pagination {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 100% !important;
    bottom: auto !important;
    margin: 12px 0 0 !important;
    padding: 0;
    z-index: 4;
}

.fe-leaders .fe-executives__slider .splide__pagination__page {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    transform: none;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 4px rgba(0, 30, 60, 0.35);
}

.fe-leaders .fe-executives__slider .splide__pagination__page.is-active {
    background: #f08a12;
    transform: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.fe-leaders__palad {
    position: absolute;
    left: 0;
    bottom: 8%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: clamp(0.55rem, 1.1vw, 1rem);
    width: 48%;
    max-height: 42%;
    min-width: 0;
    padding: 0 1.5% 0 3.5%;
    box-sizing: border-box;
    color: #fff;
}

.fe-leaders__palad-photo {
    flex: 0 0 auto;
    width: min(34%, 200px);
    height: auto;
    max-height: 78%;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 0;
}

.fe-leaders__palad-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    max-width: none;
    margin-bottom: 0.65rem;
}

.fe-leaders__palad-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.fe-leaders__palad-name,
.fe-leaders__palad-role {
    margin: 0;
}

.fe-leaders__palad-name {
    font-size: calc(clamp(0.95rem, 1.1vw, 1.15rem) + 6px);
    font-weight: 800;
    line-height: 1.25;
}

.fe-leaders__palad-role {
    font-size: calc(0.82rem + 4px);
    line-height: 1.35;
    opacity: 0.95;
}

.fe-leaders__palad .fe-leaders__know {
    flex: 0 0 auto;
    margin-left: auto;
    min-height: 34px;
}

.fe-leaders__top:not(:has(.fe-leaders__vision)),
.fe-leaders__bottom:not(:has(.fe-leaders__slides)),
.fe-leaders__bottom:not(:has(.fe-leaders__palad)) {
    grid-template-columns: minmax(0, 1fr);
}

.fe-leaders__top:not(:has(.fe-leaders__mayor)) .fe-leaders__vision {
    padding-right: clamp(1.2rem, 3vw, 2.8rem);
}

@media (max-width: 1023px) {
    .fe-leaders {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .fe-leaders--has-bg {
        background-size: cover;
        background-position: center top;
    }

    .fe-leaders__top,
    .fe-leaders__bottom {
        display: flex;
        flex-direction: column;
        flex: none;
        gap: 0;
        padding: 0;
    }

    .fe-leaders__vision {
        min-height: 0;
        justify-content: flex-start;
        gap: 0.45rem;
        padding: 1.35rem 1.15rem 0.85rem;
        background: linear-gradient(180deg, rgba(8, 36, 72, 0.42), rgba(8, 36, 72, 0.08));
    }

    .fe-leaders__kicker {
        font-size: clamp(1.35rem, 5vw, 1.7rem);
        text-shadow: 0 1px 8px rgba(0, 20, 40, 0.35);
    }

    .fe-leaders__vision-text {
        max-width: 24em;
        font-size: clamp(0.88rem, 3.4vw, 1.02rem);
        line-height: 1.5;
        text-shadow: 0 1px 10px rgba(0, 20, 40, 0.4);
    }

    .fe-leaders__mayor {
        align-items: center;
        padding: 0 0.85rem 1rem;
        gap: 0;
    }

    .fe-leaders__mayor-photo {
        top: 0;
        height: auto;
        flex: none;
        overflow: visible;
    }

    body.fe-site .fe-leaders__mayor-photo img {
        width: min(100%, 380px);
        height: auto;
        max-height: 380px;
        margin: 0 auto;
        object-fit: contain;
        object-position: center bottom;
    }

    .fe-leaders__plate {
        width: min(100%, 420px);
        margin: -1.75rem auto 0;
        padding: 0.7rem 0.8rem 0.7rem 0.95rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 8px 22px rgba(15, 40, 70, 0.16);
        flex-wrap: wrap;
    }

    .fe-leaders__plate-text {
        flex: 1 1 9rem;
        min-width: 0;
    }

    .fe-leaders__slides {
        grid-column: auto;
        min-height: 0;
        padding: 0.35rem 0.85rem 1.5rem;
    }

    .fe-leaders .fe-executives__slider {
        height: auto;
        aspect-ratio: 720 / 350;
    }

    .fe-leaders__palad {
        position: static;
        display: flex;
        align-items: center;
        width: auto;
        max-height: none;
        height: auto;
        min-height: 0;
        gap: 0.85rem;
        margin: 0.15rem 0.85rem 0.85rem;
        padding: 0.8rem;
        border-radius: 16px;
        background: rgba(8, 40, 78, 0.28);
    }

    .fe-leaders__palad-photo {
        width: 104px;
        height: 128px;
        border-radius: 12px;
        object-fit: cover;
        object-position: center top;
    }

    .fe-leaders__palad-org {
        font-size: 1.05rem;
    }

    .fe-leaders__palad-name {
        margin-top: 0.25rem;
        font-size: calc(0.98rem + 6px);
    }

    .fe-leaders__palad-role {
        margin-top: 0.15rem;
        margin-bottom: 0.55rem;
        font-size: calc(0.84rem + 4px);
    }
}

/* พรีวิวลอย — แค่รูปที่ชี้ (portal นอกสไลด์) */
.fe-executives__pop-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(8, 20, 36, 0);
    pointer-events: none;
    transition: background 0.25s ease;
}

.fe-executives__pop-backdrop.is-open {
    background: transparent; /* ไม่ทำให้พื้นหลังมืดตอนชี้รูปสไลด์ */
}

.fe-executives__pop-layer {
    position: fixed;
    z-index: 9001;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: clamp(8px, 0.6vw, 12px);
    overflow: hidden;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(4, 56, 120, 0.12);
    transform: scale(1);
    transform-origin: center center;
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.32s ease;
    will-change: transform;
}

.fe-executives__pop-layer.is-open {
    transform: scale(1.16) translateY(-8px);
    box-shadow:
        0 12px 28px rgba(4, 56, 120, 0.16),
        0 32px 64px rgba(0, 16, 32, 0.45);
}

.fe-executives__pop-layer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.fe-executives__slider.fe-is-popping .fe-executives__slide-link img {
    opacity: 0;
}

.fe-executives__slider.fe-is-popping .splide__pagination {
    opacity: 0;
    pointer-events: none;
}

.fe-executives__card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: clamp(12px, 0.85vw, 16px);
    padding: clamp(10px, 0.85vw, 14px);
    box-shadow:
        0 2px 4px rgba(4, 56, 120, 0.04),
        0 12px 28px rgba(4, 56, 120, 0.1);
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.fe-quick-cards--has-bg .fe-executives__card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 100%);
}

.fe-executives__card--profile {
    width: fit-content;
    max-width: 100%;
    height: auto;
    align-self: start;
    justify-self: center;
    padding: clamp(6px, 0.5vw, 10px);
    box-shadow:
        0 2px 4px rgba(4, 56, 120, 0.05),
        0 8px 18px rgba(4, 56, 120, 0.08);
}

.fe-executives__card--profile .fe-executives__photo-wrap {
    line-height: 0;
    margin: 0 auto;
    width: 300px;
    max-width: 100%;
}

.fe-executives__card--profile .fe-executives__photo {
    display: block;
    width: 300px;
    height: 300px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    border: 2px solid rgba(4, 112, 195, 0.35);
    border-radius: clamp(8px, 0.6vw, 12px);
    background: #eef6fc;
    object-fit: contain;
    object-position: center top;
    box-sizing: border-box;
}

.fe-executives__card--profile .fe-executives__meta {
    margin-top: clamp(6px, 0.55vw, 10px);
    padding-top: clamp(6px, 0.55vw, 10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.fe-executives__card--profile .fe-executives__name {
    font-size: clamp(1.05rem, 1.35vw, 1.4rem);
    font-weight: 700;
    line-height: 1.3;
}

.fe-executives__card--profile .fe-executives__position {
    margin-top: 0.3rem;
    font-size: clamp(0.82rem, 0.92vw, 0.95rem);
    color: #555555;
    line-height: 1.45;
}

.fe-executives__card--profile .fe-executives__phone {
    margin-top: 0.4rem;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #555555;
    font-size: clamp(0.82rem, 0.92vw, 0.95rem);
    font-weight: 400;
}

.fe-executives__card--profile .fe-executives__phone:hover {
    color: #333333;
    background: none;
}

.fe-executives__card--profile .fe-executives__phone i {
    color: #333333;
    font-size: 0.85em;
}

.fe-quick-cards--has-bg .fe-executives__card--profile {
    width: fit-content;
    max-width: 100%;
    height: auto;
    align-self: start;
    justify-self: center;
    padding: clamp(4px, 0.4vw, 8px);
}

.fe-quick-cards--has-bg .fe-executives__card--profile .fe-executives__photo-wrap {
    width: 300px;
    max-width: 100%;
}

.fe-quick-cards--has-bg .fe-executives__card--profile .fe-executives__photo {
    width: 300px;
    height: 300px;
    max-width: 100%;
    object-fit: contain;
    object-position: center top;
}

.fe-quick-cards--has-bg .fe-executives__card--profile .fe-executives__name {
    font-size: clamp(0.82rem, 0.95vw, 1rem);
}

.fe-quick-cards--has-bg .fe-executives__card--profile .fe-executives__position,
.fe-quick-cards--has-bg .fe-executives__card--profile .fe-executives__phone {
    font-size: clamp(0.7rem, 0.75vw, 0.82rem);
}

.fe-quick-cards--has-bg .fe-executives__card--profile .fe-executives__meta {
    margin-top: clamp(4px, 0.4vw, 8px);
    padding-top: clamp(4px, 0.4vw, 8px);
}

.fe-executives__photo {
    display: block;
    width: auto;
    max-width: 100%;
    height: clamp(140px, 14vw, 200px);
    margin: 0 auto;
    padding: clamp(6px, 0.5vw, 10px);
    border-radius: clamp(10px, 0.7vw, 12px);
    background: linear-gradient(165deg, #eef6fc 0%, #f9fcff 55%, #e3f0fa 100%);
    object-fit: contain;
    box-sizing: border-box;
}

.fe-executives__meta {
    margin-top: clamp(8px, 0.65vw, 12px);
    padding-top: clamp(8px, 0.65vw, 12px);
    border-top: 1px solid rgba(4, 112, 195, 0.08);
}

.fe-executives__name {
    margin: 0;
    font-size: clamp(0.95rem, 1.05vw, 1.15rem);
    font-weight: 700;
    line-height: 1.35;
}

.fe-executives__position {
    margin: 0.35rem 0 0;
    font-size: clamp(0.78rem, 0.85vw, 0.9rem);
    color: #4b5563;
    line-height: 1.45;
}

.fe-executives__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.55rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: clamp(0.78rem, 0.85vw, 0.9rem);
    color: #374151;
    background: rgba(4, 112, 195, 0.08);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.fe-executives__phone:hover {
    color: #0470c3;
    background: rgba(4, 112, 195, 0.14);
}

@media (max-width: 1023px) {
    .fe-quick-cards--has-bg {
        --fe-cards-zone: auto;
        --fe-w1-lift: 0;
        line-height: normal;
    }

    .fe-quick-cards--has-bg .fe-quick-cards__lower .fe-executives {
        padding: 0 0.75rem;
    }

    /* แท็บเล็ต: เลิก absolute เหมือนมือถือ กันเนื้อหาล้นทับ Executives */
    .fe-quick-cards--has-bg .fe-quick-cards__stage {
        position: relative;
        display: block;
        min-height: 0;
        overflow: hidden;
    }

    .fe-quick-cards--has-bg .fe-quick-cards__bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        object-fit: cover;
        object-position: top center;
        z-index: 0;
    }

    .fe-quick-cards--has-bg .fe-quick-cards__overlay {
        position: relative;
        inset: auto;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        padding: 0.75rem 0 1.15rem;
        box-sizing: border-box;
    }

    .fe-quick-cards--has-bg .fe-quick-cards__slider {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        z-index: 2;
    }

    .fe-quick-cards--has-bg .fe-quick-cards__lower {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        height: auto;
        gap: 0.85rem;
        pointer-events: auto;
    }

    .fe-executives__inner--both,
    .fe-executives__inner--mayor-only,
    .fe-executives__inner--palad-only {
        grid-template-columns: 1fr;
    }

    .fe-executives__center {
        order: -1;
    }

    .fe-executives__inner--both {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "center center"
            "mayor palad";
    }

    .fe-executives__inner--both .fe-executives__center {
        grid-area: center;
    }

    .fe-executives__inner--both .fe-executives__card--mayor {
        grid-area: mayor;
    }

    .fe-executives__inner--both .fe-executives__card--palad {
        grid-area: palad;
    }
}

@media (max-width: 767px) {
    .fe-executives__inner--both {
        grid-template-columns: 1fr;
        grid-template-areas:
            "center"
            "mayor"
            "palad";
    }

    .fe-executives__card--profile .fe-executives__photo-wrap {
        width: min(300px, 78vw);
    }

    .fe-executives__card--profile .fe-executives__photo {
        width: min(300px, 78vw);
        height: min(300px, 78vw);
    }
}

/* -------------------------------------------------------------------------- */
/* Executives stack — W7 bg เฉพาะคณะผู้บริหาร (window reveal)                   */
/* fixed ถูก clip ด้วย .fe-exec-stack__clip — ห้ามทะลุชุดอื่น                     */
/* -------------------------------------------------------------------------- */
.fe-exec-stack {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 910px;
    min-height: 910px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 0;
    isolation: isolate;
    background-color: #000;
}

/* Executive + พี่น้องเราดูแล ใช้พื้น W7 ร่วมกัน สูง 910px */
.fe-exec-merge {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1920px;
    height: 910px;
    min-height: 910px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #000;
    isolation: isolate;
}

.fe-exec-merge > .fe-exec-stack {
    position: static;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    background-color: transparent;
    isolation: auto;
}

.fe-exec-merge .fe-exec-stack__clip {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fe-exec-merge > .fe-area,
.fe-exec-merge .fe-exec-board {
    position: relative;
    z-index: 1;
}

.fe-exec-merge > .fe-area {
    flex: 0 0 auto;
}

.fe-exec-merge .fe-exec-board {
    flex: 1 1 auto;
    min-height: 0;
}

.fe-exec-merge .fe-exec-board__veil {
    min-height: 0;
    height: auto;
}

/* หัวข้อคณะผู้บริหาร อยู่บนสุดของชุด แทนพี่น้องชาว…เราดูแล */
.fe-exec-stack__head {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    padding: clamp(1.15rem, 2.4vw, 1.85rem) 1rem 0;
    text-align: center;
}

.fe-exec-stack .fe-area__inner {
    padding-top: clamp(0.85rem, 2vw, 1.35rem);
    padding-bottom: clamp(0.5rem, 1.5vw, 1rem);
}

.fe-exec-stack--has-bg {
    background-color: #000;
}

/*
  Clip container (Keith Clark pattern):
  absolute + clip ทำให้ position:fixed ของลูกถูกตัดตามกรอบนี้เท่านั้น
  ไม่ทะลุ navbar / W1 / พี่น้องเราดูแล
*/
.fe-exec-stack__clip {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    clip: rect(0, auto, auto, 0);
    clip-path: inset(0);
    -webkit-clip-path: inset(0);
}

/* โทนดำทับรูปทั้งชุด Executive (หัวข้อ + การ์ด + ผู้บริหาร) */
.fe-exec-stack__clip::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(6, 18, 32, 0.28) 0%,
        rgba(6, 18, 32, 0.18) 40%,
        rgba(6, 18, 32, 0.4) 100%
    );
}

/* พื้นหลัง — absolute ใน section; desktop + inview ค่อยเป็น fixed (clipped) */
.fe-exec-stack__fixed-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-color: transparent;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .fe-exec-stack--inview > .fe-exec-stack__clip > .fe-exec-stack__fixed-bg {
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 1920px;
        height: 100%;
        /* ไม่ใส่ z-index สูง — ให้อยู่ใต้เลเยอร์เนื้อหาชุดอื่น */
        z-index: auto;
    }
}

@media (max-width: 767px) {
    .fe-exec-stack__fixed-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-exec-stack--inview > .fe-exec-stack__clip > .fe-exec-stack__fixed-bg {
        position: absolute;
        inset: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }
}

/* Executives board — เนื้อหาบน W7 */
.fe-exec-board {
    --fe-exec-cyan: #00c2e0;
    --fe-exec-gold: #f5c542;
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    background-color: transparent;
    min-height: clamp(480px, 56vw, 720px);
    z-index: 1;
}

.fe-exec-board--has-bg {
    background-color: transparent;
}

.fe-exec-board__clip,
.fe-exec-board__fixed-bg {
    display: none;
}

/* เลเยอร์ content ที่เลื่อน — โทนดำโปร่งบาง ๆ ทับวิว */
.fe-exec-board__veil {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: inherit;
    box-sizing: border-box;
    padding: clamp(1.5rem, 3vw, 2.75rem) 0 clamp(1.25rem, 2.5vw, 2rem);
    background: none;
}

.fe-exec-board__inner {
    width: min(100% - 1.5rem, 1280px);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.fe-exec-board__inner--wide {
    width: min(100% - 0.75rem, 1680px);
}

.fe-exec-board__head {
    text-align: center;
    margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

.fe-exec-board__title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.55rem, 1.2vw, 1rem);
}

.fe-exec-board__ornament {
    width: 0.85rem;
    height: 0.85rem;
    background: #1ab8a8;
    transform: rotate(45deg);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
    flex: 0 0 auto;
}

.fe-exec-board__title {
    margin: 0;
    color: var(--fe-wfont-exec-title, #fff);
    font-size: clamp(1.55rem, 2.6vw, 2.35rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.fe-exec-board__subtitle {
    margin: 0.35rem 0 0;
    color: var(--fe-wfont-exec-sub, #ffe14a);
    font-size: clamp(0.95rem, 1.4vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.fe-exec-board__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(0.85rem, 2.2vw, 2rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* การ์ดฐาน — ปรับตามจำนวนที่เปิดจากหลังบ้าน */
.fe-exec-board__card {
    position: relative;
    flex: 0 1 360px;
    width: min(32%, 380px);
    max-width: 380px;
    aspect-ratio: 3 / 4;
}

.fe-exec-board__card--center {
    flex-basis: 400px;
    width: min(36%, 420px);
    max-width: 420px;
    z-index: 2;
    transform: translateY(calc(clamp(-18px, -2vw, -8px) - 5px));
}

/* 1 คน — การ์ดเด่นกลาง */
.fe-exec-board__row--count-1 {
    gap: 0;
}

.fe-exec-board__row--count-1 .fe-exec-board__card,
.fe-exec-board__row--count-1 .fe-exec-board__card--center {
    flex: 0 1 400px;
    width: min(46%, 420px);
    max-width: 420px;
    transform: none;
}

/* 2 คน — คู่เท่ากัน */
.fe-exec-board__row--count-2 {
    gap: clamp(1.25rem, 3vw, 2.75rem);
}

.fe-exec-board__row--count-2 .fe-exec-board__card,
.fe-exec-board__row--count-2 .fe-exec-board__card--center {
    flex: 0 1 380px;
    width: min(40%, 400px);
    max-width: 400px;
    transform: none;
}

.fe-exec-board__row--count-2 .fe-exec-board__card--center {
    transform: translateY(calc(clamp(-12px, -1.5vw, -6px) - 5px));
}

/* 3 คน — แบบอ้างอิง (กลางใหญ่กว่า + สูงขึ้น) */
.fe-exec-board__row--count-3 .fe-exec-board__card {
    flex: 0 1 360px;
    width: min(32%, 380px);
    max-width: 380px;
}

.fe-exec-board__row--count-3 .fe-exec-board__card--center {
    flex-basis: 400px;
    width: min(36%, 420px);
    max-width: 420px;
    transform: translateY(calc(clamp(-18px, -2vw, -8px) - 5px));
}

/* 4 คน — แถวเดียว ใหญ่ขึ้น; นายกยังเด่นเล็กน้อย */
.fe-exec-board__row--count-4 {
    gap: clamp(0.55rem, 1.6vw, 1.5rem);
}

.fe-exec-board__row--count-4 .fe-exec-board__card {
    flex: 0 1 300px;
    width: min(24%, 320px);
    max-width: 320px;
}

.fe-exec-board__row--count-4 .fe-exec-board__card--center {
    flex-basis: 340px;
    width: min(27%, 350px);
    max-width: 350px;
    transform: translateY(calc(clamp(-14px, -1.6vw, -6px) - 5px));
}

/* 5 คน — แถวเดียว; นายกกลางเด่น */
.fe-exec-board__row--count-5 {
    gap: clamp(0.35rem, 1.1vw, 1rem);
}

.fe-exec-board__row--count-5 .fe-exec-board__card {
    flex: 0 1 240px;
    width: min(19%, 260px);
    max-width: 260px;
}

.fe-exec-board__row--count-5 .fe-exec-board__card--center {
    flex-basis: 275px;
    width: min(21.5%, 290px);
    max-width: 290px;
    transform: translateY(calc(clamp(-14px, -1.6vw, -6px) - 5px));
}

.fe-exec-board__row--count-4 .fe-exec-board__name,
.fe-exec-board__row--count-5 .fe-exec-board__name {
    font-size: clamp(0.85rem, 1.05vw, 1.15rem);
}

.fe-exec-board__row--count-4 .fe-exec-board__position,
.fe-exec-board__row--count-5 .fe-exec-board__position {
    font-size: clamp(0.7rem, 0.85vw, 0.88rem);
}

.fe-exec-board__row--count-5 .fe-exec-board__meta {
    left: 10%;
    right: 6%;
    padding-left: 0.45rem;
}

/* แถวปกติ — ไม่ใช้ display:contents เพราะตอนซูมจะทำให้สไลด์ซ้อน/ถูกตัด */
.fe-exec-board__slider:not(.fe-exec-board__slider--solo).splide {
    visibility: visible !important;
}

.fe-exec-board__slider:not(.fe-exec-board__slider--solo) .splide__track {
    display: block;
    overflow: visible;
    width: 100%;
}

.fe-exec-board__slider:not(.fe-exec-board__slider--solo) .splide__list,
.fe-exec-board__slider:not(.fe-exec-board__slider--solo) .fe-exec-board__row {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: center;
    width: 100% !important;
    transform: none !important;
}

.fe-exec-board__slider:not(.fe-exec-board__slider--solo) .splide__slide {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    justify-content: center;
    align-items: flex-end;
}

.fe-exec-board__slider:not(.fe-exec-board__slider--solo) .splide__slide:has(.fe-exec-board__card--center) {
    flex: 1.1 1 0;
}

.fe-exec-board__slider:not(.fe-exec-board__slider--solo) .fe-exec-board__card,
.fe-exec-board__slider:not(.fe-exec-board__slider--solo) .fe-exec-board__card--center {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
}

.fe-exec-board__slider:not(.fe-exec-board__slider--solo) .splide__slide--clone {
    display: none !important;
}

.fe-exec-board__slider:not(.fe-exec-board__slider--solo) .splide__pagination,
.fe-exec-board__slider:not(.fe-exec-board__slider--solo) .splide__arrows,
.fe-exec-board__slider:not(.fe-exec-board__slider--solo) .splide__arrow {
    display: none !important;
}

/* โหมดทีละคน — มือถือ หรือพื้นที่แถวไม่พอ */
.fe-exec-board__slider--solo {
    visibility: visible;
    width: 100%;
    overflow: hidden;
}

.fe-exec-board__slider--solo .splide__track {
    display: block;
    overflow: hidden !important;
    width: 100%;
}

.fe-exec-board__slider--solo .splide__list,
.fe-exec-board__slider--solo .fe-exec-board__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0 !important;
    margin: 0;
}

.fe-exec-board__slider--solo .splide__slide {
    display: flex;
    height: auto;
    width: 100% !important;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
    box-sizing: border-box;
}

.fe-exec-board__slider--solo .splide__arrow {
    display: none !important;
}

.fe-exec-board__slider--solo .splide__pagination {
    display: flex;
    position: relative !important;
    bottom: auto !important;
    left: 0;
    right: 0;
    margin: 0.85rem 0 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
}

.fe-exec-board__slider--solo .splide__pagination__page {
    width: 9px;
    height: 9px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fe-exec-board__slider--solo .splide__pagination__page.is-active {
    background: var(--fe-exec-cyan, #00c2e0);
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.fe-exec-board__slider--solo .fe-exec-board__card,
.fe-exec-board__slider--solo .fe-exec-board__card--center {
    width: min(86vw, 300px);
    max-width: 300px;
    flex: none;
    transform: none;
    margin: 0 auto;
}

.fe-exec-board__slider--solo .fe-exec-board__card--center.fe-fade-up.is-in {
    transform: translateY(0);
}

.fe-exec-board__panel {
    position: absolute;
    inset: 18% 6% 0;
    z-index: 0;
    background: linear-gradient(
        165deg,
        rgba(0, 210, 235, 0.42) 0%,
        rgba(40, 180, 210, 0.32) 45%,
        rgba(90, 200, 220, 0.28) 100%
    );
    clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 8px 24px rgba(0, 30, 50, 0.18);
}

.fe-exec-board__panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 9px;
    background: #fff;
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
    transform: translateY(-1px);
    opacity: 0.95;
}

/* พื้นหลังหลังรูปจากหลังบ้าน (person_card_bg) — แทนแผ่นสีฟ้า เต็มการ์ด */
.fe-exec-board--card-bg .fe-exec-board__panel {
    inset: 0;
    background: var(--fe-exec-card-bg) center bottom / 100% 100% no-repeat;
    clip-path: none;
    border-radius: 0;
    box-shadow: none;
}

.fe-exec-board--card-bg .fe-exec-board__panel::before {
    content: none;
}

/* แบบ 2 — เรียงฟันปลา และไม่ใช้พื้นหลังหลังรูป (W7.1)
   สัดส่วนกรอบล็อกกับจอ ~1536 (ความสูง 910) ซูมออกแล้วทั้งชุดขยายเท่ากัน
   พื้นหลังอยู่ในกรอบวิดเจ็ต ไม่ล็อกกับจอ */
.fe-exec-stack:has(.fe-exec2) {
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    height: auto;
    min-height: 910px;
    aspect-ratio: 1536 / 910;
}

.fe-exec-stack:has(.fe-exec2) > .fe-exec-stack__clip > .fe-exec-stack__fixed-bg,
.fe-exec-stack:has(.fe-exec2).fe-exec-stack--inview > .fe-exec-stack__clip > .fe-exec-stack__fixed-bg {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: none;
    background-size: cover;
    background-position: center center;
}

/* W7.2 พื้นท้าย 1920×320 ชิดขอบล่าง อยู่เหนือพื้น W7 แต่ใต้คน ไม่เพิ่มความสูง */
.fe-exec-stack > .fe-exec2-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 100%;
    height: calc(100cqw * 320 / 1920);
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
}

.fe-exec-stack:has(.fe-exec2) > .fe-area {
    position: relative;
    z-index: 2;
}

.fe-exec2 .fe-exec-board__panel {
    display: none;
}

.fe-exec2.fe-exec-board {
    overflow: visible;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.fe-exec2 .fe-exec-board__veil {
    position: relative;
    min-height: 0;
    height: auto;
    margin-top: auto;
    padding-top: 0;
    padding-bottom: calc(100cqw * 28 / 1920);
}

/* ซ้ายของนายก — โลโก้อยู่บน ชื่อบรรทัดเดียวอยู่ใต้ เว้นจากขอบจอ */
.fe-exec2-brand {
    position: absolute;
    z-index: 3;
    left: calc(100cqw * 72 / 1920);
    right: auto;
    bottom: calc(100cqw * 400 / 1920);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(100cqw * 12 / 1920);
    width: max-content;
    max-width: calc(100cqw * 380 / 1920);
    pointer-events: none;
}

.fe-exec-stack .fe-exec2-brand__logo {
    display: block;
    width: calc(100cqw * 158 / 1920);
    height: calc(100cqw * 158 / 1920);
    max-width: none;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 20, 40, 0.35));
}

.fe-exec2-brand__name {
    margin: 0;
    color: var(--fe-wfont-exec-title, #fff);
    font-size: calc(100cqw * 44 / 1920);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 16, 36, 0.45);
}

.fe-exec2 .fe-exec-board__inner,
.fe-exec2 .fe-exec-board__inner--wide {
    width: min(100% - 0.5rem, 1920px);
}

.fe-exec2 .fe-exec-board__slider:not(.fe-exec-board__slider--solo) .splide__track {
    box-sizing: border-box;
    padding-top: calc(100cqw * 52 / 1920);
    padding-right: calc(100cqw * 44 / 1920);
}

.fe-exec2 .fe-exec-board__slider:not(.fe-exec-board__slider--solo) .splide__list,
.fe-exec2 .fe-exec-board__slider:not(.fe-exec-board__slider--solo) .fe-exec-board__row {
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0;
}

.fe-exec2 .fe-exec-board__slider:not(.fe-exec-board__slider--solo) .splide__slide {
    flex: 0 0 auto !important;
    width: calc(100cqw * 460 / 1920) !important;
}

.fe-exec2 .fe-exec-board__slider:not(.fe-exec-board__slider--solo) .splide__slide:not(:has([data-fe-exec-slot="mayor"])) {
    width: calc(100cqw * 400 / 1920) !important;
}

.fe-exec2 .fe-exec-board__slider:not(.fe-exec-board__slider--solo) .splide__slide + .splide__slide {
    margin-left: calc(100cqw * -142 / 1920);
}

.fe-exec2 .fe-exec-board__card {
    width: 100% !important;
    max-width: none !important;
}

.fe-exec2 .fe-exec-board__slider:not(.fe-exec-board__slider--solo) .fe-exec2__card,
.fe-exec2 .fe-exec-board__slider:not(.fe-exec-board__slider--solo) .fe-exec2__card.fe-exec-board__card--center,
.fe-exec2 .fe-exec-board__row--count-1 .fe-exec2__card,
.fe-exec2 .fe-exec-board__row--count-2 .fe-exec2__card,
.fe-exec2 .fe-exec-board__row--count-3 .fe-exec2__card,
.fe-exec2 .fe-exec-board__row--count-4 .fe-exec2__card,
.fe-exec2 .fe-exec-board__row--count-5 .fe-exec2__card {
    transform: none;
}

.fe-exec2 .fe-exec-board__slider:not(.fe-exec-board__slider--solo) .fe-exec2__card--up {
    transform: translateY(calc(100cqw * -49.6 / 1920));
}

.fe-exec2 .fe-exec-board__slider:not(.fe-exec-board__slider--solo) .fe-exec2__card--down {
    transform: translateY(calc(100cqw * 5.6 / 1920));
}

.fe-exec2 .fe-exec2__card {
    aspect-ratio: 3 / 4;
}

.fe-exec2 .fe-exec-board__photo {
    bottom: 0;
    width: 100%;
    max-height: 100%;
}

.fe-exec2 .fe-exec-board__meta,
.fe-exec2 .fe-exec-board__row--count-4 .fe-exec-board__meta,
.fe-exec2 .fe-exec-board__row--count-5 .fe-exec-board__meta {
    left: 50%;
    right: auto;
    bottom: 25%;
    width: max-content;
    max-width: 92%;
    height: auto;
    min-height: 0;
    padding: 0.45rem 0.7rem 0.5rem;
    border-left: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(8, 28, 58, 0.22);
    transform: translateX(-50%);
    text-align: center;
    align-items: center;
}

.fe-exec2 .fe-exec-board__name,
.fe-exec2 .fe-exec-board__position {
    text-align: center;
    text-shadow: none;
}

.fe-exec2 .fe-exec-board__name {
    color: #16324a;
    font-size: calc(100cqw * 20 / 1920);
}

.fe-exec2 .fe-exec-board__position {
    color: #3d5670;
    font-size: calc(100cqw * 14.4 / 1920);
}

.fe-exec-board__photo {
    position: absolute;
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
    z-index: 1;
    width: 92%;
    height: auto;
    max-height: 88%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 8px 16px rgba(0, 20, 40, 0.35));
    pointer-events: none;
}

.fe-exec-board__meta {
    position: absolute;
    left: 12%;
    right: 8%;
    bottom: calc(5% - 18px);
    z-index: 2;
    padding-left: 0.65rem;
    border-left: 3px solid rgba(255, 255, 255, 0.9);
}

.fe-exec-board__name {
    margin: 0;
    color: var(--fe-wfont-exec-name, #fff);
    font-size: clamp(0.95rem, 1.15vw, 1.25rem);
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.fe-exec-board__position {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.72rem, 0.9vw, 0.9rem);
    line-height: 1.35;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.fe-exec-board__card--center .fe-exec-board__position {
    color: #fff0bd;
}

@media (max-width: 1023px) {
    .fe-exec-board__row {
        gap: 0.55rem;
    }

    .fe-exec-board__row--count-3 .fe-exec-board__card,
    .fe-exec-board__row--count-3 .fe-exec-board__card--center {
        width: 31%;
        max-width: none;
        flex-basis: auto;
    }

    .fe-exec-board__row--count-3 .fe-exec-board__card--center {
        transform: translateY(-15px);
    }

    .fe-exec-board__row--count-4 {
        gap: 0.45rem;
    }

    .fe-exec-board__row--count-4 .fe-exec-board__card,
    .fe-exec-board__row--count-4 .fe-exec-board__card--center {
        width: 24%;
        max-width: none;
        flex-basis: auto;
    }

    .fe-exec-board__row--count-4 .fe-exec-board__card--center {
        width: 27%;
        transform: translateY(-13px);
    }

    .fe-exec-board__row--count-5 {
        gap: 0.3rem;
    }

    .fe-exec-board__row--count-5 .fe-exec-board__card,
    .fe-exec-board__row--count-5 .fe-exec-board__card--center {
        width: 19%;
        max-width: none;
        flex-basis: auto;
    }

    .fe-exec-board__row--count-5 .fe-exec-board__card--center {
        width: 21.5%;
        transform: translateY(-13px);
    }

    .fe-exec-board__row--count-1 .fe-exec-board__card,
    .fe-exec-board__row--count-1 .fe-exec-board__card--center {
        width: min(58%, 360px);
        max-width: 360px;
    }

    .fe-exec-board__row--count-2 .fe-exec-board__card,
    .fe-exec-board__row--count-2 .fe-exec-board__card--center {
        width: 42%;
        max-width: none;
        flex-basis: auto;
    }
}

@media (max-width: 767px) {
    .fe-exec-merge,
    .fe-exec-stack {
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
    }

    .fe-exec-stack:has(.fe-exec2) {
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
    }

    .fe-exec-stack,
    .fe-exec-board {
        overflow-x: clip;
    }

    .fe-exec-merge > .fe-exec-stack {
        overflow: visible;
    }

    .fe-exec-board {
        min-height: 0;
    }

    .fe-exec-board__veil {
        padding: 1.1rem 0 1.35rem;
    }

    .fe-exec-board__inner {
        width: min(100% - 1rem, 1280px);
    }

    .fe-exec-board__head {
        margin-bottom: 1rem;
    }

    .fe-exec-board__title-row {
        gap: 0.45rem;
    }

    .fe-exec-board__ornament {
        width: 0.65rem;
        height: 0.65rem;
    }

    .fe-exec-board__title {
        font-size: 1.35rem;
    }

    .fe-exec-board__subtitle {
        letter-spacing: 0.06em;
    }

    .fe-exec2-brand {
        display: none;
    }

    .fe-exec-board__slider--solo .fe-exec-board__card,
    .fe-exec-board__slider--solo .fe-exec-board__card--center {
        width: min(86vw, 280px);
        max-width: 280px;
    }

    .fe-exec-board__name {
        font-size: 0.95rem;
    }

    .fe-exec-board__position {
        font-size: 0.8rem;
    }

    .fe-exec-board__meta {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-bottom: 0.65rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Scroll Fade Up — คณะผู้บริหาร + พี่น้องเราดูแล                              */
/* -------------------------------------------------------------------------- */
.fe-fade-up {
    opacity: 0;
    transform: translateY(2.75rem);
    transition:
        opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--fe-fade-i, 0) * 180ms);
    will-change: opacity, transform;
}

.fe-fade-up.is-in {
    opacity: 1;
    transform: translateY(0);
}

.fe-exec-board__card--center.fe-fade-up.is-in {
    transform: translateY(calc(clamp(-18px, -2vw, -8px) - 5px));
}

.fe-exec-board__row--count-1 .fe-exec-board__card--center.fe-fade-up.is-in {
    transform: translateY(0);
}

.fe-exec-board__row--count-2 .fe-exec-board__card--center.fe-fade-up.is-in {
    transform: translateY(calc(clamp(-12px, -1.5vw, -6px) - 5px));
}

.fe-exec-board__row--count-4 .fe-exec-board__card--center.fe-fade-up.is-in,
.fe-exec-board__row--count-5 .fe-exec-board__card--center.fe-fade-up.is-in {
    transform: translateY(calc(clamp(-14px, -1.6vw, -6px) - 5px));
}

.fe-area__stat.fe-fade-up {
    transition:
        opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.15s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s ease;
    transition-delay: calc(var(--fe-fade-i, 0) * 180ms);
}

.fe-area__stat.fe-fade-up.is-in:hover {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .fe-fade-up {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }

    .fe-exec-board__card--center.fe-fade-up.is-in {
        transform: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Area — สถิติในชุด Executive · ไม่ใช้รูปพื้นหลัง (W8 ไปที่ภาพกิจกรรม)      */
/* -------------------------------------------------------------------------- */
.fe-area {
    --fe-area-accent: #0993d7;
    --fe-area-primary: #0470c3;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    background: none;
    background-color: transparent;
    min-height: 0;
}

.fe-area--has-bg {
    background: none;
    background-color: transparent;
    background-image: none;
}

.fe-area__inner {
    position: relative;
    z-index: 1;
    width: min(100% - 1.5rem, 1100px);
    margin: 0 auto;
    min-height: inherit;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.25rem, 3vw, 2.25rem);
    padding: clamp(1.75rem, 4vw, 3rem) 0;
}

.fe-area__head {
    width: 100%;
    text-align: center;
}

.fe-area__title {
    margin: 0;
    font-weight: 700;
    line-height: 1.15;
}

.fe-area__title-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem 0.45rem;
    max-width: 100%;
}

.fe-area__title-text {
    color: #0b1f33;
    font-size: clamp(1.5rem, 2.8vw, 2.75rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow:
        0 1px 0 #fff,
        -1.5px -1.5px 0 #fff,
         1.5px -1.5px 0 #fff,
        -1.5px  1.5px 0 #fff,
         1.5px  1.5px 0 #fff;
}

.fe-area__title-name {
    color: var(--fe-area-accent);
    font-size: clamp(2.4rem, 5.2vw, 5rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 0.95;
    text-shadow:
        0 2px 0 #fff,
        -2.5px -2.5px 0 #fff,
         2.5px -2.5px 0 #fff,
        -2.5px  2.5px 0 #fff,
         2.5px  2.5px 0 #fff,
         0 6px 18px rgba(4, 70, 120, 0.22);
}

.fe-area__stats {
    display: grid;
    grid-template-columns: repeat(var(--fe-area-cols, 3), minmax(0, 1fr));
    gap: clamp(0.75rem, 1.6vw, 1.35rem);
    width: min(100%, 1080px);
    margin: 0 auto;
}

.fe-area__stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.2rem;
    min-height: clamp(7.25rem, 12vw, 9.25rem);
    padding: 1rem 0.7rem 2.35rem;
    border-radius: 1rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
    cursor: default;
}

/* ขาวด้านบนแล้วจางหายไปด้านล่าง แบบตัวอย่าง — ไม่มีเงา ไม่มี hover */
.fe-area__stat::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.96) 38%,
        rgba(255, 255, 255, 0.62) 62%,
        rgba(255, 255, 255, 0.22) 82%,
        rgba(255, 255, 255, 0) 100%
    );
}

.fe-area__stat:not(.fe-fade-up),
.fe-area__stat:not(.fe-fade-up):hover,
.fe-area__stat.fe-fade-up.is-in:hover {
    transform: none;
    box-shadow: none;
}

.fe-area__stat-label,
.fe-area__stat-value {
    position: relative;
    z-index: 1;
}

.fe-area__stat-label {
    color: var(--fe-wfont-area, #3e5163);
    font-size: clamp(0.82rem, 1.15vw, 1.05rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.fe-area__stat-value {
    color: var(--fe-area-primary, #1d6fbf);
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    font-weight: 700;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
    .fe-area__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 520px);
        max-width: 100%;
        gap: 0;
    }

    .fe-area__stats:has(> .fe-area__stat:only-child) {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .fe-area__stats:has(> .fe-area__stat:nth-child(3):last-child) > .fe-area__stat:nth-child(2) {
        grid-column: 2;
        grid-row: 1 / span 2;
        justify-content: center;
    }

    .fe-area__stats:has(> .fe-area__stat:nth-child(3):last-child) > .fe-area__stat:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }

    .fe-area__stat {
        width: 100%;
        min-height: 0;
        padding: 0.95rem 0.45rem 0.85rem;
        border-radius: 0;
        gap: 0.15rem;
        background: none;
        box-shadow: none;
        border-right: 1px solid rgba(255, 255, 255, 0.85);
        border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    }

    .fe-area__stats:has(> .fe-area__stat:only-child) > .fe-area__stat {
        width: min(100%, 240px);
        border: 0;
    }

    .fe-area__stat::before {
        display: none;
    }

    .fe-area__stat:nth-child(2n) {
        border-right: 0;
    }

    .fe-area__stat:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .fe-area__stat-value {
        order: -1;
        color: #fff;
        font-size: clamp(1.85rem, 8vw, 2.45rem);
        font-weight: 600;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    }

    .fe-area__stat-label {
        color: #fff;
        font-size: clamp(0.88rem, 3.5vw, 1.05rem);
        font-weight: 500;
        text-align: center;
        line-height: 1.25;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    }

    .fe-area__stat:not(.fe-fade-up):hover,
    .fe-area__stat.fe-fade-up.is-in:hover {
        transform: none;
    }
}

@media (max-width: 767px) {
    .fe-area {
        min-height: 0;
        background: none;
        overflow-x: clip;
    }

    .fe-area__inner {
        width: min(100% - 1rem, 1100px);
        min-height: 0;
        padding: 1.35rem 0 1.5rem;
        gap: 1rem;
    }

    .fe-area__title-line {
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
    }

    .fe-area__title-text {
        font-size: 1.25rem;
    }

    .fe-area__title-name {
        font-size: clamp(1.85rem, 9vw, 2.6rem);
    }

    .fe-area__stats {
        width: min(100%, 420px);
    }

    .fe-map-banner {
        overflow-x: clip;
    }

    .fe-map-banner__ar {
        width: 96%;
        top: 8%;
    }

    .fe-map-banner__oo {
        width: 18%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-area__stat {
        transition: none;
    }

    .fe-area__stat:not(.fe-fade-up):hover,
    .fe-area__stat.fe-fade-up.is-in:hover {
        transform: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Map banner (banner_type = 7) — ส่วนของชุด Executives · ชิดบล็อก ไม่มีช่องขาว */
/* -------------------------------------------------------------------------- */
.fe-map-banner {
    position: relative;
    z-index: 2;
    isolation: isolate;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0;
    line-height: 0;
    background-color: transparent;
}

.fe-map-banner__frame {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.fe-map-banner__link {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.fe-map-banner__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.fe-map-banner__ar {
    position: absolute;
    top: 10%;
    left: 50%;
    width: 90%;
    height: auto;
    object-fit: contain;
    object-position: top center;
    z-index: 1;
    pointer-events: none;
    transform: translateX(-50%);
    animation: fe-map-ar 14s cubic-bezier(0.42, 0, 0.58, 1) infinite;
    will-change: transform;
}

.fe-map-banner__oo {
    position: absolute;
    top: 10%;
    left: -10%;
    width: 15%;
    height: auto;
    object-fit: contain;
    object-position: top center;
    z-index: 1;
    pointer-events: none;
    transform: translateX(-50%);
    animation: fe-map-oo 25s linear infinite;
    will-change: left;
}

@keyframes fe-map-ar {
    0% { transform: translateX(-50%) translateX(0%); }
    50% { transform: translateX(-50%) translateX(5%); }
    100% { transform: translateX(-50%) translateX(0%); }
}

@keyframes fe-map-oo {
    0% { left: -10%; }
    80% { left: 110%; }
    100% { left: 110%; }
}

@media (prefers-reduced-motion: reduce) {
    .fe-map-banner__ar,
    .fe-map-banner__oo {
        animation: none;
    }
}

.fe-map-banner__viewport {
    position: relative;
    width: 100%;
}

.fe-map-banner__hint {
    display: none;
}

/* มือถือ: ซูมแผนที่ไว้ก่อน แล้วเลื่อนดูส่วนอื่นได้ในกรอบ */
@media (max-width: 767px) {
    .fe-map-banner {
        overflow: hidden;
    }

    .fe-map-banner__frame[data-fe-map-pan] {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-x pan-y;
        scrollbar-width: none;
    }

    .fe-map-banner__frame[data-fe-map-pan]::-webkit-scrollbar {
        display: none;
    }

    .fe-map-banner__link,
    body.fe-site .fe-map-banner__img {
        max-width: none;
    }

    .fe-map-banner__hint {
        display: block;
        position: absolute;
        left: 50%;
        bottom: 0.7rem;
        z-index: 3;
        margin: 0;
        padding: 0.35rem 0.75rem;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.72);
        color: #fff;
        font-family: var(--fe-font);
        font-size: 0.78rem;
        line-height: 1.2;
        white-space: nowrap;
        pointer-events: none;
        transform: translateX(-50%);
        transition: opacity 0.25s ease;
    }

    .fe-map-banner__frame.is-panned + .fe-map-banner__hint {
        opacity: 0;
    }
}

/* -------------------------------------------------------------------------- */
/* News — ข่าวสาร (ระบบควบคุมข่าว) · แท็บ + การ์ด 4 ใบ + ดูทั้งหมด            */
/* -------------------------------------------------------------------------- */
.fe-news {
    position: relative;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    padding: clamp(1.75rem, 3.5vw, 3rem) 0 clamp(2rem, 4vw, 3.5rem);
    /* ส่วนล่างเป็นพื้นขาว — รูปพื้นหลังอยู่แค่แถบบนที่ขอบล่างโค้ง */
    background: #fff;
    overflow: hidden;
}

/* W12 พื้นหลังข่าวสาร: แถบบนจบด้วยขอบโค้งลง (รูปวงรี) + ฟิล์มขาวให้ตัวหนังสืออ่านได้ */
.fe-news[style*="--fe-news-bg"]::before {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    top: 0;
    height: clamp(230px, 30vw, 420px);
    border-radius: 0 0 50% 50%;
    background: var(--fe-news-bg) center top / cover no-repeat;
    pointer-events: none;
}

.fe-news__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}

/* หัวข้อแบบกันตัง: ตัวหนังสือขาวกึ่งกลาง ไม่มีเส้นประดับ ทับบนพื้นหลัง */
.fe-news .fe-section-title {
    padding-top: clamp(1.5rem, 3vw, 3rem);
    padding-bottom: clamp(2.5rem, 5vw, 5rem);
}

.fe-news .fe-section-title__ornament,
.fe-news .fe-section-title__line {
    display: none;
}

.fe-news .fe-section-title__text {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    color: var(--fe-wfont-news, #fff) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.fe-news .fe-section-title__subtitle {
    margin-top: 0.15rem;
    color: var(--fe-wfont-news, #fff) !important;
    font-size: clamp(0.95rem, 1.4vw, 1.25rem);
    letter-spacing: 0.04em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* แถบหมวดข่าว: แถบขาวเต็มความกว้าง เหลี่ยมมนเฉพาะมุมบนขวา-ล่างซ้าย ทับขึ้นไปบนหัวข้อ */
.fe-news__tabs-bar {
    position: relative;
    width: min(100% - 8.5rem, 1200px);
    margin: -2.75rem auto 1.25rem;
}

.fe-news__tabs-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.42);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.fe-news__tabs-nav--prev {
    left: calc(-42px - 0.7rem);
}

.fe-news__tabs-nav--next {
    right: calc(-42px - 0.7rem);
}

.fe-news__tabs-nav:hover,
.fe-news__tabs-nav:focus-visible {
    background: #fff;
    color: #1f2937;
    outline: none;
}

.fe-news__tabs-nav:disabled {
    opacity: 0.45;
    cursor: default;
}

.fe-news__tabs-nav[hidden] {
    display: none;
}

.fe-news__tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: safe center;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0 1.35rem;
    background: #fff;
    border-radius: 0 20px 0 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 1.35rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.fe-news__tabs::-webkit-scrollbar {
    display: none;
}

.fe-news__tab {
    appearance: none;
    flex: 0 0 auto;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #1f2937;
    border-radius: 0;
    padding: 0.95rem 1.6rem;
    white-space: nowrap;
    min-height: 56px;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.fe-news__tab:first-child {
    border-bottom-left-radius: 20px;
}

.fe-news__tab:last-child {
    border-top-right-radius: 20px;
}

.fe-news__tab:hover {
    color: var(--fe-news-primary, #0470c3);
}

.fe-news__tab.is-active,
.fe-news__tab[aria-selected="true"] {
    position: relative;
    z-index: 1;
    background: #ebac08;
    color: #fff;
    border-radius: 0 20px 0 20px;
    /* เงาทึบชิดขวาของป้ายเหลือง ประมาณ 5px สี #dee7eb */
    box-shadow: 5px 0 0 #dee7eb;
}

.fe-news__panel {
    display: none;
}

.fe-news__panel.is-active {
    display: block;
}

.fe-news__slider {
    visibility: visible;
    width: 100%;
}

/* แถวการ์ดไม่เต็มขอบ — เหลือที่ว่างซ้ายขวา ให้การ์ดไม่ดูอ้วน */
.fe-news__track {
    width: min(100% - 2rem, 1320px);
    margin-left: auto;
    margin-right: auto;
}

.fe-news__slider .splide__track {
    overflow: hidden;
    /* เผื่อรูปที่ทับเลยขอบบนการ์ด + เงา ไม่ให้ถูกตัด */
    padding-top: 2.25rem;
}

.fe-news__slider .splide__list {
    align-items: stretch;
}

.fe-news__slider .splide__slide {
    height: auto;
}

.fe-news__slider .splide__arrow {
    display: none !important;
}

.fe-news__slider .splide__pagination {
    position: relative !important;
    bottom: auto !important;
    left: 0;
    right: 0;
    margin: 1.1rem 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

.fe-news__slider .splide__pagination__page {
    width: 10px;
    height: 10px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(4, 112, 195, 0.28);
    opacity: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fe-news__slider .splide__pagination__page.is-active {
    background: var(--fe-news-primary, #0470c3);
    transform: scale(1.15);
}

.fe-news__card {
    min-width: 0;
    height: 100%;
}

.fe-news__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: #fff;
    border: 0;
    border-radius: 20px;
    overflow: visible;
    background: var(--fe-news-card, #1f6feb);
    box-shadow: none;
    transition: transform 0.25s ease;
}

.fe-news__card-link:hover {
    transform: translateY(-3px);
}

.fe-news__card-media {
    aspect-ratio: 1.72 / 1;
    /* รูปทับเลยขอบบนของการ์ดขึ้นไป */
    margin: -1.75rem 0.9rem 0;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 16px;
    background: #fff;
}

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

.fe-news__card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background:
        linear-gradient(145deg, #d7e6f2 0%, #eef4f9 55%, #d0dfea 100%);
}

.fe-news__card-body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.85rem 1rem 1.05rem;
    flex: 1 1 auto;
    text-align: center;
}

.fe-news__card-title {
    margin: 0;
    min-width: 0;
    font-size: clamp(0.92rem, 1.35vw, 1.05rem);
    font-weight: 600;
    line-height: 1.45;
    color: var(--fe-wfont-news-card, #fff);
}

/* เกิน 3 บรรทัดให้ตัดที่บรรทัดที่ 4 ด้วย … */
.fe-news__card-title > span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    max-height: calc(1.45em * 3);
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

.fe-news__card-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: inherit;
    font-size: 0.85rem;
}

.fe-news__card-date {
    color: rgba(255, 255, 255, 0.9);
}

/* แคปซูลยอดเข้าชมสีทองกึ่งกลาง แบบกันตัง */
.fe-news__card-views {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 92px;
    min-height: 30px;
    padding: 0.2rem 1rem 0.2rem 0.8rem;
    border-radius: 999px;
    background: #f8b140;
    color: #fff;
    font-weight: 600;
}

.fe-news__empty {
    margin: 1.5rem 0;
    text-align: center;
    color: #6b7c8f;
    font-size: 1rem;
}

.fe-news__more {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.fe-news__more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.65rem 1.55rem;
    border-radius: 999px;
    background: var(--fe-news-primary, #0470c3);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 16px rgba(4, 112, 195, 0.2);
}

.fe-news__more-btn:hover {
    background: var(--fe-news-accent, #0993d7);
    transform: translateY(-1px);
}

@media (min-width: 640px) {
    .fe-news__slider .splide__pagination {
        gap: 1.35rem;
    }
}

@media (min-width: 1024px) {
    .fe-news__slider .splide__pagination {
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .fe-news {
        padding: 1.25rem 0 1.75rem;
        overflow-x: clip;
    }

    .fe-news__inner {
        gap: 0.9rem;
    }

    .fe-news .fe-section-title__text {
        font-size: 1.6rem;
        white-space: normal;
    }

    .fe-news__tabs-bar {
        width: calc(100% - 7.5rem);
        margin: -2rem auto 0.75rem;
    }

    .fe-news__tabs-nav {
        width: 36px;
        height: 36px;
    }

    .fe-news__tabs {
        justify-content: flex-start;
        padding: 0 0.85rem;
        scroll-padding-inline: 0.85rem;
    }

    .fe-news__tab {
        flex: 0 0 auto;
        padding: 0.5rem 0.95rem;
        font-size: 0.84rem;
        min-height: 42px;
        white-space: nowrap;
    }

    .fe-news__card-link {
        border-radius: 16px;
    }

    .fe-news__card-media {
        aspect-ratio: 16 / 10;
    }

    .fe-news__card-body {
        padding: 0.75rem 0.85rem 0.9rem;
    }

    .fe-news__card-title {
        font-size: 0.92rem;
    }

    .fe-news__more {
        margin-top: 1.1rem;
    }

    .fe-news__more-btn {
        width: min(100%, 240px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-news__tab,
    .fe-news__card-link,
    .fe-news__more-btn {
        transition: none;
    }

    .fe-news__card-link:hover,
    .fe-news__more-btn:hover {
        transform: none;
    }
}

/* -------------------------------------------------------------------------- */
/* News 2 — ข่าวเด่นใบใหญ่ · การ์ดเล็ก · แท็บเม็ดยา เข้ากับธีมเว็บ          */
/* -------------------------------------------------------------------------- */
.fe-news2 {
    --fe-news2-primary: #01408f;
    --fe-news2-accent: #ff9808;
    --fe-news2-hero: #01357c;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    padding: clamp(1.6rem, 3vw, 2.6rem) 0 clamp(1.4rem, 2.6vw, 2.2rem);
    background:
        radial-gradient(42% 28% at 8% 12%, color-mix(in srgb, var(--fe-news2-accent) 12%, transparent), transparent 70%),
        radial-gradient(48% 36% at 96% 0%, color-mix(in srgb, var(--fe-news2-primary) 12%, transparent), transparent 72%),
        linear-gradient(180deg, #f7fbff 0%, #fff 38%, #f4f8fd 100%);
}

.fe-news2__inner {
    width: min(100%, 1360px);
}

.fe-news2__head {
    display: flex;
    align-items: center;
    gap: 0.75rem 0.9rem;
    margin: 0 0 1.15rem;
    padding: 0.65rem 0.7rem 0.65rem 0.85rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(1, 47, 122, 0.14);
}

.fe-news2__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex: 0 0 auto;
    min-width: 0;
}

.fe-news2__mark {
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 1.15rem;
    background: linear-gradient(160deg, color-mix(in srgb, var(--fe-news2-primary) 55%, white) 0%, var(--fe-news2-hero) 100%);
    color: #fff;
    font-size: 1.55rem;
    box-shadow: 0 10px 20px rgba(1, 64, 143, 0.38);
}

.fe-news2__title {
    margin: 0;
    color: var(--fe-news2-primary);
    font-size: clamp(1.75rem, 2.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
}

.fe-news2__subtitle {
    margin: 0.16rem 0 0;
    color: #4d6580;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}

.fe-news2__tabs {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    margin: 0;
    padding: 0.15rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.fe-news2__tabs::-webkit-scrollbar {
    display: none;
}

.fe-news2__tab {
    appearance: none;
    flex: 0 0 auto;
    margin: 0;
    border: 2px solid var(--fe-news2-accent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--fe-news2-accent) 16%, white);
    color: color-mix(in srgb, var(--fe-news2-accent) 72%, black);
    padding: 0.48rem 1rem;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
}

.fe-news2__tab:hover {
    background: color-mix(in srgb, var(--fe-news2-accent) 28%, white);
}

.fe-news2__tab.is-active,
.fe-news2__tab[aria-selected="true"] {
    border-color: transparent;
    background: linear-gradient(180deg, color-mix(in srgb, var(--fe-news2-accent) 72%, white) 0%, color-mix(in srgb, var(--fe-news2-accent) 88%, black) 100%);
    color: #fff;
    box-shadow: 0 8px 16px rgba(255, 152, 8, 0.42);
}

.fe-news2__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    min-height: 44px;
    margin-left: auto;
    padding: 0.32rem 0.4rem 0.32rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--fe-news2-primary);
    color: #fff;
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(1, 64, 143, 0.28);
}

.fe-news2__more-go {
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: var(--fe-news2-accent);
    color: #fff;
    font-size: 0.75rem;
}

.fe-news2__more-btn:hover {
    background: var(--fe-news2-hero);
}

.fe-news2__panel {
    display: none;
}

.fe-news2__panel.is-active {
    display: block;
}

.fe-news2__hero {
    margin: 0 0 1.05rem;
    border-radius: 28px;
    overflow: hidden;
    background: var(--fe-news2-hero);
    box-shadow: 0 18px 36px rgba(1, 47, 122, 0.18);
}

.fe-news2__hero-link {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 40%) 1fr;
    min-height: 372px;
    color: #fff;
    text-decoration: none;
}

.fe-news2__hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--fe-news2-hero);
}

.fe-news2__hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 8%, rgba(0, 0, 0, 0.45) 24%, transparent 44%);
    mask-image: linear-gradient(90deg, #000 0%, #000 8%, rgba(0, 0, 0, 0.45) 24%, transparent 44%);
    pointer-events: none;
}

.fe-news2__hero-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, var(--fe-news2-hero) 0%, var(--fe-news2-hero) 16%, color-mix(in srgb, var(--fe-news2-hero) 78%, transparent) 38%, color-mix(in srgb, var(--fe-news2-hero) 50%, transparent) 56%, transparent 72%);
    pointer-events: none;
}

body.fe-site .fe-news2__hero-photo img,
body.fe-site .fe-news2__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

@media (min-width: 768px) {
    .fe-news2__hero-photo {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    body.fe-site .fe-news2__hero-photo img {
        width: 84%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: right 42%;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 12%);
    }
}

.fe-news2__hero-photo img {
    transition: transform 0.4s ease;
}

.fe-news2__hero-link:hover .fe-news2__hero-photo img,
.fe-news2__link:hover img {
    transform: scale(1.04);
}

.fe-news2__hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
    padding: 1.7rem 2.2rem 1.7rem 1.85rem;
    background: none;
}

.fe-news2__hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.fe-news2__hero-date,
.fe-news2__hero-views {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
}

.fe-news2__hero-date i,
.fe-news2__hero-views i,
.fe-news2__date i,
.fe-news2__views i {
    color: color-mix(in srgb, var(--fe-news2-accent) 78%, white);
}

.fe-news2__hero-title {
    margin: 0;
    max-width: 34rem;
    color: #fff;
    font-size: clamp(1.2rem, 1.55vw, 1.65rem);
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

@media (min-width: 768px) {
    .fe-news2__hero-title {
        text-shadow: 0 1px 8px rgba(1, 24, 64, 0.45);
    }
}

.fe-news2__read {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.15rem;
    padding: 0.32rem 0.4rem 0.32rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    color: var(--fe-news2-primary);
    font-size: 0.88rem;
    font-weight: 700;
}

.fe-news2__read-go {
    display: grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: var(--fe-news2-accent);
    color: #fff;
    font-size: 0.68rem;
}

.fe-news2__slider {
    position: relative;
    padding-inline: 0;
    overflow: visible;
}

.fe-news2__slider .splide__track {
    overflow: hidden;
    padding: 0.2rem 0.05rem 0.35rem;
}

.fe-news2__slider .splide__list {
    align-items: stretch;
}

.fe-news2__slider .splide__slide {
    height: auto;
}

.fe-news2__slider .fe-news2__arrow {
    position: absolute;
    top: 42%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 18px rgba(1, 47, 122, 0.16);
    opacity: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.fe-news2__slider .fe-news2__arrow:hover,
.fe-news2__slider .fe-news2__arrow:focus-visible {
    background: var(--fe-news2-primary);
    outline: none;
}

.fe-news2__slider .fe-news2__arrow.splide__arrow--prev {
    left: -2.5rem;
}

.fe-news2__slider .fe-news2__arrow.splide__arrow--next {
    right: -2.5rem;
}

.fe-news2__slider .fe-news2__arrow svg {
    display: none;
}

.fe-news2__slider .fe-news2__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.fe-news2__chev {
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    border-left: 2px solid var(--fe-news2-primary);
    border-bottom: 2px solid var(--fe-news2-primary);
}

.fe-news2__arrow:hover .fe-news2__chev,
.fe-news2__arrow:focus-visible .fe-news2__chev {
    border-color: #fff;
}

.fe-news2__arrow.splide__arrow--prev .fe-news2__chev {
    transform: rotate(45deg);
    margin-left: 0.15rem;
}

.fe-news2__arrow.splide__arrow--next .fe-news2__chev {
    transform: rotate(-135deg);
    margin-right: 0.15rem;
}

.fe-news2__card {
    height: 100%;
    min-width: 0;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(1, 47, 122, 0.1);
}

.fe-news2__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    padding: 0.55rem 0.55rem 0.85rem;
    color: inherit;
    text-decoration: none;
}

.fe-news2__media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: 16px;
    background: #e8eef6;
}

.fe-news2__media img {
    transition: transform 0.35s ease;
}

.fe-news2__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #d7e4f4, #f4f8fc);
}

.fe-news2__date {
    position: absolute;
    left: 0.55rem;
    bottom: 0.55rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    max-width: calc(100% - 1.1rem);
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #3d5670;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
}

.fe-news2__card-title {
    margin: 0.7rem 0.35rem 0.45rem;
    color: #1c3048;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
    min-height: calc(1.45em * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.fe-news2__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: auto 0.35rem 0;
}

.fe-news2__views {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    color: #5b7088;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.fe-news2__morelink {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
    color: var(--fe-news2-primary);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.fe-news2__empty {
    margin: 1.25rem 0;
    text-align: center;
    color: #6b7c8f;
}

.fe-news2 .splide__pagination {
    position: static;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.9rem 0 0;
    padding: 0;
}

.fe-news2 .splide__pagination__page {
    width: 8px;
    height: 8px;
    margin: 0;
    border: 0;
    border-radius: 99px;
    background: #d5deea;
    opacity: 1;
    transform: none;
}

.fe-news2 .splide__pagination__page.is-active {
    width: 22px;
    background: var(--fe-news2-accent);
}

@media (max-width: 980px) {
    .fe-news2__head {
        flex-wrap: wrap;
    }

    .fe-news2__tabs {
        order: 3;
        flex: 1 1 100%;
    }
}

@media (max-width: 767px) {
    .fe-news2 {
        padding: 1.15rem 0 1.35rem;
    }

    .fe-news2__hero-link {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .fe-news2__hero-photo {
        position: relative;
        inset: auto;
        height: 190px;
    }

    .fe-news2__hero-photo::after,
    .fe-news2__hero-link::before {
        content: none;
    }

    .fe-news2__hero-copy {
        background: linear-gradient(180deg, var(--fe-news2-hero) 0%, color-mix(in srgb, var(--fe-news2-hero) 62%, white) 100%);
    }

    .fe-news2__slider {
        padding-inline: 0;
        overflow: visible;
    }

    .fe-news2__slider .fe-news2__arrow.splide__arrow--prev {
        left: -0.2rem;
    }

    .fe-news2__slider .fe-news2__arrow.splide__arrow--next {
        right: -0.2rem;
    }

    .fe-news2__slider .fe-news2__arrow {
        width: 2.05rem;
        height: 2.05rem;
    }

    .fe-news2__card-title {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-news2__hero-photo img,
    body.fe-site .fe-news2__media img {
        transition: none;
    }

    .fe-news2__hero-link:hover .fe-news2__hero-photo img,
    .fe-news2__link:hover img {
        transform: none;
    }
}


/* -------------------------------------------------------------------------- */
/* Events — กิจกรรม (ภาพกิจกรรม / มัลติมีเดีย) · ไม่ใช้คลาสข่าวสาร           */
/* -------------------------------------------------------------------------- */
.fe-events {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    height: 700px;
    min-height: 700px;
    box-sizing: border-box;
    padding: clamp(1.15rem, 2vw, 1.6rem) 0 clamp(0.85rem, 1.6vw, 1.15rem);
    overflow: hidden;
    color: #fff;
    background-color: var(--fe-events-primary, #0470c3);
    background-image: linear-gradient(108deg, rgba(4, 28, 72, 0.34) 0%, rgba(4, 50, 110, 0.08) 46%, rgba(255, 255, 255, 0.14) 100%);
}

.fe-events::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(52%, 920px);
    height: 100%;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
    z-index: 0;
}

/* W8 area_bg — รูป 1920×700 ยึดเต็มกรอบทั้งใบ ไม่ครอป ไม่ทับสี */
.fe-events[style*="--fe-events-bg"] {
    background-color: transparent;
    background-image: var(--fe-events-bg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}

.fe-events[style*="--fe-events-bg"]::after {
    content: none;
}

.fe-events__inner,
.fe-events__stage {
    position: relative;
    z-index: 1;
}

.fe-events__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 0;
}

.fe-events__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.fe-events__stage {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin-left: 0;
    margin-right: auto;
}

.fe-events__fb {
    position: relative;
    display: block;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: clamp(220px, 72vw, 280px);
    max-width: 100%;
    aspect-ratio: 420 / 800;
    padding: 0;
    overflow: hidden;
    border-radius: 28px;
    background: #111;
    box-shadow: 0 16px 36px rgba(0, 20, 40, 0.28);
}

.fe-events__fb[style*="--fe-fb-bg"] {
    border-radius: 0;
    background: none;
    box-shadow: none;
}

/* รูปกรอบมือถือทับบนไอเฟรม ช่องจอของรูปโปร่งจึงเห็นฟีดด้านใน */
.fe-events__fb[style*="--fe-fb-bg"]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--fe-fb-bg) center / 100% 100% no-repeat;
    pointer-events: none;
}

/* ช่องโปร่งของรูปมือถือ 420×800 — ไอเฟรมใหญ่กว่าช่องเล็กน้อยให้กรอบทับขอบ */
.fe-events__fb-screen {
    position: absolute;
    z-index: 0;
    left: calc(5% + 5px);
    right: calc(5% + 5px);
    top: calc(12% + 10px);
    bottom: calc(1% + 5px);
    overflow: hidden;
    background: #fff;
    border-radius: 0 0 10% 10%;
    clip-path: inset(0 round 0 0 10% 10%);
}

.fe-events__fb-screen .fb-page,
.fe-events__fb-screen .fb_iframe_widget,
.fe-events__fb-screen .fb_iframe_widget span,
.fe-events__fb-screen iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 0 10% 10%;
}

.fe-events__head {
    flex: 0 0 auto;
    text-align: center;
    margin: 0 0 0.85rem;
}

.fe-events__title {
    margin: 0;
    color: var(--fe-wfont-event, #fff);
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 14px rgba(0, 20, 50, 0.22);
}

.fe-events__ornament {
    display: flex;
    justify-content: center;
    margin-top: 0.35rem;
    color: #f0d48a;
}

.fe-events__ornament svg {
    display: block;
    width: min(200px, 52vw);
    height: auto;
}

.fe-events__tabs {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.9rem;
}

.fe-events__tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.48rem 1.05rem;
    border-radius: 8px;
    cursor: pointer;
}

.fe-events__tab.is-active {
    background: #fff;
    color: #1c2430;
    box-shadow: 0 8px 18px rgba(8, 28, 64, 0.16);
}

/* ความสูงถูกจับจากแท็บที่มีการ์ด แล้วแท็บว่างใช้ความสูงนั้น — ไม่โชว์การ์ดของอีกแท็บ */
.fe-events__panels {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.fe-events__panels > .fe-events__panel {
    min-width: 0;
    min-height: 0;
}

.fe-events__panel:not([hidden]) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.fe-events__panel[hidden] {
    display: none !important;
}

.fe-events__empty {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 16rem;
    margin: 0;
    padding: 1.5rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
}

.fe-events__slider {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.fe-events__slider .splide__track {
    flex: 1 1 auto;
    min-height: 0;
}

.fe-events__slider .splide__list {
    align-items: stretch;
}

.fe-events__slider .splide__slide {
    height: auto;
    display: flex;
}

.fe-events__slider .splide__arrow {
    display: none !important;
}

.fe-events__slider .splide__pagination {
    position: relative !important;
    bottom: auto !important;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    margin: 1.15rem 0 0;
    padding: 0;
}

.fe-events__slider .splide__pagination__page {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #ffe14a;
    opacity: 0.45;
    transform: none;
    transition: width 0.2s ease, opacity 0.2s ease;
}

.fe-events__slider .splide__pagination__page.is-active {
    width: 22px;
    background: #ffe14a;
    opacity: 1;
    transform: none;
}

.fe-events__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0.7rem 0.7rem 0.85rem;
    border-radius: 16px;
    background: #fff;
    color: #1c2430;
    box-shadow: 0 12px 28px rgba(8, 30, 70, 0.16);
}

.fe-events__card-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    color: inherit;
    text-decoration: none;
}

.fe-events__card-link:hover {
    color: inherit;
    text-decoration: none;
}

.fe-events__card-media {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: #e7eef6;
}

body.fe-site .fe-events__card-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.fe-events__card-media--video iframe,
.fe-events__card-media--video video,
.fe-events__card-media--video embed,
.fe-events__card-media--video > * {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border: 0;
    aspect-ratio: unset !important;
}

.fe-events__card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0.72rem 0 0;
    min-height: calc(1.45em * 2);
    color: var(--fe-wfont-event-card, #1c2430);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
}

.fe-events__views {
    display: block;
    align-self: center;
    margin-top: 0.85rem;
    color: #8b95a3;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.fe-events__foot {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-top: 0.35rem;
}

.fe-events__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.4rem 1.05rem;
    border-radius: 999px;
    background: #fff;
    color: #1c2430;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(8, 28, 64, 0.16);
}

.fe-events__more:hover,
.fe-events__more:focus-visible {
    background: #ffe14a;
    color: #1c2430;
    outline: none;
}

.fe-events__tab:focus-visible,
.fe-events__card-link:focus-visible {
    outline: 2px solid #ffe14a;
    outline-offset: 2px;
}

@media (min-width: 1024px) {
    .fe-events__slider .splide__list,
    .fe-events__slider .splide__slide {
        height: 100%;
        min-height: 0;
    }

    .fe-events__slider .splide__slide {
        align-items: center;
    }

    .fe-events__card {
        height: calc(100% - 100px);
        min-height: 0;
    }

    .fe-events__card-media {
        aspect-ratio: auto;
    }

    .fe-events__empty {
        min-height: 0;
        height: 100%;
    }

    .fe-events--with-fb .fe-events__inner {
        justify-content: flex-start;
    }

    /* สัดส่วนคงที่ทุกระดับซูม: การ์ด 66% ของความกว้าง · เว้นซ้าย 2% · ที่เหลือให้มือถือเฟซบุ๊ก */
    .fe-events--with-fb .fe-events__layout {
        flex: 1 1 auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2%;
        height: 100%;
        padding-left: 2%;
    }

    .fe-events--with-fb .fe-events__stage {
        flex: 0 1 66%;
        width: 66%;
        max-width: 66%;
    }

    .fe-events--with-fb .fe-events__fb {
        align-self: center;
        width: auto;
        height: min(640px, calc(100% - 4px));
        aspect-ratio: 420 / 800;
    }
}

@media (min-width: 1100px) {
    .fe-events__stage {
        width: min(70%, 1200px);
    }

    .fe-events--with-fb .fe-events__stage {
        width: auto;
    }
}

@media (max-width: 1023px) {
    .fe-events {
        height: auto;
        min-height: 0;
    }

    .fe-events__inner {
        height: auto;
    }
}

@media (max-width: 767px) {
    .fe-events__fb {
        display: none;
    }

    .fe-events {
        padding: 1.65rem 0 1.35rem;
    }

    .fe-events__title {
        font-size: 1.45rem;
    }

    .fe-events__tab {
        font-size: 0.9rem;
        padding: 0.42rem 0.85rem;
    }

    .fe-events__card-title {
        font-size: 0.92rem;
    }

    .fe-events__card,
    .fe-events__card-link {
        height: auto;
    }

    .fe-events__card-media {
        flex: 0 0 auto;
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .fe-events__card-media--video {
        aspect-ratio: 16 / 10;
        height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-events__slider .splide__pagination__page {
        transition: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Participate — ประชาสัมพันธ์แนะนำการมีส่วนร่วม (base2)                      */
/* -------------------------------------------------------------------------- */
.fe-participate {
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    padding: clamp(1.75rem, 3.5vw, 3rem) 0;
    background: linear-gradient(180deg, #fff 0%, #f7fafc 55%, #fff 100%);
}

.fe-participate__inner {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.fe-participate__head {
    text-align: center;
}

.fe-participate__title {
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.7rem;
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    font-weight: 700;
    color: var(--fe-wfont-part, #111);
    line-height: 1.25;
}

.fe-participate__icon {
    width: clamp(2rem, 3.5vw, 3rem);
    height: auto;
}

.fe-participate__title-accent {
    color: var(--fe-wfont-part-accent, #00cc7e);
}

.fe-participate__marquee {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
}

.fe-participate__marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 100%;
    animation: fe-marquee 55s linear infinite;
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: #111;
    text-shadow:
        -0.25px -0.25px 0 #ff9900,
         0.25px -0.25px 0 #ff9900,
        -0.25px  0.25px 0 #ff9900,
         0.25px  0.25px 0 #ff9900;
}

.fe-participate__marquee:hover .fe-participate__marquee-track {
    animation-play-state: paused;
}

.fe-participate__star {
    width: 1.25rem;
    height: 1.25rem;
}

.fe-participate__slides {
    width: min(100%, 1100px);
    margin: 0 auto;
}

.fe-participate__slide-link {
    display: block;
}

.fe-participate__slide-link img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 auto;
}

.fe-participate__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

.fe-participate__col--links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.fe-participate__banner {
    display: block;
    width: min(100%, 320px);
}

.fe-participate__banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.fe-participate__fb {
    display: flex;
    justify-content: center;
    min-height: 420px;
}

.fe-participate__fb[style*="--fe-fb-bg"] {
    box-sizing: border-box;
    width: min(100%, 420px);
    aspect-ratio: 420 / 800;
    min-height: 0;
    margin-inline: auto;
    padding: 9.52%;
    align-items: center;
    justify-content: center;
    background: var(--fe-fb-bg) center / 100% 100% no-repeat;
}

.fe-participate__fb-empty {
    text-align: center;
    color: #6b7c8f;
    padding: 1.5rem;
}

.fe-participate__survey {
    width: min(100%, 440px);
    margin: 0 auto;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--fe-part-primary, #0470c3) 14%, #e7eef5);
    border-radius: 28px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 24px 50px color-mix(in srgb, var(--fe-part-primary, #0470c3) 16%, transparent);
    text-align: left;
    overflow: hidden;
}

.fe-participate__survey-head {
    position: relative;
    padding: 1.15rem 1.1rem 0.95rem;
    background:
        radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--fe-part-accent, #0993d7) 20%, transparent), transparent 62%),
        radial-gradient(46% 80% at 0% 100%, color-mix(in srgb, var(--fe-part-primary, #0470c3) 12%, transparent), transparent 70%),
        #fff;
}

.fe-participate__survey-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.fe-participate__survey-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 18px;
    color: var(--fe-part-primary, #0470c3);
    background: color-mix(in srgb, var(--fe-part-primary, #0470c3) 10%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fe-part-primary, #0470c3) 16%, #fff);
    transform: rotate(-6deg);
}

.fe-participate__survey-head-copy {
    min-width: 0;
}

.fe-participate__survey-kicker,
.fe-participate__survey-name,
.fe-participate__survey-sub {
    margin: 0;
}

.fe-participate__survey-kicker {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    color: #607284;
}

.fe-participate__survey-name {
    font-size: clamp(1.55rem, 2.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--fe-part-primary, #0470c3);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .fe-participate__survey-name {
        background: linear-gradient(100deg, var(--fe-part-primary, #0470c3), var(--fe-part-accent, #0993d7));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.fe-participate__survey-head-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.85rem;
}

.fe-participate__survey-sub {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #6b7d8e;
}

.fe-participate__survey-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: #fff;
    color: var(--fe-part-primary, #0470c3);
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--fe-part-primary, #0470c3) 18%, #fff);
}

.fe-participate__survey-live.is-closed {
    color: #607284;
    box-shadow: 0 0 0 1px #e1e8ef;
}

.fe-participate__survey-pulse {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--fe-part-primary, #0470c3);
    animation: fe-survey-pulse 1.8s ease-out infinite;
}

.fe-participate__survey-live.is-closed .fe-participate__survey-pulse {
    background: #9aa8b5;
    animation: none;
}

.fe-participate__survey-body {
    padding: 0.2rem 0.9rem 1.05rem;
}

.fe-participate__survey-title {
    margin: 0 0 0.8rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--fe-part-primary, #0470c3);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.5;
    color: #10263c;
}

.fe-participate__survey-options {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.fe-participate__survey-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 3.05rem;
    margin: 0;
    padding: 0.48rem 0.65rem;
    overflow: hidden;
    border: 1px solid #e5edf4;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fe-participate__survey-item:hover {
    border-color: color-mix(in srgb, var(--fe-part-primary, #0470c3) 40%, #fff);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--fe-part-primary, #0470c3) 10%, transparent);
    transform: translateY(-1px);
}

.fe-participate__survey-item:has(input:checked) {
    border-color: var(--fe-part-primary, #0470c3);
    box-shadow: 0 0 0 1px var(--fe-part-primary, #0470c3);
    background: color-mix(in srgb, var(--fe-part-primary, #0470c3) 5%, #fff);
}

.fe-participate__survey-item.is-lead {
    border-color: var(--fe-part-primary, #0470c3);
}

.fe-participate__survey-item:focus-within {
    outline: 2px solid color-mix(in srgb, var(--fe-part-primary, #0470c3) 55%, #fff);
    outline-offset: 2px;
}

.fe-participate__survey-form.is-answered .fe-participate__survey-item {
    cursor: default;
    pointer-events: none;
}

.fe-participate__survey-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--fe-survey-pct, 0%);
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--fe-part-primary, #0470c3) 16%, #fff),
        color-mix(in srgb, var(--fe-part-accent, #0993d7) 24%, #fff)
    );
    pointer-events: none;
    transition: width 0.55s ease;
}

.fe-participate__survey-item.is-lead .fe-participate__survey-bar {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--fe-part-primary, #0470c3) 28%, #fff),
        color-mix(in srgb, var(--fe-part-accent, #0993d7) 40%, #fff)
    );
}

.fe-participate__survey-label {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #16324a;
    cursor: inherit;
}

.fe-participate__survey-label input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fe-participate__survey-radio {
    position: relative;
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.08rem;
    border: 2px solid #c5d4e0;
    border-radius: 999px;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fe-participate__survey-item:has(input:checked) .fe-participate__survey-radio {
    border-color: var(--fe-part-primary, #0470c3);
    background: var(--fe-part-primary, #0470c3);
}

.fe-participate__survey-item:has(input:checked) .fe-participate__survey-radio::after {
    content: "";
    position: absolute;
    left: 0.28rem;
    top: 0.1rem;
    width: 0.28rem;
    height: 0.52rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.fe-participate__survey-no {
    flex: 0 0 auto;
    min-width: 1.7rem;
    padding: 0.12rem 0.3rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--fe-part-primary, #0470c3) 10%, #fff);
    color: var(--fe-part-primary, #0470c3);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
}

.fe-participate__survey-text {
    flex: 1 1 auto;
}

.fe-participate__survey-lead {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: var(--fe-part-primary, #0470c3);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}

.fe-participate__survey-lead[hidden] {
    display: none !important;
}

.fe-participate__survey-result {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.fe-participate__survey-result[hidden] {
    display: none !important;
}

.fe-participate__survey-pct {
    display: inline-block;
    min-width: 3.2rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: #fff;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--fe-part-primary, #0470c3);
    box-shadow: 0 1px 2px rgba(16, 38, 60, 0.08);
}

.fe-participate__survey-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.fe-participate__survey-submit,
.fe-participate__survey-peek {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    appearance: none;
    border-radius: 14px;
    min-height: 46px;
    padding: 0.6rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.fe-participate__survey-submit {
    border: 0;
    background: linear-gradient(180deg, var(--fe-part-accent, #0993d7), var(--fe-part-primary, #0470c3));
    color: #fff;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--fe-part-primary, #0470c3) 32%, transparent);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.fe-participate__survey-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.fe-participate__survey-submit:disabled {
    cursor: wait;
    filter: saturate(0.7);
}

.fe-participate__survey-submit:focus-visible,
.fe-participate__survey-peek:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--fe-part-primary, #0470c3) 55%, #fff);
    outline-offset: 3px;
}

.fe-participate__survey-peek {
    border: 1.5px solid color-mix(in srgb, var(--fe-part-primary, #0470c3) 28%, #d7e3ee);
    background: #fff;
    color: var(--fe-part-primary, #0470c3);
}

.fe-participate__survey-peek:hover,
.fe-participate__survey-peek[aria-pressed="true"] {
    background: color-mix(in srgb, var(--fe-part-primary, #0470c3) 8%, #fff);
}

.fe-participate__survey-done,
.fe-participate__survey-champ,
.fe-participate__survey-hint,
.fe-participate__survey-total {
    margin: 0 0 0.65rem;
}

.fe-participate__survey-done {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fe-part-primary, #0470c3) 10%, #fff);
    color: var(--fe-part-primary, #0470c3);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.fe-participate__survey-champ {
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--fe-part-primary, #0470c3) 8%, #fff);
    color: #10263c;
    font-size: 0.84rem;
    line-height: 1.45;
}

.fe-participate__survey-champ strong {
    display: inline-block;
    margin-top: 0.1rem;
    color: var(--fe-part-primary, #0470c3);
    font-size: 0.98rem;
}

.fe-participate__survey-hint {
    color: #b42318;
    font-size: 0.82rem;
    font-weight: 700;
}

.fe-participate__survey-total {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: #5d7082;
}

.fe-participate__survey-hint[hidden],
.fe-participate__survey-champ[hidden],
.fe-participate__survey-total[hidden],
.fe-participate__survey-done[hidden] {
    display: none !important;
}

@keyframes fe-survey-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fe-part-primary, #0470c3) 45%, transparent); }
    100% { box-shadow: 0 0 0 7px transparent; }
}

@media (min-width: 768px) {
    .fe-participate__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .fe-participate__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
        gap: 1.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Participate แบบ 2 — การ์ดสมัยใหม่ (participate2.blade.php)                */
/* ซ้าย: สไลด์ + ช่องทางบริการ · ขวา: แบบสำรวจ + สายด่วน 1669               */
/* -------------------------------------------------------------------------- */
.fe-part2 {
    --p: var(--fe-part-primary, #0470c3);
    --a: var(--fe-part-accent, #0993d7);
    --ink: #10263c;
    --mute: #5d7082;
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    overflow-x: clip;
    background:
        radial-gradient(55% 45% at 0% 0%, color-mix(in srgb, var(--p) 11%, transparent), transparent 72%),
        radial-gradient(48% 42% at 100% 100%, color-mix(in srgb, var(--a) 13%, transparent), transparent 72%),
        linear-gradient(180deg, #fff 0%, #f3f8fc 100%);
}

.fe-part2::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(color-mix(in srgb, var(--p) 22%, transparent) 1.2px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 50%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 50%);
    pointer-events: none;
}

.fe-part2__shell {
    display: flex;
    flex-direction: column;
    gap: clamp(1.35rem, 2.6vw, 2.1rem);
    max-width: 1480px;
    margin-inline: auto;
}

/* —— หัวเรื่อง —— */
.fe-part2__head {
    display: grid;
    gap: 1rem 2rem;
    align-items: end;
}

.fe-part2__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.28rem 0.95rem 0.28rem 0.35rem;
    border-radius: 999px;
    background: #fff;
    color: var(--p);
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--p) 18%, #fff),
        0 8px 18px -10px color-mix(in srgb, var(--p) 55%, transparent);
}

.fe-part2__eyebrow img {
    display: block;
    width: 1.9rem;
    height: 1.9rem;
}

.fe-part2__title {
    margin: 0.65rem 0 0;
    font-weight: 800;
    line-height: 1.12;
    color: var(--ink);
}

.fe-part2__title small {
    display: block;
    margin-bottom: 0.15rem;
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--mute);
}

.fe-part2__title span {
    display: inline-block;
    font-size: clamp(1.75rem, 3.6vw, 2.85rem);
    color: var(--p);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .fe-part2__title span {
        background: linear-gradient(100deg, var(--p) 10%, var(--a) 70%, #00cc7e 120%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.fe-part2__title::after {
    content: "";
    display: block;
    width: 4.5rem;
    height: 0.3rem;
    margin-top: 0.8rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--p), var(--a) 62%, #00cc7e);
}

.fe-part2__lead {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    padding: 0.9rem 1.1rem;
    border: 1px solid color-mix(in srgb, var(--p) 14%, #e6eef5);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    color: #3b5064;
    font-size: clamp(0.92rem, 1.15vw, 1.02rem);
    line-height: 1.7;
    box-shadow: 0 16px 30px -24px color-mix(in srgb, var(--p) 55%, transparent);
}

.fe-part2__lead img {
    flex: 0 0 auto;
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.2rem;
}

/* —— โครงหลัก —— */
.fe-part2__layout {
    display: grid;
    gap: clamp(1.35rem, 2.6vw, 2rem);
    align-items: start;
}

.fe-part2__main,
.fe-part2__aside {
    display: flex;
    flex-direction: column;
    gap: clamp(1.1rem, 2vw, 1.6rem);
    min-width: 0;
}

.fe-part2__aside {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
}

/* —— สไลด์ —— */
.fe-part2__stage {
    position: relative;
    min-width: 0;
}

.fe-part2__slides {
    width: 100%;
}

.fe-part2__slides .splide__track {
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    box-shadow:
        0 0 0 6px #fff,
        0 0 0 7px color-mix(in srgb, var(--p) 20%, #fff),
        0 30px 50px -28px color-mix(in srgb, var(--p) 58%, transparent);
}

body.fe-site .fe-part2__slides.fe-slide--navbelow > .splide__track {
    height: auto !important;
}

.fe-part2__slide-link {
    display: block;
}

.fe-part2__slide-link img {
    display: block;
    width: 100%;
    height: auto;
}

/* —— ช่องทางบริการ —— */
.fe-part2__block {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.fe-part2__label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    color: var(--p);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.fe-part2__label::before {
    content: "";
    flex: 0 0 auto;
    width: 0.5rem;
    height: 1.3rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--a), var(--p));
}

.fe-part2__label::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--p) 30%, #fff), transparent);
}

.fe-part2__channels {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
}

.fe-part2__chan {
    display: block;
    border-radius: 18px;
    filter: drop-shadow(0 10px 14px rgba(16, 38, 60, 0.12));
    transition: transform 0.22s ease, filter 0.22s ease;
}

.fe-part2__chan img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.fe-part2__chan:hover,
.fe-part2__chan:focus-visible {
    transform: translateY(-4px);
    filter: drop-shadow(0 16px 20px rgba(16, 38, 60, 0.2));
}

.fe-part2__chan:focus-visible,
.fe-part2__sos:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--p) 60%, #fff);
    outline-offset: 4px;
}

/* —— สายด่วน 1669 —— */
.fe-part2__sos {
    display: block;
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(214, 40, 40, 0.16),
        0 26px 44px -30px rgba(214, 40, 40, 0.6);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fe-part2__sos img {
    display: block;
    width: 100%;
    height: auto;
}

.fe-part2__sos:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(214, 40, 40, 0.28),
        0 30px 48px -28px rgba(214, 40, 40, 0.7);
}

/* —— แบบสำรวจ —— */
.fe-part2__survey {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--p) 12%, #e6eef5),
        0 32px 56px -34px color-mix(in srgb, var(--p) 65%, transparent);
    text-align: left;
}

.fe-part2__survey-head {
    position: relative;
    padding: 1.15rem 1.3rem 1.2rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--p) 0%, var(--a) 100%);
}

.fe-part2__survey-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.3), transparent 42%),
        radial-gradient(circle at 4% 125%, rgba(255, 255, 255, 0.2), transparent 48%);
    pointer-events: none;
}

.fe-part2__survey-head > * {
    position: relative;
}

.fe-part2__survey-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.fe-part2__survey-mark {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.fe-part2__survey-mark svg path:last-child {
    stroke: var(--p);
}

.fe-part2__survey-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    font-size: 0.74rem;
    font-weight: 700;
}

.fe-part2__survey-live.is-closed {
    opacity: 0.85;
}

.fe-part2__survey-pulse {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #fff;
    animation: fe-part2-pulse 1.8s ease-out infinite;
}

.fe-part2__survey-live.is-closed .fe-part2__survey-pulse {
    animation: none;
    opacity: 0.6;
}

.fe-part2__survey-kicker,
.fe-part2__survey-sub {
    margin: 0;
}

.fe-part2__survey-kicker {
    margin-top: 0.85rem;
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.fe-part2__survey-sub {
    margin-top: 0.2rem;
    font-size: 0.86rem;
    opacity: 0.92;
}

.fe-part2__survey-body {
    padding: 1.15rem 1.2rem 1.3rem;
}

.fe-part2__survey-title {
    margin: 0 0 0.9rem;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
}

.fe-part2__survey-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fe-part2__survey-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.05rem;
    margin: 0;
    padding: 0.42rem 0.75rem 0.42rem 0.5rem;
    overflow: hidden;
    border: 1.5px solid #e3ebf3;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.fe-part2__survey-item:hover {
    border-color: color-mix(in srgb, var(--p) 45%, #fff);
    box-shadow: 0 10px 20px -14px color-mix(in srgb, var(--p) 60%, transparent);
    transform: translateY(-1px);
}

.fe-part2__survey-item:has(input:checked) {
    border-color: var(--p);
    background: color-mix(in srgb, var(--p) 6%, #fff);
    box-shadow: 0 0 0 1px var(--p);
}

.fe-part2__survey-item:focus-within {
    outline: 2px solid color-mix(in srgb, var(--p) 55%, #fff);
    outline-offset: 2px;
}

.fe-part2__survey-item.is-lead {
    border-color: var(--p);
}

.fe-part2__survey-form.is-answered .fe-part2__survey-item {
    cursor: default;
    pointer-events: none;
}

.fe-part2__survey-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--fe-survey-pct, 0%);
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--p) 16%, #fff),
        color-mix(in srgb, var(--a) 26%, #fff)
    );
    pointer-events: none;
    transition: width 0.55s ease;
}

.fe-part2__survey-item.is-lead .fe-part2__survey-bar {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--p) 28%, #fff),
        color-mix(in srgb, var(--a) 42%, #fff)
    );
}

.fe-part2__survey-label {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    color: #16324a;
    font-size: 0.93rem;
    line-height: 1.35;
    cursor: inherit;
}

.fe-part2__survey-label input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fe-part2__survey-no {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--p) 10%, #fff);
    color: var(--p);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.fe-part2__survey-item:has(input:checked) .fe-part2__survey-no {
    background: linear-gradient(135deg, var(--p), var(--a));
    color: #fff;
    transform: scale(1.06);
}

.fe-part2__survey-text {
    flex: 1 1 auto;
}

.fe-part2__survey-lead {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: var(--p);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}

.fe-part2__survey-result {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.fe-part2__survey-lead[hidden],
.fe-part2__survey-result[hidden],
.fe-part2__survey-hint[hidden],
.fe-part2__survey-champ[hidden],
.fe-part2__survey-total[hidden],
.fe-part2__survey-done[hidden] {
    display: none !important;
}

.fe-part2__survey-pct {
    display: inline-block;
    min-width: 3.2rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #fff;
    color: var(--p);
    font-size: 0.75rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: center;
    box-shadow: 0 1px 3px rgba(16, 38, 60, 0.1);
}

.fe-part2__survey-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.fe-part2__survey-submit,
.fe-part2__survey-peek {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 48px;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
}

.fe-part2__survey-submit {
    border: 0;
    background: linear-gradient(135deg, var(--p), var(--a));
    color: #fff;
    box-shadow: 0 14px 24px -12px color-mix(in srgb, var(--p) 75%, transparent);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.fe-part2__survey-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.fe-part2__survey-submit:disabled {
    cursor: wait;
    filter: saturate(0.7);
}

.fe-part2__survey-peek {
    border: 1.5px solid color-mix(in srgb, var(--p) 30%, #d7e3ee);
    background: #fff;
    color: var(--p);
}

.fe-part2__survey-peek:hover,
.fe-part2__survey-peek[aria-pressed="true"] {
    background: color-mix(in srgb, var(--p) 8%, #fff);
}

.fe-part2__survey-submit:focus-visible,
.fe-part2__survey-peek:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--p) 55%, #fff);
    outline-offset: 3px;
}

.fe-part2__survey-done,
.fe-part2__survey-champ,
.fe-part2__survey-hint {
    margin: 0 0 0.75rem;
}

.fe-part2__survey-done {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--p) 10%, #fff);
    color: var(--p);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
}

.fe-part2__survey-champ {
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    background: color-mix(in srgb, var(--p) 8%, #fff);
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.5;
}

.fe-part2__survey-champ strong {
    display: inline-block;
    margin-top: 0.1rem;
    color: var(--p);
    font-size: 1rem;
}

.fe-part2__survey-hint {
    color: #b42318;
    font-size: 0.84rem;
    font-weight: 700;
}

.fe-part2__survey-total {
    margin: 0.85rem 0 0;
    color: var(--mute);
    font-size: 0.82rem;
    text-align: center;
}

@keyframes fe-part2-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); }
    100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

@media (min-width: 560px) {
    .fe-part2__channels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    /* จำนวนคี่ — ใบสุดท้ายอยู่กึ่งกลางแถว */
    .fe-part2__channels > .fe-part2__chan:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 0.5rem);
    }
}

@media (min-width: 1024px) {
    .fe-part2__head {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }

    .fe-part2__layout {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    }

    .fe-part2__aside {
        max-width: none;
        margin-inline: 0;
    }
}

@media (max-width: 559px) {
    .fe-part2__lead {
        padding: 0.75rem 0.9rem;
        border-radius: 16px;
    }

    .fe-part2__slides .splide__track {
        border-radius: 18px;
    }

    .fe-part2__survey,
    .fe-part2__sos {
        border-radius: 22px;
    }

    .fe-part2__survey-head {
        padding: 1rem 1rem 1.05rem;
    }

    .fe-part2__survey-body {
        padding: 1rem 0.85rem 1.1rem;
    }

    .fe-part2__survey-label {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-part2__chan,
    .fe-part2__sos,
    .fe-part2__survey-item,
    .fe-part2__survey-bar,
    .fe-part2__survey-no,
    .fe-part2__survey-submit {
        transition: none;
    }

    .fe-part2__survey-pulse {
        animation: none;
    }
}

/* —— Participate แบบ 2 · หัวบนแบบเดิม (กึ่งกลาง + ข้อความวิ่ง) —— */
.fe-part2 .fe-part2__head.fe-part2__head--orig {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    width: 100%;
    text-align: center;
}

.fe-part2 .fe-part2__head--orig .fe-part2__orig-title {
    justify-content: center;
    width: 100%;
    text-align: center;
}

.fe-part2__orig-title {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.7rem;
    margin: 0;
    color: var(--fe-wfont-part, #111);
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.25;
}

.fe-part2__orig-icon {
    display: block;
    width: clamp(2rem, 3.5vw, 3rem);
    height: auto;
}

.fe-part2__orig-accent {
    color: var(--fe-wfont-part-accent, #00cc7e);
}

.fe-part2__marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.fe-part2__marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 100%;
    animation: fe-marquee 55s linear infinite;
    color: #111;
    font-size: clamp(1rem, 2vw, 1.35rem);
    text-shadow:
        -0.25px -0.25px 0 #ff9900,
         0.25px -0.25px 0 #ff9900,
        -0.25px  0.25px 0 #ff9900,
         0.25px  0.25px 0 #ff9900;
}

.fe-part2__marquee:hover .fe-part2__marquee-track {
    animation-play-state: paused;
}

.fe-part2__marquee-star {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
}

/* —— Participate แบบ 2 · หน้าตาตามแบบการ์ดช่องทางร้องเรียน —— */
.fe-part2 .fe-part2__shell {
    max-width: 1420px;
}

.fe-part2__panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.fe-part2 .fe-part2__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.fe-part2__head-main {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
}

.fe-part2__head-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 17px;
    background: linear-gradient(140deg, var(--a), var(--p));
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 12px 20px -10px color-mix(in srgb, var(--p) 75%, transparent);
}

.fe-part2 .fe-part2__eyebrow {
    margin: 0;
    color: var(--p);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.fe-part2 .fe-part2__title {
    margin: 0.15rem 0 0;
    color: var(--p);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
}

.fe-part2 .fe-part2__lead {
    margin: 0.25rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #71879a;
    font-size: 0.94rem;
    line-height: 1.55;
}

.fe-part2__steps {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.7rem;
    color: #2f7fc4;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.fe-part2__steps-line {
    width: 2.8rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--a));
}

.fe-part2__steps i {
    font-size: 0.72rem;
    transition: transform 0.18s ease;
}

.fe-part2__steps:hover i,
.fe-part2__steps:focus-visible i {
    transform: translateX(3px);
}

.fe-part2__steps:focus-visible,
.fe-part2__card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--p) 55%, #fff);
    outline-offset: 3px;
}

.fe-part2 .fe-part2__layout {
    margin-top: clamp(1.1rem, 2.2vw, 1.6rem);
}

/* การ์ดช่องทาง 6 ใบ */
.fe-part2__cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 0.9rem;
}

.fe-part2__card {
    --tone: #64748b;
    --tone-bg: #f8fafc;
    --tone-icon: #e2e8f0;
    display: flex;
    gap: 0.9rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--tone) 18%, #fff);
    border-radius: 20px;
    background: var(--tone-bg);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fe-part2__card--rose { --tone: #e5484d; --tone-bg: linear-gradient(135deg, #fff5f5, #ffecec); --tone-icon: #ffd9dc; }
.fe-part2__card--violet { --tone: #7c5cd6; --tone-bg: linear-gradient(135deg, #f6f3ff, #ece7ff); --tone-icon: #ddd2ff; }
.fe-part2__card--green { --tone: #1d9d66; --tone-bg: linear-gradient(135deg, #effaf3, #dcf5e6); --tone-icon: #c9efd9; }
.fe-part2__card--amber { --tone: #dd7f0d; --tone-bg: linear-gradient(135deg, #fff8ec, #ffedd1); --tone-icon: #ffdfae; }
.fe-part2__card--blue { --tone: #1877f2; --tone-bg: linear-gradient(135deg, #f2f7ff, #dbeafe); --tone-icon: #1877f2; }
.fe-part2__card--lime { --tone: #06a94c; --tone-bg: linear-gradient(135deg, #effaf1, #d9f7e2); --tone-icon: #06c755; }
.fe-part2__card--custom { --tone-bg: linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--tone) 9%, #fff)); --tone-icon: color-mix(in srgb, var(--tone) 16%, #fff); }

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

.fe-part2__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 28px -20px color-mix(in srgb, var(--tone) 65%, transparent);
}

.fe-part2__card-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 4rem;
    height: 4rem;
    overflow: hidden;
    border-radius: 17px;
    background: var(--tone-icon);
    color: var(--tone);
    font-size: 1.7rem;
}

.fe-part2__card--blue .fe-part2__card-icon,
.fe-part2__card--lime .fe-part2__card-icon {
    border-radius: 50%;
    color: #fff;
}

.fe-part2__card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.fe-part2__card-title {
    color: var(--tone);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.35;
}

.fe-part2__card-desc {
    margin-top: 0.2rem;
    color: #5f7387;
    font-size: 0.86rem;
    line-height: 1.5;
}

.fe-part2__card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.65rem;
}

.fe-part2__card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--tone);
    color: #fff;
    font-size: 0.79rem;
    font-weight: 700;
    white-space: nowrap;
}

.fe-part2__card-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--tone);
    color: #fff;
    font-size: 0.72rem;
}

.fe-part2__cards > .fe-part2__chan {
    display: block;
    height: auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
    filter: none;
}

.fe-part2__cards > .fe-part2__chan img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

/* การ์ดช่องทาง · ทรงตามแบบ (พื้นขาว ขอบบนสี ไอคอนขวา) */
.fe-part2 .fe-part2__card {
    position: relative;
    overflow: hidden;
    align-items: stretch;
    height: 13.75rem;
    min-height: 13.75rem;
    padding: 1.15rem 1.1rem 1rem;
    border: 1px solid #e8eef5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 28px -26px rgba(20, 54, 86, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fe-part2 .fe-part2__card:hover,
.fe-part2 .fe-part2__card:focus-visible {
    border-color: var(--tone);
    box-shadow:
        0 22px 36px -16px color-mix(in srgb, var(--tone) 62%, transparent),
        0 0 0 1px var(--tone);
    transform: translateY(-3px);
}

.fe-part2 .fe-part2__card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 45%, #ff7ab8));
}

.fe-part2 .fe-part2__card::after {
    content: none;
}

.fe-part2 .fe-part2__card-body {
    position: relative;
    z-index: 1;
    order: 1;
}

.fe-part2 .fe-part2__card-icon {
    position: relative;
    z-index: 1;
    order: 2;
    align-self: flex-start;
    width: 5.3rem;
    height: 5.3rem;
    margin-top: 0.35rem;
    border-radius: 20px;
    font-size: 2.15rem;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 16%, #fff);
}

.fe-part2 .fe-part2__card--blue .fe-part2__card-icon,
.fe-part2 .fe-part2__card--lime .fe-part2__card-icon {
    border-radius: 20px;
}

.fe-part2__card-tag {
    align-self: flex-start;
    margin-bottom: 0.65rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tone) 11%, #fff);
    color: color-mix(in srgb, var(--tone) 78%, #33475c);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.3;
}

.fe-part2 .fe-part2__card-title {
    color: #143656;
    font-size: 1.08rem;
}

.fe-part2 .fe-part2__card-desc {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.88rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.fe-part2 .fe-part2__card-foot {
    justify-content: space-between;
    gap: 0.6rem;
}

.fe-part2 .fe-part2__card-cta {
    padding: 0.34rem 0.85rem;
    border-radius: 999px;
    background: var(--tone);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 8px 14px -8px color-mix(in srgb, var(--tone) 70%, transparent);
}

.fe-part2 .fe-part2__card-arrow {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--tone);
    color: #fff;
    font-size: 0.85rem;
    box-shadow: 0 8px 14px -8px color-mix(in srgb, var(--tone) 70%, transparent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fe-part2 .fe-part2__card:hover .fe-part2__card-arrow,
.fe-part2 .fe-part2__card:focus-visible .fe-part2__card-arrow {
    transform: scale(1.12);
    box-shadow: 0 10px 18px -8px color-mix(in srgb, var(--tone) 75%, transparent);
}

@media (max-width: 559px) {
    .fe-part2 .fe-part2__card {
        height: 13rem;
        min-height: 13rem;
        padding: 1rem 0.95rem 0.95rem;
    }

    .fe-part2 .fe-part2__card-icon {
        width: 4.3rem;
        height: 4.3rem;
        border-radius: 17px;
        font-size: 1.75rem;
    }
}

/* แถบสายด่วนใต้การ์ด */
.fe-part2 .fe-part2__sos {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    overflow: visible;
    border: 1px solid #ffd3d3;
    border-radius: 19px;
    background: linear-gradient(120deg, #fff5f5, #ffe9e9);
    box-shadow: none;
    color: #c81e1e;
    text-decoration: none;
}

.fe-part2 .fe-part2__sos:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 26px -20px rgba(200, 30, 30, 0.55);
}

.fe-part2__sos-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: #e02424;
    color: #fff;
    font-size: 1.15rem;
}

.fe-part2__sos-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fe-part2__sos-copy strong {
    font-size: 1.05rem;
    line-height: 1.3;
}

.fe-part2__sos-copy small {
    color: #a15b5b;
    font-size: 0.83rem;
}

.fe-part2__sos-arrow {
    margin-left: auto;
    font-size: 0.8rem;
}

/* รูปสายด่วน 1669 เหนือแผงประเมิน */
.fe-part2__sos-img {
    display: block;
    overflow: hidden;
    border: 1px solid #ffd3d3;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 30px -24px rgba(200, 30, 30, 0.55);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fe-part2__sos-img img {
    display: block;
    width: 100%;
    height: auto;
}

.fe-part2__sos-img:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 34px -22px rgba(200, 30, 30, 0.65);
}

.fe-part2__sos-img:focus-visible {
    outline: 3px solid rgba(224, 36, 36, 0.55);
    outline-offset: 3px;
}

/* แผงประเมินด้านขวา */
.fe-part2 .fe-part2__survey {
    border: 1px solid #dbe9f8;
    border-radius: 26px;
    background: linear-gradient(180deg, #f3f8ff 0%, #fdf7ff 58%, #fff 100%);
    box-shadow: 0 24px 42px -34px color-mix(in srgb, var(--p) 65%, transparent);
}

.fe-part2 .fe-part2__survey-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.35rem 1.2rem 0.6rem;
    overflow: visible;
    background: transparent;
    color: var(--ink);
    text-align: center;
}

.fe-part2 .fe-part2__survey-head::before {
    content: none;
}

.fe-part2 .fe-part2__survey-live {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: #fff;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--p) 20%, #fff);
    color: var(--p);
}

.fe-part2 .fe-part2__survey-pulse {
    background: var(--p);
}

.fe-part2 .fe-part2__survey-mark {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--a), var(--p));
    box-shadow: 0 12px 20px -10px color-mix(in srgb, var(--p) 75%, transparent);
    color: #fff;
    font-size: 1.4rem;
}

.fe-part2 .fe-part2__survey-kicker {
    margin-top: 0.7rem;
    color: var(--p);
    font-size: 1.3rem;
    line-height: 1.25;
}

.fe-part2 .fe-part2__survey-kicker strong {
    font-size: 1.55rem;
    font-weight: 800;
}

.fe-part2 .fe-part2__survey-sub {
    margin-top: 0.15rem;
    color: #71879a;
    font-size: 0.9rem;
    opacity: 1;
}

.fe-part2__survey-desc {
    margin: 0.55rem 0 0;
    color: #8799aa;
    font-size: 0.84rem;
    line-height: 1.55;
}

.fe-part2 .fe-part2__survey-body {
    padding: 0.7rem 1.15rem 1.2rem;
}

.fe-part2 .fe-part2__survey-title {
    text-align: center;
    font-size: 0.96rem;
}

.fe-part2 .fe-part2__survey-item {
    border-color: #e7eef6;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.88);
}

.fe-part2 .fe-part2__survey-bar {
    top: auto;
    height: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg, var(--p), #7c6cf0);
}

.fe-part2 .fe-part2__survey-no {
    width: 1.9rem;
    height: 1.9rem;
    background: linear-gradient(140deg, var(--a), var(--p));
    color: #fff;
}

.fe-part2 .fe-part2__survey-item:has(input:checked) .fe-part2__survey-no {
    background: linear-gradient(140deg, var(--p), #7c6cf0);
}

.fe-part2 .fe-part2__survey-submit {
    background: linear-gradient(90deg, var(--p), #7c6cf0);
}

.fe-part2__survey-note {
    margin: 0.85rem 0 0;
    color: #8799aa;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.fe-part2__survey-note i {
    margin-right: 0.3rem;
}

/* ชุดการ์ดช่องทาง · หน้าละ 4 ใบ เกินนั้นเป็นสไลด์วนลูป */
.fe-part2__cards-slider {
    width: 100%;
    min-width: 0;
}

.fe-part2__cards-slider .splide__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fe-part2__cards-slider .splide__slide {
    min-width: 0;
}

.fe-part2__cards-slider--static {
    visibility: visible;
}

.fe-part2__cards-slider--static .splide__list {
    display: block;
}

.fe-part2__cards-slider--static .splide__slide {
    width: 100%;
}

/* รูปหัวแผงประเมิน (W20 · 400 × 150) */
.fe-part2 .fe-part2__survey-head--img {
    padding: 0;
}

.fe-part2__survey-headimg {
    display: block;
    width: 100%;
    height: auto;
}

/* แผงประเมิน · ฉบับสั้น */
.fe-part2 .fe-part2__survey-head {
    padding: 0.95rem 1rem 0.35rem;
}

/* รูปหัวกราฟิก (W20) แสดงเต็มแผง ชิดขอบบน/ซ้าย/ขวา ไม่เว้นขอบ */
.fe-part2 .fe-part2__survey-head.fe-part2__survey-head--img {
    padding: 0;
}

.fe-part2 .fe-part2__survey-head--img .fe-part2__survey-headimg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.fe-part2 .fe-part2__survey-mark {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.05rem;
}

.fe-part2 .fe-part2__survey-kicker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.4rem;
    margin-top: 0.5rem;
    font-size: 1.08rem;
}

.fe-part2 .fe-part2__survey-kicker strong {
    font-size: 1.08rem;
}

.fe-part2 .fe-part2__survey-body {
    padding: 0.55rem 1rem 1rem;
}

.fe-part2 .fe-part2__survey-title {
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
}

.fe-part2 .fe-part2__survey-options {
    gap: 0.35rem;
}

.fe-part2 .fe-part2__survey-item {
    min-height: 2.55rem;
    padding: 0.3rem 0.6rem 0.3rem 0.4rem;
    border-radius: 13px;
}

.fe-part2 .fe-part2__survey-label {
    gap: 0.5rem;
    font-size: 0.88rem;
}

.fe-part2 .fe-part2__survey-no {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.62rem;
}

.fe-part2 .fe-part2__survey-actions {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.fe-part2 .fe-part2__survey-submit,
.fe-part2 .fe-part2__survey-peek {
    min-height: 42px;
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (min-width: 560px) {
    .fe-part2__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .fe-part2__cards > .fe-part2__chan:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 0.5rem);
    }
}

@media (min-width: 1024px) {
    .fe-part2 .fe-part2__layout {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 400px);
    }
}

@media (max-width: 559px) {
    .fe-part2__steps {
        margin-top: 0.2rem;
    }

    .fe-part2__card {
        padding: 0.85rem;
    }

    .fe-part2__card-icon {
        width: 3.4rem;
        height: 3.4rem;
        font-size: 1.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-part2__card,
    .fe-part2__steps i,
    .fe-part2 .fe-part2__sos {
        transition: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Saraban / ยุทธศาสตร์ — พื้นหลังอย่างเดียว 1920×910 (W17 / W18)            */
/* -------------------------------------------------------------------------- */
.fe-saraban,
.fe-strategy {
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    aspect-ratio: 1920 / 910;
    overflow: hidden;
    background: #fff;
}

/* ยุทธศาสตร์การพัฒนา — ข้อมูลจากเมนูหลังบ้าน + รูปนำเสนอ W18.1 บนพื้นหลัง W18 */
.fe-strategy--data {
    position: relative;
    container-type: inline-size;
    display: flex;
    align-items: center;
    aspect-ratio: auto;
    min-height: 700px;
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    background-color: #0ea5e9;
    background-image: var(--fe-strategy-bg, none), linear-gradient(115deg, #0369a1 0%, #0ea5e9 48%, #7dd3fc 100%);
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
}

.fe-strategy__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 1.75rem;
    width: 100%;
}

.fe-strategy__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: start;
    width: max-content;
    max-width: 24rem;
    gap: 1.35rem;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #fff;
}

.fe-strategy__intro {
    margin: 0;
    max-width: 24rem;
    color: var(--fe-wfont-strategy, #14521b);
    font-size: 15.8px;
    font-weight: 700;
    line-height: 1.65;
    white-space: pre-line;
    word-break: keep-all;
}

.fe-strategy__left-photo {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-top: 0;
    object-fit: contain;
    background: none;
}

.fe-strategy__heading {
    margin: 0;
    color: var(--fe-wfont-strategy, #14521b);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    white-space: pre-line;
}

.fe-strategy__heading.is-two-lines,
.fe-strategy__intro.is-two-lines {
    text-align: center;
}

.fe-strategy__sub {
    margin: 0.35rem 0 0;
    font-size: clamp(0.9rem, 1.4vw, 1.08rem);
    font-weight: 700;
    line-height: 1.4;
    white-space: pre-line;
}

.fe-strategy__more {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 0.75rem;
    margin-top: 0;
    padding: 0.42rem 0.42rem 0.42rem 1.2rem;
    border-radius: 999px;
    background: #2eae4f;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.fe-strategy__more:hover,
.fe-strategy__more:focus-visible {
    background: #249443;
    color: #fff;
    transform: translateY(-2px);
    outline: none;
}

button.fe-strategy__more {
    border: 0;
    font-family: inherit;
    cursor: default;
}

button.fe-strategy__more:hover,
button.fe-strategy__more:focus-visible {
    background: #2eae4f;
    transform: none;
}

.fe-strategy__more-arrow {
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: #fff;
    color: #2eae4f;
    font-size: 0.8rem;
}

.fe-strategy__center {
    min-width: 0;
    text-align: center;
}

.fe-strategy__fg {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    max-height: 540px;
    object-fit: contain;
    margin: 0 auto;
}

.fe-strategy__right {
    min-width: 0;
}

.fe-strategy__list-title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    text-shadow: 0 1px 10px rgba(3, 60, 100, 0.35);
}

.fe-strategy__list {
    list-style: none;
    margin: 0;
    padding: 0.15rem 0 0.15rem 4.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    overflow: visible;
}

.fe-strategy__item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 5.75rem;
    margin-right: 28px;
    padding: 0.7rem 1rem 0.7rem 2rem;
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 40, 70, 0.1);
    overflow: visible;
}

.fe-strategy__icon {
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 5.75rem;
    height: 5.75rem;
    padding: 0.42rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 16px rgba(20, 50, 80, 0.18);
    transform: translate(-78%, -50%);
}

.fe-strategy__icon svg,
body.fe-site .fe-strategy__icon img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 50%;
    object-fit: contain;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 46%),
        linear-gradient(160deg, color-mix(in srgb, var(--fe-st-color, #f97316) 72%, #fff), var(--fe-st-color, #f97316));
}

body.fe-site .fe-strategy__icon img {
    padding: 18%;
}

.fe-strategy__item-body {
    flex: 1;
    min-width: 0;
}

.fe-strategy__slider {
    min-width: 0;
}

.fe-strategy__slider .splide__track {
    padding-left: 4.6rem;
    touch-action: pan-y;
}

.fe-strategy__slider .fe-strategy__list {
    gap: 0;
    padding-left: 0;
}

.fe-strategy__slider .splide__pagination {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.7rem 0 0;
    padding: 0;
    transform: none !important;
}

.fe-strategy__slider .splide__pagination__page {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fe-slide-dot, #fff) 55%, transparent);
    opacity: 1;
    transform: none;
}

.fe-strategy__slider .splide__pagination__page.is-active {
    width: 1.4rem;
    background: var(--fe-slide-dot-on, #fff);
    transform: none;
}

.fe-strategy__item-title {
    margin: 0.1rem 0 0;
    color: var(--fe-st-color, #f97316);
    font-size: clamp(0.95rem, 1.3vw, 1.12rem);
    font-weight: 800;
    line-height: 1.3;
}

.fe-strategy__item-detail {
    margin: 0.15rem 0 0;
    color: #243447;
    font-size: clamp(0.8rem, 1.05vw, 0.9rem);
    line-height: 1.55;
}

@media (min-width: 1024px) {
    .fe-strategy--data {
        box-sizing: border-box;
        height: 700px;
        max-height: 700px;
        padding: 0;
        container-type: size;
    }

    .fe-strategy__inner {
        grid-template-columns: minmax(200px, 0.84fr) minmax(0, 1.36fr) minmax(300px, 1fr);
        gap: 2rem;
    }

    body.fe-site .fe-strategy__fg {
        max-width: none;
        max-height: 630px;
    }

    .fe-strategy__inner:not(.fe-strategy__inner--nofg):not(.fe-strategy__inner--noleft)::before {
        content: "";
        grid-column: 1;
        grid-row: 1;
    }

    .fe-strategy__left {
        --fe-st-scale: max(100cqw / 1920, 100cqh / 910);
        position: absolute;
        z-index: 3;
        top: calc((100cqh - 910 * var(--fe-st-scale)) / 2 + 366 * var(--fe-st-scale));
        left: calc((100cqw - 1920 * var(--fe-st-scale)) / 2 + 291 * var(--fe-st-scale));
        width: max-content;
        max-width: 22rem;
        margin: 0;
        transform: translateX(-50%);
    }

    .fe-strategy__inner--nofg {
        grid-template-columns: minmax(230px, 0.9fr) minmax(320px, 1.3fr);
    }

    .fe-strategy__inner--noleft {
        grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.15fr);
    }

    .fe-strategy__inner--noleft.fe-strategy__inner--nofg {
        grid-template-columns: minmax(0, 720px);
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .fe-strategy--data {
        min-height: 0;
    }

    .fe-strategy__fg {
        max-height: 320px;
    }
}

/* -------------------------------------------------------------------------- */
/* Search — ค้นหา (W19 พื้นหลัง · W19.1 รูปคน · W19.2 สีการ์ดขวา)           */
/* -------------------------------------------------------------------------- */
.fe-searchhero {
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    padding: 0;
}

.fe-searchhero__layout {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
    height: 700px;
    overflow: hidden;
    border-radius: 0;
    background-color: transparent;
    background-image: var(--fe-search-bg, none);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.fe-searchhero__stage {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 0;
    overflow: visible;
    background: transparent;
}

body.fe-site .fe-searchhero__bg {
    display: none;
}

.fe-searchhero__stage-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 0;
}

.fe-searchhero__main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 0;
    padding: 1.15rem 1.15rem 1.15rem clamp(7.5rem, 28%, 16rem);
}

.fe-searchhero__person {
    position: absolute;
    left: calc(var(--fe-pad-x) * -1 - 1.25rem);
    bottom: 0;
    z-index: 2;
    display: block;
    height: 33%;
    width: auto;
    max-width: 18%;
    transform: none;
    margin: 0;
    object-fit: contain;
    object-position: left bottom;
    pointer-events: none;
}

.fe-searchhero__copy {
    text-align: center;
}

.fe-searchhero__hello {
    margin: 0;
    color: #3d4d63;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 600;
}

.fe-searchhero__ask {
    margin: 0.15rem 0 0.85rem;
    color: var(--fe-wfont-search, #2f6bff);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
}

.fe-searchhero__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fe-searchhero__form {
    display: flex;
    align-items: center;
    max-width: 460px;
    margin: 0 auto;
    padding: 0.28rem;
    border: 0;
    outline: none;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(30, 60, 110, 0.12);
}

.fe-searchhero__form input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    color: #16324a;
    -webkit-appearance: none;
    appearance: none;
}

.fe-searchhero__form input:focus,
.fe-searchhero__form input:focus-visible {
    outline: none;
    border: 0;
    box-shadow: none;
}

.fe-searchhero__form button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    min-height: 42px;
    padding: 0 1.15rem;
    background: #ff7a18;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.fe-searchhero__form button:hover {
    filter: brightness(1.05);
}

.fe-searchhero__form button:focus-visible,
.fe-searchhero__tile:focus-visible {
    outline: 2px solid #2f6bff;
    outline-offset: 2px;
}

.fe-searchhero__card {
    position: relative;
    z-index: 1;
    align-self: end;
    justify-self: stretch;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100% - 1.35rem);
    margin: 0;
    min-height: 0;
    border: 8px solid var(--fe-search-card-line, #d7c8ff);
    border-right: 0;
    border-radius: 26px 0 0 26px;
    background: var(--fe-search-card, #6428e8);
    padding: 1rem 0.85rem 0.95rem;
    color: #fff;
    box-sizing: border-box;
}

.fe-searchhero__card-title {
    margin: 0 0 0.8rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
}

.fe-searchhero__pages {
    --fe-search-slide-gap: 1.15rem;
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
}

.fe-searchhero__pages.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.fe-searchhero__pages img {
    -webkit-user-drag: none;
    user-select: none;
}

.fe-searchhero__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.fe-searchhero__page {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    transform: translate3d(calc(100% + var(--fe-search-slide-gap, 1.15rem)), 0, 0);
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.fe-searchhero__page.is-active {
    transform: translate3d(0, 0, 0);
    z-index: 2;
}

.fe-searchhero__page.is-prep-right,
.fe-searchhero__page.is-leave-right {
    transform: translate3d(calc(100% + var(--fe-search-slide-gap, 1.15rem)), 0, 0);
    z-index: 1;
}

.fe-searchhero__page.is-prep-left,
.fe-searchhero__page.is-leave-left {
    transform: translate3d(calc(-100% - var(--fe-search-slide-gap, 1.15rem)), 0, 0);
    z-index: 1;
}

.fe-searchhero__page.is-prep-right,
.fe-searchhero__page.is-prep-left {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .fe-searchhero__page {
        transition: none;
    }
}

@media (max-width: 767px) {
    .fe-searchhero__pages {
        flex: 0 0 auto;
        height: min(72vw, 420px);
    }
}

.fe-searchhero__tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.15rem;
    width: 100%;
    height: 100%;
    margin: 0;
}

.fe-searchhero__tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
}

.fe-searchhero__tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    transform: scale(1);
    transition: transform 0.28s ease;
}

.fe-searchhero__tile--empty {
    background: transparent;
    pointer-events: none;
}

.fe-searchhero__tile:hover img,
.fe-searchhero__tile:focus-visible img {
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .fe-searchhero__tile img {
        transition: none;
    }
}

.fe-searchhero__nav {
    position: relative;
    z-index: 3;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 0.75rem;
    min-height: 36px;
}

.fe-searchhero__nav-btn,
.fe-searchhero__dot {
    border: 0;
    cursor: pointer;
    color: #fff;
}

.fe-searchhero__nav-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.fe-searchhero__nav-btn:hover,
.fe-searchhero__nav-btn:focus-visible {
    background: rgba(255, 255, 255, 0.32);
}

.fe-searchhero__dots {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.fe-searchhero__dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.fe-searchhero__dot.is-active {
    width: 18px;
    background: #fff;
}

@media (max-width: 767px) {
    .fe-searchhero__layout {
        height: auto;
        overflow: visible;
    }

    .fe-searchhero__stage {
        height: auto;
        min-height: 0;
    }

    .fe-searchhero__card {
        display: none;
    }

    .fe-searchhero__main {
        flex-direction: column;
        justify-content: flex-end;
        padding: 1.15rem 0.9rem 0;
    }

    .fe-searchhero__person {
        display: none;
    }

    .fe-searchhero__copy {
        width: 100%;
        padding-bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .fe-searchhero__person {
        left: calc(var(--fe-pad-x-md) * -1 - 1.5rem);
    }
}

@media (min-width: 1024px) {
    .fe-searchhero > .fe-searchhero__layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr);
        gap: 0.9rem;
        padding-right: 0;
    }

    .fe-searchhero__person {
        left: calc(var(--fe-pad-x-lg) * -1 - 1.75rem);
    }

    .fe-searchhero__card {
        height: calc(100% - 3.5rem);
        padding: 1rem 0.8rem 0.85rem;
    }

    .fe-searchhero__card-title {
        margin-bottom: 0.75rem;
        font-size: 1.32rem;
    }

    .fe-searchhero__hello {
        font-size: clamp(1rem, 1.44vw, 1.32rem);
    }

    .fe-searchhero__ask {
        margin-bottom: 0.96rem;
        font-size: clamp(1.76rem, 2.56vw, 2.44rem);
    }

    .fe-searchhero__form {
        width: min(100% - 3rem, 520px);
        max-width: min(100% - 3rem, 520px);
        padding: 0.34rem;
    }

    .fe-searchhero__form input {
        padding: 0.76rem 1rem;
        font-size: 0.92rem;
    }

    .fe-searchhero__form button {
        min-height: 45px;
        padding: 0 1.32rem;
        font-size: 0.86rem;
    }

    .fe-searchhero__qa {
        position: relative;
        top: calc(3.25rem - 10px);
        width: min(100%, 368px);
        gap: 0.24rem;
    }

    .fe-searchhero__qa-banners {
        gap: 0.28rem;
    }

    .fe-searchhero__qa-bar,
    .fe-searchhero__qa-link,
    .fe-searchhero__qa-mail {
        min-height: 32px;
    }

    .fe-searchhero__qa-link,
    .fe-searchhero__qa-mail {
        gap: 0.24rem;
        padding: 0.22rem 0.4rem;
        font-size: calc(0.62rem + 3px);
    }

    .fe-searchhero__qa-ico svg {
        width: 12px;
        height: 12px;
    }
}

.fe-searchhero__qa {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: min(100%, 720px);
    margin: 2.15rem auto 0;
    min-width: 0;
}

.fe-searchhero__qa-banners {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.fe-searchhero__qa-banner {
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.fe-searchhero__qa-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.fe-searchhero__qa-bar {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 76px;
    border-radius: 12px;
    overflow: hidden;
}

.fe-searchhero__qa-link,
.fe-searchhero__qa-mail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 48px;
    padding: 0.4rem 0.55rem;
    font-size: calc(0.62rem + 3px);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.fe-searchhero__qa-link {
    background: linear-gradient(180deg, color-mix(in srgb, var(--fe-search-qa, #0470c3) 72%, #fff), var(--fe-search-qa, #0470c3));
    color: #fff;
}

.fe-searchhero__qa-mail {
    background: var(--fe-search-mail, #fff4b0);
    color: #16324a;
}

.fe-searchhero__qa-ico {
    display: inline-flex;
    flex: 0 0 auto;
}

.fe-searchhero__qa-link .fe-searchhero__qa-ico {
    color: #fff;
}

.fe-searchhero__qa-mail .fe-searchhero__qa-ico {
    color: var(--fe-search-qa, #0470c3);
}

.fe-searchhero__qa-link:hover,
.fe-searchhero__qa-mail:hover {
    filter: brightness(1.03);
}

.fe-searchhero__qa-link:focus-visible,
.fe-searchhero__qa-mail:focus-visible,
.fe-searchhero__qa-banner:focus-visible {
    outline: 2px solid #2f6bff;
    outline-offset: 2px;
}

/* ชุดแบนเนอร์เล็กลง 40% — ต้องชนะกฎ img ทั้งหน้า */
body.fe-site .fe-searchhero__person {
    height: auto;
    max-width: none;
    transform: scale(1.4);
    transform-origin: left bottom;
}

body.fe-site .fe-searchhero__qa {
    width: min(60%, 432px);
    gap: calc(0.55rem * 0.6);
    margin-top: calc(2.15rem * 0.6);
}

body.fe-site .fe-searchhero__qa-banners {
    gap: calc(0.65rem * 0.6);
}

body.fe-site .fe-searchhero__qa-banner {
    border-radius: calc(12px * 0.6);
}

body.fe-site .fe-searchhero__qa-bar {
    min-height: calc(76px * 0.6);
    border-radius: calc(12px * 0.6);
}

body.fe-site .fe-searchhero__qa-link,
body.fe-site .fe-searchhero__qa-mail {
    gap: 0.28rem;
    min-height: 40px;
    padding: 0.28rem 0.45rem;
    font-size: calc(0.62rem + 3px);
}

body.fe-site .fe-searchhero__qa-ico svg {
    width: calc(12px * 0.6);
    height: calc(12px * 0.6);
}

@media (max-width: 767px) {
    body.fe-site .fe-searchhero__qa {
        width: min(100%, 720px);
    }
}

@media (min-width: 768px) {
    body.fe-site .fe-searchhero__layout {
        height: auto;
        min-height: 700px;
    }

    body.fe-site .fe-searchhero__stage,
    body.fe-site .fe-searchhero__stage-inner,
    body.fe-site .fe-searchhero__main {
        height: auto;
    }

    body.fe-site .fe-searchhero__qa-banners,
    body.fe-site .fe-searchhero__qa-bar {
        grid-template-columns: 1fr;
    }

    body.fe-site .fe-searchhero__qa-banners {
        gap: 0.5rem;
    }

    body.fe-site .fe-searchhero__qa {
        gap: 0.5rem;
    }
}

@media (min-width: 1024px) {
    body.fe-site .fe-searchhero__main {
        align-items: flex-start;
        padding: 7.5rem 0.4rem 1.35rem clamp(16rem, 38%, 23rem);
    }

    body.fe-site .fe-searchhero__hello {
        font-size: clamp(1.15rem, 1.6vw, 1.5rem);
    }

    body.fe-site .fe-searchhero__ask {
        margin-bottom: 1.05rem;
        font-size: clamp(2rem, 2.8vw, 2.75rem);
    }

    body.fe-site .fe-searchhero__form {
        width: min(100%, 560px);
        max-width: min(100%, 560px);
        padding: 0.42rem;
    }

    body.fe-site .fe-searchhero__form input {
        padding: 0.95rem 1.15rem;
        font-size: 1.05rem;
    }

    body.fe-site .fe-searchhero__form button {
        min-height: 58px;
        padding: 0 1.55rem;
        font-size: 1.02rem;
    }

    body.fe-site .fe-searchhero__qa {
        top: 0;
        margin-right: auto;
        margin-left: auto;
    }

    body.fe-site .fe-searchhero__card {
        height: auto;
        align-self: stretch;
        margin-top: 3.5rem;
    }
}

@media (min-width: 768px) {
    .fe-searchhero__qa-banners,
    .fe-searchhero__qa-bar {
        grid-template-columns: 1fr 1fr;
    }
}

/* สี่ชิ้นขนาดเท่ากัน เรียง 2×2 */
body.fe-site .fe-searchhero__qa {
    width: min(100%, 560px);
    gap: 0.4rem;
}

body.fe-site .fe-searchhero__qa-banners,
body.fe-site .fe-searchhero__qa-bar {
    gap: 0.4rem;
}

@media (min-width: 768px) {
    body.fe-site .fe-searchhero__qa-banners,
    body.fe-site .fe-searchhero__qa-bar {
        grid-template-columns: 1fr 1fr;
    }
}

body.fe-site .fe-searchhero__qa-banner,
body.fe-site .fe-searchhero__qa-link,
body.fe-site .fe-searchhero__qa-mail {
    height: 120px;
    min-height: 120px;
    border-radius: 10px;
}

body.fe-site .fe-searchhero__qa-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

body.fe-site .fe-searchhero__qa-bar {
    min-height: 0;
    border-radius: 0;
    overflow: visible;
}

.fe-saraban__img,
.fe-strategy__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

/* -------------------------------------------------------------------------- */
/* Showcase — แหล่งท่องเที่ยว / ผลิตภัณฑ์ตำบล / สถานที่สำคัญ (W9–W11)        */
/* แสดงเฉพาะรูปพื้นหลังจากหลังบ้าน เต็มกว้าง สัดส่วน 1920 × --fe-showcase-h  */
/* -------------------------------------------------------------------------- */
.fe-showcase {
    position: relative;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    aspect-ratio: 1920 / var(--fe-showcase-h, 820);
    overflow: hidden;
    background: #fff;
}

.fe-showcase__img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center top;
}

/* เลเยอร์ทับพื้นหลัง (W11.5 เส้น) — ขนาด/ตำแหน่งเท่าพื้นหลังทุกพิกเซล */
.fe-showcase__line {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
}

/* มีรูปกลาง (W10.5): พื้นหลังเป็นเลเยอร์ล่าง เนื้อหาอยู่ใน flow
   — สูงตามสัดส่วนพื้นหลัง แต่ถ้าจอแคบเนื้อหาสูงกว่า บล็อกยืดตาม (ไม่ถูกตัด) */
.fe-showcase--layered,
.fe-showcase.fe-travel {
    display: flex;
    /* aspect-ratio ไม่ยืดตามเนื้อหา — ใช้ min-height = สัดส่วนพื้นหลัง แล้วให้สูงขึ้นได้เมื่อเนื้อหาเกิน (มือถือ) */
    aspect-ratio: auto;
    min-height: calc(min(100vw, 1920px) * var(--fe-showcase-h, 820) / 1920);
    overflow: hidden;
}

.fe-showcase--layered .fe-showcase__img {
    position: absolute;
    inset: 0;
}

/* แถบล่างสุด (W10.7 โต๊ะ 1920×245) — เต็มกว้าง ชิดขอบล่าง อยู่หลังเนื้อหา */
.fe-showcase__base {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    aspect-ratio: 1920 / var(--fe-showcase-base-h, 245);
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
}

.fe-showcase__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: clamp(1.5rem, 1.8vw, 2.25rem) 1rem;
    text-align: center;
}

.fe-showcase__head {
    margin-bottom: clamp(0.5rem, 0.9vw, 1rem);
}

.fe-showcase__title {
    margin: 0;
    color: var(--fe-wfont-showcase, #fff);
    font-size: clamp(1.6rem, 2.5vw, 3rem);
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.fe-showcase__org {
    margin: 0.15rem 0 0;
    color: #fff;
    font-size: clamp(0.95rem, 1.3vw, 1.6rem);
    font-weight: 400;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 10px rgba(0, 0, 0, 0.35);
}

/* รูปกลาง (W10.5) — 1435×500 ที่กว้าง 1920 ย่อตามจอ */
.fe-showcase__fg {
    display: block;
    width: min(1435px, calc(100% * 1435 / 1920)) !important;
    height: auto !important;
    max-width: none !important;
    aspect-ratio: 1435 / 500;
    object-fit: contain;
}

/* ผลิตภัณฑ์ตำบล — หัวข้อลงจากขอบบน รูป W10.5 อยู่กลางพื้นที่ที่เหลือ ชิดชุดล่าง */
#otop .fe-showcase__content {
    flex: 1 1 auto;
    align-self: stretch;
    justify-content: flex-start;
    min-height: 100%;
    padding-top: 90px;
    padding-bottom: clamp(1rem, 2vw, 1.75rem);
}

#otop .fe-showcase__fg {
    margin-top: auto;
}

#otop .fe-showcase__more {
    margin-top: 0.85rem;
}

.fe-showcase__more {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: clamp(1.5rem, 2.4vw, 2.75rem);
    min-height: 48px;
    padding: 0.6rem 2.1rem;
    border-radius: 999px;
    background: #fff;
    color: var(--fe-showcase-primary, #0470c3);
    font-size: clamp(1rem, 1.05vw, 1.2rem);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(4, 30, 70, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fe-showcase__more:hover,
.fe-showcase__more:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(4, 30, 70, 0.32);
}

.fe-showcase__more i {
    font-size: 0.9em;
    transition: transform 0.2s ease;
}

.fe-showcase__more:hover i {
    transform: translateX(3px);
}

@media (max-width: 767px) {
    /* มือถือ: ซูมเข้ากลางภาพ ให้หัวข้อ ผลิตภัณฑ์ และปุ่มใหญ่ชัด */
    .fe-showcase--layered {
        aspect-ratio: auto;
        min-height: 0;
        height: auto;
    }

    .fe-showcase--layered .fe-showcase__img {
        object-fit: cover;
        object-position: center 40%;
        transform: scale(1.55);
        transform-origin: center 40%;
    }

    .fe-showcase__content {
        position: relative;
        inset: auto;
        justify-content: center;
        padding: 1.35rem 0.65rem 1.45rem;
    }

    .fe-showcase__head {
        margin-bottom: 0.35rem;
    }

    .fe-showcase__title {
        font-size: 1.7rem;
    }

    .fe-showcase__org {
        font-size: 0.95rem;
    }

    .fe-showcase__fg {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        max-height: none;
        aspect-ratio: auto;
        object-fit: contain;
    }

    #otop .fe-showcase__content {
        min-height: 0;
        padding-top: 1.35rem;
        padding-bottom: 0.85rem;
    }

    #otop .fe-showcase__base {
        bottom: 1.5rem;
        z-index: 2;
    }

    #otop .fe-showcase__fg {
        position: relative;
        z-index: 3;
        margin-top: 0.45rem;
        margin-bottom: -1.15rem;
    }

    #otop .fe-showcase__more {
        position: relative;
        z-index: 4;
    }

    .fe-showcase__more {
        margin-top: 0.75rem;
        min-height: 46px;
        padding: 0.55rem 1.6rem;
        font-size: 1.05rem;
    }
}

/* -------------------------------------------------------------------------- */
/* แหล่งท่องเที่ยว (W9 / W9.5) — ภาพหัวข้อซ้าย + การ์ดแนวตั้ง 4 ใบ สลับสูงต่ำ      */
/* -------------------------------------------------------------------------- */
.fe-travel {
    display: flex;
    overflow: visible;
    background: linear-gradient(135deg, #5d6b78 0%, #a7b1ba 100%);
}

.fe-travel .fe-showcase__img {
    position: absolute;
    inset: 0;
}

.fe-travel__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
    align-items: center;
    gap: clamp(1.25rem, 3vw, 3.5rem);
    width: min(100% - 2rem, 1600px);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 4.5rem) 0;
}

.fe-travel__head {
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body.fe-site .fe-travel .fe-travel__title-img {
    display: block;
    width: 100%;
    max-width: min(100%, 600px);
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}

.fe-travel__title {
    margin: 0;
    color: var(--fe-wfont-showcase, #fff);
    font-size: clamp(2rem, 4vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.fe-travel__org {
    margin: 0.35rem 0 0;
    color: #fff;
    font-size: clamp(1rem, 1.4vw, 1.6rem);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.fe-travel__more {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.55rem 1.9rem;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.42);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.fe-travel__more:hover,
.fe-travel__more:focus-visible {
    background: #fff;
    color: #1f2937;
}

.fe-travel__body {
    min-width: 0;
}

/* แถบใต้การ์ด: ลูกศรอยู่กึ่งกลางชุดการ์ด · ดูทั้งหมดชิดขวา */
.fe-travel__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
    margin-top: 0.85rem;
}

.fe-travel__navs {
    grid-column: 2;
    display: flex;
    gap: 0.6rem;
}

.fe-travel__bar .fe-travel__more {
    grid-column: 3;
    justify-self: end;
}

.fe-travel__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.42);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.fe-travel__nav:hover,
.fe-travel__nav:focus-visible {
    background: #fff;
    color: #1f2937;
}

/* แถบการ์ดเลื่อนแนวนอน — เห็น 4 ใบ ปัด/ลาก/ลูกศร ดูใบถัดไป */
.fe-travel__cards {
    --fe-travel-gap: clamp(0.75rem, 1.4vw, 1.5rem);
    --fe-travel-drop: clamp(2rem, 3.6vw, 4rem);
    display: flex;
    align-items: flex-start;
    gap: var(--fe-travel-gap);
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    /* เผื่อการ์ดยกตอน hover + เงา + ใบต่ำลง */
    padding: 0.75rem 0.25rem calc(var(--fe-travel-drop) + 1.25rem);
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.fe-travel__cards::-webkit-scrollbar {
    display: none;
}

@media (pointer: fine) {
    .fe-travel__cards {
        cursor: grab;
    }
}

.fe-travel__cards.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.fe-travel__cards.is-dragging .fe-travel__card {
    pointer-events: none;
}

/* สลับสูง-ต่ำ แบบในรูป: ใบคู่ต่ำลง */
.fe-travel__card:nth-child(even) {
    margin-top: var(--fe-travel-drop);
    margin-bottom: calc(-1 * var(--fe-travel-drop));
}

.fe-travel__card {
    flex: 0 0 calc((100% - 3 * var(--fe-travel-gap)) / 3.5);
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 3 / 5.2;
    min-width: 0;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.75);
    border-radius: clamp(16px, 1.6vw, 26px);
    background: #3f4a55;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.3);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.fe-travel__card::before,
.fe-travel__card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.fe-travel__card::before {
    top: 0;
    height: 32%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
}

.fe-travel__card::after {
    bottom: 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.fe-travel__card:hover,
.fe-travel__card:focus-visible {
    transform: translateY(-6px);
    border-color: #fff;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.38);
}

.fe-travel__card-img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* W9.1 / W9.2 กรอบการ์ด (สลับใบคี่/คู่) — ทับทั้งใบ แทนเส้นขอบขาวเดิม */
body.fe-site .fe-travel .fe-travel__card-frame {
    position: absolute;
    left: var(--fe-fr-x, 0%);
    top: var(--fe-fr-y, 0%);
    z-index: 3;
    width: var(--fe-fr-w, 100%);
    height: var(--fe-fr-h, 100%);
    max-width: none;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* มีกรอบ: การ์ด = ตัวกรอบ (สัดส่วนตามส่วนทึบของภาพกรอบ) · ไม่มีข้อความ · รูปอยู่ใต้กรอบ ขอบรูปซ่อนใต้ขอบขาว */
.fe-travel__cards--framed .fe-travel__card {
    aspect-ratio: var(--fe-fr-ar, 0.8);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.35));
}

/* จอสัมผัส: drop-shadow บนการ์ดที่มีรูป + clip-path ต้องวาดใหม่ทุกเฟรมตอนปัด → กระตุก */
@media (hover: none), (max-width: 1023px) {
    .fe-travel__cards--framed .fe-travel__card {
        filter: none;
    }
}

/* มีกรอบ: คอลัมน์การ์ดกว้างขึ้น ช่องไฟแคบลง (โพลารอยด์มีขอบขาวในตัว) → การ์ดใหญ่ขึ้น */
@media (min-width: 1024px) {
    .fe-travel--framed .fe-travel__inner {
        grid-template-columns: minmax(0, 0.7fr) minmax(0, 2.3fr);
        gap: clamp(1rem, 2vw, 2.5rem);
        width: min(100% - 2rem, 1760px);
    }

    .fe-travel__cards--framed .fe-travel__card {
        flex-basis: 29.2%;
    }

    .fe-travel__cards--framed {
        column-gap: 6.2%;
    }

    .fe-travel--framed .fe-travel__body {
        padding-left: 80px;
    }
}

/* ชื่อโพสต์บนแถบขาวใต้รูป เอียงตามกรอบ */
.fe-travel__card-caption {
    position: absolute;
    z-index: 4;
    /* กึ่งกลางแถบขาว (วัดจากภาพกรอบ) แล้วหมุนตามความเอียง */
    left: var(--fe-cap-x, 50%);
    top: var(--fe-cap-y, 88%);
    width: var(--fe-cap-w, 88%);
    height: var(--fe-cap-h, 16%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4%;
    transform: translate(-50%, -50%) rotate(var(--fe-ph-rot, 0deg));
    color: #1f2937;
    text-align: center;
    pointer-events: none;
}

.fe-travel__card-caption > span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    text-overflow: ellipsis;
    font-size: clamp(0.95rem, 1.15vw, 1.35rem);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* ชื่อยาว: ตัวเล็กลง ให้ขึ้น 2 บรรทัดพอดีแถบขาว */
.fe-travel__card-caption.is-long > span {
    font-size: clamp(0.82rem, 0.92vw, 1.1rem);
}

.fe-travel__card-caption.is-xlong > span {
    font-size: clamp(0.74rem, 0.8vw, 0.95rem);
}

.fe-travel__cards--framed {
    --fe-travel-gap: clamp(0.5rem, 0.9vw, 1rem);
}

.fe-travel__cards--framed .fe-travel__card:hover,
.fe-travel__cards--framed .fe-travel__card:focus-visible {
    box-shadow: none;
}

.fe-travel__cards--framed .fe-travel__card::before,
.fe-travel__cards--framed .fe-travel__card::after {
    content: none;
}

/* รูปพอดีช่องของกรอบ (วัดจากภาพกรอบ) + เผื่อ 1% ให้ขอบรูปซ่อนใต้ขอบขาว */
.fe-travel__cards--framed .fe-travel__card-img {
    inset: auto !important;
    left: calc(var(--fe-ph-l, 6%) - 1%) !important;
    top: calc(var(--fe-ph-t, 6%) - 1%) !important;
    width: calc(var(--fe-ph-w, 88%) + 2%) !important;
    height: calc(var(--fe-ph-h, 70%) + 2%) !important;
    clip-path: var(--fe-ph-clip, none);
}

.fe-travel__cards--framed .fe-travel__card:hover .fe-travel__card-img {
    transform: none;
}

.fe-travel__card:hover .fe-travel__card-img {
    transform: scale(1.06);
}

.fe-travel__card-name,
.fe-travel__card-foot {
    position: relative;
    z-index: 2;
    padding: clamp(0.7rem, 1vw, 1rem) clamp(0.75rem, 1.1vw, 1.1rem);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.fe-travel__card-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    padding-bottom: 0;
    margin-bottom: clamp(0.7rem, 1vw, 1rem);
}

.fe-travel__card-name {
    font-size: clamp(0.95rem, 1vw, 1.15rem);
    font-weight: 700;
    line-height: 1.3;
}

.fe-travel__card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: clamp(0.8rem, 0.82vw, 0.95rem);
    line-height: 1.45;
    opacity: 0.95;
}

.fe-travel__empty {
    margin: 0;
    color: #fff;
    text-align: center;
}

/* แท็บเล็ต / มือถือ: หัวข้อด้านบน การ์ดเลื่อนแนวนอน */
@media (max-width: 1023px) {
    .fe-travel__inner {
        grid-template-columns: 1fr;
    }

    body.fe-site .fe-travel .fe-travel__title-img {
        max-width: min(300px, 62vw);
    }
}

@media (max-width: 1023px) {
    .fe-travel__card {
        flex-basis: calc((100% - 2 * var(--fe-travel-gap)) / 2.5);
    }
}

@media (max-width: 767px) {
    .fe-travel__cards {
        --fe-travel-gap: 0.75rem;
        margin: 0 -1rem;
        padding: 0.5rem 1rem 1.5rem;
        scroll-padding-inline: 1rem;
    }

    body.fe-site .fe-travel .fe-travel__title-img {
        max-width: min(340px, 82vw);
    }

    .fe-travel__cards {
        padding-bottom: 0.85rem;
    }

    .fe-travel__card {
        flex-basis: 50%;
        scroll-snap-align: center;
    }

    .fe-travel__card:nth-child(even) {
        margin-top: 0;
        margin-bottom: 0;
    }

    .fe-travel__bar .fe-travel__more {
        min-height: 42px;
        padding: 0.45rem 1.1rem;
    }

    .fe-travel__nav {
        width: 42px;
        height: 42px;
    }
}

/* เลื่อนมาถึง: แต่ละชิ้น (หัวข้อ / ชื่อหน่วยงาน / รูป / ปุ่ม) ลอยขึ้นเมื่อตัวมันเองเข้าจอ
   .fe-reveal ใส่ด้วย JS — ถ้า JS ไม่ทำงานเนื้อหาแสดงปกติ · ใช้ transform/opacity เท่านั้น */
.fe-showcase .fe-reveal {
    opacity: 0;
    transform: translate3d(0, 48px, 0);
    transition:
        opacity 0.8s ease,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.fe-showcase .fe-showcase__fg.fe-reveal {
    transform: translate3d(0, 90px, 0) scale(0.95);
    transition:
        opacity 1s ease,
        transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.fe-showcase .fe-showcase__more.fe-reveal {
    transform: translate3d(0, 32px, 0);
    transition:
        opacity 0.6s ease,
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.fe-showcase .fe-reveal.is-shown {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .fe-showcase .fe-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* -------------------------------------------------------------------------- */
/* สถานที่สำคัญ (W11 / W11.1 เส้น / W11.5 หัวข้อ) — รูปย่อตามเส้น ชี้แล้วเปลี่ยนพื้นหลัง */
/* -------------------------------------------------------------------------- */
.fe-landmark {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    aspect-ratio: 1920 / 910;
    overflow: hidden;
    background: #1f2937;
    color: #fff;
}

.fe-landmark__bgs,
.fe-landmark__shade,
.fe-landmark__stage {
    position: absolute;
    inset: 0;
}

body.fe-site .fe-landmark .fe-landmark__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

body.fe-site .fe-landmark .fe-landmark__bg.is-active {
    opacity: 1;
    transform: none;
}

.fe-landmark__shade {
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 35%);
    pointer-events: none;
}

body.fe-site .fe-landmark .fe-landmark__line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    pointer-events: none;
}

body.fe-site .fe-landmark .fe-landmark__title-img {
    position: absolute;
    top: clamp(1rem, 3vw, 3.5rem);
    left: clamp(1rem, 4vw, 5rem);
    z-index: 3;
    display: block;
    width: clamp(144px, 25vw, 480px);
    max-width: 32%;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.3));
}

.fe-landmark__pt {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(64px, 6.6vw, 128px);
    color: #fff;
    text-decoration: none;
    transform: translate(-50%, -38%);
    -webkit-tap-highlight-color: transparent;
}

.fe-landmark__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 2px solid rgba(230, 195, 122, 0.9);
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.5);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

body.fe-site .fe-landmark .fe-landmark__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.fe-landmark__label {
    margin-top: 0.35rem;
    max-width: 150%;
    font-size: clamp(0.72rem, 0.85vw, 1.05rem);
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.45);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fe-landmark__pt:hover .fe-landmark__thumb,
.fe-landmark__pt:focus-visible .fe-landmark__thumb,
.fe-landmark__pt.is-active .fe-landmark__thumb {
    transform: scale(1.12);
    border-color: #ffd98a;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 217, 138, 0.35);
}

.fe-landmark__pt:focus-visible {
    outline: none;
}

.fe-landmark__info {
    position: absolute;
    right: clamp(1rem, 4vw, 5rem);
    bottom: clamp(1.25rem, 7vw, 8rem);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: clamp(0.6rem, 1.2vw, 1.25rem);
    max-width: min(46%, 760px);
    text-align: right;
}

.fe-landmark__name {
    margin: 0;
    font-size: clamp(1.6rem, 3.1vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.fe-landmark__name.is-swap {
    opacity: 0;
    transform: translateY(8px);
}

.fe-landmark__more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.5rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    font-size: clamp(0.95rem, 1vw, 1.15rem);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.fe-landmark__more:hover,
.fe-landmark__more:focus-visible {
    background: #fff;
    color: #1f2937;
}

/* เลื่อนมาถึง: รูปย่อลอยขึ้นทีละจุดตามเส้น (is-armed ใส่ด้วย JS) */
.fe-landmark.is-armed .fe-landmark__pt {
    opacity: 0;
    translate: 0 30px;
    transition: opacity 0.6s ease, translate 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 0.09s);
}

.fe-landmark.is-armed .fe-landmark__info,
body.fe-site .fe-landmark.is-armed .fe-landmark__title-img {
    opacity: 0;
    translate: 0 30px;
    transition: opacity 0.6s ease, translate 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fe-landmark.is-armed.is-inview .fe-landmark__pt,
.fe-landmark.is-armed.is-inview .fe-landmark__info,
body.fe-site .fe-landmark.is-armed.is-inview .fe-landmark__title-img {
    opacity: 1;
    translate: none;
}

.fe-landmark.is-armed.is-inview .fe-landmark__info {
    transition-delay: 0.5s;
}

/* มือถือ: ซ่อนเส้น · รูปย่อเรียงแถวปัดได้ด้านล่าง · ชื่อเหนือแถว */
@media (max-width: 767px) {
    .fe-landmark {
        aspect-ratio: auto;
        min-height: 540px;
    }

    .fe-landmark .fe-landmark__line {
        display: none;
    }

    body.fe-site .fe-landmark .fe-landmark__title-img {
        width: 44%;
        max-width: 208px;
    }

    .fe-landmark__stage {
        inset: auto 0 1rem;
        display: flex;
        gap: 0.75rem;
        padding: 0.5rem 1rem 0.25rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .fe-landmark__stage::-webkit-scrollbar {
        display: none;
    }

    .fe-landmark__pt {
        position: static;
        flex: 0 0 104px;
        width: 104px;
        transform: none;
        scroll-snap-align: start;
    }

    .fe-landmark__label {
        font-size: 0.85rem;
    }

    .fe-landmark__info {
        left: 1rem;
        right: 1rem;
        bottom: 150px;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.fe-site .fe-landmark .fe-landmark__bg,
    .fe-landmark__name,
    .fe-landmark__thumb {
        transition: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Treasury — ประชาสัมพันธ์กองคลัง                                            */
/* -------------------------------------------------------------------------- */
.fe-treasury {
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    padding: clamp(1.75rem, 3.5vw, 3rem) 0 clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(180deg, #fff7ef 0%, #fff 45%, #fff 100%);
}

.fe-treasury__inner {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.fe-treasury__head {
    text-align: center;
}

.fe-treasury__title {
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.7rem;
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    font-weight: 700;
    color: var(--fe-wfont-treasury, #111);
    line-height: 1.25;
}

.fe-treasury__icon {
    width: clamp(2rem, 3.5vw, 3rem);
    height: auto;
}

.fe-treasury__title-accent {
    color: var(--fe-wfont-treasury-accent, #ff7300);
}

.fe-treasury__marquee {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
}

.fe-treasury__marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 100%;
    animation: fe-marquee 70s linear infinite;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #111;
    text-shadow:
        -0.25px -0.25px 0 #7fff00,
         0.25px -0.25px 0 #7fff00,
        -0.25px  0.25px 0 #7fff00,
         0.25px  0.25px 0 #7fff00;
}

.fe-treasury__marquee:hover .fe-treasury__marquee-track {
    animation-play-state: paused;
}

.fe-treasury__star {
    width: 1.25rem;
    height: 1.25rem;
}

.fe-treasury__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    width: min(100%, 1024px);
    max-width: 100%;
    margin: 0 auto;
}

.fe-treasury__side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(100%, 26rem);
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
}

.fe-treasury__slides {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.fe-treasury__slide-link {
    display: flex;
    justify-content: center;
}

.fe-treasury__slide-link img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.fe-treasury__banners {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.fe-treasury__banner {
    display: flex;
    justify-content: center;
}

.fe-treasury__banner img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
}

.fe-treasury__video {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 18px 32px -24px rgba(40, 20, 0, 0.5);
}

.fe-treasury__video iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .fe-treasury__layout {
        width: min(100%, 880px);
    }

    .fe-treasury__side {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        width: 100%;
        margin-inline: 0;
    }
}

@media (min-width: 1024px) {
    .fe-treasury__layout {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
        gap: 1.25rem;
        width: min(100%, 1024px);
    }

    .fe-treasury__side {
        width: 100%;
        margin-inline: 0;
    }
}

.fe-treasury__banners .splide__arrow {
    width: 2.4rem;
    height: 2.4rem;
    background: #fff;
    border: 0;
    border-radius: 999px;
    color: rgb(255, 115, 0);
    box-shadow: 0 6px 16px rgba(40, 20, 0, 0.16);
    opacity: 1;
}

.fe-treasury__banners .splide__arrow:hover,
.fe-treasury__banners .splide__arrow:focus-visible {
    background: rgb(255, 115, 0);
    color: #fff;
    outline: none;
}

.fe-treasury__banners .splide__pagination {
    position: static;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding: 0;
}

.fe-treasury__banners .splide__pagination__page {
    width: 8px;
    height: 8px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgb(255, 115, 0);
    opacity: 0.35;
    transform: none;
}

.fe-treasury__banners .splide__pagination__page.is-active {
    width: 22px;
    opacity: 1;
    transform: none;
}

@keyframes fe-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .fe-participate__marquee-track,
    .fe-treasury__marquee-track {
        animation: none;
        padding-left: 0;
        white-space: normal;
        justify-content: center;
        flex-wrap: wrap;
    }

    .fe-participate__survey-item,
    .fe-participate__survey-radio,
    .fe-participate__survey-bar,
    .fe-participate__survey-submit {
        transition: none;
    }

    .fe-participate__survey-pulse {
        animation: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Mobile / tablet only — ไม่กระทบเลย์เอาต์เดสก์ท็อป (≥1024px)                  */
/* -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .fe-participate,
    .fe-treasury {
        overflow-x: clip;
    }

    .fe-participate__slides,
    .fe-treasury__slides {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    /* —— Participate —— */
    .fe-participate {
        padding: 1.25rem 0 1.75rem;
    }

    .fe-participate__inner {
        gap: 0.9rem;
    }

    .fe-participate__title {
        font-size: 1.25rem;
        gap: 0.3rem 0.45rem;
        line-height: 1.35;
        padding: 0 0.25rem;
    }

    .fe-participate__icon {
        width: 1.75rem;
    }

    .fe-participate__marquee-track {
        font-size: 0.95rem;
        animation-duration: 40s;
    }

    .fe-participate__slide-link img {
        border-radius: 10px;
    }

    .fe-participate__grid {
        gap: 1rem;
    }

    .fe-participate__col--links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
        width: 100%;
    }

    .fe-participate__banner {
        width: 100%;
        max-width: 100%;
    }

    .fe-participate__fb {
        min-height: 0;
        width: 100%;
        overflow: hidden;
    }

    .fe-participate__fb .fb-page,
    .fe-participate__fb iframe {
        max-width: 100% !important;
    }

    .fe-participate__survey {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 20px;
    }

    .fe-participate__survey-head {
        padding: 1rem 0.85rem 0.85rem;
    }

    .fe-participate__survey-name {
        font-size: 1.45rem;
    }

    .fe-participate__survey-head-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .fe-participate__survey-body {
        padding: 0.85rem 0.7rem 0.9rem;
    }

    .fe-participate__survey-title {
        font-size: 0.98rem;
    }

    .fe-participate__survey-label {
        font-size: 0.88rem;
    }

    .fe-participate__survey-item {
        padding: 0.48rem 0.6rem;
    }

    /* —— Treasury —— */
    .fe-treasury {
        padding: 1.25rem 0 1.75rem;
    }

    .fe-treasury__inner {
        gap: 0.9rem;
    }

    .fe-treasury__title {
        font-size: 1.25rem;
        gap: 0.3rem 0.45rem;
        line-height: 1.35;
        padding: 0 0.25rem;
    }

    .fe-treasury__icon {
        width: 1.75rem;
    }

    .fe-treasury__marquee-track {
        font-size: 0.95rem;
        animation-duration: 45s;
    }

    .fe-treasury__slide-link img {
        border-radius: 10px;
    }

    .fe-treasury__banners {
        width: 100%;
        padding: 0;
    }

    .fe-treasury__banner img {
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }
}

/* มือถือเล็กมาก — แท็บข่าว / แบนเนอร์ 2 คอลัมน์ถ้าพื้นที่พอ */
@media (max-width: 379px) {
    .fe-news__tab {
        font-size: 0.8rem;
        padding: 0.45rem 0.8rem;
    }

    .fe-participate__title,
    .fe-treasury__title {
        font-size: 1.1rem;
    }

    .fe-section-title__text {
        font-size: 1.1rem;
        max-width: 12.5rem;
    }

    .fe-area__stats {
        gap: 0;
    }

    .fe-area__stat {
        padding: 0.75rem 0.3rem 0.65rem;
    }

    .fe-area__stat-value {
        font-size: 1.65rem;
    }

    .fe-area__stat-label {
        font-size: 0.8rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Section + Executives + related — mobile only (ไม่กระทบเดสก์ท็อป)           */
/* -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .fe-intro {
        /* ลด overlap บนจอแคบ กันทับเนื้อหาเกิน */
        --fe-intro-overlap: calc(min(100vw, 1920px) * -0.35 * var(--fe-intro-h) / var(--fe-intro-w));
    }

    .fe-exec-merge,
    .fe-exec-stack,
    .fe-area,
    .fe-map-banner {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    /* เว้นระยะระหว่างชุด — กันอัด/ทับกัน */
    body.fe-site > .fe-quick-cards,
    body.fe-site main > .fe-exec-merge,
    body.fe-site main > .fe-exec-stack,
    body.fe-site main > .fe-area,
    body.fe-site main > .fe-map-banner,
    body.fe-site main > .fe-news,
    body.fe-site main > .fe-events,
    body.fe-site main > .fe-participate,
    body.fe-site main > .fe-treasury,
    body.fe-site main > .fe-section-title {
        margin-top: 1.35rem;
        margin-bottom: 0;
    }

    body.fe-site main > .fe-exec-stack {
        margin-top: 1.5rem;
        clear: both;
        position: relative;
        z-index: 1;
    }

    body.fe-site > .fe-intro {
        margin-bottom: 0.35rem;
    }

    body.fe-site > .fe-intro {
        --fe-intro-overlap: calc(min(100vw, 1920px) * -1.6 * var(--fe-intro-h) / var(--fe-intro-w));
        overflow: hidden;
    }

    body.fe-site .fe-intro__bg {
        width: 168%;
        max-width: none;
        height: auto;
        margin: 0 -34%;
        object-fit: cover;
        object-position: center center;
    }

    .fe-textrun__content {
        top: 10%;
        right: 5.5%;
        bottom: 22%;
        left: 6.5%;
        padding: 0;
    }

    .fe-textrun__text {
        font-size: 0.8rem;
        animation-duration: 28s;
    }

    .fe-quick-cards--has-bg .fe-executives__vision-title {
        font-size: 1.05rem;
    }

    .fe-quick-cards--has-bg .fe-executives__vision-text {
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .fe-quick-cards--has-bg .fe-executives__inner {
        gap: 0.75rem;
    }

    .fe-executives__card--profile {
        max-width: 100%;
    }

    .fe-executives__card--profile .fe-executives__name {
        font-size: 0.95rem;
    }

    .fe-executives__card--profile .fe-executives__position {
        font-size: 0.82rem;
    }

    .fe-exec-board {
        margin-top: 0;
    }

    .fe-exec-board__veil {
        padding-top: 1.5rem;
    }

    .fe-area {
        margin-top: 0.75rem;
    }

    .fe-map-banner {
        margin-top: 0.5rem;
    }

    .fe-news,
    .fe-participate,
    .fe-treasury,
    .fe-eservice,
    .fe-banner,
    .fe-qa,
    .fe-highlights,
    .fe-infosys,
    .fe-mobile-app,
    .fe-egp,
    .fe-news-alt {
        padding-top: 1.5rem;
        padding-bottom: 1.75rem;
    }
}

/* -------------------------------------------------------------------------- */
/* E-Service — แบนเนอร์ 1920×700 (service_bg + Highlights + ฟอร์ม)            */
/* -------------------------------------------------------------------------- */
.fe-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fe-eservice {
    --fe-esvc-primary: #0470c3;
    --fe-esvc-accent: #0a5db8;
    --fe-esvc-deep: #0b2f7a;
    --fe-esvc-btn: #1f7a2f;
    --fe-esvc-ink: #12345a;
    --fe-esvc-h: 700;
    position: relative;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    overflow: clip;
    color: #fff;
    background:
        radial-gradient(ellipse 42% 70% at 18% 55%, rgba(40, 120, 210, 0.45), transparent 70%),
        linear-gradient(180deg, #0c4fa3 0%, #0a6fc0 42%, #4aa0d8 100%);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: calc(min(100vw, 1920px) * var(--fe-esvc-h) / 1920);
}

.fe-eservice--has-bg {
    background-image: var(--fe-esvc-bg);
}

.fe-eservice__stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: inherit;
    max-width: 1480px;
    margin: 0 auto;
    padding: clamp(0.85rem, 1.8vw, 1.25rem) clamp(0.85rem, 2.5vw, 1.75rem) clamp(0.85rem, 1.6vw, 1.25rem);
    box-sizing: border-box;
}

.fe-eservice__main {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.35fr);
    gap: clamp(0.75rem, 2vw, 1.5rem);
    align-items: end;
    flex: 1 1 auto;
    min-height: 0;
}

.fe-eservice__highlights {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.85rem;
    padding: 0 0 0.35rem;
    min-width: 0;
}

.fe-eservice__hl-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.35rem 1.35rem 0.35rem 1.1rem;
    border-radius: 0.35rem 1.1rem 1.1rem 0.35rem;
    background: linear-gradient(90deg, #0a2f78, #1349a8);
    box-shadow: 0 8px 18px rgba(0, 30, 80, 0.28);
    transform: skewX(-12deg);
}

.fe-eservice__hl-stripes {
    position: absolute;
    left: 0.35rem;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 0.55rem;
    border-radius: 2px;
    background:
        repeating-linear-gradient(
            180deg,
            #f2c400 0 3px,
            transparent 3px 6px
        );
    transform: skewX(12deg);
}

.fe-eservice__hl-label {
    position: relative;
    z-index: 1;
    margin-left: 0.55rem;
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    transform: skewX(12deg);
}

.fe-eservice__hl-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: min(100%, 22rem);
}

.fe-eservice__hl-btn {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.85rem;
    padding: 0.35rem 0.4rem 0.35rem 0.55rem;
    border-radius: 999px;
    background: #fff;
    color: var(--fe-esvc-ink);
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(10, 40, 90, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fe-eservice__hl-btn:hover,
.fe-eservice__hl-btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
    box-shadow: 0 14px 26px rgba(10, 40, 90, 0.24);
}

.fe-eservice__hl-ico {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: var(--fe-esvc-accent);
}

.fe-eservice__hl-text {
    min-width: 0;
    font-size: clamp(0.86rem, 1.15vw, 1rem);
    font-weight: 700;
    line-height: 1.25;
}

.fe-eservice__hl-go {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--fe-esvc-accent);
    color: #fff;
}

.fe-eservice__board {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: transparent;
    box-shadow: none;
}

.fe-eservice__board-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    border-radius: 0.85rem;
    background: linear-gradient(90deg, #0b3f96, #1560c4);
    color: #fff;
}

.fe-eservice__board-ico {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.14);
}

.fe-eservice__board-title {
    margin: 0;
    font-size: clamp(0.82rem, 1.15vw, 1.02rem);
    font-weight: 700;
    line-height: 1.35;
}

.fe-eservice__board-body {
    position: relative;
    padding: 0.85rem 0.55rem 0.95rem;
}

.fe-eservice__slider {
    position: relative;
    width: 100%;
    padding: 0 2.1rem;
}

.fe-eservice__slider .splide__track {
    overflow: hidden;
}

.fe-eservice__slider .splide__list {
    align-items: stretch;
}

.fe-eservice__slider .splide__slide {
    height: auto;
}

.fe-eservice__arrow {
    position: absolute;
    top: 42%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--fe-esvc-accent);
    box-shadow: 0 6px 14px rgba(10, 40, 90, 0.18);
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.fe-eservice__arrow svg {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
}

.fe-eservice__arrow:hover,
.fe-eservice__arrow:focus-visible {
    color: var(--fe-esvc-deep);
    outline: none;
    transform: translateY(-50%) scale(1.06);
}

.fe-eservice__arrow.splide__arrow--prev {
    left: 0;
}

.fe-eservice__arrow.splide__arrow--next {
    right: 0;
}

.fe-eservice__arrow:disabled {
    opacity: 0.28;
    cursor: default;
}

.fe-eservice__tile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 0.85rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 22px rgba(15, 40, 80, 0.12);
    border: 1px solid rgba(15, 39, 64, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.fe-eservice__tile:hover,
.fe-eservice__tile:focus-visible {
    transform: translateY(-4px);
    outline: none;
    box-shadow: 0 14px 28px rgba(15, 40, 80, 0.18);
}

.fe-eservice__icon {
    display: grid;
    place-items: center;
    aspect-ratio: 1.15 / 1;
    padding: 0.85rem 0.55rem 0.35rem;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.fe-eservice__icon img {
    width: min(76px, 62%);
    height: min(76px, 62%);
    object-fit: contain;
    display: block;
}

.fe-eservice__icon-fallback {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: #e8f2fc;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--fe-esvc-primary);
}

.fe-eservice__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    min-height: 3.1em;
    padding: 0.55rem 0.55rem 0.7rem;
    background: linear-gradient(180deg, #0d4ea0, #0a3f86);
    font-size: clamp(0.78rem, 1.05vw, 0.9rem);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: var(--fe-wfont-eservice, #fff);
}

.fe-eservice__empty {
    margin: 0;
    padding: 1.5rem 1rem;
    color: #35506c;
    font-size: 0.98rem;
    font-weight: 600;
    text-align: center;
}

.fe-eservice__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.15rem;
}

.fe-eservice__news {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    padding: 0.2rem 1.35rem 0.2rem 0.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffffff 0%, #d7ebff 55%, #7eb6ef 100%);
    color: #0b3f8c;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(10, 40, 90, 0.16);
    transition: transform 0.2s ease;
}

.fe-eservice__news:hover,
.fe-eservice__news:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.fe-eservice__news-ico {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.fe-eservice__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: var(--fe-esvc-btn);
    box-shadow: 0 8px 18px rgba(20, 100, 40, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.fe-eservice__all:hover,
.fe-eservice__all:focus-visible {
    transform: translateY(-2px);
    background: #186628;
    outline: none;
}

@media (max-width: 899px) {
    .fe-eservice {
        min-height: 0;
    }

    .fe-eservice__stage {
        padding-block: 0.85rem 1rem;
    }

    .fe-eservice__main {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        align-items: stretch;
    }

    .fe-eservice__highlights {
        align-items: center;
        padding-top: 0.5rem;
    }

    .fe-eservice__hl-actions {
        width: min(100%, 26rem);
    }

    .fe-eservice__icon {
        aspect-ratio: auto;
        min-height: 7.5rem;
    }
}

@media (max-width: 559px) {
    .fe-eservice__slider {
        padding: 0 1.75rem;
    }

    .fe-eservice__bar {
        flex-direction: column;
        align-items: stretch;
    }

    .fe-eservice__news,
    .fe-eservice__all {
        justify-content: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-eservice__tile,
    .fe-eservice__hl-btn,
    .fe-eservice__news,
    .fe-eservice__all {
        transition: none !important;
    }

    .fe-eservice__tile:hover,
    .fe-eservice__tile:focus-visible,
    .fe-eservice__hl-btn:hover,
    .fe-eservice__hl-btn:focus-visible {
        transform: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Banner — แบนเนอร์หน่วยงาน (banner_type=0 · loop tray)                      */
/* -------------------------------------------------------------------------- */
.fe-banner {
    --fe-banner-primary: #0470c3;
    --fe-banner-accent: #0993d7;
    position: relative;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 3rem) 0;
    overflow: clip;
    background:
        radial-gradient(90% 55% at 18% 8%, rgba(255, 255, 255, 0.85), transparent 60%),
        radial-gradient(70% 40% at 82% 0%, rgba(255, 255, 255, 0.7), transparent 55%),
        linear-gradient(180deg, #e9f6fd 0%, #c5e8f7 34%, #7ec8e4 62%, #2f9cb8 100%);
}

.fe-banner__scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(ellipse 70% 45% at 85% 70%, rgba(15, 90, 120, 0.2), transparent 55%);
}

.fe-banner--scenic .fe-banner__scene {
    background-image:
        linear-gradient(180deg, rgba(233, 246, 253, 0.96) 0%, rgba(197, 232, 247, 0.82) 32%, rgba(126, 200, 228, 0.28) 58%, rgba(47, 156, 184, 0.08) 100%),
        var(--fe-banner-scenic);
    background-size: cover, cover;
    background-position: center, center 72%;
    background-repeat: no-repeat;
}

.fe-banner--scenic .fe-banner__scene::after {
    content: none;
}

.fe-banner__inner {
    position: relative;
    z-index: 1;
}

.fe-banner__tray {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto 0.85rem;
    padding: 0.35rem 0.45rem;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.fe-banner__slider {
    position: relative;
    min-width: 0;
    width: auto;
    padding: 0 3rem;
}

.fe-banner__slider .splide__track {
    overflow: hidden;
    box-sizing: content-box;
    padding: 6px 4px 8px;
}

.fe-banner__slider .splide__list {
    align-items: stretch;
}

.fe-banner__slider .splide__slide {
    display: flex;
    height: auto;
}

.fe-banner__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    border-radius: 0.7rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.fe-banner__card:hover,
.fe-banner__card:focus-visible {
    transform: translateY(-2px);
    background: transparent;
    box-shadow: none;
    outline: none;
}

.fe-banner__logo {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 0.7rem;
    background: transparent;
}

.fe-banner__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    color: #163a6b;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

body.fe-site .fe-banner__card img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: 5rem;
    object-fit: contain;
    object-position: center;
    border-radius: 0.7rem;
    filter: none;
}

.fe-banner__slider .fe-banner__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--fe-banner-primary, #0470c3);
    text-shadow: none;
    box-shadow: none;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease, transform 0.2s ease;
}

.fe-banner__slider .fe-banner__arrow.splide__arrow--prev {
    left: 0.35rem;
}

.fe-banner__slider .fe-banner__arrow.splide__arrow--next {
    right: 0.35rem;
}

.fe-banner__arrow:hover,
.fe-banner__arrow:focus-visible {
    color: var(--fe-banner-accent, #0993d7);
    outline: none;
}

.fe-banner__slider .fe-banner__arrow.splide__arrow--prev:hover,
.fe-banner__slider .fe-banner__arrow.splide__arrow--prev:focus-visible {
    transform: translateY(-50%) translateX(-2px);
}

.fe-banner__slider .fe-banner__arrow.splide__arrow--next:hover,
.fe-banner__slider .fe-banner__arrow.splide__arrow--next:focus-visible {
    transform: translateY(-50%) translateX(2px);
}

.fe-banner__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.fe-banner__chev {
    display: block;
    width: auto;
    height: auto;
    border: 0;
    color: inherit;
    font-size: 2.65rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.12em;
    transform: none;
    margin: 0;
}

.fe-banner__arrow.splide__arrow--next .fe-banner__chev {
    transform: none;
    margin: 0;
}

@media (max-width: 767px) {
    .fe-banner {
        padding-top: 1.15rem;
        padding-bottom: 1.25rem;
    }

    .fe-banner--on-footer {
        padding-bottom: 2.4rem;
    }

    .fe-banner__tray {
        max-width: 100%;
        border-radius: 0;
        padding: 0.4rem 0.3rem;
    }

    .fe-banner__slider {
        padding: 0 4rem;
    }

    .fe-banner__slider .fe-banner__arrow {
        width: 2.2rem;
        height: 2.2rem;
    }

    .fe-banner__chev {
        font-size: 2rem;
    }

    .fe-banner__slider .fe-banner__arrow.splide__arrow--prev {
        left: 0.15rem;
    }

    .fe-banner__slider .fe-banner__arrow.splide__arrow--next {
        right: 0.15rem;
    }

    .fe-banner__card {
        min-height: 0;
        padding: 0;
        border-radius: 0.55rem;
        background: transparent;
    }

    body.fe-site .fe-banner__card img {
        max-height: 3.4rem;
        border-radius: 0.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-banner__card,
    .fe-dla__art {
        transition: none;
    }
}

/* ระบบสารสนเทศสนับสนุนการบริหารจัดการ — banner_type=8 */
.fe-banner--dla {
    padding-top: clamp(1.5rem, 3vw, 2.4rem);
}

.fe-dla {
    width: min(1120px, 100%);
    margin: 0 auto clamp(1.35rem, 3vw, 2.1rem);
}

.fe-dla__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: clamp(1rem, 2.2vw, 1.6rem);
    text-align: center;
}

.fe-dla__seal {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 18px rgba(20, 70, 110, 0.16);
}

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

.fe-dla__title {
    margin: 0;
    color: var(--fe-wfont-dla, #16324a);
    font-size: clamp(1.2rem, 2.15vw, 1.85rem);
    font-weight: 800;
    line-height: 1.35;
}

.fe-dla__title--img {
    width: min(100%, 320px);
}

.fe-dla__headimg {
    display: block;
    width: 100%;
    height: auto;
}

.fe-dla__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem 1rem;
}

.fe-dla__card {
    position: relative;
    display: block;
    aspect-ratio: 264 / 165;
    border-radius: 1.05rem;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
}

.fe-dla__card:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.fe-dla__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.28s ease;
}

.fe-dla__art--hover {
    opacity: 0;
}

.fe-dla__card:hover .fe-dla__art--hover,
.fe-dla__card:focus-visible .fe-dla__art--hover {
    opacity: 1;
}

@media (max-width: 1023px) {
    .fe-dla__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .fe-banner--dla {
        padding-top: 0.85rem;
    }

    .fe-dla {
        margin-bottom: 0.85rem;
    }

    .fe-dla__head {
        margin-bottom: 0.7rem;
    }

    .fe-dla__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 0.55rem;
    }

    .fe-dla__card {
        border-radius: 0.75rem;
    }

    .fe-dla__seal {
        width: 72px;
        height: 72px;
    }
}

/* -------------------------------------------------------------------------- */
/* Q&A Board — กระทู้ ถาม ตอบ (section_board)                                 */
/* -------------------------------------------------------------------------- */
.fe-qa {
    --fe-qa-primary: #0470c3;
    --fe-qa-accent: #0993d7;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2.25rem) 0;
}

.fe-qa__inner {
    width: 100%;
}

.fe-qa__banners {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.75rem, 2vw, 1.15rem);
    align-items: center;
    margin-bottom: clamp(0.85rem, 2vw, 1.25rem);
}

.fe-qa__banner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
}

.fe-qa__banner img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .fe-qa__banners {
        grid-template-columns: 1fr 1fr;
    }
}

.fe-qa__split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.85rem, 2vw, 1.25rem);
    align-items: stretch;
}

.fe-qa__panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-items: stretch;
    width: 100%;
    min-height: clamp(200px, 28vw, 260px);
    padding: clamp(1.1rem, 2.4vw, 1.6rem);
    border-radius: 1.35rem;
    background: linear-gradient(
        95deg,
        var(--fe-qa-primary) 0%,
        color-mix(in srgb, var(--fe-qa-primary) 55%, var(--fe-qa-accent)) 48%,
        color-mix(in srgb, var(--fe-qa-accent) 75%, #b9e4ff) 100%
    );
    box-shadow: 0 12px 32px color-mix(in srgb, var(--fe-qa-primary) 22%, transparent);
    overflow: hidden;
}

.fe-qa__side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
    min-width: 0;
    padding: 0.35rem 0.25rem 0.35rem 0.5rem;
}

.fe-qa__title {
    margin: 0;
    color: var(--fe-wfont-qa, #fff);
    font-size: clamp(1.55rem, 3.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.12);
}

.fe-qa__rule {
    display: block;
    width: min(100%, 12rem);
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.fe-qa__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.35rem;
}

.fe-qa__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.45rem 0.55rem 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fe-qa__btn--solid {
    color: var(--fe-qa-primary);
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.fe-qa__btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.fe-qa__btn:hover,
.fe-qa__btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.fe-qa__btn-icon {
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: var(--fe-qa-primary);
    color: #fff;
    flex-shrink: 0;
}

.fe-qa__btn--ghost .fe-qa__btn-icon {
    background: #fff;
    color: var(--fe-qa-primary);
}

.fe-qa__list-wrap {
    display: flex;
    min-height: 100%;
    min-width: 0;
    padding: clamp(0.85rem, 2vw, 1.15rem);
    border-radius: 1.1rem;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(236, 247, 255, 0.55) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.fe-qa__list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    overflow: auto;
    max-height: 220px;
}

.fe-qa__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.72);
    color: #12324f;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fe-qa__item:hover,
.fe-qa__item:focus-visible {
    background: #fff;
    transform: translateX(2px);
    outline: none;
}

.fe-qa__item-icon {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.65rem;
    color: var(--fe-qa-primary);
    background: color-mix(in srgb, var(--fe-qa-primary) 12%, #fff);
}

.fe-qa__item-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.fe-qa__item-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fe-qa__item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.78rem;
    color: rgba(18, 50, 79, 0.7);
}

.fe-qa__item-go {
    color: var(--fe-qa-primary);
    font-weight: 700;
    opacity: 0.7;
}

.fe-qa__empty {
    margin: auto;
    padding: 0.5rem 0.75rem;
    text-align: center;
    color: color-mix(in srgb, var(--fe-qa-primary) 75%, #12324f);
}

.fe-qa__empty-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.fe-qa__empty-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    opacity: 0.85;
}

.fe-qa__mail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: clamp(200px, 28vw, 260px);
    height: 100%;
    padding: clamp(1.25rem, 2.4vw, 1.75rem);
    border-radius: 1.35rem;
    background: var(--fe-qa-mail-bg, color-mix(in srgb, var(--fe-qa-accent) 22%, #fff));
    color: var(--fe-qa-primary);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--fe-qa-primary) 16%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fe-qa__mail:hover,
.fe-qa__mail:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.fe-qa__mail-icon {
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1.15rem;
    background: #fff;
    color: var(--fe-qa-primary);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--fe-qa-primary) 16%, transparent);
}

.fe-qa__mail-title {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
}

.fe-qa__mail-address {
    max-width: 100%;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.fe-qa__mail-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    margin-top: 0.35rem;
    padding: 0.45rem 0.55rem 0.45rem 1rem;
    border-radius: 999px;
    background: var(--fe-qa-primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.fe-qa__mail-cta .fe-qa__btn-icon {
    background: #fff;
    color: var(--fe-qa-primary);
}

@media (min-width: 1024px) {
    .fe-qa__split {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .fe-qa__panel {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 1.15rem;
        border-radius: 1.2rem;
    }

    .fe-qa__side {
        padding: 0;
        text-align: center;
        align-items: center;
    }

    .fe-qa__rule {
        margin: 0 auto;
    }

    .fe-qa__actions {
        justify-content: center;
        width: 100%;
    }

    .fe-qa__btn {
        flex: 1 1 auto;
        justify-content: space-between;
        max-width: 11.5rem;
    }

    .fe-qa__list-wrap {
        min-height: 160px;
    }

    .fe-qa__list {
        max-height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-qa__btn,
    .fe-qa__item,
    .fe-qa__mail {
        transition: none;
    }
}

/* -------------------------------------------------------------------------- */
/* หมายเลขโทรศัพท์ติดต่อภายใน (section_contact) — settings.contact_number      */
/* -------------------------------------------------------------------------- */
.fe-contact {
    --fe-contact-c1: #0470c3;
    --fe-contact-c2: #0993d7;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
    background: var(--fe-contact-bg, linear-gradient(180deg, #fff 0%, #f1f3f5 100%));
}

.fe-contact__title {
    margin: 0 0 clamp(1rem, 2vw, 1.6rem);
    color: var(--fe-contact-menu, #fff);
    font-size: clamp(1.35rem, 2.3vw, 2.1rem);
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.fe-contact__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 1.6vw, 1.5rem) clamp(1rem, 3vw, 3rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* สลับสีคี่/คู่ · โทนอ่อนลงจากสีหลักให้ดูนุ่มแบบพาสเทล */
.fe-contact__cell {
    --fe-contact-c: var(--fe-contact-c1);
    --fe-contact-tone: color-mix(in srgb, var(--fe-contact-c) 78%, #fff);
    flex: 0 1 15.5rem;
    min-width: 0;
}

.fe-contact__cell:nth-child(even) {
    --fe-contact-c: var(--fe-contact-c2);
}

.fe-contact__item {
    display: flex;
    align-items: center;
    color: #111827;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.fe-contact__item:hover,
.fe-contact__item:focus-visible {
    transform: translateY(-3px);
}

/* วงกลมไอคอน 2 วง ทับหัวแคปซูล */
.fe-contact__item-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    border: 3px solid var(--fe-contact-tone);
    border-radius: 50%;
    background: #fff;
    box-shadow:
        inset 0 0 0 5px #fff,
        inset 0 0 0 7px color-mix(in srgb, var(--fe-contact-tone) 55%, #fff),
        0 4px 12px rgba(15, 23, 42, 0.12);
    color: var(--fe-contact-tone);
    font-size: 1.35rem;
}

.fe-contact__item-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    margin-left: -1.75rem;
    border-radius: 0 1.35rem 1.35rem 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.fe-contact__item-dept {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 1.9rem;
    padding: 0.3rem 0.9rem 0.3rem 2.2rem;
    background: var(--fe-contact-tone);
    color: var(--fe-contact-menu, #fff);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.fe-contact__item-num {
    padding: 0.35rem 0.9rem 0.4rem 2.2rem;
    border-bottom: 2px solid var(--fe-contact-tone);
    border-bottom-right-radius: 1.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.fe-contact__item-ext {
    margin-left: 0.2rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.fe-contact__arrows {
    display: none;
}

@media (max-width: 767px) {
    .fe-contact__list {
        justify-content: center;
    }

    .fe-contact__cell {
        flex-basis: 100%;
        max-width: 22rem;
    }

    .fe-contact__slider.is-slider {
        position: relative;
        padding: 0 2.6rem;
    }

    .fe-contact__slider.is-slider .fe-contact__track {
        overflow: hidden;
    }

    .fe-contact__slider.is-slider .fe-contact__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
    }

    .fe-contact__slider.is-slider .fe-contact__cell {
        flex: 0 0 auto;
        max-width: none;
        display: flex;
        justify-content: center;
    }

    .fe-contact__slider.is-slider .fe-contact__item {
        width: min(100%, 22rem);
    }

    .fe-contact__slider.is-slider .fe-contact__arrows {
        display: block;
    }

    .fe-contact__arrow {
        position: absolute;
        top: 50%;
        z-index: 3;
        display: grid;
        place-items: center;
        width: 2.2rem;
        height: 2.2rem;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: rgba(90, 105, 120, 0.78);
        font-size: 1.7rem;
        line-height: 1;
        cursor: pointer;
        transform: translateY(-50%);
    }

    .fe-contact__arrow--prev {
        left: 0;
    }

    .fe-contact__arrow--next {
        right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-contact__item {
        transition: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Highlights — แนะนำผลงานดีเด่นของหน่วยงาน (banner_type=2)                  */
/* -------------------------------------------------------------------------- */
.fe-highlights {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--fe-max-width);
    min-height: 600px;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2.25rem) 0;
    background-color: transparent;
    background-image: var(--fe-hl-bg, none);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.fe-highlights__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem 2rem;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.fe-highlights__head {
    text-align: center;
    margin-bottom: 0;
    min-width: 0;
}

@media (min-width: 1024px) {
    .fe-highlights__inner {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .fe-highlights__head {
        width: 100%;
        text-align: center;
    }

    .fe-highlights__title {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .fe-highlights__headimg {
        width: min(100%, 640px);
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .fe-highlights {
        min-height: 0;
    }
}

.fe-highlights__title {
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.65rem;
    font-size: clamp(1.45rem, 3.4vw, 2.35rem);
    font-weight: 700;
    color: var(--fe-wfont-highlights, #111);
    line-height: 1.25;
}

.fe-highlights__title-accent {
    color: var(--fe-wfont-highlights-accent, #59a101);
    font-size: clamp(1.85rem, 4.4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.1;
}

.fe-highlights__title--img {
    display: block;
    text-align: center;
}

.fe-highlights__headimg {
    display: block;
    width: min(100%, 640px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.fe-highlights__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
    padding: 0.55rem 0.6rem 0.65rem;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: #1f2937;
    background: transparent;
}

.fe-highlights__slider {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-inline: auto;
}

.fe-highlights__slider .splide__track {
    padding: 2rem 0.15rem 3.4rem;
}

.fe-highlights__slider .splide__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* จัดตำแหน่งสลับสูง–ต่ำ 2 ระดับ: ใบที่ 1, 3, 5 … สูง · ใบที่ 2, 4, 6 … ต่ำ */
.fe-highlights__slider .fe-highlights__cell--high {
    transform: translateY(-1.2rem);
}

.fe-highlights__slider .fe-highlights__cell--low {
    transform: translateY(2.8rem);
}

.fe-highlights__cell {
    min-width: 0;
}

.fe-highlights__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    text-decoration: none;
    box-shadow: none;
    transition: transform 0.25s ease;
}

.fe-highlights__card:hover,
.fe-highlights__card:focus-visible {
    transform: translateY(-4px) scale(1.02);
    outline: none;
}

.fe-highlights__card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 1535;
    object-fit: contain;
    border-radius: 0.9rem;
    margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
    .fe-highlights__card {
        transition: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Infosys — ระบบสารสนเทศ (banner_type 3 / 6 / 1)                             */
/* -------------------------------------------------------------------------- */
.fe-infosys {
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(1.75rem, 3.5vw, 2.75rem);
    background: #fff;
}

.fe-infosys__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.fe-infosys__head {
    text-align: center;
}

.fe-infosys__title {
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.65rem;
    font-size: clamp(1.45rem, 3.4vw, 2.35rem);
    font-weight: 700;
    color: var(--fe-wfont-infosys, #111);
    line-height: 1.25;
}

.fe-infosys__title-accent {
    color: var(--fe-wfont-infosys-accent, #01a0a5);
    font-size: clamp(1.85rem, 4.4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.1;
}

.fe-infosys__icon {
    width: clamp(2.5rem, 5.5vw, 4.25rem);
    height: auto;
}

.fe-infosys__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.85rem, 2vw, 1.5rem);
    max-width: none;
    margin: 0;
    width: 100%;
}

.fe-infosys__col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.fe-infosys__banner,
.fe-infosys__pill,
.fe-infosys__pride {
    display: block;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fe-infosys__banner:hover,
.fe-infosys__pill:hover,
.fe-infosys__pride:hover,
.fe-infosys__banner:focus-visible,
.fe-infosys__pill:focus-visible,
.fe-infosys__pride:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 55, 95, 0.12);
    outline: none;
}

.fe-infosys__banner img,
.fe-infosys__pill img,
.fe-infosys__pride img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.fe-infosys__pride img {
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .fe-infosys__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(1rem, 2.5vw, 1.75rem);
        align-items: start;
    }
}

@media (max-width: 767px) {
    .fe-infosys__grid {
        grid-template-columns: 1fr 1fr;
    }

    .fe-infosys__col--pride {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-infosys__banner,
    .fe-infosys__pill,
    .fe-infosys__pride {
        transition: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Mobile App — แบนเนอร์เว็บแอปพลิเคชัน + คู่มือติดตั้ง                       */
/* -------------------------------------------------------------------------- */
.fe-mobile-app {
    position: relative;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    overflow: clip;
    background: #fff;
}

.fe-mobile-app__stage {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    line-height: 0;
}

.fe-mobile-app__bg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.fe-mobile-app__video,
.fe-mobile-app__icon,
.fe-mobile-app__qr,
.fe-mobile-app__name,
.fe-mobile-app__sao {
    position: absolute;
}

.fe-mobile-app__video {
    object-fit: cover;
    border-radius: 25px;
    cursor: pointer;
    background: transparent;
}

/* ขนาดตาม frontend2 — วางทับกรอบมือถือใน mobile_0.png
   specificity สูงกว่า body.fe-site video { height:auto; max-width:100% } */
body.fe-site .fe-mobile-app__video--ios,
body.fe-site .fe-mobile-app__video--android {
    max-width: none;
    object-fit: cover;
}

body.fe-site .fe-mobile-app__video--ios {
    top: 11.5%;
    left: 55.2%;
    width: 220px;
    height: 390px;
}

body.fe-site .fe-mobile-app__video--android {
    top: 11.5%;
    left: 73.2%;
    width: 220px;
    height: 390px;
}

.fe-mobile-app__icon {
    top: 75%;
    left: 37%;
    width: 5.2%;
    max-width: 100px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    border-radius: 12px;
    background: #fff;
}

.fe-mobile-app__qr {
    top: 75%;
    left: 45%;
    line-height: 0;
}

.fe-mobile-app__qr img,
.fe-mobile-app__qr canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.fe-mobile-app__name,
.fe-mobile-app__sao {
    margin: 0;
    font-family: var(--fe-font);
    font-weight: 450;
    line-height: 1.15;
    white-space: nowrap;
    pointer-events: none;
}

.fe-mobile-app__name {
    top: 8%;
    left: 18%;
    font-size: clamp(2rem, 5.5vw, 105px);
    color: var(--fe-wfont-app, #0036a3);
}

.fe-mobile-app__sao {
    top: 26%;
    left: 21%;
    font-size: clamp(0.85rem, 1.55vw, 30px);
    color: #ff6511;
}

.fe-mobile-app__videos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem 1.25rem;
}

.fe-mobile-app__clip {
    display: block;
    width: calc(50% - 0.5rem);
    max-width: 160px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #0a1a2e;
}

@media (min-width: 768px) and (max-width: 1024px) {
    body.fe-site .fe-mobile-app__video--ios,
    body.fe-site .fe-mobile-app__video--android {
        top: 14%;
        width: 116px;
        height: 224px;
        border-radius: 18px;
    }

    .fe-mobile-app__icon {
        top: 74%;
        left: 36%;
        width: 7.5%;
        max-width: 60px;
    }

    .fe-mobile-app__qr {
        top: 74%;
        left: 45.5%;
    }

    .fe-mobile-app__name {
        top: 6%;
        left: 19%;
        font-size: clamp(1.75rem, 5.5vw, 60px);
    }

    .fe-mobile-app__sao {
        top: 24%;
        left: 20%;
        font-size: clamp(0.75rem, 1.7vw, 18px);
    }
}

@media (max-width: 767px) {
    .fe-mobile-app__stage--mobile {
        text-align: center;
    }

    .fe-mobile-app__stage--mobile .fe-mobile-app__icon {
        top: 60%;
        left: 65%;
        width: 12%;
        max-width: 50px;
    }

    .fe-mobile-app__stage--mobile .fe-mobile-app__name {
        top: 6%;
        left: 45%;
        font-size: clamp(1.35rem, 10vw, 40px);
    }

    .fe-mobile-app__stage--mobile .fe-mobile-app__sao {
        top: 18%;
        left: 42%;
        font-size: clamp(0.8rem, 4.5vw, 20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-mobile-app__video,
    .fe-mobile-app__clip {
        scroll-margin: 0;
    }
}

/* -------------------------------------------------------------------------- */
/* Footer — แถบข้อมูล (แผนที่ซ้าย) · footer_2_bg 1920×60                         */
/* -------------------------------------------------------------------------- */
.fe-footer {
    --fe-footer-text: #ffffff;
    position: relative;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    z-index: 4;
}

/* พื้นหลังแบนเนอร์อยู่ชั้นหลังทั้งก้อน รูปฟุตเตอร์ทับด้านล่าง */
.fe-footer__stack {
    display: grid;
    width: 100%;
}

.fe-footer__stack > .fe-footer__scene,
.fe-footer__stack > .fe-footer__band {
    grid-area: 1 / 1;
    width: 100%;
    max-width: none;
    margin: 0;
}

.fe-footer__scene {
    position: relative;
    z-index: 1;
    align-self: stretch;
    width: 100%;
    background-color: #1478b8;
    background-image: var(--fe-footer-banner, none);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    min-height: calc(min(100vw, 1920px) * 1470 / 1920);
    padding-bottom: 0;
}

.fe-banner--on-footer {
    background: transparent;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-bottom: 1.15rem;
}

.fe-banner--on-footer .fe-banner__scene {
    display: none;
}

.fe-banner--on-footer .fe-banner__tray {
    margin-top: -1.15rem;
}

.fe-footer__band {
    position: relative;
    z-index: 3;
    display: grid;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    color: var(--fe-footer-text);
    background-color: transparent;
    background-image: none;
    min-height: 0;
    padding: 0;
}

body.fe-site .fe-footer__bg {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    align-self: end;
    pointer-events: none;
    user-select: none;
}

.fe-footer__stack > .fe-footer__band {
    z-index: 2;
    align-self: end;
}

.fe-footer__band-inner {
    grid-area: 1 / 1;
    z-index: 1;
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    width: min(100%, 1680px);
    margin: 0 auto;
    padding: 1.15rem 1rem 1.35rem;
    text-align: left;
}

.fe-footer__place {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    min-width: 0;
}

.fe-footer__map {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border: 1px solid #e6e8ee;
    border-radius: 10px;
    background: #e8eef3;
    box-shadow: 0 6px 16px rgba(20, 32, 48, 0.08);
}

body.fe-site .fe-footer__map iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border: 0 !important;
    display: block;
}

.fe-footer__addr {
    min-width: 0;
}

body.fe-site .fe-footer__logo {
    display: block;
    width: 108px;
    height: 108px;
    max-width: 108px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 50%;
}

.fe-footer__name,
.fe-footer__line {
    margin: 0 0 0.35rem;
    color: inherit;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.fe-footer__name {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}

.fe-footer__line {
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.5;
}

.fe-footer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.fe-footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.3rem 0.85rem;
    border-radius: 6px;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.fe-footer__btn:hover,
.fe-footer__btn:focus-visible {
    filter: brightness(1.06);
    text-decoration: none;
}

.fe-footer__btn--route {
    background: #3d3d3d;
}

.fe-footer__btn--map {
    background: #f08a12;
}

.fe-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    text-align: center;
}

.fe-footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.fe-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
}

.fe-footer__social-link svg {
    width: 18px;
    height: 18px;
    display: block;
}

.fe-footer__social-img {
    display: block;
    width: 36px;
    height: 36px;
    max-width: none;
    border-radius: 50%;
    object-fit: cover;
}

.fe-footer__social-link--line,
.fe-footer__social-link--facebook,
.fe-footer__social-link--youtube,
.fe-footer__social-link--instagram,
.fe-footer__social-link--tiktok,
.fe-footer__social-link--x {
    width: 36px;
    height: 36px;
    background: transparent;
}

.fe-footer__social-link:hover,
.fe-footer__social-link:focus-visible {
    filter: brightness(1.08);
    outline: none;
}

.fe-footer__quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.45rem;
    color: inherit;
    font-size: 0.84rem;
}

.fe-footer__quick a {
    color: inherit;
    text-decoration: none;
}

.fe-footer__quick a:hover,
.fe-footer__quick a:focus-visible {
    text-decoration: underline;
}

.fe-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: inherit;
    font-size: 0.9rem;
    line-height: 1.45;
}

.fe-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.fe-footer__contact a {
    color: inherit;
    text-decoration: none;
}

.fe-footer__contact a:hover,
.fe-footer__contact a:focus-visible {
    text-decoration: underline;
}

.fe-footer__ico {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: 0;
    border-radius: 50%;
    background: #f08a12;
    color: #fff;
}

.fe-footer__ico svg {
    width: 16px;
    height: 16px;
    display: block;
}

.fe-footer__legal {
    --fe-footer-legal-h: calc(min(100vw, 1920px) * 40 / 1920);
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    color: #1f2937;
    background-image: var(--fe-footer-bg2, none);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}

.fe-footer__legal-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 1.25rem;
    width: min(100% - 2rem, 1280px);
    min-height: var(--fe-footer-legal-h);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.fe-footer__copy {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

/* Histats วาดปุ่มบน canvas — ให้นั่งแถวเดียวกับข้อความ ไม่ลอยกลางแถบ */
body.fe-site #histats_counter {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 18px;
    overflow: hidden;
    line-height: 0;
}

body.fe-site #histats_counter a,
body.fe-site #histats_counter canvas,
body.fe-site #histats_counter img {
    display: block;
    margin: 0;
    max-height: 18px;
    vertical-align: middle;
}

.fe-footer__link {
    color: inherit;
    text-decoration: none;
}

.fe-footer__link:hover,
.fe-footer__link:focus-visible {
    text-decoration: underline;
}

.fe-footer__policies {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}

/* —— Mobile: ซูมพื้นหลังให้เต็มแถบ ไม่เหลือขาว —— */
@media (max-width: 767px) {
    .fe-footer__stack {
        display: flex;
        flex-direction: column;
    }

    .fe-footer__scene {
        min-height: 0;
    }

    .fe-footer__stack > .fe-footer__band {
        margin-top: -2.6rem;
    }

    .fe-footer {
        /* เมนูมือถือล่างถูกคอมเมนต์ — ไม่เผื่อความสูง 100px แล้ว */
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .fe-footer__band {
        padding: 0;
    }

    .fe-footer__band-inner {
        padding: 1.1rem 0.9rem 1.25rem;
    }

    .fe-footer__place {
        align-items: center;
    }

    .fe-footer__addr {
        order: 1;
        width: 100%;
        text-align: center;
    }

    .fe-footer__actions {
        justify-content: center;
    }

    .fe-footer__map {
        order: 2;
    }

    body.fe-site .fe-footer__logo {
        width: 92px;
        height: 92px;
        max-width: 92px;
    }

    .fe-footer__name {
        font-size: 1.05rem;
    }

    .fe-footer__line,
    .fe-footer__contact {
        font-size: 0.84rem;
    }

    .fe-footer__legal {
        background-size: cover;
        background-position: center;
    }

    .fe-footer__legal-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        width: min(100% - 1.5rem, 1280px);
        min-height: 0;
        padding: 0.75rem 0 0.9rem;
        gap: 0.5rem;
    }

    .fe-footer__copy {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.75rem;
        max-width: 22rem;
    }

    .fe-footer__policies {
        justify-content: center;
        gap: 0.25rem 0.75rem;
        font-size: 0.72rem;
    }
}

@media (min-width: 768px) {
    .fe-footer__band {
        padding: 0;
    }

    .fe-footer__band-inner {
        padding-top: 0;
        padding-bottom: clamp(0.85rem, 1.8vw, 1.6rem);
    }

    .fe-footer__place {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .fe-footer__map {
        flex: 0 0 210px;
        width: 210px;
        height: 150px;
    }

    body.fe-site .fe-footer__logo {
        width: 118px;
        height: 118px;
        max-width: 118px;
    }
}

@media (min-width: 1024px) {
    .fe-footer__band {
        padding: 0;
    }

    .fe-footer__band-inner {
        padding: 0 1.25rem clamp(0.85rem, 1.8vw, 1.6rem);
    }

    .fe-footer__band-inner {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 1rem 0;
        min-height: 11.5rem;
    }

    .fe-footer__place {
        grid-column: 1;
        justify-self: start;
        width: calc(100% - 10rem);
    }

    .fe-footer__brand {
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 2;
        width: max-content;
        transform: translate(-50%, -50%);
    }

    .fe-footer__contact {
        grid-column: 2;
        justify-self: end;
        width: auto;
        max-width: calc(100% - 10rem);
    }
}

/* footer2 — แถบของตัวเอง ไม่หุ้มการ์ด และไม่ใช้โครง footer1 */
.fe-f2 {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: visible;
    color: #3e4654;
    background: transparent;
}

.fe-f2__stage {
    display: grid;
    width: 100%;
}

.fe-f2__stage > .fe-f2__scene,
.fe-f2__stage > .fe-f2__band {
    grid-area: 1 / 1;
    width: 100%;
}

.fe-f2__scene {
    z-index: 1;
    align-self: stretch;
    min-height: calc(min(100vw, 1920px) * 1470 / 1920);
    background-color: #1478b8;
    background-image: var(--fe-f2-banner, none);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.fe-f2__band {
    z-index: 2;
    display: grid;
    align-self: end;
    width: 100%;
}

.fe-f2__photo {
    grid-area: 1 / 1;
    align-self: end;
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.fe-f2__bar {
    grid-area: 1 / 1;
    align-self: end;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    background: linear-gradient(180deg, #d9eef8 0%, #ffffff 34%, #fff3e6 100%);
}

.fe-f2--photo .fe-f2__bar {
    background: transparent;
}

.fe-f2--photo .fe-f2__item,
.fe-f2--photo .fe-f2__stack {
    margin-top: calc(1.97rem - 40px);
}

.fe-f2__bar {
    column-gap: 0.9rem;
    row-gap: 0.75rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.7rem clamp(1rem, 3vw, 1.5rem) 1.1rem;
    box-sizing: border-box;
}

.fe-f2__logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    align-self: start;
    transform: translateY(calc(-0.85rem + 26px));
}

.fe-f2__main {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    min-width: 0;
}

.fe-f2__title {
    width: max-content;
    max-width: 100%;
    transform: translateY(0.85rem);
}

.fe-f2__name {
    margin: 0;
    color: #e36b12;
    font-size: clamp(1.28rem, 1.7vw, 1.7rem);
    font-weight: 800;
    line-height: 1.2;
}

.fe-f2__en {
    margin: 0.15rem 0 0;
    color: #2c3138;
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.3;
}

.fe-f2__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0.85rem 1.75rem;
    min-width: 0;
}

.fe-f2__stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.32rem;
}

.fe-f2__line,
.fe-f2__item {
    display: flex;
    align-items: center;
    gap: 0.51rem;
    margin: 0;
    color: #4a5160;
    font-size: 1.14rem;
    line-height: 1.35;
}

.fe-f2--photo .fe-f2__line,
.fe-f2--photo .fe-f2__item,
.fe-f2--photo .fe-f2__line a,
.fe-f2--photo .fe-f2__item a {
    color: #fff;
}

.fe-f2__item {
    align-items: flex-start;
    max-width: 16.9rem;
}

.fe-f2__item > span:last-child {
    padding-top: 6px;
}

.fe-f2__item a,
.fe-f2__line a {
    color: inherit;
    text-decoration: none;
}

.fe-f2__item a:hover,
.fe-f2__item a:focus-visible,
.fe-f2__line a:hover,
.fe-f2__line a:focus-visible {
    text-decoration: underline;
}

.fe-f2__lines {
    display: flex;
    flex-direction: column;
    gap: 0.11rem;
    min-width: 0;
}

.fe-f2__pin {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f08a12;
    color: #fff;
}

.fe-f2__pin svg {
    width: 20px;
    height: 20px;
    display: block;
}

.fe-f2__map {
    position: relative;
    flex: 0 0 285px;
    width: 285px;
    height: 180px;
    overflow: hidden;
    border: 1px solid #e4e7ee;
    border-radius: 6px;
    background: #e8eef3;
    box-shadow: 0 8px 18px rgba(30, 50, 80, 0.12);
}

.fe-f2--photo .fe-f2__map {
    margin-top: 0;
    transform: none;
}

body.fe-site .fe-f2__map iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border: 0 !important;
}

.fe-f2__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    grid-column: 1 / -1;
    align-self: center;
    justify-self: center;
    width: max-content;
    max-width: 100%;
    padding: 0.4rem 0.7rem 0.45rem;
    border-radius: 10px;
    background: transparent;
    color: var(--fe-f2-menu, #ffffff);
    box-shadow: none;
    transform: translateY(25px);
    text-align: center;
}

.fe-f2__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.39rem;
}

.fe-f2__social-link {
    display: inline-flex;
    line-height: 0;
}

.fe-f2__social-link img {
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.fe-f2__quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.23rem 0.45rem;
    margin: 0;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.25;
}

.fe-f2__quick,
.fe-f2__quick a {
    color: var(--fe-f2-menu, #ffffff);
    text-decoration: none;
}

.fe-f2__quick a:hover,
.fe-f2__quick a:focus-visible {
    text-decoration: underline;
}

@media (min-width: 1100px) {
    .fe-f2__bar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .fe-f2__logo {
        grid-row: 1;
        grid-column: 1;
    }

    .fe-f2__main {
        grid-row: 1;
        grid-column: 2;
    }

    .fe-f2__brand {
        grid-row: 1;
        grid-column: 3;
        justify-self: end;
    }
}

/* ล็อกชิ้นส่วนบนรูปฟุตเตอร์ — สัดส่วนเดียวกับจอ ~1440 ซูมออกแล้วไม่เลื่อน */
@media (min-width: 1024px) {
    .fe-f2--photo {
        container-type: inline-size;
    }

    .fe-f2--photo .fe-f2__band {
        position: relative;
    }

    .fe-f2--photo .fe-f2__bar {
        position: absolute;
        inset: 0;
        display: block;
        width: auto;
        height: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        align-self: stretch;
        background: transparent;
    }

    .fe-f2--photo .fe-f2__logo,
    .fe-f2--photo .fe-f2__title,
    .fe-f2--photo .fe-f2__item,
    .fe-f2--photo .fe-f2__stack,
    .fe-f2--photo .fe-f2__map,
    .fe-f2--photo .fe-f2__brand {
        position: absolute;
        margin: 0;
        transform: none;
    }

    .fe-f2--photo .fe-f2__logo {
        left: calc(100cqw * 151 / 1920);
        top: calc(100cqw * 5 / 1920);
        width: calc(100cqw * 91.8 / 1920);
        height: calc(100cqw * 91.8 / 1920);
    }

    .fe-f2--photo .fe-f2__title {
        left: calc(100cqw * 299.3 / 1920);
        top: calc(100cqw * 7 / 1920);
        width: max-content;
        max-width: calc(100cqw * 458.4 / 1920);
    }

    .fe-f2--photo .fe-f2__name {
        font-size: calc(100cqw * 28 / 1920);
    }

    .fe-f2--photo .fe-f2__en {
        font-size: calc(100cqw * 20.52 / 1920);
    }

    .fe-f2--photo .fe-f2__item {
        left: calc(100cqw * 151 / 1920);
        top: calc(100cqw * 115 / 1920);
        width: calc(100cqw * 296.6 / 1920);
        max-width: none;
        align-items: flex-start;
        gap: calc(100cqw * 9.45 / 1920);
        font-size: calc(100cqw * 18.15 / 1920);
    }

    .fe-f2--photo .fe-f2__stack {
        left: calc(100cqw * 461.2 / 1920);
        top: calc(100cqw * 115 / 1920);
        width: calc(100cqw * 296.6 / 1920);
        gap: calc(100cqw * 6.08 / 1920);
    }

    .fe-f2--photo .fe-f2__line {
        gap: calc(100cqw * 9.45 / 1920);
        font-size: calc(100cqw * 18.15 / 1920);
    }

    .fe-f2--photo .fe-f2__pin {
        width: calc(100cqw * 37.8 / 1920);
        height: calc(100cqw * 37.8 / 1920);
    }

    .fe-f2--photo .fe-f2__pin svg {
        width: calc(100cqw * 20.25 / 1920);
        height: calc(100cqw * 20.25 / 1920);
    }

    .fe-f2--photo .fe-f2__item > span:last-child {
        padding-top: calc(100cqw * 6.75 / 1920);
    }

    .fe-f2--photo .fe-f2__map {
        left: calc(100cqw * 871.5 / 1920);
        top: calc(100cqw * 70.2 / 1920);
        flex: none;
        width: calc(100cqw * 284.85 / 1920);
        height: calc(100cqw * 179.55 / 1920);
    }

    .fe-f2--photo .fe-f2__brand {
        left: calc(100cqw * 1458.6 / 1920);
        top: calc(100cqw * 100 / 1920);
        width: calc(100cqw * 310.5 / 1920);
        max-width: none;
        padding: 0;
        gap: calc(100cqw * 6.08 / 1920);
    }

    .fe-f2--photo .fe-f2__quick {
        font-size: calc(100cqw * 16.88 / 1920);
        gap: calc(100cqw * 8.1 / 1920);
    }

    .fe-f2--photo .fe-f2__social {
        gap: calc(100cqw * 7.56 / 1920);
    }

    .fe-f2--photo .fe-f2__social-link img {
        width: calc(100cqw * 37.8 / 1920);
        height: calc(100cqw * 37.8 / 1920);
    }

    .fe-f2--photo .fe-footer__legal {
        height: calc(100cqw * 48 / 1920);
        min-height: calc(100cqw * 48 / 1920);
    }

    .fe-f2--photo .fe-footer__legal-inner {
        min-height: calc(100cqw * 48 / 1920);
        width: min(100% - 2rem, calc(100cqw * 1600 / 1920));
    }

    .fe-f2--photo .fe-footer__copy,
    .fe-f2--photo .fe-footer__policies {
        font-size: calc(100cqw * 15.6 / 1920);
    }
}

@media (max-width: 767px) {
    .fe-f2__stage {
        display: flex;
        flex-direction: column;
    }

    /* มือถือ: พื้นหลังแบนเนอร์ก่อนฟุตเตอร์ซูมเต็มตามความสูงเนื้อหา */
    .fe-f2__scene,
    .fe-footer__scene {
        min-height: 0;
        height: auto;
        align-self: stretch;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }

    .fe-banner--on-footer {
        min-height: 100%;
        background: transparent;
    }

    .fe-f2__stage > .fe-f2__band,
    .fe-footer__stack > .fe-footer__band {
        margin-top: 0;
    }

    .fe-f2--photo .fe-f2__band {
        display: flex;
        flex-direction: column;
        background-color: #078fd8;
        background-image: var(--fe-f2-photo);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }

    .fe-f2--photo .fe-f2__photo {
        display: none;
    }

    .fe-f2--photo .fe-f2__bar {
        position: relative;
        inset: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 1rem 1rem 1.25rem;
        background: transparent;
        color: var(--fe-f2-menu, #fff);
    }

    .fe-f2--photo .fe-f2__logo {
        width: 64px;
        height: 64px;
        transform: none;
    }

    .fe-f2--photo .fe-f2__title {
        transform: none;
        width: auto;
        max-width: 100%;
    }

    .fe-f2--photo .fe-f2__name {
        font-size: 1.12rem;
        color: #e36b12;
    }

    .fe-f2--photo .fe-f2__meta {
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
    }

    .fe-f2--photo .fe-f2__item,
    .fe-f2--photo .fe-f2__stack,
    .fe-f2--photo .fe-f2__line,
    .fe-f2--photo .fe-f2__item a,
    .fe-f2--photo .fe-f2__line a {
        position: static;
        margin: 0;
        transform: none;
        width: auto;
        max-width: 100%;
        color: var(--fe-f2-menu, #fff);
        font-size: 0.84rem;
    }

    .fe-f2--photo .fe-f2__map {
        position: relative;
        flex: 0 0 auto;
        width: min(100%, 220px);
        max-width: 220px;
        height: 112px;
        margin: 0.15rem auto 0;
        transform: none;
    }

    .fe-f2--photo .fe-f2__brand {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        align-items: center;
        padding: 0;
    }

    .fe-f2--photo .fe-f2__quick,
    .fe-f2--photo .fe-f2__quick a {
        justify-content: center;
        color: var(--fe-f2-menu, #fff);
        font-size: 0.8rem;
    }

    .fe-f2--photo .fe-f2__social-link img {
        width: 30px;
        height: 30px;
    }

    .fe-f2--photo .fe-f2__pin {
        width: 26px;
        height: 26px;
    }

    .fe-f2--photo .fe-f2__pin svg {
        width: 14px;
        height: 14px;
    }
}

/* แถบล่าง: ลิขสิทธิ์ซ้าย · ตัวนับกลาง · นโยบายขวา — บรรทัดเดียว */
@media (min-width: 1024px) {
    .fe-footer__legal {
        --fe-footer-legal-h: 40px;
        height: 40px;
        min-height: 40px;
    }

    .fe-footer__legal-inner {
        display: grid;
        grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
        gap: 0 clamp(1.25rem, 2.6vw, 3rem);
        width: min(100% - 2rem, 1600px);
    }

    .fe-footer__copy,
    .fe-footer__policies {
        font-size: clamp(0.6875rem, 0.68vw, 0.8125rem);
        white-space: nowrap;
    }

    .fe-footer__copy {
        justify-self: end;
    }

    .fe-footer__counter {
        justify-self: center;
    }

    .fe-footer__policies {
        justify-self: start;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0 clamp(0.75rem, 1.1vw, 1.5rem);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .fe-footer__legal-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 0.5rem 0;
    }

    .fe-footer__copy,
    .fe-footer__counter,
    .fe-footer__policies {
        justify-self: center;
        justify-content: center;
    }
}

/* -------------------------------------------------------------------------- */
/* e-GP — ข่าวจัดซื้อจัดจ้าง (section_egp)                                     */
/* -------------------------------------------------------------------------- */
.fe-egp {
    --fe-egp-primary: #0470c3;
    --fe-egp-accent: #1aa6b8;
    --fe-egp-ink: #1a2b3c;
    position: relative;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    overflow: clip;
    color: var(--fe-egp-ink);
    background: var(--fe-egp-board, #e8f3fb);
}

.fe-egp__shell {
    display: grid;
    grid-template-columns: minmax(200px, 24%) minmax(210px, 24%) minmax(0, 1fr);
    min-height: 520px;
}

.fe-egp__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 1.5rem 4.25rem 1.5rem 1.75rem;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(8, 40, 80, 0.28), rgba(8, 40, 80, 0.45)),
        var(--fe-egp-photo, var(--fe-egp-bg, none)),
        linear-gradient(160deg, #1d4e89, #0e7490);
    background-size: cover;
    background-position: center;
}

.fe-egp__hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: min(100%, 18rem);
    margin-left: auto;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.fe-egp__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.45rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.fe-egp__kicker {
    margin: 0;
    color: var(--fe-egp-menu, #fff);
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    font-weight: 700;
    line-height: 1.3;
}

.fe-egp__agency {
    margin: 0.2rem 0 0;
    color: var(--fe-egp-menu, #fff);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.35;
}

.fe-egp__title {
    margin: 0.15rem 0 0;
    color: var(--fe-egp-menu, #fff);
    font-size: clamp(3.2rem, 5vw, 4.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.fe-egp__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 1.25rem 0 1.25rem -1.25rem;
    padding: 1.15rem 0.85rem;
    border-radius: 1.15rem 0 0 1.15rem;
    background: var(--fe-egp-nav, #1e4f86);
    box-shadow: 8px 10px 24px rgba(15, 40, 80, 0.18);
    z-index: 1;
}

.fe-egp__nav-btn {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 0;
    border-radius: 0.85rem;
    background: transparent;
    color: var(--fe-egp-menu, #fff);
    font: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.fe-egp__nav-btn.is-active {
    background: #fff;
    color: #16324f;
}

.fe-egp__nav-dot {
    flex: 0 0 auto;
    width: 0.65rem;
    height: 0.65rem;
    margin-top: 0.42rem;
    border-radius: 999px;
    background: transparent;
}

.fe-egp__nav-btn.is-active .fe-egp__nav-dot {
    background: #f5b942;
}

.fe-egp__board {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 520px;
    padding: 1.35rem 1.35rem 1.15rem 1.15rem;
    background: var(--fe-egp-board, #e8f3fb);
}

.fe-egp__board-title {
    margin: 0 0 0.85rem;
    color: var(--fe-egp-menu, #fff);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 800;
}

.fe-egp__pane {
    flex: 1 1 auto;
    min-height: calc(5 * 4.35rem + 4 * 0.55rem);
}

.fe-egp__pane[hidden] {
    display: none !important;
}

.fe-egp__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.fe-egp__item {
    margin: 0;
}

.fe-egp__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    align-items: center;
    min-height: 4.35rem;
    padding: 0.7rem 0.95rem;
    border-radius: 0.95rem;
    background: #fff;
    color: var(--fe-egp-primary, #0470c3);
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(18, 58, 110, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fe-egp--logo .fe-egp__link {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.fe-egp__item-logo {
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.1rem;
    object-fit: contain;
    border-radius: 999px;
    background: #fff;
    padding: 0.12rem;
    box-shadow: 0 1px 4px rgba(15, 40, 80, 0.12);
}

.fe-egp__link:hover,
.fe-egp__link:focus-visible {
    color: var(--fe-egp-primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(18, 58, 110, 0.14);
    outline: none;
}

.fe-egp__item-title {
    color: var(--fe-egp-primary, #0470c3);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fe-egp__date {
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #e7f2fb;
    color: #1e4f86;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}

.fe-egp__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: calc(5 * 4.35rem + 4 * 0.55rem);
    padding: 1.5rem 0.25rem;
    background: transparent;
    color: var(--fe-egp-menu, #fff);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.fe-egp__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 0.85rem;
}

.fe-egp__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 42px;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: var(--fe-egp-btn, #1aa6a6);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(26, 166, 166, 0.28);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.fe-egp__btn:hover,
.fe-egp__btn:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.05);
    outline: none;
}

@media (max-width: 1023px) {
    .fe-egp__shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .fe-egp__hero {
        min-height: 0;
    }

    .fe-egp__hero {
        min-height: 240px;
    }

    .fe-egp__nav {
        flex-direction: row;
        overflow-x: auto;
        margin: 0;
        border-radius: 0;
    }

    .fe-egp__nav-btn {
        flex: 0 0 auto;
        width: auto;
        max-width: 16rem;
    }
}

@media (max-width: 767px) {
    .fe-egp__hero {
        justify-content: center;
        padding: 1.5rem 1.25rem;
    }

    .fe-egp__hero-copy {
        align-items: center;
        width: min(100%, 20rem);
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .fe-egp__title {
        text-align: center;
    }

    .fe-egp__link {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.25rem;
    }

    .fe-egp--logo .fe-egp__link {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.65rem 0.75rem;
    }

    .fe-egp__date {
        text-align: left;
        white-space: normal;
    }

    .fe-egp--logo .fe-egp__date {
        grid-column: 2;
    }

    .fe-egp__actions {
        justify-content: stretch;
    }

    .fe-egp__btn {
        width: 100%;
    }
}

/* หน้าใน / ดูทั้งหมด — คอลัมน์เนื้อหา 1280 กึ่งกลาง แถบชื่อเมนูยังเต็มความกว้าง
   จอ ≥1280 ไม่ใส่ padding ในคอลัมน์ (ช่องว่างซ้ายขวาคือส่วนที่เหลือหารสอง)
   จอแคบกว่านั้นเว้นข้างละ 1rem */
.fe-egp-page {
    --fe-egp-primary: #0470c3;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

body.fe-site .fe-inner.fe-egp-page {
    background: #fff;
    color: #1c2430;
    font-family: "Noto Sans Thai", sans-serif;
}

body.fe-site .fe-egp-page .fe-container {
    max-width: 1280px;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1280px) {
    body.fe-site .fe-egp-page .fe-container {
        padding-left: 0;
        padding-right: 0;
    }
}

.fe-egp-page__head {
    background-color: var(--fe-egp-primary);
    background-image: var(--fe-post-intro, linear-gradient(90deg, var(--fe-egp-primary), color-mix(in srgb, var(--fe-egp-primary) 70%, #0993d7)));
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    color: #fff;
    min-height: 102px;
    padding: 0;
    display: flex;
    align-items: center;
}

body.fe-site:not(.fe-home) .fe-egp-page__head {
    position: relative;
    z-index: 4;
    width: min(100vw, 1920px);
    max-width: 1920px;
    margin-left: calc((100% - min(100vw, 1920px)) / 2);
    margin-right: calc((100% - min(100vw, 1920px)) / 2);
    margin-top: calc(min(100vw, 1920px) * -0.7 * 155 / 1920 + 36px);
}

@media (max-width: 1023px) {
    body.fe-site:not(.fe-home) .fe-egp-page__head {
        margin-top: calc(min(100vw, 1920px) * -0.35 * 155 / 1920);
    }
}

@media (max-width: 767px) {
    body.fe-site:not(.fe-home) .fe-egp-page__head {
        margin-top: calc(min(100vw, 1920px) * -1.6 * 155 / 1920);
    }
}

/* หน้ากิจกรรม — ภาพหัวข้อและพื้นหลังแบบหน้าค้นหา เนื้อหากว้าง 1280 */
body.fe-site .fe-activity.fe-egp-page {
    max-width: none;
}

body.fe-site .fe-activity .fe-container {
    max-width: 1280px;
}

body.fe-site .fe-activity__bg {
    min-height: 550px;
    background-color: #fff;
    background-image: var(--fe-page-bg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: auto;
}

body.fe-site:not(.fe-home) .fe-activity .fe-egp-page__head {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 72px;
    padding: 0 1rem;
    background-color: transparent;
    background-image: var(--fe-post-intro, linear-gradient(90deg, var(--fe-egp-primary), color-mix(in srgb, var(--fe-egp-primary) 70%, #0993d7)));
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}

body.fe-site .fe-activity .fe-egp-page__title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 39px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.fe-egp-page__title {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 800;
    text-align: center;
}

.fe-egp-page__body {
    padding-top: 1.25rem;
}

.fe-egp-page__back {
    margin-bottom: 1rem;
}

.fe-egp-page__tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.fe-egp-page__tools .fe-egp-page__back {
    margin-bottom: 0;
}

.fe-admin-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.4rem 0.95rem;
    border: 1px solid #d97706;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.fe-admin-edit:hover,
.fe-admin-edit:focus-visible {
    background: #ffedd5;
    color: #9a3412;
    outline: none;
}

button.fe-admin-edit {
    cursor: pointer;
    font-family: inherit;
}

.fe-edit-note {
    margin: 0;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-size: 0.88rem;
    font-weight: 700;
}

/* navbar ยังโชว์ใต้ popup (ผ่าน backdrop ด้านซ้าย) — ไม่ใช้ overflow:hidden ที่ทำให้เมนูหาย */
body.fe-edit-open .fe-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: var(--fe-max-width);
    margin-left: auto;
    margin-right: auto;
    z-index: 100005; /* ต่ำกว่า .fe-edit (100010) = อยู่ใต้ popup */
}

.fe-edit {
    position: fixed;
    inset: 0;
    z-index: 100010;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
    visibility: hidden;
    pointer-events: none;
}

.fe-edit[hidden] {
    display: none;
}

.fe-edit.is-open {
    visibility: visible;
    pointer-events: auto;
}

.fe-edit__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
    opacity: 0;
    transition: opacity 0.32s ease;
}

.fe-edit.is-open .fe-edit__backdrop {
    opacity: 1;
}

.fe-edit__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1180px, calc(100vw - 1rem));
    max-height: 100%;
    height: 100%;
    margin: 0;
    border-radius: 18px 0 0 18px;
    background: #fff;
    box-shadow: -18px 0 48px rgba(15, 23, 42, 0.28);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.22, 0.8, 0.28, 1);
    will-change: transform;
}

.fe-edit.is-open .fe-edit__dialog {
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .fe-edit__backdrop,
    .fe-edit__dialog {
        transition: none;
    }
}

.fe-edit__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 0;
    background: var(--fe-edit-primary, #0470c3);
    color: var(--fe-edit-menu, #ffffff);
    border-radius: 18px 0 0 0;
}

.fe-edit__head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: inherit;
}

.fe-edit__x,
.fe-edit__cancel,
.fe-edit__save,
.fe-edit__side button,
.fe-edit__attach button {
    font-family: inherit;
    cursor: pointer;
}

.fe-edit__x {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fe-edit-menu, #fff) 18%, transparent);
    color: var(--fe-edit-menu, #ffffff);
    font-size: 1rem;
}

.fe-edit__x:hover,
.fe-edit__x:focus-visible {
    background: color-mix(in srgb, var(--fe-edit-menu, #fff) 28%, transparent);
    outline: none;
}

.fe-edit__body {
    overflow: auto;
    padding: 1rem;
}

.fe-edit__errors {
    margin-bottom: 0.8rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: #fef2f2;
    color: #b91c1c;
}

.fe-edit__errors p,
.fe-edit__field {
    margin: 0;
}

.fe-edit__field {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.fe-edit__field span {
    font-weight: 700;
}

.fe-edit__field em {
    color: #dc2626;
    font-style: normal;
}

.fe-edit__field input,
.fe-edit__field textarea,
.fe-edit__field select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font: inherit;
}

.fe-edit__cover {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f4f6;
}

.fe-edit__hint {
    margin: 0 0 0.85rem;
    color: #475569;
    font-size: 0.92rem;
}

.fe-edit__slot {
    display: block;
    width: min(100%, 280px);
    max-height: 160px;
    object-fit: contain;
    border-radius: 12px;
    background: #f3f4f6;
}

.fe-edit__check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
}

.fe-edit__check input {
    width: auto;
}

.fe-edit__foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.fe-edit__cancel,
.fe-edit__side button {
    min-height: 40px;
    padding: 0.4rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
}

.fe-edit__save,
.fe-edit__upload-btn {
    min-height: 40px;
    padding: 0.4rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #0470c3;
    color: #fff;
    font-weight: 700;
}

.fe-edit__attach button.fe-edit__del,
.fe-edit__side button.fe-edit__del {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #fff1f2;
    color: #e11d48;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}

.fe-edit__attach button.fe-edit__del:hover,
.fe-edit__side button.fe-edit__del:hover {
    background: #ffe4e6;
    color: #be123c;
}

.fe-edit__side {
    margin-top: 0.4rem;
}

.fe-edit__attach {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.fe-edit__attach h3,
.fe-edit__attach h4 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
}

.fe-edit__attach h4 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
    font-size: 0.95rem;
}

.fe-edit__attach h4 span {
    min-width: 1.4rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 0.75rem;
    text-align: center;
}

.fe-edit__upload {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: end;
    margin-bottom: 0.4rem;
    padding: 0.75rem;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}

.fe-edit__upload label {
    display: grid;
    gap: 0.3rem;
    flex: 1 1 220px;
    font-weight: 700;
}

.fe-edit__empty {
    margin: 0.7rem 0 0;
    color: #6b7280;
}

.fe-edit__photos,
.fe-edit__docs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fe-edit__photos {
    display: grid;
    gap: 0.45rem;
}

.fe-edit__photos li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.fe-edit__thumb {
    flex: 0 0 auto;
    width: 92px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

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

.fe-edit__photos span {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.fe-edit__docs a {
    font-size: 0.8rem;
    line-height: 1.35;
    word-break: break-word;
}

.fe-edit__photos form,
.fe-edit__docs form {
    margin: 0;
}

.fe-edit__docs {
    display: grid;
    gap: 0.45rem;
}

.fe-edit__docs li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.fe-edit__docs a {
    flex: 1;
    min-width: 0;
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
}

.fe-edit__docs a:hover {
    text-decoration: underline;
}

.fe-edit__badge {
    flex: 0 0 auto;
    min-width: 3.1rem;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-align: center;
}

.fe-edit__badge--pdf { background: #dc2626; }
.fe-edit__badge--doc { background: #2563eb; }
.fe-edit__badge--xls { background: #15803d; }
.fe-edit__badge--file { background: #64748b; }

.fe-egp-page__error {
    color: #b91c1c;
    margin: 0 0 1rem;
}

.fe-egp-page__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fe-egp-page__item {
    border-bottom: 1px solid #e5e7eb;
}

.fe-egp-page__link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: start;
    padding: 0.9rem 0.25rem;
    color: inherit;
    text-decoration: none;
}

.fe-egp-page__link:hover,
.fe-egp-page__link:focus-visible {
    background: #f8fafc;
    outline: none;
}

.fe-egp-page__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    object-fit: cover;
    background: #fff;
}

body.fe-site .fe-lpa__cover {
    width: 4.5rem;
    height: 6rem;
    border-radius: 0.4rem;
    object-fit: cover;
    background: #f4f8fc;
}

.fe-egp-page__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.fe-egp-page__item-title {
    color: #1c2430;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
}

.fe-egp-page__date {
    color: #6b7280;
    font-size: 0.85rem;
    white-space: nowrap;
}

.fe-pstd__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem;
}

.fe-pstd__tab {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(22, 50, 74, 0.14);
    border-radius: 999px;
    background: #fff;
    color: #16324a;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.fe-pstd__tab.is-on {
    border-color: transparent;
    background: var(--fe-egp-primary, #0470c3);
    color: #fff;
}

.fe-egp-page__pager {
    margin-top: 1.25rem;
}

@media (max-width: 640px) {
    .fe-egp-page__link {
        grid-template-columns: auto 1fr;
    }

    .fe-egp-page__date {
        grid-column: 2;
        white-space: normal;
    }
}

/* -------------------------------------------------------------------------- */
/* Map — แผนที่หน่วยงาน (section_map)                                          */
/* -------------------------------------------------------------------------- */
.fe-map {
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    overflow: clip;
}

.fe-map__toolbar {
    min-height: 102px;
    display: flex;
    align-items: center;
    background: #5b2d8e;
}

.fe-map--has-bg .fe-map__toolbar {
    background-image: var(--fe-map-bg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.fe-map__toolbar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding-block: 0.75rem;
}

.fe-map__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.fe-map__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.45rem 0.95rem;
    border-radius: 0.65rem;
    background: #fff;
    color: #1f2937;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.fe-map__chip:hover,
.fe-map__chip:focus-visible {
    background: #f3f4f6;
    transform: translateY(-1px);
    outline: none;
}

.fe-map__chip-icon {
    flex-shrink: 0;
    display: block;
}

.fe-map__embed {
    position: relative;
    width: 100%;
    height: min(400px, 70vw);
    background: #e5e7eb;
    border: 1px solid color-mix(in srgb, #5b2d8e 35%, #d1d5db);
    overflow: hidden;
}

.fe-map__embed iframe,
.fe-map__embed > * {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    border: 0;
    display: block;
}

@media (max-width: 767px) {
    .fe-map__toolbar {
        min-height: 0;
    }

    .fe-map__toolbar-inner {
        justify-content: stretch;
    }

    .fe-map__actions {
        width: 100%;
        justify-content: stretch;
    }

    .fe-map__chip {
        flex: 1 1 auto;
        justify-content: center;
        font-size: 0.85rem;
        padding-inline: 0.7rem;
    }

    .fe-map__embed {
        height: min(320px, 85vw);
    }
}

/* -------------------------------------------------------------------------- */
/* News Alt — ตาราง 2×2 เครือข่าย อปท. / หนังสือราชการ / กระดานสนทนา         */
/* -------------------------------------------------------------------------- */
.fe-news-alt {
    --fe-na-primary: #0470c3;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    overflow: clip;
}

.fe-news-alt__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1rem, 2.4vw, 2.25rem);
    padding-block: clamp(1rem, 2.5vw, 2rem);
}

.fe-news-alt__card {
    --fe-na-from: #5b21b6;
    --fe-na-to: #f9a8d4;
    --fe-na-ink: #fff;
    --fe-na-btn: #7c3aed;
    --fe-na-btn-ink: #fff;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fe-news-alt__card--warm {
    --fe-na-from: #ea6a00;
    --fe-na-to: #fff200;
    /* ตัวอักษรหัวข้ออิง --fe-na-ink จากสีเมนู (color_text_menu_1) ไม่บังคับสีเข้ม */
    --fe-na-btn: #fff200;
    --fe-na-btn-ink: #1f2937;
}

.fe-news-alt__pill {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.9rem;
    padding: 0.35rem 1.25rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--fe-na-from) 0%, var(--fe-na-to) 100%);
    box-shadow: 0 4px 14px var(--fe-na-shadow, rgba(15, 23, 42, 0.12));
}

.fe-news-alt__pill-title {
    margin: 0;
    color: var(--fe-na-ink);
    font-size: clamp(0.98rem, 1.1vw, 1.15rem);
    font-weight: 700;
    line-height: 1.3;
}

.fe-news-alt__pill--tabs {
    flex-wrap: wrap;
    padding: 0.3rem;
}

.fe-news-alt__tab {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    color: #fff;
    font-size: clamp(0.88rem, 0.95vw, 1rem);
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}

.fe-news-alt__tab.is-active {
    background: #fff200;
    color: #1f2937;
}

a.fe-news-alt__tab:hover,
a.fe-news-alt__tab:focus-visible {
    background: rgba(255, 255, 255, 0.35);
    color: #1f2937;
    outline: none;
}

.fe-news-alt__box {
    flex: 1;
    margin-top: 0.75rem;
    min-width: 0;
}

.fe-news-alt__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #1f2937;
}

.fe-news-alt__table th {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.18);
    color: var(--fe-na-from);
    font-weight: 700;
    text-align: center;
}

.fe-news-alt__table td {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    vertical-align: top;
}

.fe-news-alt__table--org th:first-child { width: 32%; }
.fe-news-alt__table--book th:nth-child(2) { width: 22%; }
.fe-news-alt__table--book th:nth-child(3),
.fe-news-alt__table--board th:nth-child(2) { width: 20%; }

.fe-news-alt__org-cell {
    padding-left: 1rem !important;
}

.fe-news-alt__center,
.fe-news-alt__date-cell {
    text-align: center;
}

.fe-news-alt__date-cell {
    white-space: nowrap;
}

.fe-news-alt__link {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fe-news-alt__link:hover,
.fe-news-alt__link:focus-visible {
    color: var(--fe-na-btn);
    text-decoration: underline;
    outline: none;
}

.fe-news-alt__card--warm .fe-news-alt__link:hover,
.fe-news-alt__card--warm .fe-news-alt__link:focus-visible {
    color: var(--fe-na-from);
}

.fe-news-alt__feed {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fe-news-alt__feed > li {
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.fe-news-alt__feed-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.45rem 0.25rem 0.45rem 1.1rem;
    position: relative;
    color: #1f2937;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.4;
}

.fe-news-alt__feed-item::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.95rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #facc15;
}

.fe-news-alt__feed-org {
    color: var(--fe-na-from);
    font-weight: 700;
}

.fe-news-alt__feed-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.fe-news-alt__feed-prov {
    flex: 0 0 auto;
    min-width: 7.5rem;
}

.fe-news-alt__feed-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fe-news-alt__feed-item:hover .fe-news-alt__feed-title,
.fe-news-alt__feed-item:focus-visible .fe-news-alt__feed-title {
    color: var(--fe-na-btn);
    text-decoration: underline;
}

.fe-news-alt__feed-item:focus-visible {
    outline: none;
}

.fe-news-alt__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.fe-news-alt__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.35rem 1.35rem;
    border-radius: 999px;
    background: var(--fe-na-btn);
    color: var(--fe-na-btn-ink);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.fe-news-alt__more:hover,
.fe-news-alt__more:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.06);
    outline: none;
}

/* FAQ accordion — ใช้ใน news_alt1 (compact) และหน้า front.faq */
.fe-faq {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: #1f2937;
}

.fe-faq__item {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.fe-faq__q {
    position: relative;
    display: block;
    min-height: 44px;
    padding: 0.8rem 2.75rem 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease;
}

.fe-faq__q::-webkit-details-marker {
    display: none;
}

.fe-faq__q::after {
    content: "";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}

.fe-faq__item[open] > .fe-faq__q::after {
    transform: translateY(-30%) rotate(-135deg);
}

.fe-faq__q:hover,
.fe-faq__q:focus-visible {
    background: rgba(255, 242, 0, 0.18);
    outline: none;
}

.fe-faq__item[open] > .fe-faq__q {
    background: rgba(255, 242, 0, 0.28);
}

.fe-faq__a {
    padding: 0.75rem 1rem 0.9rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.fe-faq__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.fe-faq__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.fe-faq__link {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: #fef9c3;
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.fe-faq__link:hover,
.fe-faq__link:focus-visible {
    background: #fde68a;
    outline: none;
}

.fe-faq--compact {
    gap: 0.45rem;
}

.fe-faq--compact .fe-faq__q {
    padding-block: 0.6rem;
    color: var(--fe-na-from);
    font-size: 0.92rem;
}

.fe-faq--compact .fe-faq__text {
    font-size: 0.88rem;
}

.fe-news-alt__org {
    color: var(--fe-na-primary);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}

.fe-news-alt__sub {
    color: #1f2937;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

.fe-news-alt__empty {
    margin: 0;
    padding: 0.75rem 0.25rem;
    color: #4b5563;
    font-size: 0.92rem;
}

.fe-news-alt__books {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.fe-news-alt__books--page {
    gap: 0.85rem;
}

.fe-news-alt__book {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: start;
    padding: 0.55rem 0.2rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.fe-news-alt__book:last-child {
    border-bottom: 0;
}

.fe-news-alt__book-logo {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    object-fit: cover;
    margin-top: 0.1rem;
}

.fe-news-alt__book-line {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #1f2937;
}

.fe-news-alt__docno,
.fe-news-alt__docorg {
    color: #16a34a;
    font-weight: 700;
}

.fe-news-alt__doctopic {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.fe-news-alt__doctopic:hover,
.fe-news-alt__doctopic:focus-visible {
    text-decoration: underline;
    outline: none;
}

.fe-news-alt__docdate {
    color: #bd6100;
    font-weight: 600;
    white-space: nowrap;
}

.fe-news-alt__recdate {
    color: #9c0053;
    font-weight: 600;
    white-space: nowrap;
}

.fe-news-alt__file {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.fe-news-alt__file:hover,
.fe-news-alt__file:focus-visible {
    text-decoration: underline;
    outline: none;
}

.fe-egp-page__link--stack {
    grid-template-columns: 1fr auto;
}

.fe-egp-page__link--stack .fe-news-alt__org,
.fe-egp-page__link--stack .fe-news-alt__sub {
    display: block;
}

@media (max-width: 1023px) {
    .fe-news-alt__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .fe-news-alt__table {
        font-size: 0.88rem;
    }

    .fe-news-alt__table--org th:first-child { width: 30%; }
    .fe-news-alt__table--book th:nth-child(2) { width: 26%; }
    .fe-news-alt__table--book th:nth-child(3),
    .fe-news-alt__table--board th:nth-child(2) { width: 24%; }

    .fe-news-alt__org-cell {
        padding-left: 0.5rem !important;
    }

    .fe-news-alt__feed-prov {
        min-width: 0;
    }

    .fe-news-alt__docdate,
    .fe-news-alt__recdate,
    .fe-news-alt__file {
        white-space: normal;
    }
}



/* ==========================================================================
   Quick menu (เมนูลัด) — partials/quick-menu.blade.php
   ปุ่มกลมมุมขวาล่าง ข้างปุ่มกลับขึ้นบน → กดลง แล้วเด้งขึ้น → เปิด card
   ========================================================================== */
body.fe-site .fe-qm {
    --fe-qm-primary: #0470c3;
    --fe-qm-radius: 28px;
    /* ปิดอยู่ = กล่อง 0×0 ไม่คลุมทั้งจอ (เลเยอร์เต็มจอทำให้แตะ/เลื่อนหน่วง) */
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    overflow: visible;
    z-index: 100000;
    pointer-events: none;
    font-family: inherit;
}

body.fe-site .fe-qm.is-open {
    inset: 0;
    width: auto;
    height: auto;
}

body.fe-site .fe-qm__fab {
    position: fixed;
    left: auto;
    right: max(1rem, env(safe-area-inset-right));
    top: auto;
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 100000;
    width: 58px;
    height: 58px;
    margin-top: 0;
    padding: 0.2rem 0.12rem 0.16rem;
    border: 3px solid var(--fe-qm-ring, #e8b423);
    border-radius: 50%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    color: var(--fe-qm-ink, #fff);
    font-size: 0.5rem;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    touch-action: manipulation;
    background: radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.28), transparent 46%), var(--fe-qm-bg, #0a4c9a);
    box-shadow: 0 10px 24px rgba(4, 30, 70, 0.32);
    pointer-events: auto;
    isolation: isolate;
    transition: opacity 0.25s ease, box-shadow 0.25s ease, right 0.25s ease;
}

body.fe-site:has(#fe-totop:not([hidden])) .fe-qm__fab {
    right: calc(max(1rem, env(safe-area-inset-right)) + 58px + 0.75rem);
}

body.fe-site .fe-qm__fab:hover {
    box-shadow: 0 14px 30px rgba(4, 30, 70, 0.4), inset 0 -4px 10px rgba(0, 0, 0, 0.18);
}

body.fe-site .fe-qm__fab:focus-visible {
    outline: 3px solid #ffd54a;
    outline-offset: 3px;
}

body.fe-site .fe-qm__fab-ring {
    position: absolute;
    inset: -3px;
    z-index: 2;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9);
    animation: fe-qm-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

body.fe-site .fe-qm__burger {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    width: 16px;
}

body.fe-site .fe-qm__burger span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

body.fe-site .fe-qm__fab-label {
    position: relative;
    z-index: 3;
    max-width: 100%;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
}

body.fe-site .fe-qm.is-open .fe-qm__fab {
    opacity: 0;
    pointer-events: none;
}

@keyframes fe-qm-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9); opacity: 1; }
    100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); opacity: 0; }
}

body.fe-site .fe-qm__backdrop {
    position: fixed;
    inset: 0;
    z-index: 100001;
    pointer-events: auto;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

body.fe-site .fe-qm.is-open .fe-qm__backdrop {
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(2px);
}

body.fe-site .fe-qm__card {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100002;
    pointer-events: auto;
    max-height: 88vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.85rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
    border-radius: var(--fe-qm-radius) var(--fe-qm-radius) 0 0;
    background: #fff;
    color: #1f2937;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.25);
    clip-path: circle(0 at var(--fe-qm-ox, 30px) var(--fe-qm-oy, 50%));
    transition: clip-path 0.42s cubic-bezier(0.65, 0, 0.35, 1);
}

body.fe-site .fe-qm__card ::selection,
body.fe-site .fe-qm__card *::selection {
    background: transparent;
    color: inherit;
}

body.fe-site .fe-qm.is-open .fe-qm__card {
    clip-path: circle(150vmax at var(--fe-qm-ox, 30px) var(--fe-qm-oy, 50%));
    transition-duration: 0.55s;
}

@media (min-width: 1024px) {
    body.fe-site .fe-qm.is-open .fe-qm__card {
        animation: fe-qm-pop 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
}

@keyframes fe-qm-pop {
    0% { transform: translate3d(0, 42px, 0); }
    58% { transform: translate3d(0, -12px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

body.fe-site .fe-qm__handle {
    display: block;
    width: 52px;
    height: 6px;
    margin: 0 auto 0.6rem;
    border-radius: 999px;
    background: #d6dbe3;
}

body.fe-site .fe-qm__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

body.fe-site .fe-qm__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
}

body.fe-site .fe-qm__mark {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
}

body.fe-site .fe-qm__title .fe-qm__mark {
    width: 22px;
    height: 22px;
}

body.fe-site .fe-qm__close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f3f5f8;
    color: #6b7280;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

body.fe-site .fe-qm__close:hover {
    background: #e2e7ee;
    color: #111827;
}

body.fe-site .fe-qm__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: center;
    gap: 1.15rem 0.2rem;
}

/* หน้าแอป 12 ช่อง/หน้า — ปัดซ้าย/ขวา (scroll-snap) */
body.fe-site .fe-qm__pager {
    min-width: 0;
}

body.fe-site .fe-qm__pages {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body.fe-site .fe-qm__pages::-webkit-scrollbar {
    display: none;
}

@media (pointer: fine) {
    body.fe-site .fe-qm__pages {
        cursor: grab;
    }
}

/* ระหว่างลากด้วยเมาส์: ปิด snap/smooth ให้ตามเมาส์ทันที แล้วค่อย snap ตอนปล่อย */
body.fe-site .fe-qm__pages.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
}

body.fe-site .fe-qm__pages.is-dragging .fe-qm__item {
    pointer-events: none;
}

body.fe-site .fe-qm__page {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    align-content: start;
    /* เผื่อไอคอนเด้ง/ยกตอน hover ไม่ให้ถูกตัดขอบ */
    padding-block: 0.3rem;
}

body.fe-site .fe-qm__dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

body.fe-site .fe-qm__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d1d7e0;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

body.fe-site .fe-qm__dot.is-active {
    width: 22px;
    background: var(--fe-qm-primary);
}

body.fe-site .fe-qm__handle,
body.fe-site .fe-qm__head {
    touch-action: none;
}

body.fe-site .fe-qm__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem;
    border-radius: 16px;
    color: #1f2937;
    text-decoration: none;
    text-align: center;
    opacity: 0;
    transform: translateY(10px) scale(0.92);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.fe-site .fe-qm.is-open .fe-qm__item {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.18s + var(--i, 0) * 0.035s);
}

body.fe-site .fe-qm__item:focus-visible {
    outline: 3px solid var(--fe-qm-primary);
    outline-offset: 2px;
}

body.fe-site .fe-qm__icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #fff;
    font-size: 1.55rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.fe-site .fe-qm__item:hover .fe-qm__icon {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
}

body.fe-site .fe-qm__label {
    min-height: 2.5em;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    color: #374151;
}

body.fe-site .fe-qm__icon--teal   { background: linear-gradient(145deg, #26a69a, #00796b); }
body.fe-site .fe-qm__icon--violet { background: linear-gradient(145deg, #7e57c2, #4527a0); }
body.fe-site .fe-qm__icon--sky    { background: linear-gradient(145deg, #42a5f5, #1565c0); }
body.fe-site .fe-qm__icon--mint   { background: linear-gradient(145deg, #4db6ac, #26a69a); }
body.fe-site .fe-qm__icon--orange { background: linear-gradient(145deg, #ffa726, #ef6c00); }
body.fe-site .fe-qm__icon--coral  { background: linear-gradient(145deg, #ff8a65, #e64a19); }
body.fe-site .fe-qm__icon--lime   { background: linear-gradient(145deg, #9ccc65, #689f38); }
body.fe-site .fe-qm__icon--yellow { background: linear-gradient(145deg, #ffd54f, #f9a825); }
body.fe-site .fe-qm__icon--red    { background: linear-gradient(145deg, #ef5350, #c62828); }
body.fe-site .fe-qm__icon--slate  { background: linear-gradient(145deg, #78909c, #455a64); }
body.fe-site .fe-qm__icon--brown  { background: linear-gradient(145deg, #8d6e63, #5d4037); }
body.fe-site .fe-qm__icon--indigo { background: linear-gradient(145deg, #5c6bc0, #283593); }
body.fe-site .fe-qm__icon--cyan   { background: linear-gradient(145deg, #26c6da, #00838f); }
body.fe-site .fe-qm__icon--pink   { background: linear-gradient(145deg, #ec407a, #ad1457); }
body.fe-site .fe-qm__icon--emerald{ background: linear-gradient(145deg, #66bb6a, #2e7d32); }
body.fe-site .fe-qm__icon--amber  { background: linear-gradient(145deg, #ffca28, #ff8f00); }
body.fe-site .fe-qm__icon--photo {
    background: #fff;
    overflow: hidden;
    padding: 0;
}
body.fe-site .fe-qm__icon--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

body.fe-site .fe-qm__dock {
    margin-top: 1.15rem;
    padding: 0.15rem 0.85rem;
    border-radius: 18px;
    background: #f4f7fb;
}

body.fe-site .fe-qm__lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: #4b5563;
}

body.fe-site .fe-qm__lang > span {
    margin-right: auto;
}

body.fe-site .fe-qm__lang-btn {
    height: 40px;
    min-width: 44px;
    padding: 0 0.7rem;
    border: 1px solid #dfe4ea;
    border-radius: 12px;
    background: #f7f9fb;
    color: #1f2937;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

body.fe-site .fe-qm__lang-btn.is-active {
    border-color: var(--fe-qm-primary);
    background: var(--fe-qm-primary);
    color: #fff;
}

body.fe-site .fe-qm__lang-more {
    position: relative;
}

body.fe-site .fe-qm__lang-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 9.5rem;
    font-weight: 600;
}

body.fe-site .fe-qm__lang-more-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.fe-site .fe-qm__lang-more-btn i {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

body.fe-site .fe-qm__lang.is-open .fe-qm__lang-more-btn i {
    transform: rotate(180deg);
}

body.fe-site .fe-qm__lang-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    z-index: 2;
    width: max-content;
    min-width: 11rem;
    max-width: min(16rem, 70vw);
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

body.fe-site .fe-qm__lang-menu button {
    display: block;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #1f2937;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
}

body.fe-site .fe-qm__lang-menu button:hover,
body.fe-site .fe-qm__lang-menu button.is-active {
    background: color-mix(in srgb, var(--fe-qm-primary) 12%, #fff);
    color: var(--fe-qm-primary);
}

body.fe-site .fe-qm__gt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

body.fe-site {
    top: 0 !important;
}

body.fe-site > .skiptranslate,
.goog-te-banner-frame {
    display: none !important;
}

body.fe-site .fe-qm__tools {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.75rem 0;
    border-top: 1px solid #e3e9f0;
    font-size: 0.85rem;
    color: #4b5563;
}

body.fe-site .fe-qm__tools span {
    margin-right: auto;
}

body.fe-site .fe-qm__fs {
    width: 44px;
    height: 44px;
    border: 1px solid #dfe4ea;
    border-radius: 12px;
    background: #f7f9fb;
    color: #1f2937;
    cursor: pointer;
    line-height: 1;
}

body.fe-site .fe-qm__fs[data-size="small"]  { font-size: 0.85rem; }
body.fe-site .fe-qm__fs[data-size="medium"] { font-size: 1.1rem; }
body.fe-site .fe-qm__fs[data-size="large"]  { font-size: 1.4rem; }

body.fe-site .fe-qm__fs.is-active {
    border-color: var(--fe-qm-primary);
    background: var(--fe-qm-primary);
    color: #fff;
}

body.fe-site .fe-qm__dock .fe-qm__lang-btn,
body.fe-site .fe-qm__dock .fe-qm__fs {
    background: #fff;
}

body.fe-site .fe-qm__dock .fe-qm__lang-btn.is-active,
body.fe-site .fe-qm__dock .fe-qm__fs.is-active {
    border-color: var(--fe-qm-primary);
    background: var(--fe-qm-primary);
    color: #fff;
}

@media (min-width: 640px) {
    body.fe-site .fe-qm__card {
        left: auto;
        right: max(1rem, env(safe-area-inset-right));
        top: auto;
        bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 76px);
        width: min(400px, calc(100vw - 2rem));
        max-height: calc(100vh - 120px);
        padding: 1.1rem 1.25rem 1.25rem;
        border-radius: var(--fe-qm-radius);
        transform: none;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
    }

    body.fe-site .fe-qm__handle {
        display: none;
    }
}

@media (min-width: 1024px) {
    body.fe-site .fe-qm__card {
        width: min(430px, calc(100vw - 28px));
    }
}

/* ≤1023px: แอนิเมชันใช้แค่ transform / opacity (GPU) — ไม่ blur / clip-path ที่วาดทั้งจอทุกเฟรม */
@media (max-width: 1023px) {
    body.fe-site .fe-qm__backdrop,
    body.fe-site .fe-qm.is-open .fe-qm__backdrop {
        background: rgba(15, 23, 42, 0.38);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.fe-site .fe-qm__backdrop {
        opacity: 0;
        transition: opacity 0.26s ease;
        will-change: opacity;
    }

    body.fe-site .fe-qm.is-open .fe-qm__backdrop {
        opacity: 1;
        transition-duration: 0.34s;
    }

    body.fe-site .fe-qm__card,
    body.fe-site .fe-qm.is-open .fe-qm__card {
        clip-path: none;
        will-change: transform, opacity;
        backface-visibility: hidden;
    }

    /* ไอคอนค่อยๆ เด้งขึ้นทีละอัน เหมือน PC */
    body.fe-site .fe-qm__item {
        opacity: 0;
        transform: translate3d(0, 14px, 0) scale(0.9);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    body.fe-site .fe-qm.is-open .fe-qm__item {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        transition: opacity 0.3s ease, transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
        transition-delay: calc(0.14s + var(--i, 0) * 0.03s);
    }

    body.fe-site .fe-qm__item:hover .fe-qm__icon {
        transform: none;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
    }
}

/* แท็บเล็ต: การ์ดลอย — จางเข้า + ขยายเล็กน้อย */
@media (min-width: 640px) and (max-width: 1023px) {
    body.fe-site .fe-qm__card {
        opacity: 0;
        transform: translate3d(0, 12px, 0) scale(0.94);
        transform-origin: right bottom;
        transition: opacity 0.22s ease, transform 0.26s ease-in;
    }

    body.fe-site .fe-qm.is-open .fe-qm__card {
        opacity: 1;
        transform: none;
        transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    }
}

@media (max-width: 639px) {
    body.fe-site .fe-qm__fab {
        width: 52px;
        height: 52px;
        margin-top: 0;
        left: auto;
        font-size: 0.46rem;
    }

    body.fe-site:has(#fe-totop:not([hidden])) .fe-qm__fab {
        right: calc(max(1rem, env(safe-area-inset-right)) + 52px + 0.75rem);
    }

    body.fe-site .fe-totop {
        width: 52px;
        height: 52px;
    }

    body.fe-site .fe-qm__fab-label {
        font-size: 0.46rem;
    }

    body.fe-site .fe-qm__icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        font-size: 1.35rem;
    }

    body.fe-site .fe-qm__label {
        font-size: 0.72rem;
    }

    /* แผ่นเลื่อนขึ้นจากล่าง — เส้นโค้งแบบ iOS sheet */
    body.fe-site .fe-qm__card {
        transform: translate3d(0, 100%, 0);
        transition: transform 0.28s cubic-bezier(0.4, 0, 1, 1);
    }

    body.fe-site .fe-qm.is-open .fe-qm__card {
        transform: translate3d(0, 0, 0);
        transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1);
    }
}

/* มือถือ + iPad: ปุ่มเมนูลัดอยู่มุมขวาล่างคู่กับปุ่มขึ้นบน เหมือนคอมพิวเตอร์ */

@media (prefers-reduced-motion: reduce) {
    body.fe-site .fe-qm__fab-ring,
    body.fe-site .fe-qm.is-open .fe-qm__card { animation: none; }
    body.fe-site .fe-qm__card,
    body.fe-site .fe-qm__item { transition: none; }
}

/* -------------------------------------------------------------------------- */
/* Popup หน้าแรก — หลายภาพ + สไลด์ (section popup / settings.popups)           */
/* -------------------------------------------------------------------------- */
html.fe-popup-open,
body.fe-popup-open {
    overflow: hidden;
}

.fe-popup {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    box-sizing: border-box;
}

.fe-popup[hidden] {
    display: none !important;
}

.fe-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 30, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fe-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(88vw, 880px);
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.fe-popup.is-ready .fe-popup__dialog {
    animation: fe-popup-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fe-popup-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.fe-popup__close {
    position: absolute;
    top: -0.85rem;
    right: -0.35rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
}

.fe-popup__close:hover,
.fe-popup__close:focus-visible {
    background: #dc2626;
    transform: scale(1.06);
    outline: none;
}

.fe-popup__panel {
    background: transparent;
    overflow: hidden;
    border-radius: 1rem;
}

.fe-popup:not(.is-ready) {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.fe-popup__slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent;
}

.fe-popup__slider:not(.is-initialized) .splide__slide ~ .splide__slide {
    display: none;
}

.fe-popup__slider .splide__track {
    overflow: hidden;
    border-radius: 1rem;
    height: auto !important;
}

.fe-popup__slider .splide__list {
    align-items: center;
}

.fe-popup__slider .splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    height: auto !important;
}

.fe-popup__slide-link {
    display: block;
    line-height: 0;
}

body.fe-site .fe-popup__img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0;
    height: auto !important;
    max-height: min(72vh, 640px) !important;
    margin: 0 auto;
    border-radius: 1rem;
    object-fit: contain !important;
    box-shadow: none;
    background: transparent;
}

.fe-popup__arrow {
    display: none !important;
    position: absolute;
    top: 50%;
    z-index: 3;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    font-size: 1.05rem;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, background 0.15s ease;
}

.fe-popup__arrow.splide__arrow--prev {
    left: -3.6rem;
}

.fe-popup__arrow.splide__arrow--next {
    right: -3.6rem;
}

.fe-popup__arrow:hover,
.fe-popup__arrow:focus-visible {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
    outline: none;
}

.fe-popup__arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

.fe-popup__slider .splide__pagination {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    margin: 0.95rem 0 0;
    padding: 0;
}

.fe-popup__slider .splide__pagination li {
    display: flex;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.fe-popup__slider .splide__pagination__page {
    width: 0.65rem;
    height: 0.65rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transform: none;
    transition: width 0.2s ease, background 0.2s ease;
}

.fe-popup__slider .splide__pagination__page.is-active {
    width: 1.55rem;
    background: #fff;
    transform: none;
}

/* แยกจุด pagination / ปุ่มเลื่อนของ popup ชัดขึ้น (หลัง feDressSlideNav) */
body.fe-site .fe-popup__slider > .fe-slidenav {
    gap: 1rem !important;
    margin-top: 0.85rem;
}

body.fe-site .fe-popup__slider > .fe-slidenav .splide__pagination {
    gap: 0.85rem !important;
    margin: 0 !important;
}

body.fe-site .fe-popup__slider > .fe-slidenav .splide__pagination li {
    margin: 0 !important;
}

body.fe-site .fe-popup__slider > .fe-slidenav .splide__pagination__page,
body.fe-site .fe-popup__slider > .fe-slidenav .fe-slidenav__dot {
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
}

body.fe-site .fe-popup__slider > .fe-slidenav .splide__pagination__page.is-active,
body.fe-site .fe-popup__slider > .fe-slidenav .fe-slidenav__dot.is-active {
    width: 22px !important;
}

@media (max-width: 767px) {
    .fe-popup {
        padding: 0.75rem;
    }

    .fe-popup__dialog {
        width: 100%;
        padding: 0;
    }

    .fe-popup__close {
        top: -1.1rem;
        right: -0.35rem;
        width: 2.4rem;
        height: 2.4rem;
    }

    body.fe-site .fe-popup__img {
        max-height: 78vh;
        border-radius: 0.85rem;
    }

    .fe-popup__arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-popup__dialog {
        animation: none;
    }

    .fe-popup__close,
    .fe-popup__arrow,
    .fe-popup__slider .splide__pagination__page {
        transition: none;
    }
}

/* -------------------------------------------------------------------------- */
/* วารสารออนไลน์ + ปฏิทินกิจกรรม (section_journal) — สีพื้นหลัง · สูง 600px */
/* -------------------------------------------------------------------------- */
.fe-journal {
    --fe-journal-primary: #0470c3;
    --fe-journal-bg-color: var(--fe-journal-primary);
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    height: 600px;
    min-height: 600px;
    box-sizing: border-box;
    padding: clamp(1.1rem, 2vw, 1.75rem) clamp(0.75rem, 2vw, 1.5rem);
    overflow: visible;
    color: #fff;
    background-color: var(--fe-journal-bg-color);
    background-image: linear-gradient(135deg, color-mix(in srgb, var(--fe-journal-bg-color) 92%, #001a40) 0%, var(--fe-journal-bg-color) 55%, color-mix(in srgb, var(--fe-journal-bg-color) 70%, #7ec8ff) 100%);
}

.fe-journal__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    align-items: stretch;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    width: min(100%, 1360px);
    height: 100%;
    margin: 0 auto;
    padding-inline: clamp(0.25rem, 1vw, 0.75rem);
}

.fe-journal__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    min-height: 0;
    gap: 0.75rem;
    overflow: visible;
}

.fe-journal__col--books {
    overflow: visible;
    z-index: 2;
    padding-inline: 0.35rem;
}

.fe-journal__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    width: 100%;
}

.fe-journal__head--cal {
    margin-bottom: 0.15rem;
}

.fe-journal__icon {
    display: inline-flex;
    flex: 0 0 auto;
    /* ไอคอนขาวบนพื้นน้ำเงิน */
    filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.fe-journal__icon--news {
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.22));
}

.fe-journal__title {
    margin: 0;
    color: var(--fe-wfont-journal, #fff);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.fe-journal__list {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(0.85rem, 2vw, 1.75rem);
    width: 100%;
    min-height: 0;
    margin: 0;
    /* เผื่อพื้นที่ด้านบนตอนเปิดปก 3D ไม่งั้นโดนตัด */
    padding: 1.35rem 0.75rem 0.85rem;
    list-style: none;
    overflow: visible;
}

.fe-journal__list::-webkit-scrollbar {
    display: none;
}

.fe-journal__item {
    flex: 0 0 auto;
    width: min(240px, 48%);
    overflow: visible;
    padding-top: 0.25rem;
}

.fe-journal__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    color: #fff;
    text-decoration: none;
    overflow: visible;
}

.fe-journal__ebook {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: visible;
    z-index: 1;
    border-radius: 10px;
    background: #f5f5f5;
    color: #111;
    box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.45);
}

.fe-journal__inside {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1.15rem 0.9rem 1.15rem 1.35rem;
    text-align: center;
}

.fe-journal__inside-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif;
    font-size: clamp(1.05rem, 1.45vw, 1.35rem);
    font-weight: 700;
    line-height: 1.35;
    color: #111;
}

/* ปก — เปิดจากสันซ้ายแบบหนังสือ */
.fe-journal__cover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #d3d3d3;
    cursor: pointer;
    transform-origin: left center;
    transform: perspective(2000px) rotateY(0deg);
    backface-visibility: hidden;
    box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.45);
    transition: transform 0.5s, box-shadow 0.5s;
    will-change: transform;
}

.fe-journal__cover img,
.fe-journal__cover-empty {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
}

.fe-journal__cover-empty {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
}

.fe-journal__ebook-shadow {
    position: absolute;
    left: 10%;
    right: 6%;
    bottom: -10px;
    z-index: 0;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 72%);
    opacity: 0.85;
    transition: transform 0.45s ease, opacity 0.4s ease;
    pointer-events: none;
}

/* ชื่อโพสต์ใต้ปก — แสดงตลอด */
.fe-journal__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
    text-align: center;
}

.fe-journal__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    width: 100%;
    font-size: clamp(0.82rem, 1vw, 0.98rem);
    font-weight: 600;
    line-height: 1.35;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.fe-journal__views {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.92;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* แทบชื่อบนปก — ไม่แสดง (ชื่อกับยอดดูอยู่ใต้ปกแล้ว) */
.fe-journal__caption {
    display: none;
}

.fe-journal__caption-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    font-size: clamp(0.78rem, 0.95vw, 0.92rem);
    font-weight: 600;
    line-height: 1.35;
}

.fe-journal__caption-views {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.9;
}

.fe-journal__card:hover .fe-journal__cover,
.fe-journal__card:focus-visible .fe-journal__cover {
    transform: perspective(2000px) rotateY(-80deg);
    box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.45);
}

.fe-journal__card:hover .fe-journal__ebook-shadow,
.fe-journal__card:focus-visible .fe-journal__ebook-shadow {
    transform: translateX(8px) scaleX(0.9);
    opacity: 0.55;
}

.fe-journal__card:hover .fe-journal__caption,
.fe-journal__card:focus-visible .fe-journal__caption {
    transform: translateY(0);
    opacity: 1;
}

.fe-journal__empty {
    margin: auto 0;
    color: #fff;
    font-size: 1.05rem;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.fe-journal__foot {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    width: 100%;
}

.fe-journal__more {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.55rem 1.55rem;
    border-radius: 999px;
    background: #fff;
    color: var(--fe-journal-primary);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fe-journal__more:hover,
.fe-journal__more:focus-visible {
    transform: translateY(-2px);
    background: #f8fafc;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.fe-journal__more i {
    font-size: 1em;
}

/* ปฏิทินกิจกรรม — หัวแดง + รายการกำลังจะมาถึง */
.fe-journal__col--cal {
    justify-content: space-between;
    gap: 0.65rem;
}

.fe-journal-calbox {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
}

.fe-journal-calpanel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
    width: 100%;
    padding: clamp(1rem, 1.8vw, 1.35rem);
    border-radius: 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 14px 36px rgba(0, 0, 0, 0.22);
}

.fe-journal-cal {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 1.1rem;
    background: #fff;
    color: #333;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.fe-journal-cal__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 0 0 auto;
    padding: 0.75rem 0.9rem;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    border-radius: 1.05rem 1.05rem 0 0;
}

.fe-journal-cal__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.35rem;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.fe-journal-cal__nav-btn:hover,
.fe-journal-cal__nav-btn:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.fe-journal-cal__month {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.fe-journal-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.12rem;
    flex: 1 1 auto;
    align-content: start;
    padding: 0.65rem 0.7rem 0.85rem;
}

.fe-journal-cal__dow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.55rem;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 700;
}

.fe-journal-cal__day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    width: 100%;
    max-width: 2.45rem;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    cursor: default;
}

.fe-journal-cal__day--empty {
    visibility: hidden;
    pointer-events: none;
}

.fe-journal-cal__day--sun {
    color: #dc2626;
}

.fe-journal-cal__day--today {
    background: #d4a574;
    color: #fff;
    font-weight: 700;
}

.fe-journal-cal__day--event {
    background: #fbbf24;
    color: #fff;
    font-weight: 700;
    cursor: help;
}

.fe-journal-cal__day--today.fe-journal-cal__day--event {
    background: #fbbf24;
    box-shadow: 0 0 0 2px #d4a574;
}

.fe-journal-upcoming {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 0.1rem 0.15rem 0;
}

.fe-journal-upcoming__title {
    margin: 0 0 0.85rem;
    color: #0f172a;
    font-size: clamp(1.05rem, 1.45vw, 1.28rem);
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.fe-journal-upcoming__list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0.55rem;
    min-height: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: visible;
}

.fe-journal-upcoming__item {
    margin: 0;
}

.fe-journal-upcoming__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.75rem;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fe-journal-upcoming__link:hover,
.fe-journal-upcoming__link:focus-visible {
    background: #f1f5f9;
    transform: translateX(2px);
}

.fe-journal-upcoming__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 3.7rem;
    padding: 0.35rem 0.4rem 0.4rem;
    border-radius: 0.55rem;
    background: linear-gradient(165deg, #3f3f46 0%, #18181b 100%);
    color: #fff;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.fe-journal-upcoming__day {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.fe-journal-upcoming__mon {
    margin-top: 0.12rem;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.fe-journal-upcoming__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.fe-journal-upcoming__empty {
    padding: 1.5rem 0.5rem;
    color: #6b7280;
    font-size: 0.95rem;
    text-align: center;
}

.fe-journal-upcoming__foot {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 0.85rem;
}

.fe-journal-upcoming__more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: var(--fe-journal-primary, #0470c3);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--fe-journal-primary, #0470c3) 35%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.fe-journal-upcoming__more:hover,
.fe-journal-upcoming__more:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--fe-journal-primary, #0470c3) 45%, transparent);
}

@media (max-width: 900px) {
    .fe-journal {
        height: auto;
        min-height: 0;
        padding: 1.25rem 0.75rem 1.5rem;
        overflow: visible;
    }

    .fe-journal__inner {
        grid-template-columns: 1fr;
        height: auto;
        gap: 1.75rem;
    }

    .fe-journal__col {
        gap: 1rem;
    }

    .fe-journal__list {
        justify-content: flex-start;
        padding-top: 1.1rem;
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .fe-journal__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-inline: 0;
    }

    .fe-journal__item {
        width: min(160px, 55vw);
    }

    .fe-journal-calpanel {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .fe-journal-cal {
        width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {
    .fe-journal__cover,
    .fe-journal__caption,
    .fe-journal__page,
    .fe-journal__ebook-shadow,
    .fe-journal__more {
        transition: none;
    }

    .fe-journal__card:hover .fe-journal__cover,
    .fe-journal__card:focus-visible .fe-journal__cover {
        transform: perspective(2000px) rotateY(0deg);
    }

    .fe-journal__card:hover .fe-journal__caption,
    .fe-journal__card:focus-visible .fe-journal__caption {
        transform: none;
    }
}

/* ปุ่มกลับขึ้นบน — ลอยมุมขวาล่าง ขนาดเท่าปุ่มเมนูลัด */
.fe-totop {
    position: fixed;
    z-index: 90;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    display: block;
    width: 58px;
    height: 58px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 8px 14px rgba(15, 55, 95, 0.28));
    transition: transform 0.2s ease;
}

.fe-totop[hidden] {
    display: none;
}

.fe-totop img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fe-totop:hover,
.fe-totop:focus-visible {
    transform: translateY(-3px);
    outline: none;
}

@media (max-width: 639px) {
    .fe-totop {
        width: 52px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-totop {
        transition: none;
    }
}

/* นายและปลัด แบบ 2 — สูง 600px · พื้นหลัง leaders2_bg (1920×600) */
.fe-leaders2 {
    width: 100%;
    max-width: 1920px;
    height: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background:
        radial-gradient(circle at 8% 20%, rgba(255, 255, 255, 0.9), transparent 28%),
        linear-gradient(180deg, #f3f7fb 0%, #ffffff 55%);
}

.fe-leaders2--has-bg {
    background-color: transparent;
    background-image: var(--fe-leaders2-bg);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 600px;
}

.fe-leaders2__stage {
    display: grid;
    grid-template-columns: repeat(var(--fe-leaders2-cols, 3), minmax(0, 1fr));
    gap: clamp(0.65rem, 1.4vw, 1.15rem);
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0.85rem clamp(1rem, 3vw, 3rem);
    box-sizing: border-box;
}

.fe-leaders2__person {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

body.fe-site .fe-leaders2__photo {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: auto;
    height: 72%;
    max-width: 82%;
    max-height: 72%;
    object-fit: contain;
    object-position: center bottom;
    transform: translateX(-50%);
}

.fe-leaders2__meta {
    position: relative;
    z-index: 1;
    width: calc(100% - 1rem);
    margin: 0.55rem;
    padding: 0.5rem 0.7rem 0.55rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.94);
    text-align: center;
}

.fe-leaders2__name,
.fe-leaders2__role {
    margin: 0;
}

.fe-leaders2__name {
    color: var(--fe-wfont-leaders, #16324f);
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    font-weight: 800;
    line-height: 1.3;
}

.fe-leaders2__role {
    margin-top: 0.12rem;
    color: #5b6b7c;
    font-size: clamp(0.75rem, 0.85vw, 0.88rem);
    font-weight: 600;
    line-height: 1.35;
}

.fe-leaders2__hotline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    margin-top: 0.08rem;
    color: #0b6cb5;
    font-size: clamp(0.75rem, 0.85vw, 0.88rem);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.fe-leaders2__hotline i {
    font-size: 0.9em;
}

.fe-leaders2__hotline:hover,
.fe-leaders2__hotline:focus-visible {
    color: #b42318;
    text-decoration: underline;
}

.fe-leaders2__vision {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
    padding: 0.85rem 1rem 0.35rem;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

.fe-leaders2__vision-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 8px rgba(0, 30, 70, 0.28);
}

.fe-leaders2__vision-text {
    margin: 0;
    max-width: 34em;
    font-size: calc(clamp(0.82rem, 1vw, 1.02rem) + 2px);
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0, 30, 70, 0.25);
}

.fe-leaders2__slides {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fe-leaders2__slides .splide {
    position: relative;
    width: min(100%, 28rem);
    height: 220px;
    flex: 0 0 auto;
}

.fe-leaders2__slides .splide__track,
.fe-leaders2__slides .splide__list,
.fe-leaders2__slides .splide__slide {
    height: 100%;
    min-height: 0;
}

.fe-leaders2__slide-link {
    display: block;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 1.15rem;
    background: #0d3f86;
    box-shadow: 0 16px 28px rgba(20, 50, 90, 0.16);
}

body.fe-site .fe-leaders2__slide-link img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.fe-leaders2__slides .splide__pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.7rem;
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
}

.fe-leaders2__slides .splide__pagination__page {
    width: 0.7rem;
    height: 0.7rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #7ec8e3;
    opacity: 1;
    transform: none;
}

.fe-leaders2__slides .splide__pagination__page.is-active {
    width: 0.85rem;
    height: 0.85rem;
    background: #f5c542;
    transform: none;
}

@media (max-width: 1023px) {
    .fe-leaders2,
    .fe-leaders2--has-bg {
        height: auto;
        overflow: visible;
        background-size: cover;
    }

    .fe-leaders2__stage {
        grid-template-columns: 1fr;
        height: auto;
    }

    .fe-leaders2__vision {
        order: -1;
        max-width: none;
        padding: 1rem 1rem 0.55rem;
        background: linear-gradient(180deg, rgba(8, 60, 140, 0.55), rgba(8, 60, 140, 0.08));
    }

    .fe-leaders2__vision-title {
        font-size: clamp(1.35rem, 5vw, 1.7rem);
    }

    .fe-leaders2__vision-text {
        font-size: calc(clamp(0.88rem, 3.4vw, 1.02rem) + 2px);
    }

    .fe-leaders2__person {
        min-height: 16rem;
        height: 20rem;
    }

    body.fe-site .fe-leaders2__photo {
        height: 78%;
        max-height: 78%;
    }

    .fe-leaders2__slide-link {
        min-height: 0;
        height: 100%;
    }

    body.fe-site .fe-leaders2__slide-link img {
        height: 100%;
    }

    .fe-leaders2__slides {
        height: auto;
    }

    .fe-leaders2__slides .splide {
        width: min(100%, 22rem);
        height: 160px;
    }

    .fe-leaders2__slides .splide__track,
    .fe-leaders2__slides .splide__list,
    .fe-leaders2__slides .splide__slide {
        height: 100%;
    }

    .fe-leaders2__slides .splide__pagination {
        position: static;
        margin-top: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fe-leaders2__slides .splide__pagination__page {
        transition: none;
    }
}

/* จอกว้าง: วางทับกรอบขาวในรูปพื้นหลัง 1920×600
   ซ้าย 200,128 392×436 = นายก · ขวา 1380,128 388×436 = ปลัด · กลาง = สไลด์ */
@media (min-width: 1024px) {
    .fe-leaders2__stage {
        position: relative;
        display: block;
        height: 100%;
        padding: 0;
    }

    .fe-leaders2__person--mayor,
    .fe-leaders2__person--palad {
        position: absolute;
        top: 21.33%;
        height: 72.67%;
        margin: 0;
        padding: 0.45rem 0.55rem 0.35rem;
        overflow: visible;
        box-sizing: border-box;
    }

    .fe-leaders2__person--mayor {
        left: calc(10.42% - 70px);
        width: 20.42%;
    }

    .fe-leaders2__person--palad {
        left: calc(71.88% + 70px);
        width: 20.21%;
    }

    body.fe-site .fe-leaders2__photo {
        position: absolute;
        top: auto;
        right: auto;
        bottom: 4.8rem;
        left: 50%;
        width: 78%;
        height: 74%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: center bottom;
        transform: translateX(-50%);
    }

    body.fe-site .fe-leaders2__person--mayor .fe-leaders2__photo,
    body.fe-site .fe-leaders2__person--palad .fe-leaders2__photo {
        width: calc(78% * 0.9 * 1.25 * 1.2 * 0.9);
        height: calc(74% * 0.9 * 1.25 * 1.2 * 0.9);
        bottom: calc(4.8rem + 68px);
    }

    body.fe-site .fe-leaders2__person--mayor .fe-leaders2__photo {
        transform: translateX(calc(-50% + 52px));
    }

    body.fe-site .fe-leaders2__person--palad .fe-leaders2__photo {
        transform: translateX(calc(-50% - 100px));
    }

    .fe-leaders2__meta {
        position: absolute;
        right: 0.35rem;
        bottom: 3.7rem;
        left: 0.35rem;
        width: auto;
        margin: 0;
        padding: 0.15rem 0.2rem;
        background: transparent;
    }

    .fe-leaders2__person--mayor .fe-leaders2__meta {
        transform: translateX(52px);
    }

    .fe-leaders2__person--palad .fe-leaders2__meta {
        transform: translateX(-100px);
    }

    .fe-leaders2__vision {
        position: absolute;
        top: 2.2%;
        left: 28%;
        width: 44%;
        max-width: none;
        height: 16.5%;
        margin: 0;
        padding: 0.2rem 0.75rem 0;
        justify-content: flex-start;
        gap: 0.2rem;
    }

    .fe-leaders2__vision-title {
        font-size: clamp(1.55rem, 1.9vw, 2.05rem);
    }

    .fe-leaders2__vision-text {
        font-size: calc(clamp(0.78rem, 0.92vw, 0.98rem) + 2px);
        line-height: 1.4;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .fe-leaders2__slides {
        position: absolute;
        top: 19.65%;
        left: 30.45%;
        width: 39.1%;
        height: 66.7%;
        margin: 0;
    }

    .fe-leaders2__slides .splide {
        width: 100%;
        height: calc(100% - 1.3rem);
    }

    .fe-leaders2__slide-link {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body.fe-site .fe-leaders2__slide-link img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: transparent;
    }

    .fe-leaders2__slides .splide__pagination {
        position: static;
        margin-top: 0.35rem;
    }
}

/* สไลด์ทุกชุด: ลูกศรซ้าย · จุด · ลูกศรขวา */
body.fe-site .fe-slidenav {
    position: relative !important;
    z-index: 3;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    margin: 0.75rem 0 0;
    padding: 0;
    transform: none !important;
    background: transparent;
    pointer-events: auto;
}

body.fe-site .fe-slidenav > .splide__arrow,
body.fe-site .fe-slidenav > .fe-slidenav__btn {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fe-slide-arrow-bg, #0f172a) 18%, transparent);
    color: var(--fe-slide-arrow, #1e293b);
    font-size: 0.95rem;
    line-height: 1;
    opacity: 1;
    overflow: hidden;
    box-shadow: none;
    transform: none !important;
    cursor: pointer;
}

body.fe-site .fe-slidenav > .splide__arrow svg,
body.fe-site .fe-slidenav > .fe-slidenav__btn svg,
body.fe-site .fe-slidenav > .fe-slidenav__btn i {
    width: 14px;
    height: 14px;
    font-size: 0.8rem;
    fill: currentColor;
}

body.fe-site .fe-slidenav > .splide__arrow--prev svg {
    transform: scaleX(-1);
}

body.fe-site .fe-slidenav > .splide__arrow:hover,
body.fe-site .fe-slidenav > .splide__arrow:focus-visible,
body.fe-site .fe-slidenav > .fe-slidenav__btn:hover,
body.fe-site .fe-slidenav > .fe-slidenav__btn:focus-visible {
    background: color-mix(in srgb, var(--fe-slide-arrow-bg, #0f172a) 32%, transparent);
    outline: none;
    transform: none !important;
}

body.fe-site .fe-slidenav > .splide__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

body.fe-site .fe-slidenav .splide__pagination,
body.fe-site .fe-slidenav .fe-slidenav__dots {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: auto;
    margin: 0 !important;
    padding: 0;
    transform: none !important;
}

body.fe-site .fe-slidenav .splide__pagination li {
    display: flex;
    margin: 0;
    padding: 0;
    line-height: 0;
}

body.fe-site .fe-slidenav .splide__pagination__page,
body.fe-site .fe-slidenav .fe-slidenav__dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--fe-slide-dot, #0f172a) 28%, transparent) !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

body.fe-site .fe-slidenav .splide__pagination__page.is-active,
body.fe-site .fe-slidenav .fe-slidenav__dot.is-active {
    width: 18px !important;
    background: var(--fe-slide-dot-on, #1e293b) !important;
    transform: none !important;
}

.fe-news {
    --fe-slide-arrow: var(--fe-sld-news-arrow, #1e293b);
    --fe-slide-arrow-bg: var(--fe-sld-news-bg, #0f172a);
    --fe-slide-dot: var(--fe-sld-news-dot, #0f172a);
    --fe-slide-dot-on: var(--fe-sld-news-on, #1e293b);
}

.fe-leaders {
    --fe-slide-arrow: var(--fe-sld-leaders-arrow, #1e293b);
    --fe-slide-arrow-bg: var(--fe-sld-leaders-bg, #0f172a);
    --fe-slide-dot: var(--fe-sld-leaders-dot, #0f172a);
    --fe-slide-dot-on: var(--fe-sld-leaders-on, #1e293b);
}

.fe-leaders2 {
    --fe-slide-arrow: var(--fe-sld-leaders2-arrow, #1e293b);
    --fe-slide-arrow-bg: var(--fe-sld-leaders2-bg, #0f172a);
    --fe-slide-dot: var(--fe-sld-leaders2-dot, #0f172a);
    --fe-slide-dot-on: var(--fe-sld-leaders2-on, #1e293b);
}

.fe-quick-cards {
    --fe-slide-arrow: var(--fe-sld-cards-arrow, #1e293b);
    --fe-slide-arrow-bg: var(--fe-sld-cards-bg, #0f172a);
    --fe-slide-dot: var(--fe-sld-cards-dot, #0f172a);
    --fe-slide-dot-on: var(--fe-sld-cards-on, #1e293b);
}

.fe-eservice {
    --fe-slide-arrow: var(--fe-sld-eservice-arrow, #1e293b);
    --fe-slide-arrow-bg: var(--fe-sld-eservice-bg, #0f172a);
    --fe-slide-dot: var(--fe-sld-eservice-dot, #0f172a);
    --fe-slide-dot-on: var(--fe-sld-eservice-on, #1e293b);
}

.fe-contact {
    --fe-slide-arrow: var(--fe-sld-contact-arrow, #1e293b);
    --fe-slide-arrow-bg: var(--fe-sld-contact-bg, #0f172a);
    --fe-slide-dot: var(--fe-sld-contact-dot, #0f172a);
    --fe-slide-dot-on: var(--fe-sld-contact-on, #1e293b);
}

.fe-treasury {
    --fe-slide-arrow: var(--fe-sld-treasury-arrow, #1e293b);
    --fe-slide-arrow-bg: var(--fe-sld-treasury-bg, #0f172a);
    --fe-slide-dot: var(--fe-sld-treasury-dot, #0f172a);
    --fe-slide-dot-on: var(--fe-sld-treasury-on, #1e293b);
}

.fe-participate {
    --fe-slide-arrow: var(--fe-sld-part-arrow, #1e293b);
    --fe-slide-arrow-bg: var(--fe-sld-part-bg, #0f172a);
    --fe-slide-dot: var(--fe-sld-part-dot, #0f172a);
    --fe-slide-dot-on: var(--fe-sld-part-on, #1e293b);
}

.fe-part2 {
    --fe-slide-arrow: var(--fe-sld-part2-arrow, #1e293b);
    --fe-slide-arrow-bg: var(--fe-sld-part2-bg, #0f172a);
    --fe-slide-dot: var(--fe-sld-part2-dot, #0f172a);
    --fe-slide-dot-on: var(--fe-sld-part2-on, #1e293b);
}

.fe-highlights {
    --fe-slide-arrow: var(--fe-sld-highlights-arrow, #1e293b);
    --fe-slide-arrow-bg: var(--fe-sld-highlights-bg, #0f172a);
    --fe-slide-dot: var(--fe-sld-highlights-dot, #0f172a);
    --fe-slide-dot-on: var(--fe-sld-highlights-on, #1e293b);
}

.fe-events,
.fe-exec-board,
.fe-travel,
.fe-popup,
.fe-strategy {
    --fe-slide-arrow: var(--fe-sld-events-arrow, #ffffff);
    --fe-slide-arrow-bg: var(--fe-sld-events-bg, #ffffff);
    --fe-slide-dot: var(--fe-sld-events-dot, #ffffff);
    --fe-slide-dot-on: var(--fe-sld-events-on, #ffffff);
}

.fe-exec-board {
    --fe-slide-arrow: var(--fe-sld-exec-arrow, #ffffff);
    --fe-slide-arrow-bg: var(--fe-sld-exec-bg, #ffffff);
    --fe-slide-dot: var(--fe-sld-exec-dot, #ffffff);
    --fe-slide-dot-on: var(--fe-sld-exec-on, #ffffff);
}

.fe-travel {
    --fe-slide-arrow: var(--fe-sld-travel-arrow, #ffffff);
    --fe-slide-arrow-bg: var(--fe-sld-travel-bg, #ffffff);
    --fe-slide-dot: var(--fe-sld-travel-dot, #ffffff);
    --fe-slide-dot-on: var(--fe-sld-travel-on, #ffffff);
}

.fe-popup {
    --fe-slide-arrow: var(--fe-sld-popup-arrow, #ffffff);
    --fe-slide-arrow-bg: var(--fe-sld-popup-bg, #ffffff);
    --fe-slide-dot: var(--fe-sld-popup-dot, #ffffff);
    --fe-slide-dot-on: var(--fe-sld-popup-on, #ffffff);
}

.fe-strategy {
    --fe-slide-arrow: var(--fe-sld-strategy-arrow, #ffffff);
    --fe-slide-arrow-bg: var(--fe-sld-strategy-bg, #ffffff);
    --fe-slide-dot: var(--fe-sld-strategy-dot, #ffffff);
    --fe-slide-dot-on: var(--fe-sld-strategy-on, #ffffff);
}

.fe-banner {
    --fe-slide-arrow: var(--fe-sld-banner-arrow, #1e4f9c);
    --fe-slide-arrow-bg: var(--fe-sld-banner-bg, #ffffff);
}

.fe-events {
    --fe-slide-arrow: var(--fe-sld-events-arrow, #ffffff);
    --fe-slide-arrow-bg: var(--fe-sld-events-bg, #ffffff);
    --fe-slide-dot: var(--fe-sld-events-dot, #ffffff);
    --fe-slide-dot-on: var(--fe-sld-events-on, #ffffff);
}

.fe-slides {
    --fe-slide-arrow: var(--fe-sld-slides-arrow, #1e293b);
    --fe-slide-arrow-bg: var(--fe-sld-slides-bg, #0f172a);
    --fe-slide-dot: var(--fe-sld-slides-dot, #0f172a);
    --fe-slide-dot-on: var(--fe-sld-slides-on, #1e293b);
}

body.fe-site .fe-slidenav .fe-executives__pager-preview {
    transform: translateX(-50%) translateY(6px) scale(0.92);
}

body.fe-site .fe-slidenav .fe-executives__pager:hover .fe-executives__pager-preview,
body.fe-site .fe-slidenav .fe-executives__pager:focus-visible .fe-executives__pager-preview {
    transform: translateX(-50%) translateY(0) scale(1);
}

body.fe-site .fe-contact__slider.is-slider:has(.fe-slidenav) {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 768px) {
    body.fe-site .fe-leaders .fe-executives__slider {
        height: auto;
        max-height: none;
    }

    body.fe-site .fe-leaders .fe-executives__slider .splide__track {
        height: 350px;
    }
}

@media (min-width: 1024px) {
    body.fe-site .fe-leaders2__slides .splide {
        flex: 0 0 auto;
        width: 90%;
        height: 90%;
        min-height: 0;
        max-height: 90%;
    }

    body.fe-site .fe-leaders2__slides .splide__track,
    body.fe-site .fe-leaders2__slides .splide__list,
    body.fe-site .fe-leaders2__slides .splide__slide,
    body.fe-site .fe-leaders2__slide-link,
    body.fe-site .fe-leaders2__slide-link img {
        height: 100%;
        max-height: 100%;
    }
}

/* สไลด์ที่ปุ่มเคยทับภาพ — ปุ่มอยู่ใต้รูป */
body.fe-site .fe-slide--navbelow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto !important;
    max-height: none;
    overflow: visible;
}

body.fe-site .fe-slide--navbelow > .splide__track {
    order: 1;
    position: relative !important;
    top: auto !important;
    z-index: 0;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
}

body.fe-site .fe-slide--navbelow > .fe-slidenav {
    order: 2;
    flex: 0 0 auto;
    margin: 0.7rem 0 0;
}

body.fe-site .fe-treasury__slides.fe-slide--navbelow > .splide__track,
body.fe-site .fe-highlights__slider.fe-slide--navbelow > .splide__track,
body.fe-site .fe-treasury__banners.fe-slide--navbelow > .splide__track,
body.fe-site .fe-participate__slides.fe-slide--navbelow > .splide__track,
body.fe-site .fe-popup__slider.fe-slide--navbelow > .splide__track,
body.fe-site .fe-eservice__slider.fe-slide--navbelow > .splide__track {
    height: auto !important;
}

/* หน้าดูทั้งหมด + หน้าในเมนู / ข่าว / กิจกรรม */
body.fe-site .fe-inner__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.85rem;
    margin: 0;
    color: #6b7280;
    font-size: 0.85rem;
}

body.fe-site .fe-inner__go {
    align-self: center;
    color: #6b7280;
    font-size: 0.85rem;
    white-space: nowrap;
}

body.fe-site .fe-inner__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

body.fe-site .fe-inner__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

body.fe-site .fe-inner__card-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
}

body.fe-site .fe-inner__card-media img,
body.fe-site .fe-inner__card-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.fe-site .fe-inner__card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.9rem 1rem 1rem;
}

body.fe-site .fe-inner__card-body h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45;
    text-shadow: none;
}

body.fe-site .fe-inner__card-body h2 a {
    color: inherit;
    text-decoration: none;
}

body.fe-site .fe-inner__more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: auto;
    color: var(--fe-egp-primary);
    font-weight: 700;
    text-decoration: none;
}

body.fe-site .fe-inner__stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.fe-site .fe-inner__article {
    min-width: 0;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

body.fe-site .fe-activity .fe-inner__article {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* โหมดแสดงเนื้อหา: เส้นแบ่งระหว่างโพสเมื่อไม่มี card */
body.fe-site .fe-activity .fe-inner__stack {
    gap: 0;
}

body.fe-site .fe-activity .fe-inner__stack > .fe-inner__article {
    padding: 1.15rem 0 1.35rem;
    border-bottom: 1px solid color-mix(in srgb, var(--fe-egp-primary, #0470c3) 28%, #cbd5e1);
}

body.fe-site .fe-activity .fe-inner__stack > .fe-inner__article:last-child {
    border-bottom: 0;
    padding-bottom: 0.5rem;
}

body.fe-site .fe-inner__cover-link {
    display: block;
}

body.fe-site .fe-inner__cover {
    display: block;
    width: 100%;
    max-height: 420px;
    margin: 0 auto;
    object-fit: contain;
    background: #f3f4f6;
    border-radius: 12px;
}

body.fe-site .fe-inner__headline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.9rem 0 0.35rem;
    color: var(--fe-egp-primary);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
    text-shadow: 0.45px 0 0 currentColor, -0.45px 0 0 currentColor;
}

body.fe-site .fe-inner__headline img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 999px;
    flex: 0 0 auto;
}

body.fe-site .fe-inner__body {
    margin-top: 0.85rem;
    overflow-wrap: anywhere;
    line-height: 1.75;
}

body.fe-site .fe-inner__body img,
body.fe-site .fe-inner__body video,
body.fe-site .fe-inner__body iframe {
    max-width: 100%;
    height: auto;
}

body.fe-site .fe-inner__body .fe-video-embed {
    margin: 1rem 0;
}

body.fe-site .fe-inner__body .fe-video-embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    border: 0;
    border-radius: 12px;
}

body.fe-site .fe-inner__body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

body.fe-site .fe-inner__photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.15rem;
}

body.fe-site .fe-inner__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    background: #f3f4f6;
}

body.fe-site .fe-pdf {
    display: block;
    width: 100%;
    height: min(80vh, 820px);
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

body.fe-site .fe-inner__files-title {
    margin: 1.25rem 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    text-shadow: 0.4px 0 0 currentColor, -0.4px 0 0 currentColor;
}

body.fe-site .fe-inner__files {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.fe-site .fe-inner__file {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    min-height: 44px;
    padding: 0.7rem 0.15rem;
    border-bottom: 1px solid #e5e7eb;
    color: inherit;
    text-decoration: none;
}

body.fe-site .fe-inner__file-icon {
    display: block;
    width: 48px;
    height: 48px;
    flex: none;
}

body.fe-site .fe-inner__file-svg {
    display: block;
    width: 48px;
    height: 48px;
}

body.fe-site .fe-inner__file-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-weight: 600;
}

body.fe-site .fe-inner__file-name small {
    color: #b50820;
    font-weight: 500;
}

body.fe-site .fe-inner__file-go {
    color: #6b7280;
    font-size: 0.85rem;
}

body.fe-site .fe-lightbox:not([open]) {
    display: none;
}

body.fe-site .fe-lightbox[open] {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    border: 0;
    overflow: visible;
    background: transparent;
    box-sizing: border-box;
}

body.fe-site .fe-lightbox::backdrop {
    background: rgba(8, 15, 30, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.fe-site .fe-lightbox__dialog {
    position: relative;
    width: fit-content;
    max-width: min(88vw, 880px);
}

body.fe-site .fe-lightbox img {
    display: block;
    width: auto;
    max-width: min(88vw, 880px);
    height: auto;
    max-height: min(72vh, 640px);
    margin: 0 auto;
    border-radius: 1rem;
    object-fit: contain;
}

body.fe-site .fe-lightbox__close {
    position: absolute;
    top: -0.85rem;
    right: -0.35rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    margin: 0;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
}

body.fe-site .fe-lightbox__close:hover,
body.fe-site .fe-lightbox__close:focus-visible {
    background: #dc2626;
    transform: scale(1.06);
    outline: none;
}

@media (max-width: 767px) {
    body.fe-site .fe-lightbox__close {
        top: -1.1rem;
        right: -0.35rem;
        width: 2.4rem;
        height: 2.4rem;
    }

    body.fe-site .fe-lightbox img {
        max-height: 78vh;
        border-radius: 0.85rem;
    }
}

body.fe-site .fe-egp-page__pager {
    overflow-x: auto;
}

@media (min-width: 768px) {
    body.fe-site .fe-inner__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.fe-site .fe-inner__article {
        padding: 1.5rem 1.75rem;
    }

    body.fe-site .fe-inner__photos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.fe-site .fe-inner__grid--media {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.fe-site .fe-inner__card-media--video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
}

body.fe-site .fe-inner__card-media--video iframe,
body.fe-site .fe-inner__card-media--video video,
body.fe-site .fe-inner__card-media--video embed {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0;
}

@media (max-width: 640px) {
    body.fe-site .fe-inner__file {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.fe-site .fe-inner__file-go {
        grid-column: 2;
    }

    body.fe-site .fe-inner__go {
        grid-column: 2;
    }
}

/* หน้ารายละเอียด: รูปกิจกรรม + รายการอื่นในหัวข้อเดียวกัน */
body.fe-site .fe-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

body.fe-site .fe-detail__main {
    min-width: 0;
}

body.fe-site .fe-film__stage {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

/* กรอบ 16:9 คงที่ รูปอยู่กึ่งกลางทั้งใบ ไม่ครอป และไม่ดันความสูงหน้า */
body.fe-site .fe-film__stage img {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    transform: translate(-50%, -50%);
    object-fit: contain;
    cursor: zoom-in;
}

body.fe-site .fe-film__stage img[data-fe-film-fade] {
    opacity: 0;
    pointer-events: none;
    cursor: default;
    transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.fe-site .fe-film__stage img[data-fe-film-fade].is-in {
    opacity: 1;
}

body.fe-site .fe-film__stage img[data-fe-film-fade].is-settled {
    transition: none;
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    body.fe-site .fe-film__stage img[data-fe-film-fade] {
        transition: none;
    }
}

body.fe-site .fe-film__count {
    margin: 0.55rem 0 0.7rem;
    color: #6b7280;
    font-size: 0.95rem;
    text-align: center;
}

body.fe-site .fe-film__bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.35rem;
    background: #f3f4f6;
    border-radius: 8px;
}

body.fe-site .fe-film__thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
    flex: 1;
    min-width: 0;
}

body.fe-site .fe-film__thumb {
    display: block;
    aspect-ratio: 4 / 3;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e7eb;
    cursor: pointer;
    transition: border-color 0.35s ease, transform 0.35s ease;
}

body.fe-site .fe-film__thumb[hidden] {
    display: none;
}

body.fe-site .fe-film__thumb.is-active {
    border-color: #9ca3af;
}

body.fe-site .fe-film__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
}

body.fe-site .fe-film__arrow {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 64px;
    border: 0;
    background: transparent;
    color: #e6c36a;
    font-size: 1.35rem;
    cursor: pointer;
}

body.fe-site .fe-event-cover-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 0.4rem;
}

body.fe-site .fe-event-cover {
    display: block;
    width: auto;
    max-width: 100%;
    height: 300px;
    max-height: 300px;
    min-width: 0;
    min-height: 0;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
    cursor: zoom-in;
}

body.fe-site .fe-event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

body.fe-site .fe-event-grid a {
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
}

body.fe-site .fe-event-grid img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    border-radius: 12px;
}

@media (min-width: 768px) {
    body.fe-site .fe-event-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

body.fe-site .fe-album__stage {
    display: block;
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    text-align: center;
}

body.fe-site .fe-album__stage img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: 300px;
    max-height: 300px;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    background: transparent;
}

body.fe-site .fe-album__count {
    margin: 0.45rem 0 0.65rem;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
}

body.fe-site .fe-album__nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

body.fe-site .fe-album__nav--solo {
    justify-content: center;
    margin-bottom: 0.8rem;
}

body.fe-site .fe-album__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 0.75rem;
}

body.fe-site .fe-album__shot,
body.fe-site a.fe-album__shot {
    display: block;
    aspect-ratio: 4 / 3;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

body.fe-site .fe-album__shot.is-active {
    border-color: #2563eb;
}

body.fe-site .fe-album__shot img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    background: #e5e7eb;
}

@media (min-width: 768px) {
    body.fe-site .fe-album__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

body.fe-site .fe-album__arrow {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
}

body.fe-site .fe-album__thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}

body.fe-site .fe-album__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #e5e7eb;
    cursor: pointer;
}

body.fe-site .fe-album__thumb[hidden] {
    display: none;
}

body.fe-site .fe-album__thumb.is-active {
    border-color: #2563eb;
}

body.fe-site .fe-album__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #e5e7eb;
}

body.fe-site .fe-album__thumb img:not([src]) {
    visibility: hidden;
}

body.fe-site .fe-related h2 {
    margin: 0 0 0.8rem;
    color: var(--fe-egp-primary);
    font-size: 1.15rem;
    font-weight: 400;
    text-shadow: none;
}

body.fe-site .fe-related ul {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.fe-site .fe-related ul a {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    min-height: 0;
    color: inherit;
    text-decoration: none;
}

body.fe-site .fe-related img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 160px;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    border-radius: 6px;
    background: #f3f4f6;
}

body.fe-site .fe-related__shots {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 160px;
    min-width: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #f3f4f6;
}

body.fe-site .fe-related__shots img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.65s ease;
    pointer-events: none;
}

body.fe-site .fe-related__shots img.is-on {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    body.fe-site .fe-related__shots img {
        transition: none;
    }
}

body.fe-site .fe-related__title {
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.45;
    text-shadow: none;
}

body.fe-site .fe-related__views {
    color: #6b7280;
    font-size: 0.8rem;
}

body.fe-site .fe-related__top {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin-top: 0.9rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: var(--fe-egp-primary, #0470c3);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

body.fe-site .fe-related {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    body.fe-site .fe-detail:has(.fe-related) {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 1.5rem;
    }
}

/* ค้นหา — แต่งจากโครงเดิม */
body.fe-site .fe-search {
    --fe-search: #0470c3;
}

body.fe-site .fe-search #page_bg {
    padding-bottom: 5rem;
}

body.fe-site .fe-search .search-main > .mt-5 {
    margin-top: 2.75rem;
    margin-bottom: 1rem;
}

body.fe-site .fe-search #post_intro_bg {
    background-color: var(--fe-search);
    background-blend-mode: multiply;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

body.fe-site .fe-search #search-input {
    min-height: 56px;
    border-radius: 999px;
    border-color: color-mix(in srgb, var(--fe-search) 28%, #e5e7eb);
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

body.fe-site .fe-search #search-input:focus {
    border-color: var(--fe-search);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--fe-search) 18%, transparent);
}

body.fe-site .fe-search #search-form button[type="submit"] {
    border-radius: 999px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--fe-search) 72%, #fff), var(--fe-search));
    box-shadow: 0 6px 14px color-mix(in srgb, var(--fe-search) 35%, transparent);
}

body.fe-site .fe-search .search-sidebar > div {
    border-radius: 18px;
    border-top: 4px solid var(--fe-search);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

body.fe-site .fe-search .search-sidebar h3 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--fe-search);
}

body.fe-site .fe-search .search-sidebar h3::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--fe-search);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--fe-search) 16%, transparent);
}

body.fe-site .fe-search .tag-btn {
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.fe-site .fe-search .tag-btn:hover,
body.fe-site .fe-search .tag-btn:focus-visible {
    background: color-mix(in srgb, var(--fe-search) 10%, #fff);
    border-color: var(--fe-search);
    color: var(--fe-search);
    transform: translateX(4px);
    outline: none;
}

body.fe-site .fe-search .tag-btn.is-on {
    background: var(--fe-search);
    border-color: var(--fe-search);
    color: #fff;
}

body.fe-site .fe-search .remove-tag-btn {
    background: var(--fe-search);
    color: #fff;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--fe-search) 30%, transparent);
}

body.fe-site .fe-search .search-main > .mb-4 > div:last-child p {
    color: #111827;
}

body.fe-site .fe-search .search-result-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border-left: 5px solid var(--fe-search);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.fe-site .fe-search .fe-search__card--event { border-left-color: #059669; }
body.fe-site .fe-search .fe-search__card--news { border-left-color: #2563eb; }
body.fe-site .fe-search .fe-search__card--menu { border-left-color: #d97706; }

body.fe-site .fe-search .search-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

body.fe-site .fe-search .fe-search__kind {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    margin-bottom: 0.45rem;
    padding: 0 0.6rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fe-search) 12%, #fff);
    color: var(--fe-search);
    font-size: 0.75rem;
    font-weight: 800;
}

body.fe-site .fe-search .fe-search__card--event .fe-search__kind {
    background: #ecfdf5;
    color: #047857;
}

body.fe-site .fe-search .fe-search__card--news .fe-search__kind {
    background: #eff6ff;
    color: #1d4ed8;
}

body.fe-site .fe-search .fe-search__card--menu .fe-search__kind {
    background: #fffbeb;
    color: #b45309;
}

body.fe-site .fe-search .search-result-link {
    color: #111827;
}

body.fe-site .fe-search .search-result-card:hover .search-result-link {
    color: var(--fe-search);
}

body.fe-site .fe-search .fe-search__snip {
    display: -webkit-box;
    margin: 0 0 0.45rem;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    body.fe-site .fe-search .tag-btn,
    body.fe-site .fe-search .search-result-card {
        transition: none;
        transform: none;
    }
}

/* -------------------------------------------------------------------------- */
/* LINE OA + เว็บแอปพลิเคชัน — 1920×700 แบ่งครึ่ง (W23 / W23.1)               */
/* -------------------------------------------------------------------------- */
.fe-lineapp {
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
}

.fe-lineapp__grid {
    display: grid;
    grid-template-columns: 1fr;
}

.fe-lineapp__pane {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 960 / 700;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.fe-lineapp__pane--line {
    background: linear-gradient(155deg, #3eef7a 0%, #06c755 46%, #049a42 100%);
}

.fe-lineapp__pane--app {
    background:
        linear-gradient(155deg, color-mix(in srgb, var(--fe-lineapp-primary, #0470c3) 62%, #fff) 0%, var(--fe-lineapp-primary, #0470c3) 52%, color-mix(in srgb, var(--fe-lineapp-primary, #0470c3) 72%, #000) 100%);
}

.fe-lineapp__pane:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -6px;
}

body.fe-site .fe-lineapp__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.fe-lineapp__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    max-width: 28rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.fe-lineapp__mark {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 0.35rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.18);
    font-size: 2.4rem;
    line-height: 1;
}

.fe-lineapp__title {
    font-family: var(--fe-font);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
}

.fe-lineapp__lead {
    font-family: var(--fe-font);
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.45;
    opacity: 0.95;
}

.fe-lineapp__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 0.55rem;
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-family: var(--fe-font);
    font-size: 1rem;
    font-weight: 700;
}

.fe-lineapp__pane--line .fe-lineapp__cta {
    color: #049a42;
}

.fe-lineapp__pane--app .fe-lineapp__cta {
    color: var(--fe-lineapp-primary, #0470c3);
}

@media (min-width: 768px) {
    .fe-lineapp__grid {
        grid-template-columns: 1fr 1fr;
        aspect-ratio: 1920 / 700;
    }

    .fe-lineapp__pane {
        aspect-ratio: auto;
        height: 100%;
    }
}

.fe-lineapp__pane,
.fe-lineapp__pane:hover,
.fe-lineapp__pane:hover .fe-lineapp__img {
    transform: none;
    filter: none;
    box-shadow: none;
    animation: none;
    transition: none;
}

/* หน้าภาพบุคลากร — กรอบรูป ชื่อ และตำแหน่ง เรียงกึ่งกลางเป็นแถว */
body.fe-site .fe-personal__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 18px 28px;
    margin: 8px 0 22px;
    padding: 0;
    list-style: none;
}

body.fe-site .fe-personal__item {
    width: min(100%, 230px);
    text-align: center;
}

body.fe-site .fe-personal__frame {
    position: relative;
    width: 157px;
    height: 190px;
    margin: 0 auto 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

body.fe-site .fe-personal__frame img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 127px;
    height: 160px;
    object-fit: cover;
    object-position: center top;
    transform: translate(-50%, -50%);
}

body.fe-site .fe-personal__name {
    margin: 0;
    color: #1c2430;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

body.fe-site .fe-personal__role {
    margin: 2px 0 0;
    color: #4b5565;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
}

@media (max-width: 640px) {
    body.fe-site .fe-personal__row { gap: 16px 12px; }
    body.fe-site .fe-personal__item { width: min(100%, 200px); }
}

/* หน้าผังบุคลากรเต็มจอ — นอกเทมเพลตเว็บ วางตามตำแหน่งที่จัดไว้ */
html:has(body.fe-orgboard) {
    overflow-x: auto;
    overflow-y: auto;
}

body.fe-site.fe-orgboard {
    max-width: none;
    width: max-content;
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    overflow: visible;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    color: #163e78;
}

.fe-orgboard__top {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    padding: 14px 18px 0;
}

.fe-orgboard__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    height: 38px;
    padding: 0 16px 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--fe-org-ink, #163e78);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(16, 48, 96, 0.16);
}

.fe-orgboard__back:hover {
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 48, 96, 0.22);
}

.fe-orgboard__back:focus-visible {
    outline: 2px solid var(--fe-org-ink, #163e78);
    outline-offset: 2px;
}

.fe-orgboard__back-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--fe-org-ink, #163e78);
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.fe-orgboard__pick select {
    min-width: min(280px, 58vw);
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d7e3f2;
    border-radius: 6px;
    background: #fff;
    color: #1c2430;
    font: inherit;
    font-size: 15px;
}

.fe-orgboard__head {
    padding: 8px 16px 4px;
    text-align: center;
}

.fe-orgboard__logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    margin-bottom: 8px;
}

.fe-orgboard__head h1,
.fe-orgboard__card h2,
.fe-orgboard__card p {
    color: var(--fe-org-ink, #163e78);
}

.fe-orgboard__head h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.75);
}

.fe-orgboard__stage {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
}

.fe-orgboard__stage.is-rows { overflow: visible; }

.fe-orgboard__rows {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 16px 48px;
}

.fe-orgboard__empty {
    margin: 40px 0;
    color: #4b5565;
    text-align: center;
}

.fe-orgboard__world { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

body.fe-site .fe-orgboard__svg {
    position: absolute;
    overflow: visible;
    max-width: none;
    pointer-events: none;
}

.fe-orgboard__line {
    fill: none;
    stroke: #1d6fe0;
    stroke-width: 4;
    stroke-linecap: butt;
    stroke-linejoin: miter;
}

.fe-orgboard__line--under {
    stroke: #fff;
    stroke-width: 9;
}

.fe-orgboard__card {
    position: absolute;
    z-index: 1;
    width: 210px;
    text-align: center;
}

.fe-orgboard__frame {
    position: relative;
    width: 157px;
    height: 190px;
    margin: 6px auto 8px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

body.fe-site .fe-orgboard__frame img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 127px;
    height: 160px;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    transform: translate(-50%, -50%);
}

.fe-orgboard__card h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.fe-orgboard__card p {
    margin: 2px 0 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
}

.fe-orgfile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: 6px;
    border-radius: 8px;
    background: #fff;
    color: #b91c1c;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
}

.fe-orgfile svg {
    width: 20px;
    height: 20px;
}

.fe-orgfile:hover {
    background: #fff5f5;
}

/* ขนาดตัวอักษร: ไม่เกิน 22px = Noto Sans Thai · 23–29px = Noto Sans Thai Bold · 30px ขึ้นไป = TH K2D July8 */
body.fe-site { font-synthesis-weight: none; }
body.fe-site h1 {
    font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
}

body.fe-site .fe-nav5__name strong,
body.fe-site .fe-exec-board__title,
body.fe-site .fe-area__title-text,
body.fe-site .fe-area__stat-value,
body.fe-site .fe-events__title,
body.fe-site .fe-participate__title,
body.fe-site .fe-participate__survey-name,
body.fe-site .fe-part2__title span,
body.fe-site .fe-part2__survey-kicker,
body.fe-site .fe-part2__orig-title,
body.fe-site .fe-part2 .fe-part2__title,
body.fe-site .fe-part2 .fe-part2__survey-kicker strong,
body.fe-site .fe-showcase__title,
body.fe-site .fe-landmark__name,
body.fe-site .fe-treasury__title,
body.fe-site .fe-qa__title,
body.fe-site .fe-highlights__title,
body.fe-site .fe-highlights__title-accent,
body.fe-site .fe-infosys__title,
body.fe-site .fe-infosys__title-accent,
body.fe-site .fe-activity .fe-egp-page__title,
body.fe-site .fe-journal-upcoming__day {
    font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
}

body.fe-site .fe-area__title-name,
body.fe-site .fe-news .fe-section-title__text,
body.fe-site .fe-travel__title,
body.fe-site .fe-eservice__title,
body.fe-site .fe-mobile-app__name,
body.fe-site .fe-egp__title,
body.fe-site .fe-orgboard__head h1 {
    font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
}

@media (max-width: 900px) {
    body.fe-site .fe-nav5__name strong {
        font-family: "Noto Sans Thai", sans-serif; font-weight: 400;
    }
}

@media (max-width: 767px) {
    body.fe-site .fe-area__title-name,
    body.fe-site .fe-news .fe-section-title__text {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
    body.fe-site .fe-exec-board__title,
    body.fe-site .fe-area__title-text,
    body.fe-site .fe-participate__title,
    body.fe-site .fe-treasury__title {
        font-family: "Noto Sans Thai", sans-serif; font-weight: 400;
    }
}

@media (min-width: 334px) {
    body.fe-site .fe-area__title-name {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 380px) and (max-width: 767px) {
    body.fe-site .fe-area__stat-value {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 546px) {
    body.fe-site .fe-mobile-app__name {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 682px) {
    body.fe-site .fe-highlights__title-accent,
    body.fe-site .fe-infosys__title-accent {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 688px) {
    body.fe-site .fe-eservice__kicker {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 734px) {
    body.fe-site .fe-egp-page__title {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body.fe-site .fe-mobile-app__name {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 834px) {
    body.fe-site .fe-part2__title span {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 883px) {
    body.fe-site .fe-highlights__title,
    body.fe-site .fe-infosys__title {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 918px) {
    body.fe-site .fe-menu-drawer__sheet-title,
    body.fe-site .fe-searchhero__ask,
    body.fe-site .fe-qa__mail-title,
    body.fe-site .fe-lineapp__title {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 938px) {
    body.fe-site .fe-events__title,
    body.fe-site .fe-qa__title {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 957px) {
    body.fe-site .fe-contact__title {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 968px) {
    body.fe-site .fe-landmark__name {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1000px) {
    body.fe-site .fe-area__stat-value,
    body.fe-site .fe-participate__title,
    body.fe-site .fe-part2__orig-title,
    body.fe-site .fe-treasury__title {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1001px) {
    body.fe-site .fe-section-title__text,
    body.fe-site .fe-journal__title {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1024px) {
    body.fe-site .fe-searchhero__ask,
    body.fe-site .fe-dla__title {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
    body.fe-site .fe-searchhero__ask {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1072px) {
    body.fe-site .fe-area__title-text {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1101px) {
    body.fe-site .fe-strategy__list-title,
    body.fe-site .fe-egp__board-title {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1154px) {
    body.fe-site .fe-exec-board__title,
    body.fe-site .fe-part2 .fe-part2__title {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1172px) {
    body.fe-site .fe-searchhero__ask {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1200px) {
    body.fe-site .fe-showcase__title {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1223px) {
    body.fe-site .fe-egp__kicker {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1250px) {
    body.fe-site .fe-lineapp__title {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1305px) {
    body.fe-site .fe-contact__title {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1364px) {
    body.fe-site .fe-journal__title {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1420px) {
    body.fe-site .fe-mobile-app__sao {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1573px) {
    body.fe-site .fe-leaders__palad-org,
    body.fe-site .fe-travel__org {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1631px) {
    body.fe-site .fe-executives__card--profile .fe-executives__name {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

@media (min-width: 1694px) {
    body.fe-site .fe-showcase__org {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

body.fe-site .fe-inner__card-body h2,
body.fe-site .fe-personal__name,
body.fe-site .fe-orgboard__card h2,
body.fe-site .fe-edit__head h2,
body.fe-site .fe-related h2,
body.fe-site .fe-inner__files-title,
body.fe-site .fe-inner__headline,
body.fe-site .fe-news-alt__pill-title,
body.fe-site .fe-qm__title {
    font-family: "Noto Sans Thai", sans-serif; font-weight: 400;
}

/* ช่วงฟอนต์ตามขนาดจริงของข้อความที่อยู่นอกรายการเดิม */
@media (min-width: 460px) {
    body.fe-site .fe-leaders__kicker {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}
@media (min-width: 768px) {
    body.fe-site .fe-banner__chev {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}
@media (min-width: 1200px) {
    body.fe-site .fe-leaders__kicker {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}
@media (min-width: 1244px) {
    body.fe-site .fe-f2__name {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}
@media (min-width: 1438px) {
    body.fe-site .fe-searchhero__hello {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}
@media (min-width: 1478px) {
    body.fe-site .fe-leaders__plate-name {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}
@media (min-width: 1546px) {
    body.fe-site .fe-leaders__palad-name {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif; font-weight: 700;
    }
}

.fe-orgboard__note {
    width: max-content;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(20, 40, 70, 0.16);
    text-align: center;
}
body.fe-site .fe-orgboard__note p {
    margin: 0;
    font-family: "TH K2D July8", "Noto Sans Thai", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    white-space: pre;
}
.fe-orgboard__note.is-photo {
    width: auto;
    max-width: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
}
body.fe-site .fe-orgboard__note.is-photo img {
    position: static;
    display: block;
    width: 280px;
    height: auto;
    max-width: none;
    transform: none;
    object-fit: contain;
}

body.fe-site iframe.fe-eservice-frame {
    width: 100%;
    height: 480px;
    min-height: 0;
    max-height: none !important;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    box-shadow: none;
    display: block;
    background: transparent;
    overflow: hidden !important;
    pointer-events: auto;
}

body.fe-site iframe.fe-eservice-frame.is-remote {
    overflow: auto !important;
}

body.fe-site .fe-eservice-page .fe-egp-page__back {
    width: auto;
    max-width: max-content;
}

.fe-contract {
    margin: 0.25rem auto 1.5rem;
    max-width: 1100px;
    padding: 0;
    background: none;
    box-shadow: none;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 14px rgba(255, 255, 255, 0.75);
}

.fe-contract__logo {
    display: block;
    width: clamp(120px, 14vw, 168px);
    height: auto;
    margin: 0 auto 0.85rem;
}

.fe-contract__name {
    margin: 0 0 0.45rem;
    font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.3;
}

.fe-contract__name-en {
    margin: -0.15rem 0 0.55rem;
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 600;
    line-height: 1.35;
}

@media (min-width: 1000px) {
    body.fe-site .fe-contract__name {
        font-family: "TH K2D July8", "Noto Sans Thai", sans-serif;
        font-weight: 700;
    }
}

.fe-contract__line {
    margin: 0.2rem 0;
    font-size: clamp(18px, 1.55vw, 22px);
    line-height: 1.55;
}

.fe-contract__line a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fe-contract__agencies {
    margin: 0 auto 1.5rem;
    max-width: 880px;
    text-align: center;
}

.fe-contract__agencies-title {
    margin: 0 0 0.85rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.fe-contract__agency-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1rem;
}

.fe-contract__agency {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.fe-contract__agency img {
    width: 200px;
    height: 80px;
    object-fit: contain;
}

.fe-contract__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 0 auto 1rem;
    max-width: 880px;
}

.fe-contract__map {
    margin: 0 auto 1.5rem;
    max-width: 880px;
    border-radius: 16px;
}

/* พื้นหลัง widget: มีรูปใช้รูป ถ้าไม่มีรูปใช้สีที่ตั้งในกราฟิก Widgets */
body.fe-site .fe-wbg[style*="--fe-wbg-color"] {
    background-color: var(--fe-wbg-color) !important;
    background-image: none !important;
}

body.fe-site .fe-wbg[style*="--fe-wbg-image"] {
    background-image: var(--fe-wbg-image) !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
}

body.fe-site .fe-mobile-app.fe-wbg[style*="--fe-wbg-color"] .fe-mobile-app__desktop .fe-mobile-app__bg {
    opacity: 0;
}

body.fe-site .fe-mobile-app.fe-wbg[style*="--fe-wbg-color"] .fe-mobile-app__desktop .fe-mobile-app__stage {
    background-color: var(--fe-wbg-color);
}

body.fe-site .fe-map-banner.fe-wbg {
    min-height: 280px;
}

body.fe-site a[href="#"]:has(img) {
    cursor: default;
}

/* รูปแบบเนื้อหา 1–5 */
body.fe-site .fe-inner__article:has(.fe-lay) {
    background: transparent;
    border: 0;
    padding: 0;
}

body.fe-site .fe-inner__sky {
    width: min(100vw, 1920px);
    max-width: 1920px;
    margin-left: calc((100% - min(100vw, 1920px)) / 2);
    margin-right: calc((100% - min(100vw, 1920px)) / 2);
    min-height: 550px;
    background-color: #fff;
    background-image: var(--fe-page-bg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: auto;
}

body.fe-site .fe-inner--doc .fe-egp-page__body {
    background: none;
    min-height: 0;
}

body.fe-site .fe-lay {
    min-width: 0;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.85;
}

body.fe-site .fe-lay__title {
    margin: 0 0 12px;
    font-family: "TH K2D July8", "Noto Sans Thai", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.25;
    color: #1f2937;
}

body.fe-site .fe-lay__body {
    min-width: 0;
    font-size: 16px;
    line-height: 1.85;
}

body.fe-site .fe-lay__body img {
    max-width: 100%;
    height: auto;
}

body.fe-site .fe-lay__body h2,
body.fe-site .fe-lay__body h3 {
    margin: 1em 0 .4em;
    font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
}

body.fe-site .fe-lay__cols {
    column-count: 2;
    column-gap: 32px;
}

body.fe-site .fe-lay__cols > * {
    break-inside: avoid;
}

body.fe-site .fe-lay__extra {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

body.fe-site .fe-lay__extra a {
    display: block;
    width: 160px;
    height: 110px;
    overflow: hidden;
    border-radius: 10px;
}

body.fe-site .fe-lay__extra img,
body.fe-site .fe-lay__arch img,
body.fe-site .fe-lay__bubble img,
body.fe-site .fe-lay__frame img,
body.fe-site .fe-lay__gem img,
body.fe-site .fe-lay__building img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.fe-site .fe-lay--doc {
    padding: 0;
}

body.fe-site .fe-inner--doc .fe-lay__body,
body.fe-site .fe-inner--doc .fe-lay__body table,
body.fe-site .fe-inner--doc .fe-lay__body tbody,
body.fe-site .fe-inner--doc .fe-lay__body tr,
body.fe-site .fe-inner--doc .fe-lay__body td,
body.fe-site .fe-inner--doc .fe-lay__body th,
body.fe-site .fe-inner--doc .fe-lay__body div,
body.fe-site .fe-inner--doc .fe-lay__body p,
body.fe-site .fe-inner--doc .fe-lay__body span {
    background: transparent !important;
    background-color: transparent !important;
}

body.fe-site .fe-inner--doc .fe-lay__body table {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

body.fe-site .fe-lay--doc .fe-lay__title {
    font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif;
    font-size: 24px;
    font-weight: 700;
}

body.fe-site .fe-lay--split {
    display: block;
    padding: 8px 0 18px;
    background: transparent;
}

body.fe-site .fe-lay--split .fe-lay__pair {
    align-items: start;
    overflow: visible;
}

body.fe-site .fe-lay--split .fe-lay__right {
    min-width: 0;
    position: relative;
    height: auto;
    overflow: visible;
}

body.fe-site .fe-lay--split .fe-lay__title {
    grid-column: 1 / -1;
    font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1768b0;
}

body.fe-site .fe-lay--split .fe-lay__stage {
    display: block;
}

body.fe-site .fe-lay--split .fe-lay__building {
    position: relative;
    z-index: 1;
    display: block;
    width: calc(150% + 28px);
    max-width: none;
    margin: 16px 0 0 calc(-50% - 28px);
}

body.fe-site .fe-lay--split .fe-lay__building a,
body.fe-site .fe-lay--split .fe-lay__building img {
    display: block;
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
}

body.fe-site .fe-lay--split .fe-lay__body {
    column-count: 2;
    column-gap: 28px;
    min-width: 0;
    overflow-wrap: anywhere;
}

body.fe-site .fe-lay--split .fe-lay__body table,
body.fe-site .fe-lay--split .fe-lay__body tbody,
body.fe-site .fe-lay--split .fe-lay__body tr,
body.fe-site .fe-lay--split .fe-lay__body td,
body.fe-site .fe-lay--split .fe-lay__body th,
body.fe-site .fe-lay--split .fe-lay__body div,
body.fe-site .fe-lay--split .fe-lay__body p,
body.fe-site .fe-lay--split .fe-lay__body span {
    background: transparent !important;
    background-color: transparent !important;
}

body.fe-site .fe-lay--split .fe-lay__body table {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

body.fe-site .fe-lay--split .fe-lay__body td,
body.fe-site .fe-lay--split .fe-lay__body th {
    width: auto !important;
    height: auto !important;
}

body.fe-site .fe-lay--split .fe-lay__body a {
    display: inline-flex;
    align-items: center;
    margin: 4px 8px 4px 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: #1d6fbf;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.3;
}

body.fe-site .fe-lay__building {
    margin: 0;
}

body.fe-site .fe-lay__building a {
    display: block;
    max-height: 320px;
}

body.fe-site .fe-lay__building img {
    height: auto;
    max-height: 320px;
    object-fit: contain;
    object-position: center bottom;
    background: transparent;
}

body.fe-site .fe-lay--tour {
    padding: 8px 0 16px;
}

body.fe-site .fe-lay__arches {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: end;
}

body.fe-site .fe-lay__arch {
    position: relative;
    margin: 18px 0 0;
    height: 220px;
    border-radius: 110px 110px 16px 16px;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: 0 10px 22px rgba(90, 50, 10, .14);
    background: #efe8dc;
}

body.fe-site .fe-lay__arch::before,
body.fe-site .fe-lay__arch::after {
    content: "";
    position: absolute;
    z-index: 1;
    width: 12px;
    height: 12px;
    background: #f08a1a;
    transform: rotate(45deg);
}

body.fe-site .fe-lay__arch::before { top: 14px; left: 14px; }
body.fe-site .fe-lay__arch::after { top: 14px; right: 14px; }

body.fe-site .fe-lay__arch a {
    display: block;
    height: 100%;
}

body.fe-site .fe-lay__mark {
    margin: 18px 0 14px;
    text-align: center;
}

body.fe-site .fe-lay__mark img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

body.fe-site .fe-lay__kicker {
    margin: 4px 0 0;
    color: #e36b12;
    font-size: 14px;
    line-height: 1.4;
}

body.fe-site .fe-lay--tour .fe-lay__title {
    color: #f08a1a;
    font-size: 40px;
}

body.fe-site .fe-lay__gems {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 22px;
}

body.fe-site .fe-lay__gem {
    display: block;
    width: 132px;
    height: 132px;
    overflow: hidden;
    transform: rotate(45deg);
    border: 4px solid #f3d27a;
    background: #fff;
}

body.fe-site .fe-lay__gem img {
    transform: rotate(-45deg) scale(1.45);
}

body.fe-site .fe-lay__banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    min-height: 250px;
    padding: 24px;
    border-radius: 14px;
    overflow: hidden;
    background: #2f6b3a center / cover no-repeat;
}

body.fe-site .fe-lay__banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 40, 16, .5), rgba(0, 40, 16, .08));
}

body.fe-site .fe-lay__banner .fe-lay__title,
body.fe-site .fe-lay__bubbles {
    position: relative;
    z-index: 1;
}

body.fe-site .fe-lay--banner .fe-lay__title {
    max-width: 16em;
    margin: 0;
    color: #fff;
    font-size: 32px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

body.fe-site .fe-lay__bubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

body.fe-site .fe-lay__bubble {
    display: block;
    width: 112px;
    height: 112px;
    flex: none;
    overflow: hidden;
    border: 6px solid #2b7de0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

body.fe-site .fe-lay--banner .fe-lay__body {
    padding: 22px 4px 0;
}

body.fe-site .fe-lay--people {
    padding: 12px 0 20px;
    background: transparent;
}

body.fe-site .fe-lay__frames {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 920px;
    margin: 0 auto;
}

body.fe-site .fe-lay__frame {
    margin: 0;
    aspect-ratio: 3 / 4;
    padding: 7px;
    border: 7px solid transparent;
    border-radius: 22px 22px 10px 10px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(160deg, #ffe7a3, #d0892c 42%, #f6d78a 72%, #a86b22) border-box;
    box-shadow: 0 8px 18px rgba(120, 70, 10, .15);
}

body.fe-site .fe-lay__frame a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 14px 14px 6px 6px;
}

body.fe-site .fe-lay__badge {
    position: relative;
    z-index: 1;
    width: max-content;
    max-width: calc(100% - 24px);
    margin: -28px auto 16px;
    padding: 8px 36px 12px;
    border-radius: 18px;
    background: #178a45;
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 18px rgba(20, 90, 40, .2);
}

body.fe-site .fe-lay__badge small {
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

body.fe-site .fe-lay--people .fe-lay__title {
    margin: 14px 0 16px;
    color: #8a5a12;
    font-size: 40px;
    text-align: center;
}

body.fe-site .fe-lay--people .fe-lay__topimg,
body.fe-site .fe-lay--people .fe-lay__setbg {
    margin: 0;
}

body.fe-site .fe-lay--people .fe-lay__topimg a,
body.fe-site .fe-lay--people .fe-lay__topimg img,
body.fe-site .fe-lay--people .fe-lay__setbg a,
body.fe-site .fe-lay--people .fe-lay__setbg img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

body.fe-site .fe-lay--people .fe-lay__fullwrap {
    display: grid;
    margin-top: 0;
}

body.fe-site .fe-lay--people .fe-lay__fullwrap > .fe-lay__setbg,
body.fe-site .fe-lay--people .fe-lay__fullwrap > .fe-lay__full {
    grid-area: 1 / 1;
    width: 100%;
    min-width: 0;
}

body.fe-site .fe-lay--people .fe-lay__fullwrap > .fe-lay__setbg {
    z-index: 0;
    align-self: center;
    margin: 0;
}

body.fe-site .fe-lay--people .fe-lay__fullwrap > .fe-lay__full {
    z-index: 1;
    align-self: start;
    margin-top: 0;
    background: transparent;
}

body.fe-site .fe-lay--people .fe-lay__body,
body.fe-site .fe-lay--people .fe-lay__body table,
body.fe-site .fe-lay--people .fe-lay__body tbody,
body.fe-site .fe-lay--people .fe-lay__body tr,
body.fe-site .fe-lay--people .fe-lay__body td,
body.fe-site .fe-lay--people .fe-lay__body th,
body.fe-site .fe-lay--people .fe-lay__body div,
body.fe-site .fe-lay--people .fe-lay__body p,
body.fe-site .fe-lay--people .fe-lay__body span {
    background: transparent !important;
    background-color: transparent !important;
}

body.fe-site .fe-lay--people .fe-lay__body table {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

body.fe-site .fe-lay--people .fe-lay__body td,
body.fe-site .fe-lay--people .fe-lay__body th {
    width: auto !important;
    height: auto !important;
}

@media (max-width: 800px) {
    body.fe-site .fe-lay__title,
    body.fe-site .fe-lay--tour .fe-lay__title,
    body.fe-site .fe-lay--banner .fe-lay__title,
    body.fe-site .fe-lay--people .fe-lay__title {
        font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif;
        font-size: 26px;
        font-weight: 700;
    }

    body.fe-site .fe-lay__cols,
    body.fe-site .fe-lay--split .fe-lay__body {
        column-count: 1;
    }

    body.fe-site .fe-lay--split {
        padding: 18px 14px 12px;
    }

    body.fe-site .fe-lay--split .fe-lay__building {
        width: 100%;
        margin-left: 0;
    }

    body.fe-site .fe-lay__arches,
    body.fe-site .fe-lay__frames {
        grid-template-columns: 1fr 1fr;
    }

    body.fe-site .fe-lay__arch {
        height: 160px;
    }

    body.fe-site .fe-lay__banner {
        flex-direction: column;
        align-items: flex-start;
        min-height: 0;
    }

    body.fe-site .fe-lay__bubble {
        width: 92px;
        height: 92px;
    }

    body.fe-site .fe-lay__badge {
        margin-top: 16px;
    }
}

body.fe-site .fe-lay__pair,
body.fe-site .fe-lay__splitrow {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 28px;
    align-items: start;
}

body.fe-site .fe-lay--split .fe-lay__pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body.fe-site .fe-lay--split .fe-lay__body,
body.fe-site .fe-lay--split .fe-lay__pair .fe-lay__body {
    column-count: 1;
}

body.fe-site .fe-lay__hero {
    margin: 0 0 16px;
}

body.fe-site .fe-lay__hero a,
body.fe-site .fe-lay__side a,
body.fe-site .fe-lay__under a,
body.fe-site .fe-lay__round a {
    display: block;
    overflow: hidden;
}

body.fe-site .fe-lay__hero img,
body.fe-site .fe-lay__side img,
body.fe-site .fe-lay__under img,
body.fe-site .fe-lay__round img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.fe-site .fe-lay__hero {
    height: 280px;
    border-radius: 120px 120px 18px 18px;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: 0 10px 22px rgba(90, 50, 10, .14);
}

body.fe-site .fe-lay__side,
body.fe-site .fe-lay__under {
    margin: 0 0 14px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
}

body.fe-site .fe-lay__after {
    margin-top: 18px;
}

body.fe-site .fe-lay--tour .fe-lay__topimg,
body.fe-site .fe-lay--tour .fe-lay__leftpic,
body.fe-site .fe-lay--tour .fe-lay__underpic,
body.fe-site .fe-lay--tour .fe-lay__setbg {
    margin: 0;
}

body.fe-site .fe-lay--tour .fe-lay__topimg {
    margin-bottom: 8px;
}

body.fe-site .fe-lay--tour .fe-lay__topimg a,
body.fe-site .fe-lay--tour .fe-lay__topimg img,
body.fe-site .fe-lay--tour .fe-lay__leftpic a,
body.fe-site .fe-lay--tour .fe-lay__leftpic img,
body.fe-site .fe-lay--tour .fe-lay__underpic a,
body.fe-site .fe-lay--tour .fe-lay__underpic img,
body.fe-site .fe-lay--tour .fe-lay__setbg a,
body.fe-site .fe-lay--tour .fe-lay__setbg img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

body.fe-site .fe-lay--tour .fe-lay__lead {
    margin: 4px 0 18px;
}

body.fe-site .fe-lay--tour .fe-lay__splitpic {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: start;
}

body.fe-site .fe-lay--tour .fe-lay__leftcol {
    display: grid;
    gap: 18px;
    min-width: 0;
}

body.fe-site .fe-lay--tour .fe-lay__splitpic:not(:has(.fe-lay__leftpic)) {
    grid-template-columns: 1fr;
}

body.fe-site .fe-lay--tour .fe-lay__underpic {
    margin-top: 16px;
}

body.fe-site .fe-lay--tour .fe-lay__fullwrap {
    display: grid;
    margin-top: 22px;
}

body.fe-site .fe-lay--tour .fe-lay__fullwrap > .fe-lay__setbg,
body.fe-site .fe-lay--tour .fe-lay__fullwrap > .fe-lay__full {
    grid-area: 1 / 1;
    width: 100%;
    min-width: 0;
}

body.fe-site .fe-lay--tour .fe-lay__fullwrap > .fe-lay__setbg {
    z-index: 0;
    align-self: end;
    margin: 0;
}

body.fe-site .fe-lay--tour .fe-lay__fullwrap > .fe-lay__full {
    z-index: 1;
    align-self: start;
    max-width: none;
    margin-top: 0;
    background-color: transparent;
}

body.fe-site .fe-lay--tour .fe-lay__body,
body.fe-site .fe-lay--tour .fe-lay__body table,
body.fe-site .fe-lay--tour .fe-lay__body tbody,
body.fe-site .fe-lay--tour .fe-lay__body tr,
body.fe-site .fe-lay--tour .fe-lay__body td,
body.fe-site .fe-lay--tour .fe-lay__body th,
body.fe-site .fe-lay--tour .fe-lay__body div,
body.fe-site .fe-lay--tour .fe-lay__body p,
body.fe-site .fe-lay--tour .fe-lay__body span {
    background: transparent !important;
    background-color: transparent !important;
}

body.fe-site .fe-lay--tour .fe-lay__body table {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

body.fe-site .fe-lay--tour .fe-lay__body td,
body.fe-site .fe-lay--tour .fe-lay__body th {
    width: auto !important;
    height: auto !important;
}

body.fe-site .fe-lay__round {
    margin: 0;
    width: min(100%, 280px);
    height: 280px;
    justify-self: end;
    border: 8px solid #2b7de0;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
}

body.fe-site .fe-lay__bgtext {
    position: relative;
    margin-top: 22px;
    padding: 28px 24px;
    border-radius: 16px;
    overflow: hidden;
    background: #245c38 center / cover no-repeat;
    color: #fff;
}

body.fe-site .fe-lay__bgtext::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 30, 16, .62), rgba(0, 30, 16, .28));
}

body.fe-site .fe-lay__bgtext .fe-lay__body {
    position: relative;
    z-index: 1;
    color: #fff;
}

body.fe-site .fe-lay__bgtext .fe-lay__body a {
    color: #fff;
}

@media (max-width: 800px) {
    body.fe-site .fe-lay__pair,
    body.fe-site .fe-lay__splitrow {
        grid-template-columns: 1fr;
    }

    body.fe-site .fe-lay__round {
        justify-self: center;
        width: 200px;
        height: 200px;
    }

    body.fe-site .fe-lay__hero {
        height: 180px;
    }

    body.fe-site .fe-lay--tour .fe-lay__splitpic {
        grid-template-columns: 1fr;
    }
}

/* แท็บเจ้าหน้าที่ชิดขอบขวา — กดแล้วเปิดเข้าสู่ระบบ */
body.fe-site .fe-admin-edit {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.fe-site .fe-staff {
    position: fixed;
    z-index: 100008;
    top: 132px;
    right: 0;
    display: flex;
    align-items: flex-start;
    max-width: 100vw;
}

body.fe-site .fe-staff__tab {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 52px;
    height: 64px;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    border-radius: 16px 0 0 16px;
    background: var(--fe-staff, #0470c3);
    color: #fff;
    box-shadow: -6px 8px 18px rgba(4, 80, 150, 0.28);
    cursor: pointer;
}

body.fe-site .fe-staff__tab svg {
    width: 28px;
    height: 28px;
    display: block;
}

body.fe-site .fe-staff__tab:hover,
body.fe-site .fe-staff__tab:focus-visible {
    background: var(--fe-staff-accent, #0993d7);
    color: #fff;
    outline: none;
}

body.fe-site .fe-staff__panel {
    width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: width 0.34s cubic-bezier(0.22, 0.8, 0.28, 1), opacity 0.28s ease;
}

body.fe-site .fe-staff.is-open .fe-staff__panel {
    width: min(300px, calc(100vw - 62px));
    opacity: 1;
    pointer-events: auto;
}

body.fe-site .fe-staff__sheet {
    position: relative;
    width: min(300px, calc(100vw - 62px));
    max-height: calc(100vh - 160px);
    overflow: auto;
    padding: 18px 18px 20px;
    border-radius: 20px 0 0 20px;
    background: #fff;
    box-shadow: -14px 18px 40px rgba(15, 55, 95, 0.18);
    text-align: center;
    color: #1f2937;
    box-sizing: border-box;
}

body.fe-site .fe-staff__min {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #e8f3fb;
    color: var(--fe-staff, #0470c3);
    font: 700 18px/1 inherit;
    cursor: pointer;
}

body.fe-site .fe-staff__avatar {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 6px auto 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fe-staff, #0470c3) 14%, #fff);
}

body.fe-site .fe-staff__avatar svg {
    width: 58px;
    height: 58px;
    padding: 12px;
    border-radius: 999px;
    background: var(--fe-staff, #0470c3);
    color: #fff;
    box-sizing: border-box;
}

body.fe-site .fe-staff__title {
    margin: 0;
    color: var(--fe-staff, #0470c3);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

body.fe-site .fe-staff__sub {
    margin: 0.15rem 0 0.85rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

body.fe-site .fe-staff__error {
    margin: 0 0 0.7rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.84rem;
    text-align: left;
}

body.fe-site .fe-staff__error p {
    margin: 0;
}

body.fe-site .fe-staff__form {
    display: grid;
    gap: 0.55rem;
}

body.fe-site .fe-staff__field {
    position: relative;
    display: block;
    margin: 0;
}

body.fe-site .fe-staff__field svg {
    position: absolute;
    top: 50%;
    left: 10px;
    width: 18px;
    height: 18px;
    color: #9ca3af;
    transform: translateY(-50%);
    pointer-events: none;
}

body.fe-site .fe-staff__field input {
    width: 100%;
    height: 42px;
    padding: 0 0.7rem 0 2.1rem;
    border: 1px solid #d5e4f2;
    border-radius: 12px;
    background: #f5f9fd;
    color: #111827;
    font: inherit;
    box-sizing: border-box;
}

body.fe-site .fe-staff__field input:focus {
    outline: 2px solid var(--fe-staff-accent, #0993d7);
    outline-offset: 1px;
}

body.fe-site .fe-staff__submit,
body.fe-site .fe-staff__go {
    display: block;
    width: 100%;
    min-height: 42px;
    margin-top: 0.5rem;
    padding: 0.45rem 0.8rem;
    border: 0;
    border-radius: 999px;
    background: var(--fe-staff, #0470c3);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

body.fe-site .fe-staff__submit[hidden] {
    display: none;
}

body.fe-site .fe-staff__submit:hover,
body.fe-site .fe-staff__go:hover {
    background: color-mix(in srgb, var(--fe-staff, #0470c3) 82%, #063a66);
    color: #fff;
}

body.fe-site .fe-staff__logout {
    display: block;
    width: 100%;
    min-height: 42px;
    margin-top: 0.5rem;
    padding: 0.45rem 0.8rem;
    border: 0;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

body.fe-site .fe-staff__logout:hover,
body.fe-site .fe-staff__logout:focus-visible {
    background: #be123c;
    color: #fff;
    outline: none;
}

body.fe-site .fe-staff__contact {
    margin-top: 0.85rem;
    font-size: 0.86rem;
    line-height: 1.55;
}

body.fe-site .fe-staff__contact p {
    margin: 0;
}

body.fe-site .fe-staff__contact a {
    color: inherit;
    text-decoration: none;
}

body.fe-site .fe-staff__contact a:hover {
    text-decoration: underline;
}

body.fe-site .fe-staff__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    body.fe-site .fe-staff {
        top: 168px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.fe-site .fe-staff__panel {
        transition: none;
    }
}

/* ช่องเลือกไฟล์ในป๊อปอัปแก้ไข — ปุ่มเข้มในกรอบ แบบหลังบ้าน */
body.fe-site .fe-edit input[type="file"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 42px;
    cursor: pointer;
    overflow: hidden;
}

body.fe-site .fe-edit input[type="file"]:focus {
    outline: 1px auto #1f2937;
    border-color: #d1d5db;
    box-shadow: none;
}

body.fe-site .fe-edit input[type="file"]::file-selector-button,
body.fe-site .fe-edit input[type="file"]::-webkit-file-upload-button {
    box-sizing: border-box;
    height: 42px;
    margin: 0 0.75rem 0 0;
    padding: 0 1rem;
    border: 0;
    border-radius: 0;
    background: #1f2937;
    color: #fff;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 42px;
    cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* ภาพสไลด์ — ซ้าย 2 รูปแนวนอน ขวา 1 รูปแนวตั้งเต็มความสูง                      */
/* -------------------------------------------------------------------------- */
.fe-slides {
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    padding: clamp(0.75rem, 2vw, 1.25rem) clamp(0.75rem, 2vw, 1.5rem);
}

.fe-slides .splide {
    position: relative;
}

.fe-slides__board {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.85fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    height: 900px;
}

.fe-slides__board.is-no-portrait {
    grid-template-columns: minmax(0, 1fr);
}

.fe-slides__board.is-no-landscape {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}

.fe-slides__slot .splide,
.fe-slides__slot .splide__track,
.fe-slides__slot .splide__list,
.fe-slides__slot .splide__slide {
    height: 100%;
}

.fe-slides__slot {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.fe-slides__slot--1 {
    grid-column: 1;
    grid-row: 1;
}

.fe-slides__slot--2 {
    grid-column: 1;
    grid-row: 2;
}

.fe-slides__slot--3 {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.fe-slides__link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1.15rem;
    background: transparent;
}

body.fe-site .fe-slides__link img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.fe-slides .splide__arrow {
    background: rgba(255, 255, 255, 0.92);
    opacity: 1;
    width: 2.1rem;
    height: 2.1rem;
}

.fe-slides__slot .splide__pagination {
    bottom: 0.55rem;
}

.fe-slides .splide__pagination__page {
    background: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.fe-slides .splide__pagination__page.is-active {
    background: #fff;
    transform: scale(1.25);
}

@media (max-width: 1100px) {
    .fe-slides__board {
        height: 720px;
    }
}

@media (max-width: 767px) {
    .fe-slides__board {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        height: auto;
    }

    .fe-slides__slot--1,
    .fe-slides__slot--2,
    .fe-slides__slot--3 {
        grid-column: 1;
        grid-row: auto;
        height: 210px;
    }

    .fe-slides__link {
        position: absolute;
        inset: 0;
    }
}

body.fe-site .fe-edit input[type="file"]::file-selector-button:hover,
body.fe-site .fe-edit input[type="file"]::-webkit-file-upload-button:hover {
    background: #374151;
}

/* สถิติ — การ์ดกราฟิกโค้งตามชุด UI */
.fe-stats {
    width: 100%;
    max-width: var(--fe-max-width);
    margin: 0 auto;
    padding: clamp(1.25rem, 2.5vw, 2.25rem) 0;
    background:
        radial-gradient(circle at 1px 1px, rgba(84, 113, 144, 0.12) 1px, transparent 1.2px) 0 0 / 18px 18px,
        #f6f8fb;
}

.fe-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.85rem, 1.8vw, 1.35rem);
}

.fe-stats__card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 520px;
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.45rem);
    border: 1px solid rgba(115, 139, 166, 0.18);
    border-radius: 1.8rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 38px rgba(39, 75, 118, 0.13);
}

.fe-stats__card::after {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.fe-stats__card--visits::after {
    content: none;
}

.fe-stats__card--service::after {
    content: none;
}

.fe-stats__wash {
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

.fe-stats__visit-bg {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fe-stats__service-bg {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

body.fe-site .fe-stats__visit-bg,
body.fe-site .fe-stats__service-bg,
body.fe-site .fe-stats__screen {
    width: 100%;
    max-width: none;
    height: 100%;
}

.fe-stats__year .fa-calendar {
    color: #ff9f1c;
}

.fe-stats__year .fa-chevron-down {
    color: #8aa0b8;
    font-size: 0.62rem;
}

.fe-stats__head {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.fe-stats__head-icon {
    display: inline-grid;
    width: 3.55rem;
    height: 3.55rem;
    place-items: center;
    border: 0.45rem solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 18px rgba(33, 77, 128, 0.16);
}

.fe-stats__head-icon--orange {
    background: linear-gradient(145deg, #ffb128, #ff8b00);
}

.fe-stats__head-icon--blue {
    background: linear-gradient(145deg, #22b3ff, #176aed);
}

.fe-stats__heading {
    min-width: 0;
}

.fe-stats__title {
    margin: 0;
    color: #173a61;
    font-size: clamp(1.12rem, 1.5vw, 1.42rem);
    font-weight: 800;
    line-height: 1.2;
}

.fe-stats__title a {
    color: inherit;
    text-decoration: none;
}

.fe-stats__title a:hover,
.fe-stats__title a:focus-visible {
    color: var(--fe-stats-primary, #0470c3);
}

.fe-stats__subtitle {
    margin: 0.14rem 0 0;
    color: #71839a;
    font-size: 0.73rem;
    font-weight: 600;
    line-height: 1.25;
}

a.fe-stats__period {
    color: #49627e;
    text-decoration: none;
}

a.fe-stats__period:hover,
a.fe-stats__period:focus-visible {
    color: var(--fe-stats-primary, #0470c3);
}

.fe-stats__period,
.fe-stats__year {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    margin: 0;
    padding: 0.5rem 0.72rem;
    border: 1px solid rgba(103, 139, 181, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #49627e;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(57, 89, 128, 0.07);
}

.fe-stats__period .fa-calendar {
    color: #ff9f1c;
}

.fe-stats__visit-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    min-height: 320px;
    padding: 0.4rem 0.2rem 4.6rem;
}

.fe-stats__online {
    position: relative;
    display: flex;
    width: min(100%, 250px);
    min-height: 168px;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 1rem 1.05rem 1.35rem;
    border: 1px solid rgba(47, 206, 115, 0.18);
    border-radius: 1.7rem 2.4rem 1.5rem 2.1rem;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(210, 255, 226, 0.95), transparent 58%),
        linear-gradient(160deg, #ffffff 0%, #f3fff7 100%);
    box-shadow: 0 12px 24px rgba(36, 140, 78, 0.1);
}

.fe-stats__online-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #1ea85a;
    font-size: 0.82rem;
    font-weight: 800;
}

.fe-stats__online-pulse {
    position: relative;
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    animation: fe-stats-pulse 1.8s ease-out infinite;
}

.fe-stats__online-pulse::after {
    position: absolute;
    inset: -0.28rem;
    border: 2px solid rgba(34, 197, 94, 0.35);
    border-radius: 50%;
    content: "";
}

.fe-stats__online-body {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.fe-stats__online-badge {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #3dde86, #12b85d);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 8px 14px rgba(18, 184, 93, 0.28);
}

@keyframes fe-stats-pulse {
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .fe-stats__online-pulse { animation: none; }
}

.fe-stats__online-figure {
    display: flex;
    align-items: flex-end;
    gap: 0.28rem;
}

.fe-stats__online-number,
.fe-stats__visit-stat strong,
.fe-stats__value {
    font-family: "Noto Sans Thai Bold", "Noto Sans Thai", sans-serif;
    font-weight: 700;
    font-synthesis: none;
}

.fe-stats__online-number {
    color: #10243d;
    font-size: clamp(3.5rem, 6vw, 4.7rem);
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.fe-stats__online-unit {
    padding-bottom: 0.45rem;
    color: #405d78;
    font-size: 0.9rem;
    font-weight: 800;
}

.fe-stats__online-wave {
    display: block;
    width: 100%;
    height: 1.15rem;
    margin-top: 0.15rem;
}

.fe-stats__chart-art {
    position: relative;
    min-height: 210px;
}

.fe-stats__globe {
    position: absolute;
    top: 28%;
    left: 2%;
    color: #8ec4ff;
    font-size: 2.8rem;
    opacity: 0.55;
}

.fe-stats__eye {
    position: absolute;
    top: 4%;
    right: 4%;
    z-index: 2;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #49b7ff, #1d74ef);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 8px 16px rgba(29, 116, 239, 0.28);
}

.fe-stats__eye::after {
    position: absolute;
    bottom: -0.35rem;
    left: 0.35rem;
    width: 0.7rem;
    height: 0.7rem;
    background: #1d74ef;
    content: "";
    clip-path: polygon(0 0, 100% 0, 20% 100%);
}

.fe-stats__laptop {
    position: absolute;
    right: 8%;
    bottom: 8%;
    width: min(86%, 230px);
    height: 132px;
    padding: 0.7rem 0.75rem 0.85rem;
    border: 0.55rem solid #4d78bd;
    border-bottom-width: 0.72rem;
    border-radius: 0.85rem 0.85rem 0.35rem 0.35rem;
    background: linear-gradient(180deg, #f8fbff, #eef5ff);
    box-shadow: 0 16px 24px rgba(50, 83, 135, 0.18);
    transform: rotate(8deg);
}

.fe-stats__laptop::before,
.fe-stats__laptop::after {
    position: absolute;
    content: "";
}

.fe-stats__laptop::before {
    top: 0.28rem;
    right: 0.35rem;
    left: 0.35rem;
    height: 0.45rem;
    border-radius: 0.2rem;
    background: #d7e4f5;
}

.fe-stats__laptop::after {
    right: -12%;
    bottom: -1.15rem;
    left: -12%;
    height: 0.62rem;
    border-radius: 0.15rem 0.15rem 0.8rem 0.8rem;
    background: linear-gradient(180deg, #7ea0d4, #3d629f);
}

.fe-stats__screen {
    display: block;
    width: 100%;
    height: 100%;
}

.fe-stats__visit-strip {
    position: absolute;
    z-index: 4;
    right: clamp(0.85rem, 2vw, 1.45rem);
    bottom: 1.15rem;
    left: clamp(0.85rem, 2vw, 1.45rem);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0.75rem 0.45rem;
    border: 1px solid rgba(229, 163, 45, 0.16);
    border-radius: 1rem 1rem 1.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    list-style: none;
    box-shadow: 0 9px 22px rgba(132, 82, 15, 0.16);
    backdrop-filter: blur(7px);
}

.fe-stats__visit-stat {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.12rem;
    align-items: center;
    border-right: 1px solid #e8edf4;
}

.fe-stats__visit-stat:last-child {
    border-right: 0;
}

.fe-stats__visit-stat span {
    color: #6d7f93;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.fe-stats__visit-stat strong {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    color: #10243d;
    font-size: clamp(1.15rem, 1.9vw, 1.55rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.fe-stats__visit-stat strong i {
    font-size: 0.68rem;
}

.fe-stats__visit-stat--today strong i { color: #3b82f6; }
.fe-stats__visit-stat--week strong i { color: #7c3aed; }
.fe-stats__visit-stat--month strong i { color: #16a34a; }
.fe-stats__visit-stat--year strong i { color: #e11d48; }

.fe-stats__service-body {
    position: relative;
    z-index: 2;
    min-height: 394px;
    padding: 1.35rem 0.15rem 7.5rem;
}

.fe-stats__service-board {
    position: relative;
}

.fe-stats__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem 1.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fe-stats__item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.75rem;
    min-width: 0;
    min-height: 108px;
    padding: 0.95rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 2.4rem;
    box-shadow: 0 10px 18px rgba(45, 87, 139, 0.08);
}

.fe-stats__service-icon {
    grid-row: 1 / 3;
    display: inline-grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border: 0.35rem solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 6px 13px rgba(43, 82, 127, 0.15);
}

.fe-stats__label {
    align-self: end;
    overflow: hidden;
    color: #5c7088;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fe-stats__value {
    align-self: start;
    color: #173a61;
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    line-height: 1;
}

.fe-stats__item--pending { background: linear-gradient(135deg, #fff8e9, #fff0d5); }
.fe-stats__item--in_progress { background: linear-gradient(135deg, #eaf7ff, #dcecff); }
.fe-stats__item--completed { background: linear-gradient(135deg, #eaffef, #dff8e9); }
.fe-stats__item--total { background: linear-gradient(135deg, #f2eaff, #f8e8ff); }

.fe-stats__item--pending .fe-stats__service-icon { background: linear-gradient(145deg, #ffb62f, #ff8f00); }
.fe-stats__item--in_progress .fe-stats__service-icon { background: linear-gradient(145deg, #36adff, #2379ed); }
.fe-stats__item--completed .fe-stats__service-icon { background: linear-gradient(145deg, #35d77a, #0caf55); }
.fe-stats__item--total .fe-stats__service-icon { background: linear-gradient(145deg, #b65cff, #7537d9); }
.fe-stats__item--pending .fe-stats__value { color: #ef8c00; }
.fe-stats__item--in_progress .fe-stats__value { color: #176fcf; }
.fe-stats__item--completed .fe-stats__value { color: #0aa84d; }
.fe-stats__item--total .fe-stats__value { color: #7b3bd1; }

.fe-stats__service-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 5.5rem;
    height: 5.5rem;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0 18deg,
        #2f86f6 18deg 72deg,
        transparent 72deg 108deg,
        #7a45d6 108deg 162deg,
        transparent 162deg 198deg,
        #22c55e 198deg 252deg,
        transparent 252deg 288deg,
        #ff9a16 288deg 342deg,
        transparent 342deg 360deg
    );
    transform: translate(-50%, -50%);
}

.fe-stats__service-hub::before {
    position: absolute;
    width: 3.55rem;
    height: 3.55rem;
    border-radius: 50%;
    background: #fff;
    content: "";
    box-shadow: 0 8px 18px rgba(47, 104, 176, 0.16);
}

.fe-stats__service-hub i {
    position: relative;
    z-index: 1;
    color: #2d7fe6;
    font-size: 1.45rem;
}

@media (max-width: 1100px) and (min-width: 801px) {
    .fe-stats__card {
        padding: 1rem;
    }

    .fe-stats__head {
        gap: 0.5rem;
    }

    .fe-stats__head-icon {
        width: 3rem;
        height: 3rem;
        border-width: 0.35rem;
    }

    .fe-stats__period,
    .fe-stats__year {
        padding: 0.42rem 0.52rem;
        font-size: 0.65rem;
    }

    .fe-stats__service-icon {
        width: 2.25rem;
        height: 2.25rem;
    }

    .fe-stats__item {
        column-gap: 0.4rem;
        padding: 0.75rem 0.55rem;
    }
}

@media (max-width: 800px) {
    .fe-stats__grid {
        grid-template-columns: 1fr;
    }

    .fe-stats__card {
        min-height: 510px;
    }
}

@media (max-width: 480px) {
    .fe-stats__card {
        min-height: 490px;
        padding: 0.85rem;
        border-radius: 1.45rem;
    }

    .fe-stats__head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .fe-stats__head-icon {
        width: 3rem;
        height: 3rem;
        border-width: 0.35rem;
        font-size: 1.05rem;
    }

    .fe-stats__period,
    .fe-stats__year {
        position: absolute;
        top: 3.35rem;
        right: 0;
        padding: 0.38rem 0.55rem;
        font-size: 0.63rem;
    }

    .fe-stats__subtitle {
        font-size: 0.65rem;
    }

    .fe-stats__visit-main {
        min-height: 318px;
        padding-top: 1.7rem;
    }

    .fe-stats__online {
        width: 100%;
        min-height: 132px;
        padding: 0.8rem 0.75rem 0.95rem;
    }

    .fe-stats__online-badge {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.82rem;
    }

    .fe-stats__online-number {
        font-size: 3.1rem;
    }

    .fe-stats__laptop {
        right: 0;
        width: 92%;
        height: 104px;
    }

    .fe-stats__eye {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.75rem;
    }

    .fe-stats__visit-strip {
        right: 0.7rem;
        bottom: 0.8rem;
        left: 0.7rem;
        padding-inline: 0.18rem;
    }

    .fe-stats__visit-stat span {
        font-size: 0.57rem;
    }

    .fe-stats__visit-stat strong {
        gap: 0.12rem;
        font-size: 0.78rem;
    }

    .fe-stats__visit-stat strong i {
        font-size: 0.48rem;
    }

    .fe-stats__service-body {
        min-height: 360px;
        padding: 1.6rem 0 6.2rem;
    }

    .fe-stats__list {
        gap: 0.65rem;
    }

    .fe-stats__item {
        min-height: 92px;
        padding: 0.68rem 0.6rem;
        column-gap: 0.4rem;
        border-radius: 1.7rem;
    }

    .fe-stats__service-icon {
        width: 2.2rem;
        height: 2.2rem;
        border-width: 0.25rem;
        font-size: 0.78rem;
    }

    .fe-stats__label {
        font-size: 0.63rem;
    }

    .fe-stats__value {
        font-size: 1.45rem;
    }

    .fe-stats__service-hub {
        width: 4.2rem;
        height: 4.2rem;
    }

    .fe-stats__service-hub::before {
        width: 2.7rem;
        height: 2.7rem;
    }

    .fe-stats__service-hub i {
        font-size: 1.05rem;
    }
}

/* ITA — iframe ภายนอกเต็มความสูงที่เหลือของจอ */
body.fe-site iframe.fe-ita-frame {
    width: 100%;
    height: calc(100vh - 150px);
    min-height: 640px;
    margin: 0;
    border: 0;
    display: block;
    background: #fff;
}

/* ปฏิทินกิจกรรม */
body.fe-site .fe-cal__count {
    margin: 0 0 0.85rem;
    color: #5b6b7c;
    font-weight: 700;
}

body.fe-site .fe-cal__list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.fe-site .fe-cal__item {
    border: 1px solid #e6edf5;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 18px rgba(22, 60, 110, 0.06);
}

body.fe-site .fe-cal__item summary {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    list-style: none;
}

body.fe-site .fe-cal__item summary::-webkit-details-marker {
    display: none;
}

body.fe-site .fe-cal__date {
    color: var(--fe-egp-primary, #0470c3);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
}

body.fe-site .fe-cal__name {
    color: #16324a;
    font-weight: 800;
    line-height: 1.4;
}

body.fe-site .fe-cal__chev {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #7b8794;
    border-bottom: 2px solid #7b8794;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

body.fe-site .fe-cal__item[open] .fe-cal__chev {
    transform: rotate(225deg);
}

body.fe-site .fe-cal__detail {
    display: grid;
    gap: 0.85rem;
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid #eef3f8;
    color: #3d4d60;
}

body.fe-site .fe-cal__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.85rem 0 0;
}

body.fe-site .fe-cal__meta div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

body.fe-site .fe-cal__meta dt {
    color: #16324a;
    font-size: 0.82rem;
    font-weight: 800;
}

body.fe-site .fe-cal__meta dd,
body.fe-site .fe-cal__text {
    margin: 0;
    line-height: 1.55;
    white-space: pre-line;
}

body.fe-site .fe-cal__photo {
    display: block;
    width: min(100%, 420px);
    border-radius: 0.8rem;
}

body.fe-site .fe-cal__photo img {
    width: 100%;
    height: auto;
    border-radius: 0.8rem;
}

body.fe-site .fe-cal__foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    body.fe-site .fe-cal__item summary,
    body.fe-site .fe-cal__meta {
        grid-template-columns: 1fr;
    }
}

/* ข้อมูลเปิด */
body.fe-site .fe-odata__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.fe-site .fe-odata__card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e6edf5;
    border-radius: 1rem;
    background: #fff;
    color: #16324a;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(22, 60, 110, 0.06);
}

body.fe-site .fe-odata__card:hover,
body.fe-site .fe-odata__card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 24px rgba(22, 60, 110, 0.12);
}

body.fe-site .fe-odata__media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #f4f8fc;
}

body.fe-site .fe-odata__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.fe-site .fe-odata__title {
    padding: 0.8rem 0.9rem 0.95rem;
    font-weight: 800;
    line-height: 1.4;
}

@media (max-width: 900px) {
    body.fe-site .fe-odata__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    body.fe-site .fe-odata__grid {
        grid-template-columns: 1fr;
    }
}

/* แผนผังเว็บไซต์ */
body.fe-site .fe-sitemap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

body.fe-site .fe-sitemap__card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e6edf5;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 18px rgba(22, 60, 110, 0.06);
}

body.fe-site .fe-sitemap__head {
    margin: 0;
    padding: 0.75rem 1rem;
    background: var(--fe-egp-primary, #0470c3);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
}

body.fe-site .fe-sitemap__list {
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
}

body.fe-site .fe-sitemap__list a {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    color: #24384c;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
}

body.fe-site .fe-sitemap__list a::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    margin-top: 0.42rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--fe-egp-primary, #0470c3);
}

body.fe-site .fe-sitemap__list a:hover,
body.fe-site .fe-sitemap__list a:focus-visible {
    color: var(--fe-egp-primary, #0470c3);
    background: #f4f8fc;
}

@media (max-width: 900px) {
    body.fe-site .fe-sitemap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    body.fe-site .fe-sitemap {
        grid-template-columns: 1fr;
    }
}

/* หัวข้อชุดที่เป็นตัวพิมพ์ — ขนาดเดียวกัน ใหญ่กว่าชุดหลักเดิม (2.35rem) อีก 5px */
body.fe-site .fe-exec-board__title,
body.fe-site .fe-journal__title,
body.fe-site .fe-events__title,
body.fe-site .fe-news .fe-section-title__text,
body.fe-site .fe-participate__title,
body.fe-site .fe-part2__orig-title,
body.fe-site .fe-treasury__title,
body.fe-site .fe-searchhero__ask,
body.fe-site .fe-contact__title,
body.fe-site .fe-qa__title,
body.fe-site .fe-lineapp__title,
body.fe-site .fe-infosys__title,
body.fe-site .fe-dla__title:not(.fe-dla__title--img) {
    font-size: calc(1.45rem + 5px);
}

@media (min-width: 768px) {
    body.fe-site .fe-exec-board__title,
    body.fe-site .fe-journal__title,
    body.fe-site .fe-events__title,
    body.fe-site .fe-news .fe-section-title__text,
    body.fe-site .fe-participate__title,
    body.fe-site .fe-part2__orig-title,
    body.fe-site .fe-treasury__title,
    body.fe-site .fe-searchhero__ask,
    body.fe-site .fe-contact__title,
    body.fe-site .fe-qa__title,
    body.fe-site .fe-lineapp__title,
    body.fe-site .fe-infosys__title,
    body.fe-site .fe-dla__title:not(.fe-dla__title--img) {
        font-size: calc(2.35rem + 5px);
    }
}
