/**
 * Legacy home blocks inside Nongharn CI3 center column (logic = template/mainpage/*, skin = CI3).
 */
.nh-legacy-hamburger,
.ToggleLeft,
.nh-legacy-toggle-left,
.ToggleRight,
.nh-legacy-toggle-right {
    display: none !important;
}

.nh-legacy-mobile-nav {
    display: none !important;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.pagination > li {
    float: none;
}

.pagination > li > a,
.pagination > li > span {
    color: #ba5878;
    background-color: #fff1f6;
    border-color: #e8bfd0;
}

.pagination > li > a:hover,
.pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus {
    color: #9f4665;
    background-color: #f7d9e5;
    border-color: #dca6bc;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background-color: #ba5878;
    border-color: #ba5878;
    color: #fff;
}

.nh-legacy-inner-shell > .container > .nh-legacy-inner-left-col {
    display: none;
}

.nh-legacy-inner-shell .nh-legacy-inner-center {
    padding: 0;
    box-sizing: border-box;
}

.nh-legacy-inner-shell .nh-legacy-inner-center--sidebar {
    width: 80.7%;
    max-width: 80.7%;
}

.nh-legacy-inner-shell .nh-legacy-inner-center--full {
    width: 100%;
    max-width: 100%;
}

#nongharn-home-center .post-widget {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* ===== Legacy responsive shell (home) ===== */
@media (max-width: 1199px) {
    html,
    body {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    body.legacy-left-open,
    body.legacy-right-open {
        overflow: hidden !important;
    }

    .header_bg.nh-legacy-shell,
    .header_bg.nh-legacy-shell .nh-legacy-shell__container {
        overflow: visible !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box;
    }

    .header_bg .container.nh-legacy-shell__container {
        display: block;
        width: 100% !important;
    }

    .header_bg .container.nh-legacy-shell__container > .nh-legacy-center-col {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #legacySidebarLeft.nh-legacy-left-col,
    .header_bg .container.nh-legacy-shell__container > .nh-legacy-left-col {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: auto !important;
        float: none !important;
        width: 280px !important;
        max-width: calc(100vw - 24px) !important;
        height: auto !important;
        padding: 8px !important;
        margin: 0 !important;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff !important;
        z-index: 1202 !important;
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
        transition: transform 0.24s ease;
        transform: translate3d(-105%, 0, 0) !important;
        visibility: visible !important;
        display: block !important;
    }

    body.legacy-left-open #legacySidebarLeft,
    body.legacy-left-open .header_bg .container.nh-legacy-shell__container > .nh-legacy-left-col {
        transform: translate3d(0, 0, 0) !important;
    }

    body.legacy-drawer-lock {
        overflow: hidden !important;
        touch-action: none;
    }

    .nh-legacy-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 1200;
    }
    body.legacy-left-open .nh-legacy-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .nh-legacy-edge-tab.ToggleLeft,
    .nh-legacy-edge-tab.nh-legacy-toggle-left {
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1203;
        width: auto;
        min-width: 36px;
        height: auto;
        padding: 14px 10px;
        border: 0;
        border-radius: 0 10px 10px 0;
        background: #ba5878;
        color: #fff;
        box-shadow: 3px 0 14px rgba(0, 0, 0, 0.22);
        cursor: pointer;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
    }

    .nh-legacy-edge-tab.ToggleLeft[aria-expanded="true"],
    .nh-legacy-edge-tab.nh-legacy-toggle-left[aria-expanded="true"] {
        background: #8e3f5a;
    }

    .nh-legacy-edge-tab .nh-legacy-edge-tab__icon,
    .nh-legacy-edge-tab .nh-legacy-hamburger__icon {
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
    }

    .nh-legacy-edge-tab .nh-legacy-hamburger__icon span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
    }

    .header_bg .background {
        height: clamp(180px, 36vw, 300px);
        background-size: cover;
        background-position: center top;
    }
}

/* Tablet: แสดง Right Sidebar ใน layout (ไม่ซ่อนเป็น drawer) */
@media (min-width: 768px) and (max-width: 1199px) {
    .header_bg .container.nh-legacy-shell__container > .nh-legacy-center-col {
        float: left !important;
        width: calc(100% - 22%) !important;
        max-width: calc(100% - 22%) !important;
    }

    .header_bg .container.nh-legacy-shell__container > .nh-legacy-right-col {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        float: right !important;
        width: 22% !important;
        max-width: 22% !important;
        transform: none !important;
        margin: 0 !important;
        padding: 10px !important;
        overflow: visible;
        box-shadow: none !important;
        z-index: 1;
    }

    .nh-legacy-inner-shell > .container > .nh-legacy-inner-left-col {
        display: block !important;
    }

    .nh-legacy-inner-shell #legacySidebarLeft.nh-legacy-inner-left-col {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        float: none !important;
        width: min(88vw, 340px) !important;
        max-width: min(88vw, 340px) !important;
        margin: 0 !important;
        padding: 10px !important;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff !important;
        z-index: 1202 !important;
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
        transition: transform 0.24s ease;
        transform: translate3d(-105%, 0, 0) !important;
        visibility: visible !important;
    }

    body.legacy-left-open .nh-legacy-inner-shell #legacySidebarLeft.nh-legacy-inner-left-col {
        transform: translate3d(0, 0, 0) !important;
    }

    .header_bg .nh-legacy-header__container > .logo {
        max-width: min(22vw, 150px);
    }

    .header_bg .nh-legacy-header__container > .logo img {
        width: 100%;
        height: auto;
    }

    .footer_bg {
        min-height: 200px;
        height: auto !important;
        padding-top: 14px;
        padding-bottom: 16px;
        background-size: auto 100% !important;
    }

    .footer_bg > .container > .footer_logo {
        min-height: 98px;
        height: 100px !important;
    }

    .footer_bg > .container > .footer_logo img {
        position: static !important;
        left: auto !important;
        top: auto !important;
        display: block;
        width: min(22vw, 82px) !important;
        max-width: 82px !important;
        height: auto !important;
        margin: 0 auto 8px !important;
    }

}

