/*
 Theme Name:   GeneratePress Child - EE88Now SEO
 Theme URI:    https://ee88now.com/
 Description:  Child Theme của GeneratePress được tối ưu hóa chuyên sâu về Technical SEO, Core Web Vitals và E-E-A-T cho dự án ee88now.com.
 Author:       EE88 Technical SEO Team
 Author URI:   https://ee88now.com/
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  generatepress-child
*/

/* ==========================================================================
   1. TỐI ƯU HÓA BỐ CỤC & TYPOGRAPHY CHUẨN E-E-A-T
   ========================================================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    line-height: 1.65;
}

.site-content .content-area {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Heading phân cấp rõ ràng cho Semantic SEO */
.entry-content h1, h1.entry-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 20px;
}

.entry-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    border-left: 4px solid #d97706;
    padding-left: 12px;
    margin-top: 32px;
    margin-bottom: 16px;
}

.entry-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 24px;
    margin-bottom: 12px;
}

/* ==========================================================================
   2. NÚT ĐIỀU HƯỚNG CTA (ĐĂNG KÝ / ĐĂNG NHẬP / TẢI APP EE88)
   ========================================================================== */
.ee88-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.ee88-btn {
    display: inline-block;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    text-decoration: none !important;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.ee88-btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.ee88-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.45);
}

.ee88-btn-secondary {
    background-color: #0f172a;
    color: #ffffff !important;
}

.ee88-btn-secondary:hover {
    background-color: #1e293b;
}

/* ==========================================================================
   3. KHỐI FAQ & BẢNG DỮ LIỆU TRẢI NGHIỆM (RESPONSIVE TABLE)
   ========================================================================== */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.entry-content table th {
    background-color: #0f172a;
    color: #ffffff;
    font-weight: 600;
    padding: 12px;
    text-align: left;
}

.entry-content table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.entry-content table tr:nth-child(even) {
    background-color: #f8fafc;
}

.ee88-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 14px;
    background-color: #ffffff;
}

.ee88-faq-question {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    font-size: 17px;
}

/* ==========================================================================
   4. FOOTER WIDGETS CHUẨN E-E-A-T
   ========================================================================== */
.site-footer .footer-widgets {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 40px 0;
}

.site-footer .widget-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    border-bottom: 2px solid #f59e0b;
    padding-bottom: 8px;
    margin-bottom: 16px;
    display: inline-block;
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
}

.site-footer a:hover {
    color: #f59e0b;
}

@media (max-width: 768px) {
    .site-content .content-area {
        padding: 18px;
    }
    .entry-content h1, h1.entry-title {
        font-size: 23px;
    }
}
/* ==========================================================================
   6. ĐỊNH DẠNG MENU CON (DROPDOWN) & NÚT CTA TRÊN THANH MENU CHÍNH
   ========================================================================== */
/* Khung menu con xổ xuống */
.main-navigation ul ul {
    background-color: #0f172a !important;
    border-top: 2px solid #f59e0b;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
    min-width: 210px;
}

.main-navigation ul ul li a {
    color: #e2e8f0 !important;
    font-size: 14px !important;
    text-transform: none !important;
    padding: 10px 16px !important;
    border-bottom: 1px solid #1e293b;
}

.main-navigation ul ul li a:hover {
    background-color: #1e293b !important;
    color: #f59e0b !important;
    padding-left: 20px !important;
    transition: all 0.2s ease;
}

/* Biến mục Tải App EE88 (.ee88-menu-cta) thành nút bấm nổi bật */
.main-navigation .main-nav ul li.ee88-menu-cta > a {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 8px 16px !important;
    margin-left: 10px;
    line-height: 1.4 !important;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.main-navigation .main-nav ul li.ee88-menu-cta > a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.55);
    color: #ffffff !important;
}

/* Định dạng danh sách link trong Footer Navigation Menu */
.footer-widgets .widget_nav_menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widgets .widget_nav_menu ul li {
    margin-bottom: 8px;
}

.footer-widgets .widget_nav_menu ul li a::before {
    content: "▸ ";
    color: #f59e0b;
}

/* Định dạng Thanh Điều Hướng Thương Hiệu EE88 (Phương án 2) */
.ee88-brand-bar {
    background-color: #0f172a;
    border-bottom: 1px solid #1e293b;
    padding: 8px 0;
    font-size: 13.5px;
}

.ee88-brand-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 30px;
}

.ee88-brand-label {
    color: #f59e0b;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ee88-brand-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ee88-action-item {
    background-color: #1e293b;
    color: #f8fafc !important;
    text-decoration: none !important;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid #334155;
    transition: all 0.2s ease;
}

