/* ==========================================================================
   HTML5 CODE WEB - MASTER CSS FILE
   Mô tả: Tệp CSS Lõi tĩnh 100%, chứa biến toàn cục, Header, Footer & Single Post
   ========================================================================== */

/* --- 0. NHÚNG FONT CHỮ --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- 1. BIẾN CSS TOÀN CỤC (HỆ THỐNG MÀU & FONT BRANDING) --- */
:root {
    /* Màu sắc thương hiệu cập nhật */
    --h5cw-primary: #2563eb;       /* Xanh Blue chủ đạo */
    --h5cw-primary-hover: #1d4ed8; /* Xanh Blue đậm khi hover */
    --h5cw-text-main: #334155;     /* Xám đậm cho chữ bài viết dễ đọc */
    --h5cw-text-dark: #000000;     /* Đen tuyền cho Tiêu đề & Footer */
    --h5cw-text-light: #64748b;    /* Xám nhạt cho Meta date, ghi chú */
    --h5cw-bg-gray: #f8fafc;       /* Nền xám cực nhạt */
    --h5cw-border: #e2e8f0;        /* Màu viền cơ bản */

    /* Typography */
    --h5cw-font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Cấu trúc kích thước */
    --h5cw-max-width: 1200px;
    --h5cw-max-width-blog: 800px;
    --h5cw-radius: 8px;
}

/* --- 2. RESET TỐI GIẢN (LOẠI BỎ RÁC ELEMENTOR NGẦM) --- */
.h5cw-header, .h5cw-header *,
.h5cw-footer, .h5cw-footer *,
.h5cw-single-post, .h5cw-single-post * {
    box-sizing: border-box;
    font-family: var(--h5cw-font-main);
}


/* ==========================================================================
   PHẦN A: GLOBAL HEADER (THANH ĐIỀU HƯỚNG)
   ========================================================================== */
.h5cw-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.h5cw-header-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;

    padding: 0 clamp(20px, 4vw, 40px);

    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;

    box-sizing: border-box;
}

/* Logo */
.h5cw-logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--h5cw-text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.h5cw-logo span { color: var(--h5cw-primary); }

/* Navigation Desktop */
.h5cw-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.h5cw-nav-list a {
    color: var(--h5cw-text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.h5cw-nav-list a:hover {
    color: var(--h5cw-primary);
}

/* Button CTA Header */
.h5cw-nav-cta a {
    background-color: var(--h5cw-primary);
    color: #ffffff !important;
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
}
.h5cw-nav-cta a:hover {
    background-color: var(--h5cw-primary-hover) !important;
}

/* Menu Mobile Toggle */
.h5cw-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--h5cw-text-dark);
}

/* Mobile Header Breakpoint */
@media (max-width: 768px) {
    .h5cw-mobile-toggle { display: block; }
    
    .h5cw-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        border-top: 1px solid #eee;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        visibility: hidden;
    }
    
    .h5cw-nav.is-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .h5cw-nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .h5cw-nav-list li { width: 100%; }
    
    .h5cw-nav-list a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--h5cw-bg-gray);
        text-align: center;
    }
    
    .h5cw-nav-cta { padding: 1rem; text-align: center; border-bottom: none;}
    .h5cw-nav-cta a { display: inline-block; width: 100%; }
}


/* ==========================================================================
   PHẦN B: GLOBAL FOOTER (CHÂN TRANG)
   ========================================================================== */
.h5cw-footer {
    background-color: var(--h5cw-text-dark); /* Màu nền Đen tuyền */
    color: #e2e8f0;
    padding-top: 4rem;
    border-top: 4px solid var(--h5cw-primary);
}

.h5cw-footer-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;

    box-sizing: border-box;
}

.h5cw-footer-col {
    flex: 1 1 250px;
}

.h5cw-footer-col h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.h5cw-footer-col p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.h5cw-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.h5cw-footer-list li {
    margin-bottom: 0.75rem;
}

.h5cw-footer-list a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.h5cw-footer-list a:hover {
    color: var(--h5cw-primary);
    transform: translateX(5px); /* Hiệu ứng đẩy text mượt mà */
}

/* Liên hệ Footer */
.h5cw-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.h5cw-contact-item svg {
    color: var(--h5cw-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Copyright Bottom */
.h5cw-footer-bottom {
    background-color: #080808; /* Nền hơi sáng hơn nền đen 1 tí để phân tách */
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 3rem;
    font-size: 0.875rem;
    color: #94a3b8;
}


/* ==========================================================================
   PHẦN C: SINGLE POST (TRANG BÀI VIẾT BLOG)
   ========================================================================== */
.h5cw-single-post {
    max-width: var(--h5cw-max-width-blog);
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: #ffffff;
}

.h5cw-post-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--h5cw-border);
    padding-bottom: 1.5rem;
}

.h5cw-post-cat {
    display: inline-block;
    background-color: var(--h5cw-primary);
    color: #ffffff;
    padding: 0.25rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 1rem;
}

.h5cw-post-title {
    color: var(--h5cw-text-dark);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

.h5cw-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    color: var(--h5cw-text-light);
    font-size: 0.95rem;
}

.h5cw-post-meta div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.h5cw-post-meta svg {
    color: var(--h5cw-primary);
}

.h5cw-post-meta a {
    color: var(--h5cw-text-main);
    font-weight: 600;
    text-decoration: none;
}

.h5cw-featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--h5cw-radius);
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.h5cw-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--h5cw-text-main);
}

