@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 ##################### */
.header {
    background-color: #0b346a;
    position: relative;
}

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

.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: #023e8d;
}

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

.dropdown-item:focus {
    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.active::before, .navbar-nav .nav-link:hover::before, .navbar-nav .nav-link.show::before {
    opacity: 1;
}

.logo-box {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    color: #fff;
    font-size: 1.7rem;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: none;
}

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

.logo-box:hover {
    color: #fff;
}

.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.65rem !important;
    white-space: normal;
    word-break: break-all;
}

.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: 120px;
    border-radius: 50px;
    font-size: 1rem;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

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

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

#lang-btn .bi-chevron-down {
    font-size: 0.7rem !important;
}

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

@media (min-width: 575.98px) and (max-width: 991.98px) {
    .logo-box {
        margin-top: 45px;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .dropdown-item {
        max-width: 100%;
    }

    .logo-box {
        margin-top: 45px;
        margin-bottom: 10px;
    }
}

@media (min-width: 0px) and (max-width: 400px) {
    .logo-box {
        display: flex;
        flex-direction: column;
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@media (prefers-reduced-motion: reduce) {
    .global-search-trigger, .global-search-tag, .global-search-result-item, .global-search-advanced-toggle {
        transition: none;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.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;
    height: clamp(280px, 35vw, 450px);
    object-fit: contain;
    background-color: #12407c;
}

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

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

.highlight-wrapper .carousel-indicators {
    bottom: -53px;
}

.highlight-wrapper {
    position: relative;
}

.highlight-wrapper .carousel-control-prev, .highlight-wrapper .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    padding: 0;
}

.highlight-wrapper .carousel-control-prev {
    left: -50px;
}

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

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

    .highlight-wrapper .carousel-control-next {
        right: 0px;
    }
}

@media (max-width: 992px) {
    .highlight-wrapper .carousel-control-prev {
        left: -30px;
    }

    .highlight-wrapper .carousel-control-next {
        right: -30px;
    }
}

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

    .highlight-wrapper .carousel-control-next {
        right: -35px;
    }
}

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

    .highlight-wrapper .carousel-control-next {
        right: 0;
    }
}

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

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

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

@media (min-width: 768px) and (max-width: 991.98px) {
    .newshighway {
        padding-right: 0px !important;
    }
}

@media (min-width: 0px) and (max-width: 767.99px) {
    .newshighway {
        background-position: -32px bottom !important;
        padding-right: 15px !important;
    }
}

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

.video-thumbnail-wrapper img {
    width: 100%; /*height: 450px;*/
    height: clamp(280px, 35vw, 450px);
    object-fit: cover;
    object-position: center center
}

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

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

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

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

.text-vdo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0b346a;
    text-align: center;
}