/* Phone: ซ่อน Right Sidebar เป็น drawer + ปุ่ม ToggleRight */
@media (max-width: 767px) {
    .nh-legacy-edge-tab.ToggleRight,
    .nh-legacy-edge-tab.nh-legacy-toggle-right {
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1203;
        width: auto;
        min-width: 36px;
        height: auto;
        padding: 14px 10px;
        border: 0;
        border-radius: 10px 0 0 10px;
        background: #ba5878;
        color: #fff;
        box-shadow: -3px 0 14px rgba(0, 0, 0, 0.22);
        cursor: pointer;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
    }

    .nh-legacy-edge-tab.ToggleRight[aria-expanded="true"],
    .nh-legacy-edge-tab.nh-legacy-toggle-right[aria-expanded="true"] {
        background: #8e3f5a;
    }

    #legacySidebarRight.nh-legacy-right-col,
    .header_bg .container.nh-legacy-shell__container > .nh-legacy-right-col {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        left: auto !important;
        float: none !important;
        width: 280px !important;
        max-width: calc(100vw - 24px) !important;
        height: auto !important;
        padding: 8px !important;
        margin: 0 !important;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff !important;
        z-index: 1202 !important;
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
        transition: transform 0.24s ease;
        transform: translate3d(105%, 0, 0) !important;
        visibility: visible !important;
        display: block !important;
    }

    body.legacy-right-open #legacySidebarRight,
    body.legacy-right-open .header_bg .container.nh-legacy-shell__container > .nh-legacy-right-col {
        transform: translate3d(0, 0, 0) !important;
    }

    body.legacy-left-open .nh-legacy-overlay,
    body.legacy-right-open .nh-legacy-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 1199px) {
    .slide,
    .slide > .header,
    .slide .bx-wrapper,
    .slide .bx-viewport {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .slide {
        overflow: hidden !important;
    }

    .slide .bx-wrapper {
        margin: 0 !important;
        overflow: hidden !important;
    }

    .slide .bx-viewport {
        left: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
        touch-action: pan-y;
    }

    .slide .bxslider {
        margin: 0 !important;
        padding: 0 !important;
    }

    .slide .bxslider > li {
        box-sizing: border-box;
        padding: 0 !important;
    }

    .slide .bxslider img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    .slide .bx-controls-direction {
        display: none !important;
    }

    .slide .bx-wrapper .bx-pager {
        width: 100% !important;
    }

    #legacySidebarLeft #category_left,
    #legacySidebarLeft .cat_left,
    #legacySidebarRight .nh-right-sidebar,
    #legacySidebarRight .category_right,
    #legacySidebarRight .link,
    #legacySidebarRight .money_change,
    #legacySidebarRight .poll {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    #legacySidebarLeft .cat_left,
    #legacySidebarLeft .cat_left ul {
        padding-left: 0 !important;
    }

    #legacySidebarLeft img,
    #legacySidebarRight img,
    #legacySidebarRight iframe,
    #legacySidebarRight table {
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

@media (max-width: 1199px) {
    .header_bg .nh-legacy-header__container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "topright"
            "menubar";
        position: relative;
        padding-bottom: 12px;
    }

    .header_bg .nh-legacy-header__container > .top_right {
        grid-area: topright;
    }

    .header_bg .nh-legacy-header__container > .logo {
        grid-area: menubar;
        align-self: center;
        justify-self: start;
        float: none !important;
        position: relative;
        left: auto;
        bottom: auto;
        margin: 0 0 0 12px !important;
        z-index: 20;
        max-width: min(48vw, 190px);
        pointer-events: auto;
    }

    .header_bg .nh-legacy-header__container > .logo img {
        display: block;
        width: 100%;
        height: auto;
    }

    .menu.nh-legacy-menu-bar {
        grid-area: menubar;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        align-self: center;
        position: relative;
        z-index: 60;
        width: 100% !important;
        float: none !important;
        margin-top: 8px;
        padding: 4px 0 4px min(50vw, 210px) !important;
        height: auto !important;
        min-height: 0;
        box-sizing: border-box;
        overflow: visible;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        filter: none !important;
    }

    .menu.nh-legacy-menu-bar > ul {
        display: none !important;
    }

    .nh-legacy-menu-actions {
        position: relative;
        margin-left: auto;
        z-index: 70;
    }

    .nh-legacy-hamburger {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        border: 0;
        border-radius: 8px;
        padding: 7px 12px;
        background: #ba5878;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        margin: 0 !important;
        cursor: pointer;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
        position: relative;
        z-index: 75;
    }

    .nh-legacy-hamburger__icon {
        display: inline-flex;
        flex-direction: column;
        gap: 3px;
    }
    .nh-legacy-hamburger__icon span {
        display: block;
        width: 16px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
    }

    .nh-legacy-menu-actions .nh-legacy-mobile-nav {
        display: none !important;
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        left: auto;
        width: min(calc(100vw - 24px), 360px);
        margin-top: 0;
        background: #fff;
        border: 1px solid #ecc7d6;
        border-radius: 8px;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: min(70vh, 420px);
        z-index: 40;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    }
    .nh-legacy-menu-actions .nh-legacy-mobile-nav.is-open {
        display: block !important;
    }

    body.legacy-nav-open .header_bg .nh-legacy-header__container > .logo {
        z-index: 5;
    }
    .nh-legacy-mobile-nav__link {
        display: block;
        padding: 10px 12px;
        border-bottom: 1px solid #f3dde6;
        color: #444;
        font-size: 14px;
        text-decoration: none;
    }
    .nh-legacy-mobile-nav__link:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 767px) {
    .header_bg.nh-legacy-shell > .container > div {
        /* display: flex; */
        flex-wrap: wrap;
        margin-left: -6px;
        margin-right: -6px;
    }

    .header_bg.nh-legacy-shell > .container > div > .banner_img {
        width: 50% !important;
        max-width: 50% !important;
        float: left !important;
        padding-left: 6px;
        padding-right: 6px;
        box-sizing: border-box;
    }

    .header_bg.nh-legacy-shell > .container > div > .banner_img a,
    .header_bg.nh-legacy-shell > .container > div > .banner_img img {
        display: block;
        width: 100%;
    }

    .header_bg .nh-legacy-header__container {
        grid-template-areas:
            "topright"
            "menubar";
        row-gap: 6px;
        padding-bottom: 10px;
    }

    .header_bg .nh-legacy-header__container > .top_right {
        float: none !important;
        max-width: 100%;
        text-align: right;
        overflow: hidden;
        box-sizing: border-box;
    }

    .header_bg .nh-legacy-header__container > .top_right p {
        max-width: 100%;
        margin: 0;
        font-size: 18px !important;
        line-height: 1.35;
        overflow-wrap: anywhere;
        word-break: normal;
        box-sizing: border-box;
    }

    .header_bg .nh-legacy-header__container > .top_right img {
        display: inline-block;
        width: auto;
        max-width: min(88vw, 360px);
        height: auto;
        margin-top: 3px;
        vertical-align: top;
    }

    .header_bg .nh-legacy-header__container > .logo {
        max-width: min(34vw, 118px);
        margin-left: 6px !important;
    }

    .menu.nh-legacy-menu-bar {
        min-height: 46px;
        margin-top: 4px;
        padding: 4px 0 4px min(36vw, 128px) !important;
        z-index: 80;
    }

    .nh-legacy-menu-actions {
        display: flex;
        justify-content: flex-end;
        width: auto;
        max-width: calc(100vw - 142px);
        z-index: 90;
    }

    .nh-legacy-hamburger {
        min-width: 44px;
        min-height: 38px;
        padding: 8px 11px;
        box-shadow: 0 3px 10px rgba(93, 36, 56, 0.22);
    }

    .nh-legacy-menu-actions .nh-legacy-mobile-nav {
        z-index: 95;
    }

    .footer_bg {
        height: auto !important;
        min-height: 210px;
        padding-top: 16px;
        padding-bottom: 18px;
        background-size: auto 100% !important;
    }

    .footer_bg > .container > .footer_logo {
        height: 110px !important;
    }

    .footer_bg > .container > .footer_logo img {
        position: static !important;
        display: block;
        width: min(30vw, 96px) !important;
        max-width: 96px !important;
        height: auto !important;
        margin: 0 auto 8px !important;
    }

    .slide {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        overflow: hidden !important;
        box-sizing: border-box;
    }

    .slide .bx-controls-direction {
        display: none !important;
    }

    .slide .bx-wrapper .bx-pager {
        bottom: 4px !important;
        width: 100% !important;
    }

    .slide .bx-wrapper .bx-pager.bx-default-pager a {
        width: 10px;
        height: 10px;
        border-width: 3px;
    }

    .activity_main .activity_detail {
        display: flex !important;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .activity_main #activity_main_detail,
    .activity_main .pr_main {
        float: none !important;
        width: 50% !important;
        flex: 0 0 50%;
        max-width: 50%;
        box-sizing: border-box;
        padding: 0 5px !important;
    }

    .activity_main #activity_main_detail > .pic {
        height: clamp(104px, 31vw, 148px);
    }

    .activity_main #activity_main_detail > .detail {
        padding: 5px 4px 0 !important;
    }

    .activity_main #activity_main_detail > .detail > p {
        height: 58px;
        font-size: 13px;
        line-height: 1.45;
    }

    .activity_main #activity_main_detail > div > a > .view {
        float: none !important;
        width: 100% !important;
        max-width: 96px;
        margin-left: auto;
    }

    .activity_main .pr_main {
        height: 190px;
    }

    .activity_main .pr_main > .pic > img {
        max-width: 100% !important;
        max-height: 92px !important;
    }
}