.h5cw-post-content h2,
.h5cw-post-content h3 {
    color: var(--h5cw-text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.h5cw-post-content h2 { font-size: 1.875rem; }
.h5cw-post-content h3 { font-size: 1.5rem; }

.h5cw-post-content p { margin-bottom: 1.5rem; }

.h5cw-post-content a {
    color: var(--h5cw-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.h5cw-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.h5cw-post-content blockquote {
    border-left: 4px solid var(--h5cw-primary);
    background-color: var(--h5cw-bg-gray);
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--h5cw-text-dark);
    border-radius: 0 var(--h5cw-radius) var(--h5cw-radius) 0;
}

@media (max-width: 768px) {
    .h5cw-post-title { font-size: 2rem; }
    .h5cw-post-meta { gap: 1rem; flex-direction: column; align-items: flex-start; }
}





/* ==========================================================================
   PHẦN D: CSS TRANG CHỦ
/* ==========================================================================
   BẢNG TOP 50 SEO - CSS TỐI ƯU
   Đồng bộ visual với phần carousel Top 10
========================================================================== */

:root {
    --primary-blue: #2563eb;
    --hover-blue: #1d4ed8;
    --border-blue-light: rgba(37, 99, 235, 0.12);
    --dark-text: #0f172a;
    --gray-text: #64748b;
    --light-bg: #f8fafc;
    --border-color: #edf0f7;
    --white: #ffffff;
}

/* =========================================================
   CONTAINER — bỏ box, bỏ shadow, bỏ border ngoài
========================================================= */

.seo-directory-container {
    font-family: 'Inter', sans-serif !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 56px 20px !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* =========================================================
   HEADER — đồng bộ với Top 10 carousel
========================================================= */

.seo-header {
    margin-bottom: 42px !important;
    position: relative !important;
    padding-left: 20px !important;
}

/* Thanh line xanh bên trái — giống hệt phần carousel */
.seo-header::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    width: 4px !important;
    height: calc(100% - 4px) !important;
    border-radius: 99px !important;
    background: var(--primary-blue) !important;
}

.seo-title {
    font-size: 35px !important;
    font-weight: 700 !important;
    color: var(--dark-text) !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    font-family: 'Inter', sans-serif !important;
}

/* Dùng thẻ p ngay dưới h2 làm subtitle */
.seo-header p {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: var(--gray-text) !important;
    margin: 0 !important;
    font-weight: 400 !important;
    font-style: normal !important;
    max-width: 680px !important;
}

/* =========================================================
   TABS
========================================================= */

.seo-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 16px !important;
}

.seo-tab-btn {
    background-color: transparent !important;
    color: var(--gray-text) !important;
    border: 1px solid transparent !important;
    padding: 7px 20px !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    font-family: 'Inter', sans-serif !important;
}

.seo-tab-btn:hover {
    color: var(--primary-blue) !important;
    background-color: #eff6ff !important;
}

.seo-tab-btn.active {
    background-color: var(--primary-blue) !important;
    color: var(--white) !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

/* =========================================================
   TABLE SCROLL
========================================================= */

.table-scroll-container {
    max-height: 1100px !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--light-bg);
}

.table-scroll-container::-webkit-scrollbar {
    width: 5px !important;
    height: 5px !important;
}
.table-scroll-container::-webkit-scrollbar-track {
    background: var(--light-bg) !important;
}
.table-scroll-container::-webkit-scrollbar-thumb {
    background-color: #bfdbfe !important;
    border-radius: 10px !important;
}

/* =========================================================
   TABLE
========================================================= */

.seo-table {
    width: 100% !important;
    border-collapse: collapse !important;
    text-align: left !important;
    margin: 0 !important;
    background-color: var(--white) !important;
}

.seo-table caption {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    border: 0 !important;
}

/* THEAD */
.seo-table thead th {
    position: sticky !important;
    top: 0 !important;
    background-color: var(--primary-blue) !important;
    color: var(--white) !important;
    padding: 14px 16px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    z-index: 10 !important;
    white-space: nowrap !important;
    border: none !important;
}

/* TBODY */
.seo-table tbody td {
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-left: none !important;
    border-right: none !important;
    color: var(--dark-text) !important;
    font-size: 14.5px !important;
    vertical-align: middle !important;
    transition: background-color 0.2s ease !important;
    background-color: var(--white) !important;
}

.seo-table tbody tr:last-child td {
    border-bottom: none !important;
}

.seo-table tbody tr:hover td {
    background-color: #f8faff !important;
}

/* =========================================================
   FILTER
========================================================= */

.seo-row.hidden {
    display: none !important;
}

/* =========================================================
   RANK BADGE
========================================================= */

.seo-table tbody td.col-rank {
    text-align: center !important;
}

.rank-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 28px !important;
    padding: 0 8px !important;
    background-color: #eff6ff !important;
    color: var(--primary-blue) !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* =========================================================
   COL NAME
========================================================= */

.seo-table tbody td.col-name {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--dark-text) !important;
}

/* =========================================================
   LOCATION BADGE
========================================================= */

.location-badge {
    display: inline-block !important;
    background-color: var(--white) !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    border: 1px solid var(--border-color) !important;
    color: var(--gray-text) !important;
    white-space: nowrap !important;
}

/* =========================================================
   NOTE
========================================================= */

.seo-note {
    margin-top: 16px !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    font-style: italic !important;
    text-align: left !important;
}

/* =========================================================
   FADE ANIMATION
========================================================= */

.seo-row.fade-in {
    animation: fadeIn 0.35s ease-in-out !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .seo-directory-container {
        padding: 36px 16px !important;
    }

    .seo-title {
        font-size: 26px !important;
        letter-spacing: -0.3px !important;
    }

    .seo-header p {
        font-size: 14px !important;
    }

    .seo-table thead th,
    .seo-table tbody td {
        font-size: 13px !important;
        padding: 12px !important;
    }
}
    
    
    
    
    
    /* 2. CSS CHO TOP 10 CÔNG TY */
   /* =========================================================
   TOP 10 SEO COMPANY SECTION - MODERN UI
========================================================= */
/* =========================================================
   TOP 10 SEO COMPANY SECTION
   CSS khớp đúng với HTML structure
========================================================= */

:root {
    --primary-blue: #2563eb;
    --hover-blue: #1d4ed8;
    --dark-text: #0f172a;
    --gray-text: #64748b;
    --light-bg: #f8fafc;
    --border-color: #edf0f7;
    --white: #ffffff;
    --gold-star: #fbbf24;
}

/* =========================================================
   CONTAINER
========================================================= */

.top10-seo-section {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 56px 20px !important;
    box-sizing: border-box !important;
    font-family: 'Inter', sans-serif !important;
    position: relative !important;
    background: #fff !important;
}

/* =========================================================
   HEADER
========================================================= */

.top10-header {
    margin-bottom: 42px !important;
    position: relative !important;
    padding-left: 20px !important;
}

.top10-header::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    width: 4px !important;
    height: calc(100% - 4px) !important;
    border-radius: 99px !important;
    background: var(--primary-blue) !important;
}