.video-thumbnail-wrapper2 {
    border-radius: 1.7rem;
    border: 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 {
        height: 450px;
    }

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

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

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

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

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

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

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

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

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

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

.news-tabs {
    border: 0;
}

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

.news-tabs .nav-item:not(:last-child) .nav-link::after {
    content: "|";
    font-weight: 400;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    color: #bbb;
    display: inline-block;
    position: relative;
    right: 0;
}

.news-tabs .nav-link.active {
    color: #8c3304;
    font-weight: 600;
    font-size: 1.5rem;
    background: none;
}

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

.news-card img {
    border-radius: 20px;
    object-fit: cover;
    width: 100%;
    height: 320px;
}

.badge-news {
    background-color: #d7e7f4;
    color: #0b346a;
    font-weight: 500;
    font-size: 1rem;
    padding: 2px 10px;
    border-radius: 2px;
    margin-top: 15px;
    margin-bottom: 15px;
    display: inline-block;
}

.news-meta {
    font-size: 0.875rem;
    color: #555;
    margin-top: 15px;
}

.card-news-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-card a {
    color: #282828;
    text-decoration: none;
}

.news-card a:hover {
    color: #0d6efd;
}

.newshighway {
    background-image: url(../images/bg-road-sign_1.svg);
    background-size: cover;
    background-position: 0px bottom;
    background-repeat: no-repeat;
    padding-bottom: 100px;
    padding-right: 50px;
}

.newshighway .news-item {
    position: relative;
    margin-bottom: 15px;
}

.newshighway .news-item:nth-child(odd) {
    background-color: #003f72;
    border: 4px solid #003f72;
    border-radius: 12px;
    padding: 15px;
}

.newshighway .news-item:nth-child(even) {
    background-color: #016605;
    border: 4px solid #016605;
    border-radius: 12px;
    padding: 15px;
}

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

.news-row {
    display: flex;
    align-items: center;
}

.news-row .news-date {
    flex-shrink: 0;
    background-color: #ecf0f8;
    color: #003f72;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

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

.news-text {
    height: 90px;
    display: flex;
    align-items: center;
}

.news-text-inner {
    color: #FFF;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.news-text a:hover {
    color: #FFF;
    text-decoration: underline;
}

.view {
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    margin-left: 100px;
    color: #FFF;
    margin-top: 10px;
    margin-bottom: 0;
}

.view a {
    color: #FFF;
    font-size: 0.9rem;
    text-decoration: none;
}

.view a:hover {
    color: #FFF;
    text-decoration: underline;
}

.wrap-btn-viewall {
    position: absolute;
    right: 30px;
    top: -60px;
    z-index: 1;
    width: 135px;
}

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

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

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

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

.news-event-text a:hover {
    color: #0d6efd;
}

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

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

/* ##################### ภาพกิจกรรม #################### */
.bg-event {
    position: relative;
}

.bg-event::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background-color: #f6f7fb;
    background-image: url(../images/building.svg);
    background-position: bottom center;
    background-repeat: no-repeat;
}

.news-event-wrapper {
    position: relative;
}

.news-event-wrapper .carousel-control-prev, .news-event-wrapper .carousel-control-next {
    position: absolute;
    z-index: 1;
    top: 45%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    border-radius: 50%;
}

.news-event-wrapper .carousel-control-prev {
    left: 0px;
}

.news-event-wrapper .carousel-control-next {
    right: 0px;
}

.news-event-wrapper .carousel-control-prev-icon, .news-event-wrapper .carousel-control-next-icon {
    filter: invert(1);
    width: 1.5rem;
    height: 1.5rem;
}

.card-news-event-title {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
    height: 46px;
    overflow: hidden;
}

.card-news-event-title a {
    text-decoration: none;
    color: #000;
}

.card-news-event-title a:hover {
    text-decoration: none;
    color: #0d6efd;
}

.news-event .news-meta, .news-event a .news-meta {
    font-size: .8rem;
    color: #0b346a;
    text-decoration: none;
    margin: 0;
}

.news-event {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: nowrap;
    width: 100%;
}

.news-event .card .card-body {
    padding: 10px 5px 5px 5px;
}

.news-event .card {
    padding: 12px;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    transition: .3s ease;
    display: flex;
    flex-direction: column;
}

.news-event .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
}