@media (max-width: 380px) {
    .header_bg .nh-legacy-header__container > .logo {
        max-width: 104px;
    }

    .menu.nh-legacy-menu-bar {
        padding-left: 112px !important;
    }

    .nh-legacy-hamburger__label {
        display: none;
    }

    .header_bg .nh-legacy-header__container > .top_right p {
        font-size: 18px !important;
        line-height: 1.3;
    }

    .header_bg .nh-legacy-header__container > .top_right img {
        max-width: min(86vw, 292px);
    }

    .activity_main #activity_main_detail,
    .activity_main .pr_main {
        padding: 0 4px !important;
    }

    .activity_main #activity_main_detail > .pic {
        height: 106px;
    }

    .activity_main .pr_main {
        height: 178px;
    }

    .nh-legacy-inner-shell > .container > .nh-legacy-inner-left-col {
        display: block !important;
    }

    .nh-legacy-inner-shell #legacySidebarLeft.nh-legacy-inner-left-col {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        float: none !important;
        width: min(88vw, 340px) !important;
        max-width: min(88vw, 340px) !important;
        margin: 0 !important;
        padding: 10px !important;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff !important;
        z-index: 1202 !important;
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
        transition: transform 0.24s ease;
        transform: translate3d(-105%, 0, 0) !important;
        visibility: visible !important;
    }

    body.legacy-left-open .nh-legacy-inner-shell #legacySidebarLeft.nh-legacy-inner-left-col {
        transform: translate3d(0, 0, 0) !important;
    }
}

@media (max-width: 767px) {
    .nh-legacy-inner-shell .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #nongharn-inner-center,
    .nh-legacy-inner-shell .container > #nongharn-inner-center,
    .nh-legacy-inner-shell .container > .nh-legacy-inner-center {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        display: block !important;
        box-sizing: border-box;
        padding: 0 !important;
        margin: 0 !important;
    }

    #nongharn-inner-center .page-detail-card-wrap,
    #nongharn-inner-center .nh-advertise-list__header,
    #nongharn-inner-center .nh-event-page,
    #nongharn-inner-center .nh-purchase-page,
    #nongharn-inner-center .nh-download-page,
    #nongharn-inner-center .nh-officer-work {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (min-width: 1200px) {
    .nh-legacy-hamburger,
    .nh-legacy-mobile-nav,
    .nh-legacy-overlay,
    .ToggleLeft,
    .nh-legacy-toggle-left,
    .ToggleRight,
    .nh-legacy-toggle-right {
        display: none !important;
    }
}

#nongharn-home-center .post-widget .primary-heading,
#nongharn-home-center .post-widget [data-aos] {
    display: none;
}

#nongharn-home-center .purchase-egp-block,
#nongharn-home-center .purchase-news-block {
    margin: 0 0 12px;
}

#nongharn-home-center .purchase-egp-block .primary-heading,
#nongharn-home-center .purchase-news-block .primary-heading {
    display: block;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 8px;
}

#nongharn-home-center .purchase-egp-block .primary-heading h2,
#nongharn-home-center .purchase-news-block .primary-heading h2 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding: 0;
}

#nongharn-home-center .light-shadow.white-bg {
    box-shadow: none;
    padding: 0 10px 10px;
    background: transparent;
}

#nongharn-home-center .archieve-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#nongharn-home-center .archieve-list li {
    margin: 4px 0;
    padding: 2px 0;
    font-size: 13px;
}

/* กิจกรรมหน้าแรก — รูปเต็มกรอบ (165px) ไม่ล้นหรือเล็กเกินไป */
.activity_main #activity_main_detail > .pic {
    display: block;
    position: relative;
    overflow: hidden;
    height: 165px;
    background: #f8f8f8;
}