/* Badge nhỏ phía trên title */
.top10-section-badge {
    display: inline-block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--gray-text) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
}

.top10-title {
    font-size: 35px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: var(--dark-text) !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.5px !important;
}

.top10-subtitle {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: var(--gray-text) !important;
    margin: 0 !important;
    max-width: 680px !important;
    font-weight: 400 !important;
}

/* =========================================================
   CAROUSEL
========================================================= */

.carousel-container {
    position: relative !important;
}

.carousel-viewport {
    overflow: hidden !important;
    width: 100% !important;
}

.carousel-track {
    display: flex !important;
    gap: 20px !important;
    transition: transform 0.45s ease !important;
    will-change: transform !important;
}

/* =========================================================
   CARD WRAPPER
========================================================= */

.card-wrapper {
    flex: 0 0 calc(33.333% - 14px) !important;
    min-width: 0 !important;
}

@media (max-width: 992px) {
    .card-wrapper {
        flex: 0 0 calc(50% - 10px) !important;
    }
}

@media (max-width: 640px) {
    .card-wrapper {
        flex: 0 0 100% !important;
    }
}

/* =========================================================
   CARD
========================================================= */

.seo-agency-card {
    position: relative !important;
    background: var(--white) !important;
    border: 1px solid #edf0f7 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease !important;
}

.seo-agency-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(37, 99, 235, 0.22) !important;
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.07),
        0 3px 10px rgba(37, 99, 235, 0.09) !important;
}

/* =========================================================
   RANK BADGE
========================================================= */

.rank-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    height: 26px !important;
    padding: 0 10px !important;
    background: var(--primary-blue) !important;
    color: #fff !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin-bottom: 16px !important;

    /* Reset: KHÔNG dùng position absolute nữa */
    position: static !important;
    top: auto !important;
    left: auto !important;
}

/* =========================================================
   CARD HEADER (Logo + Tên + Sao)
========================================================= */

.card-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
}

.agency-logo-wrapper {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #edf0f7 !important;
}

.agency-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.agency-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.agency-name {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--dark-text) !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.stars {
    font-size: 13px !important;
    color: var(--gold-star) !important;
    line-height: 1 !important;
}

/* =========================================================
   DESCRIPTION
========================================================= */

