@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Noto+Sans:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Noto Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f0f0f0;
}

a {
    text-decoration: none;
    color: #005aad;
}

a:hover {
    color: #003d79;
    text-decoration: underline;
}

ul {
    list-style: none;
}

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

/* =================== WRAPPER =================== */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
}

/* =================== TOP BAR =================== */
.top-bar {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 2px 15px;
    font-size: 12px;
    color: #666;
}

.top-bar a {
    color: #666;
    font-size: 12px;
}

/* =================== HEADER =================== */
.header {
    background: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #005aad;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 70px;
    height: auto;
}

.header-title {
    display: flex;
    flex-direction: column;
}

.header-title .line1 {
    font-size: 13px;
    color: #005aad;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-title .line2 {
    font-size: 22px;
    color: #d4770f;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-title .line3 {
    font-size: 12px;
    color: #005aad;
}

.header-title .line3 a {
    color: #005aad;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-date {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 6px 10px;
    font-size: 13px;
    width: 200px;
    outline: none;
}

.search-box button {
    background: #005aad;
    border: none;
    color: #fff;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
}

.search-box button:hover {
    background: #003d79;
}

.search-advanced {
    font-size: 11px;
    display: block;
    text-align: right;
    margin-top: 3px;
}

/* =================== NAVIGATION =================== */
.main-nav {
    background: #005aad;
    position: relative;
    z-index: 100;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 10px 15px;
    cursor: pointer;
}

.main-nav > ul {
    display: flex;
    align-items: stretch;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
    background: #003d79;
    text-decoration: none;
}

/* Dropdown */
.main-nav > ul > li > .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-top: 3px solid #d4770f;
    z-index: 200;
}

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

.main-nav .dropdown a {
    display: block;
    padding: 8px 15px;
    color: #333;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    font-weight: 400;
    text-transform: none;
}

.main-nav .dropdown a:hover {
    background: #f5f5f5;
    color: #005aad;
    text-decoration: none;
}

/* =================== BREADCRUMB =================== */
.breadcrumb {
    background: #f8f9fa;
    padding: 8px 15px;
    font-size: 13px;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a {
    color: #005aad;
}

.breadcrumb span {
    color: #666;
    margin: 0 5px;
}

/* =================== MAIN LAYOUT =================== */
.main-content {
    display: flex;
    gap: 0;
    min-height: 600px;
}

.content-area {
    flex: 1;
    padding: 15px;
    min-width: 0;
}

.sidebar {
    width: 300px;
    min-width: 300px;
    padding: 15px;
    border-left: 1px solid #e0e0e0;
}

/* =================== HOMEPAGE HERO SLIDER =================== */
.hero-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.hero-slider {
    flex: 2;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.hero-slider img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 4px;
}

.hero-slider .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 30px 15px 15px;
}

.hero-slider .slide-caption a {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.hero-latest {
    flex: 1;
    max-height: 350px;
    overflow-y: auto;
}

.hero-latest .latest-title {
    background: #005aad;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0;
}

.hero-latest .latest-list {
    border: 1px solid #e0e0e0;
    border-top: none;
}

.hero-latest .latest-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 8px;
}

.hero-latest .latest-item:last-child {
    border-bottom: none;
}

.hero-latest .latest-item .item-date {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    min-width: 70px;
}

