/* new_responsive.css */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
}

img {
    max-width: 100% !important;
    height: auto !important;
}

.sticky-header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.full-width-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 2px solid #1a432b;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 80px !important;
    margin-right: 15px;
}

.header-title {
    font-size: 26px;
    font-weight: bold;
    color: #1a432b;
    margin: 0;
    text-transform: uppercase;
}

.header-search {
    display: flex;
}

.header-search input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    width: 250px;
    box-sizing: border-box;
}

.header-search button {
    background: #1a432b;
    color: #fff;
    border: 1px solid #1a432b;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    box-sizing: border-box;
}

.header-search-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

.header-date {
    font-size: 12px;
    font-style: italic;
    color: #555;
    margin-top: 4px;
}

.main-nav {
    background: #1a432b;
    border-bottom: 1px solid #143522;
}

/* Slider Fix */
.carousel-inner .item {
    height: 650px;
    background: #000;
}

.carousel-inner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.art-postheader {
    margin-top: 0;
}

/* Nút điều hướng slide: Ẩn trên desktop, hover mới hiện. */
@media (min-width: 769px) {
    .carousel-control {
        opacity: 0 !important;
        transition: opacity 0.3s ease;
    }

    .carousel:hover .carousel-control {
        opacity: 0.5 !important;
    }

    .carousel:hover .carousel-control:hover {
        opacity: 0.9 !important;
    }
}

.main-content {
    background: #fff;
    padding: 20px 0 30px 0;
}

