/* --- BIẾN MÀU SẮC --- */
:root {
    --primary-color: #0068FF;
    --secondary-color: #0041a3;
    --accent-color: #f7941d;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f6f9;
    --white: #ffffff;
    --border-color: #e1e4e8;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

/* --- GLOBAL STYLES --- */
body {
    display: block;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vnpt-container {
    width: 100%;
    overflow-x: hidden;
}

/* --- HEADER --- */
.vnpt-header {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vnpt-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vnpt-header .logo img {
    height: 50px;
    object-fit: contain;
}

.vnpt-header .logo .brand-text {
    display: flex;
    flex-direction: column;
}

.vnpt-header .logo .brand-text h1 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1;
}

.vnpt-header .logo .brand-text span {
    font-size: 0.8rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none; /* Mặc định ẩn trên Desktop */
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 5px;
    z-index: 1002;
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    gap: 5px;
}

.main-nav li {
    position: relative;
}

.main-nav li a {
    padding: 8px 15px;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 0.95rem;
    white-space: nowrap;
    display: block;
}

.main-nav li a:hover,
.main-nav li a.active {
    color: var(--primary-color);
    background-color: rgba(0, 104, 255, 0.05);
}

/* Dropdown Menu */
.main-nav .dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s;
}

.main-nav .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 101;
    border: 1px solid var(--border-color);
}

.main-nav .dropdown-content a {
    display: block;
    padding: 10px 20px;
    border-radius: 0;
    font-weight: 500;
}

.main-nav .dropdown-content a:hover {
    background-color: var(--bg-light);
}

/* --- CONTENT & BANNER --- */
.vnpt-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.main-banner-area {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    height: 380px;
}

.main-banner-column {
    flex: 2.5;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.main-slider {
    position: relative;
    height: 100%;
}

.slider-wrapper {
    height: 100%;
    position: relative;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Mặc định ẩn */
    animation: fade 0.8s;
}

.slider-image.active {
    display: block; /* Hiện khi có class active */
}

/* Slider Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
}

.slider-nav.prev { left: 0; border-radius: 0 5px 5px 0; }
.slider-nav.next { right: 0; border-radius: 5px 0 0 5px; }

/* Side Banners */
.side-banners-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-banner {
    flex: 1;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.side-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.side-banner:hover .side-banner-img {
    transform: scale(1.05);
}

/* --- GRID CONTENT --- */
.main-content-grid {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* Cột giữa (Middle Col) */
.middle-col {
    flex: 1;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.section-title h2 {
    color: var(--primary-color);
    margin: 0;
    white-space: nowrap;
    margin-right: 15px;
    font-size: 1.5rem;
}

.section-title .line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Post Card */
.post-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    min-height: 200px;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 104, 255, 0.3);
}

.post-img-wrapper {
    flex: 0 0 300px;
    overflow: hidden;
    position: relative;
}

.post-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-img-wrapper img {
    transform: scale(1.05);
}

.post-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-dark);
}

.post-card:hover .post-title a {
    color: var(--primary-color);
}