.hero-latest .latest-item a {
    font-size: 13px;
    color: #005aad;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =================== SERVICE IMAGE GRID =================== */
.service-img-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.service-img-grid a {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-img-grid a:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-img-grid a img {
    width: 100%;
    height: auto;
    display: block;
}

/* =================== NEWS GRID (Homepage 4-column) =================== */
.news-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.news-category-box {
    overflow: hidden;
}

.news-category-box .cat-title {
    background: #005aad;
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 3px solid #d4770f;
}

.news-category-box .cat-title a {
    color: #fff;
    text-decoration: none;
}

.cat-main-thumb {
    margin-bottom: 8px;
}

.cat-main-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.cat-main-link {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #005aad;
    margin-bottom: 8px;
    line-height: 1.4;
}

.cat-sub-links {
    list-style: none;
    padding: 0;
}

.cat-sub-links li {
    padding: 3px 0;
    padding-left: 12px;
    position: relative;
    font-size: 12px;
    line-height: 1.4;
}

.cat-sub-links li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #005aad;
    font-weight: 700;
}

.cat-sub-links li a {
    color: #005aad;
    font-size: 12px;
}

/* =================== TOPIC BANNERS =================== */
.topic-banners {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.topic-banners a {
    flex: 1;
}

.topic-banners img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* =================== MULTIMEDIA SECTION =================== */
.multimedia-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.multimedia-box {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.multimedia-box .multi-title {
    background: #005aad;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.multimedia-box .multi-title a {
    color: #fff;
    font-size: 12px;
}

.multi-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.multi-tabs a {
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}

.multi-tabs .tab-active {
    font-weight: 700;
    text-decoration: underline;
}

.multi-tabs span {
    color: #fff;
}

/* =================== INFO GRID (Thông tin tổng hợp) =================== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 10px;
}

.info-grid-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #005aad !important;
    text-decoration: none !important;
    line-height: 1.3;
    text-transform: uppercase;
    transition: background 0.2s;
}

.info-grid-item:hover {
    background: #e8e8e8;
}

.info-grid-item i {
    font-size: 18px;
    color: #005aad;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* =================== VĂN BẢN SECTION =================== */
.vanban-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.vanban-box {
    flex: 1;
    text-align: center;
}

.vanban-box img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 8px;
}

.vanban-box select {
    width: 100%;
    padding: 6px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    color: #333;
}

/* =================== VISIT COUNTER =================== */
.visit-counter {
    text-align: right;
    padding: 10px 15px;
    font-size: 13px;
    color: #005aad;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.counter-digits {
    display: flex;
    gap: 2px;
}

.digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 28px;
    background: #005aad;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 3px;
}

/* =================== SIDEBAR =================== */
.sidebar-box {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-box .sb-title {
    background: #005aad;
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar-box .sb-content {
    padding: 10px;
}

.sidebar-box .sb-content img {
    width: 100%;
    border-radius: 3px;
}

.sidebar-box .sb-list {
    max-height: 250px;
    overflow-y: auto;
}

.sidebar-box .sb-list li {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-box .sb-list li:last-child {
    border-bottom: none;
}

.sidebar-box .sb-list li a {
    font-size: 13px;
    color: #005aad;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar service links/banners */
.sidebar-services {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.sidebar-services a {
    display: block;
}

.sidebar-services a img {
    width: 100%;
    border-radius: 4px;
    transition: transform 0.2s;
}

.sidebar-services a img:hover {
    transform: scale(1.02);
}

/* =================== FOOTER =================== */
.footer {
    background: #003366;
    color: #ccc;
    font-size: 13px;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 20px;
    background: #4a6fa5;
    border-bottom: 1px solid #5580b5;
}

.footer-nav a {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
}

.footer-nav a:hover {
    color: #ffd700;
    text-decoration: none;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 60px;
    height: auto;
    border-radius: 50%;
}

.footer-info {
    flex: 1;
}

.footer-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.footer-info p {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 4px;
}

.footer-login-btn {
    display: inline-block;
    padding: 4px 15px;
    background: #d4770f;
    color: #fff !important;
    border-radius: 3px;
    font-size: 12px;
    margin-top: 4px;
    text-decoration: none !important;
}

.footer-login-btn:hover {
    background: #b8650c;
}

.footer-right {
    flex: 1;
}

.footer-right p {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 3px;
}

.footer-right p i {
    width: 16px;
    margin-right: 5px;
}

.footer-cert {
    text-align: right;
}

.footer-bottom {
    background: #002244;
    padding: 8px 20px;
    text-align: center;
    font-size: 11px;
    color: #999;
    border-top: 1px solid #334466;
}

.footer-bottom a {
    color: #9cc;
}
.article-detail {
    padding: 0;
}

.article-detail .article-title {
    font-size: 24px;
    color: #003d79;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #999;
    flex-wrap: wrap;
}

.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-meta .meta-item i {
    font-size: 14px;
    color: #999;
}

.article-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-tools .tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
}

.article-tools .tool-btn:hover {
    background: #f0f0f0;
}

.article-tools .font-size-btn {
    font-weight: 700;
    font-size: 12px;
    width: auto;
    padding: 0 8px;
}

.article-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.article-content h2, .article-content h3 {
    color: #005aad;
    margin: 20px 0 10px;
    font-weight: 700;
}

.article-content h2 {
    font-size: 18px;
}

.article-content h3 {
    font-size: 16px;
}

.article-content p {
    margin-bottom: 12px;
    text-align: justify;
}

.article-content img {
    display: block;
    max-width: 100%;
    margin: 15px auto;
    border-radius: 4px;
}

.article-content .img-caption {
    text-align: center;
    font-style: italic;
    font-size: 13px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 15px;
}

.article-sapo {
    font-weight: 700;
    font-style: italic;
    font-size: 15px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid #005aad;
    line-height: 1.7;
}

.article-author {
    font-weight: 600;
    font-style: italic;
    text-align: right;
    margin-top: 15px;
    color: #666;
}

/* Related articles */
.related-articles {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #005aad;
}

.related-articles h3 {
    font-size: 15px;
    font-weight: 700;
    color: #005aad;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.related-articles ul li {
    padding: 4px 0;
    padding-left: 15px;
    position: relative;
    margin-bottom: 3px;
}

.related-articles ul li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #005aad;
    font-weight: 700;
    font-size: 16px;
}

.related-articles ul li a {
    font-size: 13px;
    color: #005aad;
}

/* =================== CATEGORY LISTING =================== */
.category-listing {
    padding: 0;
}

.category-listing .cat-heading {
    font-size: 18px;
    color: #003d79;
    font-weight: 700;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #005aad;
    text-transform: uppercase;
}

.category-list-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.category-list-item .cat-thumb {
    width: 180px;
    min-width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.category-list-item .cat-info {
    flex: 1;
}

.category-list-item .cat-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.category-list-item .cat-info h3 a {
    color: #005aad;
}

.category-list-item .cat-info h3 a:hover {
    color: #003d79;
}

.category-list-item .cat-info .cat-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.category-list-item .cat-info .cat-summary {
    font-size: 13px;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 15px 0;
    margin-top: 10px;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    color: #005aad;
    transition: background 0.2s;
}

.pagination a:hover {
    background: #005aad;
    color: #fff;
    text-decoration: none;
}

.pagination .active {
    background: #005aad;
    color: #fff;
    border-color: #005aad;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
    }

    /* Hamburger menu */
    .nav-toggle {
        display: block;
    }

    .main-nav > ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-nav > ul.nav-open {
        display: flex;
    }

    .main-nav > ul > li > a {
        padding: 12px 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav > ul > li .dropdown {
        position: static;
        display: none;
        background: #004080;
        box-shadow: none;
        min-width: 100%;
    }

    .main-nav > ul > li:hover .dropdown,
    .main-nav > ul > li:focus-within .dropdown {
        display: block;
    }

    .main-nav > ul > li .dropdown a {
        padding: 10px 30px;
    }

    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }

    .hero-section {
        flex-direction: column;
    }

    .news-categories {
        grid-template-columns: 1fr 1fr;
    }

    .service-img-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-list-item .cat-thumb {
        width: 120px;
        min-width: 120px;
        height: 80px;
    }

    .vanban-section {
        flex-direction: column;
    }

    .topic-banners {
        flex-direction: column;
    }

    .multimedia-section {
        flex-direction: column;
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
    }
}
