.breadcrumb {
    /* flex-wrap: nowrap; */
}

.breadcrumb a {
    text-decoration: none;
    color: #4F55A1;
    font-size: 14px;
    font-weight: 500;
    text-wrap-mode: nowrap;
}

.breadcrumb-item.active span {
    text-decoration: none;
    color: #4F55A1;
    font-size: 14px;
    font-weight: 600;
}

li.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\f105";
    /* Unicode ของ fa-angle-right */
    font-family: "Font Awesome 5 Free";
    /* หรือ "Font Awesome 6 Free" ขึ้นกับเวอร์ชัน */
    font-weight: 700;
    /* solid icon ต้อง 900 */
    color: #4F55A1;
    /* ปรับสีตามธีม */
    font-size: 20px;
    /* ปรับขนาดไอคอน */
    vertical-align: middle;
    /* จัดตรงกลางกับข้อความ */
}


.text-style {
    font-weight: 700;
    font-size: 32px;
    line-height: 1.51;
    /* 151% */
    letter-spacing: 0;
}

.banner h1 {
    color: #4F55A1;
    font-size: 32px;
    font-weight: 600;
}

.box-agencies-human {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.box-agencies-human .img {
    width: 100%;
    height: 344px;
    /* สามารถปรับเป็น max-height หรือใช้ % ถ้าต้องการ responsive */
    overflow: hidden;
    /* ตัดส่วนเกินของ img */
    display: block;
    /* flex ไม่จำเป็น */
}

.box-agencies-human .img img {
    width: 100%;
    height: 100%;
    /* ครอบเต็ม container */
    object-fit: cover;
    /* crop ไม่บิดสัดส่วน */
    object-position: top;
    /* crop จากด้านบน */
    display: block;
}

.box-agencies-human .detail {
    display: flex;
    flex-direction: column;
}

.box-agencies-human .name {
    background-color: #4F55A1;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    padding: 10px;
}

.box-agencies-human .position {
    background-color: #E6E8FF;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #4F55A1;
    text-align: center;
    padding: 10px;
}

.title-menu {
    font-size: 24px;
    font-weight: 600;
    color: #4F55A1;
}


/* Container เมนูหลัก */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    background-color: #f8f9fa;
    border-radius: 10px;
    /* รอบเมนูทั้งหมด */
    overflow: hidden;
    /* ซ่อนมุมโค้งของ child */
}

/* รายการเมนู */
.sidebar-menu li {
    position: relative;
    border-bottom: 1px solid var(--BLUE-1, #B3EBFF);
    /* เส้นแบ่งแต่ละ li */
}

/* ลบ border ของ li สุดท้าย */
.sidebar-menu>li:last-child {
    border-bottom: none;
}

/* Link เมนู */
.sidebar-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #4F55A1;
    text-decoration: none;
    transition: background 0.3s;
    background-color: #f8f9fa;
    /* background ปกติ */
    font-weight: 600;
}

/* hover Link */
.sidebar-menu li a:hover {
    background-color: #e2e6ea;
}

/* li ที่ active */
.sidebar-menu li.active>a {
    background-color: #B3EBFF;
    /* สี background ของ active */
    color: #4F55A1;
    font-weight: 600;
}

/* li active ที่มี submenu */
.sidebar-menu li.has-children.active>a {
    background-color: #B3EBFF;
    color: #4F55A1;
}

/* hover ของ li active */
.sidebar-menu li.active>a:hover {
    background-color: #B3EBFF;
}

/* เมนูที่มี submenu - ลูกศร */
.sidebar-menu li.has-children>a::after {
    content: "▸";
    position: absolute;
    right: 1rem;
    transition: transform 0.3s;
}

/* หมุนลูกศรเมื่อเปิด submenu */
.sidebar-menu li.has-children.active>a::after {
    transform: rotate(90deg);
    color: #4F55A1;
    /* สีลูกศรเด่น */
}

/* ซ่อน submenu */
.sidebar-menu li.has-children>ul {
    list-style: none;
    padding-left: 1rem;
    display: none;
}

/* แสดง submenu เมื่อ active */
.sidebar-menu li.has-children.active>ul {
    display: block;
}

