@import url("https://fonts.googleapis.com/css?family=Roboto+Mono");

html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

.page-wrapper {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.flip {
    position: relative;
}
.flip > .front,
.flip > .back {
    display: block;
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-duration: 0.5s;
    transition-property: transform, opacity;
}
.flip > .front {
    transform: rotateY(0deg);
}
.flip > .back {
    position: absolute;
    opacity: 0;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    transform: rotateY(-180deg);
}
.flip:hover > .front {
    transform: rotateY(180deg);
}
.flip:hover > .back {
    opacity: 1;
    transform: rotateY(0deg);
}
.flip.flip-vertical > .back {
    transform: rotateX(-180deg);
}
.flip.flip-vertical:hover > .front {
    transform: rotateX(180deg);
}
.flip.flip-vertical:hover > .back {
    transform: rotateX(0deg);
}

.flip {
    position: relative;
    display: inline-block;
    margin-right: 2px;
    margin-bottom: 1em;
    width: 220px;
}
.flip > .front,
.flip > .back {
    display: block;
    color: white;
    width: inherit;
    background-size: cover !important;
    background-position: center !important;
    height: 180px;
    padding: 1em 2em;
    /*background: #313131;

     */
    border-radius: 10px;
}
.flip > .front p,
.flip > .back p {
    font-size: 0.9125rem;
    line-height: 160%;
    color: #999;
}

/*
.text-shadow {
    text-shadow: 1px 1px rgba(0, 0, 0, 0.04), 2px 2px rgba(0, 0, 0, 0.04), 3px 3px rgba(0, 0, 0, 0.04), 4px 4px rgba(0, 0, 0, 0.04), 0.125rem 0.125rem rgba(0, 0, 0, 0.04), 6px 6px rgba(0, 0, 0, 0.04), 7px 7px rgba(0, 0, 0, 0.04), 8px 8px rgba(0, 0, 0, 0.04), 9px 9px rgba(0, 0, 0, 0.04), 0.3125rem 0.3125rem rgba(0, 0, 0, 0.04), 11px 11px rgba(0, 0, 0, 0.04), 12px 12px rgba(0, 0, 0, 0.04), 13px 13px rgba(0, 0, 0, 0.04), 14px 14px rgba(0, 0, 0, 0.04), 0.625rem 0.625rem rgba(0, 0, 0, 0.04), 16px 16px rgba(0, 0, 0, 0.04), 17px 17px rgba(0, 0, 0, 0.04), 18px 18px rgba(0, 0, 0, 0.04), 19px 19px rgba(0, 0, 0, 0.04), 1.25rem 1.25rem rgba(0, 0, 0, 0.04);
}

 */

/*--------------- กริด คอล ----*/
.grid-container {
    display: grid;
    grid-template-columns: auto auto auto;
    /* background-color: #2196F3;*/
    padding: 10px;
}
.grid-item {
    /*background-color: rgba(255, 255, 255, 0.8);*/
    border: 0px solid rgba(0, 0, 0, 0.8);
    padding: 20px;
    font-size: 30px;
    text-align: center;
}




/* Header Top */



/*
.main-header  .top-right{
    position: absolute;
    z-index: 1;
    float:right;
    right: 9%;
    bottom: 9%;
    padding:8px 0px;
}

.main-header .header-bar .top-right2 {
    position: absolute;
    top: 40px;
    left: 170px;
    padding: 20px 0px 20px 0px;
}
 */

/*
.top-right2.pull-right {
    position: relative;
    top: 35rem;
    left: 15rem;
}
 */

.main-header  .info-list{
    position:relative;
}

.main-header .info-list li{
    position: relative;
    color:#ffffff;
    font-size:16px;
    margin-right:30px;
    padding-left:28px;
    display:inline-block;
}

.main-header  .info-list li:last-child{
    margin-right:0px;
}

.main-header  .info-list li .icon{
    position:absolute;
    left:0px;
    top:0px;
    color:white;
    font-size:18px;
    font-weight:500;
}

.main-header  .info-list li a{
    position: relative;
    color:white;
    -webkit-transition:all 300ms ease;
    -ms-transition:all 300ms ease;
    -o-transition:all 300ms ease;
    -moz-transition:all 300ms ease;
    transition:all 300ms ease;
}

.main-header  .info-list li a:hover{
    color:#0594ff;
}

.main-footer .footer-bottom {
    background-color: #e79321 !important;
}

.bgimg {
    background-image: url("../img/bg/BG.png");
    /*background-color: #79a22d;*/
    background-repeat: no-repeat;
    background-size: cover;
}

.broad-section {
    position: relative;
    text-align: center;
    padding: 60px 0px 30px;
}

.qr-section {
    position: relative;
    text-align: center;
    padding: 30px 0px 30px;
}

.qr-section a {
    color: white;
}

.specialist-section  a {
    color: white;
}

.specialist-section  h2 {
    color: white ;
}

.specialist-section .table-bordered thead td, .table-bordered thead th {
    color: white;
}

.specialist-section .table-bordered td, .table-bordered th {
    color: white;
}

.specialist-section .summary {
    color: white;
}

.specialist-section .page-link {
    color: #ebac26;
}

.specialist-block .inner-box h6 a {
    color: white !important;
}

.services-section a {
    color: white !important;
}

.services-section h2 {
    color: white !important;
}

.services-section .nav-pills .nav-link.active {
    background-color: #f1da2f
}

.timing-section h2 {
    color: white !important;
}

.timing-section .nav-pills .nav-link.active {
    background-color: #f1da2f !important;
}

.news-section h2 {
    color: white !important;
}

.news-section .news-block .inner-box .image .category {
    background-color: #f1da2f !important;
}

.news-section .page-link {
    color: #ebac26 !important;
}

.services-section .page-link {
    color: #0c199c !important;
}
.service-block .inner-box .overlay-box h5 {
    color: #0c199c !important;
}

.team-section h2 {
    color: white !important;
}

.team-section h4 {
    color: white;
}

.team-section h5 {
    color: white;
}

.team-section .empty {
    color: white;
}

.team-section .nav-pills .nav-link.active {
    background-color: #f1da2f;
    color: #000000;
}

.team-section .nav-pills a {
    color: white ;
}

.faq-section h2 {
    color: white !important;
}

.breadcrumb {
    justify-content: center;
}

.timing-section div#pjax-egp-W0 {
    text-align: left !important;
}

.img-news img {
    width: 100%;
    height: 280px;
}

.img-slide {
    /*width: 670px;*/
    height: 560px;
}

.pricing-section {
    position: relative;
    padding: 30px 0px 30px;
}

.pricing-section .image-layer {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    height: 600px;
    background-size: cover;
}

.pricing-section .circle-layer {
    position: absolute;
    left: 170px;
    width: 269px;
    height: 572px;
    background-repeat: no-repeat;
}

.last-news-section {
    position: relative;
    padding: 30px 0px 30px;
    background-size: cover;
}

.last-news-section .image-layer {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    height: 1080px;
    background-size: cover;
}

.last-news-section .circle-layer {
    position: absolute;
    left: 170px;
    width: 269px;
    height: 572px;
    background-repeat: no-repeat;
}

.img-last {
    width: 100%;
    height: 280px;
}

.img-big {
    width: 100%;
    height: 575px;
}

.popular-places .col-pad {
    padding: 0 10px;
}

.last-news-section .popular-places-box .popular-places-photo {
    position: relative;
    transform: scale(1);
    transition: 1s;
    border-radius: 3px;
}

/** Popular places box start **/
.popular-places-box {
    position: relative;
    z-index: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: 0.3s cubic-bezier(0.24, 0.74, 0.58, 1);
    width: 100%!important;
    margin: 0 0 20px 0;
    overflow: hidden;
}

.popular-places-box .popular-places-overflow {
    overflow: hidden;
    border-radius: 3px;
}

.popular-places-box .popular-places-photo {
    position: relative;
    transform: scale(1);
    transition: 1s;
    border-radius: 3px;
}

.popular-places-box .popular-places-photo img{
    border-radius: 3px;
    /*height: 280px;*/
    width: 100%;
}

.popular-places-box .popular-places-photo .big {
    height: 575px;
}

.popular-places-box:hover .popular-places-photo {
    transform: scale(1.2);
    border-radius: 3px;
}

.popular-places-box:hover .popular-places-photo img{
    border-radius: 3px;
}

