﻿
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Noto+Sans:wght@400;500;600;700&display=swap');
/* ============================================================
   CÔNG TY ĐIỆN LỰC SƠN LA - FINAL VERSION
   ============================================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff; /* ✅ NỀN TRẮNG */
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}

/* ============================================================
   CONTAINER - PHÙ HỢP RESPONSIVE
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px; /* ✅ Container vừa phải (1200px thay vì 1400px) */
    margin: 0 auto;
    padding: 0 15px;
}

/* Responsive Container */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
}

@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 12px;
    }
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    color: #555;
}

.top-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

    .top-link:hover {
        color: #1565c0;
    }

.separator {
    color: #ccc;
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 11px;
        padding: 5px 0;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 5px;
    }
}

/* ============================================================
   HEADER - 3 CỘT: Logo | Background | Search
   ============================================================ */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    /*    border-bottom: 3px solid #00aaff;*/
    border-bottom: 3px #C52A1F solid;
    /* Bỏ padding cũ, để các cột tự quản lý */
    padding: 0;
}

.header-grid {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 100px;
    /*height: 120px;*/ /* ✅ Cố định 120px thay vì min-height: 100px */
}

/* Cột 1: Logo - 288px cố định */
.header-col-logo {
    flex: 0 0 288px;
    width: 288px;
    display: flex;
    align-items: center;
    padding: 6px 15px;
    overflow: hidden;
}

/* Cột 2: HeaderBackground - chiếm phần còn lại */
.header-col-bg {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Cột 3: Search - 200px cố định */
.header-col-search {
    flex: 0 0 220px;
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 6px 15px;
}

/* Header Background Image trong cột 2 */
.header-bg-image {
    width: 100%;
    height: 120px; /* ✅ Khớp với chiều cao header-grid */
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ✅ Logo hiển thị ĐẦY ĐỦ, không bị cắt */
.aero-header__logo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    display: block;
}

/* ✅ Company name text */
.company-name {
    font-size: 16px;
    font-weight: 700;
    color: #1565c0;
    margin: 0;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .company-name br {
        display: block;
        content: "";
        margin: 3px 0;
    }

/* Responsive: tablet */
@media (max-width: 992px) {
    .header-grid {
        height: 100px;
    }

    .header-bg-image {
        height: 100px;
    }

    .aero-header__logo {
        max-height: 88px;
    }

    .header-col-logo {
        flex: 0 0 220px;
        width: 220px;
    }

    .header-col-search {
        flex: 0 0 240px;
        width: 240px;
    }
}

/* Responsive: mobile — xếp dọc */
@media (max-width: 768px) {
    .header-grid {
        height: auto; /* Mobile thì để auto vì wrap 2 dòng */
        flex-wrap: wrap;
    }

    .header-col-logo {
        flex: 0 0 100%;
        width: 100%;
        padding: 10px 15px 6px;
    }

    .aero-header__logo {
        max-height: 60px;
    }

    .header-col-bg {
        display: none;
    }

    .header-col-search {
        flex: 0 0 100%;
        width: 100%;
        padding: 6px 15px 10px;
        justify-content: flex-start;
    }
}

/* Header Background Image trong cột 2 */
.header-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ============================================================
   SEARCH FORM - HEADER CỘT 3
   ============================================================ */
.search-box {
    display: flex;
    align-items: stretch; /* ✅ nút cao bằng ô */
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 6px 15px;
    width: 100%;
    outline: none;
    font-size: 13px;
}

.search-btn {
    background: #1565c0;
    border: none;
    color: #fff;
    padding: 6px 15px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch; /* ✅ lấp đầy chiều cao ô, không bị hụt nền xanh */
    flex: 0 0 auto;
}

    .search-btn:hover {
        background: #0d47a1;
    }

/* Responsive */
@media (max-width: 992px) {
    .search-box {
        border-radius: 25px;
    }

    .search-input {
        padding: 8px 14px;
        font-size: 12px;
    }

    .search-btn {
        width: 46px;
        padding: 0;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .search-box {
        border-radius: 22px;
    }

    .search-btn {
        width: 46px;
        padding: 0;
        font-size: 15px;
    }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    height: 450px;
    overflow: hidden;
/*    margin-bottom: 30px;*/
}

.hero-slide {
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

    .hero-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(21, 101, 192, 0.7) 0%, rgba(13, 71, 161, 0.5) 100%);
    }

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 50px;
    max-width: 800px;
}

    .hero-content h2 {
        font-size: 52px;
        font-weight: 800;
        text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
        margin-bottom: 25px;
        line-height: 1.2;
    }

    .hero-content .btn-about {
        background: rgba(255, 255, 255, 0.95);
        color: #1565c0;
        padding: 15px 45px;
        font-weight: 700;
        border: none;
        text-transform: uppercase;
        letter-spacing: 2px;
        transition: all 0.4s;
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        border-radius: 5px;
        text-decoration: none;
        display: inline-block;
    }

        .hero-content .btn-about:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        }

@media (max-width: 992px) {
    .hero-slider, .hero-slide {
        height: 350px;
    }

    .hero-content h2 {
        font-size: 40px;
    }

    .hero-content {
        padding: 0 30px;
    }
}

@media (max-width: 576px) {
    .hero-slider, .hero-slide {
        height: 250px;
    }

    .hero-content {
        padding: 0 20px;
    }

        .hero-content h2 {
            font-size: 28px;
        }

        .hero-content .btn-about {
            padding: 12px 30px;
            font-size: 14px;
        }
}

/* ============================================================
   NEWS SECTIONS
   ============================================================ */
main {
    background: #fff;
    padding: 5px 0;
}

.section-title {
/*    background: #1565c0;*/
    background: #20398B;
    color: #fff;
    padding: 12px 20px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

    .section-title i {
        margin-right: 10px;
        font-size: 18px;
    }

.news-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s;
    border-radius: 5px;
}

    .news-box:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

.news-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    align-items: flex-start;
}

    .news-item:last-child {
        border-bottom: none;
    }

    .news-item:hover {
        background: #f9f9f9;
    }

.news-thumb {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 4px;
}

    .news-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.3s;
    }

.news-item:hover .news-thumb img {
    transform: scale(1.1);
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .news-title a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s;
    }

        .news-title a:hover {
            color: #1565c0;
        }