.agency-description {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: var(--gray-text) !important;
    margin-bottom: 14px !important;
    font-weight: 400 !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* =========================================================
   DIVIDER
========================================================= */

.card-divider {
    height: 1px !important;
    background: #f1f5f9 !important;
    margin-bottom: 14px !important;
    border: none !important;
}

/* =========================================================
   DETAILS LIST
========================================================= */

.agency-details {
    list-style: none !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.agency-details li {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 13.5px !important;
}

.detail-label {
    color: var(--gray-text) !important;
    font-weight: 400 !important;
}

.detail-value {
    font-weight: 600 !important;
    color: var(--dark-text) !important;
    font-size: 13.5px !important;
}

/* Badge trụ sở */
.detail-value.highlight-badge {
    background: #eff6ff !important;
    color: var(--primary-blue) !important;
    border-radius: 5px !important;
    padding: 2px 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

/* =========================================================
   EVALUATION FOOTER
========================================================= */

.agency-evaluation {
    margin-top: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 14px !important;
    border-top: 1px solid #f1f5f9 !important;
}

.eval-score {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.score-label {
    font-size: 13px !important;
    color: var(--gray-text) !important;
    font-weight: 400 !important;
}

.score-number {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--primary-blue) !important;
}

.eval-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: var(--primary-blue) !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

.eval-link:hover {
    color: var(--hover-blue) !important;
    transform: translateX(3px) !important;
}

/* =========================================================
   NAV BUTTONS
========================================================= */

.nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    border: 1px solid var(--border-color) !important;
    background: #fff !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    font-size: 14px !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 1px 4px rgba(15,23,42,0.07) !important;
}

.nav-btn:hover {
    background: var(--primary-blue) !important;
    color: #fff !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22) !important;
}

.prev-btn {
    left: -20px !important;
}

.next-btn {
    right: -20px !important;
}

/* =========================================================
   DOTS
========================================================= */

.carousel-indicators {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 28px !important;
}

.dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 999px !important;
    background: #cbd5e1 !important;
    transition: all 0.3s ease !important;
}

.dot.active {
    width: 22px !important;
    background: var(--primary-blue) !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .top10-seo-section {
        padding: 36px 16px !important;
    }

    .top10-title {
        font-size: 26px !important;
    }

    .top10-subtitle {
        font-size: 14px !important;
    }

    .seo-agency-card {
        padding: 18px !important;
    }

    .agency-name {
        font-size: 16px !important;
    }

    .prev-btn {
        left: -6px !important;
    }

    .next-btn {
        right: -6px !important;
    }
}






/* =========================================================
   HERO PORTAL SECTION
   Đồng bộ brand guideline với Top 10 carousel & Top 50 table
========================================================= */

:root {
    --primary-blue: #2563eb;
    --dark-text: #0f172a;
    --gray-text: #64748b;
    --white: #ffffff;
}

.hero-portal-section {
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 72px 20px 56px !important;
    box-sizing: border-box !important;
    background: var(--white) !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
}

/* =========================================================
   INNER — giới hạn chiều rộng text cho đẹp
========================================================= */

.hero-portal-inner {
    max-width: 780px !important;
    margin: 0 auto !important;
}

/* =========================================================
   TITLE
========================================================= */

.hero-portal-title {
    font-size: 48px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -1.5px !important;
    color: var(--dark-text) !important;
    margin: 0 0 20px 0 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Phần chữ xanh highlight */
.hero-highlight {
    color: var(--primary-blue) !important;
}

/* =========================================================
   DESCRIPTION
========================================================= */

.hero-portal-desc {
    font-size: 17px !important;
    line-height: 1.75 !important;
    color: var(--gray-text) !important;
    font-weight: 400 !important;
    margin: 0 0 32px 0 !important;
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* =========================================================
   TRUST BADGES
========================================================= */

.hero-trust-badges {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;

    background: #eff6ff !important;
    color: var(--primary-blue) !important;

    padding: 8px 16px !important;
    border-radius: 999px !important;

    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    font-family: 'Inter', sans-serif !important;

    white-space: nowrap !important;
}

.badge-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .hero-portal-section {
        padding: 48px 20px 40px !important;
    }

    .hero-portal-title {
        font-size: 32px !important;
        letter-spacing: -0.5px !important;
    }

    .hero-portal-desc {
        font-size: 15px !important;
    }

    .hero-badge {
        font-size: 13px !important;
        padding: 7px 14px !important;
    }
}




/* =========================================================
   GUIDE SECTION — Cẩm Nang Chọn Agency SEO
========================================================= */

.guide-section {
    width: 100vw !important;
    background: #f8fafc !important;
    padding: 72px 0 !important;
    box-sizing: border-box !important;
    font-family: 'Inter', sans-serif !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
}

.guide-inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 64px !important;
    box-sizing: border-box !important;
}

/* =========================================================
   CỘT TRÁI
========================================================= */

.guide-left {
    flex: 0 0 260px !important;
    max-width: 260px !important;
    position: sticky !important;
    top: 40px !important;
}

.guide-title {
    font-size: 34px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    color: #0f172a !important;
    margin: 0 0 16px 0 !important;
    font-family: 'Inter', sans-serif !important;
}

.guide-desc {
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #64748b !important;
    font-weight: 400 !important;
    margin: 0 0 28px 0 !important;
}

.guide-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 13px 20px !important;
    background: #2563eb !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif !important;
    transition: background 0.25s ease, transform 0.2s ease !important;
    box-sizing: border-box !important;
}

.guide-cta:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px) !important;
}

/* =========================================================
   CỘT PHẢI — scroll container
========================================================= */

.guide-cards-wrap {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Note lướt */
.guide-scroll-note {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 12.5px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    margin: 0 0 10px 0 !important;
    font-style: italic !important;
}

/* Grid scroll */
.guide-cards {
    list-style: none !important;
    padding: 0 0 4px 0 !important;
    margin: 0 !important;

    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;

    /* Cố định chiều cao + scroll dọc */
    max-height: 460px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;

    /* Scrollbar đẹp */
    scrollbar-width: thin !important;
    scrollbar-color: #bfdbfe #f1f5f9 !important;

    /* Padding để card không bị cắt khi hover */
    padding-right: 6px !important;
}

.guide-cards::-webkit-scrollbar {
    width: 5px !important;
}
.guide-cards::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 99px !important;
}
.guide-cards::-webkit-scrollbar-thumb {
    background: #bfdbfe !important;
    border-radius: 99px !important;
}
.guide-cards::-webkit-scrollbar-thumb:hover {
    background: #2563eb !important;
}

/* Fade bottom — hint còn nội dung bên dưới */
.guide-cards-wrap {
    position: relative !important;
}
.guide-cards-wrap::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 6px !important;
    height: 60px !important;
    background: linear-gradient(to bottom, transparent, #f8fafc) !important;
    pointer-events: none !important;
    border-radius: 0 0 16px 16px !important;
    transition: opacity 0.3s ease !important;
}