.activity_main #activity_main_detail > .pic > a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.activity_main #activity_main_detail > .pic > a > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

/* ข่าวประชาสัมพันธ์ — สไตล์เว็บจริง (ชมพู #ba5878 / วันที่ดำ) */
.activity_main .activity_detail {
    padding-bottom: 10px;
}

.activity_main .pr_main {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 200px;
    margin-top: 10px;
    padding: 0 5px;
    overflow: hidden;
}

.activity_main .pr_main > .pic {
    flex: 0 0 auto;
    text-align: center;
    margin: 0 0 6px;
    line-height: 0;
}

.activity_main .pr_main > .pic > img {
    display: block;
    max-width: 130px;
    max-height: 100px;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.activity_main .pr_main > .detail {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
    padding: 0 2px 2px;
    overflow: hidden;
}

.activity_main .pr_main > .detail > .pr_main__link,
.activity_main .pr_main > .detail > a.pr_main__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    text-decoration: none;
    font-size: 14px;
    font-family: tahoma, sans-serif;
    color: #ba5878;
    box-sizing: border-box;
}

.activity_main .pr_main > .detail > a.pr_main__link > .pr_main__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
    line-height: 1.35;
    max-height: calc(1.35em * 3);
    word-break: break-word;
    color: #ba5878;
}

.activity_main .pr_main > .detail > a.pr_main__link:hover > .pr_main__title {
    color: #bb5878;
}

.activity_main .pr_main > .detail > a.pr_main__link > .pr_main__date {
    display: block;
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 4px;
    font-size: 12px;
    line-height: 1.25;
    color: #191919;
}

/* จัดซื้อจัดจ้าง / e-GP — ลิงก์สีน้ำเงิน + วันที่เทา (style.css + จัดระยะไอคอน) */
.nongharn-egp-block .auction_detail > .auction,
.nongharn-purchase-block .auction_detail > .auction {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.nongharn-egp-block .auction_detail > .auction > img,
.nongharn-purchase-block .auction_detail > .auction > img {
    flex: 0 0 auto;
    margin-top: 2px;
}

.nongharn-egp-block .auction_detail > .auction > a,
.nongharn-purchase-block .auction_detail > .auction > a {
    flex: 1 1 auto;
    margin-left: 10px;
    line-height: 1.4;
    word-break: break-word;
}

.nongharn-egp-block .auction_detail > .auction > a > span,
.nongharn-purchase-block .auction_detail > .auction > a > span {
    color: #767474;
    font-size: 12px;
    white-space: nowrap;
}

/* Right sidebar — spacing ทั้งคอลัมน์ */
.nh-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.nh-right-sidebar .category_right {
    padding-bottom: 4px;
    overflow: hidden;
    max-width: 100%;
}

.nh-right-sidebar .category_right__header-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px 6px 0 0;
}

.nh-right-sidebar .people_pic {
    margin: 10px 8px 0 !important;
    max-width: calc(100% - 16px);
    box-sizing: border-box;
}

.nh-right-sidebar .people_pic img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

.nh-right-sidebar .people_pic + .people_position {
    margin-top: 6px;
}

.nh-right-sidebar .people_position {
    margin: 0 8px 12px;
    padding: 0;
    font-size: 16px;
    line-height: 1.35;
}

.nh-right-sidebar .nh-fb-page-box {
    margin: 0;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.nh-right-sidebar .nh-fb-page-embed,
.nh-right-sidebar .nh-fb-page-embed iframe {
    max-width: 100% !important;
}

.nh-right-sidebar__promo {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.nh-right-sidebar__promo-link {
    display: block;
    line-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 6px;
    box-sizing: border-box;
}

.nh-right-sidebar__promo-link img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 !important;
    box-sizing: border-box;
}

.nh-right-sidebar .nh-right-menu-links {
    margin: 0;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.nh-right-sidebar .nongharn-right-widgets {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.nh-right-sidebar .nongharn-right-widgets > .nh-municipality-links,
.nh-right-sidebar .nongharn-right-widgets > .nh-cal-box,
.nh-right-sidebar .nongharn-right-widgets > .nh-satisfaction-box,
.nh-right-sidebar .nongharn-right-widgets > .nh-right-stat {
    margin: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* คอลัมน์ sidebar ขวา — กันภาพแบนเนอร์ล้น */
.header_bg .container > .col-xs-3:has(.nh-right-sidebar) {
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
}

/* Right sidebar — Facebook / สถิติ / ปฏิทิน / ฟอร์มความพึงพอใจ */
.nongharn-right-widgets {
    margin-top: 15px;
}

.nh-municipality-links {
    margin: 0 0 12px;
}

/* Inner pages (advertise, event, …) inside Nongharn CI3 shell */
#nongharn-inner-center .col-md-9,
#nongharn-inner-center .col-sm-8 {
    width: 100%;
    float: none;
    max-width: 100%;
    padding: 0;
}

#nongharn-inner-center .primary-heading h2 {
    font-family: Conv_TH_Niramit_AS, tahoma, sans-serif;
    color: #482112;
    font-size: 24px;
}

/* Page detail — แสดง ul/ol/li จาก CKEditor (override style.css ที่ reset list ทั้งหน้า) */
#nongharn-inner-center .page-detail-body .detail-img ul,
#nongharn-inner-center .page-detail-body .detail-img ol,
#nongharn-inner-center .page-detail-body .post-desc ul,
#nongharn-inner-center .page-detail-body .post-desc ol {
    margin: 0.75em 0 1em !important;
    padding-left: 1.75em !important;
    list-style-position: outside;
}

#nongharn-inner-center .page-detail-body .detail-img ul,
#nongharn-inner-center .page-detail-body .post-desc ul {
    list-style-type: disc;
}

#nongharn-inner-center .page-detail-body .detail-img ol,
#nongharn-inner-center .page-detail-body .post-desc ol {
    list-style-type: decimal;
}

#nongharn-inner-center .page-detail-body .detail-img li,
#nongharn-inner-center .page-detail-body .post-desc li {
    display: list-item !important;
    list-style: inherit;
    margin: 0.35em 0;
    padding-left: 0.15em;
    color: #333;
    line-height: 1.65;
}

#nongharn-inner-center .page-detail-body .detail-img p,
#nongharn-inner-center .page-detail-body .post-desc p {
    color: #333;
    line-height: 1.65;
    margin: 0 0 0.85em;
}