/* Border-radius li แรกและ li สุดท้าย */
.sidebar-menu>li:first-child>a {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.sidebar-menu>li:last-child>a {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Submenu li ไม่ซ้อนมุม parent */
.sidebar-menu li.has-children>ul>li:first-child>a,
.sidebar-menu li.has-children>ul>li:last-child>a {
    border-radius: 0;
    border-bottom: 1px solid var(--BLUE-1, #B3EBFF);
    /* submenu li ก็มี border */
}

/* ลบ border ของ li สุดท้ายใน submenu */
.sidebar-menu li.has-children>ul>li:last-child {
    border-bottom: none;
}

.banner-slide {
    height: 344px;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 58.91%, #E6E8FF 100%);
    border-radius: 10px;
}

.banner-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.text-news-laster {
    font-size: 48px;
    font-weight: 600;
    color: #4F55A1;
}

.box-news-card {
    box-shadow: 0px 0px 10px rgba(0, 0, 0, .3);
    transition: transform 0.3s, filter 0.3s, box-shadow 0.3s;
    border-radius: 16px;
    cursor: pointer;
    height: max-content;
}

.box-news-card:hover {
    transform: translateY(-8px) scale(1.02);
    /* ลอยขึ้น + ขยายเล็กน้อย */
    filter: brightness(1.05);
    /* ทำให้สว่างขึ้นเล็กน้อย */
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    /* เงาเข้มขึ้น */
}

.box-news-item {
    height: 580px;
}

.box-news-item a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    height: 100%;
    /* justify-content: center; */
}

.box-news-item .date {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 6px;
}

.box-news-item .date span {
    font-size: 18px;
    font-weight: 500;
    color: #4F55A1;
}

.box-news-item .date svg {
    color: #FFD60A;
}


.box-news-item .hgi-calendar-03,
.box-news-item .hgi-eye {
    font-size: 27px;
    color: #FFD60A !important;
}

.box-news-item .name {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    display: -webkit-box;
    /* ใช้สำหรับ multiline ellipsis */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    /* จำกัด 2 บรรทัด */

    overflow: hidden;
    /* ซ่อนข้อความส่วนเกิน */
    text-overflow: ellipsis;
    /* ใส่ ... เมื่อเกิน */
    width: 100%;
}

.box-news-item .detail {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    display: -webkit-box;
    /* ใช้สำหรับ multiline ellipsis */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    /* จำกัด 2 บรรทัด */

    overflow: hidden;
    /* ซ่อนข้อความส่วนเกิน */
    text-overflow: ellipsis;
    /* ใส่ ... เมื่อเกิน */
    width: 100%;
}

.box-img {
    height: 291px;
    width: auto;
    border-radius: 24px;
    margin-top: 20px;
}

.box-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.banner-slide {
    position: relative;
}

.banner-slide-btn-edit {
    position: absolute;
    top: 15px;
    right: 15px;
}

.btn-edit {
    background-color: rgba(79, 85, 161, 0.7);
    /* พื้นหลังโปร่ง 70% */
    border-radius: 50px;
    padding: 5px 10px;
    transition: background 0.3s, transform 0.1s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-edit:hover {
    background-color: rgba(79, 85, 161, 1);
    /* พื้นหลังเต็มเมื่อ hover */
    color: #ffffff;
}

.btn-edit:active {
    background-color: rgba(79, 85, 161, 0.8) !important;
    /* สีเข้มขึ้นเล็กน้อย */
    color: #ffffff;
    transform: scale(0.97);
    /* effect กดปุ่ม */
    border: unset;
}

.btn-edit span {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    /* ข้อความยังชัด */
    pointer-events: none;
    /* ป้องกัน span ไปรับ event ของปุ่ม */
}

.box-news-detail {
    background: linear-gradient(180deg, #FFFFFF -38%, #E6E8FF 100%);
    padding: 16px;
}

.name-detail {
    font-size: 32px;
    font-weight: 600;
    color: #4F55A1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.box-news-detail .date {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 6px;
}

.box-news-detail .date span {
    font-size: 18px;
    font-weight: 500;
    color: #4F55A1;
}

.box-news-detail .date svg {
    color: #863300;
}


.box-news-detail .hgi-calendar-03,
.box-news-detail .hgi-eye,
.box-news-detail .hgi-download-02 {
    font-size: 27px;
    color: #863300 !important;
}

.box-news-detail span.share {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.box-news-detail span.share a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}


.hgi-share-01 {
    font-size: 24px;
    font-weight: 500;
    color: #863300;
}

.box-news-detail span.share a img {
    width: 24px;
    height: 24px;
    object-fit: cover;
}

.box-news-detail .news-detail {
    font-size: 20px;
    font-weight: 500;
    color: #1C1C1C;
}

.box-news-detail .box-img {
    height: auto;
    width: auto;
    border-radius: 24px;
    margin-top: 0px;
}

.box-img-icon-file-download {
    border-radius: 10px;
    border: 2px solid var(--PURPLE-LOGO, #E6E8FF);
    background-color: #E6E8FF;
    height: 84px;
    width: 84px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.file-download-detail {
    width: 100%;
    text-decoration: none;
}

.file-download-detail .name {
    font-size: 18px;
    font-weight: 600;
    color: #4F55A1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding-bottom: 0px;
}

.file-download-detail .date {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 6px;
}

.file-download-detail .date span {
    font-size: 18px;
    font-weight: 500;
    color: #4F55A1;
}

.file-download-detail .date svg {
    color: #863300 !important;
    width: 18px;
}

.file-download-detail .hgi-calendar-03,
.file-download-detail .hgi-download-02 {
    font-size: 24px;
    color: #863300 !important;
    font-weight: 600;
}

.table {
    background: transparent !important;
    border: none;
}

.table td,
.table th {
    background: transparent !important;
    /* โปร่งใสช่องแต่ละช่อง */
    border: none;
    /* เอาเส้นขอบออก */
}

a.file-download .badge {
    border-radius: 50px;
    border: 2px solid var(--PURPLE-LOGO, #4F55A1);
    background-color: #4F55A1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, filter 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
}

.box-search {
    position: relative;
}

.box-search input {
    width: 35%;
    padding: 8px 35px 8px 12px;
    border: 1px solid #ccc;
    border-radius: 50px;
    border: 2px solid var(--PURPLE-LOGO, #4F55A1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, filter 0.3s, box-shadow 0.3s;
}

.box-search .search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
}

.box-file-item a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    height: auto;
    justify-content: center;
}

.box-file-item .box-img {
    height: 394px;
    width: auto;
    border-radius: 0px;
    margin-top: 0px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
}

.box-file-item .name {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.box-file-item .date {
    display: flex;
    width: 100%;
    /* align-items: center; */
    gap: 6px;
}

.box-file-item .hgi-calendar-03,
.box-file-item .hgi-eye {
    font-size: 15px;
    color: #FFD60A !important;
}

.box-file-item .date span {
    font-size: 16px;
    font-weight: 400;
    color: #4F55A1;
}

.share_line_count,
.share_facebook_count {
    font-size: 18px;
    font-weight: 500;
    color: #4F55A1;
}

.box-vdo-item a {
    text-decoration: none;
    width: 100%;
}

.box-vdo-item .name {
    font-size: 24px;
    font-weight: 600;
    color: #4851C3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.box-vdo-item .date {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 6px;
}

.box-vdo-item .hgi-calendar-03,
.box-vdo-item .hgi-eye {
    font-size: 24px;
    color: #FFD60A !important;
}

.box-vdo-item .date span {
    font-size: 18px;
    font-weight: 400;
    color: #4F55A1;
}

.news-name-h1 {
    display: -webkit-box;
    /* ใช้สำหรับ multiline ellipsis */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* จำกัด 2 บรรทัด */

    overflow: hidden;
    /* ซ่อนข้อความส่วนเกิน */
    text-overflow: ellipsis;
    /* ใส่ ... เมื่อเกิน */
    width: 100%;
}

.breadcrumb-news-name {
    display: -webkit-box;
    /* ใช้สำหรับ multiline ellipsis */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    /* จำกัด 2 บรรทัด */

    overflow: hidden;
    /* ซ่อนข้อความส่วนเกิน */
    text-overflow: ellipsis;
    /* ใส่ ... เมื่อเกิน */
    width: 100%;
}


.box-news-item .name img {
    width: auto;
    height: 23px;
}


/* ตารางดาวน์โหลด ใน PC view */
.file-list tbody tr td:first-child {
    width: auto;
}

.file-list tbody tr td:nth-child(2) {
    width: 70%;
}

.file-list tbody tr td:nth-child(3) {
    width: 20%;
}

@media (max-width:576px) {
    .box-img-icon-file-download {
        height: auto;
        width: 31px
    }

    .file-list tbody tr td:first-child {
        width: 40px;
        text-align: center
    }

    .file-list tbody tr td:first-child img {
        width: 20px;
        height: auto
    }

    .file-download-detail .date {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-around;
    }

    .file-list tr td.text-end {
        width: 90px;
        white-space: nowrap
    }

    .file-list tr td.text-end .badge {
        font-size: 12px;
        padding: 6px 8px
    }

    .file-list a.file-download .badge {
        font-size: 13px
    }

    .file-download-detail .name {
        -webkit-line-clamp: 5
    }

    .file-download-detail .date svg {
        width: 14px;
    }
    
    .file-download-detail .date span {
        font-size: 14px;
    }

    .text-news-laster {
        font-size: 30px;
    }
}

.btn-save-mailform {
    background: linear-gradient(135deg, #4F55A1, #6C72C3);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.box-file-item .date svg {
    color: #FFD60A;
}

.box-vdo-item .date svg {
    color: #FFD60A;
}


.related-news-prev,
.related-news-next {
    display: none;
    color: #333;
    width: 30px;
    height: 30px
}

.swiper-wrapper-outer {
    overflow-x: hidden;
    position: relative;
    padding: 15px;
    border-radius: 12px;
}

.mySwiper_related_news {
    background-color: #fff;
    overflow: visible;
    position: relative
}

.related-news-prev,
.related-news-next {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .8);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, .2);
    width: 40px;
    height: 40px;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer
}

.related-news-prev {
    left: -14px
}

.related-news-next {
    right: -14px
}

.related-news-prev::after,
.related-news-next::after {
    font-size: 16px
}

.related-news-prev:hover,
.related-news-next:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 8px rgba(0, 0, 0, .3)
}

.div_footer_statistics{
    display: none;
}

@media (max-width: 1280px) {
    .row_agencies_footer_statistics{
        display: none;
    }

    .div_footer_statistics{
        display: block;
    }
}

.banner_slide_desktop{
    display: block;
}

.banner_slide_mobile{
    display: none;
}

@media (max-width: 576px){
    .banner_slide_desktop{
        display: none;
    }

    .banner_slide_mobile{
        display: block;
    }
}