/* =========================================================
   CARD
========================================================= */

.guide-card {
    background: #ffffff !important;
    border: 1px solid #edf0f7 !important;
    border-radius: 16px !important;
    padding: 22px !important;
    box-sizing: border-box !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.guide-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(37, 99, 235, 0.22) !important;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.07),
        0 2px 8px rgba(37, 99, 235, 0.08) !important;
}

.guide-card-icon {
    width: 38px !important;
    height: 38px !important;
    background: #eff6ff !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 14px !important;
    flex-shrink: 0 !important;
}

.guide-card-icon svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

.guide-card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.35 !important;
    font-family: 'Inter', sans-serif !important;
}

.guide-card-desc {
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    color: #64748b !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {
    .guide-inner {
        flex-direction: column !important;
        gap: 32px !important;
    }

    .guide-left {
        flex: none !important;
        max-width: 100% !important;
        position: static !important;
    }

    .guide-cta {
        width: auto !important;
    }

    .guide-cards {
        grid-template-columns: 1fr 1fr !important;
        max-height: 380px !important;
    }
}

@media (max-width: 560px) {
    .guide-section {
        padding: 48px 0 !important;
    }

    .guide-title {
        font-size: 26px !important;
    }

    .guide-cards {
        grid-template-columns: 1fr !important;
        max-height: 400px !important;
    }

    .guide-scroll-note {
        font-size: 12px !important;
    }
}






/* ==========================================================================
   DẤU HIỆU CẢNH BÁO & QUY TRÌNH CHỌN AGENCY SEO
   CSS viết lại chuẩn — Brand Guideline đồng bộ toàn site
   Tương thích Elementor: toàn bộ !important
========================================================================== */

/* =========================================================
   SCREEN READER ONLY — accessibility chuẩn WCAG
========================================================= */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================================================
   SECTION CONTAINER
   Full-width background — đồng bộ guide-section
========================================================= */

.seo-guide-section {
    width: 100vw !important;
    background: #f8fafc !important;
    padding: 64px 0 !important;
    box-sizing: border-box !important;
    font-family: 'Inter', sans-serif !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
}

.seo-guide-inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* =========================================================
   ROW 1: Grid 2 cột
========================================================= */

.seo-guide-top-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    align-items: start !important;
}

/* =========================================================
   BOX — dùng chung cả 2 cột
========================================================= */

.seo-box {
    background: #ffffff !important;
    border: 1px solid #edf0f7 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* =========================================================
   BOX HEADER
========================================================= */

.seo-box-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
}

.seo-box-icon {
    width: 38px !important;
    height: 38px !important;
    background: #eff6ff !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.seo-box-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

.seo-box-desc {
    font-size: 13px !important;
    line-height: 1.65 !important;
    color: #64748b !important;
    font-weight: 400 !important;
    margin: 0 0 16px 0 !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* =========================================================
   STEPS LIST — <ol> có thứ tự
========================================================= */

.steps-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 12px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex: 1 !important;
}

.step-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    background: #f8fafc !important;
    border: 1px solid #edf0f7 !important;
    border-radius: 12px !important;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease !important;
}

.step-item:hover {
    transform: translateY(-2px) !important;
    background: #ffffff !important;
    border-color: rgba(37, 99, 235, 0.22) !important;
    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.06),
        0 2px 6px rgba(37, 99, 235, 0.07) !important;
}

.step-badge {
    width: 26px !important;
    height: 26px !important;
    flex-shrink: 0 !important;
    background: #eff6ff !important;
    border-radius: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    margin-top: 1px !important;
    font-family: 'Inter', sans-serif !important;
}

.step-body {
    flex: 1 !important;
    min-width: 0 !important;
}

/* H4 — đúng thứ bậc heading: Section H2 (ẩn) > Box H3 > Step H4 */
.step-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 3px 0 !important;
    line-height: 1.35 !important;
    font-family: 'Inter', sans-serif !important;
}

.step-desc {
    font-size: 12.5px !important;
    line-height: 1.65 !important;
    color: #64748b !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

/* Agency name tags */
.agency-tag {
    display: inline-block !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    border-radius: 5px !important;
    padding: 1px 7px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    margin: 2px 2px 0 0 !important;
    line-height: 1.6 !important;
}

/* =========================================================
   QA LIST — <dl>/<dt>/<dd> cho FAQ
   Đây là tag ngữ nghĩa tốt nhất cho Google đọc Q&A
========================================================= */

.qa-list {
    padding: 0 !important;
    margin: 0 0 12px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex: 1 !important;
}

/* Mỗi cặp Q+A là 1 <div> bọc bên trong <dl> */
.qa-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 11px !important;
    padding: 12px 14px !important;
    background: #f8fafc !important;
    border: 1px solid #edf0f7 !important;
    border-radius: 12px !important;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease !important;
}

.qa-item:hover {
    transform: translateY(-2px) !important;
    background: #ffffff !important;
    border-color: rgba(37, 99, 235, 0.22) !important;
    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.06),
        0 2px 6px rgba(37, 99, 235, 0.07) !important;
}

.qa-icon-wrap {
    width: 30px !important;
    height: 30px !important;
    flex-shrink: 0 !important;
    background: #eff6ff !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 2px !important;
}

.qa-body {
    flex: 1 !important;
    min-width: 0 !important;
}