#nongharn-inner-center .page-detail-body .detail-img h2,
#nongharn-inner-center .page-detail-body .detail-img h3,
#nongharn-inner-center .page-detail-body .post-desc h2,
#nongharn-inner-center .page-detail-body .post-desc h3 {
    color: #482112;
    margin: 0.75em 0 0.5em;
}

#nongharn-inner-center .page-detail-card-wrap {
    margin-bottom: 12px;
}

#nongharn-inner-center .page-detail-body > h1 {
    margin: 0 0 12px;
    padding: 15px 0;
    font-weight: normal;
    font-size: 32px !important;
    font-family: Conv_TH_Niramit_AS, tahoma, sans-serif !important;
    color: #be165d !important;
    text-align: center;
    line-height: 1.3;
    text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff,
        1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
}

@media (max-width: 767px) {
    #nongharn-inner-center .page-detail-body > h1 {
        font-size: 28px !important;
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    #nongharn-inner-center .page-detail-body > h1 {
        font-size: 24px !important;
    }
}

/* หน้ารายการข่าวประชาสัมพันธ์ — h1 + grid แบบ nongharn.go.th */
#nongharn-inner-center .nh-advertise-list__header {
    overflow: hidden;
}

#nongharn-inner-center .nh-advertise-list__title {
    margin: 0;
    padding: 15px 0;
    font-weight: normal;
    font-size: 26px;
    font-family: Conv_TH_Niramit_AS, tahoma, sans-serif !important;
    color: #be165d;
    text-align: center;
    text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff,
        1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
}

#nongharn-inner-center .nh-advertise-listing__list {
    list-style: none;
    margin: 0;
    padding: 8px 10px 4px;
}

#nongharn-inner-center .nh-advertise-listing__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px dotted #f26d7d;
}

#nongharn-inner-center .nh-advertise-listing__item:last-child {
    border-bottom: 0;
}

#nongharn-inner-center .nh-advertise-listing__thumb-link {
    flex: 0 0 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 100px;
    background: #f8f8f8;
    overflow: hidden;
    line-height: 0;
}

#nongharn-inner-center .nh-advertise-listing__thumb {
    display: block;
    max-width: 130px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

#nongharn-inner-center .nh-advertise-listing__content {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 2px;
}

#nongharn-inner-center .nh-advertise-listing__title {
    display: block;
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.4;
    font-family: tahoma, sans-serif;
    color: #ba5878;
    text-decoration: none;
    word-break: break-word;
}

#nongharn-inner-center .nh-advertise-listing__title:hover {
    color: #bb5878;
}

#nongharn-inner-center .nh-advertise-listing__bullet {
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px 2px 0;
}

#nongharn-inner-center .nh-advertise-listing__date {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    color: #191919;
    margin-bottom: 4px;
}

#nongharn-inner-center .nh-advertise-listing__excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #555;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* หน้างานการเจ้าหน้าที่ (/officer-work) — card grid responsive */
#nongharn-inner-center .nh-officer-work__header {
    overflow: hidden;
}

#nongharn-inner-center .nh-officer-work__page-title {
    margin: 0 0 12px;
    padding: 0 6px;
    font-size: 16px !important;
    line-height: 1.4;
    font-family: tahoma, sans-serif !important;
    font-weight: bold;
    color: #bb5877;
}

#nongharn-inner-center .nh-officer-work__list-wrap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 14px;
    padding: 4px 8px 16px;
}

#nongharn-inner-center .nh-officer-work__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    float: none;
    width: auto;
    background: #fff;
    border: 1px solid #ecdce2;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(25, 25, 25, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#nongharn-inner-center .nh-officer-work__card:hover {
    box-shadow: 0 6px 18px rgba(190, 22, 93, 0.12);
    transform: translateY(-1px);
}

#nongharn-inner-center .nh-officer-work__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 8px;
    background: #f8f8f8;
    line-height: 0;
    text-decoration: none;
}

#nongharn-inner-center .nh-officer-work__media img {
    display: block;
    width: 100%;
    max-width: 130px;
    max-height: 100px;
    height: auto;
    object-fit: contain;
    object-position: center;
}

#nongharn-inner-center .nh-officer-work__card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 6px;
    min-width: 0;
    padding: 10px 12px 12px;
}

#nongharn-inner-center .nh-officer-work__link {
    display: block;
    color: #ba5878;
    font-size: 14px;
    line-height: 1.45;
    font-family: tahoma, sans-serif;
    text-decoration: none;
    word-break: break-word;
}

#nongharn-inner-center .nh-officer-work__link:hover {
    color: #bb5878;
}

#nongharn-inner-center .nh-officer-work__bullet {
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px 2px 0;
}

#nongharn-inner-center .nh-officer-work__title {
    display: inline;
    vertical-align: middle;
}

#nongharn-inner-center .nh-officer-work__date {
    display: block;
    margin-top: auto;
    font-size: 12px;
    line-height: 1.35;
    color: #191919;
    font-style: normal;
}

#nongharn-inner-center .nh-officer-work__intro {
    padding: 8px 10px 0;
}

#nongharn-inner-center .nh-officer-work__intro-text {
    overflow-wrap: anywhere;
    word-break: break-word;
}

#nongharn-inner-center .nh-officer-work__intro-text img,
#nongharn-inner-center .nh-officer-work__intro-text iframe,
#nongharn-inner-center .nh-officer-work__intro-text table {
    max-width: 100%;
    height: auto;
}

#nongharn-inner-center .nh-officer-work__divider {
    height: 0;
    border-top: 1px dashed #f58e9b;
    margin: 24px 12px;
}

@media (max-width: 1199px) {
    #nongharn-inner-center .nh-officer-work__list-wrap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    #nongharn-inner-center .nh-officer-work__list-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
        padding-inline: 10px;
    }
}

@media (max-width: 767px) {
    #nongharn-inner-center .nh-advertise-listing__item {
        flex-direction: column;
        align-items: stretch;
    }

    #nongharn-inner-center .nh-advertise-listing__thumb-link {
        width: 100%;
        max-width: 220px;
        flex-basis: auto;
    }

    #nongharn-inner-center .nh-officer-work__list-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding-inline: 8px;
    }

    #nongharn-inner-center .nh-officer-work__card {
        flex-direction: row;
        align-items: stretch;
    }

    #nongharn-inner-center .nh-officer-work__media {
        flex: 0 0 72px;
        width: 72px;
        aspect-ratio: auto;
        min-height: 68px;
        padding: 6px;
        border-right: 1px solid #f0e0e6;
    }

    #nongharn-inner-center .nh-officer-work__media img {
        width: auto;
        max-width: 100%;
        max-height: 56px;
    }

    #nongharn-inner-center .nh-officer-work__card-body {
        justify-content: center;
        padding: 10px 12px;
    }

    #nongharn-inner-center .nh-officer-work__divider {
        margin-inline: 8px;
    }
}

