
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&amp;family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;display=swap');
html { font-size: 100%;}
body {font-family: "Noto Sans Thai", sans-serif; color: #000; background-color: #FFF; margin: 0; padding: 0; font-size: 1rem; font-size: 100%; }

/* ##################### Accessibility #################### */
/* แก้ไขปัญหาข้อมูลในข้างใน Modal คลิกไม่ได้ ในโหมด Accessibility */
@media (prefers-contrast: no-preference) {
  .modal-backdrop { --bs-backdrop-zindex: -1 !important;}
  .modal { background-color: rgba(0, 0, 0, 0.5) !important; }
}

/* ##################### HEADER ##################### */
.bg-road { position: relative; z-index: auto; background-image: url(../images/bg-header-02.jpg); background-size: cover; background-position: center; background-repeat: no-repeat;}
.bg-orange {position: relative; z-index: auto; }
.home-page .bg-orange::after { position: absolute; z-index: 1; content: ""; top: -55px; right: 0; width: 982px; height: 722px; background-image: url(../images/bg-header-03.png); background-size: 70%; background-position: right bottom; background-repeat: no-repeat; }
@media (max-width: 991.98px) { .bg-orange::after { background-size:60%; top: -105px; } }
@media (max-width: 767.98px) { .bg-orange::after { background-size: 45%; top: -205px; } }
@media (max-width: 577px) { .bg-orange::after { background-size: 33%; top: -284px; } }
@media (min-width: 564px) and (max-width: 576px) {  .bg-orange::after { background-size: 33%; top: -304px; } }
@media (min-width: 400px) and (max-width: 563px) {  .bg-orange::after { background-size: 33%; top: -285px; } }
@media (min-width: 0px) and (max-width: 399px) { .bg-orange::after { background-size: 28%; top: -210px;} }

.header {position: relative; padding-bottom: 1px; min-height: 150px;}

/*##################### TOPMENU ####################*/
.topmenu { margin-bottom: 8px; position: relative; z-index:3;}
.topmenu .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.topmenu .navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }
.topmenu .navbar-toggler { border-color: #fff; }
.navbar-nav .nav-link { position: relative; color: #fff; font-size: 1.1rem; font-weight: 500; padding: 8px 20px !important; border: 0px solid transparent; border-radius: 6px; transition: 0.3s; cursor: pointer; white-space: nowrap; }
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover, .navbar-nav .nav-link.show { color: #fff; background-color: #16235d; }
.dropdown-menu { background: #16235d; border: none; border-radius: 8px; box-shadow: 0 3px 6px rgba(0,0,0,0.25);}
.dropdown-item { min-width: 260px; max-width: 300px; color: #fff; font-weight: 400; font-size: 1.1rem; line-height: 1.1; padding: 10px 20px; word-break: break-word; white-space: normal; transition: background-color 0.3s; }
.dropdown-item:hover { color: #fff; background: #1d2f87; }
.dropdown-item:focus { color: #fff; background: #1d2f87; }
.navbar-nav .nav-link.dropdown-toggle::after { all: unset; display: inline-block; margin-left: 0.1em; vertical-align: 0.255em; content: ""; border-top: 0.3em solid; border-right: 0.3em solid transparent; border-bottom: 0; border-left: 0.3em solid transparent; z-index: 2; }
.navbar-nav .nav-link.active::before, .navbar-nav .nav-link:hover::before, .navbar-nav .nav-link.show::before { opacity: 1; }

.logo-box { color: #fff; font-size: 1.7rem; line-height: 1.3; text-decoration: none;}
.logo-box img { height: 75px; width: 75px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));}
.logo-box:hover, .logo-box:focus  {color: #fff;}

.name-en { font-size: 1.4rem; color: #ff9000; margin: 0; line-height: 1; text-transform: uppercase; text-shadow: 0 0 6px rgba(0, 0, 0, 1); }
.text-logo-box { display: flex; flex-direction: column; justify-content: center; }
.text-logo-box h1 {font-size: 1.8rem;  white-space: normal;  word-break: break-all; text-shadow: 0 0 6px rgba(0, 0, 0, 1);}

.header-icons { position: relative; z-index: 4; top: 5px; right: 0;  display: flex; align-items: center;}
.header-icons button { background-color: transparent; border: 0px solid #FFF; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #002244; font-size: 1.2rem; transition: all 0.2s; /*box-shadow: 0 2px 4px rgba(0,0,0,0.3);*/}
.header-icons button:hover, .header-icons button:focus { background-color: rgba(1, 35, 90, 0.7); color: #000; }
#lang-btn {width: 120px; border-radius: 50px; font-size: 1rem; color: #FFF; display: flex; align-items: center; justify-content: center; gap: 0.25rem;}
.language-menu .dropdown-item { min-width: 100px;}
.language-menu.show { display: block !important;}
#lang-btn .bi-chevron-down { font-size: 0.7rem !important; }

@media (min-width: 0px) and (max-width: 991.98px) {
  .topmenu {position: relative; z-index: 4;}
  .topmenu .navbar-collapse {position: absolute; top: 6px; background-color: #222d6b; border-radius: 8px; width: 100%; box-shadow: 0 3px 6px rgba(0,0,0,0.25);}
 }
@media (min-width: 992px) and (max-width: 1399.98px) {
  .dropdown-menu.custom-menuwidth1 { left: auto; right: 0;}
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .text-logo-box h1 {font-size: 1.6rem; }
  .topmenu .navbar-collapse { top: 50px;}
}
@media (min-width: 0px) and (max-width: 767.98px) {
  .text-logo-box h1 {font-size: 1.7rem; }
  .topmenu .navbar-toggler {  margin-top: -35px;}
}
@media (max-width: 576px) {
  .dropdown-item { max-width: 100%;}
}
@media (min-width: 0px) and (max-width: 400px) {
  .logo-box{display: flex; flex-direction: column;}
}

/* ##################### Search #################### */
:root {
      --global-search-primary-color: #0d6efd;
      --global-search-secondary-color: #6c757d;
      --global-search-light-bg: #f8f9fa;
      --global-search-border-color: #dee2e6;
      --highlight-new-primary: #1a73e8; /* น้ำตาล */
      --highlight-new-bg: rgba(26, 115, 232, 0.1);
}
.global-search-navbar-brand { font-weight: 700; color: #0a58ca; }
.global-search-trigger { background: var(--global-search-primary-color); color: white; border: none; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.global-search-trigger:hover, .global-search-trigger:focus { background: #0b5ed7; transform: scale(1.05); outline: 2px solid #0a58ca; outline-offset: 2px; }
.global-search-modal .modal-content { border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); border: none; }
.global-search-modal .modal-header { border-bottom: 1px solid var(--global-search-border-color); padding: 1.25rem 1.5rem; background: var(--global-search-light-bg); border-radius: 12px 12px 0 0; }
.global-search-modal .modal-body { padding: 1.5rem; }
.global-search-input-container { position: relative; margin-bottom: 1.5rem; }
.global-search-input { padding: 12px 50px 12px 16px; border-radius: 8px; border: 2px solid var(--global-search-border-color); font-size: 1.1rem; width: 100%; transition: all 0.3s; }
.global-search-input:focus { border-color: var(--global-search-primary-color); box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1); outline: 2px solid var(--global-search-primary-color); }
.global-search-submit-btn { position: absolute; right: 5px; top: 5px; background: var(--global-search-primary-color); color: white; border: none; border-radius: 6px; width: 80px; height: 40px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.global-search-submit-btn:hover, .global-search-submit-btn:focus { background: #0b5ed7; outline: 2px solid #0a58ca; outline-offset: 2px; }
.global-search-popular-tags { margin-bottom: 1.5rem; }
.global-search-tag { display: inline-block; background: #e9ecef; color: #495057; padding: 6px 12px; border-radius: 20px; font-size: 0.9rem; margin-right: 0.5rem; margin-bottom: 0.5rem; cursor: pointer; transition: all 0.3s; border: 1px solid transparent; }
.global-search-tag:hover, .global-search-tag:focus { background: #dee2e6; transform: translateY(-2px); outline: 2px solid var(--global-search-primary-color); outline-offset: 2px; }
.global-search-advanced-toggle { display: flex; align-items: center; color: var(--global-search-primary-color); cursor: pointer; margin-bottom: 1rem; font-weight: 500; padding: 8px 12px; border-radius: 6px; transition: all 0.3s; border: 1px solid transparent; }
.global-search-advanced-toggle:hover, .global-search-advanced-toggle:focus { background-color: rgba(13, 110, 253, 0.1); outline: 2px solid var(--global-search-primary-color); outline-offset: 2px; }
.global-search-advanced-toggle i { margin-right: 8px; transition: transform 0.3s; }
.global-search-advanced-toggle.collapsed i { transform: rotate(0deg); }
.global-search-advanced-toggle:not(.collapsed) i { transform: rotate(180deg); }
.global-search-advanced-options { background: var(--global-search-light-bg); border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--global-search-border-color); }
.global-search-filter-group { margin-bottom: 1.5rem; }
.global-search-filter-title { font-weight: 600; margin-bottom: 0.75rem; color: #495057; font-size: 1rem; }
.global-search-filter-options { display: flex; flex-wrap: wrap; gap: 1rem; }
.global-search-filter-option { display: flex; align-items: center; }
.global-search-filter-option input { margin-right: 6px; width: 18px; height: 18px; }
.global-search-filter-option input:focus { outline: 2px solid var(--global-search-primary-color); outline-offset: 2px; }
.global-search-filter-option label { cursor: pointer; }
.global-search-date-range { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.global-search-date-input { flex: 1; min-width: 150px; }
.global-search-date-input label { display: block; margin-bottom: 4px; font-size: 0.9rem; color: #6c757d; }
.global-search-date-input input { width: 100%; padding: 8px 12px; border: 1px solid var(--global-search-border-color); border-radius: 4px; }
.global-search-date-input input:focus { outline: 2px solid var(--global-search-primary-color); outline-offset: 2px; }
.global-search-category-badge { background: var(--global-search-primary-color); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; }
@media (prefers-contrast: high) { .global-search-tag { border: 2px solid #000; } .global-search-result-item { border: 1px solid #000; } }
@media (prefers-reduced-motion: reduce) { .global-search-trigger, .global-search-tag, .global-search-result-item, .global-search-advanced-toggle { transition: none; } .global-search-fade-in { animation: none; } }
@media (max-width: 768px) { .global-search-result-item { flex-direction: column; } .global-search-result-image { width: 100%; height: 160px; margin-right: 0; margin-bottom: 1rem; } .global-search-date-range { flex-direction: column; } .global-search-date-input { width: 100%; } .global-search-filter-options { flex-direction: column; gap: 0.5rem; } }
.global-search-fade-in { animation: globalSearchFadeIn 0.5s ease-in-out; }
@keyframes globalSearchFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
button:focus, input:focus, select:focus, textarea:focus, [tabindex]:focus { outline: 2px solid var(--global-search-primary-color); outline-offset: 2px; }

/* สำหรับผลลัพธ์การค้นหา */
.global-search-results-list { display: flex; flex-direction: column; gap: 1rem; }
.global-search-result-item { background: white; border: 1px solid var(--global-search-border-color); border-radius: 8px; padding: 1.25rem; transition: all 0.3s; /* ลบ display: flex ออกเพราะใช้ Bootstrap grid แทน */ }
.global-search-result-item:hover, .global-search-result-item:focus-within { background-color: var(--global-search-light-bg); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.global-search-result-image { width: 100%; height: 120px; border-radius: 6px; overflow: hidden; margin-bottom: 1rem; }
.global-search-result-image img { width: 100%; height: 100%; object-fit: cover; }
.global-search-result-badge { background: var(--global-search-primary-color); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 500; display: inline-block; margin-bottom: 0.75rem; }
.global-search-result-title { font-weight: 600; color: #212529; margin-bottom: 0.75rem; font-size: 1.1rem; line-height: 1.4; }
.global-search-result-excerpt { color: #6c757d; font-size: 0.95rem; line-height: 1.5; margin-bottom: 1rem; }
.global-search-result-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.global-search-result-date { color: var(--global-search-secondary-color); font-size: 0.9rem; }
.global-search-result-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.global-search-tag-small { background: #e9ecef; color: #495057; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; border: 1px solid #dee2e6; }
@media (max-width: 768px) {
  .global-search-result-meta { flex-direction: column; align-items: flex-start; }
  .global-search-result-image { height: 100px; }
}
.global-search-result-date { color: var(--global-search-secondary-color); font-size: 0.9rem; }
.global-search-result-excerpt { color: #6c757d; font-size: 0.95rem; line-height: 1.5; }
.global-search-no-results { text-align: center; padding: 2rem; color: var(--global-search-secondary-color); }
.global-search-no-results i { font-size: 3rem; opacity: 0.5; margin-bottom: 1rem; }

/* ########################################## Hightlight Banner Slider ########################################## */
.bg-hightlight{ position: relative; z-index: 2; padding-bottom: 67px;  }

.img-highlight {border-radius: 8px; width: 100%; height: 450px; object-fit: cover; }

.highlight-wrapper .carousel-indicators [data-bs-target] { background-color: #FFF; width: 18px; height: 18px; margin: 0 6px; border-radius: 50%; opacity: 0.6; transition: opacity 0.5s; }
.highlight-wrapper .carousel-indicators .active { opacity: 1; }
.highlight-wrapper .carousel-indicators { bottom: -70px;}

.highlight-wrapper { position: relative; }
.highlight-wrapper .carousel-control-prev,
.highlight-wrapper .carousel-control-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 40px; height: 40px; background: transparent; border: none; padding: 0;}
.highlight-wrapper .carousel-control-prev { left: -50px;}
.highlight-wrapper .carousel-control-next {right: -50px;}
@media (max-width: 1199.98px) {
.highlight-wrapper .carousel-control-prev { left: 0px;}
.highlight-wrapper .carousel-control-next {right: 0px;}
}
@media (max-width: 992px) {
  .highlight-wrapper .carousel-control-prev { left: -30px; }
  .highlight-wrapper .carousel-control-next { right: -30px; }
}

@media (max-width: 768px) {
  .highlight-wrapper .carousel-control-prev { left: -15px; }
  .highlight-wrapper .carousel-control-next { right: -15px; }
}

@media (max-width: 576px) {
  .highlight-wrapper .carousel-control-prev {left: 0}
  .highlight-wrapper .carousel-control-next { right: 0;}
}

@media (max-width: 992px) {.img-highlight { max-height: 400px; }}
@media (max-width: 768px) {.img-highlight { max-height: 300px; }}
@media (max-width: 576px) {.img-highlight { max-height: 200px; }}
@media (min-width: 768px) and (max-width: 991.98px) { .newshighway {padding-right: 0px !important;} }
@media (min-width: 0px) and (max-width: 767.99px) { .newshighway {background-position: -32px bottom !important; padding-right: 15px !important;} }

.bg-purple { background-color: #29377e; padding: 30px;}
.bg-purple-page  { background-color: #29377e; padding: 10px;}

/* ##################### VIDEO #################### */
.video-thumbnail-wrapper { position: relative; width: 100%;  background-color: #000; overflow: hidden; border-radius: 8px;}
.video-thumbnail-wrapper img { width: 100%; height: 450px; object-fit: cover; object-position: center center; }
.video-thumbnail-wrapper2 { position: relative; aspect-ratio: 16 / 9 ; width: 100%;  background-color: #000; overflow: hidden; border-radius: 30px;}
.video-thumbnail-wrapper2 img { width: 100%; height: 100%; object-fit: cover; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; color: white; text-shadow: 0 0 5px rgba(0,0,0,0.5);}
.play-icon2 { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2rem; color: white; text-shadow: 0 0 5px rgba(0,0,0,0.5);}
.text-vdo { font-size: 1.2rem; font-weight: 600; color: #0b346a; text-align: center;}
.video-thumbnail-wrapper2 { border-radius: 1.7rem; border: 2px solid #273157; box-shadow: 5px 5px 10px rgba(0, 0, 0, .3);}
.pole{position: absolute; z-index: 0; left: 60px; height: 100%; width: 26px; background-image: url(../images/pole.html); background-repeat: repeat-y; }
@media (min-width: 1400px) {
.video-thumbnail-wrapper{ height: 450px;}
.video-thumbnail-wrapper img {  height: 675px;}
}
@media (max-width: 992px) {.video-thumbnail-wrapper img { max-height: 400px; } .pole {left: 50px; width: 20px; height: 100%; }}
@media (max-width: 768px) {.video-thumbnail-wrapper img { max-height: 300px; } .pole {left: 50px; width: 20px; height: 150%; }}
@media (max-width: 576px) {.video-thumbnail-wrapper img { max-height: 200px; } .pole {left: 35px; width: 16px; height: 180%; } .text-vdo {  margin-left: 60px;}}
@media (min-width: 0px) and (max-width: 330px) {.pole {left: 35px; width: 14px; height: 250%;}}

/* ##################### NEWS TABS #################### */
.bg-news { background-color: #253270; position: relative; z-index: auto; overflow: hidden;}
.news-tabs { background: transparent; border:0; display: flex; justify-content: flex-end;}
.news-tabs .nav-link { position: relative; border: none; color: rgba(255, 255, 255, 1); background-color:#253270; font-size: 2.5rem; font-weight: 600; padding: 16px 20px 12px 20px; margin-left: -5px;}
.news-tabs .nav-link.active { position: relative; color: #FFF; background-color: #ad410c; /*background-color: #f2622c;*/ font-weight: 600; font-size: 2.5rem; border-radius: 0px 0px 0px 20px;}
.news-tabs .nav-link.active::after {position: absolute; z-index: 0; content: ""; background-color: #ad410c; top: 0; bottom: 0;left: 100%;  margin-left: -1px; width: 100vw;}
.news-tab-content { position: relative; z-index: 1;  overflow: visible !important; }

.news-card { position: relative; z-index: 1; background-color: #9b3603; box-shadow: 0 3px 6px rgba(0,0,0,0.25); padding: 20px; border-radius:24px ;}
.img1-news {border-radius: 24px; object-fit: cover; width: 100%; height: 400px; }
.badge-news {background-color: #d7e7f4; color: #0b346a; font-weight: 500; font-size:1rem; padding: 2px 10px; border-radius: 2px; margin-top: 15px; margin-bottom: 15px; display: inline-block;}
.news-meta {font-size: 0.875rem; color: #FFF; margin-top: 15px;}
.card-news-title { font-size: 1.7rem; font-weight:600; line-height: 1.4; height: 150px; width: 85%; margin: auto; text-align: center; overflow: hidden;}
.news-card a { color: #FFF; text-decoration: none;}
.news-card a:hover{color: #ffffff; text-decoration: underline;}
.arrow-up-right{ position: absolute; bottom:17px; right: 20px; width: 40px; height: 40px; text-align: end; display: block; margin-right: 10px;}
.arrow-up-right2{ width: 26px; height: 26px;}

.news-text { height: 90px; display: flex; align-items: center;}
.news-text-inner { color: #FFF; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;}
.news-text a{ color: #FFF; font-size: 1.1rem; font-weight: 500; text-decoration: none; line-height: 1.2;}
.news-text a:hover { color: #FFF; text-decoration: underline; }
.view {font-size: 0.9rem; display: flex; justify-content: space-between; margin-left: 130px; color: #FFF; margin-top: 10px; margin-bottom: 0;}
.view a{ color: #FFF; font-size: 0.9rem; text-decoration: none; }
.view a:hover { color: #FFF; text-decoration: underline; }

.btn-viewall-orange { background: #973703; color: white; padding: 6px 16px; border-radius: 20px; font-weight: 600;}
.btn-viewall-orange:hover { background: #ac3d01; color: #fff;}
.btn-viewall-blue { background: #253270; color: white; padding: 6px 16px; border-radius: 20px; font-weight: 600;}
.btn-viewall-blue:hover { background: #2c3b83; color: #fff;}
.viewall { color: #FFF; text-decoration: none; font-size: 1.6rem; font-weight: 500; }
.viewall:hover { color: #FFF; text-decoration: underline;}
.viewall-dark { position: absolute; z-index: 2; top:30px; color: #2c2c2c; text-decoration: none; font-size: 1.6rem; font-weight: 500; }
.viewall-dark:hover { color: #2c2c2c; text-decoration: underline;}

.news-event-item {display: flex; align-items: center;}
.news-event-item:not(:last-child) {border-bottom:1px solid rgba(255, 255, 255, 0.4); padding-bottom: 35px; margin-bottom: 35px;}
.news-event-text-inner { height: 120px; overflow: hidden; margin-bottom: 10px;}
.news-event-text { text-align: left;}
.news-event-text a{  color: #FFF; font-size: 1.3rem; font-weight: 500; text-decoration: none; line-height: 1;}
.news-event-text a:hover { color: #FFF; text-decoration: underline;}
.img-news-thumbnail {width: 240px; object-fit: cover; object-position: center; background-color: #ccc; border-radius: 12px; margin-right:10px; border: 2px solid rgba(255, 255, 255, 0.7);}

.news-slide .carousel-indicators [data-bs-target] { background-color: #FFF; width: 20px; height: 20px; margin: 0 6px; border-radius: 50%; opacity: 0.9; transition: opacity 0.5s; }
.news-slide .carousel-indicators .active { opacity: 1; background-color: #e95e14;}
.news-slide .carousel-indicators { bottom: -16px; right: 0; left: auto; margin-right: 0;}

.banner-link img {transition: transform 0.3s ease, box-shadow 0.3s ease; display: block; margin: auto; }
.banner-link:hover img { transform: scale(1.01); box-shadow: 0 4px 8px rgba(0,0,0,0.2);}

@media (min-width: 0px) and (max-width: 520px) {
  .news-event-item {flex-direction: column;}
  .news-event-item:not(:last-child) {  padding-bottom: 15px; margin-bottom: 23px;}
  .img-news-thumbnail {margin-bottom: 20px;}
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .news-event-item {flex-direction: column;}
  .news-event-item:not(:last-child) {  padding-bottom: 15px; margin-bottom: 23px;}
  .img-news-thumbnail {margin-bottom: 20px;}
  .bg-news { padding-bottom: 60px;}
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .img-news-thumbnail { width: 200px;}
}

/* ##################### VDO #################### */
.bg-vdo { margin-top: -70px; position: relative; z-index: 0; background-color: #ebebeb; padding-top: 100px; padding-bottom: 106px; overflow: hidden;}
.bg-vdo::after {content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 56%; height: 100%; background-image: url(../images/bg-vdo.png); background-size: cover; background-position: top right; background-repeat: no-repeat;}
.ipad-wrapper { position: relative; z-index: 1; padding: 10px; width: 100%;}
.ipad-frame { width: 100%; padding-top: 68%; background: url('../images/ipad-frame.png') no-repeat center; background-size: contain; position: relative; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.4));}
.video-area {position: absolute; z-index:5; top: 4%; left: 8%; width: 84%; height: 92%;}
.video-area a {position: relative;}
.video-area img { height: 100%;}
.video-screen { width: 100%; height: 100%; object-fit: cover; border-radius: 12px;}
.pen {position: absolute; z-index: 2; top: 15%;  right:-23%; width: 250px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));}

.video-slide {z-index: 1; }
.video-slide .carousel-indicators [data-bs-target] { background-color: #FFF; width: 20px; height: 20px; margin: 0 6px; border-radius: 50%; opacity: 0.9; transition: opacity 0.5s; }
.video-slide .carousel-indicators .active { opacity: 1; background-color: #e95e14;}
.video-slide .carousel-indicators { bottom: -70px; right: 0; left: auto; margin-right: 0;}

@media (min-width: 0px) and (max-width: 421px) { .pen {top: 20px; right: -11%; width: 130px;}}
@media (min-width: 420px) and (max-width: 575px) {
  .pen {top: 55px; right: -14%; width: 150px;}
}
@media (max-width: 575.98px) {
  .bg-vdo { padding-top: 40px;}
  .bg-vdo::after { width:100%;}
}
@media (min-width: 576px) and (max-width: 767.98px) {
   .pen {top: 48px; right: -13%; width: 170px;}
   .bg-vdo { padding-top: 60px;}
   .bg-vdo::after { width: 100%;}
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .pen {top: -15px; right: -24%; width: 150px;}
  .bg-vdo {margin-top: -35px;}
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .pen {top: -18px; right: -23%; width: 200px; }
}
@media (max-width: 767.98px) {
  .bg-vdo {margin-top: 0px; }
  .bg-news {padding-bottom: 30px; }
  .ipad-wrapper {margin-top: 80px;}
}

/* ##################### INFOGRAPHIC #################### */
.bg-half { background: linear-gradient(to right, #253270 50%, #ad410c 50%); color: #FFF;}
/*
.bg-half .bg-color-1 { background-color: #253270; color: #FFF;}
.bg-half .bg-color-2 {  background-color: #ad410c;color: #FFF;} */
.infographic-icon {position: absolute; z-index: 1; right: -30px; bottom: 0; width: 330px; height: 410px; background: url(../images/infographic-object.png) no-repeat center; background-size: contain;}
.img-ebook img{ position: relative; z-index: 1; margin-top: -72px; margin-bottom: 40px; max-width:245px; object-fit: cover; object-position: top center; box-shadow: 3px 0px 10px rgba(0, 0, 0, 0.5); border-radius: 1px;}
.title-ebook {font-size: 1.3rem; font-weight: 500;}
.img-ebook img { transition: transform 0.4s ease, box-shadow 0.3s ease;}
.img-ebook img:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);}

@media (max-width: 767.98px) {
  .bg-half { background: linear-gradient(to bottom, #253270 38.5%, #ad410c 0%);}
  .bg-half .bg-color-1 {height: 279px;}
  .img-ebook img {max-width: 200px; margin-top:20px;}
  .infographic-icon { right: 0; bottom: 0; width: 280px; height: 348px;}
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .img-ebook img {max-width: 200px; margin-top:20px;}
  .infographic-icon {width: 280px; height: 348px;}
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .img-ebook img {max-width: 200px;}
  .infographic-icon {width: 280px; height: 348px;}
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .img-ebook img {max-width: 225px;}
  .infographic-icon {width: 290px; height: 360px;}
}
@media (min-width: 0px) and (max-width: 500px) {
  .bg-half .bg-color-1 {height:auto; display: flex;  flex-direction: column;}
  .viewall {order: 1;}
  .infographic-icon {position: relative; height:296px; order: 2;}
  .bg-half { background: linear-gradient(to bottom, #253270 46%, #ad410c 0%);}
}
@media (min-width: 0px) and (max-width: 480px) {
      .infographic-icon {display: flex; height: 323px; bottom: -40px}
      .bg-half .bg-color-1 { background-color: #253270; color: #FFF;}
      .bg-half .bg-color-2 {  background-color: #ad410c;color: #FFF;}
      .bg-half { background: linear-gradient(to bottom, #253270 50%, #ad410c 50%);}
}


/* ##################### procurement and job #################### */
.bg-procurement { background-color: #f4f7fc; background-image: url(../images/bg-procurement.jpg); background-size:cover; background-position:center; background-repeat: no-repeat; padding-bottom: 50px;}
.section-procurement-title {color:#253270; font-size: 2.5rem; font-weight: 600;}
.card-procurement { background-color: #fff; border-radius: 30px; box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);}
.procurement-list{ padding: 10px 20px; }
.procurement-item { color: #000; font-size: 1.1rem; font-weight: 500; line-height: 1.3; text-decoration: none; display: flex; align-items: start; border-bottom: 1px solid rgba(0, 0, 0, 0.1);}
.procurement-item:hover {color: #0d6efd;}
.procurement-item .procurement-date {flex-shrink: 0; background-color: #ecf0f9; color: #1f2021; width:80px; height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-right: 15px;}
.procurement-item .date-number { font-size: 25px; font-weight: 700; line-height: 1;}
.procurement-item .date-month { font-size: 14px; font-weight:700; line-height: 1.2;}
.header-content{color: #FFF; font-size: 1.9rem; font-weight: 500; border-radius: 30px 30px 0px 0px; padding: 10px 25px 10px 25px;}
.header-content-blue {background-color: #253270;}
.header-content-brown {background-color: #ad410c;}

/* ##################### ภาพกิจกรรม #################### */
.bg-event { position: relative; background-color: #253270; overflow: hidden;}
.title-event { position: relative; display: flex; /*justify-content: flex-end;*/ margin-bottom: 1px; padding: 16px 20px 12px 45px; color: #FFF; background-color: #ad410c; /*background-color: #f2622c;*/ font-weight: 600; font-size: 2.5rem; margin-left: auto; border-radius: 0px 0px 0px 20px;}
.title-event::after {position: absolute; z-index: 0; content: ""; background-color: #ad410c; /*background-color: #f2622c;*/ top: 0; bottom: 0;left: 100%;  margin-left: -1px; /* margin-left: auto;*/ width: 100vw;}
.title-pic-event { font-size: 1.1rem; font-weight: 500; color: #FFF; height: 55px; margin-top: 5px; overflow: hidden; padding-right: 10px; padding-left: 10px;}
.news-event-wrapper { position: relative;  }
.news-event-wrapper .carousel-control-prev, .news-event-wrapper .carousel-control-next { position: absolute; z-index: 1; top:30%; transform: translateY(-50%); width: 40px; height: 40px; background-color: #FFF; border-radius: 6px;}
.news-event-wrapper .carousel-control-prev { left: 0px; }
.news-event-wrapper .carousel-control-next { right: 0px; }
.news-event-wrapper .carousel-control-prev-icon, .news-event-wrapper .carousel-control-next-icon { filter: invert(1); width: 2.5rem; height: 2.5rem; }
.news-event-wrapper a img { transition: transform 0.4s ease, box-shadow 0.3s ease;}
.news-event-wrapper a:hover img { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);}

/* ##################### ลิงก์แนะนำ #################### */
.bg-link-recommend { position: relative; z-index: 0; background-color: #525a64; background-image: url(../images/bg-link-recommend.png); background-size:cover; background-position:center; background-repeat: no-repeat; overflow: hidden;}
.title-link-recommend { position: relative; display: flex; margin-bottom: 1px; padding: 16px 20px 12px 45px; color: #222b4f; background-color: #e2e1e1; font-weight: 600; font-size: 2.5rem; margin-left: auto; border-radius: 0px 0px 0px 20px;}
.title-link-recommend::after {position: absolute; z-index: 0; content: ""; background-color: #e2e1e1; top: 0; bottom: 0;left: 100%; margin-left: -1px; /*margin-left: auto;*/ width: 100vw;}

.link-recommend .carousel-indicators [data-bs-target] { background-color: #FFF; width: 20px; height: 20px; margin: 0 6px; border-radius: 50%; opacity: 0.9; transition: opacity 0.5s; }
.link-recommend .carousel-indicators .active { opacity: 1; background-color: #e95e14;}
.link-recommend .carousel-indicators { bottom: -0; right: 0; left: auto; margin-right: 0;}
.icon-item { position: relative; width: 190px; height: 190px; margin-bottom: -1px; display: inline-block;}
.icon-item img {background-image:none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.25s ease;}
.icon-item img.reg {background-color:#525a64; border-radius: 100%;}
/* รูป hot ซ่อนก่อน */
.icon-item img.hot { opacity: 0; object-position:center; object-fit: contain; margin-top: 20px;}
/* Hover → เปิดรูป hot */
.icon-item:hover img.hot {  opacity: 1;}
.icon-item:hover img.reg {  opacity: 0;}
.icon-item:hover img.hot { transform: scale(1.5); }

@media (min-width: 992px) and (max-width: 1199.98px) {
  .link-recommend .carousel-item .d-flex { flex-wrap: wrap; gap: 40px; justify-content: center !important; }
   .icon-item { width: 150px; height: 150px;}
}

@media (max-width: 991.98px) {
  .link-recommend .carousel-item .d-flex {flex-wrap: wrap; justify-content: center !important; gap: 40px;}
  .icon-item { width: 150px; height: 150px; }
}

@media (max-width: 767.98px) {
  .icon-item { width: 130px; height: 130px;}
}

/* ##################### ลิงก์หน่วยงานในพื้นที่ #################### */
.regional-section {position: relative; overflow: hidden; /*min-height: 100vh;*/}
.bg-left {position: absolute; top: 0; left: 0; width: 50vw; height: 100%; background-color: #fff; background-image: url('../images/bg-banner.png'); background-size: cover; background-position: top center; z-index: 0;}
.bg-right {position: absolute; top: 0; right: 0; width: 50vw; height: 100%; background-color: #ebebeb; background-image: url('../images/bg-link2.png'); background-size: cover; background-position: top center; border-left: 1px solid #7a8189; z-index: 0;}
.content-wrapper {position: relative; z-index: 1; /*padding: 0px 50px;*/}
.left-content a img { transition: transform 0.4s ease, box-shadow 0.3s ease;}
.left-content a:hover img { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);}

@media (max-width: 991.98px) {
    /* ปิด background เดิม */
    .bg-left, .bg-right {
        display: none;
    }

    /* --- Left section background full width --- */
    .left-content {
        position: relative;
        z-index: 1;
    }
    .left-content::before {
        content: "";
        position: absolute;
        top: 0; left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: 100%;
        background-image: url('../images/bg-banner.png');
        background-size: cover;
        background-position: top center;
        background-repeat: no-repeat;
        z-index: -1;
    }

    /* --- Right section background full width --- */
    .right-content {
        position: relative;
        z-index: 1;
    }
    .right-content::before {
        content: "";
        position: absolute;
        top: 0; left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: 100%;
        background-image: url('../images/bg-link2.png');
        background-size: cover;
        background-position: top center;
        background-repeat: no-repeat;
        z-index: -1;
    }

}

.title-regional-links { position: relative; display: flex; margin-bottom: 1px; padding: 16px 0px 12px 45px; color: #FFF; background-color: #253270; font-weight: 500; font-size: 2.5rem; margin-left: auto; border-radius: 0px 0px 0px 20px;}
.title-regional-links::after {position: absolute; z-index: 0; content: ""; background-color: #253270; top: 0; bottom: 0;left: 100%; margin-left: -1px; /*margin-left: auto;*/ width: 100vw;}

.regional-links{ padding-bottom: 30px; }
.regional-links ul { list-style: none; padding: 0; margin: 0; }
.regional-links ul li {position: relative;  margin-bottom: 10px; padding-left: 15px; /*padding-top: 5px; padding-bottom: 5px;*/ height: 45px;}
.regional-links ul li::before {content: ""; position: absolute; left: 8px; top: 35%; transform: translateY(-50%); width: 6px; height: 6px; background-color: #282828;  border-radius: 50%;}
.regional-links ul li a {  text-decoration: none; color: #000; font-size: 1.3rem; font-weight: 600; padding: 10px; transition: color 0.3s ease, transform 0.3s ease;  }
.regional-links ul li a:hover { color: #1e3ac6; font-size: 1.5rem; font-weight: 600; transition: color 0.3s ease, transform 0.3s ease;}
@media (max-width: 576px) {
.regional-links ul li a { font-size: 1.1rem;}
.regional-links ul li a:hover { font-size: 1.2rem;}
}


/* ##################### FOOTER #################### */
.footer {background-color: #253270; color: #FFF; position: relative; z-index: 1; padding-top: 50px; padding-bottom: 50px;}
.border-footer {border: 2px solid #FFF; border-radius: 50px; padding: 20px; }
.footer-title {font-size: 1.3rem; font-weight: 500;}
.name-en-bottom { font-size: 1.1rem; color: #FFF; margin: 0; line-height: 1; text-transform: uppercase; }
.footer a { color: #FFF; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.social-footer a img { transition: filter 0.3s ease, transform 0.3s ease;
  filter:
    drop-shadow(4px 0 6px rgba(0, 0, 0, 0.1))
    drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: filter 0.3s ease;
}
.social-footer a:hover img { transform: scale(1.05);}
.bg-copyright{background-color: #f3f4f5; color: #000; font-size: 1rem; }
.bg-copyright nav a{color: #000; text-decoration: none;}
.bg-copyright a:hover{color: #0d6efd; }

.visually-hidden {position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;  clip: rect(0 0 0 0); white-space: nowrap; border: 0;}

/* ##################### GO TO TOP #################### */
.go-to-top { position: fixed; bottom: 2px; right: 20px; cursor: pointer; display: none; z-index: 999;}
.go-to-top img { width: 70px; height: 70px; transition: transform 0.3s ease;}
.go-to-top:hover img { transform: scale(1.1);}

/* ##################### CHATBOT #################### */
.chatbot-container { position: fixed; bottom: 80px; right: 15px; z-index: 9999; }
.chatbot-toggle { background-color: #fc8204; color: white; border: none; border-radius: 50%; width: 80px; height: 80px; font-size: 24px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.chatbot-box { display: none; position: absolute; bottom: 70px; right: 0; width: 300px; max-height: 400px; background-color: white; border: 1px solid #ddd; border-radius: 12px; overflow: hidden; flex-direction: column; }
.chatbot-header { background-color: #fc8204; color: black; padding: 8px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.chatbot-close { cursor: pointer; font-size:3rem; font-weight: 300; line-height: 0; }
.chatbot-body { padding: 15px; font-size: 1rem; color: #333; }

/* ##################### accessibility #################### */
#accessibility-btn {/*position: fixed; bottom: 170px; right: 30px;*/ display: none; cursor: pointer;/* z-index: 9999;*/}
#accessibility-btn button { background-color: #003f72; color: white; border: none; border-radius: 1px; padding: 5px; width: 70px; height: 70px; font-size: 24px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
#accessibility-btn button:hover { background-color: #0056a3; }

@media (max-width: 992px) {
  .go-to-top, .chatbot-container, #accessibility-btn {right: 0px;}
}

/* ##################### Cookie Consent #################### */
.cookie-consent-container { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); width: 60%; max-width: 800px; background-color: #FFFFFF; border-radius: 30px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); padding: 20px; z-index: 9999; display: none; animation: slideUp 0.5s ease-out; border: 1px solid rgba(0, 0, 0, 0.05);}
@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0);}
}
.cookie-consent-container a{color: #054fbe !important;}
.cookie-header {display: flex; align-items: flex-start;}
.cookie-icon {background-color: #FFF2EC; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin-right: 15px; flex-shrink: 0;}
.cookie-icon svg {width: 24px; height: 24px; color: #FF6B35;}
.cookie-title {font-weight: 600; font-size: 1.25rem; margin-bottom: 4px; color: #2D3748;}
.cookie-actions { display: flex; justify-content: flex-end; gap: 12px;}
.btn-accept { background-color: #8f4402; border: none; color: white; padding: 8px 20px; border-radius: 12px; font-weight: 600; transition: all 0.3s ease;}
.btn-accept:hover, .btn-accept:focus {background-color: #9f4c04; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);}

@media (max-width: 768px) {
    .cookie-consent-container {  width: 90%; padding: 20px; }
    .cookie-header { flex-direction: column; align-items: center; text-align: center; }
    .cookie-icon {margin-right: 0; margin-bottom: 12px;}
    .cookie-actions {flex-direction: column; }
    .btn-accept { width: 100%;}
}

/* ######################################## PAGE ######################################## */
.page-content {position: relative; z-index: 0; background-color: white; padding-top: 1px;}

.bg-orange.inner-page {position: relative; z-index: auto;}
.bg-orange.inner-page::after { top:10px; right: 0; position: absolute; z-index: 0; content: "";  width: 13vw; max-width: 315px; height: 160px; background-image: url(../images/bg-header-page-right.png); background-size: contain; background-repeat: no-repeat;  background-position: right bottom;}
.bg-orange.inner-page::before { bottom:-20px; left: 0; position: absolute; z-index: 0; content: "";  width: 12vw; max-width: 250px; height: 114px; background-image: url(../images/bg-header-page-left.png); background-size: contain; background-repeat: no-repeat; background-position: left bottom;}

.bg-orange.inner-page::before { /*background-position: left bottom; transform: scaleX(-1);*/ }


@media (min-width: 401px) and (max-width: 564px) {
.bg-orange.inner-page::after { top: 30px !important;}
}
@media (min-width: 0px) and (max-width: 400px) {
  .bg-orange.inner-page::after {  top: 104px;}
}
@media (min-width: 0px) and (max-width: 767.98px) {
.bg-orange.inner-page::after { width: 24vw;}
.bg-orange.inner-page::before { width: 22vw;}
}

.breadcrumb-custom { font-size: 1rem; text-align: right;}
.breadcrumb-custom a { color: #555; text-decoration: none;}
.breadcrumb-custom a:hover{color: #024dbc;}
.breadcrumb-custom span {padding-left: 5px; padding-right: 5px;}
.social-share { display: flex; flex-wrap: wrap; gap: 0px; align-items: flex-end; align-self: flex-start; }
.social-share a {text-decoration: none; cursor: pointer; vertical-align: bottom; transition: transform 0.2s ease-in-out; width: 44px; height: 44px; display: inline-flex; align-items: center;  justify-content: center; }
.social-share a:hover{transform: scale(1.1);}
.social-share a img { display: block;  }
.social-share a:focus { outline: 2px solid #024dbc; outline-offset: 3px;}
.text-muted {color: #555 !important;}



/* ######################################## MENU TABS ######################################## */
.sidebar { background-color: white; border: 1px solid #eee; border-radius: 0.75rem; box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); height: auto;/* สูงตามเนื้อหา */ align-self: flex-start; /* ไม่ยืดเต็ม row */ padding: 0;}
.sidebar .no-link { white-space: normal; color: #003366; padding: 0.75rem 1.2rem; border-left: 4px solid transparent; border-radius: 0.75rem; font-weight: 500; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid #ddd;}
.sidebar .no-link.active:hover, .sidebar .no-link.active:hover *, .sidebar .no-link.active *:hover {  cursor: pointer; }
.sidebar .nav-link { white-space: normal; color: #003366; padding: 0.75rem 1.2rem; border-left: 4px solid transparent; border-radius: 0.75rem; font-weight: 500; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid #ddd;}
.sidebar .nav-link:hover:not(.active) {  white-space: normal; background: linear-gradient(90deg, #f0f5fc, #e8effa); border-left-color: #0056b3; color: #002244 !important; box-shadow: 0 2px 8px rgba(0, 67, 122, 0.15); }
.sidebar .nav-link.active {  white-space: normal; background: linear-gradient(135deg, #00478f, #003366); color: #ffffff; border-left-color: #00a8ff; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 12px rgba(0, 40, 80, 0.25); border-bottom: none;}
.sidebar .nav-link.active:hover, .sidebar .nav-link.active:hover *, .sidebar .nav-link.active *:hover { background: linear-gradient(135deg, #00478f, #003366) !important; color: #ffffff !important; border-left-color: #00a8ff !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 12px rgba(0, 40, 80, 0.25) !important; cursor: pointer; }
.sidebar .nav-link:focus { outline: 2px solid #0056b3; outline-offset: 2px; }
.sidebar .nav-link:focus:not(.focus-visible) { outline: none; }
  .sidebar .nav-tabs { border:0;}
@media (max-width: 767.98px) {
  .sidebar .nav-tabs { flex-direction: row !important; overflow-x: auto; -webkit-overflow-scrolling: touch;}
  .sidebar .nav-link { /*white-space: nowrap;*/ }
}
.sidebar .no-link.disabled,.sidebar .nav-link.disabled {color: #333 !important; opacity:1; font-weight:600;}
.sidebar .nav-link:hover .bi{ background: none !important;   box-shadow:none !important; }



/* ##################### poll_detail #################### */
.poll-header-section { margin-bottom: 30px; }
.poll-header-section img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; }
.poll-header-title { color: #1e3a8a; font-weight: 700; }
.poll-section-title { font-weight: 600; color: #1e3a8a; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #cbd5e1; display: flex; align-items: center; }
.poll-intro-section { background-color: #f8fafc; border-radius: 12px; padding: 30px; margin-bottom: 30px; border-left: 4px solid #1e40af; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.survey-card { border: none; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); margin-bottom: 25px; overflow: hidden; }
.survey-card-header { background: #1e40af; color: #ffffff; padding: 20px 25px; border-bottom: none; }
.survey-card-body { padding: 30px; }
.question-type-section { margin-bottom: 30px; }
.question-type-card { /*background: #ffffff; border: 2px solid #e2e8f0; border-radius: 8px;*/ padding: 24px; margin-bottom: 20px; }
.question-type-title { font-weight: 600; color: #1e293b; margin-bottom: 16px; font-size: 1.1rem; line-height: 1.5; }
.multiple-grid { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.multiple-grid-header { font-weight: 600; text-align: center; padding: 12px 8px; background-color: #f1f5f9; border-radius: 6px; font-size: 1rem; color: #000; }
.multiple-grid-item { text-align: center; padding: 12px 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #000; }
.poll-btn-submit { background: #1e3a8a; color: #ffffff; border: 2px solid #1e3a8a; border-radius: 8px; padding: 10px 10px; font-weight:500; font-size: 1.2rem; }
.poll-btn-submit:hover { background: #eee; color: #000;border: 2px solid #1e3a8a;}
/* Custom form-check-input styles */
.poll .form-check-label {margin-left: 8px; padding-top: 2px;}
.poll .form-check-input { border: 2px solid #64748b; width: 1.2em; height: 1.2em; }
.poll .form-check-input:focus { border-color: #1e40af; outline: 2px solid #1e40af; outline-offset: 2px; }
.poll .form-check-input:checked { background-color: #1e40af; border-color: #1e40af; border-width: 2px; }
.poll .form-check-input[type="radio"]:checked { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e"); }
.poll .form-check-input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }

@media (max-width: 768px) {
.poll-header-section img { height: 150px; }
.multiple-grid { grid-template-columns: 1fr; gap: 12px; }
.multiple-grid-header { display: none; }
.multiple-grid-item { border-bottom: 1px solid #e2e8f0; padding-bottom: 12px; justify-content: flex-start; text-align: left; }
.survey-card-body { padding: 20px; }
.poll-intro-section { padding: 20px; }
}

.btn-filter2 {
    background-color: #084299;
    color: #FFF;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-right: 10px;
}

/* ##################### JOBS Page #################### */
.jobs-table { border-radius: 1rem; overflow: hidden;}
.jobs-table thead th { background-color: #e7eff5; text-align: center; color: #111827; font-weight: 600; font-size: 1rem; padding: 12px 10px 12px 10px;}
.jobs-table tbody tr { border-bottom: 1px solid #e5e7eb;}
.jobs-table tbody tr:last-child { border-bottom: none;}
.jobs-table tbody tr td { padding: 12px 10px; vertical-align: middle; }
.jobs-table tbody tr td a { color: #000; text-decoration: none; transition: all 0.2s ease;}
.jobs-table tbody tr td a:hover { text-decoration: none; color: #0a58ca;}
.jobs-table a.btn {transition: all 0.2s ease;}
.jobs-table a.btn:hover {background-color: #d7f7fd; border: 1px solid #FFF;}
.jobs-table tbody tr:nth-child(even):hover td { background-color: #f8f9fa !important;}
.jobs-table th:nth-child(4), .jobs-table td:nth-child(4) {text-align: right;}
@media (min-width: 768px) {
  .col-jobs { width: 240px; }
}
.jobs-table td:nth-child(1) { text-align: center; vertical-align: middle;}

/* sitemap */
#sitemap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 12px 60px;
}

.sitemap-item {
    list-style: none;
    margin-bottom: 10px;
}

.sitemap-item-header {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 18px;
    border-radius: 14px;
    background: #ffffff;

    text-decoration: none;
    color: #1f2937;

    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    transition: all .25s ease;
}

.sitemap-item-header:hover {
    background: #e1ecff;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
}

.item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;

    background: #e8f0ff;
    color: #2563eb;

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

    font-size: 20px;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
}

.item-link {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
    word-break: break-all;
}

.toggle-icon {
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    transition: transform .25s ease;
}

.sitemap-item-header:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
}

.badge-count {
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
}

.badge-external {
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    margin-left: 8px;
}

.sitemap-item ul {
    margin-left: 36px;
    margin-top: 10px;
    padding-left: 16px;
    border-left: 2px dashed #dbeafe;
}

.sitemap-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

.sitemap-actions button {
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 500;
}

/* ===============================
   Sitemap – dot สำหรับเมนูลูก
=============================== */

/* header ของลูก */
.sitemap-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    text-decoration: none;
}

/* จุด (แทน icon) */
.toggle-icon.dot {
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background-color: #0d6efd; /* น้ำเงิน */
    margin-left: 6px;
}

/* ลูกดูเบากว่าแม่ */
.sitemap-item-header .item-title {
    font-size: 0.95rem;
}

/* hover */
.sitemap-item-header:hover .toggle-icon.dot {
    background-color: #084298;
}

.line-clamp-3{
    display: -webkit-box;
    -webkit-line-clamp: 3;     /* จำนวนบรรทัด */
    -webkit-box-orient: vertical;
    overflow: hidden;

    line-height: 1.5;
    max-height: calc(1.5em * 3);
}

.highlight-new {
  background: var(--highlight-new-bg);
  padding: 12px;
  border-left: 5px solid var(--highlight-new-primary);
  border-radius: 6px;
  font-weight: 500;
}