.ee88-action-item:hover, .ee88-action-item.highlight {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    border-color: #f59e0b;
}
/* ==========================================================================
   TỐI ƯU THANH CỔNG HỘI VIÊN DẠNG TRƯỢT NGANG (SWIPE) TRÊN MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    /* Điều chỉnh lại padding cho gọn gàng trên mobile */
    .ee88-brand-bar-inner {
        padding: 8px 15px;
        display: block; 
    }
    
    /* Ẩn dòng chữ "CỔNG HỘI VIÊN EE88" trên điện thoại để tiết kiệm không gian */
    .ee88-brand-label {
        display: none; 
    }

    /* Vùng chứa các nút: Ép trên 1 hàng và bật tính năng trượt ngang */
    .ee88-brand-links {
        display: flex;
        flex-wrap: nowrap !important; /* Cấm rớt dòng */
        overflow-x: auto; /* Bật trượt ngang */
        -webkit-overflow-scrolling: touch; /* Trượt mượt mà (momentum) trên Safari/iOS */
        gap: 8px;
        padding-bottom: 2px; /* Khoảng lùi tránh bị cắt viền shadow */
        scroll-snap-type: x mandatory; /* Giúp thao tác vuốt dừng đúng khớp nút */
    }

    /* Định dạng lại nút bấm: Không bị bóp méo, chữ không rớt dòng */
    .ee88-action-item {
        white-space: nowrap; /* Giữ chữ trên 1 dòng */
        flex-shrink: 0; /* Không cho phép nút bị bóp nhỏ lại */
        scroll-snap-align: start; /* Trượt đến đâu dính khung đến đó */
        font-size: 13px; /* Thu nhỏ chữ 1 chút cho mobile */
        padding: 6px 12px;
    }

    /* Ẩn thanh cuộn (Scrollbar) xấu xí trên các trình duyệt */
    .ee88-brand-links::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .ee88-brand-links {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
}
/* ==========================================================================
   7. ĐỊNH DẠNG NÚT STICKY ĐĂNG KÝ BÁM MÀN HÌNH (FLOATING CTA)
   ========================================================================== */

/* --- GIAO DIỆN MẶC ĐỊNH (PC / DESKTOP) --- */
.ee88-sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column; /* Xếp dọc trên PC */
    gap: 12px;
}

.ee88-sbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

/* Nút Đăng ký (Màu chủ đạo) + Hiệu ứng nhịp đập thu hút mắt */
.ee88-sbtn-register {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    animation: ee88-pulse 2s infinite;
}

/* Nút Đăng nhập (Màu phụ) */
.ee88-sbtn-login {
    background-color: #0f172a;
    color: #cbd5e1 !important;
    border-color: #334155;
}

.ee88-sbtn:hover {
    transform: translateY(-4px) scale(1.05);
}
.ee88-sbtn-register:hover {
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.6);
}

/* Hiệu ứng nhịp đập (Pulse Animation) cho nút Đăng Ký */
@keyframes ee88-pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* --- TỐI ƯU RIÊNG CHO ĐIỆN THOẠI (MOBILE) --- */
@media (max-width: 768px) {
    /* Thêm khoảng trống dưới cùng trang web để nội dung không bị thanh Sticky che mất */
    body {
        padding-bottom: 60px !important; 
    }

    /* Biến thành thanh bám chặt sát đáy màn hình */
    .ee88-sticky-cta {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        flex-direction: row; /* Xếp ngang chia đôi màn hình */
        gap: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    }

    /* Định dạng lại nút cho vừa vặn */
    .ee88-sbtn {
        border-radius: 0; /* Bỏ bo góc */
        border: none;
        flex: 1; /* Chia đều 50/50 tỷ lệ màn hình */
        padding: 14px 10px;
        font-size: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .ee88-sbtn-register {
        animation: none; /* Tắt hiệu ứng nhịp đập trên mobile để tránh nhức mắt */
    }
    
    .sbtn-icon {
        margin-right: 6px;
        font-size: 16px;
    }
}
/* ==========================================================================
   8. TỐI ƯU HIỂN THỊ FONT TIẾNG VIỆT CHO TIÊU ĐỀ (CHỐNG DÍNH DẤU)
   ========================================================================== */
h1, h2, h3, h4, .entry-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 700 !important; /* Giảm độ đậm xuống 700 (Bold) thay vì 900 (Black) */
    line-height: 1.4 !important;
    letter-spacing: -0.3px; /* Thu gọn khoảng cách chữ một chút cho sang trọng */
    color: #0f172a; /* Đồng bộ màu xanh đen thương hiệu */
}