@media (max-width: 480px) {
    #nongharn-inner-center .nh-officer-work__media {
        flex-basis: 64px;
        width: 64px;
        min-height: 60px;
        padding: 5px;
    }

    #nongharn-inner-center .nh-officer-work__media img {
        max-height: 48px;
    }

    #nongharn-inner-center .nh-officer-work__link {
        font-size: 13px;
    }

    #nongharn-inner-center .nh-officer-work__date {
        font-size: 11px;
    }
}

/* หน้ารายการกิจกรรม (/event, /gallery) — grid 3 คอลัมน์ต่อแถว */
#nongharn-inner-center .nh-event-page {
    padding-bottom: 8px;
}

#nongharn-inner-center .nh-event-page__header {
    overflow: hidden;
    margin-bottom: 6px;
}

#nongharn-inner-center .nh-event-page__title {
    margin: 0;
    padding: 12px 0 16px;
    font-weight: normal;
    font-size: 26px;
    font-family: Conv_TH_Niramit_AS, tahoma, sans-serif !important;
    color: #be165d;
    text-align: center;
    text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff,
        1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
}

#nongharn-inner-center .nh-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 18px;
    padding: 4px 14px 16px;
}

#nongharn-inner-center .nh-event-grid__item {
    box-sizing: border-box;
    width: auto;
    float: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

#nongharn-inner-center .nh-event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #ecdce2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(25, 25, 25, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#nongharn-inner-center .nh-event-card:hover {
    box-shadow: 0 8px 22px rgba(190, 22, 93, 0.12);
    transform: translateY(-2px);
}

#nongharn-inner-center .nh-event-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f3f3;
    line-height: 0;
}

#nongharn-inner-center .nh-event-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: center;
    transition: transform 0.25s ease;
}

#nongharn-inner-center .nh-event-card:hover .nh-event-card__media img {
    transform: scale(1.03);
}

#nongharn-inner-center .nh-event-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 8px;
    padding: 14px 16px 16px;
}

#nongharn-inner-center .nh-event-card__title {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-family: tahoma, sans-serif;
    font-weight: normal;
}

#nongharn-inner-center .nh-event-card__title a {
    color: #191919;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 0;
}

#nongharn-inner-center .nh-event-card:hover .nh-event-card__title a {
    color: #be165d;
}

#nongharn-inner-center .nh-event-card__date {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: #888;
    margin-top: 2px;
}

#nongharn-inner-center .nh-event-card__more {
    align-self: flex-end;
    margin-top: 10px;
    background: #8ce2fd;
    background: -moz-linear-gradient(top, #8ce2fd 0%, #7db9e8 100%, #32bce8 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #8ce2fd), color-stop(100%, #7db9e8), color-stop(100%, #32bce8));
    background: -webkit-linear-gradient(top, #8ce2fd 0%, #7db9e8 100%, #32bce8 100%);
    background: -o-linear-gradient(top, #8ce2fd 0%, #7db9e8 100%, #32bce8 100%);
    background: -ms-linear-gradient(top, #8ce2fd 0%, #7db9e8 100%, #32bce8 100%);
    background: linear-gradient(to bottom, #8ce2fd 0%, #7db9e8 100%, #32bce8 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#8ce2fd', endColorstr='#32bce8', GradientType=0);
    border: 1px solid #2fadd6;
    width: 95px;
    padding: 2px 0;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    font-family: tahoma, sans-serif;
    text-decoration: none;
    text-align: center;
    box-shadow: none;
}

#nongharn-inner-center .nh-event-card__more:hover {
    color: #2899bf;
}

#nongharn-inner-center .nh-event-grid__pagi {
    grid-column: 1 / -1;
    clear: both;
    width: 100%;
    float: none;
    margin-top: 4px;
    padding-top: 12px;
}

#nongharn-inner-center .nh-event-grid__empty {
    grid-column: 1 / -1;
    clear: both;
    margin: 16px 4px 8px;
    font-size: 14px;
    color: #666;
}

@media (max-width: 767px) {
    #nongharn-inner-center .nh-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 14px;
        padding-inline: 12px;
    }
}

@media (max-width: 480px) {
    #nongharn-inner-center .nh-event-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding-inline: 10px;
    }

    #nongharn-inner-center .nh-event-card__body {
        padding: 12px 14px 14px;
    }
}

/* Inner page — ข่าวจัดซื้อจัดจ้าง (/purchase) */
#nongharn-inner-center .nh-purchase-page {
    padding-top: 0;
    margin-bottom: 0;
}

#nongharn-inner-center .nh-purchase-page__header {
    overflow: hidden;
}

#nongharn-inner-center .nh-purchase-page__title {
    margin: 0;
    padding: 15px 0;
    font-weight: normal;
    font-size: 26px;
    font-family: Conv_TH_Niramit_AS, tahoma, sans-serif !important;
    color: #be165d;
    text-align: center;
    text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff,
        1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
}

#nongharn-inner-center .nh-purchase-page__body {
    padding: 0 5px 8px;
}

#nongharn-inner-center .nh-purchase-search {
    margin: 10px 12px 14px;
    padding: 10px 12px;
    border: 1px solid #f0c4d4;
    border-radius: 8px;
    background: #fffafb;
}

#nongharn-inner-center .nh-purchase-search__label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-family: tahoma, sans-serif;
    color: #be165d;
    font-weight: bold;
}

#nongharn-inner-center .nh-purchase-search__box {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e8c4d8;
    border-radius: 6px;
    background: #fff;
    padding: 4px 8px;
}

#nongharn-inner-center .nh-purchase-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    font-size: 14px;
    font-family: tahoma, sans-serif;
    color: #333;
    background: transparent;
}

#nongharn-inner-center .nh-purchase-search__clear {
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #ba5878;
    font-size: 20px;
    line-height: 1;
    width: 24px;
    height: 24px;
    padding: 0;
    cursor: pointer;
}

#nongharn-inner-center .nh-purchase-search__summary {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #767474;
    font-family: tahoma, sans-serif;
}

#nongharn-inner-center .nh-purchase-page .auction_detail {
    padding: 0 10px;
}

#nongharn-inner-center .nh-purchase-page .auction_detail > .auction {
    align-items: flex-start;
}