/* <dt> = câu hỏi */
.qa-q {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 3px 0 !important;
    line-height: 1.4 !important;
    font-family: 'Inter', sans-serif !important;
}

/* <dd> = câu trả lời / ghi chú */
.qa-note {
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #64748b !important;
    font-style: italic !important;
    font-weight: 400 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   SOURCE NOTE — dùng chung
========================================================= */

.source-note {
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    font-style: italic !important;
    margin: 0 !important;
    padding-top: 4px !important;
}

/* =========================================================
   WARNING BOX — ROW 2 full width
   Dùng <section> vì là nội dung cốt lõi (không phải <aside>)
========================================================= */

.warning-box {
    background: #fff9f9 !important;
    border: 1px solid #fecaca !important;
    border-left: 4px solid #ef4444 !important;
    border-radius: 16px !important;
    padding: 22px 24px !important;
    box-sizing: border-box !important;
}

.warning-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.warning-icon-wrap {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
    background: #fee2e2 !important;
    border-radius: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* H3 — đúng thứ bậc: ngang hàng với 2 H3 trong row 1 */
.warning-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #7f1d1d !important;
    letter-spacing: -0.2px !important;
    line-height: 1.25 !important;
    margin: 0 0 3px 0 !important;
    font-family: 'Inter', sans-serif !important;
}

.warning-subtitle {
    font-size: 12.5px !important;
    color: #b91c1c !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* <ul> không thứ tự — phù hợp vì các dấu hiệu không có thứ bậc ưu tiên */
.warning-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.warning-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 9px !important;
    background: #ffffff !important;
    border: 1px solid #fecaca !important;
    border-radius: 11px !important;
    padding: 13px 14px !important;
    box-sizing: border-box !important;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease !important;
}

.warning-item:hover {
    border-color: #f87171 !important;
    transform: translateY(-2px) !important;
}

.w-num {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    background: #fee2e2 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #dc2626 !important;
    margin-top: 1px !important;
    font-family: 'Inter', sans-serif !important;
}

.w-text {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #1e293b !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

.w-text strong {
    font-weight: 700 !important;
    color: #b91c1c !important;
}

/* =========================================================
   RESPONSIVE — Tablet 992px
========================================================= */

@media (max-width: 992px) {
    .warning-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* =========================================================
   RESPONSIVE — Mobile 768px
========================================================= */

@media (max-width: 768px) {

    .seo-guide-section {
        padding: 48px 0 !important;
    }

    .seo-guide-top-row {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .seo-box {
        padding: 20px !important;
        height: auto !important;
    }

    .seo-box-title {
        font-size: 15px !important;
    }

    .step-title,
    .qa-q {
        font-size: 13px !important;
    }

    .warning-box {
        padding: 18px 16px !important;
    }

    .warning-title {
        font-size: 14px !important;
    }

    .warning-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
}

/* =========================================================
   RESPONSIVE — Mobile nhỏ 480px
========================================================= */

@media (max-width: 480px) {

    .warning-grid {
        grid-template-columns: 1fr !important;
    }

    .step-desc,
    .qa-note {
        font-size: 12px !important;
    }
}



/* =========================================================
   FAQ SECTION
========================================================= */

.h5cw-faq-section {
    width: 100%;
    padding: 52px 20px 46px;
    box-sizing: border-box;
    font-family: var(--h5cw-font-main) !important;
}

/* =========================================================
   CONTAINER
========================================================= */

.h5cw-faq-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: var(--h5cw-font-main) !important;
}

/* =========================================================
   HEADER
========================================================= */

.h5cw-faq-header {
    position: relative;
    padding-left: 20px;
    margin-bottom: 26px;
    font-family: var(--h5cw-font-main) !important;
}

.h5cw-faq-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: calc(100% - 8px);
    border-radius: 999px;
    background: var(--h5cw-primary);
}

.h5cw-faq-title {
    font-size: 35px;
    line-height: 1.18;
    font-weight: 700;
    color: var(--h5cw-text-dark);
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    font-family: var(--h5cw-font-main) !important;
}

.h5cw-faq-subtitle {
    font-size: 16px;
    line-height: 1.65;
    color: var(--h5cw-text-light);
    margin: 0;
    max-width: 720px;
    font-family: var(--h5cw-font-main) !important;
}

/* =========================================================
   SCROLLBOX
========================================================= */

.h5cw-faq-scrollbox {
    max-height: 620px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Scrollbar */
.h5cw-faq-scrollbox::-webkit-scrollbar {
    width: 8px;
}

.h5cw-faq-scrollbox::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.h5cw-faq-scrollbox::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

/* =========================================================
   FAQ ITEM
========================================================= */

.h5cw-faq-item {
    border: 1px solid var(--h5cw-border);
    border-radius: 18px;
    background: #ffffff;
    margin-bottom: 14px;
    overflow: hidden;
}

/* XÓA icon mặc định browser */
.h5cw-faq-item summary::-webkit-details-marker {
    display: none;
}

.h5cw-faq-item summary::marker {
    display: none;
    content: "";
}

/* =========================================================
   QUESTION
========================================================= */

.h5cw-faq-question {
    list-style: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 18px 20px;

    font-size: 19px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--h5cw-text-dark);

    user-select: none;
    font-family: var(--h5cw-font-main) !important;
}

.h5cw-faq-question span:first-child {
    font-family: var(--h5cw-font-main) !important;
}

/* =========================================================
   ICON
========================================================= */

.h5cw-faq-icon {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #f1f5f9;
    flex-shrink: 0;
}

.h5cw-faq-icon::before,
.h5cw-faq-icon::after {
    content: "";
    position: absolute;
    background: var(--h5cw-primary);
    border-radius: 999px;
    transition: transform 0.25s ease;
}

/* Horizontal line */
.h5cw-faq-icon::before {
    width: 14px;
    height: 2px;
    left: 12px;
    top: 18px;
}

/* Vertical line */
.h5cw-faq-icon::after {
    width: 2px;
    height: 14px;
    left: 18px;
    top: 12px;
}

/* Khi mở -> thành dấu trừ */
.h5cw-faq-item[open] .h5cw-faq-icon::after {
    transform: scaleY(0);
}

/* =========================================================
   ANSWER
========================================================= */

.h5cw-faq-answer {
    padding: 0 20px 20px;
}

.h5cw-faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--h5cw-text-main);
    font-family: var(--h5cw-font-main) !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .h5cw-faq-section {
        padding: 42px 16px 38px;
    }

    .h5cw-faq-title {
        font-size: 28px;
    }

    .h5cw-faq-header {
        margin-bottom: 20px;
    }

    .h5cw-faq-question {
        font-size: 17px;
        padding: 16px 18px;
    }

    .h5cw-faq-answer {
        padding: 0 18px 18px;
    }

    .h5cw-faq-answer p {
        font-size: 15px;
    }

    .h5cw-faq-icon {
        width: 34px;
        height: 34px;
    }

    .h5cw-faq-icon::before {
        width: 12px;
        left: 11px;
        top: 16px;
    }

    .h5cw-faq-icon::after {
        height: 12px;
        left: 16px;
        top: 10px;
    }
}