/* Riêng tiêu đề H1 của bài viết cần nổi bật hơn một chút nhưng không được dính nét */
h1.entry-title {
    font-size: 32px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    h1.entry-title {
        font-size: 26px; /* Thu nhỏ H1 trên Mobile để không bị rớt quá nhiều dòng */
    }
}
/* ==========================================================================
   GIAO DIỆN HỘP LINK ĐIỀU HƯỚNG TỐI ƯU MOBILE (SHORTCODE [ee88_links])
   ========================================================================== */
.ee88-link-box {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.ee88-link-header {
    color: #f59e0b;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px dashed #334155;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.ee88-link-desc {
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.ee88-link-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.ee88-link-item {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ee88-li-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ee88-badge {
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.badge-v1 { background: #f59e0b; }
.badge-v2 { background: #3b82f6; }

.ee88-li-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.ee88-li-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ee88-ping {
    font-size: 12px;
    color: #22c55e;
    font-family: monospace;
}

.ee88-btn-go {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff !important;
    padding: 6px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.3);
}

.ee88-link-warning {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    padding: 10px;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Ép khung khít lại và xếp dọc thành 3 dòng khi màn hình điện thoại nhỏ */
@media (max-width: 600px) {
    .ee88-link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 10px;
    }
    
    .ee88-li-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .ee88-li-title {
        font-size: 13px; /* Ép chữ tiêu đề nhỏ lại tránh rớt dòng */
    }
}
/* ==========================================================================
   GHIM THANH CỔNG HỘI VIÊN EE88 (STICKY BAR)
   ========================================================================== */
/* 1. Ghim toàn bộ khối bao ngoài cùng */
.ee88-brand-bar {
    position: -webkit-sticky !important; /* Hỗ trợ Safari/iOS */
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important; /* Ép luôn nổi trên mọi thành phần khác */
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 2. Xử lý hiển thị vuốt ngang mượt mà trên Mobile */
@media (max-width: 768px) {
    /* Ép khung chứa cuộn ngang, không bị rớt dòng */
    .ee88-brand-bar-inner,
    .ee88-brand-links {
        display: flex;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ẩn thanh cuộn ngang để UI sạch sẽ trên điện thoại */
    .ee88-brand-bar-inner::-webkit-scrollbar,
    .ee88-brand-links::-webkit-scrollbar {
        display: none;
    }
}
/* ==========================================================================
   CSS ĐỊNH DẠNG BREADCRUMB (TÔNG MÀU EE88)
   ========================================================================== */
.ee88-breadcrumb {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 8px 15px;
    margin-bottom: 20px;
    font-size: 13.5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.ee88-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ee88-breadcrumb-item a {
    color: #f59e0b !important; /* Màu vàng kim nhận diện thương hiệu */
    text-decoration: none;
    font-weight: 500;
}

.ee88-breadcrumb-item a:hover {
    text-decoration: underline;
}

.ee88-breadcrumb-separator {
    color: #64748b;
    font-size: 12px;
}

.ee88-breadcrumb-item.active {
    color: #cbd5e1; /* Màu chữ xám sáng cho trang hiện tại */
    font-weight: 400;
    /* Xóa bỏ các thuộc tính cắt cụt cũ để tiêu đề hiển thị đầy đủ */
    white-space: normal !important; 
    overflow: visible !important;
    text-overflow: clip !important;
}
/* ==========================================================================
   ÉP MỞ RỘNG TOÀN BỘ KHUNG NỘI DUNG VÀ BÀI VIẾT (FULL WIDTH CONTAINER)
   ========================================================================== */

/* 1. Mở rộng khung chứa chính của toàn bộ trang */
body.separate-containers .site.grid-container {
    max-width: 1400px !important; /* Tăng độ rộng tổng thể lên 1400px */
}

/* 2. Mở rộng khung bài viết bên trong */
body.separate-containers .inside-article {
    padding: 40px 60px !important; /* Tăng khoảng cách lề trong cho thoáng */
}

/* 3. Ép vùng chứa nội dung văn bản dàn đều sang hai bên */
body.separate-containers .entry-content, 
body.separate-containers .entry-header {
    max-width: 100% !important;
}

/* 4. Tối ưu riêng trên màn hình điện thoại để không bị tràn lề */
@media (max-width: 768px) {
    body.separate-containers .inside-article {
        padding: 20px 15px !important;
    }
}