#nongharn-inner-center .nh-purchase-page__empty {
    font-size: 14px;
    color: #767474;
    font-family: tahoma, sans-serif;
}

#nongharn-inner-center .nh-purchase-page__pagi {
    float: none;
    clear: both;
    padding: 0 12px 8px;
    text-align: right;
}

#nongharn-inner-center .nh-purchase-page__pagi .pagination {
    margin: 0;
}

#nongharn-inner-center .nh-purchase-page__pagi .pagination > li > a {
    color: #ba5878;
}

#nongharn-inner-center .nh-purchase-page__pagi .pagination > .active > a {
    background-color: #ba5878;
    border-color: #ba5878;
    color: #fff;
}

#nongharn-inner-center .nh-purchase-detail__body {
    padding: 16px 18px 20px;
}

#nongharn-inner-center .nh-purchase-detail__heading {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.45;
    font-family: tahoma, sans-serif !important;
    font-weight: bold;
    color: #227cda;
}

#nongharn-inner-center .nh-purchase-detail__date {
    margin: 0 0 14px;
    font-size: 12px;
    color: #767474;
    font-family: tahoma, sans-serif;
}

#nongharn-inner-center .nh-purchase-detail__media {
    margin: 0 0 16px;
    text-align: center;
}

#nongharn-inner-center .nh-purchase-detail__media img {
    max-width: 100%;
    height: auto;
}

#nongharn-inner-center .nh-purchase-detail__content {
    font-size: 14px;
    line-height: 1.65;
    color: #2a2a2a;
    font-family: tahoma, sans-serif;
    word-break: break-word;
}

#nongharn-inner-center .nh-purchase-detail__content img {
    max-width: 100%;
    height: auto;
}

#nongharn-inner-center .nh-purchase-detail__attach {
    margin: 18px 0 12px;
    padding-top: 12px;
    border-top: 1px dashed #f58e9b;
}

#nongharn-inner-center .nh-purchase-detail__attach-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: bold;
    color: #be165d;
    font-family: Conv_TH_Niramit_AS, tahoma, sans-serif !important;
}

#nongharn-inner-center .nh-purchase-detail__attach a,
#nongharn-inner-center .nh-purchase-detail__back a {
    color: #227cda;
    font-family: tahoma, sans-serif;
    font-size: 14px;
    text-decoration: none;
}

#nongharn-inner-center .nh-purchase-detail__attach a:hover,
#nongharn-inner-center .nh-purchase-detail__back a:hover {
    color: #bb5877;
}

#nongharn-inner-center .nh-purchase-detail__iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 720px;
    margin-top: 12px;
    border: 1px solid #e8c4d8;
    border-radius: 6px;
}

#nongharn-inner-center .nh-purchase-detail__back {
    margin: 20px 0 0;
    padding-top: 12px;
    border-top: 1px dashed #c2c2c2;
    text-align: right;
}

#nongharn-inner-center .nh-purchase-detail__shell {
    padding: 12px 14px 18px;
}

#nongharn-inner-center .purchase-detail-card-wrap {
    margin-bottom: 0;
}

#nongharn-inner-center .purchase-detail-body {
    padding: 20px 18px !important;
}

#nongharn-inner-center .purchase-detail-breadcrumb {
    margin: 0 0 10px;
    font-size: 13px;
    font-family: tahoma, sans-serif;
    color: #767474;
}

#nongharn-inner-center .purchase-detail-breadcrumb a {
    color: #227cda;
    text-decoration: none;
}

#nongharn-inner-center .purchase-detail-breadcrumb a:hover {
    color: #bb5877;
}

#nongharn-inner-center .purchase-detail-date {
    margin: 0 0 12px;
    font-size: 13px;
    color: #767474;
    font-family: tahoma, sans-serif;
    text-align: center;
}

#nongharn-inner-center .purchase-detail-lead {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #482112;
    font-family: tahoma, sans-serif;
}

#nongharn-inner-center .purchase-detail-content {
    font-size: 14px;
    line-height: 1.65;
    color: #2a2a2a;
    font-family: tahoma, sans-serif;
    word-break: break-word;
}

#nongharn-inner-center .purchase-detail-content img {
    max-width: 100%;
    height: auto;
}

#nongharn-inner-center .purchase-detail-iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 720px;
    margin-top: 12px;
    border: 1px solid #e8c4d8;
    border-radius: 10px;
}

#nongharn-inner-center .purchase-detail-back {
    margin: 14px 0 0;
    padding: 0 4px;
    text-align: right;
    font-family: tahoma, sans-serif;
    font-size: 14px;
}

#nongharn-inner-center .purchase-detail-back a {
    color: #227cda;
    text-decoration: none;
}

#nongharn-inner-center .purchase-detail-back a:hover {
    color: #bb5877;
}

#nongharn-inner-center .purchase-detail-top-media {
    padding: 14px 14px 0;
    text-align: center;
}

#nongharn-inner-center .purchase-detail-top-media img {
    max-width: 100%;
    height: auto;
}

#nongharn-inner-center .purchase-detail-board {
    margin-bottom: 0 !important;
}

#nongharn-inner-center .nh-purchase-sub-list {
    margin: 0;
    padding: 0 5px 8px;
}

#nongharn-inner-center .nh-purchase-sub-list__item {
    padding: 0 10px;
    border-bottom: 1px dashed #c2c2c2;
}

#nongharn-inner-center .nh-purchase-sub-list__item:last-child {
    border-bottom: 0;
}

#nongharn-inner-center .nh-purchase-sub-list .auction {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    line-height: 1.45;
    word-break: break-word;
}

#nongharn-inner-center .nh-purchase-sub-list .auction img {
    flex: 0 0 auto;
    margin-top: 2px;
}

#nongharn-inner-center .nh-purchase-sub-list .auction a {
    color: #227cda;
    font-size: 14px;
    font-family: tahoma, sans-serif;
    text-decoration: none;
}

#nongharn-inner-center .nh-purchase-sub-list .auction a:hover {
    color: #bb5877;
}

#nongharn-inner-center .nh-purchase-sub-list .auction a span {
    color: #767474;
    font-size: 12px;
}

#nongharn-inner-center .nh-purchase-sub-list .auction a .listing-pdf-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 6px;
}

/* Inner page — ดาวน์โหลดคำร้อง (/download) */
#nongharn-inner-center .nh-download-page {
    padding-top: 0;
    margin-bottom: 0;
}

#nongharn-inner-center .nh-download-page__header {
    overflow: hidden;
}