.popular-places-box .popular-places-photo:before {
    content: "";
    top: 0;
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 9;
    background: linear-gradient(to top,rgb(35 35 37 / 77%) 0%,rgb(35 35 37 / 39%) 35%,rgb(22 22 23 / 23%) 60%,rgba(0,0,0,0) 100%);
    border-radius: 3px;
    opacity: 1;
}

.popular-places-box:hover .popular-places-photo:before{
    background: linear-gradient(to top,rgb(8 8 197 / 79%) 0%,rgb(0 0 179 / 45%) 35%,rgb(255 255 255 / 0%) 60%,rgb(255 255 255 / 0%) 100%);
    opacity: 1;
}

.popular-places-box h3 {
    -webkit-transition: .4s;
    transition: .4s;
    color: #fff !important;
    font-weight: 400;
    font-size: 22px;
    margin-bottom: 5px;
}

.popular-places-box .listings_no {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    font-size: 14px;
    color: #fff;
    background-color: #0c199c;
    padding: 7px 14px 6px;
    font-weight: 500;
    border-radius: 3px;
}

.popular-places-box .listings_no a {
    color: white !important;
}

.popular-places-box p{
    margin-bottom: 0;
    color: #fff;
}

.popular-places-box .ling-section {
    position: absolute;
    bottom: 20px;
    padding-right: 20px;
    padding-left: 20px;
    width: 100%;
}

.popular-places-box h3 a{
    color: #fff;
}

.popular-places-box h3 a:hover{
    color: #fff;
    opacity: 0.9;
}



.popular-places .col-pad2{
    padding: 0 10px 0 20px;
}

.popular-places.pp2 .ling-section {
    position: absolute;
    bottom: 10px;
    width: 95%;
    margin: 0 auto!important;
    padding: 11px 20px 9px;
    background: #fff;
    content: "";
    border-radius: 3px;
}

.popular-places.pp2 h3 {
    -webkit-transition: .4s;
    transition: .4s;
    color: #fff;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: normal;
    margin-bottom: 2px;
}

.popular-places.pp2 .ling{
    padding: 0 10px;
}

.popular-places.pp2 h3{
    margin-bottom: 0;
}

.popular-places.pp2 h3 span{
    font-size: 15px;
    line-height: 24px;
    font-weight: 400;
}

.popular-places.pp2 .popular-places-photo:before {
    background: linear-gradient(to top,rgb(255 255 255 / 0%) 0%,rgb(255 255 255 / 0%) 35%,rgb(255 255 255 / 0%) 60%,rgba(0,0,0,0) 100%);
}

.popular-places.pp2  .popular-places-box h3{
    color: #343434;
}

/** POPULAR PLACES 2 start **/
.popular-places-box-2 {
    position: relative;
    overflow: hidden;
    background: #fff;
    z-index: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 30px!important;
    transition: 0.3s cubic-bezier(0.24, 0.74, 0.58, 1);
    width: 100%!important;
    border-radius: 5px;
}

.popular-places-box-2:before {
    content: "";
    top: 0;
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 0;
    background: linear-gradient(to top,rgb(30 57 133 / 92%) 0%,rgb(38 57 181 / 35%) 35%,rgba(2, 2, 2, 0) 60%,rgba(0,0,0,0) 100%);
    border-radius: 4px 4px 0 0;
    opacity: 1;
}

.popular-places-box-2 h3 {
    -webkit-transition: .4s;
    transition: .4s;
    font-weight: 500;
    font-size: 22px;
    margin: 0 0 12px;
}

.popular-places-box-2 .ling-section {
    position: absolute;
    bottom: 25px;
    padding-right: 30px;
    padding-left: 30px;
    width: 100%;
}

.popular-places-box-2 h3 a{
    color: #fff;
}

.popular-places-box-2 h3 a:hover{
    color: #fff;
    opacity: 0.9;
}

.popular-places-box-2 .read-more-btn {
    display: inline-block;
    position: absolute;
    bottom: 0;
    left: 87px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: 0.6;
    transition: 0.6;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    padding: 9px 24px;
    border-radius: 3px;
    color: #fff;
}

.popular-places-box-2:hover .read-more-btn {
    opacity: 1;
    visibility: visible;
    bottom: 0;
    text-align: left;
}

.popular-places-box-2 .read-more-btn::before {
    content: '';
    position: absolute;
    width: 0;
    -webkit-transition: .5s;
}

.popular-places-box-2 .member-socials {
    display: inline-block;
    -webkit-transition: .4s;
    transition: .4s;
    margin-bottom: 5px;
    color: #fff;
}

.popular-places-box-2:hover h3 {
    -webkit-transform: translateY(-50px);
    transform: translateY(-50px);
}

.popular-places-box-2:hover .member-socials {
    -webkit-transform: translateY(-50px);
    transform: translateY(-50px);
}

.popular-places-box-2 .listings_no {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    font-size: 14px;
    color: #fff;
    background: rgba(0,0,0,0.15);
    padding: 7px 14px 6px;
    font-weight: 500;
    border-radius: 3px;
}

.load-file {
    color: white;
}

.load-file a {
    color: #0a0a0a;
}

#myVideo {
    position: absolute;
    z-index: -999;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
}

/** BG-section **/