.section-title,
.tieudechudetin {
    font-size: 20px;
    font-weight: bold;
    color: #1a432b;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.section-title::before,
.section-title::after,
.tieudechudetin::before,
.tieudechudetin::after {
    content: "";
    flex: 1;
    border-bottom: 2px solid #eee;
    margin: 0 15px;
}

.col-md-8>.tieudechudetin:first-child,
.col-md-8>.section-title:first-child,
.col-md-4>.tieudechudetin:first-child,
.col-md-4>.section-title:first-child {
    margin-top: 0;
}

.tieudechudetin a {
    color: #1a432b;
    text-decoration: none;
}

/* Custom Breadcrumb */
.breadcrumb-custom {
    padding: 10px 15px;
    background-color: #f1f8f3;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-left: 4px solid #1a432b;
}

.breadcrumb-custom a {
    color: #1a432b;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-custom a:hover {
    color: #28a745;
}

.breadcrumb-custom .separator {
    margin: 0 10px;
    color: #999;
    font-size: 12px;
}

.breadcrumb-custom i.fa {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .breadcrumb-custom {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Style for old tin tuc output */
.content-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.tieudetinthu1trongchude {
    font-size: 16px;
    margin-bottom: 10px;
}

.tieudetinthu1trongchude a {
    color: #333;
    text-decoration: none;
}

.tieudetinthu1trongchude a:hover {
    color: #1a432b;
}

.utility-banner {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;
}

.hotline-box {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 4px;
}

.hotline-box h3 {
    color: #d9534f;
    margin-top: 0;
    font-size: 18px;
}

.hotline-box .phone {
    font-size: 24px;
    font-weight: bold;
    color: #c9302c;
    margin: 5px 0;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links li a {
    display: block;
    padding: 10px 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

.quick-links li a:hover {
    background: #1a432b;
    color: #fff;
    border-color: #1a432b;
}

.partner-slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.partner-slider-wrapper {
    position: relative;
    width: 100%;
}

.partner-slider-wrapper:hover .slider-btn {
    opacity: 1;
}

.partner-slider-list {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.partner-slider-list::-webkit-scrollbar {
    display: none;
}

.partner-card {
    flex: 0 0 calc(20% - 16px);
    /* 5 items, trừ đi gap */
    text-align: center;
    scroll-snap-align: start;
}

.partner-card img {
    max-width: 100%;
    height: 80px !important;
    object-fit: contain;
    margin-bottom: 10px;
}

.partner-card-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.full-width-footer {
    background: #1a432b;
    color: #fff;
    padding: 20px 0;
}

.footer-col h4 {
    color: #fff;
    margin: 20px 0;
    font-size: 22px;
    text-transform: uppercase;
    border-bottom: 1px solid #336644;
    padding-bottom: 10px;
}

.footer-col p,
.footer-col a {
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
    text-decoration: none;
}

.footer-col i.fa {
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border: 1px solid #fff;
    border-radius: 3px;
    margin-right: 10px;
}

.footer-col a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #336644;
    color: #aaa;
    font-size: 13px;
}

/* Desktop Menu styling (Dropdown) */
.main-nav {
    position: relative;
    z-index: 1000;
}

.main-nav ul.art-hmenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-nav ul.art-hmenu li {
    position: relative;
    margin-right: 1px;
}

.main-nav ul.art-hmenu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

.main-nav ul.art-hmenu li a.active,
.main-nav ul.art-hmenu li:hover>a.active {
    background-color: #fff !important;
    color: #1A432B !important;
    border-radius: 20px;
}

.main-nav ul.art-hmenu li a .dropdown-icon {
    margin-left: 10px;
}

.main-nav ul.art-hmenu li:hover>a {
    color: #1a432b;
    background: #fff;
    border-radius: 20px;
}

.main-nav ul.art-hmenu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a432b;
    min-width: 250px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 0;
    list-style: none;
}

.main-nav ul.art-hmenu li:hover>ul {
    display: block;
}

.main-nav ul.art-hmenu li ul li {
    width: 100%;
}

.main-nav ul.art-hmenu li ul li a {
    text-transform: none;
    font-weight: normal;
    padding: 10px 15px;
    border-bottom: 1px solid #143522;
    color: #fff;
    border-radius: 0 !important;
}

.main-nav ul.art-hmenu li ul li:hover>a {
    background: #fff;
    color: #1a432b;
    border-radius: 0 !important;
}

.main-nav ul.art-hmenu li ul li ul {
    top: 0;
    left: 100%;
}

/* Mobile Menu Component Defaults (hidden on desktop) */
.mobile-menu-toggle {
    display: none;
}

#btnMobileMenu {
    background: #1a432b;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.menu-overlay.active {
    display: block;
}

.mobile-menu-header {
    display: none;
}

.btn-close-menu {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 15px;
    float: right;
    cursor: pointer;
}


.online {
    width: 16px;
    height: 16px;
    float: left;
    margin-right: 5px;
    background-image: url("../images/theme/counter.png");
    background-position: -128px 0;
}

.homnay {
    width: 16px;
    height: 16px;
    float: left;
    margin-right: 5px;
    background-image: url("../images/theme/counter.png");
    background-position: -192px 0;
}

.tuannay {
    width: 16px;
    height: 16px;
    float: left;
    margin-right: 5px;
    background-image: url("../images/theme/counter.png");
    background-position: -64px 0;
}

.thangnay {
    width: 16px;
    height: 16px;
    float: left;
    margin-right: 5px;
    background-image: url("../images/theme/counter.png");
    background-position: -96px 0;
}

.thanhvien {
    width: 16px;
    height: 16px;
    float: left;
    margin-right: 5px;
    background-image: url("../images/theme/counter.png");
    background-position: -32px 0;
}

@media (max-width: 768px) {
    .full-width-header {
        padding: 8px 0;
    }

    .header-flex {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .header-logo {
        flex-direction: row;
        text-align: left;
        width: calc(100% - 70px);
    }

    .header-logo img {
        width: 40px !important;
        height: 40px !important;
        margin-right: 10px;
        margin-bottom: 0;
    }

    .header-title {
        font-size: 14px;
        margin-top: 0;
        line-height: 1.2;
        text-align: left !important;
    }

    .header-title span {
        font-size: 9px !important;
    }

    /* Giảm chiều cao slider trên mobile */
    .carousel-inner .item {
        height: 250px;
        /* Có thể điều chỉnh lại thông số này nếu muốn */
    }

    .header-search {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
        order: 3;
        /* Push to bottom */
    }

    .header-search-wrapper {
        align-items: center;
    }

    .header-search form {
        justify-content: center;
        width: 100%;
    }

    .header-search input {
        width: calc(100% - 50px);
        max-width: none;
    }

    /* Mobile Menu slide from left */
    .mobile-menu-toggle {
        display: block;
        margin-top: 0;
        width: auto;
        order: 2;
        /* Put next to logo */
    }

    #btnMobileMenu {
        width: auto;
        border-radius: 4px;
        display: inline-block;
        padding: 6px 10px;
        font-size: 13px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: #1a432b;
        /* Primary green background */
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .main-nav.open {
        left: 0;
    }

    .mobile-menu-header {
        display: block;
        border-bottom: 1px solid #143522;
        background: #143522;
    }

    .btn-close-menu {
        background: transparent;
    }

    .main-nav ul.art-hmenu {
        flex-direction: column;
    }

    .main-nav ul.art-hmenu li {
        width: 100%;
    }

    .main-nav ul.art-hmenu li a {
        color: #fff;
        border-bottom: 1px solid #235839;
    }

    .main-nav ul.art-hmenu li:hover>a {
        background: #143522;
        color: #fff;
    }

    /* Submenus in mobile: accordion style */
    .main-nav ul.art-hmenu li ul {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border-top: none;
        background: #143522;
    }

    .main-nav ul.art-hmenu li.expanded>ul {
        display: block;
    }

    .main-nav ul.art-hmenu li ul li a {
        border-bottom: 1px solid #235839;
        padding-left: 30px;
    }

    .main-nav ul.art-hmenu li ul li:hover>a {
        background: #0f2619;
    }

    /* Disable hover open on mobile */
    .main-nav ul.art-hmenu li:hover>ul {
        display: none;
    }

    .main-nav ul.art-hmenu li.expanded>ul {
        display: block;
    }
}

/* News Slider */
.news-slider-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.news-slider-wrapper:hover .slider-btn {
    opacity: 1;
}

.news-slider-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 10px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.news-slider-list::-webkit-scrollbar {
    display: none;
}

.news-card {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card-image:hover img {
    transform: scale(1.05);
}

.news-card-date {
    position: absolute;
    top: 15px;
    left: 0;
    background: #39a66d;
    color: #fff;
    padding: 8px 12px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.2;
    z-index: 2;
}

.news-card-date .day {
    font-size: 20px;
}

.news-card-content {
    padding: 15px 0;
}

.news-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #1a432b;
    margin-bottom: 10px;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

.news-card-title:hover {
    color: #39a66d;
}

.news-card-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

.slider-btn {
    position: absolute;
    top: 100px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

@media (max-width: 768px) {
    .news-card {
        flex: 0 0 100%;
    }

    .slider-btn {
        display: none;
    }

    .partner-card {
        flex: 0 0 calc(50% - 10px);
    }

    /* Responsive Vanban Table */
    .vanban-table,
    .vanban-table tbody,
    .vanban-table tr,
    .vanban-table td {
        display: block;
        width: 100%;
    }

    .vanban-table thead {
        display: none;
    }

    .vanban-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        background: #fff;
        padding: 5px;
    }

    .vanban-table td {
        position: relative;
        padding: 10px 10px 10px 40% !important;
        text-align: left !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        min-height: 40px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .vanban-table td:last-child {
        border-bottom: none !important;
    }

    .vanban-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 35%;
        font-weight: bold;
        text-align: left;
        color: #555;
    }
}

/* 3-column news grid layout */
.news-grid-3cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.news-item-3cols {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-item-3cols:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item-3cols .news-img-link {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-item-3cols .news-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item-3cols:hover .news-img {
    transform: scale(1.05);
}

.news-content-wrapper {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-title-link {
    font-size: 15px;
    font-weight: bold;
    color: #1a432b;
    margin-bottom: 10px;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

.news-title-link:hover {
    color: #C8121E;
}

.news-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    font-style: italic;
}

.news-excerpt {
    font-size: 13.5px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
    flex: 1;
}

@media (max-width: 900px) {
    .news-grid-3cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid-3cols {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .news-grid-3cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-size: 20px;
    border: none;
    outline: none;
    background-color: #1A432B;
    color: white;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
    text-align: center;
    line-height: 45px;
}

#scrollToTopBtn:hover {
    background-color: #12331f;
    color: #fff;
    transform: translateY(-3px);
}

/* Beautiful table styles for content areas (Desktop & Mobile Base) */
.content table,
.bg-content table,
.art-postcontent table,
.news-content-wrapper table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.content table th,
.bg-content table th,
.art-postcontent table th,
.news-content-wrapper table th,
.content table thead td,
.bg-content table thead td,
.art-postcontent table thead td,
.news-content-wrapper table thead td {
    background-color: #1a432b;
    color: #ffffff;
    font-weight: bold;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #143522;
}

.content table td,
.bg-content table td,
.art-postcontent table td,
.news-content-wrapper table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    color: #333;
    vertical-align: middle;
}

.content table tbody tr,
.bg-content table tbody tr,
.art-postcontent table tbody tr,
.news-content-wrapper table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.content table tbody tr:nth-of-type(even),
.bg-content table tbody tr:nth-of-type(even),
.art-postcontent table tbody tr:nth-of-type(even),
.news-content-wrapper table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.content table tbody tr:last-of-type,
.bg-content table tbody tr:last-of-type,
.art-postcontent table tbody tr:last-of-type,
.news-content-wrapper table tbody tr:last-of-type {
    border-bottom: 2px solid #1a432b;
}

.content table tbody tr:hover,
.bg-content table tbody tr:hover,
.art-postcontent table tbody tr:hover,
.news-content-wrapper table tbody tr:hover {
    background-color: #f1f8f3;
}

/* Fix UI for Mobile on News Details */
@media (max-width: 768px) {
    .tieudechudetin {
        height: auto;
        display: block;
        padding: 5px 10px;
        line-height: 1.4;
    }

    .tieudechudetin::before,
    .tieudechudetin::after {
        display: none;
    }

    .content,
    .bg-content,
    .art-postcontent,
    .news-content-wrapper {
        overflow-x: auto;
    }

    .content table,
    .bg-content table,
    .art-postcontent table,
    .news-content-wrapper table {
        width: 100% !important;
        max-width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Page Preloader */
#page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
    text-align: center;
    position: relative;
    width: 80px;
    height: 80px;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: pulse 1.5s infinite;
}

.preloader-spinner {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid transparent;
    border-top-color: #1a432b;
    border-bottom-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

body.preloader-hidden #page-preloader {
    opacity: 0;
    visibility: hidden;
}