.news-event .card img {
    border-radius: 0.8rem;
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.news-event .card-small {
    width: 16%;
}

.news-event .card-medium {
    width: 18%;
}

.news-event .card-large {
    width: 20%;
}

.news-event .card-small img {
    height: 130px;
}

.news-event .card-medium img {
    height: 160px;
}

.news-event .card-large img {
    height: 200px;
}

@media (max-width: 1199px) {
    .news-event {
        justify-content: center;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .news-event::-webkit-scrollbar {
        display: none;
    }

    .news-event .card {
        flex: 0 0 auto;
        width: 280px !important;
    }

    .news-event .card img {
        height: 180px !important;
    }

    .news-event-wrapper .carousel-control-prev {
        left: 5px;
    }

    .news-event-wrapper .carousel-control-next {
        right: 5px;
    }
}

@media (max-width: 991px) {
    .news-event .card {
        width: 260px !important;
    }

    .news-event .card img {
        height: 200px !important;
    }
}

@media (max-width: 767px) {
    .news-event .card {
        width: 300px !important;
    }

    .news-event .card img {
        height: 220px !important;
    }

    .news-event-wrapper .carousel-control-prev, .news-event-wrapper .carousel-control-next {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 575px) {
    .news-event .card {
        width: 280px !important;
    }

    .news-event .card img {
        height: 200px !important;
    }

    .card-news-event-title {
        font-size: 0.9rem;
        height: 40px;
    }

    .news-event {
        gap: 0.8rem;
        padding: 1.5rem 0;
    }
}

/* ##################### procurement and job #################### */
.bg-procurement {
    background-color: #f4f7fc;
    background-image: url(../images/bg-2.png);
    background-size: cover;
    background-position: 0px 205px;
    background-repeat: no-repeat;
    padding-bottom: 50px;
}

.procurement-tabs {
    /*display: flex; justify-content: flex-end;*/
    border: 0;
}

.procurement-tabs .nav-link {
    width: 100%;
    min-width: 250px;
    border: 0;
    position: relative;
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 70px;
    text-align: right;
}

.procurement-tabs > li {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    margin-bottom: 15px;
}

.procurement-tabs > li:nth-child(1) .nav-link {
    color: #003f72;
}

.procurement-tabs > li:nth-child(1) .nav-link.active {
    color: #003f72;
}

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

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

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

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

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

.procurement-tabs > li:nth-child(4) .nav-link.active {
    color: #D35400;
}

.procurement-tabs > li:nth-child(5) .nav-link {
    color: #673AB7;
}

.procurement-tabs > li:nth-child(5) .nav-link.active {
    color: #673AB7;
}

.circle-wrap {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scale(1);
    transform-origin: center center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 14px solid;
    background: white;
    z-index: 0;
    transition: transform 0.2s ease;
}

.procurement-tabs > li .nav-link.active {
    font-size: 1.5rem;
    font-weight: 700;
    background-color: transparent;
    border: 0;
}

.procurement-tabs > li .nav-link.active .circle-wrap {
    transform: translateY(-50%) scale(1.3);
}

.procurement-tabs > li .nav-link:hover {
    background-color: #FFF;
    border-radius: 50px;
}

.procurement-list {
    padding: 10px 20px;
}

.procurement-item {
    color: #000;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    display: flex;
    align-items: start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.procurement-item:hover {
    color: #0d6efd;
}

.procurement-item .procurement-date {
    flex-shrink: 0;
    background-color: #ecf0f8;
    color: #1f2021;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

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

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

.tab-content-procurement {
    z-index: 1;
    background-color: white;
    border-radius: 30px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    min-height: 400px;
}

.header-tab-content {
    text-align: center;
    color: #FFF;
    font-size: 1.8rem;
    font-weight: 500;
    border-radius: 30px 30px 0px 0px;
    padding: 10px 25px 10px 25px;
}

.header-tab-content-blue {
    background-color: #003f72;
}

.header-tab-content-green {
    background-color: #01632f;
}

.header-tab-content-brown {
    background-color: #8c3304;
}

.header-tab-content-orange {
    background-color: #D35400;
}

.proc-row {
    display: flex;
    align-items: center;
}

.proc-row .left-col {
    margin-top: 90px;
    /*display: flex; flex-direction: column; justify-content: center;*/
}

.proc-row .right-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wrap-bg-road {
    position: relative;
}

.wrap-bg-road::before {
    content: "";
    position: absolute;
    z-index: 0;
    background-image: url(../images/bg-road.svg);
    background-position: 0px 300px;
    background-size: 52.3%;
    height: 100%;
    width: 100%;
    left: auto;
    right: auto;
    inset: 0;
    margin: 0 auto;
    max-width: 1600px;
    background-repeat: no-repeat;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .procurement-tabs .nav-link {
        min-width: 200px;
        /*white-space: nowrap;*/
    }
}

@media (max-width: 991.98px) {
    .proc-row {
        flex-direction: column;
        align-items: center;
    }

    .proc-row .left-col, .proc-row .right-col {
        margin-top: 20px;
        width: 100%;
    }

    .wrap-bg-road::before {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .wrap-bg-road::before {
        background-size: 55%;
    }
}

/* ##################### Ebooks and Infographic #################### */
.img-ebook img {
    max-width: 250px;
    object-fit: cover;
    object-position: top center;
    box-shadow: 3px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 1px;
}

.infographic-section {
    color: #FFF;
    background-color: #003f72;
}

.arrow-infographic-control {
    bottom: -30px;
    left: 0;
}

.arrow-infographic-control .carousel-control-prev, .arrow-infographic-control .carousel-control-next {
    position: absolute;
    bottom: 30px;
    opacity: 0.8;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 50%;
    border: 1px solid #FFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.arrow-infographic-control .carousel-control-prev {
    left: 0;
}

.arrow-infographic-control .carousel-control-next {
    right: auto;
    left: 60px;
}

.arrow-infographic-control .carousel-control-prev-icon, .arrow-infographic-control .carousel-control-next-icon {
    filter: invert(1);
}

.arrow-infographic-control .carousel-control-prev:hover, .arrow-infographic-control .carousel-control-next:hover {
    opacity: 1;
}

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

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

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

.border-ebook-infographic {
    position: relative;
}

.border-ebook-infographic::after {
    content: "";
    position: absolute;
    top: 0;
    right: 70px;
    width: 1px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
}

/* ================= MOBILE (≤767px) ================= */
@media (max-width: 767.98px) {
    .border-ebook-infographic::after {
        display: none;
    }

    .border-ebook-infographic {
        text-align: center;
        margin-bottom: 40px;
    }

    .img-ebook img {
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }

    /* จัดปุ่ม carousel ให้อยู่กลาง */
    .arrow-infographic-control {
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        width: 110px;
    }

    .arrow-infographic-control .carousel-control-prev, .arrow-infographic-control .carousel-control-next {
        width: 40px;
        height: 40px;
        bottom: 0;
    }

    .arrow-infographic-control .carousel-control-next {
        left: 60px;
    }

    .infographic img {
        max-width: 200px;
    }
}

/* ================= TABLET (768–991px) ================= */
@media (max-width: 991.98px) {
    .infographic-title {
        font-size: 1.7rem;
    }

    .img-ebook img {
        max-width: 200px;
    }

    .border-ebook-infographic::after {
        right: 33px;
    }

    /* ปุ่ม carousel อยู่ตรงกลาง */
    .arrow-infographic-control {
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
    }
}

@media (max-width: 1199.98px) {
    .img-ebook img {
        max-width: 200px;
    }

    .border-ebook-infographic::after {
        right: 15px;
    }
}

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

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

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

.regional-links ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 15px;
    /*padding-top: 5px; padding-bottom: 5px;*/
    height: 45px;
}

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

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

.regional-links ul li a:hover {
    color: #8c3304;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

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

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

/* ##################### Banner Link #################### */
.icon-link {
    width: 100%;
}

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

.icon-link .icon-img {
    width: 240px;
    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.03);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

.icon-link .carousel-control-prev, .icon-link .carousel-control-next {
    position: absolute;
    top: 38px;
    opacity: 0.6;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 50%;
    border: 1px solid #FFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

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

.icon-link .carousel-control-prev-icon, .icon-link .carousel-control-next-icon {
    filter: invert(1);
}

.icon-link .carousel-control-prev:hover, .icon-link .carousel-control-next:hover {
    opacity: 1;
}

.banner-warning {
    position: absolute;
    z-index: 2;
    /*top: -45px;*/
    width: 100%;
}

.banner-warning a:hover {
    transform: scale(1.02);
    transition: color 0.3s ease, transform 0.3s ease;
}

/* ##################### 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: 130px;
}

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

@media (min-width: 0px) and (max-width: 767.98px) {
    .wrap-btn-viewall {
        top: -50px;
    }

    .footer-home {
        padding-top: 50%;
    }

    .banner-warning {
        top: -45px;
    }

    .news-tab-content {
        margin-top: 50px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .footer-home {
        padding-top: 90px;
    }

    .banner-warning {
        top: -20px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .banner-warning {
        top: 0;
    }

    .footer-home {
        padding-top: 90px;
    }

    .bg-links {
        padding-bottom: 70px;
    }
}

@media (min-width: 651px) and (max-width: 767px) {
    .footer-home {
        padding-top: 50%;
    }
}

@media (min-width: 621px) and (max-width: 650px) {
    .footer-home {
        padding-top: 57%;
    }
}

@media (min-width: 0px) and (max-width: 620px) {
    .footer-home {
        padding-top: 63%;
    }
}

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

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

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

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

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

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

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

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

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

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

/* ##################### accessibility #################### */
#accessibility-btn {
    /*position: fixed; bottom: 170px; right: 30px;*/
    display: none;
    cursor: pointer;
    /* z-index: 9999;*/
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


/* ##################### รายงานประจำปี 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;
}


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

/* swiper rel link */
.icon-swiper {
    overflow:hidden;
    padding:35px 35px !important;
}

.icon-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
}

.icon-swiper .icon-item {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.icon-swiper .icon-img {
    width: 240px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.20));
    transition: transform 0.25s ease, filter 0.25s ease;
}

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

/* .icon-swiper .swiper-button-prev {
    left: 0px;
}
.icon-swiper .swiper-button-next {
    right: 0px;
} */

/* ===== Swiper navigation (circle style like screenshot) ===== */
.icon-swiper .swiper-button-prev,
.icon-swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(245, 242, 242, 0.6); /* เทาโปร่ง */
    color: #000;
    box-shadow: 0 4px 10px rgba(1, 5, 75, 0.25);
    transition: all .2s ease;
}

/* ลูกศร */
.icon-swiper .swiper-button-prev::after,
.icon-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: bold;
}

/* hover */
.icon-swiper .swiper-button-prev:hover,
.icon-swiper .swiper-button-next:hover {
    background: rgba(90, 90, 90, 0.85);
}

/* mobile */
@media (max-width: 575px) {
    .icon-swiper .swiper-button-prev,
    .icon-swiper .swiper-button-next {
        width: 36px;
        height: 36px;
    }
}

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