.news-meta {
    font-size: 12px;
    color: #999;
}

    .news-meta i {
        margin-right: 5px;
        color: #1565c0;
    }


/* Section Title - Clickable Link */
.section-title-link {
    display: block;
    text-decoration: none;
}

.section-title {
    /* Giữ lại các thuộc tính cũ, bổ sung thêm */
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.25s ease;
}

/* News Item - Toàn vùng click được */
.news-item-clickable {
    cursor: pointer;
    transition: background 0.2s ease;
}

    .news-item-clickable:hover {
        background: #f0f6ff;
    }

        /* Tránh double-underline trên title khi hover item */
        .news-item-clickable:hover .news-title a {
            color: #1565c0;
        }

    /* Accessibility: focus outline */
    .news-item-clickable:focus {
        outline: 2px solid #1565c0;
        outline-offset: -2px;
    }

@media (max-width: 992px) {
    .section-title {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media (max-width: 576px) {
    .news-item {
        flex-direction: column;
        padding: 12px;
    }

    .news-thumb {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .news-title {
        font-size: 13px;
    }
}

/* ============================================================
   BREADCRUMB NAVIGATION - ✅ MỚI THÊM
   ============================================================ */
.breadcrumb-wrapper {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    padding: 0 8px;
    color: #999;
}

.breadcrumb-item a {
    color: #1565c0;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
}

/* ============================================================
   ARTICLE DETAIL PAGE - ✅ MỚI THÊM
   ============================================================ */

/* Article Container */
.article-detail-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.article-main {
    flex: 1;
    min-width: 0;
}

.article-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Article Header */
.article-header {
    margin-bottom: 25px;
}

.article-title {
    /*    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 15px;*/
    font-size: 32px;
    line-height: 150%;
    font-family: "Merriweather", serif;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Article Meta Bar */
.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.article-meta-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.article-meta-left i {
    color: #1565c0;
    margin-right: 5px;
}

/* Social Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-label {
    font-size: 13px;
    color: #666;
    margin-right: 5px;
}

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.zalo {
    background: #0180c7;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.pinterest {
    background: #e60023;
}

.share-btn.email {
    background: #dd4b39;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 15px;
}

.view-count i {
    color: #1565c0;
}

/* Article Content */
.article-content {
    /*    font-size: 20px;
    line-height: 160%;
    color: #333;*/

    width: 100%;
    float: left;
    position: relative;
    font: 400 18px arial;
    line-height: 160%;
    padding: 0;
    color: #222;
}

.article-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

.article-content figure {
    margin: 25px 0;
    text-align: center;
}

.article-content figcaption {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #1a1a1a;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.article-content h2 {
    font-size: 24px;
}

.article-content h3 {
    font-size: 20px;
}

.article-content h4 {
    font-size: 18px;
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid #1565c0;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}



/* ============================================================
   SIDEBAR - TIN CÙNG CHUYÊN MỤC - ✅ MỚI THÊM
   ============================================================ */
.sidebar-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    border-radius: 5px;
    overflow: hidden;
}

.sidebar-widget-title {
    background: #1565c0;
    color: #fff;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.sidebar-widget-title i {
    margin-right: 8px;
}

.sidebar-widget-content {
    padding: 15px;
}

/* Related Articles in Sidebar */
.related-article-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.related-article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-article-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.related-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-article-item:hover .related-article-thumb img {
    transform: scale(1.1);
}

.related-article-info {
    flex: 1;
    min-width: 0;
}

.related-article-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.related-article-title a:hover {
    color: #1565c0;
}

.related-article-date {
    font-size: 11px;
    color: #999;
}

.related-article-date i {
    margin-right: 4px;
    color: #1565c0;
}

/* Recruitment Banner */
.recruitment-banner {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 20px;
}

.recruitment-banner img {
    max-width: 120px;
    margin-bottom: 15px;
}

.recruitment-banner h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.recruitment-banner p {
    font-size: 13px;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Recruitment List */
.recruitment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recruitment-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recruitment-item:last-child {
    border-bottom: none;
}

.recruitment-item a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    transition: color 0.3s;
}

.recruitment-item a::before {
    content: '•';
    color: #1565c0;
    font-weight: bold;
    margin-right: 8px;
}

.recruitment-item a:hover {
    color: #1565c0;
}

/* ============================================================
   RESPONSIVE - ARTICLE DETAIL
   ============================================================ */
@media (max-width: 992px) {
    .article-detail-container {
        flex-direction: column;
    }
    
    .article-sidebar {
        width: 100%;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 20px;
    }
    
    .article-content {
        font-size: 18px;
    }
    
    .article-meta-left {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .article-share {
        flex-wrap: wrap;
    }
    
    .share-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        font-size: 11px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .article-meta-bar {
        padding: 10px 0;
    }
    
    .article-meta-left {
        font-size: 12px;
    }
    
    .related-article-thumb {
        width: 70px;
        height: 50px;
    }
    
    .related-article-title {
        font-size: 12px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
/*    background: linear-gradient(135deg, #263238 0%, #37474f 100%);*/
    background:#20398B;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

    .site-footer h5 {
        color: #fff;
        font-size: 16px;
        margin-bottom: 20px;
        font-weight: 700;
        border-bottom: 3px solid #1565c0;
        padding-bottom: 10px;
        display: inline-block;
    }

    .site-footer a {
        color: #b0bec5;
        text-decoration: none;
        transition: all 0.3s;
    }

        .site-footer a:hover {
            color: #fff;
        }

    .site-footer ul {
        list-style: none;
        padding: 0;
    }

        .site-footer ul li {
            padding: 6px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

.stats-box {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 5px;
}

.copyright {
    border-top: 1px solid #37474f;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }

        .site-footer .col-md-4 {
            margin-bottom: 25px;
        }
}

/* ============================================================
   BOOTSTRAP GRID RESPONSIVE
   ============================================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.col-lg-4,
.col-md-6,
.col-lg-8 {
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
    width: 100%;
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-4,
    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .col-lg-4,
    .col-md-6,
    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.align-items-center {
    align-items: center !important;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* ============================================================
   HOME PAGE - GIẢM KHOẢNG CÁCH GIỮA CÁC CỘT
   ============================================================ */

/* Giảm gap cho row */
.row.g-3 {
    --bs-gutter-x: 0.5rem;  /* Giảm từ 1rem xuống 0.5rem */
    --bs-gutter-y: 0.5rem;
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
}

.row.g-3 > * {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}



/* Responsive */
@media (max-width: 768px) {
    .row.g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    
    .news-box {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .row.g-3 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
    
    .news-box {
        padding: 12px;
    }
}

/* ✅ Icon trong section-title của news-box */
.news-box .section-title i {
    font-size: 1.3rem;
    vertical-align: middle;
}

/* ============================================================
   ARTICLE DETAILS - RESPONSIVE
   ============================================================ */
.related-article-item-vertical {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.related-article-item-vertical:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.related-article-thumb-large {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.related-article-thumb-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-article-item-vertical:hover .related-article-thumb-large::after {
    opacity: 1;
}

.related-article-thumb-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-item-vertical:hover .related-article-thumb-large img {
    transform: scale(1.05);
}

.related-article-info-bottom {
    padding: 12px 15px;
}

.related-article-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article-title a:hover {
    color: #1565c0;
}

.related-article-date {
    font-size: 12px;
    color: #999;
}

.related-article-date i {
    margin-right: 5px;
}

.related-articles-list {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
}

.related-article-link-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.related-article-link-item:last-child {
    border-bottom: none;
}

.related-article-link-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: block;
    transition: all 0.3s ease;
}

.related-article-link-item a:hover {
    color: #1565c0;
    padding-left: 5px;
}

.related-article-link-item i {
    color: #1565c0;
    margin-right: 5px;
}

.related-article-link-item small {
    font-size: 12px;
    margin-top: 3px;
    margin-left: 20px;
}

.sidebar-widget-title {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: white;
    padding: 12px 15px;
    margin: -1px -1px 0 -1px;
    border-radius: 8px 8px 0 0;
    font-size: 16px;
    font-weight: 700;
}

.sidebar-widget-title i {
    margin-right: 8px;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    overflow: hidden;
}

.sidebar-widget-content {
    padding: 15px;
}

.btn-outline-primary {
    border: 2px solid #1565c0;
    color: #1565c0;
    font-weight: 600;
    padding: 10px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #1565c0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.3);
}

@media (max-width: 768px) {
    .related-article-thumb-large {
        height: 140px;
    }

    .related-article-title {
        font-size: 14px;
        min-height: auto;
    }
}

/* ============================================================
   ARTICLES LIST PAGE - FEATURED FIRST POST (COMPACT SIZE)
   ============================================================ */

/* Featured Article (First Post) - Compact Version */
.featured-article-wrapper {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.featured-article {
    display: grid;
    grid-template-columns: 70% 30%; /* Đổi từ 55-45 sang 50-50 */
    min-height: 450px; /* ✅ GIẢM từ 500px xuống 350px */
}

.featured-article-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 450px;
}

    /* Link wrapper cho ảnh */
    .featured-article-image a {
        display: block;
        width: 100%;
        height: 100%;
        position: relative;
    }

    .featured-article-image::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
      
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
        z-index: 1;
    }


/* ✅ Ảnh hiển thị đầy đủ với kích thước nhỏ gọn */
.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
}

.featured-article-wrapper:hover .featured-article-image img {
    transform: scale(1.05);
}

.featured-article-badge {
    position: absolute;
    top: 20px; /* Giảm từ 25px */
    left: 20px;
    background: linear-gradient(135deg, #ff3b3b 0%, #ff6b6b 100%);
    color: #fff;
    padding: 8px 16px; /* Giảm từ 10px 20px */
    border-radius: 25px;
    font-size: 11px; /* Giảm từ 12px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

    .featured-article-badge i {
        font-size: 13px;
        animation: sparkle 2s ease-in-out infinite;
    }

@keyframes sparkle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.featured-article-content {
    padding: 30px 25px; /* ✅ GIẢM từ 40px 35px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.featured-article-title {
    font-size: 22px; /* ✅ GIẢM từ 26px */
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px; /* Giảm từ 18px */
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giảm từ 3 dòng xuống 2 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .featured-article-title:hover {
        color: #1565c0;
    }

    .featured-article-title a {
        color: inherit;
        text-decoration: none;
    }

.featured-article-summary {
    font-size: 14px; /* GIẢM từ 15px */
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px; /* Giảm từ 20px */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giảm từ 3 dòng xuống 2 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-article-meta {
    display: flex;
    align-items: center;
    gap: 15px; /* Giảm từ 20px */
    margin-bottom: 18px; /* Giảm từ 25px */
    padding-bottom: 15px; /* Giảm từ 20px */
    border-top: 1px solid #e0e0e0;
    font-size: 12px; /* Giảm từ 13px */
    color: #888;
}

    .featured-article-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .featured-article-meta i {
        color: #1565c0;
        font-size: 13px;
    }

/* Improved Read More Button - Compact */
.featured-article-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Giảm từ 10px */
    color: #1565c0;
    font-weight: 600;
    font-size: 13px; /* Giảm từ 14px */
    text-decoration: none;
    padding: 10px 0; /* Giảm từ 12px */
    transition: all 0.3s ease;
    position: relative;
    width: fit-content;
}

    .featured-article-readmore::before {
        content: '';
        position: absolute;
        bottom: 6px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #1565c0 0%, #0d47a1 100%);
        transition: width 0.4s ease;
    }

    .featured-article-readmore:hover {
        color: #0d47a1;
        gap: 12px;
    }

        .featured-article-readmore:hover::before {
            width: calc(100% - 25px);
        }

    .featured-article-readmore i {
        font-size: 14px;
        transition: transform 0.3s ease;
    }

    .featured-article-readmore:hover i {
        transform: translateX(5px);
    }

/* Regular Articles Grid */
.regular-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

.article-card-image {
    position: relative;
    overflow: hidden;
    height: 200px; /* Giữ nguyên cho các card nhỏ */
    /*    background: #f5f5f5;*/
    background: #ffffff; /* Đổi sang nền trắng */
    border-bottom: 1px solid #f0f0f0; /* Đường viền mờ */
}

    .article-card-image a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .article-card-image img {
        width: 100%;
        height: 100%;
        /*        object-fit: cover;*/
        object-fit: contain; /* Đổi từ cover sang contain để hiển thị 100% ảnh */
        object-position: center;
        transition: transform 0.5s ease;
        display: block;
        padding: 10px; /* Thêm khoảng lề nhẹ để ảnh không chạm viền */
    }

.article-card:hover .article-card-image img {
    transform: scale(1.08);
}

.article-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

    .article-card-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .article-card-title a:hover {
            color: #1565c0;
        }

.article-card-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
}

    .article-card-footer span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .article-card-footer i {
        color: #1565c0;
        font-size: 13px;
    }

/* Page Title for List */
.page-title {
    color: #1565c0;
    font-weight: 700;
    font-size: 30px;
    border-bottom: 3px solid #1565c0;
    padding-bottom: 15px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .page-title i {
        font-size: 26px;
    }

/* Pagination Styling */
.pagination {
    margin-top: 50px;
}

.page-item .page-link {
    border-radius: 8px;
    margin: 0 4px;
    color: #1565c0;
    border: 1px solid #e0e0e0;
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    border-color: #1565c0;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.page-item .page-link:hover {
    background: #f5f9ff;
    color: #0d47a1;
    border-color: #1565c0;
    transform: translateY(-2px);
}

.page-item.disabled .page-link {
    background: #f8f9fa;
    color: #ccc;
}

/* ============================================================
   RESPONSIVE - ARTICLES LIST (COMPACT VERSION)
   ============================================================ */
@media (max-width: 1200px) {
    .regular-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .featured-article {
        grid-template-columns: 50% 50%;
        min-height: 320px; /* Giảm xuống */
    }

    .featured-article-content {
        padding: 25px 20px;
    }

    .featured-article-title {
        font-size: 20px;
    }

    .featured-article-summary {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .featured-article {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .featured-article-image {
        height: 320px; /* ✅ Giảm từ 450px xuống 320px */
    }

    .featured-article-content {
        padding: 25px 20px;
    }

    .featured-article-title {
        font-size: 20px;
    }

    .regular-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .article-card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .featured-article-image {
        height: 280px; /* ✅ Giảm xuống cho tablet nhỏ */
    }

    .featured-article-content {
        padding: 20px 15px;
    }

    .featured-article-title {
        font-size: 18px;
    }

    .featured-article-summary {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .featured-article-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 11px;
    }

    .featured-article-badge {
        top: 12px;
        left: 12px;
        padding: 6px 12px;
        font-size: 10px;
    }

    .regular-articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .article-card-image {
        height: 180px;
    }

    .page-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .featured-article-image {
        height: 240px; /* ✅ Giảm xuống cho mobile */
    }

    .featured-article-content {
        padding: 15px 12px;
    }

    .featured-article-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .featured-article-summary {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .featured-article-meta {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .featured-article-badge {
        top: 10px;
        left: 10px;
        padding: 5px 10px;
        font-size: 9px;
    }

    .featured-article-readmore {
        font-size: 12px;
        padding: 8px 0;
    }

    .article-card-image {
        height: 160px;
    }

    .page-title {
        font-size: 20px;
        gap: 8px;
    }

        .page-title i {
            font-size: 18px;
        }

    .page-item .page-link {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ============================================================
   UTILITY CLASS - Full image display option
   ============================================================ */
.featured-image-full img {
    object-fit: contain !important;
    padding: 10px;
    background: #fff;
}

/* ============================================================
   HERO SLIDER - ENHANCED WITH CONTROLS (OPTIMIZED)
   ============================================================ */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* ✅ Đẩy nút xuống dưới */
    padding-bottom: 60px; /* ✅ Khoảng cách từ đáy */
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

    .hero-slide.active {
        opacity: 1;
        pointer-events: auto;
        z-index: 1;
    }

    /* ✅ Overlay nhẹ hơn để banner rõ hơn */
    .hero-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 60%); /* ✅ Chỉ tối phía dưới */
    }

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 50px;
}

    /* ✅ NÚT "VỀ CHÚNG TÔI" - Nhỏ gọn và đẹp hơn */
    .hero-content .btn-about {
        background: rgba(255, 255, 255, 0.95);
        color: #1565c0;
        padding: 10px 25px; /* ✅ Giảm từ 15px 45px */
        font-weight: 600;
        font-size: 13px; /* ✅ Giảm từ 14px */
        border: 2px solid rgba(255, 255, 255, 0.8);
        text-transform: uppercase;
        letter-spacing: 1px; /* ✅ Giảm từ 2px */
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* ✅ Shadow nhẹ hơn */
        border-radius: 25px; /* ✅ Bo tròn hơn */
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        backdrop-filter: blur(4px); /* ✅ Blur effect */
    }

        .hero-content .btn-about:hover {
            background: #1565c0;
            color: white;
            border-color: #1565c0;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(21, 101, 192, 0.4);
        }

        .hero-content .btn-about i {
            font-size: 14px;
        }

/* ✅ SLIDER ARROWS - Mờ hơn và nhỏ gọn hơn */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6); /* ✅ Mờ hơn từ 0.9 */
    color: #1565c0;
    border: none;
    width: 45px; /* ✅ Giảm từ 50px */
    height: 45px;
    border-radius: 50%;
    font-size: 20px; /* ✅ Giảm từ 24px */
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* ✅ Shadow nhẹ hơn */
    backdrop-filter: blur(4px); /* ✅ Blur effect */
}

    .slider-arrow:hover {
        background: rgba(255, 255, 255, 0.95); /* ✅ Rõ hơn khi hover */
        color: #1565c0;
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }

.slider-arrow-prev {
    left: 20px;
}

.slider-arrow-next {
    right: 20px;
}

/* ✅ SLIDER DOTS - Mờ hơn */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px; /* ✅ Giảm từ 12px */
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5); /* ✅ Mờ hơn */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .dot:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.15);
    }

    .dot.active {
        background: #fff;
        width: 28px; /* ✅ Giảm từ 32px */
        border-radius: 5px;
        border-color: rgba(21, 101, 192, 0.5); /* ✅ Border mờ hơn */
    }

/* Responsive */
@media (max-width: 992px) {
    .hero-slider, .hero-slide {
        height: 350px;
    }

    .hero-content {
        padding: 0 30px;
    }

        .hero-content .btn-about {
            padding: 8px 20px;
            font-size: 12px;
        }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .slider-arrow-prev {
        left: 15px;
    }

    .slider-arrow-next {
        right: 15px;
    }
}

@media (max-width: 576px) {
    .hero-slider, .hero-slide {
        height: 280px;
    }

    .hero-slide {
        padding-bottom: 40px;
    }

    .hero-content {
        padding: 0 20px;
    }

        .hero-content .btn-about {
            padding: 7px 18px;
            font-size: 11px;
            letter-spacing: 0.5px;
        }

            .hero-content .btn-about i {
                font-size: 12px;
            }

    /* ✅ Ẩn arrows trên mobile */
    .slider-arrow {
        display: none;
    }

    .slider-dots {
        bottom: 15px;
    }

    .dot {
        width: 7px;
        height: 7px;
    }

        .dot.active {
            width: 20px;
        }
}

/* ============================================================
   FEATURED ARTICLES SLIDER - ✅ MỚI THÊM
   ============================================================ */

.featured-articles-slider-section {
    padding: 5px 0;
    margin: 5px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-main-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

    .section-main-title i {
        color: #1565c0;
        font-size: 32px;
    }

.btn-view-all {
    background: #1565c0;
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-view-all:hover {
        background: #0d47a1;
        transform: translateX(5px);
    }

/* Featured Slider */
.featured-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.featured-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: left;
}

    .featured-slide.active {
        opacity: 1;
        z-index: 1;
    }

.featured-slide-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: #fff;
    padding: 80px;
    max-width: 500px;
}

.featured-slide-category {
    display: inline-block;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.featured-slide-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.btn-view-details {
    display: inline-flex;
    align-items: center;
    color: #fff;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
}


/* Navigation Arrows */
.featured-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1565c0;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

    .featured-arrow:hover {
        background: #fff;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

.featured-arrow-prev {
    left: 20px;
}

.featured-arrow-next {
    right: 20px;
}

/* Dots Indicator */
.featured-slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.featured-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

    .featured-dot:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.2);
    }

    .featured-dot.active {
        background: #fff;
        width: 40px;
        border-radius: 6px;
    }

/* Play/Pause Button */
.featured-play-pause {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #1565c0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

    .featured-play-pause:hover {
        background: #fff;
        transform: scale(1.1);
    }

    .featured-play-pause.paused i::before {
        content: "\f4f4"; /* bi-play-fill */
    }

/* Responsive */
@media (max-width: 992px) {
    .featured-slider {
        height: 400px;
    }

    .featured-slide-title {
        font-size: 30px;
    }

    .section-main-title {
        font-size: 24px;
    }

    .featured-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .featured-articles-slider-section {
        padding: 30px 0;
    }

    .featured-slider {
        height: 350px;
    }

    .featured-slide-content {
        padding: 20px;
    }

    .featured-slide-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .featured-slide-category {
        font-size: 11px;
        padding: 6px 15px;
    }

    .btn-view-details {
        padding: 12px 25px;
        font-size: 14px;
    }

    .featured-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .featured-arrow-prev {
        left: 10px;
    }

    .featured-arrow-next {
        right: 10px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .featured-slider {
        height: 300px;
    }

    .featured-slide-title {
        font-size: 20px;
    }

    .section-main-title {
        font-size: 20px;
    }

    .featured-slider-dots {
        gap: 8px;
    }

    .featured-dot {
        width: 10px;
        height: 10px;
    }

        .featured-dot.active {
            width: 30px;
        }
}

/* ============================================================
   PDF VIEWER
   ============================================================ */
.pdf-viewer-container {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.pdf-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pdf-embed {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

    .pdf-embed embed {
        border: none;
        border-radius: 12px;
    }

@media (max-width: 768px) {
    .pdf-viewer-container {
        padding: 1rem;
    }

    .pdf-embed embed {
        height: 500px;
    }
}

/* ✅ Sidebar Banner Styles */
.sidebar-banner {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    max-width: 300px;
}

.sidebar-banner-left {
    left: 10px;
}

.sidebar-banner-right {
    right: 10px;
}

.sidebar-banner img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-banner a:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

/* Responsive: Ẩn banner trên mobile */
@media (max-width: 1200px) {
    .sidebar-banner {
        display: none;
    }
}

/* ============================================================
   ORGANIZATION CHART STYLES
   ============================================================ */

.org-level {
    position: relative;
    padding: 20px 0;
}

/* Card styles */
.org-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

    .org-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

/* Director card (Level 1) */
.org-card-director {
    border-top: 5px solid #1565c0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

/* Deputy card (Level 2) */
.org-card-deputy {
    border-top: 5px solid #0288d1;
}

/* Manager card (Level 3) */
.org-card-manager {
    border-top: 3px solid #00acc1;
    padding: 20px;
}

/* Staff card (Level 4+) */
.org-card-staff {
    border-left: 3px solid #4caf50;
    padding: 15px;
    text-align: left;
}

/* Photo styles */
.org-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid #f0f0f0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.org-photo-small {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #f0f0f0;
}

.org-photo-placeholder,
.org-photo-placeholder-small {
    background: #e3f2fd;
    color: #1565c0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
}

.org-photo-placeholder {
    width: 150px;
    height: 150px;
    font-size: 60px;
}

.org-photo-placeholder-small {
    width: 100px;
    height: 100px;
    font-size: 40px;
    margin-bottom: 15px;
}

/* Text styles */
.org-position {
    color: #1565c0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.org-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.org-dept {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.org-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #888;
}

    .org-contact span {
        display: block;
    }

/* Compact styles for level 3 */
.org-info-compact {
    margin-top: 10px;
}

.org-position-small {
    color: #0288d1;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.org-name-small {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.org-dept-small {
    font-size: 13px;
    color: #666;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .org-photo {
        width: 120px;
        height: 120px;
    }

    .org-photo-small {
        width: 80px;
        height: 80px;
    }

    .org-name {
        font-size: 18px;
    }

    .org-card {
        padding: 20px;
    }
}

/* ============================================================
   FEATURED GRID LAYOUT
   ============================================================ */

/* 3 tin nhỏ */
.featured-small-article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

    .featured-small-article:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    }

.featured-small-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s;
}



.featured-small-content {
    padding: 12px;
}

.featured-small-title a {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .featured-small-title a:hover {
        color: #1565c0;
    }

/* Responsive */
@media (max-width: 991px) {
    .featured-main-title a {
        font-size: 20px;
    }

    .featured-side-list {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .featured-grid-section {
        padding: 20px 0;
    }

    .featured-main-title a {
        font-size: 18px;
    }

    .featured-small-image img {
        height: 120px;
    }
}

/* ============================================================
   MAIN NAVIGATION - MENU ĐA CẤP KHÔNG GIỚI HẠN
   ============================================================ */
.main-nav {
    background: #fff;
/*    background: rgb(255 203 0);*/
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-wrapper {
    display: block !important;
}

.navbar-toggler {
    display: none;
    background: #1565c0;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    margin: 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 18px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #1565c0;
    background: #f5f9ff;
    border-bottom-color: #1565c0;
}

/* ============================================================
   DROPDOWN MENU - CẤP 1
   ============================================================ */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
    min-width: 280px;
    padding: 10px 0;
    display: none;
    z-index: 1001;
    list-style: none;
    margin: 0;
    /* Mặc định cho phép menu con hiển thị bên ngoài */
    overflow: visible !important; /* ✅ QUAN TRỌNG */
}

/* Chỉ áp dụng thanh cuộn cho menu dropdown CẤP 1 */
.nav-item > .dropdown-menu {
    /*max-height: 75vh;*/ /* Giới hạn chiều cao */
    overflow-y: auto; /* Thêm thanh cuộn khi cần */
    overflow-x: hidden; /* Ẩn thanh cuộn ngang */
}


.nav-item:hover > .dropdown-menu {
    display: block !important;
    animation: fadeInDown 0.3s;
}

/* ============================================================
   DROPDOWN ITEM
   ============================================================ */
.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
}

.dropdown-item:hover {
    background: #f5f9ff;
    color: #1565c0;
    padding-left: 25px;
    border-left-color: #1565c0;
}

/* ============================================================
   ARROW CHO ITEMS CÓ SUBMENU - ✅ ĐƠN GIẢN
   ============================================================ */
.has-submenu > .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 35px;
}

    .has-submenu > .dropdown-item i.bi-chevron-right {
        margin-left: auto;
        font-size: 0.9em;
        opacity: 0.7;
        transition: opacity 0.2s, transform 0.2s;
        color: #1565c0;
        font-weight: 600;
    }

/* Hover: indicator sáng lên và chuyển động nhẹ */
.has-submenu:hover > .dropdown-item i.bi-chevron-right {
    opacity: 1;
    transform: translateX(3px);
}

/* ============================================================
   DROPDOWN SUBMENU - CẤP 2, 3, 4, 5...
   ============================================================ */
.dropdown-submenu {
    position: absolute;
    left: 100%; /* ✅ Hiển thị bên phải parent */
    top: 0;
    min-width: 280px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px 0;
    display: none; /* ✅ Ẩn mặc định */
    z-index: 1050; /* ✅ Cao hơn dropdown-menu */
    list-style: none;
    margin: 0;
    overflow: visible !important; /* ✅ Cho phép submenu cấp tiếp theo hiển thị */
}

/* ✅ HIỂN THỊ submenu khi hover */
.has-submenu {
    position: relative;
}

.has-submenu:hover > .dropdown-submenu {
    display: block !important;
    animation: fadeInRight 0.3s;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   MEGA DROPDOWN - LAYOUT 2 CỘT
   ============================================================ */
.mega-dropdown {
    min-width: 550px !important;
    max-width: 650px;
    padding: 20px 15px;
    overflow: visible !important; /* ✅ Quan trọng cho submenu của mega dropdown */
}

.mega-dropdown .row {
    margin: 0;
    width: 100%;
    display: flex;
}

.mega-dropdown .col-md-6 {
    padding: 0 10px;
    flex: 0 0 50%;
    max-width: 50%;
}

.mega-dropdown .dropdown-item {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 3px;
    font-size: 14px;
}

.mega-dropdown .dropdown-item:hover {
    background: #f5f9ff;
    color: #1565c0;
    border-left: 3px solid #1565c0;
    padding-left: 18px;
}

/* ✅ Submenu trong mega dropdown */
.mega-dropdown .has-submenu > .dropdown-submenu {
    position: absolute;
    left: 100%;
    top: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .navbar-toggler {
        display: block;
    }
    
    .menu-wrapper {
        display: none !important;
    }
    
    .menu-wrapper.show {
        display: block !important;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Mobile: Static positioning */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-left: 3px solid #1565c0;
        margin-left: 15px;
        background: #f8f9fa;
        overflow-y: auto !important;
        max-height: none;
    }
    
    .dropdown-submenu {
        position: static !important;
        border-left: 3px solid #1565c0;
        margin-left: 15px;
        box-shadow: none;
        background: #f0f0f0;
    }
}

@media (max-width: 768px) {
    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
    }

    .dropdown-item {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* ============================================================
   FEATURED GRID LAYOUT (2 COLUMNS) - ENHANCED VERSION 70-30
   ============================================================ */
.featured-grid-section {
    padding: 5px 0;
    position: relative;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

    .section-main-title i {
        color: #1565c0;
        font-size: 28px;
        animation: pulse 2s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1565c0 0%, #0d47a1 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ============================================================
   MAIN ARTICLE (LEFT COLUMN - 70%)
   ============================================================ */
.featured-main-article {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ============================================================
   ROTATOR - Tự động chuyển đổi loại tin (Cột chính)
   ============================================================ */
.featured-main-rotator {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ✅ Hai cột luôn cao bằng nhau */
.featured-grid-section .row.g-4 {
    align-items: stretch;
}

/* ✅ Danh sách tin phân bố ĐỀU theo chiều cao cột — không thừa khoảng trống ở đáy */
.featured-side-items {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

    .featured-side-items .featured-side-item {
        margin-bottom: 0;
        flex: 0 0 auto;
    }

/* Thanh tabs nhãn loại tin + tiến trình */
.rotator-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rotator-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e6ef;
    background: #fff;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    padding: 7px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .3s ease;
}

    .rotator-tab:hover {
        border-color: #1565c0;
        color: #1565c0;
    }

    .rotator-tab .rotator-tab-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #cbd5e1;
        transition: all .3s ease;
    }

    .rotator-tab.active {
        background: linear-gradient(135deg, #1565c0, #0d47a1);
        border-color: transparent;
        color: #fff;
        box-shadow: 0 6px 16px rgba(21,101,192,.28);
    }

        .rotator-tab.active .rotator-tab-dot {
            background: #fff;
            box-shadow: 0 0 0 3px rgba(255,255,255,.35);
        }

.rotator-progress {
    flex: 1 1 60px;
    min-width: 60px;
    height: 3px;
    background: #e8edf5;
    border-radius: 3px;
    overflow: hidden;
}

.rotator-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1565c0, #42a5f5);
    border-radius: 3px;
}

/* Sân khấu crossfade: các bộ tin xếp chồng, chuyển mượt */
.rotator-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

    .rotator-stage .featured-main-set {
        opacity: 0;
        visibility: hidden;
        transform: translateY(14px) scale(.985);
        transition: opacity .6s ease, transform .6s ease;
        pointer-events: none;
    }

        .rotator-stage .featured-main-set.active {
            position: relative;
            opacity: 1;
            visibility: visible;
            transform: none;
            pointer-events: auto;
            z-index: 2;
            height: 100%;
        }

        .rotator-stage .featured-main-set > .featured-main-article {
            height: 100%;
            margin-bottom: 0;
        }

        .rotator-stage .featured-main-set:not(.active) {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
        }

        .rotator-stage .featured-main-set.prev {
            opacity: 0;
            visibility: visible;
            transform: translateY(-14px) scale(.985);
            z-index: 1;
        }

@media (prefers-reduced-motion: reduce) {
    .rotator-stage .featured-main-set {
        transition: none;
    }

    .rotator-progress-bar {
        transition: none !important;
    }
}

.featured-main-image {
    position: relative;
    overflow: hidden;
    background: #eef2f7;
    /* ✅ Chuẩn báo chí: khung CỐ ĐỊNH tỷ lệ 16:9 */
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

    .featured-main-image a {
        display: block;
        width: 100%;
        height: 100%;
    }

    /* ✅ Cắt gọn lấp đầy khung (đồng bộ, chuyên nghiệp) */
    .featured-main-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

/* ✅ Ảnh tin CHÍNH: khung 3:2 (lớn hơn); thắng mọi height cố định trong media query */
.featured-grid-section .featured-main-image {
    aspect-ratio: 3 / 2;
    height: auto;
}

/* ✅ Ảnh tin NHỎ: khung 3:2 (bé gọn hơn) */
.featured-grid-section .featured-small-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 6px;
}

    .featured-grid-section .featured-small-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* ✅ Hàng tin nhỏ: luôn 1 hàng, tự thu nhỏ khi nhiều tin (3/4/5) */
.featured-small-row {
    display: flex;
    gap: 10px;
}

    .featured-small-row > .featured-small-col {
        flex: 1 1 0;
        min-width: 0;
    }

@media (max-width: 767px) {
    .featured-small-row {
        flex-wrap: wrap;
    }

        .featured-small-row > .featured-small-col {
            flex: 1 1 calc(50% - 5px);
        }
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff3b3b 0%, #ff6b6b 100%);
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}

    .featured-badge i {
        font-size: 14px;
    }

.featured-main-content {
    padding: 5px;
    flex: 0 0 auto; /* ✅ giữ chiều cao tự nhiên */
    margin-top: auto; /* ✅ đẩy xuống dưới cùng cột tin chính */
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.featured-main-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .featured-main-title a {
        color: #1a1a1a;
        text-decoration: none;
        transition: color 0.3s;
    }

        .featured-main-title a:hover {
            color: #1565c0;
        }

.featured-main-summary {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ✅ Cố định tóm tắt tin lớn = 3 dòng; tiêu đề tin nhỏ = 2 dòng (cắt "..." nếu dài) */
.featured-grid-section .featured-main-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.7;
    height: 5.1em; /* 3 dòng × 1.7 */
    flex: none; /* bỏ giãn để giữ đúng 3 dòng */
}

.featured-grid-section .featured-small-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    height: 2.8em; /* 2 dòng × 1.4 */
}

.featured-main-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 18px;
    border-top: 2px solid #f0f0f0;
    font-size: 13px;
    color: #999;
}

    .featured-main-meta .meta-item {
        display: flex;
        align-items: center;
        gap: 6px;
        transition: color 0.3s;
    }

        .featured-main-meta .meta-item:hover {
            color: #1565c0;
        }

    .featured-main-meta i {
        color: #1565c0;
        font-size: 14px;
    }

.read-more-link {
    margin-left: auto;
}

    .read-more-link a {
        color: #1565c0;
        font-weight: 600;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: gap 0.3s;
    }

        .read-more-link a:hover {
            gap: 10px;
        }

/* ============================================================
   SIDE LIST (RIGHT COLUMN - 30%)
   ============================================================ */
.featured-side-list {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.side-list-header {
    /*    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);*/
    background: #20398B;
    padding: 18px 20px;
}

.side-list-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .side-list-title i {
        font-size: 20px;
    }

.featured-side-item {
    display: flex;
    gap: 15px;
    padding: 5px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

    .featured-side-item:last-child {
        border-bottom: none;
    }

    .featured-side-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .featured-side-item:hover {
        background: linear-gradient(135deg, #f5f9ff 0%, #e3f2fd 100%);
        transform: translateX(5px);
    }

        .featured-side-item:hover::before {
            transform: scaleY(1);
        }

.side-item-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    /*    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);*/
    background: #20398B;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.3);
    transition: all 0.3s ease;
}

.featured-side-item:hover .side-item-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 12px rgba(21, 101, 192, 0.4);
}

.featured-side-content {
    flex: 1;
    min-width: 0;
}

/* ✅ KHÔI PHỤC CLASS NÀY */
.featured-side-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .featured-side-title a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s;
    }

        .featured-side-title a:hover {
            color: #1565c0;
        }

.featured-side-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #999;
}

    .featured-side-meta .meta-item {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .featured-side-meta i {
        color: #1565c0;
        font-size: 12px;
    }

/* ============================================================
   3 TIN NHỎ BÊN DƯỚI (OPTIONAL)
   ============================================================ */
.featured-small-article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

    .featured-small-article:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    }

.featured-small-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-small-article:hover .featured-small-image img {
    transform: scale(1.05);
}

.featured-small-content {
    padding: 12px;
}

.featured-small-title a {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .featured-small-title a:hover {
        color: #1565c0;
    }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .featured-main-image {
        height: 320px;
    }

    .featured-main-title {
        font-size: 22px;
    }
}

@media (max-width: 991px) {
    .featured-grid-section {
        padding: 30px 0;
    }

    .featured-main-image {
        height: 300px;
    }

    .featured-main-content {
        padding: 20px;
    }

    .featured-main-title {
        font-size: 20px;
    }

    .featured-side-list {
        margin-top: 25px;
    }

    .section-main-title {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .featured-main-image {
        height: 250px;
    }

    .featured-main-content {
        padding: 18px;
    }

    .featured-main-title {
        font-size: 18px;
    }

    .featured-main-summary {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .featured-side-item {
        padding: 15px;
    }

    .side-item-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .featured-side-title {
        font-size: 13px;
    }

    .section-main-title {
        font-size: 22px;
    }

    .featured-small-image img {
        height: 120px;
    }
}

@media (max-width: 575px) {
    .featured-main-image {
        height: 220px;
    }

    .featured-badge {
        top: 12px;
        left: 12px;
        padding: 8px 14px;
        font-size: 10px;
    }

    .featured-main-content {
        padding: 15px;
    }

    .featured-main-meta {
        gap: 12px;
        font-size: 12px;
    }

    .read-more-link {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ============================================================
   ARTICLES GRID - LOAD MORE
   ============================================================ */
.regular-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

/*.article-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f5f5f5;
}

    .article-card-image a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .article-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.article-card:hover .article-card-image img {
    transform: scale(1.08);
}*/

.article-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

    .article-card-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .article-card-title a:hover {
            color: #1565c0;
        }

.article-card-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
}

    .article-card-footer span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .article-card-footer i {
        color: #1565c0;
        font-size: 13px;
    }

/* Page Header */
.page-header {
    /*border-bottom: 3px solid #1565c0;*/
    /*padding-bottom: 20px;*/
    margin-bottom: 30px;
}

.page-title {
    color: #1565c0;
    font-weight: 700;
    font-size: 32px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .regular-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .regular-articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .page-title {
        font-size: 24px;
    }
}

/* ============================================================
   CATEGORY PAGE - AUTO SLIDER + GROUP BY CATEGORY
   ============================================================ */

/* Slider Container */
.category-slider-wrapper {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.category-slide {
    display: none;
}

    .category-slide.active {
        display: block;
        animation: fadeIn 0.5s ease-in-out;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Main Article (Tin lớn) */
.slide-main-article {
    position: relative;
    height: 600px;
    overflow: hidden;
}

    .slide-main-article img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.slide-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
    padding: 30px;
    color: #fff;
}

.category-badge {
    background: #1565c0;
    color: #fff;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.slide-main-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

    .slide-main-content h3 a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s;
    }

        .slide-main-content h3 a:hover {
            color: #00aaff;
        }

.slide-main-content p {
    font-size: 14px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
}

    .article-meta i {
        margin-right: 5px;
    }

/* 3 tin nhỏ bên dưới */
.slide-sub-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
}

.slide-sub-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .slide-sub-item a {
        display: block;
    }

    .slide-sub-item img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
        transition: transform 0.3s;
    }

    .slide-sub-item:hover img {
        transform: scale(1.05);
    }

.slide-sub-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .slide-sub-content h4 a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s;
    }

        .slide-sub-content h4 a:hover {
            color: #1565c0;
        }

.slide-sub-content p {
    font-size: 13px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar tin mới nhất */
.latest-articles-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: 100%;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1565c0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 3px solid #1565c0;
}

.latest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .latest-list li {
        display: flex;
        gap: 10px;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        align-items: flex-start;
    }

        .latest-list li:last-child {
            border-bottom: none;
        }

        .latest-list li i.bi-chevron-right {
            color: #1565c0;
            font-size: 16px;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .latest-list li a {
            color: #333;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            line-height: 1.4;
            transition: color 0.3s;
        }

            .latest-list li a:hover {
                color: #1565c0;
            }

/* ============================================================
   CATEGORY ARTICLE ROWS - GRID 3 COLUMNS LAYOUT
   ============================================================ */

/* Container cho grid */
#categoryRows {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

/* Mỗi article card */
.category-article-row {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .category-article-row:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        transform: translateY(-5px);
    }

/* Image Section */
.row-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

    .row-image a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .row-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.5s ease;
    }

.category-article-row:hover .row-image img {
    transform: scale(1.1);
}

/* Content Section */
.row-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category Badge */
.row-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f4f8;
    color: #1565c0;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
    transition: all 0.3s;
}

    .row-category-badge i {
        font-size: 13px;
    }

.category-article-row:hover .row-category-badge {
    background: #1565c0;
    color: #fff;
}

/* Title Section */
.row-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .row-text h4 {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.5;
        margin-bottom: 10px;
        color: #1a1a1a;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 48px;
    }

        .row-text h4 a {
            color: inherit;
            text-decoration: none;
            transition: color 0.3s;
        }

            .row-text h4 a:hover {
                color: #1565c0;
            }

    /* Summary (Optional - ẩn nếu không cần) */
    .row-text p {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex: 1;
    }

/* Meta Info */
.row-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
    margin-top: auto;
}

    .row-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .row-meta i {
        color: #1565c0;
        font-size: 13px;
    }

/* Responsive */
@media (max-width: 1199px) {
    #categoryRows {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    #categoryRows {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }

    .row-image {
        height: 180px;
    }

    .row-content {
        padding: 15px;
    }

    .row-text h4 {
        font-size: 15px;
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .row-image {
        height: 160px;
    }

    .row-text h4 {
        font-size: 14px;
    }

    .row-meta {
        gap: 10px;
        font-size: 11px;
    }
}

/* Related 4-grid (Article Details) */
.related-four-section {
    margin-top: 36px;
    margin-bottom: 32px;
}

.related-four-title {
    color: #0d47a1;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 18px 0;
    letter-spacing: 0.4px;
}

.related-grid-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.related-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
    min-height: 280px;
}

    .related-card:focus,
    .related-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(16,24,40,0.12);
        outline: none;
    }

.related-card-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f2f4f7;
}

    .related-card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s ease;
    }

.related-card:hover .related-card-thumb img {
    transform: scale(1.04);
}

.related-card-body {
    padding: 12px 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
}

.related-card-title {
    color: #0d47a1;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-date {
    font-size: 13px;
    color: #8a8f98;
}

/* Responsive */
@media (max-width: 992px) {
    .related-grid-four {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-card-thumb {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .related-grid-four {
        grid-template-columns: 1fr;
    }

    .related-card-thumb {
        height: 180px;
    }
}
