
@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: "Prompt", sans-serif; color: #000; background-color: #FFF; margin: 0; padding: 0; font-size: 1rem; font-size: 100%;}
.header-logo{height: 80px; width: auto;}
@media (max-width: 575.98px) {.header-logo {  height: 75px;}}

.bg-1 {background-color: #ebf2f8;}
/* ##################### HEADER ##################### */

.header { position: relative; z-index: 3; padding: 0.7rem 0.5rem; display: flex; align-items: center; justify-content: space-between;}
.header-left {display: flex; align-items: center; gap: 0.6rem; }
.header-title {font-family: "Prompt", sans-serif; color: #FFF; font-weight: 600; text-shadow: 0 0 6px rgba(0, 0, 0, 1);}
.header-subtitle {font-family: "Prompt", sans-serif; display: block; font-size: 1.08rem; color: #FFF; font-weight: 400; text-shadow: 0 0 6px rgba(0, 0, 0, 1);}
.header-title:lang(en){
    font-size:1.6rem;
}

.line-header{border-bottom: 1px solid rgba(255, 255, 255, 0.5); position: relative; z-index: 2;}
.header-icons { display: flex; gap: 0.75rem; }
.header-icons {position: absolute; top: 10px; right: 0;}
.header-icons button { background-color: transparent; border: 1px 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;  outline: 1px solid #002244; outline-offset: 2px;}
@media (max-width: 420px) {
  .header { flex-direction: column; }
  .header-left { flex-direction: column; text-align: center; }
}
@media (min-width: 421px) and (max-width: 576px) { .header{ flex-direction: column;}}
#lang-btn{width: 90px; border-radius: 50px; font-size: 1rem;  color: #FFF;}
.language-menu .dropdown-item {min-width: 100px;}
@media (max-width: 992px) {
/* เพิ่ม CSS เพื่อป้องกันการซ่อน dropdown บนมือถือ */
.dropdown-menu.language-menu { z-index: 4; display: inline-block !important; position: absolute !important; top: 40px !important; opacity: 0;  visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;}
.dropdown-menu.language-menu.show { opacity: 1; visibility: visible;  }
}
.header-divider {border-bottom: 1px solid rgba(255, 255, 255, 0.6);}
@media (min-width: 576px) and (max-width: 623px) {
  .header-icons.gap-2 {gap:2px !important; right: 28px; }
}

/* ##################### Search ##################### */
:root {
      --global-search-primary-color: #0d6efd;
      --global-search-secondary-color: #6c757d;
      --global-search-light-bg: #f8f9fa;
      --global-search-border-color: #dee2e6;
}
.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; }

/*##################### TOPMENU ####################*/
.navbar { position: relative;  z-index: 2; width: 100%; padding: 0.5rem 1rem; }
.navbar-nav .nav-link { font-size: 1.1rem; color: white !important; font-weight: 500; padding-left: 0.4rem !important; padding-right: 0.4rem !important; border-radius: 0.5rem; transition: all 0.3s ease; white-space: normal;  text-shadow: 0 0 4px rgba(0, 0, 0, 1);}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus { background-color: rgba(255, 255, 255, 0.2); }
.navbar-collapse { justify-content: center !important;}
@media (min-width: 1300px) { .navbar-nav .nav-link { margin: 0 0.5rem;} }
@media (min-width: 1200px) { .navbar-nav .nav-link { margin: 0 0.25rem;} }
@media (max-width: 1199.98px) { .navbar-nav .nav-link { margin: 0;} }

@media (min-width: 992px) {
  .navbar-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
  .dropend:hover > .dropdown-menu, .dropstart:hover > .dropdown-menu { display: block; }
  .dropdown-item { /*min-width: 320px;*/ min-width:250px;}
}
.dropdown-menu { background-color: #fff; border: none; border-radius: 0.5rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); padding: 0.5rem 0; max-width: 350px; }
.dropdown-item { padding: 0.5rem 1rem; color: #333; transition: all 0.2s ease; position: relative; word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; line-height: 1.4; word-break: break-word; white-space: normal; }
.dropdown-item:hover, .dropdown-item:focus { background-color: #deeaf7; color: #004080; }
.custom-menuwidth1, .custom-menuwidth2, .custom-menuwidth3, .custom-menuwidth4, .custom-menuwidth5 { max-width: 400px; }
.dropdown-menu .dropdown-item { font-size: 1.05rem; font-weight: 500; padding: 0.4rem 0.8rem; }
.dropdown-item.long-text { min-height: auto; }
.dropend > .dropdown-menu { top: 0; left: 100%; margin-top: -0.5rem; }
.dropstart > .dropdown-menu { top: 0; right: 100%; margin-top: -0.5rem; }
.navbar-toggler { border-color: rgba(255, 255, 255, 0.5); margin: 10px; }
.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"); }
.custom-menuwidth1 { min-width: 250px; }
.custom-menuwidth2 { min-width: 220px; }
.custom-menuwidth3 { min-width: 240px; }
.custom-menuwidth4 { min-width: 280px; }
.custom-menuwidth5 { min-width: 320px; }
.link_color { color: #004080 !important; }
@media (min-width: 992px) { .custom-menuwidth5{min-width: 255px;}}

/* Menu Responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse { margin-top: 1rem; background: linear-gradient(to left, #132341, #1f3c6d); border-radius: 20px; padding-left: 10px; padding-right: 10px; }
  .dropdown-menu { margin-left: 1rem; border-left: 2px solid #004080; transform: none !important; max-width: none; }
  .dropend > .dropdown-menu, .dropstart > .dropdown-menu { margin-top: 0; border-left: 2px solid #004080; }
  .dropdown-toggle::after { display: inline-block; margin-left: 0.255em; 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; float: right; margin-top: 0.5em; }
  .dropdown-toggle[aria-expanded="true"]::after { transform: rotate(-180deg); }
  .dropdown-menu .dropdown-menu { margin-left: 1.5rem; border-left: 2px solid #6699cc; }
  .dropdown-menu .dropdown-menu .dropdown-menu { margin-left: 2rem; border-left: 2px solid #99bbdd; }
  .dropdown-item { white-space: normal; word-break: break-word; }
}
@media (min-width: 992px) and (max-width: 1199.98px) { .navbar-nav .nav-link{margin: 0rem 0rem;}}

.dropdown-item[href*="//"] { word-break: break-all; }

/* เมื่อจอ ≤ 1300px ให้เมนูลงบรรทัดใหม่ */
@media (max-width: 1300px) { .header-wrapper > .d-flex { flex-wrap: wrap;}}
@media (min-width: 576px) and (max-width: 1300px) { .header-icons { top:30px;}}

/*##################### HIGHTLIGHT ####################*/
.fullscreen-slider { position: relative; z-index: 1; top: 0; left: 0; width: 100%; height: 940px; /*height: 100vh;*/ overflow: hidden;  background-color: #002244;}
.fullscreen-slider .carousel,
.fullscreen-slider .carousel-inner,
.fullscreen-slider .carousel-item img { width: 100%; height: 940px; object-fit: cover; object-position: top center; }
.fullscreen-slider .carousel-caption { z-index: 3; /*background: rgba(0, 0, 0, 0.6);*/ padding: 30px; border-radius: 10px;
 top: 53%; left: 0; right: 0;  transform: translateY(-50%); width: 100%; text-align: left; }

.fullscreen-slider .carousel-caption h2 { color: #FFF; font-weight: 500; margin-bottom: 0px; font-size: 4rem; text-shadow: 0 0 4px rgba(0, 0, 0, 0.7); }
.fullscreen-slider .carousel-caption p { color:#FFF; margin-bottom:5px; text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);}
.highlight-caption1 {font-size: 1.3rem; font-weight: 600; text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);}
.highlight-caption2 {font-size: 1.1rem; text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);}
.fullscreen-slider .carousel-item::after {content: ""; position: absolute; z-index: 2; top: 0; left: 0; width: 100%; height: 300px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent); pointer-events: none;}

.arrow-slider-control{ bottom: 350px; right: 0;}
.fullscreen-slider .carousel-control-prev,
.fullscreen-slider .carousel-control-next {position: absolute; bottom: 30px; z-index: 4; width: 45px; height: 45px; background-color: rgba(0, 0, 0, 0.5); border-radius: 50%; border:1px solid #FFF; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);}
.fullscreen-slider .carousel-control-next {right: 0; opacity: 1; }
.fullscreen-slider .carousel-control-prev {right: 60px; left: auto; opacity: 1; }
.fullscreen-slider .carousel-control-prev:hover,
.fullscreen-slider .carousel-control-next:hover {background-color: rgba(3, 22, 46, 0.8); /*background-color: rgba(0, 0, 0, 0.7);*/}

.fullscreen-indicators {position: relative; z-index: 4;}
.fullscreen-slider .carousel-indicators { position: absolute; z-index: 4; min-height: 150px; width: max-content; top: 340px;
  left: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; margin: 0; list-style: none; }
.fullscreen-slider .carousel-indicators button { position: relative; width: 24px; height: 24px; margin: 0;  border-radius: 50%; border: none; opacity: 1; cursor: pointer; padding: 0; box-sizing: border-box; transition: background-color 0.3s, transform 0.3s;}
.fullscreen-slider .carousel-indicators .active { border: 6px solid rgba(255, 255, 255, 1); background-color: transparent; width: 24px; height: 24px;}
/* .fullscreen-slider .carousel-indicators button::after { content: ""; position: absolute;  width: 12px; height: 12px; border-radius: 50%; background-color: rgba(255, 255, 255, 1); transition: background-color 0.3s, opacity 0.3s, transform 0.3s;} */
.fullscreen-slider .carousel-indicators .active::after {content:none; }

/* 1600px ขึ้นไป */
.fullscreen-slider .carousel-indicators { right: 70px; }
@media (max-width: 1599.98px) { .fullscreen-slider .carousel-indicators { right: 90px; }}
@media (max-width: 1560px) { .arrow-slider-control { right: 80px;}}
@media (max-width: 1399.98px) { .fullscreen-slider .carousel-indicators { right: 100px; }}
@media (max-width: 1199.98px) { .fullscreen-slider .carousel-indicators { right: 110px; }}
@media (max-width: 991.98px) { .fullscreen-slider .carousel-indicators { top: 540px; right: auto;left: 50%; transform: translateX(-50%); flex-direction: row; }}
@media (max-width: 575.98px) {
  .fullscreen-slider .carousel-indicators { top: 540px; right: auto;left: 20%; flex-direction: row; }
  .arrow-slider-control { right: 140px; }
  .header-icons {right: 34px;}
  .fullscreen-slider .carousel-caption h2{ font-size: 3rem;}
  .fullscreen-slider .carousel-control-prev{ right: -45px !important;  left: unset;}
  .fullscreen-slider .carousel-control-next{ right: -100px;}
}

/* ##################### ICON dohtotravel #################### */
.action-buttons { position: absolute; z-index: 2; text-align: center; top: 300px; right:25px; border-radius: 50px; display: block !important; max-width: 115px; background: linear-gradient(to left, #132341, #1f3c6d); color: #FFF; padding: 15px 5px;}
.orange-circle {background-color: #f26d23; border-radius: 50%; width: 60px; height: 60px;}
.doh-to-travel-btn:hover .orange-circle { background-color: #d35410; }
.doh-to-travel-btn { color: #FFF; text-decoration: none; font-size: 0.65rem;  line-height: 1.5;}
.doh-to-travel-btn img { text-align: center; display: block; margin: auto; height: 100%;}
#accessibility-btn {position: relative !important; right: 0; bottom: 0 !important;}
#accessibility-btn button  {width: 65px; height: 65px; border-radius: 50%; padding: 1px; background: transparent; box-shadow:none; }
#accessibility-btn button:hover { background-color: #d35410; transform: scale(1) !important; }
#accessibility-btn button img {text-align: center; margin:auto ; }
.action-buttons-wrapper {display: flex; justify-content: center;  align-items: center; flex-direction: column; }
.action-buttons-wrapper a, .action-buttons-wrapper #accessibility-btn { display: flex; flex-direction: column; align-items: center;}

/* ##################### Service #################### */
.bg-services {position: relative; z-index: 1; top:-260px; background: linear-gradient(to left, #132341, #1f3c6d); border-radius: 60px; color: #FFF; padding: 10px 10px 10px 40px;}
.service-title { color: #FFF; font-size: 2.8rem; font-weight: 600;}
.service-subtitle { color: #FFF; font-size: 1.7rem; font-weight: 400;}
.icon-service, .icon-service-hover { max-height: 65px; margin-bottom: 5px; transition: 0.3s;}
.icon-service-hover { display: none;}
.service-box:hover .icon-service {display: none;}
.service-box:hover .icon-service-hover { display: block; opacity: 1;}
.service-item {position: relative; flex: 0 0 16%;  padding: 10px 5px; }
/* .service-item:not(:last-child)::after {position: absolute; content:""; border-right: 1px solid #FFF; top: 50px; right: 0; height: 80px; opacity: 0.3; } */

.service-box {text-decoration: none; max-width: 180px; width: 100%; margin: auto; padding: 10px; border-radius: 30px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 130px; transition: all 0.3s ease-in-out;}
.service-box:hover { background-color:rgba(0, 0, 0, 0.5);}
.service-box:hover .title-service-item { color: #fff; }
.service-box .title-service-item { font-size: 1rem; color: #FFF; margin-top: 10px; font-weight: 500; transition: color 0.3s ease;}
.slider-controls { position: relative; top: 75px; left: 0; right: 0; transform: translateY(-50%); justify-content: space-between; z-index: 10;}
.slider-controls .carousel-control-prev, .slider-controls .carousel-control-next { position: absolute; top: 50%; right: 20px; transform: translateY(-50%);  width: 45px; height: 45px; background-color:transparent; border: 1px solid #FFF !important; opacity: 0.9; border-radius: 50%; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);border: none; cursor: pointer;}
.slider-controls .carousel-control-prev:hover, .slider-controls .carousel-control-next:hover{ opacity: 1;}
.slider-controls .carousel-control-prev-icon,
.slider-controls .carousel-control-next-icon { position: absolute; border: 1px solid #FFF; border-width: 0 3px 3px 0; width: 15px; height: 15px; background-image: none;}
.slider-controls .carousel-control-prev-icon { transform: rotate(135deg); left: 18px;}
.slider-controls .carousel-control-next-icon { transform: rotate(-45deg); right: 18px;}

/* Service Responsive Styles */
@media (max-width: 1199px) { .service-item {flex: 0 0 16%; }}

@media (max-width: 992px) {
  .service-item {flex: 0 0 16%; padding: 10px 0px;}
  .slider-controls { left:-20px; right: -20px;}
}

@media (min-width: 767px) and (max-width: 821px) {
  .slider-controls {left: 0; right: 0; }
  .service-box {padding: 15px;}
}

@media (max-width: 767px) {
  .service-item { flex: 0 0 30%; padding: 10px 2px;}
  .slider-controls {left: 0; right: 0; }
  .service-item {padding: 0px 0px 10px 0px;}
}

@media (max-width: 576px) {
 /*.service-item { flex: 0 0 100%;} */
  .service-title { font-size: 2.2rem; /*text-shadow: -2px 0 0 white, 2px 0 0 white, 0 -2px 0 white, 0  2px 0 white,
        -2px -2px 0 white, 2px -2px 0 white, -2px  2px 0 white, 2px  2px 0 white;*/  }
  .service-subtitle {  font-size: 1.5rem;}
}
@media (max-width: 420px) { .service-item { flex: 0 0 100%; }}

@media (min-width: 992px) and (max-width: 1199.98px) { .slider-controls {top: 60px; }}
@media (min-width: 0px) and (max-width: 991.98px) {
  .slider-controls .carousel-control-next{ right: 0;}
  .bg-services{padding: 10px;}
  .slider-controls {left: 0; right: 0;}
}
@media (min-width: 501px) and (max-width: 768px) {
   .fullscreen-slider .carousel-caption {padding: 0px; width: 70%; left: -20%;}
}
@media (min-width: 345px) and (max-width: 500px) {
   .fullscreen-slider .carousel-caption {padding: 0px; width: 65%; left: -25%;}
}
@media (min-width: 0px) and (max-width: 344px) {
  .fullscreen-slider .carousel-caption {padding: 0px; width: 45%; left: -40%;}
  .fullscreen-slider .carousel-caption h2 {font-size: 2.2rem; word-wrap: break-word; line-height: 1; margin-top: 20px;}
}
@media (min-width: 421px) and (max-width: 575.98px) {
  .header { margin-top: -40px; }
  .header-icons { position: relative; top: 130px; right: 0; justify-content: center;}
  .navbar {margin-top: 50px;}
}
@media (min-width: 0px) and (max-width: 420px) {
  .header { margin-top: -40px; }
  .logo-name {flex-direction: column; text-align: center; align-items: center;}
  .header-icons { position: relative; top: 180px; right: 0; justify-content: center;}
  .header-logo {height: 75px; width: 75px;}
  .navbar {margin-top: 50px;}
  .service-heading-wrap { flex-direction:column !important; }
  .service-item:not(:last-child)::after { display: none;}
}
@media (min-width: 421px) and (max-width: 766.98px) {
  .slider-controls {position: absolute; top: 50%; transform: translateY(-50%); }
}
@media (min-width: 422px) and (max-width: 768px) {
.service-heading-wrap{  display: block !important; text-align: center;}
.bg-services { padding: 5px 35px 5px 35px; }
.service-item:not(:last-child)::after {top: 24px;}
.slider-controls {left: 5px; right: 5px;}
}

/* ##################### HDMS รายงานสถานการณ์ #################### */
.bg-light-blue{ background-color: #ebf2f8;  margin-top: -180px;}
.box-hdms {border-radius: 40px; box-shadow: rgba(0, 0, 0, 0.1) 0px 8px 15px; justify-content: center;}
.text-dark1 {color: #282828;}
.circle-icon-flood{ background-color: #ebf2f8; border-radius: 50%; padding: 12px; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; text-align: center;}
.box-hdms .box-hdms-stat { flex: 1; background-color: #0b346a; color: #fff; border-radius: 14px; padding:10px;}
.box-hdms .box-hdms-stat .num { font-size:2rem; font-weight: 500; line-height: 1;}
.box-hdms .box-hdms-pass { position: relative; border-radius: 16px; background-color: #046451; color: #FFF; text-align: center; line-height: 1.3;}
.box-hdms .box-hdms-fail { position: relative;  border-radius: 16px; background-color: #ae1818; color: #FFF; text-align: center; line-height: 1.3;}
.hdms-item {position: relative;  flex: 1; }
.hdms-item:not(:last-child)::after {position: absolute; content:""; border-right: 1px solid #FFF; top: 0; right: 0; left:50%; height: 50px; opacity: 0.5; }
.num2{font-size:1.8rem; font-weight: 500; line-height: 1;}
.num3{font-size:1.9rem; font-weight: 500; line-height: 1;}
.box-hdms .box-hdms-flood { border-radius: 16px;  color: #fff; min-height: 100%; background-color: #000;}
.box-hdms .box-hdms-flood img{ opacity: 0.3; object-fit: cover;}
@media (min-width: 0px) and (max-width:  767.98px) { .bg-light-blue { margin-top: -250px;} }
@media (min-width: 768px) and (max-width:  991.98px) { .bg-light-blue { margin-top: -230px;} }
@media (min-width: 992px) and (max-width:  1199.98px) { .bg-light-blue { margin-top: -250px;} }
@media (min-width: 1200px) and (max-width: 1399.98px) { .bg-light-blue { margin-top: -190px;} }


/* ##################### NEWS #################### */
.title-news {color: #282828;font-size:2.4rem; font-weight: 600;}
.traffic-sign1 { position: absolute; top:0; z-index: -1; }
.w-80 { max-width: 80%; }
@media (min-width: 768px) {
  .w-md-80 { width: 80% !important; }
}
.btn-viewall { margin-top: -10px; background-color: #973602; border-radius: 1rem; padding:8px 20px; font-size: 1rem; font-weight: 500; line-height: 1.2;  display: inline-block; align-items: center; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);}
.btn-viewall:hover, .btn-viewall:focus { background-color: #a93c02; outline: none; text-decoration: none;}
#newsTabs .nav-link.active{ font-size: 1.4rem; font-weight: 500; border-radius: 50px;  }
#newsTabs .nav-link{color: #282828; font-size: 1.4rem; font-weight: 400; border-radius: 50px; border: 2px solid #0b346a; margin-left: 8px; margin-right: 8px; margin-bottom: 10px; padding:5px 20px 5px 20px;}
#newsTabs{border-bottom: 0;}
#newsTabs .nav-link:focus, #newsTabs .nav-link:hover, #newsTabs .nav-link.active {color: #FFF; background-color: #973602; border: 2px solid #9b3a05;}
.box-news-card {margin-top: auto;}
.box-news-card .news-card img { object-fit: cover; object-position:top center; display: block; width: 100%; box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);}
.box-news-card:nth-child(odd) .news-card img {  height: 470px; overflow: hidden; border-radius: 50px 0px 50px 0px; }
.box-news-card:nth-child(even) .news-card img { height: 440px; overflow: hidden; border-radius: 0px 50px 0px 50px; }
.badge-news {background-color: #bcddf8; color: #0b346a; font-weight: 500; font-size:1rem; padding: 2px 10px; border-radius: 20px; margin-bottom:5px; display: inline-block;}
.news-meta {font-size: 0.875rem; color: #FFF;}
.news-meta-black {font-size: 0.875rem; color: #000;}

/* ==== ข่าวหนังสือพิมพ์==== */
.newspaper-item { border-bottom: 1px solid #eaeaea; padding-bottom: 1rem; margin-bottom: 1rem; transition: all 0.2s ease; }
.newspaper-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0;}
.newspaper-card { border: 1px solid #e0e0e0; border-radius: 30px; transition: all 0.3s ease;height: 100%; }
.newspaper-header { background: #0b346a;border-radius: 30px 30px 0 0; border-bottom: 1px solid #e0e0e0;color: #FFF; }
.newspaper-title {font-size: 1.1rem; color: #282828; font-weight: 500; line-height: 1.4; transition: color 0.2s; }
.newspaper-title:hover {color: #0d6efd;}

.page-news .news-meta,
.news-detail .news-meta,
.news-detail .card-news-title {
    color: #555;
}

.vdo-card .card-news-title{
    /* color: rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1)); */
    color: #000;
}

.news-meta time{
    color: #000;
}

.news-meta-news {
    color: #000;
}

/* ##################### Tab ข่าวภูมิภาค regional_news #################### */
.news-event-item {display: flex; border-bottom:1px solid #ccc; padding-bottom: 5px; margin-bottom: 5px;}
.news-event-text a{ color: #282828; font-size: 1.1rem; font-weight: 500; text-decoration: none; line-height: 1.4;}
.news-event-text a {display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.4em * 4);}
.news-event-text a:hover { color: #0d6efd; }
.img-news-thumbnail { min-width: 90px; height:68px; object-fit: cover; object-position: center; background-color: #ccc; border-radius: 4px; margin-right:10px; border: 1px solid #eee;}
@media (min-width: 0px) and (max-width: 400px) {
  .news-event-item {flex-direction: column; align-items: center;}
  .img-news-thumbnail {margin-bottom: 10px;}
}

.card-news-title { font-size: 1.1rem; font-weight: 500; line-height: 1.4; height: 75px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;}
.news-card-body { position: relative; z-index: 1; background-color: #0b346a; color: #FFF; border-radius: 0px 50px 0px 50px; margin-top: -120px; padding: 30px; width: 93%; margin-bottom: 30px;}
.news-time{ /*color: #f26d23; color: #ffb84d;*/ color: #fcbb8c; font-size: 1.3rem; font-weight: 500; line-height: 1.2; margin-bottom: 0;}
.news-card a { color: #FFF; text-decoration: none;}
.news-card a:hover{color: #dbfbfc;}
@media (min-width: 1200px) { #newsTabs { margin-bottom: 80px;} }

/* ##################### VIDEO #################### */
.video-thumbnail-wrapper { position: relative; aspect-ratio: 16 / 9; width: 100%; background-color: #000; overflow: hidden; border-radius: 30px;}
.video-thumbnail-wrapper 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);}

/* ##################### INFOGRAPHIC #################### */
.infographic-carousel .carousel-indicators { bottom: -50px;}
.infographic-carousel .carousel-indicators button { width: 16px; height: 16px; border-radius: 50%; background-color: #ccc; border: none; transition: all 0.3s;}
.infographic-carousel .carousel-indicators .active {  background-color: #0b346a; opacity: 1;}
.infographic-carousel .card-container { display: flex;  justify-content: center; gap: 5rem; flex-wrap: wrap;}
.infographic-carousel .card { flex: 0 1 40%; max-width: 230px; overflow: hidden; border-radius: 0px; border: 0;}
.infographic-carousel .card img { width: 230px; height: 322px; display: block; object-fit: cover; object-position: top center;  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);}

@media (max-width: 768px) {
  .infographic-carousel .card-container { flex-direction: column;  gap: 1.5rem; align-items: center;  }
  .infographic-carousel .card { flex: 1 1 80%; max-width: 230px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .infographic-carousel .card-container { flex-wrap: nowrap; justify-content: center;  gap: 2rem; }
  .infographic-carousel .card { flex: 0 1 auto; max-width: 286px;}
  .video-thumbnail-wrapper {height: 300px;}
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .infographic-carousel .card-container {  gap: 3rem; }
 }

/* ##################### TAB ประกาศ #################### */
.title-prakat { color: #FFF; font-size: 2.2rem; font-weight: 500;}
.bg_doh_tab { background-color: #0b346a; border-radius: 160px 0px 160px 0px; padding-top: 60px; padding-bottom: 120px; color: #FFF; }
.doh_tab .nav-tabs { border-bottom: none; gap: 1rem; display: flex; flex-wrap: wrap; padding-bottom: 1rem; justify-content: flex-start;}
.doh_tab .nav-tabs .nav-link { border: 2px solid #FFF; border-radius: 50px; color: #fff; background-color: transparent; font-size: 1.4rem; font-weight:400; padding: 0.5rem 2rem; white-space: nowrap;}
.doh_tab .nav-tabs .nav-link.active, .doh_tab .nav-tabs .nav-link:hover:not(.active) { background-color: #973602; border-color: #9b3a05; font-weight:500; color: #fff;}

@media (max-width: 576px) {
  .doh_tab .nav-tabs { flex-direction: column; gap: 0.75rem; }
  .doh_tab .nav-tabs .nav-link { width: 100%; text-align: center; padding: 0.75rem 1rem; font-size: 1rem; }
  .bg_doh_tab { border-radius: 120px 0px 120px 0px;}
}
/* ##################### จัดซื้อจัดจ้าง #################### */
.procurement-indicators {bottom: -80px; }
.procurement-indicators [data-bs-target] {position: relative; width: 14px; height: 14px; border-radius: 50%; background-color: #FFF; opacity: 1;}
.procurement-indicators .active { border: 4px solid rgba(255, 255, 255, 1); background-color: transparent; width: 12px; height: 12px;}
.procurement-indicators .active::after {content: ""; position: absolute;  left: 6px; width: 12px; height: 12px; border-radius: 50%; background-color: rgba(255, 255, 255, 1); transition: background-color 0.3s, opacity 0.3s, transform 0.3s;}
.procurement-indicators .active::after {content:none; }

.procurement-card { border-radius: 30px; background-color: #fff; color: #000; font-size: 1.1rem; font-weight: 500; padding: 20px 20px 15px 20px;}
.procurement-card a {text-decoration: none; color: #000;}
.procurement-card a:hover{color: #0323b3; }
.icon-folder { background-color: #d7e7f4; border-radius: 6px; width: 40px; height: 40px; padding: 8px; display: flex; align-items: center; justify-content: center; text-align: center;}
.text-procurement-date { color: #943603; font-size: 0.9rem; font-weight: 500;}
.divider-1 { margin-top: 10px; margin-bottom: 10px;  border-bottom: 1px solid rgba(0, 0, 0, 0.3);}
.small-text-procurement {font-size: 0.9rem;}
a.btn-more { color: #0b346a; font-weight: 500; cursor: pointer; font-size: 1rem; border:1px solid #FFF; border-radius: 50px; margin-top: 5px; padding-left: 15px; padding-right: 5px; padding-top: 5px; padding-bottom: 5px;}
a.btn-more:hover{color: #0323b3; background-color: #eee; }
.title-procurement { height: 80px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;}

/* ##################### รับสมัครงาน ข้าราชการ #################### */
.officer-card { border-radius: 30px; background-color: #fff; color: #000; font-size: 1.1rem; font-weight: 500; padding: 20px 20px 15px 20px; }
.officer-card a { text-decoration: none; color: #000; }
.officer-card a:hover { color: #0323b3; }
.text-officer-date { color: #943603; font-size: 0.9rem; font-weight: 500; }
.small-text-officer { font-size: 0.9rem; }
.officer-header {display: flex; align-items: center;  gap: 10px;}
.title-officer {padding-left: 50px;}

/* ##################### EBOOKS #################### */
.text-dark-blue {color: #0b346a;}
.ebook-section { position: relative; padding: 80px 0px 50px 0px; overflow: hidden; margin-bottom: 80px;}
.ebook-section::before { content: ""; position: absolute; left: 0; top: 0; width: 49%; height: 100%; background: #e4eef7; border-bottom-right-radius: 120px; z-index: -1; }
.ebook-items { display: flex; justify-content: center;  align-items: center  !important; gap: 50px;}
.ebook-img { border-radius: 0px; box-shadow: 0 6px 15px rgba(0,0,0,0.5);}
.img-large  { width: 260px; }
.img-medium { width: 210px; }
.img-small  { width: 180px; }
.ebook-prev,
.ebook-next { width: 50px; height: 50px; background: #f26d23; opacity: 1; border-radius: 50%; top: 50%; transform: translateY(-50%); box-shadow: 0 3px 6px rgba(0,0,0,0.15); }
.ebook-prev { left: -60px; }
.ebook-next { right: -60px; }
/*
.ebook-prev,
.ebook-next {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
}*/

@media (min-width: 992px) and (max-width: 1200px) {
.ebook-items { gap: 20px;}
.img-large { width: 200px; height: auto; object-fit: contain; }
.img-medium {width: 170px; height: auto; object-fit: contain;}
.img-small { width: 145px; height: auto; object-fit: contain;}
.ebook-section .carousel-item { min-height: 220px; }
}

@media (max-width: 992px) {
.ebook-items { gap: 20px;}
.img-large  { width: 220px; }
.img-medium { width: 180px; }
.img-small  { width: 150px; }

.ebook-prev { left: -10px; }
.ebook-next { right: -10px; }
}

@media (max-width: 768px) {
.ebook-items { flex-direction: column; gap: 20px; }
.img-large,
.img-medium,
.img-small { width: 200px;}
}

/* ##################### Recommended links #################### */
.recommended_links { padding-bottom: 60px; background-image: url(../images/bg-recommended.jpg); background-size: cover; background-position: bottom center; background-repeat: no-repeat;}
.recommended-grid {display: flex;flex-wrap: wrap; gap: 3rem; position: relative; justify-content: center;}
.recommended-grid .card-link { position: relative; display: block; width: 225px; text-decoration: none; color: inherit;
  transition: transform 0.3s; padding: 12px; background-color: #FFF;  box-shadow: 1px 2px 10px rgba(0,0,0,0.2);
  margin: 0; overflow: hidden; border-radius: 30px 0px 30px 0px;}
.recommended-grid .card-link:hover { transform: translateY(-8px);}
.recommended-grid .card-link img { border-radius: 20px 0px 0px 0px; display: block; width: 100%; height: auto; object-fit: cover;}
.title-card-recommended { margin-left: 20px; margin-top: 5px; font-size: 1.4rem; font-weight: 600; color: #0b346a;}

/* ทำให้แต่ละการ์ดไล่ระดับ แนวทแยง */
.recommended-grid .item-1 { order: 0; margin-top: 200px;  height: 100%; }
.recommended-grid .item-2 { order: 1; margin-top: 90px;  height: 100%; }
.recommended-grid .item-3 { order: 3; margin-top: -120px;  left: 136px;  height: 100%;}
.recommended-grid .item-4 { order: 2; margin-top: 0;  height: 100%;}
.recommended-grid .item-5 { order: 4; margin-top: -210px; left: 137px; height: 100%;}

.recommended-grid:has(.item-3:last-child) .item-3{
    margin-top: 0;
    left:0;
}

.btn-viewall-recommended {margin-left: 20px; background-color: #973602; border-radius: 1rem; padding: 3px 10px; font-size: 0.9rem; font-weight: 500; color: #FFF; display: inline-block; align-items: center; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);}
.btn-viewall-recommended:hover, .btn-viewall-recommended:focus { background-color: #a93c02; outline: none; text-decoration: none;}

.recommended_links .carousel-indicators [data-bs-target] { background-color: #FFF; width: 24px; height: 24px; margin: 0 6px; border-radius: 50%; opacity: 0.6; transition: opacity 0.5s; }
.recommended_links .carousel-indicators .active { opacity: 1; }
.recommended_links .carousel-indicators { bottom: -80px;}
.recommended_links .carousel-control-prev,
.recommended_links .carousel-control-next { filter: invert(1) !important; background-color:transparent !important;}
.recommended_links .carousel-control-prev {
    left: -50px;
}

.recommended_links .carousel-control-next {
    right: -50px;
}

@media (max-width: 1200px) {
    .recommended-grid { gap: 2rem; }
    .recommended-grid .card-link { width: 190px;}
    .recommended-grid .item-1 { margin-top: 150px; }
    .recommended-grid .item-2 { margin-top: 60px; }
    .recommended-grid .item-3 { margin-top: -65px; left: 111px; }
    .recommended-grid .item-5 { margin-top: -150px; left: 111px; }
    .title-card-recommended { font-size: 1.3rem; }
}

@media (max-width: 992px) {
    .recommended-grid {gap: 3rem;}
    .recommended-grid .card-link { width: 170px; padding: 10px;}
    .recommended-grid .item-1 { margin-top: 120px; }
    .recommended-grid .item-2 { margin-top: 40px; }
    .recommended-grid .item-3 { margin-top: -60px; left:0; }
    .recommended-grid .item-5 { margin-top: -70px; left: 85px; }
    .title-card-recommended { font-size: 1.2rem; margin-left: 15px;}
    .btn-viewall-recommended { margin-left: 15px; font-size: 0.85rem;}
}

/* หน้าจอเล็ก 576px - 768px */
@media (max-width: 768px) {
    .recommended-grid { gap: 2.5rem; justify-content: center;}
    .recommended-grid .card-link { width: 45%; max-width: 200px; margin-bottom: 0rem;}

    /* ลบ staggered effect ทั้งหมด */
    .recommended-grid .item-1,
    .recommended-grid .item-2,
    .recommended-grid .item-3,
    .recommended-grid .item-4,
    .recommended-grid .item-5 { margin-top: 0 !important; left: 0 !important;order: unset;}

    /* จัดลำดับการแสดงผลใหม่แบบ 2 คอลัมน์ */
    .recommended-grid .item-1 { order: 1; }
    .recommended-grid .item-2 { order: 2; }
    .recommended-grid .item-3 { order: 3; }
    .recommended-grid .item-4 { order: 4; }
    .recommended-grid .item-5 { order: 5; }

    .title-card-recommended { font-size: 1.3rem;}
}

@media (max-width: 576px) {
    .recommended-grid { gap: 2.5rem; flex-direction: column; align-items: center;}
    .recommended-grid .card-link {width: 85%; max-width: 280px;}
    .title-card-recommended {font-size: 1.4rem; margin-left: 20px;}
    .btn-viewall-recommended {font-size: 0.9rem; padding: 5px 12px;}
}

@media (min-width: 2000px) {
    .recommended-grid .card-link { width: 250px; }
    .recommended-grid .item-1 { margin-top: 220px; }
    .recommended-grid .item-2 { margin-top: 100px; }
    .recommended-grid .item-3 { margin-top: -140px; left: 160px; }
    .recommended-grid .item-5 { margin-top: -230px; left: 160px; }
}

/* ##################### BANNER Partner #################### */
.partner_banner { position: relative; margin-top: 25px;}
.partner_banner .carousel-control-prev, .partner_banner .carousel-control-next { filter: invert(0) !important; position: absolute; width: 45px; height: 45px; background-color:#f3f4f5 !important; border-radius: 50%;  position: absolute; top: 50%; transform: translateY(-50%); box-shadow:none;}
.partner_banner .carousel-control-prev { left: -55px;}
.partner_banner .carousel-control-next { right: -55px;}
.partner_banner .carousel-control-prev-icon,
.partner_banner .carousel-control-next-icon { position: absolute;  border: solid #282828; border-width: 0 3px 3px 0;  width: 15px; height: 15px; background-image: none;}
.partner_banner .carousel-control-prev-icon { left: 19px; transform: rotate(-225deg); }
.partner_banner .carousel-control-next-icon { right: 19px; transform: rotate(-45deg); }
.partner-item a { display: inline-block; transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 20px;}
.partner-item a:hover{ opacity: 0.95; }
.partner-item img { border-radius: 16px; }
@media (max-width: 768px) {
  .partner_banner { padding-bottom: 50px; margin-top: 50px; }
  .partner_banner .carousel-control-next {right: 0px; }
  .partner_banner .carousel-control-prev {left: 0px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .partner_banner {  width: 92%; margin-left: auto; margin-right: auto;  padding-top: 25px;}
  .partner_banner .carousel-control-next, .partner_banner .carousel-control-prev {top:52px;}
 }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .partner_banner {  width: 90%; margin-left: auto; margin-right: auto; padding-top: 25px;}
  .partner_banner .carousel-control-next, .partner_banner .carousel-control-prev {top:58px;}
 }

/* ##################### FOOTER #################### */
.bg-address{ position: relative; z-index: 0;}
.bg-address::before {content: ""; position: absolute; left: 0; top: 0; /*width: 38%;*/ height: 100%; background: #e8f3f9; z-index: -1;}
.textfooter h2, .textfooter h3 { color: #003f72}
.name-bottom{color: #003f72}
.address-footer strong{color: #003f72}
.menu-bottom li a, .text-mail {color: #000; text-decoration: none;}
.menu-bottom li a:hover, .text-mail:hover {color: #0d6efd;}
.bg-copyright{background-color: #f3f4f5; color: #000; }
.bg-copyright nav a{color: #000; text-decoration: none;}
.bg-copyright a:hover{color: #0d6efd; }
.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-address::before {width: 38%;}
/*
@media (min-width: 5000px) {
    .bg-address::before { width: 45% !important; }
}
@media (min-width: 3800px) and (max-width: 4999.98px) {
    .bg-address::before { width: 44%;}
}
@media (min-width: 3000px) and (max-width: 3799.98px) {
    .bg-address::before { width: 42%;}
}
@media (min-width: 2500px) and (max-width: 2999.98px) {
    .bg-address::before { width: 40%;}
}
@media (min-width: 2000px) and (max-width: 2499.98px) {
    .bg-address::before { width: 38%;}
}
@media (min-width: 1700px) and (max-width: 1999.98px) {
    .bg-address::before { width: 35%;}
}
@media (min-width: 1400px) and (max-width: 1699.98px) {
    .bg-address::before { width: 33%;}
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .bg-address::before { width: 35%; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .bg-address::before { width: 36%; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .bg-address::before {width: 49%;}
}
@media (max-width: 767.98px) { .bg-address::before { width: 100%; }}
*/
.col-bg-lightblue { position: relative; z-index: 1; background: none;}
.col-bg-lightblue::before {content: ""; position: absolute; top: 0; left: 95%; width: 100vw; height: 100%;
  background: #e8f3f9; z-index: -1; transform: translateX(-100%); }
@media (max-width: 767.98px) { .col-bg-lightblue::before { left: 100%;} }
@media (min-width: 768px) and (max-width: 991.98px) {
  .col-bg-lightblue::before { height: 179%; }
}

/* ##################### 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 #################### */
/* แก้ไขปัญหา Modal ในโหมด Accessibility */
@media (prefers-contrast: no-preference) {
  .modal-backdrop { --bs-backdrop-zindex: -1 !important;}
  .modal { background-color: rgba(0, 0, 0, 0.5) !important; }
}

.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;}

/* ##################### 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 #################### */
.header_page_top { position: relative; background-image: url(../images/header_page.jpg); background-size: cover; background-position: left top; background-repeat: no-repeat;}
.header_page_top::after {content: ""; position: absolute; z-index: 2; top: 0; left: 0; width: 100%;
   background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 25px,
        rgba(0, 0, 0, .2) 100%,
        rgba(0, 0, 0, 0.0) 100%
    );
 /*background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);*/ pointer-events: none;}
@media (min-width: 1399.98px) {
  .header_page_top { position: relative; height: 160px;}
  .header_page_top::after { height: 160px; }
}
@media (min-width: 576px) and (max-width: 1399.98px) {
  .header_page_top { position: relative; height: 200px;}
  .header_page_top::after { height: 200px; }
}
@media (min-width: 421px) and (max-width: 575.98px) {
  .header_page_top { position: relative; height: 225px;}
  .header_page_top::after { height: 225px; }
}
@media (max-width: 420px) {
  .header_page_top { position: relative; height: 275px;}
  .header_page_top::after { height: 275px; }
}
.line-footer { border-bottom:1px solid #e8f3f9; }
.page-bottom{ margin-bottom: 200px;}
.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;}


.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; }


/* ##################### History Page #################### */
.timeline-container { position: relative; padding-top: 30px; padding-bottom: 30px; }
.timeline-line { position: absolute; top: 0; left: 50%; width: 3px; height: 100%; background: #999; transform: translateX(-50%); z-index: 0; }
.timeline-line { top: 0; height: calc(35%); }
.timeline-line.dashed { top: 30%; height: calc(70%); border-left: 3px dashed #999; border-left: 3px solid transparent; border-image: repeating-linear-gradient(to bottom, #999 0, #999 10px, transparent 10px, transparent 20px); border-image-slice: 1; background: none; }
.timeline-event { position: relative; margin-top: 1rem; margin-bottom: 2rem; display: flex; align-items: flex-start; }
.timeline-event.left .content { padding: 0; width: 60%; text-align: right; padding-right: 7rem; position: relative;z-index: 1;}
.timeline-event.right .content { padding: 0; width: 60%; text-align: left; padding-left: 7rem; margin-left: auto; position: relative;z-index: 1;}
.timeline-event .year { width: 55%; font-weight: bold; font-size: 1.9rem; color: #757575; position: relative; z-index: 1;}
.timeline-event.left .year { order: 2; padding-left: 4rem; line-height: 30px; }
.timeline-event.right .year { order: 0; text-align: right; padding-right: 4rem; line-height: 30px; }
/* จุดวงกลม */
.timeline-dot { position: absolute; left: 50%; top: 0.5rem; width: 16px; height: 16px; background: #999; border-radius: 50%; z-index: 0; transform: translateX(-50%); }
.timeline-car { position: relative; text-align: center; margin: 0rem 0rem 5rem 0rem; }
.timeline-car img { width: 60px; position: relative; z-index: 1; }
/* เส้นแนวนอนสำหรับทุกจุด */
.timeline-dot::before {content: ""; position: absolute; top: 50%; width: 60px; height: 1px; background: #999; transform: translateY(-50%);}
.timeline-event.left .timeline-dot::before { left: 26px;}
.timeline-event.right .timeline-dot::before { right: 26px;}

/* Responsive */
@media (max-width: 768px) {
    .timeline-line { left: 30px; }
    .timeline-event, .timeline-event.left, .timeline-event.right { flex-direction: column; width: 100%; margin-left: 0; padding-left: 60px; }
    .timeline-event .content, .timeline-event.left .content, .timeline-event.right .content { width: 100%; text-align: left !important; padding: 0 !important; margin: 0 !important; }
    .timeline-event .year { width: 100%; text-align: left !important; padding: 0 !important; margin-bottom: 10px; font-size: 1.5rem;}
    .timeline-event.left .year { order: -1;}
    .timeline-dot { left: 30px; }
    .timeline-car { margin-left: 30px; text-align: left; margin-bottom: 3rem; }
    .timeline-car img { width: 40px; margin-left: 0; transform: translateX(-50%); position: relative; left: 0px; }
    /* ปรับเส้นแนวนอนให้สั้นลงในจอแท็บเล็ต */
    .timeline-dot::before { width: 12vw; max-width: 15px; min-width: 15px; }
    .timeline-event.left .timeline-dot::before,
    .timeline-event.right .timeline-dot::before { left: 18px; right: 18px; }
}
@media (max-width: 576px) {
    .timeline-line { left: 20px; }
    .timeline-event, .timeline-event.left, .timeline-event.right { padding-left: 40px; }
    .timeline-dot { left: 20px; }
    .timeline-car { margin-left: 20px; }
    .timeline-car img { width: 40px; left: 0px; }

    /* ปรับเส้นแนวนอนให้สั้นลงในมือถือ */
    .timeline-dot::before { width: 20vw; max-width: 10px; min-width: 10px; }
    .timeline-event.left .timeline-dot::before,
    .timeline-event.right .timeline-dot::before { left: 14px; right: 14px; }
}

/* ##################### org structure Page #################### */
.org-chart {
  --org-primary-color: #445b72;
  --org-secondary-color: #95d1fa;
  --org-accent-color: #e74c3c;
  --org-light-color: #ecf0f1;
}

.org-chart { position: relative; padding: 0rem 0 0rem 0; min-height: 800px; }
.org-level { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; position: relative; }
.org-node { background-color: white; border: 2px solid var(--org-primary-color); border-radius: 12px; padding: 0.5rem; margin: 0.5rem; text-align: center; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; position: relative; z-index: 10; }
/*.org-node:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); }*/
.org-node h3, .org-node h4, .org-node h5 { margin: 0.5rem 0; font-weight: 600; }
.org-node.level-1 { background-color: var(--org-primary-color); color: white; border-color: var(--org-primary-color); width: 60%; }
.org-node.level-2 { background-color: var(--org-secondary-color); color: white; border-color: var(--org-secondary-color); flex: 1; min-width: 300px; max-width: 500px; }
.org-node.level-3 { background-color: var(--org-light-color); color:#000; flex: 1 0 18%; padding: 1rem 0rem; min-width: 200px; max-width: 300px; font-weight: 700;}
.org-node.full-width { flex: 0 0 100%; max-width: 100%; }
.connectors-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.connector { position: absolute; background-color: #b3b3b3; z-index: 1; }
.connector.vertical { width: 2px; }
.connector.horizontal { height: 2px; }
.org-chart-container { overflow-x: auto; position: relative; }
.org-node:focus { outline: 3px solid #005fcc; outline-offset: 2px; }
@media (prefers-contrast: high) { .org-node { border-width: 3px; } .connector { background-color: #000; } }
@media print { .org-node { break-inside: avoid; box-shadow: none; border: 2px solid #000; } .org-node.level-1 { background-color: #fff; color: #000; border: 3px solid #000; } }
@media (max-width: 1200px) { .org-node.level-3 { flex: 1 0 22%; } }
@media (max-width: 992px) { .org-node.level-3 { flex: 1 0 30%; } .level-2-container { flex-direction: column; align-items: center; } .org-node.level-2 { min-width: 90%; max-width: 90%; } }
@media (max-width: 768px) { .org-level { flex-direction: column; align-items: center; } .org-node { min-width: 90%; margin: 0.5rem 0; } .org-node.level-3 { flex: 1 0 100%; } }
.skip-link { position: absolute; top: -40px; left: 6px; background: #000; color: #fff; padding: 8px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 0; }
.org-node ul { text-align: left; padding-left: 1rem; margin-bottom: 0; }
.org-node li { margin-bottom: 0.25rem; }
.level-2-container { display: flex; justify-content: space-between; gap: 2rem; width: 100%; }

/* =========================
   Level-2 node (หัว + เนื้อหา)
   ========================= */
.org-node.level-2 { background: transparent;  border: none; box-shadow: none; padding: 0; display: flex; flex-direction: column;
  overflow: hidden;  border-radius: 12px; flex: 1; min-width: 300px; max-width: 500px;}

/* ส่วนหัวกล่อง */
.org-node.level-2 .node-header {  background-color: #4ba6e3; color: #000; font-weight: 700;  text-align: center;  padding: 0.5rem 0.5rem;
  /*border-top-left-radius: 12px;  border-top-right-radius: 12px;*/ margin: 0px 10px 0px 10px; border-radius: 12px;  z-index: 1;}

/* ส่วนเนื้อหากล่อง */
.org-node.level-2 .node-body {  background-color: var(--org-secondary-color);  color: #000;  padding: 2rem; border-radius: 12px; /*border-bottom-left-radius: 12px;  border-bottom-right-radius: 12px;*/
  border: 1px solid #ccc;  border-top: none; margin-top: -5px; z-index: 0;}
.org-node.level-2 .node-body ul {  margin: 0;  padding-left: 1.5rem;  text-align: left;}
.org-node.level-2 .node-body li {  font-weight: 600;  margin-bottom: 0.4rem;}

.white-icon { filter: brightness(0) invert(1);}
.blue-icon { filter: invert(37%) sepia(70%) saturate(2900%) hue-rotate(190deg) brightness(95%) contrast(90%);}

/* ##################### คณะผู้บริหารปัจจุบัน board executives Page #################### */
.board-chart {text-align: center; margin-top: 150px; }
.board-level { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; gap: 30px; align-items: flex-start !important; }
.board-card-1 { position: relative; width: 350px; background: linear-gradient(to bottom, white 90%, rgba(243, 156, 18, 0.1)); border-radius: 15px; border-top: 4px solid #f39c12; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); padding: 40px 10px 25px; transition: transform 0.2s; display: flex; flex-direction: column; }
.board-card-1:hover { transform: translateY(-5px); }
.board-card { position: relative; width: 300px;     background: linear-gradient(to bottom, white 90%, rgba(40, 116, 166, 0.1)); border-radius: 15px; border-top: 4px solid #2874a6; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); padding: 40px 10px 25px; transition: transform 0.2s; display: flex; flex-direction: column; }
.board-card:hover { transform: translateY(-5px); }
.board-card img, .board-card-1 img { position: absolute; top: -130px; left: 50%; transform: translateX(-50%); width: 150px; height: 150px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.board-name-th { font-weight: 700; color: #1a5276; font-size: 1.3rem; font-weight: 600; margin-bottom: 3px; }
.board-name-en { font-size: 1rem; color: #1b6393; margin-bottom: 5px; }
.board-position { font-size: 1rem; color: #333; font-weight: 600; }
.board-level .board-card,.board-level .board-card-1 {  margin-bottom: 120px !important;}
@media (min-width: 1200px) {.board-level:nth-child(4) .board-card, .board-level:nth-child(4) .board-card-1 {  margin-bottom: 0 !important;}}
@media (max-width: 1200px) {.board-level:nth-child(4) .board-card:last-child, .board-level:nth-child(4) .board-card-1:last-child { margin-bottom: 0 !important;}}

/* ##################### ทำเนียบอธิบดี board former directors Page #################### */
.former-timeline { display: flex; flex-direction: column; align-items: center; padding: 1rem;  }
.former-timeline-item, .former-timeline-item-connector { display: grid; grid-template-columns: 180px 2px 1fr; align-items: center; width: 100%; max-width: 400px; margin: 0 auto;}
.former-timeline-date-wrapper { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; background-color: #fff; }
.former-timeline-date { text-align: center; font-weight: 600; background-color: #f6e3b6; border-radius: 0.5rem; padding: 0.5rem 1rem; color: #000; font-size: 1rem; min-width: 150px; }
.former-timeline-dash { font-weight: 600; font-size: 1rem; line-height: 1; color: #000; }
.former-timeline-connector { width: 2px; height: 100px; background-color: #B8860B; margin-left: auto; margin-right: auto; position: relative; }
.former-timeline-connector::before, .former-timeline-connector::after { content: ""; display: block; width: 10px; height: 10px; background-color: #B8860B; border-radius: 50%; position: absolute; left: 50%; transform: translateX(-50%); }
.former-timeline-connector::before { top: 0; }
.former-timeline-connector::after { bottom: 0; }
.former-timeline-content { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 1rem; position: relative; }
.former-timeline-avatar { width: 120px; height: 140px; flex-shrink: 0; object-fit: cover; object-position: top; border-radius: 0.75rem; }
.former-timeline-order { position: absolute; top: 15px; left: 150px; background-color: #f6e3b6; color: #000; width: 33px; height: 33px;border-radius: 50%; font-size: 1rem; font-weight: 400; padding: 5px; text-align: center; line-height: 1.5; user-select: none;  }
.former-timeline-name { margin: 0; font-size: 1.1rem; color: #000; font-weight: 600; flex-shrink: 0; }

@media (max-width: 576px) {
  .former-timeline-item, .former-timeline-item-connector { grid-template-columns: 1fr !important; text-align: center; max-width: 100%; padding: 0 1rem; margin-bottom:10px;}
  .former-timeline-content { flex-direction: column; align-items: center; }
  .former-timeline-avatar { width: 100px; height: 100px; }
  .former-timeline-order { position: static; margin-top: -8px; margin-bottom: -8px; left: auto; width: 30px; height: 30px; line-height: 33px;  font-size: 0.9rem; padding: 0; }
  .former-timeline-connector { height: 60px; margin-left: auto; margin-right: auto; }
  .former-timeline-date { min-width: auto; width: auto; padding: 0.3rem 0.8rem; font-size: 0.9rem; }
  .former-timeline-date-wrapper { gap: 0.15rem; }
}
@media (min-width: 577px) and (max-width: 670px) {
.former-timeline-item, .former-timeline-item-connector { max-width: 100%; padding: 0 0.5rem; grid-template-columns: 140px 2px 1fr;  }
.former-timeline-date { min-width: 120px; padding: 0.4rem 0.6rem; font-size: 0.95rem; }
.former-timeline-avatar { width: 100px; height: 100px; }
.former-timeline-order { left: 120px; top: 12px; width: 28px; height: 28px; font-size: 0.9rem; padding: 4px; }
}

/* ##################### หน้าที่ความรับผิดชอบ responsibilities Page #################### */
.responsibilities-list { counter-reset: item; list-style: none; padding-left: 0; }
.responsibilities-list li { counter-increment: item; position: relative; padding-left: 2.7rem; margin-bottom: 0.5rem; }
.responsibilities-list li::before { content: counter(item) "."; position: absolute; left: 0; top: 0.2rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background-color: rgb(212, 233, 248); display: flex; align-items: center; justify-content: center; font-weight: normal;}

.downloads-table { border-radius: 1rem; overflow: hidden;}
.downloads-table thead th { background-color: #f3f4f6; color: #111827; font-weight: 600; font-size: 1rem; padding: 12px 10px 12px 10px;}
.downloads-table tbody tr { border-bottom: 1px solid #e5e7eb;}
.downloads-table tbody tr:last-child { border-bottom: none;}
.downloads-table tbody tr td { padding: 12px 10px; vertical-align: middle; }
.downloads-table tbody tr td a { color: #000; text-decoration: none; transition: all 0.2s ease;}
.downloads-table tbody tr td a:hover { text-decoration: none; color: #0a58ca;}
.downloads-table a.btn {transition: all 0.2s ease;}
.downloads-table a.btn:hover {background-color: #d7f7fd; border: 1px solid #FFF;}
.btn-download { display: inline-flex; justify-content: center; align-items: center; padding: 8px; width: 70px;}
.downloads-table tbody tr:nth-child(even):hover td {  background-color: #f8f9fa;}
.tr-dis-hover:hover{  background-color: #FFF !important;}
.col-download{width: 130px;}

/* ##################### ebook #################### */
.ebook img { width: 200px; height: 283px; object-fit: cover; object-position: top; border-radius: 1px; box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); transition: transform 0.3s ease, box-shadow 0.3s ease;}
.ebook-annual-report img { width: 250px; height: 354px; object-fit: cover; object-position: top; border-radius: 1px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); transition: transform 0.3s ease, box-shadow 0.3s ease;}
.ebook-annual-report a {text-decoration: none; color: #000;}
.ebook-annual-report a:hover {color: #0a58ca;}
.journal img { width: 250px; height: 354px; /*width: 176px; height: 248px;*/ object-fit: cover; object-position: top; border-radius: 1px; box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); transition: transform 0.3s ease, box-shadow 0.3s ease;}
.journal a {text-decoration: none; color: #000;}
.journal a:hover {color: #0a58ca;}
.btn-download2 {font-size: 0.9rem; padding: 8px 15px 8px 15px; margin-bottom: 5px; display: inline-block; border-radius: 6px; border: 1px solid #C4C3C3; color: #333; text-decoration: none;}
.btn-download2 img{width: 20px; height: 20px; box-shadow: none; }
.btn-download2:hover { background-color: #d7f7fd; border-color: #C4C3C3; text-decoration: none; }
.btn-download3 {min-width: 120px; font-size: 0.9rem; padding: 5px 10px 5px 10px; margin-bottom: 5px; display: inline-block; border-radius: 6px; border: 1px solid #C4C3C3; color: #333; text-decoration: none;}
.btn-download3 img {width: 26px; box-shadow: none; }
.btn-download3:hover { background-color: #e4f5f9; border-color: #C4C3C3; text-decoration: none; }

.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;  text-overflow: ellipsis;  min-height: 4.2rem; }
.clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;  text-overflow: ellipsis;  min-height: 3rem; }
.clamp-1-journal { display: -webkit-box; -webkit-line-clamp: 1; overflow: hidden;  text-overflow: ellipsis;  min-height: 3rem; }

/* ##################### กลยุทธ์ strategy #################### */
.section-title {position: relative; padding-bottom: 1rem; margin-bottom: 2rem; color: #1a3e8c; display: inline-block; }
.section-title:after {content: ''; position: absolute; left: 0; bottom: 8px; width: 100%; height: 4px; background: linear-gradient(90deg, #1a3e8c 0%, #0d6efd 100%); border-radius: 0.75rem;}
.section-title2 {position: relative; padding-bottom: 1rem; color: #1a3e8c; display: inline-block; }
.section-title2:after {content: ''; position: absolute; left: 0; bottom: 8px; width: 100%; height: 4px; background: linear-gradient(90deg, #1a3e8c 0%, #0d6efd 100%); border-radius: 0.75rem;}

.shadow-notop { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);}
.shadow-notop2 { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); border-radius: 0.75rem; padding: 1rem 2rem; text-align: center;}
.shadow-havetop { background-color: #ffffff;  border-top: 4px solid #0056b3; border-radius: 0.75rem; padding: 1rem 2rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);}
.circle-number { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background-color: #52a4e3; color: black; font-weight: 600; margin-bottom: 10px;}
.circle-number2 { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background-color: #52a4e3; color: black; font-size: 1.2rem; font-weight: 700; margin-bottom: 10px;}

.strategy-card { background-color: #ffffff; border-radius: 0.75rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.strategy-card:focus-within {box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.strategy-card-header { background-color: #52a4e3; text-align: center; padding: 0.4rem 0; }
.strategy-card-header2 { background-color:#52a4e3; text-align: left; padding: 0.7rem 2rem; font-weight: 500; font-size: 1.3rem;}
.strategy-letter { font-weight: 700; font-size: 1.75rem; color: #000; display: inline-block; }
.strategy-card-body { padding: 1rem 2rem; }
.strategy-card:focus-within { outline: 3px solid #2563eb; outline-offset: 4px; }
.numbering{padding-left: 3em;}
.nested-numbering-1 { counter-reset: item; list-style: none; padding-left: 3em; }
.nested-numbering-1 > li { counter-increment: item; position: relative; }
.nested-numbering-1 > li::before { content: "1." counter(item) ". "; position: absolute; left: -2em; }

.nested-numbering-2 { counter-reset: item; list-style: none; padding-left: 3em;}
.nested-numbering-2 > li { counter-increment: item; position: relative; }
.nested-numbering-2 > li::before { content: "2." counter(item) ". "; position: absolute; left: -2em; }

.nested-numbering-3 { counter-reset: item; list-style: none; padding-left: 3em;}
.nested-numbering-3 > li { counter-increment: item; position: relative; }
.nested-numbering-3 > li::before { content: "3." counter(item) ". "; position: absolute; left: -2em; }

.nested-numbering-4 { counter-reset: item; list-style: none; padding-left: 3em;}
.nested-numbering-4 > li { counter-increment: item; position: relative; }
.nested-numbering-4 > li::before { content: "4." counter(item) ". "; position: absolute; left: -2em; }

.nested-numbering-5 { counter-reset: item; list-style: none; padding-left: 3em;}
.nested-numbering-5 > li { counter-increment: item; position: relative; }
.nested-numbering-5 > li::before { content: "5." counter(item) ". "; position: absolute; left: -2em; }

.box_strategy_download {position: relative; background-color: #f0f0f0; border-radius: 0.75rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); color: #1a1a1a; overflow: hidden; }
.box_strategy_download h2 { font-size: 1.5rem; color: #000; }
.btn-strategy-download { display: inline-flex; align-items: center; justify-content: center; background-color: #37c157; color: #000; font-weight: 600; border-radius: 0.75rem; padding: 0.6rem 1.25rem; font-size: 1rem; text-decoration: none; border: none; transition: background-color 0.2s ease, transform 0.2s ease; }
.btn-strategy-download:hover, .btn-strategy-download:focus { background-color: #2cb54c; color: #000; transform: translateY(-2px); }
.box_strategy_download::before { content: ""; position: absolute; top: 30%; left: 0; width: 80px; height: 4px; background-color: #0056b3; border-radius: 2px; transform: translateY(-50%);}

/* ##################### บุคลากร chart #################### */
.officials-chart-container { width: 100%; margin: 0 auto; padding-top: 1rem;}
.officials-chart-title { font-size: 1.5rem; text-align: center; font-weight: 600; color: #0f172a; line-height: 1.3; }
.officials-chart-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.officials-chart-wrapper { position: relative; height: 500px; margin-bottom: 1rem; }
.officials-chart-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; font-size: 1rem; }
.officials-chart-legend-item { display: flex; align-items: center; gap: 0.75rem; padding: 8px 12px; border-radius: 8px; background-color: #f8fafc; transition: transform 0.2s, box-shadow 0.2s; }
.officials-chart-legend-item:hover, .officials-chart-legend-item:focus-within { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.officials-chart-legend-color { width: 20px; height: 20px; border-radius: 4px; display: inline-block; border: 2px solid rgba(255, 255, 255, 0.8); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.officials-chart-color-1 { background-color: #4f46e5; }
.officials-chart-color-2 { background-color: #0ea5e9; }
.officials-chart-color-3 { background-color: #d946ef; }
.officials-chart-data-table { width: 100%; max-width: 900px; margin: 2rem auto 0; border-collapse: collapse; font-size: 0.95rem; }
.officials-chart-data-table th, .officials-chart-data-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.officials-chart-data-table th { background-color: #f1f5f9; font-weight: 600; }
.officials-chart-data-table tr:hover { background-color: #f8fafc; }
.officials-chart-total-row { font-weight: 600; background-color: #f1f5f9; }
.officials-chart-focus-indicator:focus { outline: 3px solid #4f46e5; outline-offset: 2px; border-radius: 4px; }

@media (max-width: 768px) {
  .officials-chart-wrapper { height: 400px; }
  .officials-chart-title { font-size: 1.3rem; }
  .officials-chart-legend { flex-direction: column; align-items: center; gap: 1rem; }
}

@media (max-width: 480px) {
  .officials-chart-wrapper { height: 350px; }
}

@media (prefers-contrast: high) {
  .officials-chart-legend-color { border: 2px solid #000; }
  .officials-chart-container { border: 2px solid #1e293b; }
}

@media (prefers-reduced-motion: reduce) {
  .officials-chart-legend-item { transition: none; }
}

/* ##################### รายงานประจำปี annual-report #################### */
.btn-filter { display: inline-flex; align-items: center; justify-content: center; background-color: #084299; color: #FFF; font-weight: 600; border-radius: 0.5rem; padding: 0.5rem 1rem; font-size: 1rem; text-decoration: none; border: none; cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease; margin-right: 10px; }
.btn-filter:hover, .btn-filter:focus { background-color: #0a4caf; color: #FFF; }
.btn-filter.active { background-color: #2563eb; color: #fff; }

/* ##################### pagination #################### */
.pagination-doh .page-link { color: #1a3e8c; border: 1px solid #1a3e8c; background-color: #ffffff; transition: 0.2s ease; }
.pagination-doh .page-link:hover,
.pagination-doh .page-link:focus { background-color: #1a3e8c; color: #ffffff; border-color: #1a3e8c; outline: 3px solid #1a3e8c; outline-offset: 2px; }
.pagination-doh .page-item.active .page-link { background-color: #1a3e8c; color: #ffffff; border-color: #1a3e8c; }
.pagination-lg .page-link { white-space: nowrap; }

/* ##################### แอปบริการประชาชน citizen_service_apps #################### */
.icon-app{width: 128px; height: 128px; border-radius: 10px; display: block; margin: 0 auto; margin-bottom: 20px;}
.icon-app-detail{width: 128px; height: 128px; border-radius: 10px; display: block; margin-bottom: 20px;}
.btn-readmore { display: inline-block; background-color: #024dbc; color: white; border-radius: 8px; padding: 0.3rem 1.3rem; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; border: none;  cursor: pointer;}
.btn-readmore:hover, .btn-readmore:focus { background-color:#1660d0; color: white; }
.btn-blue-gradient{ display: inline-block; background: linear-gradient(90deg, #086bcd, #014fa7); border-radius: 20px; color: white;  font-size: 1rem; text-decoration: none;  /*border: 2px solid red; ขอบ */ outline: 1.5px solid white; outline-offset: -4px; box-sizing: border-box; cursor: pointer; padding: 10px 20px;}
.btn-blue-gradient:hover{ background: linear-gradient(90deg, #014fa7, #086bcd);}
.manual-app a{color: #000; text-decoration: none; transition: all 0.2s ease;}
.manual-app a:hover { text-decoration: none; color: #0a58ca;}
.border-divider-top {border-top: 1px solid #bbb}
.border-divider { width: 1px; background-color: #bbb; height: 100%; margin: auto 0;}
.list-feature { margin: 0;}
.list-feature ul { list-style: none; padding-left: 0; margin-top: 20px; }
.list-feature ul li { position: relative; padding-left: 30px; margin-bottom: 0.5rem; }
.list-feature ul li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; background-image: url('../images/icon-check%201.svg'); background-size: contain; background-repeat: no-repeat; background-position: center; }

/* ##################### หน่วยงานภูมิภาค regional-offices #################### */
.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; }
.btn-filter2:hover, .btn-filter:focus { background-color: #0a4caf; color: #FFF; }
.btn-filter2.active { background-color: #2563eb; color: #fff; }

.link-contact{text-decoration: none; color: #000;}
.link-contact:hover{ color: #0a58ca;}
.select2-results .text-primary { color: #0350c4 !important;}
.select2-results__option--selected span.text-primary { color: #FFF !important; }
.select2-results__option.select2-results__option--selected{background-color:#0350c4 !important;}

/* ##################### CONTACT #################### */
.contact-icon {font-size: 1.5rem; margin-bottom: 15px; color: #0b5394;}
.contact-info-card{background-color: #ffffff; border-top: 4px solid #2874a6; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee; border-radius: 0.75rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);}
.map-container {border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); border: 1px solid #dee2e6;}
.region-tab { border-bottom: 2px solid #0b5394; background-color: #ffffff; box-shadow: inset 0 -1px 0 rgba(11, 83, 148, 0.2); padding-left: 10px; padding-right: 10px; }
.region-tab .nav-link { color: #555; font-size: 1.15rem; font-weight: 600; padding: 12px 28px; border: none; border-radius: 8px 8px 0 0; transition: all 0.3s ease; margin-right: 12px; position: relative; }
.region-tab .nav-link:hover { color: #0b5394; background-color: #e6f0fb; cursor: pointer; box-shadow: 0 4px 8px rgba(11, 83, 148, 0.1); }
.region-tab .nav-link.active { color: #0b5394; background-color: #f0f8ff; border-bottom: 4px solid #0b5394; margin-bottom: -2px; font-weight: 700; z-index: 2; }
@media (max-width: 576px) { .region-tab .nav-link { padding: 10px 16px; font-size: 1rem; margin-right: 8px; } }

/* ##################### สถิติทางหลวง statistic-chart #################### */
.page-title-stat{ color: #034199; margin-bottom: 10px; font-weight: 700; /*border-bottom: 2px solid #dee2e6;*/}
.chart-container { position: relative; height: 500px; margin-bottom: 30px; }
.note-section { margin-top: 30px; padding: 20px; background-color: #f8f9fa; border-radius: 8px;  border-left: 4px solid #2c5282; }
.note-title { font-weight: 600; color: #2d3748; margin-bottom: 10px; }
.note-list { margin: 0; padding-left: 20px; color: #4a5568; }
.note-list li { margin-bottom: 8px; }
.filter-stat-controls { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-stat-btn { padding: 8px 16px; background: #e2e8f0; border: none;border-radius: 6px; font-family: 'Prompt', sans-serif; font-weight: 500;  cursor: pointer; transition: all 0.3s ease;}
.filter-stat-btn.active { background: #2c5282; color: white;        }
@media (max-width: 768px) {
    .chart-container { height: 400px; }
}

/* ##################### การขออนุญาตที่เกี่ยวข้องกับกรมทางหลวง doh_access_permit Page #################### */
.access_permit-list { counter-reset: item; list-style: none; padding-left: 0; }
.access_permit-list li { counter-increment: item; position: relative; padding-left: 2.7rem; margin-bottom: 0.5rem; font-size: 1.2rem; font-weight: 600; }
.access_permit-list li::before { content: counter(item) "."; position: absolute; left: 0; top: 0rem; width: 2rem; height: 2rem; border-radius: 50%; background-color: rgb(212, 233, 248); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 600; }
.circle-1-number { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background-color: #7bd7f9; color: #000; font-weight: 600; margin-right: 8px; font-size: 1.2rem; }

.step-container {display: flex; flex-wrap: wrap; justify-content: start; align-items: stretch; gap: 15px; margin-bottom: 40px; }
.step-box1 {flex: 1 1 auto; min-height: 180px; max-width: 200px; background: linear-gradient(to top, #ffffff, #e5edf7); border: 2px solid #1255b1; border-radius: 30px; padding: 10px 5px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; text-align: center; display: flex; flex-direction: column;  }
.step-box1:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.step-box2 {flex: 1 1 auto; min-height: 180px; max-width: 260px; background: linear-gradient(to top, #ffffff, #e5edf7); border: 2px solid #1255b1; border-radius: 30px; padding: 10px 5px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; text-align: center; display: flex; flex-direction: column;  }
.step-box2:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.step-title {font-size: 1.1rem; font-weight: 500; color: #000; }
.step-time {font-size: 1rem; color: #844803; font-weight: 600; border: 1px solid #ccc; background-color: #fdfded; border-radius: 20px; display: inline-flex;  display: inline-flex; justify-content: center; align-items: center; padding: 0.3rem 0.8rem; width: fit-content; margin: auto auto 0; margin-top: auto;}
.step-icon {font-size: 1.2rem; color: #0458d5; display: flex; border-radius: 50%; background-color: #FFF; width: 44px; height: 44px; align-items: center; justify-content: center; margin: 0 auto 10px;}
.step-arrow {display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #0d6efd; }
.step-infobox { background-color: #eff3f7; line-height: 1.8;  border-left: 6px solid #1255b1; border-radius: 8px;  padding: 20px; }

/* ##################### NEWS Page #################### */
.news-gallery img{width: 260px; height: 183px; border-radius: 10px !important; object-fit: cover; object-position: top;}

/* ##################### PROCUREMENT Page #################### */
.procurement-box {border: 1px solid #eee;  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1); border-radius: 8px; padding: 20px 10px;}
.procurement-table { border-radius: 1rem; overflow: hidden;}
.procurement-table thead th { background-color: #e7eff5; text-align: center; color: #111827; font-weight: 600; font-size: 1rem; padding: 12px 10px 12px 10px;}
.procurement-table tbody tr { border-bottom: 1px solid #e5e7eb;}
.procurement-table tbody tr:last-child { border-bottom: none;}
.procurement-table tbody tr td { padding: 12px 10px; vertical-align: middle; text-align: center;}
.procurement-table tbody tr td a { color: #000; text-decoration: none; transition: all 0.2s ease;}
.procurement-table tbody tr td a:hover { text-decoration: none; color: #0a58ca;}
.procurement-table a.btn {transition: all 0.2s ease;}
.procurement-table a.btn:hover {background-color: #d7f7fd; border: 1px solid #FFF;}
.procurement-table tbody tr:nth-child(even):hover td { background-color: #f8f9fa !important;}
.procurement-table td:nth-child(2) {text-align: left;}
.procurement-table td:nth-child(4) {text-align: right;}
@media (min-width: 768px) {
  .col-procurement { width: 130px; }
  .col-procurement2 { width: 203px; }
  .col-procurement3 { width: 172px; }
}

@media (max-width: 767.98px) {
  .col-procurement,
  .col-procurement2,
  .col-procurement3 { width: auto; min-width: 80px; }
}
.procurement-iconbox { width: 70px; height: 70px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; transition: all 0.3s;}
.text-brown{color: #834201;}
.bg-gray {background-color:#d3d3d3 ;}
.bg-brown {background-color:#f5eae0 ;}
.btn-outline-brown { border:1px solid #834201;}
.btn-outline-brown:hover { background-color: #834201; color: #FFF;}
.badge-procurement { font-size: 0.9rem; font-weight: 600; padding: 0.3rem 0.8rem !important;  }
.disabled { pointer-events: none; /* ปิดการคลิก */  opacity: 0.4; cursor: not-allowed; /* แสดงเมาส์แบบห้ามคลิก */ filter: grayscale(100%); }

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

.procurement-progress-table { border-radius: 1rem; overflow: hidden;}
.procurement-progress-table thead th { background-color: #e7eff5; text-align: center; color: #111827; font-weight: 600; font-size: 1rem; padding: 12px 10px 12px 10px; vertical-align: middle;}
.procurement-progress-table tbody tr { border-bottom: 1px solid #e5e7eb;}
.procurement-progress-table tbody tr:last-child { border-bottom: none;}
.procurement-progress-table tbody tr td { padding: 12px 10px; vertical-align: middle;text-align: center; }
.procurement-progress-table tbody tr td a { color: #000; text-decoration: none; transition: all 0.2s ease;}
.procurement-progress-table tbody tr td a:hover { text-decoration: none; color: #0a58ca;}
.procurement-progress-table a.btn {transition: all 0.2s ease;}
.procurement-progress-table a.btn:hover {background-color: #d7f7fd; border: 1px solid #FFF;}
.procurement-progress-table tbody tr:nth-child(even):hover td { background-color: #f8f9fa !important;}
.procurement-progress-table th, .procurement-progress-table td {text-align: center; word-break: break-all; white-space: normal; }
.procurement-progress-table td:nth-child(3) {text-align: left;  }
.procurement-progress-table td:nth-child(4) {text-align: right;}
.procurement_progress_col-1{min-width: 124px;}
.procurement_progress_col-2{min-width: 328px;}
.procurement_progress_col-3{min-width: 140px;}
.procurement_progress_col-4{min-width: 110px;}

.table-section-procurement_progress { width: 95vw; position: relative; left: calc(-60vw + 50%); right: calc(-60vw + 50%); background: #fff; box-sizing: border-box; z-index: 1;}
@media (max-width: 768px) {
   .table-section-procurement_progress { width: 100%; left: 0; transform: none; right: auto; padding: 0 15px;}
}

.procurement-summary-table { border-radius: 1rem; overflow: hidden;}
.procurement-summary-table thead th { background-color: #e7eff5; text-align: center; color: #111827; font-weight: 600; font-size: 1rem; padding: 12px 10px 12px 10px;vertical-align: middle;}
.procurement-summary-table tbody tr { border-bottom: 1px solid #e5e7eb;}
.procurement-summary-table tbody tr:last-child { border-bottom: none;}
.procurement-summary-table tbody tr td { padding: 12px 10px; vertical-align: middle; }
.procurement-summary-table tbody tr td a { color: #000; text-decoration: none; transition: all 0.2s ease;}
.procurement-summary-table tbody tr td a:hover { text-decoration: none; color: #0a58ca;}
.procurement-summary-table a.btn {transition: all 0.2s ease;}
.procurement-summary-table a.btn:hover {background-color: #d7f7fd; border: 1px solid #FFF;}
.procurement-summary-table tbody tr:nth-child(even):hover td { background-color: #f8f9fa !important;}
.procurement-summary-table th, .procurement-summary-table td {text-align: center; }
.procurement-summary-table td:nth-child(1) {text-align: left;  }
.procurement_summary_col-1{min-width: 400px;}
.procurement_summary_col-2{min-width: 150px;}
.table-section-procurement_summary { width: 95vw; position: relative; left: calc(-60vw + 50%); right: calc(-60vw + 50%); background: #fff; box-sizing: border-box; z-index: 1;}
@media (max-width: 768px) {
   .table-section-procurement_summary { width: 100%; left: 0; transform: none; right: auto; padding: 0 15px;}
}

/* ##################### 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: 230px; }
}
.jobs-table td:nth-child(1) { text-align: center; vertical-align: middle;}

/* ##################### VDO Page #################### */
.vdo-list p{ height: 60px; overflow: hidden;}

/* ##################### ข้อมูลทางหลวง highway-info Page #################### */
.road-card { transition: transform 0.3s, box-shadow 0.3s; border-left: 4px solid; }
.highway-special { border-left-color: #dc3545; }
.highway-national { border-left-color: #0d6efd; }
.highway-rural { border-left-color: #198754; }
.highway-local { border-left-color: #834201; }
.bg-brown2{background-color:#834201;}
.bg-info-dark {background-color:#017ca1;}
.highway-concession { border-left-color: #0dcaf0; }
.stat-box { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 10px; padding: 20px; margin: 20px 0; }
.icon-large { font-size: 1.8rem; }
.card-sign-img { height: 250px; background-color: #eee; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; border-radius: 10px;}
.card-sign-img img { height: 100%; width: auto;  object-fit: contain; padding: 20px;}
.text-blue2{color: #084299;}

.notation-box { background-color: #f8f9fa;  border-left: 4px solid #0d6efd;  padding: 1.5rem;  border-radius: 0 8px 8px 0;}
.notation-box ol li, .notation-box ul li {padding-bottom: 10px;}

.bidding-guide { border: 2px solid #0055b3; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); background-color: #ffffff; overflow: hidden; margin-bottom: 20px; }
.bidding-guide .header-box { background-color: #0055b3; color: #ffffff; padding: 12px 20px; font-weight: 600; font-size: 1.1rem; border-radius: 10px 10px 0 0; }
.bidding-guide .list-item { display: flex; align-items: flex-start; text-decoration: none; padding: 10px 20px; border-bottom: 1px solid #aaccee; color: #003366; font-size: 1rem; cursor: pointer; transition: background-color 0.2s; }
.bidding-guide .list-item:last-child { border-bottom: none; }
.bidding-guide .arrow { font-weight: 700; margin-right: 15px; font-size: 1.4rem; color: #0059b3; user-select: none; flex-shrink: 0; margin-top: 2px; }
.bidding-guide .list-item:hover, .bidding-guide .list-item:focus { background-color: #f5faff; outline: none; }

/* ##################### การคัดเลือกบุคคล person-selection Page #################### */
.content-title { color: #1e51a4ff; font-weight: 600; position: relative; padding-bottom: 0.5rem; margin-bottom: 0;}
.content-title:after { content: ""; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background-color: #f8b739;}
.content-title2 { color: #1e51a4ff; font-weight: 600; position: relative; padding-bottom: 0.5rem; margin-bottom: 0;}

.evaluation-tab {border-bottom: 1px solid #dee2e6; }
.evaluation-tab .nav-link {color: #6c757d; border: none; padding: 0.75rem 1.5rem;font-weight: 600; }
.evaluation-tab .nav-link.active { color: #1e51a4ff; border-bottom: 3px solid #1e51a4ff; background-color: transparent;}

.file-icon {font-size: 1.5rem; margin-right: 0.75rem; }
.file-icon.pdf {color: #d63333; }
.file-icon.excel { color: #217346;}
.file-icon.word { color: #2b579a;}

/* ##################### ศูนย์ข้อมูลข่าวสาร doh-information-center Page #################### */
.boxinfo { border-radius: 10px; border: 1px solid #EEE; background: white; padding: 25px; transition: 0.35s; position: relative; overflow: hidden; }
.boxinfo-content { border-bottom: 1px solid #EEE; padding-bottom: 10px; margin-bottom: 20px; }
.boxinfo::after { content: ""; position: absolute; right: -20px; top: -15px; width: 60px; height: 53px; border-radius: 50%; background-color: #EEEEEE; transition: 0.35s; }
.boxinfo::before { content: ""; position: absolute; right: -23px; top: -15px; width: 66px; height: 59px; border-radius: 50%; border: 1px solid #eee; transition: 0.35s; }
.boxinfo .explore-btn5 a i { height: 26px; min-width: 26px; max-width: 26px; border-radius: 50%; display: inline-block; align-items: center; justify-content: center; border: 1px solid #46d993; font-size: 20px; transform: rotate(-45deg); transition: 0.35s; }
.boxinfo .explore-btn5 a { color: #333; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; transition: 0.35s; }
.boxinfo .explore-btn5 a i::before { position: relative; top: -2px; left: 2px; }
.boxinfo h5 a { color: #017fd8ff; font-size: 18px; font-weight: 600; transition: 0.35s; text-decoration: none; }

.inner-tabs { margin-top: 1rem;}
.inner-nav-tabs { border-bottom: 1px solid #dee2e6;}
.inner-nav-tabs .nav-link { border: 1px solid transparent; border-top-left-radius: 0.25rem;  border-top-right-radius: 0.25rem; margin-bottom: -1px; padding: 0.5rem 1rem; color: #495057;}
.inner-nav-tabs .nav-link.active { color: #495057; background-color: #fff; border-color: #dee2e6 #dee2e6 #fff;}
.inner-tab-content { padding: 1rem 0;}
.inner-tab-pane { display: none;}
.inner-tab-pane.active { display: block;}

.accordion-button:not(.collapsed)::after { transform: rotate(-180deg); transition: transform 0.2s ease-in-out; }
.uniform-img { height: 250px; width: 100%; object-fit: cover;}

.doh-information-center-links ul li {list-style: none;}
.doh-information-center-links a { display: flex; font-weight: 500; align-items: center; padding: 1rem 1.25rem; margin-bottom: 0.75rem; background-color: #f8f9fa; border-radius: 8px; color:#000; text-decoration: none; transition: all 0.3s ease; border: 1px solid transparent; }
.doh-information-center-links .bi { margin-right: 0.75rem; font-size: 1.25rem; color: #0056b3;}
.doh-information-center-links a:hover,
.doh-information-center-links a:focus { background-color: rgba(13, 110, 253, 0.1); color: #0056b3; border-color: #0d6efd; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); outline: none;  }

.doh-information-center-links2 ul li {list-style: none;}
.doh-information-center-links2 a { display: flex; align-items: center; padding: 1rem 1.25rem; margin-bottom: 0.75rem; background-color: #f8f9fa; border-radius: 8px; color:#000; text-decoration: none; transition: all 0.3s ease; border: 1px solid transparent; }
.doh-information-center-links2 .bi { margin-right: 0.75rem; font-size: 1.25rem; color: #0056b3;}
.doh-information-center-links2 a:hover,
.doh-information-center-links2 a:focus { background-color: rgba(13, 110, 253, 0.1); color: #0056b3; border-color: #0d6efd; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); outline: none;  }

.trial-balance-collapse,
.trial-balance-collapse.collapsing { transition: none !important; height: auto !important; overflow: visible !important;}

.text-darkblue{color: #1a3e8c;}

.custom-list1 ul {list-style:none; padding:0; margin:0;}
.custom-list1 li {position:relative; padding-left:25px; margin-left:25px; margin-bottom:12px; color:#000;}
.custom-list1 li a {text-decoration: none; color:#000;}
.custom-list1 li a:hover{ color: #0a58ca;}
.custom-list1 li::before { /*content:"✦"; */ content: "\f470"; font-family:bootstrap-icons; font-size: 20px; position:absolute; left:0; top:50%; transform:translateY(-50%); color:#0055a5;}
.custom-list1 li.no-style::before { content: none;}

.custom-list2 li {position:relative; color:#000;}
.custom-list2 li a {text-decoration: none; color:#1a3e8c;}
.custom-list2 li a:hover{ color: #0a58ca;}

/* ##################### โครงการทางหลวงระหว่างประเทศ international_highway_project #################### */
.bg-gray2{ background-color: rgba(0, 0, 0, .10);}
.bg-brown3{ background-color: rgba(225, 217, 210, 0.5); }
.timeline2 {position: relative; margin-left: 20px; padding-left: 30px; border-left: 2px solid #b3a28b;}
.timeline2-item { position: relative; padding-bottom: 25px;}
.timeline2-dot { position: absolute; left: -39px; top: 6px; width: 16px; height: 16px; background-color: #b3a28b; border-radius: 50%;}
.timeline2-content h5 {font-weight: 700; margin-bottom: 5px;}
.timeline2-content p { margin-bottom: 0; color: #000; line-height: 1.6;}
.timeline2-item:last-child { padding-bottom: 0;}
.circle-number3 { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background-color: #c1b09f; color: black; font-weight: 600; margin-bottom: 10px;}

.img-project-details { max-height: 250px; width:100%; object-fit: cover; display: block; object-position: top;}
.img-project-ebook img{ margin: auto; text-align: center; max-height: 250px; width:180px; object-fit: cover; display: block; /*object-position: top;*/ border-radius: 6px; box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15); border:1px solid rgba(0, 0, 0, .10)}

.text-indent { text-indent: 30px; }

/* ##################### หน้าโปรไฟล์บุคคลกรมทางหลวง board_executives_detail #################### */
.contact2-icon { color: #0055a5; font-size: 1.2rem; margin-right: 0.5rem;}
.contact-info {background-color: white; border-radius: 10px;}

.card-custom-board { border: none; border-radius: 10px;  box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.3s ease; margin-bottom: 1.5rem;}
.card-custom-board:hover { }
.card-header-custom-board {background-color: #0055a5; color: white; border-radius: 10px 10px 0 0 !important; padding: 0.8rem 1.5rem;}
.table-custom-board {border-collapse: separate; border-spacing: 0; width: 100%; }
.table-custom-board tbody tr:nth-child(odd) {background-color: #e6f0fa;}
.table-custom-board tbody tr:hover {background-color: #d9e7f7; }

.timeline-board{position:relative; padding-left:2rem;}
.timeline-board::before{content:''; position:absolute; left:7px; top:0; bottom:0; width:2px; background-color:#0055a5;}
.timeline-board-item{position:relative; margin-bottom:1rem; border-radius: 8px; border: 1px solid #dee2e6; padding: 0.7rem 1.5rem;}
.timeline-board-item::before{content:''; position:absolute; left:-1.9rem; top:14px; width:12px; height:12px; border-radius:50%; background-color:#0055a5; border:2px solid white; box-shadow:0 0 0 2px #0055a5;}

/* ##################### 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"); }

/* Multiple grid radio buttons */
.multiple-grid input[type="radio"] { border: 2px solid #64748b; width: 1.2em; height: 1.2em; }
.multiple-grid input[type="radio"]:focus { border-color: #1e40af; outline: 2px solid #1e40af; outline-offset: 2px; }
.multiple-grid input[type="radio"]:checked { background-color: #1e40af; border-color: #1e40af; border-width: 2px; 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"); }


@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; }
}

/* 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;
}



/* ##################### Content Color Style โครงการทางหลวงระหว่างประเทศ #################### */

/* สีน้ำตาล */
.content-brown-tone .bg-brown3 { background-color: rgba(225, 217, 210, 0.5); }
.content-brown-tone .timeline2 { border-left-color: #b3a28b; }
.content-brown-tone .timeline2-dot { background-color: #b3a28b; }
.content-brown-tone .circle-number3 { background-color: #c1b09f; }

/* สีฟ้า */
.content-blue-tone .bg-brown3 { background-color: rgba(107, 140, 179, 0.15); }
.content-blue-tone .timeline2 { border-left-color: #8AA9CC; }
.content-blue-tone .timeline2-dot { background-color: #6B8CB3; }
.content-blue-tone .circle-number3 { background-color: #A6C1DD; }

/* สีเขียว */
.content-green-tone .bg-brown3 { background-color: rgba(122, 168, 122, 0.15); }
.content-green-tone .timeline2 { border-left-color: #9BBE9B; }
.content-green-tone .timeline2-dot { background-color: #7AA87A; }
.content-green-tone .circle-number3 { background-color: #B5D2B5; }

/* สีส้ม */
.content-orange-tone .bg-brown3 { background-color: rgba(251, 183, 156, 0.15); }
.content-orange-tone .timeline2 { border-left-color: #FFB28C; }
.content-orange-tone .timeline2-dot { background-color: #FF8A5C; }
.content-orange-tone .circle-number3 { background-color: #FF8A5C; }

/* Disaster Cards Grid ==== CUSTOM FLEXBOX STYLES==== */
.custom-disaster-grid { display: flex; flex-wrap: wrap; gap: 3px; /*justify-content: center;*/}
.custom-disaster-item {flex: 1 0 calc(33.33% - 15px); min-width: 87px; max-width: 87px; padding: 5px 5px;border-radius: 8px; background: #f8f9fa; text-align: center;}
.custom-disaster-content { display: flex; flex-direction: column; align-items: center;}
.custom-disaster-name { line-height: 1.1;color: #000; font-size: 0.9rem; font-weight: 500; min-height: 35px;display: flex; align-items: center; justify-content: center;}
.custom-disaster-count { margin-top: 3px; font-size: 0.9rem; color: #000;}
.stats-hdms-container {border-bottom: 1px solid #e9ecef; padding-bottom: 10px; margin-top: 10px; margin-bottom: 15px; }
.btn-hdms{border-radius: 16px; background-color: #035e4c; color: #FFF;}
.btn-hdms:hover{ background-color: #046451; color: #FFF;}
.stat-hdms-card{border-radius:14px;padding:1rem;height:100%;display:flex;flex-direction:column;justify-content:center;transition:transform 0.3s,box-shadow 0.3s;box-shadow:0 4px 12px rgba(0,0,0,0.08);border:none;}
.stat-hdms-icon{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.4rem;}
.stat-hdms-number{font-size:2rem;font-weight:700;line-height:1;color:#282828;}
.stat-hdms-unit{font-size:1rem;font-weight:500;color:#666;}
.stat-hdms-label{font-size:0.92rem;font-weight:600;color:#282828;}
.primary-stat-hdms{border-left:4px solid #0b346a;}
.primary-stat-hdms .stat-hdms-icon{background-color:rgba(11,52,106,0.1);color:#0b346a;}
.success-stat-hdms{border-left:4px solid #046451;}
.success-stat-hdms .stat-hdms-icon{background-color:rgba(4,100,81,0.1);color:#046451;}
.danger-stat-hdms{border-left:4px solid #ae1818;}
.danger-stat-hdms .stat-hdms-icon{background-color:rgba(174,24,24,0.1);color:#ae1818;}
@media (min-width: 0px) and (max-width: 533px) {
  .custom-disaster-grid { gap: 5px;}
  .custom-disaster-item { min-width: 90px; max-width: 90px;}
 }

.dohtotravel {height: 100%; }
.dohtotravel .required-star {color: #b10211;}
.dohtotravel h2 { color: #0b346a; font-weight: 700; font-size: 1.5rem; margin-bottom: 1.8rem; position: relative; padding-bottom: 0.8rem; border-bottom: 3px solid #ebf2f8;}
.dohtotravel h2::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 60px; height: 3px; background: #0b346a; border-radius: 3px;}
.dohtotravel .input-group {border-radius: 20px; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02); border: 2px solid #e9ecef;}
.dohtotravel .input-group:focus-within { box-shadow: 0 4px 15px rgba(11, 52, 106, 0.15);}
.dohtotravel .input-group-text .bi {color: #0b346a;}
.dohtotravel .input-group-text { background: #ebf2f8; border: none; padding: 0.8rem 1rem;}
.dohtotravel .form-control {border: none; padding: 0.8rem 0.5rem; font-size: 0.95rem;}
.dohtotravel .form-control:focus { box-shadow: none; background: white;}
.dohtotravel .btn-submit-search { background: #0b346a; color: white; border: none; padding: 0 1.8rem; font-size: 1.2rem; transition: all 0.3s; border-radius: 0 20px 20px 0;}
.dohtotravel .btn-submit-search:hover { background: #1a4a8a; }
.dohtotravel .btn-clear, .dohtotravel .btn-search {border-radius: 30px; padding: 0.7rem 1.5rem; font-weight: 600; transition: all 0.3s; border: none; }
.dohtotravel .btn-clear { background: #ebf2f8; color: #282828; border: 1px solid #e2e8f0;}
.dohtotravel .btn-clear:hover { background: #d1dbe6; color: #282828;}
.dohtotravel .btn-search {background: #0b346a; color: white;}
.dohtotravel .btn-search:hover {background: #1a4a8a; color: white; }

/* ==== RSS ==== */
.rss {
            --dhb-blue: #00509E;
            --dhb-blue-light: #1A7FDE;
            --dhb-orange: #FF6600;
            --dhb-gray-light: #F8F9FA;
            --dhb-gray-border: #E0E0E0;
            --dhb-text: #333333;
            --dhb-text-light: #666666;
            --dhb-success: #28a745;
            font-family: 'Prompt', sans-serif;
        }
.rss .section-title { color:var(--dhb-blue); font-size:1.8rem; font-weight:700; margin-bottom:1.5rem; position:relative; padding-bottom:0.75rem; }
.rss .section-title::after { content:""; position:absolute; bottom:0; left:0; width:60px; height:3px; background: var(--dhb-blue-light); border-radius:2px; }
.rss .section-subtitle {  font-size:1.1rem; margin-bottom:1.5rem; max-width:800px; }

.rss .filter-section { background:white; padding:1.5rem; border-radius:12px; margin:2rem 0 1.5rem; box-shadow:0 4px 15px rgba(0,0,0,0.05); border:1px solid var(--dhb-gray-border); }
.rss .filter-label { color:var(--dhb-blue); font-size:1.1rem; font-weight:600; margin-bottom:1rem; }
.rss .filter-chips { display:flex; flex-wrap:wrap; gap:10px; }
.rss .filter-chip { display:inline-flex; align-items:center; padding:0.6rem 1.2rem; background-color:white; border:2px solid var(--dhb-gray-border); border-radius:50px; font-size:0.95rem; font-weight:500; cursor:pointer; transition:all 0.3s; color: #000; text-decoration:none; }
.rss .filter-chip:hover { border-color:var(--dhb-blue); color:var(--dhb-blue); box-shadow:0 4px 10px rgba(255,102,0,0.1); }
.rss .filter-chip.active { background-color:var(--dhb-blue); border-color:var(--dhb-blue);  color:white; box-shadow: 0 4px 12px rgba(0, 80, 158, 0.25); font-weight:600; }
.rss .filter-chip i { margin-right:8px; font-size:1rem; }

.rss .info-cards { margin-bottom:2.5rem; }
.rss .info-card { background:white; border-radius:12px; padding:1.75rem; height:100%; box-shadow:0 5px 20px rgba(0,0,0,0.05); border:1px solid var(--dhb-gray-border); transition:all 0.3s; }
.rss .info-card:hover { box-shadow:0 10px 25px rgba(0,0,0,0.08); }

.rss .info-card-icon { width:60px; height:60px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:1.25rem; font-size:1.8rem; color:white; }
.rss .icon-info { background:linear-gradient(135deg,var(--dhb-blue) 0%,var(--dhb-blue-light) 100%); }
.rss .icon-help { background:linear-gradient(135deg,var(--dhb-success) 0%,#20c997 100%); }
.rss .icon-rss { background:linear-gradient(135deg,var(--dhb-orange) 0%,#ff914d 100%); }

.rss .info-card-title { color:var(--dhb-blue); font-size:1.25rem; font-weight:700; margin-bottom:1rem; }

.rss .rss-feeds-section { margin-bottom:3rem; }
.rss .rss-feeds-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(350px,1fr)); gap:1.5rem; margin-top:1rem; }

@media (max-width:768px) {
  .rss .rss-feeds-grid { grid-template-columns:1fr; }
}

.rss .rss-feed-card { background:white; border-radius:12px; overflow:hidden; box-shadow:0 5px 20px rgba(0,0,0,0.05); border:1px solid var(--dhb-gray-border); transition:all 0.3s; height:100%; }
.rss .rss-feed-card:hover { box-shadow:0 10px 25px rgba(0,0,0,0.08); }
.rss .rss-feed-header { background:var(--dhb-gray-light); padding:1.5rem; border-bottom:1px solid var(--dhb-gray-border); }
.rss .feed-title { color:var(--dhb-blue); font-size:1.2rem; font-weight:700; margin-bottom:0.5rem; display:flex; align-items:center; }
.rss .feed-title i { color: var(--dhb-blue-light); margin-right:10px; font-size:1.2rem; }
.rss .feed-description { font-size:0.95rem; margin-bottom:0; line-height:1.5; }
.rss .rss-feed-body { padding:1.5rem; }
.rss .feed-url-container { margin-bottom:1rem; }
.rss .feed-url-wrapper { display:flex; flex-direction:column; gap:0.75rem; }
.rss .feed-url { background:var(--dhb-gray-light); border:1px solid var(--dhb-gray-border); border-radius:8px; padding:1rem; font-family:'Courier New',monospace; font-size:0.9rem; word-break:break-all; line-height:1.5; flex-grow:1; }

.rss .copy-btn {background: white; border: 2px solid var(--dhb-blue-light); border-radius: 8px; padding: 0.75rem 1.25rem;
    font-size: 0.95rem; font-weight: 600; color: var(--dhb-blue); transition: all 0.2s; display: flex; align-items: center; justify-content: center; width: 100%;}
.rss .copy-btn:hover { background:var(--dhb-blue-light); color:white; }

.rss .feed-meta { display:flex; justify-content:space-between; align-items:center; margin-top:1rem; padding-top:1rem; border-top:1px solid var(--dhb-gray-border); font-size:0.9rem; color:var(--dhb-text-light); }
.rss .feed-date { display:flex; align-items:center; font-size:0.9rem; color: #000;}
.rss .feed-date i { margin-right:6px; color: var(--dhb-blue-light); font-size:1rem; }

.rss .developer-section { background:linear-gradient(135deg,#f8f9ff 0%,#edf2ff 100%); border-radius:16px; padding:2.5rem; margin:2.5rem 0; border:1px solid var(--dhb-gray-border); }
.rss .developer-title { color:var(--dhb-blue); font-size:1.6rem; font-weight:700; margin-bottom:1.5rem; text-align:center; }

.rss .code-example { background:#1e1e1e; border-radius:10px; padding:1.5rem; margin:1.5rem 0; overflow-x:auto; font-family:'Courier New',monospace; font-size:0.95rem; }
.rss .code-example code { color:#d4d4d4; line-height:1.5; }
.rss .code-example .tag { color:#569cd6; }
.rss .code-example .attr { color:#9cdcfe; }
.rss .code-example .value { color:#ce9178; }

.rss .api-methods { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.25rem; margin-top:1.5rem; }
.rss .api-method { background:white; border-radius:10px; padding:1.5rem; box-shadow:0 4px 12px rgba(0,0,0,0.05); border-left: 4px solid var(--dhb-blue-light);  border-top: 1px solid var(--dhb-blue-pale); }
@media (min-width: 1400px) {
  .rss .api-methods {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rss .method-title { color:var(--dhb-blue); font-size:1.1rem; font-weight:600; margin-bottom:0.75rem; }
.rss .api-method p, .rss .api-method ul { font-size:0.95rem; line-height:1.5; }
.rss .method-title1 { color: var(--dhb-blue); font-weight: 600;}
.rss .tutorial-section { background:white; border-radius:16px; padding:2rem; margin:2.5rem 0; box-shadow:0 8px 25px rgba(0,0,0,0.05); }
.rss .tutorial-title { color:var(--dhb-blue); font-size:1.6rem; font-weight:700; margin-bottom:2rem; text-align:center; }
.rss .tutorial-steps { counter-reset:step-counter; list-style:none; padding:0; margin:0; }
.rss .tutorial-step { position:relative; padding:1rem 0 1rem 4rem; border-bottom:1px solid var(--dhb-gray-border); }
.rss .tutorial-step:last-child { border-bottom:none; }
.rss .tutorial-step::before { counter-increment:step-counter; content:counter(step-counter); position:absolute; left:0; top:1.75rem; width:40px; height:40px; background:var(--dhb-blue); color:white; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.2rem; }

.rss .step-title { color:var(--dhb-blue); font-size:1.2rem; font-weight:600; margin-bottom:0.75rem; }

.rss .browser-support { display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; margin-top:2rem; }
.rss .browser-icon { width:60px; height:60px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:white; box-shadow:0 4px 12px rgba(0,0,0,0.08); font-size:1.8rem; color:var(--dhb-blue); transition:all 0.3s; }
.rss .browser-icon:hover { transform:translateY(-5px); box-shadow:0 8px 20px rgba(0,0,0,0.12); }

.bpChatContainer{
    display:none;
}