/* ==========================================================================
   HTML5 CODE WEB - MASTER CSS FILE
   Mô tả: Tệp CSS Lõi tĩnh 100%, chứa biến toàn cục, Header, Footer & Single Post
   ========================================================================== */

/* --- 0. NHÚNG FONT CHỮ --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- 1. BIẾN CSS TOÀN CỤC (HỆ THỐNG MÀU & FONT BRANDING) --- */
:root {
    --h5cw-primary: #2563eb;       
    --h5cw-primary-hover: #1d4ed8; 
    --h5cw-text-main: #334155;     
    --h5cw-text-dark: #1e293b;     
    --h5cw-text-light: #64748b;    
    --h5cw-bg-gray: #f8fafc;       
    --h5cw-border: rgba(37, 99, 235, 0.15); 
    --h5cw-font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --h5cw-max-width: 1200px;
    /* UPDATE: Container rộng 1280px theo yêu cầu */
    --h5cw-max-width-blog: 1280px; 
    --h5cw-radius: 8px;
}

/* --- 2. RESET TỐI GIẢN --- */
.h5cw-header, .h5cw-header *,
.h5cw-footer, .h5cw-footer *,
.h5cw-single-post, .h5cw-single-post * {
    box-sizing: border-box;
    font-family: var(--h5cw-font-main);
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   3. GIAO DIỆN SINGLE POST 
   ========================================================================== */
.h5cw-single-post {
    max-width: var(--h5cw-max-width-blog) !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    background: #ffffff !important;
    color: var(--h5cw-text-main) !important;
    line-height: 1.7 !important;
    font-size: 17px !important;
}

.h5cw-post-header {
    margin-bottom: 30px !important;
    border-bottom: 1px solid var(--h5cw-border) !important;
    padding-bottom: 25px !important;
}

.h5cw-post-cat {
    display: inline-block !important;
    background-color: var(--h5cw-bg-gray) !important;
    color: var(--h5cw-primary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    margin-bottom: 15px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border: 1px solid var(--h5cw-border) !important;
}

/* UPDATE: Tiêu đề H1 chỉ dùng font-weight 700 */
.h5cw-post-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: var(--h5cw-text-dark) !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
}

/* UPDATE: Ảnh đại diện Full Width mượt mà */
.h5cw-featured-image {
    width: 100% !important;
    height: auto !important;
    max-height: 550px !important;
    object-fit: cover !important;
    border-radius: var(--h5cw-radius) !important;
    margin-bottom: 40px !important;
    display: block !important;
    border: 1px solid var(--h5cw-border) !important;
}

.h5cw-post-content { color: var(--h5cw-text-main) !important; }
.h5cw-post-content p { margin-bottom: 20px !important; }

.h5cw-post-content h2 {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--h5cw-text-dark) !important;
    margin: 40px 0 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--h5cw-border) !important;
}

.h5cw-post-content h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: var(--h5cw-text-dark) !important;
    margin: 30px 0 15px !important;
}

.h5cw-post-content blockquote {
    margin: 30px 0 !important;
    padding: 20px 25px !important;
    background-color: var(--h5cw-bg-gray) !important;
    border-left: 4px solid var(--h5cw-primary) !important;
    border-radius: 0 var(--h5cw-radius) var(--h5cw-radius) 0 !important;
    font-style: italic !important;
    color: var(--h5cw-text-dark) !important;
}
.h5cw-post-content blockquote p:last-child { margin-bottom: 0 !important; }
.h5cw-post-content ul, .h5cw-post-content ol { margin: 0 0 25px 20px !important; padding: 0 !important; }
.h5cw-post-content li { margin-bottom: 10px !important; padding-left: 5px !important; }
.h5cw-post-content ul li::marker { color: var(--h5cw-primary) !important; }
.h5cw-post-content img { max-width: 100% !important; height: auto !important; border-radius: var(--h5cw-radius) !important; margin: 25px 0 !important; display: block !important; }