.post-excerpt {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    align-self: flex-start;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Cột phải (Sidebar) */
.right-col {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.support-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 15px;
    border-top: 4px solid var(--primary-color);
}

.support-box h4 {
    margin-top: 0;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.image-link {
    display: block;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
}

.image-link:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-link img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- FOOTER --- */
.vnpt-footer {
    background: linear-gradient(rgba(0, 65, 163, 0.9), rgba(0, 40, 100, 0.95));
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 15px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    flex: 1;
}

.footer-col h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.footer-col p {
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    z-index: 1005;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* --- ANIMATIONS --- */
@keyframes fade {
    from { opacity: 0.8 }
    to { opacity: 1 }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px) }
    to { opacity: 1; transform: translateY(0) }
}

/* --- RESPONSIVE --- */

/* Tablet & Mobile (Max 1024px) */
@media (max-width: 1024px) {
    /* Layout về 1 cột */
    .main-content-grid {
        flex-direction: column;
    }

    .right-col {
        width: 100%;
        order: 2;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .right-col .support-box {
        flex: 1;
        min-width: 250px;
    }

    .middle-col {
        order: 1;
        width: 100%;
    }

    /* Banner & Slider */
    .main-banner-area {
        flex-direction: column;
        height: auto;
    }

    .main-banner-column {
        height: 300px;
    }

    .side-banners-column {
        flex-direction: row;
        height: 150px;
    }

    /* Mobile Menu */
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none; /* Ẩn mặc định */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
    }

    .main-nav.active {
        display: block; /* Hiện khi có class active */
        animation: fadeIn 0.3s ease;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li a {
        border-radius: 0;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Fix dropdown trên mobile */
    .main-nav .dropdown:hover .dropdown-content {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        background: #fafafa;
        padding-left: 20px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile nhỏ (Max 768px) */
@media (max-width: 768px) {
    .post-card {
        flex-direction: column;
    }

    .post-img-wrapper {
        flex: 0 0 200px;
        width: 100%;
    }

    .post-content {
        padding: 15px;
    }

    .side-banners-column {
        flex-direction: column;
        height: 300px;
    }

    .right-col {
        flex-direction: column;
    }
}
/* CSS cho trang chi tiết bài viết */
.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 5px;
}

.entry-content p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.entry-content h2, 
.entry-content h3 {
    color: #0068FF; /* Màu xanh VNPT */
    margin-top: 25px;
}

/* Thụt lề cho danh sách trong bài viết */
.entry-content ul, 
.entry-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}
/* Style cho phân trang */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.pagination .page-numbers {
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #0068FF;
    color: #fff;
    border-color: #0068FF;
}
/* --- STYLE CHO NAVBAR ĐỘNG --- */

/* 1. Xóa các định dạng danh sách mặc định */
.vnpt-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Xếp hàng ngang */
    flex-wrap: wrap;
    align-items: center;
}

/* 2. Style cho từng mục menu (li) */
.vnpt-menu > li {
    position: relative; /* Để căn chỉnh menu con */
    margin-right: 25px; /* Khoảng cách giữa các mục */
}
.vnpt-menu > li:last-child {
    margin-right: 0;
}

/* 3. Style cho Link (a) */
.vnpt-menu li a {
    text-decoration: none;
    color: #333; /* Màu chữ đen xám */
    font-weight: 600;
    font-size: 16px;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
    text-transform: uppercase; /* Chữ in hoa cho đẹp */
}

/* Hiệu ứng khi di chuột vào */
.vnpt-menu li a:hover,
.vnpt-menu li.current-menu-item > a {
    color: #0068FF; /* Màu xanh VNPT */
    border-bottom: 2px solid #0068FF; /* Gạch chân xanh */
}

/* --- MENU CON (DROPDOWN - Nếu ông có menu cấp 2) --- */
.vnpt-menu .sub-menu {
    display: none; /* Ẩn mặc định */
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 3px solid #0068FF;
    z-index: 999;
    padding: 10px 0;
    list-style: none;
}

/* Hiện menu con khi di chuột vào menu cha */
.vnpt-menu li:hover > .sub-menu {
    display: block;
}

/* Style cho link menu con */
.vnpt-menu .sub-menu li {
    padding: 0 20px;
}
.vnpt-menu .sub-menu li a {
    text-transform: none; /* Menu con viết thường */
    font-size: 15px;
    border-bottom: none; /* Bỏ gạch chân */
    color: #555;
}
.vnpt-menu .sub-menu li a:hover {
    color: #0068FF;
    background: #f9f9f9;
}
/* --- LAYOUT CHUNG HEADER --- */
.header-container {
    display: flex;
    justify-content: space-between; /* Đẩy Logo và Menu ra 2 đầu */
    align-items: center; /* Căn giữa theo chiều dọc */
    padding: 15px 0;
    background: #fff;
}

/* Style cho Logo (để ảnh và chữ nằm ngang) */
.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

/* --- STYLE MENU GIỐNG MẪU --- */
.vnpt-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px; /* Khoảng cách giữa các nút */
}

.vnpt-menu li a {
    text-decoration: none;
    color: #333; /* Màu chữ đen mặc định */
    font-weight: 600; /* Chữ đậm vừa phải */
    font-size: 15px;
    padding: 10px 20px; /* Độ phồng của nút */
    border-radius: 50px; /* BO TRÒN VIÊN THUỐC */
    transition: all 0.3s ease;
}

/* Hiệu ứng khi di chuột vào */
.vnpt-menu li a:hover {
    color: #0068FF;
}

/* --- QUAN TRỌNG: NÚT ĐANG ACTIVE (TRANG CHỦ) --- */
/* Class .current-menu-item do WordPress tự thêm vào khi đang ở trang đó */
.vnpt-menu li.current-menu-item > a {
    background-color: #EBF4FF; /* Nền xanh nhạt (giống hình) */
    color: #0068FF;            /* Chữ xanh đậm */
    font-weight: 700;
}