.section-bg1 {
    background-image: url("../img/bg/bg01.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.section-bg2 {
    background-image: url("../img/bg/bg02.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.section-bg3 {
    background-image: url("../img/bg/bg03.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.section-bg4 {
    background-image: url("../img/bg/bg04.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.section-bg5 {
    background-image: url("../img/bg/bg05.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.section-bg6 {
    background-image: url("../img/bg/bg06.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.section-bg7 {
    background-image: url("../img/bg/bg07.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.section-bg8 {
    background-image: url("../img/bg/bg08.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.section-bg9 {
    background-image: url("../img/bg/bg09.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.section-bg10 {
    background-image: url("../img/bg/bg10.png");
    background-repeat: no-repeat;
    background-size: cover;
}
.section-bg11 {
    background-image: url("../img/bg/bg11.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.text-scrolling {
    bottom: 40px;
    font-size: 15px;
    right: 60px;
    z-index: 999;
}

.text-scrolling a {
    color: #ffffff;
}

.section-scrolling {
    position: absolute;
}

ul.info-list a {
    color: black !important;
}

.img-slide-2 img {
    height: 450px;
    border-radius: 4px;
    border: white 4px solid;
}

/* ==========================================================================
   Modern Government Pagination / LinkPager Design (skill.md Theme)
   ========================================================================== */
.pagination {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: #FFFFFF !important;
    padding: 6px 12px !important;
    border-radius: 50rem !important;
    border: 1px solid rgba(255, 166, 235, 0.45) !important;
    box-shadow: 0 6px 20px rgba(26, 55, 96, 0.06) !important;
    list-style: none !important;
    margin: 15px auto !important;
    font-family: "Anuphan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.pagination .page-item {
    margin: 0 !important;
    display: inline-flex !important;
}

.pagination .page-item .page-link,
.pagination .page-item > span,
.pagination .page-item > a {
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 12px !important;
    border-radius: 50rem !important;
    border: none !important;
    background: transparent !important;
    color: #1a3760 !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    cursor: pointer !important;
}

.pagination .page-item:not(.active):not(.disabled) .page-link:hover,
.pagination .page-item:not(.active):not(.disabled) > a:hover {
    background: #f0f5fa !important;
    color: #244a7e !important;
    transform: translateY(-2px) !important;
}

.pagination .page-item.active .page-link,
.pagination .page-item.active > span,
.pagination .page-item.active > a {
    background: linear-gradient(135deg, #1a3760 0%, #244a7e 100%) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(26, 55, 96, 0.28) !important;
    transform: scale(1.05) !important;
}

.pagination .page-item.disabled .page-link,
.pagination .page-item.disabled > span,
.pagination .page-item.disabled > a {
    color: #94a3b8 !important;
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.pagination .page-item.prev .page-link,
.pagination .page-item.next .page-link {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   Global Empty State Styles
   ========================================================================== */
.kh-empty-state,
.empty {
    text-align: center;
    padding: 38px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px dashed rgba(255, 166, 235, 0.45);
    border-radius: 16px;
    margin: 15px auto;
    width: 100%;
    color: #244a7e;
    font-family: "Anuphan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kh-empty-icon {
    width: 58px;
    height: 58px;
    background: #f0f5fa;
    color: #ffa6eb;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(255, 166, 235, 0.2);
}

.kh-empty-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a3760;
    margin-bottom: 4px;
}

.kh-empty-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   Global Custom Scrollbar Styling (Theme Pink/Purple)
   ========================================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffa6eb 0%, #244a7e 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #F59E0B 0%, #1a3760 100%);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #ffa6eb #f8fafc;
}

/* ==========================================================================
   FullCalendar Modern Theme Toolbar & Grid
   ========================================================================== */
.kh-calendar-panel .fc {
    font-family: "Anuphan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.kh-calendar-panel .fc-view-container,
.kh-calendar-panel .fc-scroller,
.kh-calendar-panel .fc-day-grid-container {
    height: auto !important;
    overflow: visible !important;
}

.kh-calendar-panel .fc-toolbar {
    margin-bottom: 12px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px dashed rgba(255, 166, 235, 0.35) !important;
}

.kh-calendar-panel .fc-toolbar .fc-left {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    float: none !important;
    flex-shrink: 0 !important;
}

.kh-calendar-panel .fc-toolbar .fc-center {
    display: inline-flex !important;
    align-items: center !important;
    float: none !important;
}

.kh-calendar-panel .fc-toolbar .fc-right {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    float: none !important;
    flex-shrink: 0 !important;
}

.kh-calendar-panel .fc-toolbar h2 {
    font-family: "Anuphan", system-ui, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #1a3760 !important;
    margin: 0 0 0 2px !important;
    letter-spacing: -0.2px !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

.kh-calendar-panel .fc-button {
    background: #f0f5fa !important;
    border: 1px solid rgba(255, 166, 235, 0.4) !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    font-family: "Anuphan", system-ui, sans-serif !important;
    box-shadow: none !important;
    padding: 2px 7px !important;
    color: #1a3760 !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    height: 25px !important;
    min-height: 25px !important;
    text-shadow: none !important;
}

.kh-calendar-panel .fc-button:hover {
    background: #f0f5fa !important;
    border-color: #ffa6eb !important;
    color: #1a3760 !important;
    transform: translateY(-1px) !important;
}

.kh-calendar-panel .fc-prev-button,
.kh-calendar-panel .fc-next-button {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.kh-calendar-panel .fc-button .fc-icon {
    font-size: 0.82rem !important;
    line-height: 1 !important;
    top: 0 !important;
    margin: 0 !important;
}

.kh-calendar-panel .fc-today-button {
    border-radius: 12px !important;
    padding: 2px 8px !important;
    background: #f0f5fa !important;
    border-color: #ffa6eb !important;
    font-weight: 700 !important;
    color: #ffa6eb !important;
}

.kh-calendar-panel .fc-today-button:hover {
    background: #ffa6eb !important;
    color: #FFFFFF !important;
}

.kh-calendar-panel .fc-state-active,
.kh-calendar-panel .fc-button-active {
    background: linear-gradient(135deg, #ffa6eb 0%, #244a7e 100%) !important;
    border-color: #244a7e !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 4px rgba(36, 74, 126, 0.2) !important;
}

.kh-calendar-panel .fc-state-disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Day of Week Headers */
.kh-calendar-panel .fc-head-container {
    border: none !important;
}

.kh-calendar-panel .fc-head table {
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden !important;
}

.kh-calendar-panel .fc-day-header {
    background: linear-gradient(135deg, #f0f5fa 0%, #e8f0fe 100%) !important;
    color: #1a3760 !important;
    padding: 10px 0 !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    font-family: "Anuphan", system-ui, sans-serif !important;
    border: 1px solid rgba(255, 166, 235, 0.25) !important;
    text-align: center !important;
}

.kh-calendar-panel .fc-day-header.fc-sun,
.kh-calendar-panel .fc-day-header.fc-sat {
    color: #2563eb !important;
    background: linear-gradient(135deg, #f0f5fa 0%, #e8f0fe 100%) !important;
}

/* Day Grid & Cells */
.kh-calendar-panel .fc-body table {
    border-collapse: separate !important;
}

.kh-calendar-panel .fc-day-grid-event,
.kh-calendar-panel .fc-day-grid-event > .fc-content,
.kh-calendar-panel .fc-event,
.kh-calendar-panel .fc-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

.kh-calendar-panel .fc-day-grid-row {
    min-height: 52px !important;
}

.kh-calendar-panel .fc-day {
    border-color: rgba(255, 166, 235, 0.20) !important;
    min-height: 52px !important;
    transition: background 0.15s ease !important;
}

.kh-calendar-panel .fc-day:hover {
    background: #f8fafc !important;
}

.kh-calendar-panel .fc-day-top {
    padding: 4px 6px 0 0 !important;
    line-height: 1 !important;
}

.kh-calendar-panel .fc-day-number {
    font-family: "Anuphan", system-ui, sans-serif !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    color: #1a3760 !important;
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 22px !important;
    text-align: center !important;
    border-radius: 50% !important;
}

.kh-calendar-panel .fc-other-month .fc-day-number {
    color: #94a3b8 !important;
    opacity: 0.45 !important;
}

.kh-calendar-panel .fc-today {
    background: #f0f5fa !important;
    border: 1.5px solid #ffa6eb !important;
}

.kh-calendar-panel .fc-today .fc-day-number {
    background: #ffa6eb !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(255, 166, 235, 0.4) !important;
}

.kh-calendar-panel .fc-event {
    background: linear-gradient(135deg, #ffa6eb 0%, #244a7e 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 2px 6px !important;
    margin: 2px 2px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 4px rgba(26, 55, 96, 0.12) !important;
    cursor: pointer !important;
    max-width: 100% !important;
    overflow: hidden !important;
    transition: transform 0.15s ease !important;
}

.kh-calendar-panel .fc-event:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(26, 55, 96, 0.2) !important;
}

.kh-calendar-panel .fc-more {
    font-size: 0.68rem !important;
    color: #ffa6eb !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 1px 6px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    background: #f0f5fa;
    border-radius: 12px;
    border: 1px solid rgba(255, 166, 235, 0.45);
    line-height: 1.25 !important;
    transition: all 0.2s ease;
}

.kh-calendar-panel .fc-more:hover {
    color: #FFFFFF !important;
    background: #ffa6eb !important;
    border-color: #ffa6eb !important;
}

/* ==========================================================================
   Spacious Modern UI for Calendar Pop-up Modal
   ========================================================================== */
body .fc-popover,
body .fc-more-popover,
.fc-popover,
.fc-more-popover,
div.fc-more-popover,
.fc-unthemed .fc-popover {
    position: absolute !important;
    display: flex !important;
    flex-direction: column !important;
    background: #FFFFFF !important;
    border: 2px solid #ffa6eb !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(26, 55, 96, 0.25) !important;
    z-index: 99999 !important;
    width: 380px !important;
    min-width: 360px !important;
    max-width: 95vw !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

body .fc-popover .fc-header,
body .fc-more-popover .fc-header,
.fc-popover .fc-header,
div.fc-more-popover .fc-header,
.fc-unthemed .fc-popover .fc-header {
    order: 1 !important;
    width: 100% !important;
    min-width: 100% !important;
    background: linear-gradient(135deg, #f0f5fa 0%, #f0f5fa 100%) !important;
    border-bottom: 1.5px solid #f0f5fa !important;
    padding: 13px 18px !important;
    margin: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    float: none !important;
    clear: both !important;
}

body .fc-popover .fc-header .fc-title,
body .fc-more-popover .fc-header .fc-title,
.fc-popover .fc-header .fc-title,
.fc-ltr .fc-popover .fc-header .fc-title {
    order: 1 !important;
    font-family: "Anuphan", system-ui, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #1a3760 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    float: none !important;
}

body .fc-popover .fc-header .fc-title::before,
body .fc-more-popover .fc-header .fc-title::before {
    content: "\f073";
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    color: #ffa6eb !important;
    font-size: 1.05rem !important;
}

body .fc-popover .fc-header .fc-close,
body .fc-more-popover .fc-header .fc-close,
.fc-popover .fc-header .fc-close,
.fc-ltr .fc-popover .fc-header .fc-close {
    order: 2 !important;
    color: #64748b !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(255, 166, 235, 0.3) !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

body .fc-popover .fc-header .fc-close:hover,
body .fc-more-popover .fc-header .fc-close:hover,
.fc-popover .fc-header .fc-close:hover {
    background: #FF4D4F !important;
    border-color: #FF4D4F !important;
    color: #FFFFFF !important;
    transform: rotate(90deg) scale(1.1) !important;
}

body .fc-popover .fc-header .fc-clear,
body .fc-more-popover .fc-header .fc-clear {
    display: none !important;
}

body .fc-popover .fc-body,
body .fc-more-popover .fc-body,
.fc-popover .fc-body,
div.fc-more-popover .fc-body,
.fc-unthemed .fc-popover .fc-body {
    order: 2 !important;
    width: 100% !important;
    min-width: 100% !important;
    display: block !important;
    background: #FFFFFF !important;
    padding: 12px 14px !important;
    max-height: 230px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 0 0 18px 18px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #ffa6eb rgba(255, 166, 235, 0.12) !important;
    float: none !important;
    clear: both !important;
}

body .fc-more-popover .fc-event-container,
.fc-popover .fc-event-container {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    float: none !important;
    width: 100% !important;
}

body .fc-popover .fc-body::-webkit-scrollbar,
body .fc-more-popover .fc-body::-webkit-scrollbar,
.fc-popover .fc-body::-webkit-scrollbar {
    width: 5px !important;
}

body .fc-popover .fc-body::-webkit-scrollbar-track,
body .fc-more-popover .fc-body::-webkit-scrollbar-track,
.fc-popover .fc-body::-webkit-scrollbar-track {
    background: rgba(255, 166, 235, 0.08) !important;
    border-radius: 10px !important;
}

body .fc-popover .fc-body::-webkit-scrollbar-thumb,
body .fc-more-popover .fc-body::-webkit-scrollbar-thumb,
.fc-popover .fc-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffa6eb 0%, #244a7e 100%) !important;
    border-radius: 10px !important;
}

body .fc-popover .fc-event,
body .fc-more-popover .fc-event,
body .fc-popover a.fc-day-grid-event,
body .fc-more-popover a.fc-day-grid-event,
.fc-popover .fc-event {
    background: linear-gradient(135deg, #FFFFFF 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(255, 166, 235, 0.35) !important;
    border-left: 4px solid #ffa6eb !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    display: block !important;
    box-shadow: 0 2px 8px rgba(26, 55, 96, 0.04) !important;
    transition: all 0.22s ease !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    float: none !important;
    width: 100% !important;
}

body .fc-popover .fc-event:hover,
body .fc-more-popover .fc-event:hover,
body .fc-popover a.fc-day-grid-event:hover,
body .fc-more-popover a.fc-day-grid-event:hover,
.fc-popover .fc-event:hover {
    transform: translateY(-2px) !important;
    border-left-color: #1a3760 !important;
    background: #f0f5fa !important;
    box-shadow: 0 6px 16px rgba(26, 55, 96, 0.12) !important;
}

body .fc-popover .fc-event .fc-content,
body .fc-more-popover .fc-event .fc-content,
body .fc-popover a.fc-day-grid-event .fc-content,
body .fc-more-popover a.fc-day-grid-event .fc-content,
.fc-popover .fc-event .fc-content {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
}

body .fc-popover .fc-event .fc-title,
body .fc-more-popover .fc-event .fc-title,
body .fc-popover a.fc-day-grid-event .fc-title,
body .fc-more-popover a.fc-day-grid-event .fc-title,
.fc-popover .fc-event .fc-title {
    font-family: "Anuphan", system-ui, sans-serif !important;
    font-size: 0.90rem !important;
    font-weight: 600 !important;
    color: #1a3760 !important;
    line-height: 1.6 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
    float: none !important;
}

body .fc-popover .fc-event .fc-title::before,
body .fc-more-popover .fc-event .fc-title::before {
    content: none !important;
}

/* ==========================================================================
   E-Book & Digital Library Section Redesign (kh-ebook-section)
   ========================================================================== */
.kh-ebook-section {
    position: relative;
    padding: 65px 0 75px;
    background: linear-gradient(180deg, #f8fafc 0%, #FFFFFF 100%) !important;
    font-family: "Anuphan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    border-top: 1px dashed rgba(255, 166, 235, 0.35);
    width: 100%;
}

.kh-ebook-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.kh-ebook-header {
    margin-bottom: 35px;
}

.kh-ebook-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f5fa;
    border: 1px solid rgba(255, 166, 235, 0.5);
    border-radius: 50rem;
    padding: 6px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffa6eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.kh-ebook-badge i {
    color: #ffa6eb;
    font-size: 0.95rem;
}

.kh-ebook-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1a3760;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.kh-ebook-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Category Tabs */
.kh-ebook-tabs-wrap {
    margin-bottom: 35px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.kh-ebook-tabs {
    background: #FFFFFF;
    border: 1px solid rgba(255, 166, 235, 0.35);
    border-radius: 50rem;
    padding: 6px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    box-shadow: 0 4px 18px rgba(26, 55, 96, 0.05);
}

.kh-ebook-tabs .nav-link {
    border-radius: 50rem !important;
    padding: 8px 20px !important;
    font-size: 0.90rem !important;
    font-weight: 600 !important;
    color: #1a3760 !important;
    border: none !important;
    background: transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.kh-ebook-tabs .nav-link:hover {
    color: #ffa6eb !important;
    background: #f0f5fa !important;
}

.kh-ebook-tabs .nav-link.active {
    background: linear-gradient(135deg, #1a3760 0%, #244a7e 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(26, 55, 96, 0.22) !important;
}

.kh-ebook-tabs .nav-link.active i {
    color: #F59E0B !important;
}

/* E-Book Card */
.kh-ebook-card {
    background: #FFFFFF;
    border: 1px solid rgba(255, 166, 235, 0.3);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(26, 55, 96, 0.06);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kh-ebook-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(26, 55, 96, 0.14);
    border-color: #ffa6eb;
}

.kh-ebook-cover-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #F8F2FA;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.kh-ebook-cover-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.kh-ebook-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.kh-ebook-card:hover .kh-ebook-cover-img {
    transform: scale(1.05);
}

.kh-ebook-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffa6eb;
    background: linear-gradient(135deg, #f0f5fa 0%, #e8f0fe 100%);
}

.kh-ebook-cover-placeholder i {
    font-size: 2.5rem;
}

.kh-ebook-cover-placeholder span {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* 3D Book Spine */
.kh-ebook-spine {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 14px;
    background: linear-gradient(90deg, rgba(0,0,0,0.25) 0%, rgba(255,255,255,0.2) 50%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

/* Type Badge */
.kh-ebook-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(26, 55, 96, 0.85);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-size: 0.70rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Hover Overlay */
.kh-ebook-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 55, 96, 0.65);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 12px;
}

.kh-ebook-card:hover .kh-ebook-overlay {
    opacity: 1;
}

.kh-ebook-read-btn {
    background: linear-gradient(135deg, #ffa6eb 0%, #F59E0B 100%);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transform: translateY(10px);
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.kh-ebook-card:hover .kh-ebook-read-btn {
    transform: translateY(0);
}

/* Info */
.kh-ebook-info {
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.kh-ebook-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kh-ebook-item-title a {
    color: #1a3760;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kh-ebook-item-title a:hover {
    color: #ffa6eb;
}

.kh-ebook-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 166, 235, 0.3);
}

.kh-ebook-action-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffa6eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.kh-ebook-action-link:hover {
    color: #1a3760;
    transform: translateX(2px);
}

/* View All Button */
.kh-ebook-all-btn {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    color: #1a3760;
    border: 1.5px solid rgba(255, 166, 235, 0.5);
    border-radius: 50rem;
    padding: 10px 28px;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(26, 55, 96, 0.06);
    transition: all 0.25s ease;
    text-decoration: none;
}

.kh-ebook-all-btn:hover {
    background: linear-gradient(135deg, #ffa6eb 0%, #244a7e 100%);
    color: #FFFFFF !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 55, 96, 0.18);
}

/* Empty State */
.kh-ebook-empty {
    text-align: center;
    padding: 45px 20px;
    background: #FFFFFF;
    border: 1px dashed rgba(255, 166, 235, 0.4);
    border-radius: 20px;
    max-width: 500px;
    margin: 20px auto;
}

.kh-ebook-empty-icon {
    width: 60px;
    height: 60px;
    background: #f0f5fa;
    color: #ffa6eb;
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 14px;
}

.kh-ebook-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3760;
    margin-bottom: 4px;
}

.kh-ebook-empty-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   Government Links & Partner Network Section (kh-gov-links-section)
   ========================================================================== */
.kh-gov-links-section {
    position: relative;
    padding: 65px 0 75px;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url("../img/bg/bg_bulesky.png") center / 100% 100% no-repeat #fff !important;
    font-family: "Anuphan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    border-top: 1px dashed rgba(255, 166, 235, 0.35);
    width: 100%;
}

.kh-links-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Panels */
.kh-links-panel,
.kh-partner-panel {
    background: #FFFFFF;
    border: 1px solid rgba(255, 166, 235, 0.35);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 6px 24px rgba(26, 55, 96, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.kh-partner-badge {
    background: #f0f5fa;
    color: #ffa6eb;
    border: 1px solid rgba(255, 166, 235, 0.4);
    border-radius: 50rem;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Modern Accordion */
.kh-links-accordion .accordion-item {
    background: #FFFFFF;
    border: 1px solid rgba(255, 166, 235, 0.25);
    border-radius: 16px !important;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.kh-links-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.kh-links-accordion .accordion-button {
    background: #f8fafc;
    color: #1a3760;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: "Anuphan", system-ui, sans-serif !important;
    padding: 14px 18px;
    border-radius: 16px !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
}

.kh-links-accordion .accordion-button:not(.collapsed) {
    background: #f0f5fa;
    color: #1a3760;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: inset 0 -1px 0 rgba(255, 166, 235, 0.25) !important;
}

.kh-links-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23DE98BC'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.kh-accordion-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid rgba(255, 166, 235, 0.3);
    color: #ffa6eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.kh-links-accordion .accordion-button:not(.collapsed) .kh-accordion-icon {
    background: linear-gradient(135deg, #ffa6eb 0%, #244a7e 100%);
    color: #FFFFFF;
    border-color: transparent;
}

/* Micro Link Cards */
.kh-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1px solid rgba(255, 166, 235, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    color: #1a3760 !important;
    text-decoration: none !important;
    font-size: 0.86rem;
    font-weight: 600;
    transition: all 0.25s ease;
    height: 100%;
}

.kh-link-card:hover {
    background: #f0f5fa;
    border-color: #ffa6eb;
    color: #ffa6eb !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 166, 235, 0.15);
}

.kh-link-card i {
    color: #ffa6eb;
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.kh-link-card:hover i {
    color: #1a3760;
    transform: translateX(3px);
}

/* Partner Banner Grid */
.kh-partner-grid-body {
    flex-grow: 1;
    width: 100%;
}

.kh-partner-banner-item {
    display: block;
    background: #FFFFFF;
    border: 1px solid rgba(255, 166, 235, 0.3);
    border-radius: 12px;
    overflow: hidden;
    padding: 6px;
    box-shadow: 0 3px 10px rgba(26, 55, 96, 0.04);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.kh-partner-banner-item:hover {
    transform: translateY(-4px);
    border-color: #ffa6eb;
    box-shadow: 0 8px 20px rgba(26, 55, 96, 0.12);
}

.kh-partner-banner-item img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.kh-partner-banner-item:hover img {
    transform: scale(1.03);
}

/* Modern Scroll To Top Button (Kudmuangharm SAO Theme) */
.kh-scroll-top-btn {
    position: fixed !important;
    right: 29px !important;
    bottom: 104px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ffa6eb 0%, #244a7e 45%, #1a3760 100%) !important;
    border: 2.5px solid #e2e8f0 !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(26, 55, 96, 0.4), 0 0 10px rgba(243, 204, 224, 0.5) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 9999 !important;
    outline: none !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.kh-scroll-top-btn i {
    color: #FFFFFF !important;
    font-size: 1.15rem !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.kh-scroll-top-btn:hover {
    background: linear-gradient(135deg, #FFE7A3 0%, #ffa6eb 45%, #1a3760 100%) !important;
    border-color: #FFE7A3 !important;
    color: #1a3760 !important;
    transform: translateY(-4px) scale(1.08) !important;
    box-shadow: 0 8px 25px rgba(26, 55, 96, 0.5), 0 0 16px rgba(255, 231, 163, 0.6) !important;
}

.kh-scroll-top-btn:hover i {
    color: #1a3760 !important;
    transform: translateY(-2px) !important;
}

.kh-scroll-top-btn:active {
    transform: translateY(0) scale(0.95) !important;
}

@media (max-width: 768px) {
    .kh-scroll-top-btn {
        right: 20px !important;
        bottom: 96px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 1.05rem !important;
    }
}

/* Hide legacy template back-to-top button */
.back-to-top {
    display: none !important;
}

/* ==========================================================================
   Modern Floating Messenger & Chat Widget (Kudmuangharm SAO Theme)
   ========================================================================== */
.kh-floating-chat-widget {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1040;
    font-family: "Anuphan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.kh-chat-action-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    position: relative;
}

/* Floating Speech Bubble Tooltip */
.kh-chat-speech-bubble {
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8FC 100%);
    border: 1.5px solid rgba(255, 166, 235, 0.5);
    border-radius: 16px;
    padding: 8px 16px;
    box-shadow: 0 8px 24px rgba(26, 55, 96, 0.12), 0 2px 6px rgba(255, 166, 235, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: khChatBubbleFloat 3.5s ease-in-out infinite;
    backdrop-filter: blur(8px);
}

.kh-chat-bubble-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a3760;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 5px;
}

.kh-chat-bubble-title i {
    color: #ffa6eb;
    font-size: 0.88rem;
}

.kh-chat-bubble-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
    margin-top: 2px;
}

/* Speech Bubble Arrow */
.kh-chat-bubble-arrow {
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #FFF8FC;
    border-top: 1.5px solid rgba(255, 166, 235, 0.5);
    border-right: 1.5px solid rgba(255, 166, 235, 0.5);
}

/* Floating Circular Action Button */
.kh-chat-circle-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffa6eb 0%, #1e3a8a 50%, #1a3760 100%);
    box-shadow: 0 8px 24px rgba(26, 55, 96, 0.28), 0 0 0 3px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* Radar Ripple Wave Animation */
.kh-chat-radar-ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ffa6eb;
    animation: khChatRadarPulse 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none;
}

.kh-chat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.kh-chat-icon {
    font-size: 1.95rem;
    color: #FFFFFF;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: khChatIconPulse 3s ease-in-out infinite;
}

/* Online Indicator Badge */
.kh-chat-online-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #10B981;
    border: 2.5px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    animation: khChatOnlineDot 1.8s ease-in-out infinite;
}

/* Hover & Interactive States */
.kh-chat-action-link:hover .kh-chat-circle-btn {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 14px 32px rgba(26, 55, 96, 0.38), 0 0 20px rgba(255, 166, 235, 0.55), 0 0 0 4px rgba(255, 255, 255, 1);
}

.kh-chat-action-link:hover .kh-chat-icon-wrap {
    transform: scale(1.12) rotate(6deg);
}

.kh-chat-action-link:hover .kh-chat-speech-bubble {
    transform: translateY(-3px) scale(1.03);
    border-color: #ffa6eb;
    box-shadow: 0 12px 28px rgba(26, 55, 96, 0.2);
}

.kh-chat-action-link:hover .kh-chat-bubble-title {
    color: #ffa6eb;
}

/* Keyframes Animations */
@keyframes khChatBubbleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes khChatRadarPulse {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    60% {
        transform: scale(1.45);
        opacity: 0.25;
    }
    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

@keyframes khChatIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes khChatOnlineDot {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
}

/* Responsive */
@media (max-width: 575.98px) {
    .kh-floating-chat-widget {
        right: 16px;
        bottom: 20px;
    }

    .kh-chat-circle-btn {
        width: 52px;
        height: 52px;
    }

    .kh-chat-icon {
        font-size: 1.65rem;
    }

    .kh-chat-speech-bubble {
        padding: 6px 12px;
    }

    .kh-chat-bubble-title {
        font-size: 0.82rem;
    }

    .kh-chat-bubble-sub {
        display: none;
    }
}

/* ========================================================
   MODERN THAI GOVERNMENT NAVBAR & MOBILE DRAWER (BS5)
   ======================================================== */
.main-header {
    position: relative;
    z-index: 1040;
}

.kh-gov-navbar-wrap {
    background: linear-gradient(135deg, #1a3760 0%, #0e223f 100%);
    border-top: 1px solid rgba(255, 166, 235, 0.35);
    border-bottom: 3px solid #ffa6eb;
    box-shadow: 0 8px 24px rgba(26, 55, 96, 0.2);
    position: relative;
    z-index: 1050;
    transition: all 0.3s ease;
}

.kh-gov-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    min-height: 68px;
    margin: 0;
    flex-wrap: nowrap;
}

.kh-navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    padding: 2px 0;
    padding-left: 85px; /* เว้นระยะชิดซ้ายพอดีหลบริบบิ้นดำ */
    flex-shrink: 0;
}

.kh-brand-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 2px 0;
    flex-shrink: 0;
}

.kh-logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(255, 231, 163, 0) 0%, #FFE7A3 25%, #FFB347 50%, #ffa6eb 75%, rgba(255, 231, 163, 0) 100%);
    animation: khRingRotate 3s linear infinite;
    z-index: 0;
    filter: drop-shadow(0 0 4px rgba(255, 231, 163, 0.6));
    pointer-events: none;
}

.kh-logo-ring::before {
    content: "";
    position: absolute;
    inset: 2.5px;
    background: #1a3760;
    border-radius: 50%;
}

@keyframes khRingRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.kh-brand-logo {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
    /* Keep downsampling on the image itself; filtered tiny bitmaps can alias. */
    image-rendering: auto;
    filter: none;
}

/* Mobile & Drawer Brand Logo Constraints */
.kh-mobile-bar .kh-brand-logo-wrap,
.kh-drawer-header .kh-brand-logo-wrap {
    width: 48px;
    height: 48px;
}

.kh-mobile-bar .kh-brand-logo,
.kh-drawer-header .kh-brand-logo {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
}

.kh-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    margin-left: 2px;
}

.kh-brand-title-th {
    font-family: "Anuphan", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.kh-brand-title-en {
    font-family: "Anuphan", sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: #FFE7A3;
    letter-spacing: 0.3px;
    white-space: nowrap;
    opacity: 0.95;
    transition: color 0.2s ease;
}

.kh-navbar-brand:hover .kh-brand-title-th {
    color: #FFE7A3;
}

.kh-navbar-brand:hover .kh-brand-title-en {
    color: #FFFFFF;
}

.kh-gov-nav {
    display: flex;
    align-items: stretch;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.kh-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1060;
}

.kh-nav-item:hover,
.kh-nav-item:focus-within {
    z-index: 1150 !important;
}

.kh-nav-item.has-mega,
.kh-nav-item:has(.kh-mega-menu) {
    position: static;
}

.kh-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 13px;
    color: #FFFFFF !important;
    font-family: "Anuphan", sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.22s ease;
    border-radius: 8px;
    margin: 2px 1px;
    white-space: nowrap;
    cursor: pointer;
}

.kh-nav-link i.fa-solid,
.kh-nav-link i.fa-regular {
    color: #ffa6eb;
    font-size: 0.95rem;
    transition: all 0.22s ease;
}

.kh-nav-link .nav-arrow {
    font-size: 0.72rem;
    margin-left: 3px;
    color: #e8f0fe;
    transition: transform 0.25s ease;
}

.kh-nav-link:hover,
.kh-nav-item:hover > .kh-nav-link,
.kh-nav-item.is-open > .kh-nav-link {
    background: rgba(255, 166, 235, 0.22);
    color: #FFE7A3 !important;
}

.kh-nav-link:hover i.fa-solid,
.kh-nav-link:hover i.fa-regular,
.kh-nav-item:hover > .kh-nav-link i,
.kh-nav-item.is-open > .kh-nav-link i {
    color: #FFE7A3;
}

.kh-nav-item:hover > .kh-nav-link .nav-arrow,
.kh-nav-item.is-open > .kh-nav-link .nav-arrow {
    transform: rotate(180deg);
    color: #FFE7A3;
}

.kh-nav-link.active {
    background: #ffa6eb;
    color: #1a3760 !important;
    font-weight: 600;
}

.kh-nav-link.active i {
    color: #1a3760 !important;
}

.kh-nav-link.btn-backend {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 166, 235, 0.45);
    border-radius: 50rem;
    padding: 8px 16px;
}

.kh-nav-link.btn-backend:hover {
    background: #ffa6eb;
    color: #1a3760 !important;
    border-color: #ffa6eb;
}

.kh-nav-link.btn-backend:hover i {
    color: #1a3760 !important;
}

/* Dropdown Menu (Desktop) */
.kh-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #FFFFFF;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 36px rgba(26, 55, 96, 0.18);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.22s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 0.22s cubic-bezier(0.165, 0.84, 0.44, 1), 
                visibility 0.22s ease;
    z-index: 1200 !important;
}

/* Invisible Hover Safety Bridge to prevent accidental hover loss */
.kh-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 24px;
    background: transparent;
    display: block;
    z-index: 10;
}

.kh-dropdown-menu.dropdown-right {
    left: auto;
    right: 0;
}

.kh-nav-item:hover > .kh-dropdown-menu,
.kh-nav-item.is-open > .kh-dropdown-menu,
.kh-dropdown-menu:hover,
.kh-dropdown-menu.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.kh-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-family: "Anuphan", sans-serif;
    font-size: 0.89rem;
    color: #0f172a !important;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.18s ease;
    white-space: normal;
}

.kh-dropdown-item i {
    color: #ffa6eb;
    font-size: 0.78rem;
    transition: transform 0.18s ease, color 0.18s ease;
}

.kh-dropdown-item:hover {
    background: #f8fafc;
    color: #1a3760 !important;
    font-weight: 600;
    padding-left: 18px;
}

.kh-dropdown-item:hover i {
    color: #2563eb;
    transform: translateX(3px);
}

/* Mega Menu (Desktop) */
.kh-mega-menu {
    position: absolute;
    top: 100%;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(6px) !important;
    width: calc(100vw - 48px) !important;
    max-width: 1260px;
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(26, 55, 96, 0.22);
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 0.22s cubic-bezier(0.165, 0.84, 0.44, 1), 
                visibility 0.22s ease;
    z-index: 1200 !important;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
    box-sizing: border-box;
}

/* Invisible Hover Safety Bridge covering the gap between navbar and mega-menu */
.kh-mega-menu::before {
    content: "";
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 24px;
    background: transparent;
    display: block;
    z-index: 10;
}

.kh-mega-menu.kh-mega-menu-sm {
    max-width: 1000px;
}

.kh-mega-menu::-webkit-scrollbar {
    width: 6px;
}
.kh-mega-menu::-webkit-scrollbar-track {
    background: #f0f5fa;
    border-radius: 10px;
}
.kh-mega-menu::-webkit-scrollbar-thumb {
    background: #ffa6eb;
    border-radius: 10px;
}

.kh-nav-item:hover > .kh-mega-menu,
.kh-nav-item.is-open > .kh-mega-menu,
.kh-mega-menu:hover,
.kh-mega-menu.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

.kh-mega-grid {
    display: grid;
    gap: 16px;
}

.kh-mega-grid-5 {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
}

.kh-mega-grid-4 {
    grid-template-columns: repeat(4, minmax(210px, 1fr));
}

.kh-mega-grid-3 {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

@media (max-width: 1400px) {
    .kh-mega-menu {
        max-width: 1140px;
        padding: 18px;
    }
    .kh-mega-menu.kh-mega-menu-sm {
        max-width: 960px;
    }
    .kh-mega-grid-5 {
        grid-template-columns: repeat(5, minmax(170px, 1fr));
        gap: 12px;
    }
    .kh-mega-grid-4 {
        grid-template-columns: repeat(4, minmax(190px, 1fr));
        gap: 12px;
    }
    .kh-mega-grid-3 {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 1200px) {
    .kh-mega-menu {
        max-width: 960px;
        padding: 16px;
    }
    .kh-mega-menu.kh-mega-menu-sm {
        max-width: 900px;
    }
    .kh-mega-grid-5 {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
        gap: 10px;
    }
    .kh-mega-grid-4 {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        gap: 10px;
    }
    .kh-mega-grid-3 {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
        gap: 10px;
    }
}

.kh-mega-card {
    background: #FFFDFE;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.2s ease;
}

.kh-mega-card:hover {
    background: #FFFFFF;
    border-color: #ffa6eb;
    box-shadow: 0 8px 20px rgba(255, 166, 235, 0.2);
}

.kh-mega-heading {
    font-family: "Anuphan", sans-serif;
    font-size: 0.93rem;
    font-weight: 700;
    color: #1a3760;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 2px solid #e8f0fe;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kh-mega-heading i {
    color: #2563eb;
    font-size: 1rem;
}

.kh-mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kh-mega-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Anuphan", sans-serif;
    font-size: 0.86rem;
    color: #1e293b !important;
    text-decoration: none !important;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.18s ease;
    line-height: 1.45;
}

.kh-mega-links a i {
    color: #ffa6eb;
    font-size: 0.72rem;
    transition: transform 0.18s ease;
}

.kh-mega-links a:hover {
    background: #f8fafc;
    color: #1a3760 !important;
    font-weight: 600;
    padding-left: 12px;
}

.kh-mega-links a:hover i {
    color: #2563eb;
    transform: translateX(3px);
}

/* ========================================================
   MOBILE HEADER BAR & MOBILE DRAWER (BS5)
   ======================================================== */
.kh-mobile-bar {
    display: none;
    background: linear-gradient(135deg, #1a3760 0%, #0e223f 100%);
    border-bottom: 3px solid #ffa6eb;
    padding: 8px 12px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.kh-mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    min-width: 0;
    flex: 1 1 auto;
}

.kh-mobile-brand .kh-brand-text,
.kh-drawer-header .kh-brand-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    margin-left: 2px;
}

.kh-mobile-brand .kh-brand-title-th,
.kh-drawer-header .kh-brand-title-th {
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.kh-mobile-brand .kh-brand-title-en,
.kh-drawer-header .kh-brand-title-en {
    font-size: 0.62rem;
    font-weight: 400;
    color: #FFE7A3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.kh-mobile-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.kh-mobile-btn-call {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 166, 235, 0.45);
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.kh-mobile-btn-call:hover {
    background: #ffa6eb;
    color: #1a3760 !important;
}

.kh-mobile-toggle-btn {
    background: linear-gradient(135deg, #ffa6eb 0%, #2563eb 100%);
    color: #1a3760;
    border: none;
    border-radius: 50rem;
    padding: 6px 12px;
    font-family: "Anuphan", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255, 166, 235, 0.4);
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.kh-mobile-toggle-btn:hover,
.kh-mobile-toggle-btn:active {
    background: #FFE7A3;
    color: #1a3760;
    transform: scale(1.03);
}

/* Mobile Drawer Overlay & Backdrop */
.kh-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 34, 63, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99990 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

body.kh-drawer-open {
    overflow: hidden;
}

body.kh-drawer-open .kh-drawer-backdrop {
    opacity: 1;
    visibility: visible;
}

.kh-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 88vw;
    background: #FFFFFF;
    z-index: 100000 !important;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -8px 0 32px rgba(26, 55, 96, 0.28);
    display: flex;
    flex-direction: column;
}

body.kh-drawer-open .kh-mobile-drawer {
    transform: translateX(0);
}

/* Hide Floating Widgets & Scroll-to-top when Mobile Drawer is Open to prevent overlap */
body.kh-drawer-open .kh-scroll-top-btn,
body.kh-drawer-open .kh-floating-chat-widget,
body.kh-drawer-open .color-palate {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(20px) scale(0.8) !important;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease !important;
}

/* Lower Ribbon and Topbar when Drawer is Open */
body.kh-drawer-open .black-ribbon {
    z-index: 1000 !important;
}

body.kh-drawer-open .gov-topbar-modern {
    z-index: 1000 !important;
}

.kh-drawer-header {
    background: linear-gradient(135deg, #1a3760 0%, #244a7e 100%);
    color: #FFFFFF;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 3px solid #ffa6eb;
    box-sizing: border-box;
}

.kh-drawer-header > div.d-flex {
    min-width: 0;
    flex: 1 1 auto;
}

.kh-drawer-close-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 166, 235, 0.4);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.kh-drawer-close-btn:hover {
    background: #ffa6eb;
    color: #1a3760;
}

/* Quick Actions in Mobile Drawer */
.kh-drawer-quick-actions {
    background: #f0f5fa;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.kh-drawer-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    background: #FFFFFF;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #1a3760 !important;
    text-decoration: none !important;
    font-family: "Anuphan", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.kh-drawer-quick-btn i {
    font-size: 1rem;
    color: #ffa6eb;
}

.kh-drawer-quick-btn:hover {
    background: #ffa6eb;
    border-color: #ffa6eb;
    color: #1a3760 !important;
}

.kh-drawer-quick-btn:hover i {
    color: #1a3760;
}

/* Mobile Drawer Body & Accordions */
.kh-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.kh-drawer-body::-webkit-scrollbar {
    width: 5px;
}
.kh-drawer-body::-webkit-scrollbar-thumb {
    background: #ffa6eb;
    border-radius: 8px;
}

.kh-mob-item {
    border-bottom: 1px solid #f0f5fa;
}

.kh-mob-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    font-family: "Anuphan", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a3760 !important;
    text-decoration: none !important;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kh-mob-link:hover {
    background: #f8fafc;
    color: #2563eb !important;
}

.kh-mob-link.is-active {
    background: #f0f5fa;
    color: #1a3760 !important;
}

.kh-mob-link.is-active .kh-mob-arrow {
    transform: rotate(180deg);
    color: #2563eb;
}

.kh-mob-icon-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.kh-mob-icon-wrap i {
    width: 22px;
    text-align: center;
    color: #ffa6eb;
    font-size: 0.95rem;
}

.kh-mob-arrow {
    font-size: 0.78rem;
    color: #64748b;
    transition: transform 0.25s ease;
}

.kh-mob-submenu {
    display: none;
    background: #f0f5fa;
    padding: 8px 14px 12px 14px;
    border-top: 1px solid #e2e8f0;
}

.kh-mob-sub-group-title {
    font-family: "Anuphan", sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    color: #244a7e;
    padding: 6px 8px 4px 8px;
    margin-top: 6px;
    border-bottom: 1px dashed #ffa6eb;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kh-mob-sub-group-title i {
    color: #ffa6eb;
    font-size: 0.8rem;
}

.kh-mob-sub-links {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kh-mob-sub-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-family: "Anuphan", sans-serif;
    font-size: 0.86rem;
    color: #1e293b !important;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.18s ease;
    line-height: 1.4;
}

.kh-mob-sub-links a i {
    color: #ffa6eb;
    font-size: 0.72rem;
    transition: transform 0.18s ease;
}

.kh-mob-sub-links a:hover {
    background: #e8f0fe;
    color: #1a3760 !important;
    font-weight: 600;
    padding-left: 14px;
}

.kh-mob-sub-links a:hover i {
    color: #1a3760;
    transform: translateX(2px);
}

/* Mobile Drawer Footer */
.kh-drawer-footer {
    background: #f0f5fa;
    border-top: 1px solid #e2e8f0;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kh-drawer-footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-family: "Anuphan", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.kh-drawer-footer-btn.btn-call {
    background: #1a3760;
    color: #FFFFFF !important;
}

.kh-drawer-footer-btn.btn-call:hover {
    background: #244a7e;
    color: #FFFFFF !important;
}

.kh-drawer-footer-btn.btn-login {
    background: #ffa6eb;
    color: #1a3760 !important;
}

.kh-drawer-footer-btn.btn-login:hover {
    background: #FFE7A3;
    color: #1a3760 !important;
}

/* Breakpoint rules */
@media (max-width: 991.98px) {
    .kh-gov-navbar-wrap {
        display: none !important;
    }
    .kh-mobile-bar {
        display: flex !important;
    }
    .main-header .mobile-nav-toggler,
    .main-header .sticky-header,
    .main-header .mobile-menu {
        display: none !important;
    }
}

/* Floating Complaints Popups Layering Fix */
.floating-complaints-container {
    position: fixed !important;
    z-index: 50 !important;
}

.floating-complaint-card {
    z-index: 50 !important;
}

/* ==========================================================================
   Modern PDPA & Cookie Consent Banner (Kudmuangharm SAO Theme)
   ========================================================================== */
.kh-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: auto;
    max-width: 680px;
    width: calc(100vw - 48px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 166, 235, 0.55);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(26, 55, 96, 0.22), 0 0 20px rgba(255, 166, 235, 0.25);
    padding: 20px 24px;
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transform: translateY(35px) scale(0.96);
    transition: opacity 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.35s ease;
    font-family: "Anuphan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    box-sizing: border-box;
}

.kh-cookie-banner.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.kh-cookie-container {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.kh-cookie-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffa6eb 0%, #244a7e 50%, #1a3760 100%);
    color: #FFE7A3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 16px rgba(26, 55, 96, 0.25);
}

.kh-cookie-content {
    flex: 1;
}

.kh-cookie-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.kh-cookie-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1a3760;
    margin: 0;
    line-height: 1.3;
}

.kh-cookie-badge {
    background: #f8fafc;
    color: #1a3760;
    border: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 50rem;
}

.kh-cookie-desc {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.55;
    margin: 0 0 14px 0;
}

.kh-cookie-link {
    color: #1a3760 !important;
    font-weight: 600;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}

.kh-cookie-link:hover {
    color: #1a3760 !important;
}

.kh-cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-kh-cookie {
    font-family: "Anuphan", sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.22s ease;
    border: none;
    outline: none;
}

.btn-kh-cookie-accept {
    background: linear-gradient(135deg, #ffa6eb 0%, #244a7e 50%, #1a3760 100%);
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(26, 55, 96, 0.25);
}

.btn-kh-cookie-accept:hover {
    background: linear-gradient(135deg, #FFE7A3 0%, #ffa6eb 50%, #1a3760 100%);
    color: #1a3760 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 55, 96, 0.35);
}

.btn-kh-cookie-necessary {
    background: #f8fafc;
    color: #244a7e !important;
    border: 1px solid #e2e8f0;
}

.btn-kh-cookie-necessary:hover {
    background: #F8E3EE;
    color: #1a3760 !important;
    border-color: #ffa6eb;
}

@media (max-width: 768px) {
    .kh-cookie-banner {
        bottom: 12px;
        left: 12px;
        width: calc(100vw - 24px);
        padding: 16px;
        border-radius: 16px;
    }
    .kh-cookie-container {
        flex-direction: column;
        gap: 12px;
    }
    .kh-cookie-icon-box {
        display: none;
    }
    .kh-cookie-actions {
        width: 100%;
        justify-content: stretch;
    }
    .btn-kh-cookie {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
    }
}

/* ==========================================================================
   Modern Thai Government Footer (Kudmuangharm SAO Theme) - High End
   ========================================================================== */
.kh-main-footer {
    background: linear-gradient(180deg, #0f1f38 0%, #0a1526 50%, #060d18 100%) !important;
    color: #f8fafc !important;
    position: relative;
    overflow: hidden;
    font-family: "Anuphan", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    border-top: 3px solid #ffa6eb;
    box-shadow: 0 -10px 40px rgba(23, 7, 29, 0.5);
}

.kh-footer-top-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFE7A3 0%, #ffa6eb 50%, #FFE7A3 100%);
    box-shadow: 0 0 10px rgba(255, 166, 235, 0.6);
}

.kh-footer-brand-wrap {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 166, 235, 0.15);
}

.kh-footer-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(255, 166, 235, 0.25));
    transition: transform 0.25s ease;
}

.kh-footer-logo:hover {
    transform: scale(1.02);
}

/* Footer Uniform Card (Equal Width & Height) */
.kh-footer-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 166, 235, 0.22);
    border-top: 3px solid #ffa6eb;
    border-radius: 12px;
    padding: 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.kh-footer-card:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 166, 235, 0.45);
    border-top-color: #FFE7A3;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.kh-card-header {
    margin-bottom: 12px;
}

.kh-footer-card-body {
    min-height: 175px;
}

.kh-footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFE7A3 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.kh-heading-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: linear-gradient(135deg, #ffa6eb 0%, #244a7e 100%);
    color: #FFFFFF;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.kh-heading-line {
    height: 2px;
    width: 36px;
    background: linear-gradient(90deg, #ffa6eb 0%, transparent 100%);
    border-radius: 2px;
    margin-top: 5px;
}

/* Contact List */
.kh-footer-contact-list li {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #f1f5f9;
    margin-bottom: 6px !important;
}

.kh-contact-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: rgba(255, 166, 235, 0.18);
    color: #FFE7A3;
    border: 1px solid rgba(255, 166, 235, 0.3);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    margin-top: 1px;
}

.kh-contact-text strong {
    color: #FFFFFF;
    font-weight: 600;
    display: inline-block;
    margin-right: 4px;
    font-size: 0.8rem;
}

.kh-contact-text p {
    font-size: 0.78rem;
    margin-bottom: 0;
}

.kh-contact-link {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.kh-contact-link:hover {
    color: #FFE7A3 !important;
    padding-left: 3px;
}

.text-muted-light {
    color: #94a3b8 !important;
    font-size: 0.72rem;
}

/* Social Buttons */
.kh-footer-social {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.kh-social-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 166, 235, 0.3);
    color: #f8fafc !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.kh-social-btn:hover {
    background: linear-gradient(135deg, #ffa6eb 0%, #1a3760 100%);
    color: #FFE7A3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 166, 235, 0.4);
    border-color: #FFE7A3;
}

/* Stat Cards */
.kh-stat-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    height: 100%;
}

.kh-stat-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 166, 235, 0.2);
    border-radius: 8px;
    padding: 5px 8px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kh-stat-item:hover {
    background: rgba(255, 166, 235, 0.15);
    border-color: rgba(255, 166, 235, 0.4);
}

.kh-stat-item.kh-stat-total {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 166, 235, 0.25) 0%, rgba(255, 231, 163, 0.15) 100%);
    border-color: rgba(255, 231, 163, 0.4);
    padding: 6px 10px;
}

.kh-stat-label {
    font-size: 0.72rem;
    color: #e2e8f0;
    margin-bottom: 1px;
}

.kh-stat-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.kh-stat-value.highlight {
    color: #FFE7A3;
    font-size: 1.05rem;
}

.kh-stat-value.highlight .unit {
    font-size: 0.75rem;
    color: #f8fafc;
    font-weight: normal;
    margin-left: 2px;
}

/* Map & Facebook Containers */
.kh-map-container,
.kh-fb-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 166, 235, 0.25);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    position: relative;
    height: 100%;
    width: 100%;
}

.kh-map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 120px;
}

.kh-map-open-link {
    display: block;
    background: linear-gradient(135deg, #2D1137 0%, #461C4F 100%);
    color: #FFE7A3 !important;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 8px;
    text-decoration: none !important;
    border-top: 1px solid rgba(255, 166, 235, 0.25);
    transition: all 0.2s ease;
}

.kh-map-open-link:hover {
    background: linear-gradient(135deg, #ffa6eb 0%, #244a7e 100%);
    color: #FFFFFF !important;
}

.kh-fb-container {
    background: #FFFFFF;
}

.kh-fb-container iframe {
    width: 100% !important;
    max-width: 100%;
    display: block;
    height: 100% !important;
    min-height: 165px;
}

/* Sub-Footer */
.kh-footer-bottom {
    background: #030810;
    border-top: 1px solid rgba(255, 166, 235, 0.15);
    font-size: 0.82rem;
    color: #cbd5e1;
}

.kh-copyright-text,
.kh-developer-credit {
    font-size: 0.82rem !important;
    line-height: 1.5;
    color: #cbd5e1 !important;
    margin: 0;
}

.kh-copyright-text strong {
    color: #FFFFFF;
    font-weight: 600;
}

.kh-dev-link {
    color: #FFE7A3 !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.kh-dev-link:hover {
    color: #FFFFFF !important;
    text-decoration: underline !important;
}

@media (max-width: 991.98px) {
    .kh-footer-logo {
        max-height: 42px;
    }
}

@media (max-width: 767.98px) {
    .kh-footer-logo {
        max-height: 38px;
    }
    .kh-stat-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    .kh-policy-links {
        justify-content: center;
    }
}

/* ==========================================================================
   Targeted 3-Column Image Gallery Grid (sigProContainer / kh-legacy-gallery)
   ========================================================================== */
ul.sigProContainer,
ul.kh-legacy-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    padding: 0 !important;
    margin: 20px 0 !important;
    list-style: none !important;
}

ul.sigProContainer li,
ul.sigProContainer li.sigProThumb,
ul.kh-legacy-gallery li,
ul.kh-legacy-gallery li.sigProThumb {
    display: block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

ul.sigProContainer a,
ul.sigProContainer a.sigProLink,
ul.kh-legacy-gallery a,
ul.kh-legacy-gallery a.sigProLink {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(26, 55, 96, 0.08) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

ul.sigProContainer a:hover,
ul.sigProContainer a.sigProLink:hover,
ul.kh-legacy-gallery a:hover,
ul.kh-legacy-gallery a.sigProLink:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 24px rgba(26, 55, 96, 0.18) !important;
}

ul.sigProContainer img,
ul.kh-legacy-gallery img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    opacity: 1 !important;
    background: none !important;
    border-radius: 12px !important;
}

ul.sigProContainer .sigProClear,
ul.kh-legacy-gallery .sigProClear,
.sigProPrintMessage {
    display: none !important;
}

@media (max-width: 991.98px) {
    ul.sigProContainer,
    ul.kh-legacy-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

@media (max-width: 575.98px) {
    ul.sigProContainer,
    ul.kh-legacy-gallery {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }
}