.h5cw-post-content a.button, .h5cw-post-content .wp-block-button__link {
    background-color: var(--h5cw-primary) !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: var(--h5cw-radius) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-block !important;
    transition: background 0.3s ease !important;
    border: none !important;
}
.h5cw-post-content a.button:hover, .h5cw-post-content .wp-block-button__link:hover {
    background-color: var(--h5cw-primary-hover) !important;
}

/* ==========================================================================
   4. TỐI ƯU CÁC THÀNH PHẦN BỔ SUNG (BREADCRUMB, META, AUTHOR BOX)
   ========================================================================== */

.h5cw-breadcrumb {
    font-size: 14px !important;
    color: var(--h5cw-text-light) !important;
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}
.h5cw-breadcrumb a {
    color: var(--h5cw-primary) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}
.h5cw-breadcrumb a:hover { color: var(--h5cw-primary-hover) !important; text-decoration: underline !important; }
.h5cw-breadcrumb .separator { margin: 0 8px !important; color: #94a3b8 !important; }

.h5cw-post-meta {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    font-size: 14px !important;
    color: var(--h5cw-text-main) !important;
    margin-top: 15px !important;
}
.h5cw-meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background-color: var(--h5cw-bg-gray) !important;
    padding: 6px 12px !important;
    border-radius: 50px !important;
    border: 1px solid var(--h5cw-border) !important;
}
.h5cw-meta-item svg { color: var(--h5cw-primary) !important; }
.h5cw-meta-item a { color: var(--h5cw-primary) !important; font-weight: 600 !important; text-decoration: none !important; }
.h5cw-meta-update { background-color: #eff6ff !important; border-color: rgba(37, 99, 235, 0.2) !important; }

.h5cw-author-box {
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
    background-color: var(--h5cw-bg-gray) !important;
    padding: 30px !important;
    border-radius: var(--h5cw-radius) !important;
    border: 1px solid var(--h5cw-border) !important;
    margin-top: 50px !important;
    box-shadow: none !important;
}
.h5cw-author-avatar img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #ffffff !important;
    outline: 1px solid var(--h5cw-border) !important;
}
.h5cw-author-info { flex: 1 !important; }
.h5cw-author-name { font-size: 20px !important; font-weight: 700 !important; color: var(--h5cw-text-dark) !important; margin: 0 0 8px 0 !important; }
.h5cw-author-desc { font-size: 15px !important; color: var(--h5cw-text-main) !important; line-height: 1.6 !important; margin: 0 0 12px 0 !important; }
.h5cw-author-link { display: inline-block !important; font-size: 14px !important; font-weight: 600 !important; color: var(--h5cw-primary) !important; text-decoration: none !important; }
.h5cw-author-link:hover { text-decoration: underline !important; }

/* ==========================================================================
   5. CAROUSEL BÀI VIẾT MỚI NHẤT
   ========================================================================== */

.h5cw-latest-posts {
    margin-top: 60px !important;
    padding-top: 40px !important;
    border-top: 1px solid var(--h5cw-border) !important;
}
.h5cw-lp-header-wrap {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 25px !important;
}
.h5cw-lp-header {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--h5cw-text-dark) !important;
    text-transform: uppercase !important;
}
.h5cw-lp-nav {
    display: flex !important;
    gap: 12px !important;
}
.h5cw-lp-btn {
    background: #ffffff !important;
    border: 1px solid var(--h5cw-border) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: var(--h5cw-primary) !important;
    transition: all 0.3s ease !important;
}
.h5cw-lp-btn:hover {
    background: var(--h5cw-primary) !important;
    color: #ffffff !important;
}
.h5cw-lp-carousel {
    display: flex !important;
    gap: 24px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important; /* Dành cho Firefox */
    padding-bottom: 15px !important;
}
.h5cw-lp-carousel::-webkit-scrollbar {
    display: none !important; /* Ẩn scrollbar trên Chrome/Safari */
}
.h5cw-lp-card {
    flex: 0 0 calc(25% - 18px) !important; /* Desktop: Hiển thị 4 thẻ */
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    text-decoration: none !important;
    background: var(--h5cw-bg-gray) !important;
    border-radius: var(--h5cw-radius) !important;
    padding-bottom: 15px !important;
    border: 1px solid var(--h5cw-border) !important;
    transition: transform 0.3s ease, border-color 0.3s ease !important;
}
.h5cw-lp-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--h5cw-primary) !important;
}
.h5cw-lp-card img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: var(--h5cw-radius) var(--h5cw-radius) 0 0 !important;
}
.h5cw-lp-card-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--h5cw-text-main) !important;
    line-height: 1.5 !important;
    padding: 0 15px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.3s ease !important;
}
.h5cw-lp-card:hover .h5cw-lp-card-title {
    color: var(--h5cw-primary) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .h5cw-lp-card { flex: 0 0 calc(33.333% - 16px) !important; }
}
@media (max-width: 768px) {
    .h5cw-post-title { font-size: 28px !important; }
    .h5cw-single-post { padding: 0 15px !important; }
    .h5cw-author-box { flex-direction: column !important; text-align: center !important; }
    .h5cw-lp-card { flex: 0 0 calc(50% - 12px) !important; }
}
@media (max-width: 480px) {
    .h5cw-lp-card { flex: 0 0 85% !important; }
}