@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&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&display=swap');

html {
    font-size: 100%;
}

body {
    font-family: "Noto Sans Thai", sans-serif;
    color: #000;
    background-color: #FFF;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-size: 100%;
}

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

    .modal {
        background-color: rgba(0, 0, 0, 0.5) !important;
    }
}

/* ##################### HEADER ##################### */
/*##################### TOPMENU ####################*/
.topmenu {
    position: relative;
    z-index: 1;
    min-height: 115px;
    background-color: #0b346a;
    flex-wrap: wrap;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.topmenu .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.topmenu .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.topmenu .navbar-toggler {
    border-color: #fff;
}

.navbar-nav .nav-link {
    position: relative;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 20px !important;
    border: 0px solid transparent;
    border-radius: 6px;
    transition: 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.show {
    color: #fff;
    background-color: #973703;
}

.dropdown-menu {
    background: #023e8d;
    border: none;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.dropdown-item {
    min-width: 260px;
    max-width: 300px;
    color: #fff;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.1;
    padding: 10px 20px;
    word-break: break-word;
    white-space: normal;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    color: #fff;
    background: #023476;
}

.navbar-nav .nav-link.dropdown-toggle::after {
    all: unset;
    display: inline-block;
    margin-left: 0.1em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    z-index: 2;
}

.navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 3px;
    border: 1px solid #fff;
    border-radius: 4px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.navbar-nav .nav-link.active::before,
.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.show::before {
    opacity: 1;
}

.logo-box {
    bottom: -25px;
    background-color: #007004;
    border: 4px solid #007004;
    position: relative;
    border-radius: 12px;
    padding: 10px 16px;
    color: #fff;
    font-size: 1.7rem;
    line-height: 1.3;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.logo-box img {
    height: 70px;
    width: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-box::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid white;
    border-radius: 12px;
    pointer-events: none;
}

.name-en {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.2;
}

.text-logo-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-logo-box h1 {
    font-size: 1.7rem !important;
}

@media (max-width: 1200px) {
    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 6px 11px !important;
    }

    .logo-box {
        font-size: 1.4rem;
    }

    .name-en {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .logo-box {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 auto;
        font-size: 1.2rem;
        padding: 6px 12px;
    }

    .logo-box img {
        height: 50px;
        width: 50px;
    }

    .name-en {
        font-size: 1rem;
    }

    .navbar-toggler { margin-left: auto; margin-top: 5px; }

    .navbar-nav .nav-link {
        padding: 12px 20px !important;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .name-en {
        font-size: 0.9rem;
    }

    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 10px 15px !important;
    }
}

@media (max-width: 576px) {
    .topmenu {
        min-height: 80px;
    }

    .text-logo-box {
        flex: 1;
        min-width: 0;
        font-size: 1.2rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 8px 12px !important;
    }

    .dropdown-item {
        font-size: 0.9rem;
        padding: 8px 15px;
        max-width: 100%;
    }
}

@media (max-width: 400px) {
    .logo-box {
        font-size: 0.9rem;
        padding: 3px 6px;
    }

    .logo-box img {
        height: 35px;
        width: 35px;
    }
}

@media (max-width: 992px) {
    .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }
}

.header-icons {
    position: absolute;
    z-index: 3;
    top: 5px;
    right: 0;
    display: flex;
    align-items: center;
}

.header-icons button {
    background-color: transparent;
    border: 0px solid #FFF;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002244;
    font-size: 1.2rem;
    transition: all 0.2s;
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.3);*/
}

.header-icons button:hover,
.header-icons button:focus {
    background-color: rgba(1, 35, 90, 0.7);
    color: #000;
}

#lang-btn {
    width: 90px;
    border-radius: 50px;
    font-size: 1rem;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.language-menu .dropdown-item {
    min-width: 100px;
}

.language-menu.show {
    display: block !important;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .logo-box {
        bottom: 0;
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .dropdown-menu.custom-menuwidth1 {
        left: auto;
        right: 0;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .topmenu .navbar-nav {
        margin-top: 12px !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .logo-box {
        left: auto;
        margin: 0 !important;
        font-size: 1.3rem;
    }

    .header-icons {
        top: 25px;
    }

    .topmenu {
        padding-top: 10px;
    }

    .topmenu .navbar-nav {
        margin-top: 40px !important;
    }

    .navbar-toggler {
        margin-top: 35px;
    }
}

@media (max-width: 768px) {
    .header-icons {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .topmenu {
        padding-top: 60px;
    }
}

@media (min-width: 0px) and (max-width: 991.98px) {
    .header-icons {
        top: 5px;
    }

    .bg-hightlight {
        padding-top: 30px;
    }
}

@media (min-width: 0px) and (max-width: 767.98px) {
    .logo-box {
        bottom: 0;
    }
}

/* ##################### Search #################### */
:root {
    --global-search-primary-color: #0d6efd;
    --global-search-secondary-color: #6c757d;
    --global-search-light-bg: #f8f9fa;
    --global-search-border-color: #dee2e6;
    --highlight-new-primary: #1a73e8; /* น้ำตาล */
    --highlight-new-bg: rgba(26, 115, 232, 0.1);
}

.global-search-navbar-brand {
    font-weight: 700;
    color: #0a58ca;
}

.global-search-trigger {
    background: var(--global-search-primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.global-search-trigger:hover,
.global-search-trigger:focus {
    background: #0b5ed7;
    transform: scale(1.05);
    outline: 2px solid #0a58ca;
    outline-offset: 2px;
}

.global-search-modal .modal-content {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
}

.global-search-modal .modal-header {
    border-bottom: 1px solid var(--global-search-border-color);
    padding: 1.25rem 1.5rem;
    background: var(--global-search-light-bg);
    border-radius: 12px 12px 0 0;
}

.global-search-modal .modal-body {
    padding: 1.5rem;
}

.global-search-input-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.global-search-input {
    padding: 12px 50px 12px 16px;
    border-radius: 8px;
    border: 2px solid var(--global-search-border-color);
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s;
}

.global-search-input:focus {
    border-color: var(--global-search-primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    outline: 2px solid var(--global-search-primary-color);
}

.global-search-submit-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--global-search-primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.global-search-submit-btn:hover,
.global-search-submit-btn:focus {
    background: #0b5ed7;
    outline: 2px solid #0a58ca;
    outline-offset: 2px;
}

.global-search-popular-tags {
    margin-bottom: 1.5rem;
}

.global-search-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.global-search-tag:hover,
.global-search-tag:focus {
    background: #dee2e6;
    transform: translateY(-2px);
    outline: 2px solid var(--global-search-primary-color);
    outline-offset: 2px;
}

.global-search-advanced-toggle {
    display: flex;
    align-items: center;
    color: var(--global-search-primary-color);
    cursor: pointer;
    margin-bottom: 1rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.global-search-advanced-toggle:hover,
.global-search-advanced-toggle:focus {
    background-color: rgba(13, 110, 253, 0.1);
    outline: 2px solid var(--global-search-primary-color);
    outline-offset: 2px;
}

.global-search-advanced-toggle i {
    margin-right: 8px;
    transition: transform 0.3s;
}

.global-search-advanced-toggle.collapsed i {
    transform: rotate(0deg);
}

.global-search-advanced-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}

.global-search-advanced-options {
    background: var(--global-search-light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--global-search-border-color);
}

.global-search-filter-group {
    margin-bottom: 1.5rem;
}

.global-search-filter-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 1rem;
}

.global-search-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.global-search-filter-option {
    display: flex;
    align-items: center;
}

.global-search-filter-option input {
    margin-right: 6px;
    width: 18px;
    height: 18px;
}

.global-search-filter-option input:focus {
    outline: 2px solid var(--global-search-primary-color);
    outline-offset: 2px;
}

.global-search-filter-option label {
    cursor: pointer;
}

.global-search-date-range {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.global-search-date-input {
    flex: 1;
    min-width: 150px;
}

.global-search-date-input label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #6c757d;
}

.global-search-date-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--global-search-border-color);
    border-radius: 4px;
}

.global-search-date-input input:focus {
    outline: 2px solid var(--global-search-primary-color);
    outline-offset: 2px;
}

.global-search-category-badge {
    background: var(--global-search-primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

@media (prefers-contrast: high) {
    .global-search-tag {
        border: 2px solid #000;
    }

    .global-search-result-item {
        border: 1px solid #000;
    }
}

@media (prefers-reduced-motion: reduce) {

    .global-search-trigger,
    .global-search-tag,
    .global-search-result-item,
    .global-search-advanced-toggle {
        transition: none;
    }

    .global-search-fade-in {
        animation: none;
    }
}

@media (max-width: 768px) {
    .global-search-result-item {
        flex-direction: column;
    }

    .global-search-result-image {
        width: 100%;
        height: 160px;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .global-search-date-range {
        flex-direction: column;
    }

    .global-search-date-input {
        width: 100%;
    }

    .global-search-filter-options {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.global-search-fade-in {
    animation: globalSearchFadeIn 0.5s ease-in-out;
}

@keyframes globalSearchFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 2px solid var(--global-search-primary-color);
    outline-offset: 2px;
}

/* สำหรับผลลัพธ์การค้นหา */
.global-search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.global-search-result-item {
    background: white;
    border: 1px solid var(--global-search-border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s;
    /* ลบ display: flex ออกเพราะใช้ Bootstrap grid แทน */
}

.global-search-result-item:hover,
.global-search-result-item:focus-within {
    background-color: var(--global-search-light-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.global-search-result-image {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.global-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.global-search-result-badge {
    background: var(--global-search-primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.global-search-result-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.global-search-result-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.global-search-result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.global-search-result-date {
    color: var(--global-search-secondary-color);
    font-size: 0.9rem;
}

.global-search-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.global-search-tag-small {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .global-search-result-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .global-search-result-image {
        height: 100px;
    }
}

.global-search-result-date {
    color: var(--global-search-secondary-color);
    font-size: 0.9rem;
}

.global-search-result-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.global-search-no-results {
    text-align: center;
    padding: 2rem;
    color: var(--global-search-secondary-color);
}

.global-search-no-results i {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* ########################################## Hightlight Banner Slider ########################################## */
.bg-hightlight {
    position: relative;
    z-index: 0;
    background-color: #0b346a;
    padding-bottom: 30px;
}

.bg-hightlight::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/bg-highlight-01.svg);
    background-position: bottom center;
    background-repeat: repeat-x;
    z-index: -1;
}

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

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

.highlight .carousel-indicators .active {
    opacity: 1;
}

.highlight .carousel-indicators {
    bottom: -20px;
}

.car img {
    width: 120px;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .car img {
        width: 90px;
        margin-top: 10px;
    }
}

@media (min-width: 0px) and (max-width: 767.98px) {
    .car img {
        width: 60px;
        margin-top: 10px;
    }
}

.highlight button.carousel-control-prev,
.highlight button.carousel-control-next {
    top: 0%;
}

@media (max-width: 992px) {
    .img-highlight {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .img-highlight {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .img-highlight {
        max-height: 200px;
    }
}

/* ##################### VIDEO #################### */
.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    background-color: #000;
    overflow: hidden;
    border-radius: 30px;
}

.video-thumbnail-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center center;
}

.video-thumbnail-wrapper2 {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background-color: #000;
    overflow: hidden;
    border-radius: 30px;
}

.video-thumbnail-wrapper2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.play-icon2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.text-vdo {
    position: relative;
    z-index: 1;
    margin-left: 100px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0b346a;
}

.video-thumbnail-wrapper2 {
    border-radius: 1.7rem;
    border: 14px solid #FFF;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, .3);
}

.pole {
    position: absolute;
    z-index: 0;
    left: 60px;
    height: 100%;
    width: 26px;
    background-image: url(../images/pole.svg);
    background-repeat: repeat-y;
}

@media (min-width: 1400px) {
    .video-thumbnail-wrapper {
        aspect-ratio: 16 / 6;
    }

    .video-thumbnail-wrapper img {
        height: 675px;
    }
}

@media (max-width: 992px) {
    .video-thumbnail-wrapper img {
        max-height: 400px;
    }

    .pole {
        left: 50px;
        width: 20px;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .video-thumbnail-wrapper img {
        max-height: 300px;
    }

    .pole {
        left: 50px;
        width: 20px;
        height: 150%;
    }
}

@media (max-width: 576px) {
    .video-thumbnail-wrapper img {
        max-height: 200px;
    }

    .pole {
        left: 35px;
        width: 16px;
        height: 180%;
    }

    .text-vdo {
        margin-left: 60px;
    }
}

@media (min-width: 0px) and (max-width: 330px) {
    .pole {
        left: 35px;
        width: 14px;
        height: 250%;
    }
}

/* ##################### NEWS TABS #################### */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #141414;
    position: relative;
    z-index: 1;
}

.news-tabs {
    background-color: #f2f2f2;
    border-radius: 12px 12px 0px 0px;
}

.news-tabs-header {
    background-color: #f2f2f2;
    border-radius: 12px 12px 0 0;
    padding-left: 10px;
}

.news-tabs-header .news-tabs {
    background-color: transparent;
    border-radius: 0;
}

.news-tabs-header .btn-viewall-orange {
    margin-right: 16px;
}

.news-tabs .nav-link {
    position: relative;
    border: none;
    color: #616161;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 16px 0 12px 0;
    margin: 0 30px;
}

/* ✅ FIX: เส้นคั่นระหว่าง item (ทำให้ item สุดท้ายมีเส้นคั่นก่อนหน้าด้วย) */
.news-tabs .nav-item+.nav-item .nav-link::after {
    position: absolute;
    content: "";
    top: 30%;
    bottom: 20%;
    left: -30px;
    /* อิงจาก margin: 0 30px ของ nav-link เดิม */
    width: 1px;
    background-color: #616161;
    opacity: 0.6;
}

.news-tabs .nav-link.active {
    color: #8c3304;
    font-weight: 600;
    font-size: 1.3rem;
    border-bottom: 4px solid #f26d23;
    background: none;
}

@media (max-width: 767.98px) {
    .news-tabs-header {
        padding: 10px;
    }

    .news-tabs-header .news-tabs {
        padding-left: 0;
        padding-right: 0;
    }

    .news-tabs-header .btn-viewall-orange {
        margin-right: 0;
    }
}


.news-tab-content .tab-pane {
    position: relative;
}

.news-tab-content .tab-pane .news-item:nth-child(1) .news-date {
    background-color: #003f72;
}

.news-tab-content .tab-pane .news-item:nth-child(2) .news-date {
    background-color: #016605;
}

.news-tab-content .tab-pane .news-item:nth-child(3) .news-date {
    background-color: #913e03;
}

.news-tab-content {
    background-color: #fff;
}

.shadow1 {
    position: relative;
}

.shadow1:before,
.shadow1:after {
    position: absolute;
    content: "";
    bottom: 30px;
    left: 5px;
    top: 80%;
    width: 65%;
    background: transparent;
    z-index: -1;
    box-shadow: 0 20px 15px rgba(0, 0, 0, 0.4);
    -webkit-transform: rotate(-6deg);
    -moz-transform: rotate(-6deg);
    transform: rotate(-6deg);
}

.shadow1:after {
    -webkit-transform: rotate(6deg);
    -moz-transform: rotate(6deg);
    transform: rotate(6deg);
    right: 15px;
    left: auto;
}

.news-tab-content .tab-pane>.news-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.news-tab-content .tab-pane>.news-item:nth-child(3) {
    border-bottom: 1px solid #FFF;
}

.news-item .news-date {
    flex-shrink: 0;
    width: 70px;
    padding: 10px 0;
    border-radius: 2px;
}

.news-item .date-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.news-item .date-month {
    font-size: 14px;
    line-height: 1.2;
}

.news-text a {
    color: #000;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
}

.news-text a:hover {
    color: #0641d9;
}

.img-news-thumbnail {
    width: 120px;
    height: 90px;
    object-fit: cover;
    object-position: center;
    background-color: #ccc;
    border-radius: 4px;
    margin-right: 10px;
}

.wrap-btn-viewall {
    position: absolute;
    right: 20px;
    top: -75px;
}

.btn-viewall-orange {
    background: #973703;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.btn-viewall-orange:hover {
    background: #ac3d01;
    color: #fff;
}

.banner-link img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: auto;
}

.banner-link:hover img {
    transform: scale(1.01);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ##################### NEWS TABS (Horizontal Scroll) #################### */
.news-tabs {
    background-color: #f2f2f2;
    border-radius: 12px 12px 0px 0px;

    /* ✅ ทำเป็นแถบเลื่อนแนวนอน */
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;

    /* ความลื่นบนมือถือ */
    -webkit-overflow-scrolling: touch;

    /* เว้นขอบนิดนึงให้สวย */
    padding: 0 10px;
    gap: 0;
    /* ให้เส้นคั่นคุมเอง */
}

/* ✅ ซ่อน scrollbar (ยังเลื่อนได้) */
.news-tabs::-webkit-scrollbar {
    height: 6px;
}

.news-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.news-tabs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

.news-tabs {
    scrollbar-width: thin;
}

/* ✅ แต่ละ item ไม่ให้ยุบ/ไม่ให้ตกบรรทัด */
.news-tabs .nav-item {
    flex: 0 0 auto;
}

/* ✅ ปรับ nav-link ให้ไม่ตัดบรรทัด + ระยะเท่ากัน */
.news-tabs .nav-link {
    position: relative;
    border: none;
    color: #616161;
    font-size: 1.3rem;
    font-weight: 600;

    /* เดิมใช้ margin: 0 30px; พอเป็น scroll จะยาวเกิน คุมด้วย padding ดีกว่า */
    margin: 0;
    padding: 16px 20px 12px 20px;

    white-space: nowrap;
    /* กันตกบรรทัด */
}

/* ✅ เส้นคั่นระหว่างแท็บ (รองรับ scroll) */
.news-tabs .nav-item+.nav-item .nav-link::after {
    content: "";
    position: absolute;
    top: 30%;
    bottom: 20%;
    left: 0;
    /* เส้นอยู่ต้นแท็บ */
    width: 1px;
    background-color: #616161;
    opacity: 0.6;
}

/* active เดิม */
.news-tabs .nav-link.active {
    color: #8c3304;
    font-weight: 600;
    font-size: 1.3rem;
    border-bottom: 4px solid #f26d23;
    background: none;
}


/* ##################### ภาพกิจกรรม #################### */
.bg-event {
    position: relative;
    background: linear-gradient(to bottom, #ffffff 0%, #f3f6fb 100%);
    /*padding-top: 150px;*/
}

.road01 {
    /*position: absolute; top:0; left: 0;*/
    height: 180px;
    width: 100%;
    background-image: url(../images/road01.svg);
    background-position: bottom center;
    background-repeat: no-repeat;
}

.road02 {
    display: block;
    height: 43px;
    width: 100%;
    background-image: url(../images/road02.svg);
    background-position: bottom center;
    background-repeat: repeat-x;
    margin-top: 25px;
}

.circle-indicator {
    position: absolute;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 14px solid;
    background: white;
    z-index: 0;
}

.circle-red {
    border-color: #d23b3b;
}

.circle-green {
    border-color: #007004;
}

.circle-yellow {
    border-color: #f2bf18;
}

.circle-red {
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
}

.circle-green {
    top: -95px;
    left: 50%;
    transform: translateX(-50%);
}

.circle-yellow {
    top: -85px;
    left: 50%;
    transform: translateX(-50%);
}

.activity-card {
    border-radius: 2rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background-color: #f2f3f4;
    box-shadow: 0 2px 7px rgb(0 0 0 / 0.05);
    transition: box-shadow 0.3s ease;
    position: relative;
}

.activity-card:hover {
    box-shadow: 0 4px 15px rgb(0 0 0 / 0.12);
}

.event {
    margin-top: 0;
}

/* ===== สีขอบการ์ด + สีสามเหลี่ยมด้านบน ===== */
.event>div:nth-child(1) .activity-card {
    border: 1px solid #d23b3b;
    margin-top: -30px;
}

.event>div:nth-child(1) .activity-card::after {
    border-bottom-color: #d23b3b;
}

.event>div:nth-child(2) .activity-card {
    border: 1px solid #007004;
}

.event>div:nth-child(2) .activity-card::after {
    border-bottom-color: #007004;
}

.event>div:nth-child(3) .activity-card {
    border: 1px solid #e8b203;
}

.event>div:nth-child(3) .activity-card::after {
    border-bottom-color: #e8b203;
}

.event .activity-card {
    position: relative;
}

/* ===== สามเหลี่ยมพื้นหลังสี f2f3f4 ===== */
.event .activity-card::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 0 20px 20px 20px;
    border-color: transparent transparent #f2f3f4 transparent;
    z-index: 2;
}

/* ===== สามเหลี่ยม "ขอบ" สีการ์ด (ด้านนอก) ===== */
.event .activity-card::after {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 0 20px 20px 20px;
    border-color: transparent transparent transparent transparent;
    z-index: 1;
}

.activity-info {
    font-size: 0.875rem;
    color: #2a2a2a;
    font-weight: 600;
}

.activity-meta {
    font-size: 0.9rem;
    color: #0b346a;
    margin-bottom: 0.25rem;
}

.activity-meta em {
    margin-right: 0.4rem;
}

.activity-info a {
    color: #000;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
}

.activity-info a:hover {
    color: #0641d9;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .road01 {
        height: 125px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .road01 {
        /*height: unset;*/
        margin-top: -180px;
    }
}

@media (min-width: 0px) and (max-width: 991.98px) {
    .bg-event {
        padding-top: 50px;
    }

    .event {
        margin-top: 80px;
    }

    .event .activity-card {
        text-align: center;
        margin-bottom: 60px;
    }

    .circle-red,
    .circle-green,
    .circle-yellow {
        top: -80px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .road01 {
        margin-top: -180px;
    }
}

@media (min-width: 0px) and (max-width: 575.98px) {
    .road01 {
        margin-top: -220px;
    }
}

/* ##################### procurement and job #################### */
.procurement .procurement-header {
    background: #fcdb00;
    border-radius: 4px;
}

.procurement-header .arrow-left {
    width: 121px;
    height: 58px;
    background-image: url(../images/arrow-black.svg);
    transform: rotate(180deg);
    background-position: center;
    background-repeat: no-repeat;
}

.procurement-header .arrow-right {
    width: 121px;
    height: 58px;
    background-image: url(../images/arrow-black.svg);
    transform: rotate(0deg);
    background-position: center;
    background-repeat: no-repeat;
}

/* Tabs */
.procurement-tabs .nav-link {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 10px 25px;
    color: #555;
}

.procurement-tabs>li:nth-child(2) .nav-link {
    color: #b10808;
}

.procurement-tabs>li:nth-child(3) .nav-link {
    color: #01632f;
}

.procurement-tabs .nav-link.active {
    background: #0b346a;
    color: #fff;
    border-radius: 20px 20px 0 0;
    font-weight: 600;
}

.procurement-tabs>li:nth-child(2) .nav-link.active,
.procurement-tabs>li:nth-child(3) .nav-link.active {
    color: #fff;
}

.procurement-item {
    position: relative;
    color: #000;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    border-bottom: 1px dotted #282828;
}

.procurement-item:hover {
    background: #f8f9fa;
    color: #0641d9;
}

.procurement .badge-new {
    height: 45px;
    width: 45px;
    background: #ae0707;
    color: #fff;
    padding: 0;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.procurement .badge-normal {
    height: 45px;
    width: 45px;
    flex-shrink: 0;
}

.procurement .date-badge {
    background: #0b346a;
    color: #fff;
    padding: 6px 12px;
    line-height: 1;
    border-radius: 15px;
    font-size: 0.85rem;
}

.procurement em.bi-chevron-right {
    position: absolute;
    right: 0;
    margin-right: auto;
    font-size: 1.2rem;
    color: #282828;
}

/* ##################### Ebooks #################### */
.ebook-section {
    background-color: #eef3f5;
    padding: 40px 0;
    background-image: url(../images/bg-ebook.svg);
    background-size: 100% auto;
    background-position: bottom center;
    background-repeat: no-repeat;
}

.bg-gradient-blue {
    color: #FFF;
    background: linear-gradient(135deg, #034f82, #003f72);
    border-radius: 0 20px 20px 0;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
    height: 75%;
    margin: auto 0;
}

.link-jr {
    color: #FFF;
    font-weight: 600;
    text-decoration: none;
}

.link-jr:hover {
    color: #FFF;
    text-decoration: underline;
}

.orange-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #f26d23;
    color: #FFF;
    margin-left: 10px;
    padding: 0;
    border-radius: 50%;
}

.text-date-jr {
    color: #e3ecf1;
}

.ebook-horizontal {
    display: flex;
    height: 100%;
}

.ebook-horizontal .ebook-img-container img {
    width: 100%;
    height: 407px;
    object-fit: cover;
    object-position: top center;
    border-radius: 1px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.ebook-horizontal .ebook-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.ebook-vertical {
    height: 100%;
    position: relative;
}

.ebook-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 1px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1400px) {
    .ebook-intro {
        height: 65px;
        overflow: hidden;
    }

    .ebook-horizontal .ebook-img-container img {
        height: 352px;
    }

    .ebook-vertical img {
        max-width: 250px;
        height: 352px;
    }

    .ebook-vertical {
        text-align: right;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .ebook-horizontal .ebook-img-container img {
        width: 100%;
        height: 345px;
    }

    .ebook-vertical img {
        max-width: 272px;
        height: 345px;
    }

    .ebook-intro {
        height: 48px;
        overflow: hidden;
    }
}

@media (min-width: 990px) and (max-width: 1199.98px) {
    .ebook-horizontal .ebook-img-container img {
        width: 100%;
        height: 285px;
    }

    .ebook-vertical img {
        max-width: 272px;
        height: 285px;
    }

    .bg-gradient-blue {
        height: 85%;
    }

    .link-jr {
        margin-top: -20px;
    }

    .ebook-intro {
        height: 48px;
        overflow: hidden;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .ebook-horizontal .ebook-img-container img {
        width: 100%;
        height: 385px;
        flex: none;
    }

    .ebook-vertical img {
        max-width: 272px;
        height: 385px;
    }

    .ebook-intro {
        height: 48px;
        overflow: hidden;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .ebook-horizontal .ebook-img-container img {
        width: 100%;
        height: 330px;
    }

    .ebook-vertical img {
        max-width: 272px;
        height: 330px;
    }

    .ebook-intro {
        height: 48px;
        overflow: hidden;
    }
}

@media (max-width: 575.98px) {
    .ebook-horizontal {
        flex-direction: column;
    }
}

/* ##################### Infographic #################### */
.infographic-section {
    color: #FFF;
    background-image: url(../images/bg-infographic-01.jpg);
    background-size: cover;
    background-position: center center;
}

.infographic-title {
    font-size: 2rem;
    font-weight: 700;
    color: #FFF;
}

.infographic-subtitle {
    font-size: 1.2rem;
}

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

.infographic .carousel-indicators .active {
    opacity: 1;
}

.infographic .carousel-indicators {
    bottom: -80px;
}

.infographic img {
    box-shadow: 3px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 1px;
}

/* ##################### ลิงก์หน่วยงานในพื้นที่ #################### */
.regional-links {
    background-image: url(../images/bg-regional-links.svg);
    background-size: cover;
    background-position: top center;
    padding-bottom: 100px;
}

.regional-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.regional-links ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #999;
}

.regional-links ul li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #282828;
    border-radius: 50%;
}

.regional-links ul li a {
    text-decoration: none;
    color: #000;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.regional-links ul li a:hover {
    color: #023f8f;
    font-size: 1.5rem;
    font-weight: 600;
}

@media (max-width: 576px) {
    .regional-links ul li a {
        font-size: 1.1rem;
    }

    .regional-links ul li a:hover {
        font-size: 1.2rem;
    }
}

/* ##################### Icon Link #################### */
.icon-link {
    position: absolute;
    z-index: 2;
    top: -90px;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.icon-link .icon-item {
    flex: 1;
    display: flex;
    justify-content: center;
}

.icon-link .icon-img {
    width: 100%;
    max-width: 150px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.20));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.icon-link .icon-item:hover .icon-img {
    transform: translateY(-4px) scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

@media (min-width: 1400px) {
    .icon-link {
        width: 80%;
    }

    .icon-link .carousel-control-prev {
        left: -5.5rem;
    }

    .icon-link .carousel-control-next {
        right: -5rem;
    }
}

@media (max-width: 991px) {
    .icon-link {
        top: -57px;
    }

    .icon-link .icon-img {
        max-width: 120px;
    }

    .regional-links {
        padding-bottom: 75px;
    }

    .footer-home {
        padding-top: 120px !important;
    }
}

@media (max-width: 767px) {
    .icon-link .icon-img {
        max-width: 100px;
    }

    .footer-home {
        padding-top: 120px !important;
    }
}

@media (max-width: 480px) {
    .icon-link .icon-item {
        flex: 0 0 33.33%;
    }

    .icon-link .icon-img {
        max-width: 90px;
        margin-bottom: 10px;
    }

    .footer-home {
        padding-top: 170px !important;
    }
}

/* ##################### FOOTER #################### */
@media (min-width: 1400px) {
    .footer-home {
        padding-top: 120px;
    }

    .footer-page {
        padding-top: 50px;
    }
}

.footer-home {
    background-color: #0b346a;
    color: #FFF;
    position: relative;
    z-index: 1;
    padding-top: 120px;
}

.footer-page {
    background-color: #0b346a;
    color: #FFF;
    position: relative;
    z-index: 1;
    padding-top: 50px;
}

.footer-title {
    font-size: 2rem;
}

.footer-home a,
.footer-page a {
    color: #FFF;
    text-decoration: none;
}

.footer-home a:hover,
.footer-page a:hover {
    text-decoration: underline;
}

.social-footer a img {
    transition: filter 0.3s ease, transform 0.3s ease;
    filter:
        drop-shadow(4px 0 6px rgba(0, 0, 0, 0.1)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

.social-footer a:hover img {
    transform: scale(1.05);
}

.bg-copyright {
    background-color: #f3f4f5;
    color: #000;
    font-size: 1rem;
}

.bg-copyright nav a {
    color: #000;
    text-decoration: none;
}

.bg-copyright a:hover {
    color: #0d6efd;
}



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

/* ##################### GO TO TOP #################### */
.go-to-top {
    position: fixed;
    bottom: 2px;
    right: 20px;
    cursor: pointer;
    display: none;
    z-index: 999;
}

.go-to-top img {
    width: 70px;
    height: 70px;
    transition: transform 0.3s ease;
}

.go-to-top:hover img {
    transform: scale(1.1);
}

/* ##################### CHATBOT #################### */
.chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 15px;
    z-index: 9999;
}

.chatbot-toggle {
    background-color: #fc8204;
    color: white;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.chatbot-box {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    max-height: 400px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    flex-direction: column;
}

.chatbot-header {
    background-color: #fc8204;
    color: black;
    padding: 8px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-close {
    cursor: pointer;
    font-size: 3rem;
    font-weight: 300;
    line-height: 0;
}

.chatbot-body {
    padding: 15px;
    font-size: 1rem;
    color: #333;
}

/* ##################### accessibility #################### */
#accessibility-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: block;
    cursor: pointer;
    z-index: 999;
}

#accessibility-btn button {
    background-color: #003f72;
    color: white;
    border: none;
    border-radius: 1px;
    padding: 5px;
    width: 70px;
    height: 70px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#accessibility-btn button:hover {
    background-color: #0056a3;
}

@media (max-width: 992px) {

    .go-to-top,
    .chatbot-container,
    #accessibility-btn {
        right: 0px;
    }
}

/* ##################### Cookie Consent #################### */
.cookie-consent-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 800px;
    background-color: #FFFFFF;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.cookie-consent-container a {
    color: #054fbe !important;
}

.cookie-header {
    display: flex;
    align-items: flex-start;
}

.cookie-icon {
    background-color: #FFF2EC;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.cookie-icon svg {
    width: 24px;
    height: 24px;
    color: #FF6B35;
}

.cookie-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: #2D3748;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-accept {
    background-color: #8f4402;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accept:hover,
.btn-accept:focus {
    background-color: #9f4c04;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

@media (max-width: 768px) {
    .cookie-consent-container {
        width: 90%;
        padding: 20px;
    }

    .cookie-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cookie-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .btn-accept {
        width: 100%;
    }
}

/* ######################################## PAGE ######################################## */
.breadcrumb-custom {
    font-size: 1rem;
    text-align: right;
}

.breadcrumb-custom a {
    color: #555;
    text-decoration: none;
}

.breadcrumb-custom a:hover {
    color: #024dbc;
}

.breadcrumb-custom span {
    padding-left: 5px;
    padding-right: 5px;
}

.social-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    align-items: flex-end;
    align-self: flex-start;
}

.social-share a {
    text-decoration: none;
    cursor: pointer;
    vertical-align: bottom;
    transition: transform 0.2s ease-in-out;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-share a:hover {
    transform: scale(1.1);
}

.social-share a img {
    display: block;
}

.social-share a:focus {
    outline: 2px solid #024dbc;
    outline-offset: 3px;
}

.text-muted {
    color: #555 !important;
}

/* ######################################## MENU TABS ######################################## */
.sidebar {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: auto;
    /* สูงตามเนื้อหา */
    align-self: flex-start;
    /* ไม่ยืดเต็ม row */
    padding: 0;
}

.sidebar .no-link {
    white-space: normal;
    color: #003366;
    padding: 0.75rem 1.2rem;
    border-left: 4px solid transparent;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.sidebar .no-link.active:hover,
.sidebar .no-link.active:hover *,
.sidebar .no-link.active *:hover {
    cursor: pointer;
}

.sidebar .nav-link {
    white-space: normal;
    color: #003366;
    padding: 0.75rem 1.2rem;
    border-left: 4px solid transparent;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.sidebar .nav-link:hover:not(.active) {
    white-space: normal;
    background: linear-gradient(90deg, #f0f5fc, #e8effa);
    border-left-color: #0056b3;
    color: #002244 !important;
    box-shadow: 0 2px 8px rgba(0, 67, 122, 0.15);
}

.sidebar .nav-link.active {
    white-space: normal;
    background: linear-gradient(135deg, #00478f, #003366);
    color: #ffffff;
    border-left-color: #00a8ff;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 40, 80, 0.25);
    border-bottom: none;
}

.sidebar .nav-link.active:hover,
.sidebar .nav-link.active:hover *,
.sidebar .nav-link.active *:hover {
    background: linear-gradient(135deg, #00478f, #003366) !important;
    color: #ffffff !important;
    border-left-color: #00a8ff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 40, 80, 0.25) !important;
    cursor: pointer;
}

.sidebar .nav-link:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.sidebar .nav-link:focus:not(.focus-visible) {
    outline: none;
}

.sidebar .nav-tabs {
    border: 0;
}

@media (max-width: 767.98px) {
    .sidebar .nav-tabs {
        flex-direction: row !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar .nav-link {
        /*white-space: nowrap;*/
    }
}

.sidebar .no-link.disabled,
.sidebar .nav-link.disabled {
    color: #333 !important;
    opacity: 1;
    font-weight: 600;
}

.sidebar .nav-link:hover .bi {
    background: none !important;
    box-shadow: none !important;
}



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

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

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

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

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

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

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

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

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

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

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

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

    background: #e8f0ff;
    color: #2563eb;

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

    font-size: 20px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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