#nongharn-inner-center .nh-download-page__title {
    margin: 0;
    padding: 15px 0;
    font-weight: normal;
    font-size: 26px;
    font-family: Conv_TH_Niramit_AS, tahoma, sans-serif !important;
    color: #be165d;
    text-align: center;
    text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff,
        1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
}

#nongharn-inner-center .nh-download-page__body {
    padding: 0 5px 8px;
}

#nongharn-inner-center .nh-download-page .auction_detail {
    padding: 0 10px;
    border-bottom: 1px dashed #c2c2c2;
}

#nongharn-inner-center .nh-download-page .auction_detail:last-child {
    border-bottom: 0;
}

#nongharn-inner-center .nh-download-item__link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    line-height: 1.45;
    word-break: break-word;
    color: #227cda;
    font-size: 14px;
    font-family: tahoma, sans-serif;
    text-decoration: none;
}

#nongharn-inner-center .nh-download-item__link:hover {
    color: #bb5877;
}

#nongharn-inner-center .nh-download-pdf-icon {
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    line-height: 0;
}

#nongharn-inner-center .nh-download-item__title {
    flex: 1 1 auto;
    min-width: 0;
}

#nongharn-inner-center .nh-download-page__empty {
    font-size: 14px;
    color: #767474;
    font-family: tahoma, sans-serif;
}

#nongharn-inner-center .nh-download-page__pagi {
    float: none;
    clear: both;
    padding: 0 12px 8px;
    text-align: right;
}

#nongharn-inner-center .nh-download-page__pagi .pagination {
    margin: 0;
}

#nongharn-inner-center .nh-download-page__pagi .pagination > li > a {
    color: #ba5878;
}

#nongharn-inner-center .nh-download-page__pagi .pagination > .active > a {
    background-color: #ba5878;
    border-color: #ba5878;
    color: #fff;
}

.nh-fb-page-box {
    margin: 0 0 12px;
    background: #fff;
    border: 1px solid #e8c4d8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(186, 88, 120, 0.12);
}

.nh-fb-page-embed {
    background: #f0f2f5;
    overflow: hidden;
}

.nh-fb-page-embed iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-height: 600px;
    height: 600px;
}

.nh-fb-page-fallback {
    padding: 8px;
    text-align: center;
    background: #f0f2f5;
}

.nh-fb-page-fallback img {
    max-width: 100%;
    height: auto;
}

.nongharn-right-widgets .nh-right-stat {
    margin: 12px 0 15px;
    padding: 0;
    background: #f3f8fc;
    border: 1px solid #c8ddf5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    text-align: center;
}

.nongharn-right-widgets .nh-right-stat .visitor-stats-table-wrap,
.nongharn-right-widgets .nh-right-stat #histats_counter {
    width: 100%;
    box-shadow: none !important;
    filter: none !important;
}

.nongharn-right-widgets .nh-right-stat .stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin: 0;
    background: #f3f8fc;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    filter: none !important;
}

.nongharn-right-widgets .nh-right-stat .stats-table * {
    box-shadow: none !important;
}

.nongharn-right-widgets .nh-right-stat .stats-table th {
    padding: 9px 8px;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a7fd4, #52b4f0);
    color: #fff;
    text-align: center;
    letter-spacing: 0.2px;
}

.nongharn-right-widgets .nh-right-stat .stats-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #e2eef9;
    color: #4a6278;
}

.nongharn-right-widgets .nh-right-stat .stats-table td:first-child {
    text-align: left;
}

.nongharn-right-widgets .nh-right-stat .stats-table tr:last-child td {
    border-bottom: 0;
    background: #e8f3fc;
}

.nongharn-right-widgets .nh-right-stat .stats-table td.value {
    text-align: center;
    font-weight: 700;
    color: #1565b8;
}

.nongharn-right-widgets .nh-right-stat .stats-table tr:last-child td.value {
    color: #1256a0;
}

.nongharn-right-widgets .nh-right-stat .stats-table tr:nth-child(even) td {
    background: #f0f6fc;
}

.nongharn-right-widgets .nh-right-stat .stats-table tr:nth-child(even):last-child td {
    background: #e8f3fc;
}

.nongharn-right-widgets .nh-right-stat .stats-table tr:hover td {
    background: #e3f1fb;
}

.nongharn-right-widgets .nh-right-stat .stats-table tr:last-child:hover td {
    background: #dceefb;
}

.nh-cal-box {
    margin: 0 0 12px;
    background: #fff;
    border: 1px solid #e8c4d8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(186, 88, 120, 0.12);
}

.nh-cal-head {
    background: linear-gradient(135deg, #ba5878, #d46a8f);
    padding: 8px 6px 10px;
}

.nh-cal-title {
    margin: 0 0 6px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
}

.nh-cal-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.nh-cal-month-label {
    flex: 1 1 auto;
    text-align: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

button.nh-cal-nav {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

button.nh-cal-nav:hover {
    background: rgba(255, 255, 255, 0.35);
}

.nh-cal-grid,
.nh-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 4px 5px 6px;
}

.nh-cal-grid {
    background: #fceef3;
    padding-bottom: 2px;
}

.nh-cal-dow {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #ba5878;
    padding: 2px 0;
}

.nh-cal-day {
    text-align: center;
    font-size: 10px;
    line-height: 1.2;
    min-height: 20px;
    padding: 2px 0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nh-cal-day.today {
    background: #ba5878;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
}

.nh-cal-day.has-event {
    background: #f8d7e4;
    color: #8c3d5a;
    font-weight: 700;
}

.nh-cal-day.has-event:hover {
    background: #ba5878;
    color: #fff;
}

.nh-satisfaction-box {
    margin: 0 0 15px;
    padding: 10px 8px 12px;
    background: #fff;
    border: 1px solid #e8c4d8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(186, 88, 120, 0.12);
}

.nh-satisfaction-title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: bold;
    color: #ba5878;
    line-height: 1.35;
}

.nh-satisfaction-desc {
    margin: 0 0 8px;
    font-size: 11px;
    color: #666;
}

.nh-satisfaction-option {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 4px 0;
    font-size: 12px;
    color: #333;
    cursor: pointer;
}

.nh-satisfaction-option-last {
    margin-bottom: 10px;
}

.nh-satisfaction-turnstile {
    margin: 0 0 8px;
    transform: scale(0.88);
    transform-origin: left top;
}

.nh-satisfaction-submit {
    width: 100%;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    background: #ba5878;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.nh-satisfaction-submit:hover {
    background: #a24a68;
}
