/*
Theme Name: VNFUNDED Theme
Theme URI: https://vnfunded.vn
Author: VNFUNDED
Description: Theme chuyên dụng cho website review Broker & Prop Firm - VNFUNDED.VN
Version: 1.0.0
License: GPL v2 or later
Text Domain: vnfunded
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00257a;
    --primary-light: #47629f;
    --secondary: #0073b5;
    --secondary-hover: #005c92;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Roboto', -apple-system, sans-serif;
    color: var(--gray-dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

.market-ticker {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: var(--white);
}

.app-tabbar {
    display: none;
}

@media (max-width: 768px) {
    .app-tabbar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
        z-index: 999999;
        padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    }

    .app-tabbar a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        color: var(--gray);
        font-size: 11px;
        font-weight: 600;
        padding: 4px 0;
    }

    .app-tabbar a.active {
        color: var(--secondary);
    }

    .app-tabbar-icon {
        font-size: 20px;
        line-height: 1;
    }

    /* Chừa khoảng trống dưới cùng để nội dung không bị thanh tab che mất */
    body {
        padding-bottom: 64px;
    }
}

a:hover {
    color: var(--secondary);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
    color: var(--white);
}

.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.logo img,
.custom-logo {
    max-height: 62px;
    width: auto;
    display: block;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav ul::-webkit-scrollbar {
    display: none;
}

.main-nav ul li a {
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    color: var(--gray-dark);
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav ul li a:hover {
    background: var(--gray-light);
    color: var(--primary);
}

/* ===== MENU SỔ XUỐNG (DROPDOWN) ===== */
.main-nav ul li {
    position: relative;
}

.main-nav ul li.menu-item-has-children > a::after {
    content: '▾';
    margin-left: 4px;
    font-size: 11px;
}

.main-nav ul li .sub-menu {
    display: none;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    padding: 8px;
    z-index: 100;
    flex-direction: column;
    gap: 2px;
}

.main-nav ul li:hover > .sub-menu,
.main-nav ul li.submenu-open > .sub-menu {
    display: flex;
}

.main-nav ul li .sub-menu li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    color: var(--gray-dark);
}

.main-nav ul li .sub-menu li a:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ===== TÌM KIẾM NHỎ GỌN TRÊN HEADER ===== */
.header-search {
    position: relative;
    flex-shrink: 0;
}

.header-search-btn {
    background: none;
    border: none;
    font-size: 17px;
    cursor: pointer;
    color: var(--gray-dark);
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    line-height: 1;
}

.header-search-btn:hover {
    background: var(--gray-light);
}

.header-search-form {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    padding: 10px;
    z-index: 200;
}

.header-search-form.active {
    display: block;
}

.header-search-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.header-search-form input:focus {
    border-color: var(--secondary);
}

.search-results {
    margin-top: 6px;
    max-height: 320px;
    overflow-y: auto;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--gray-dark);
    font-size: 14px;
}

.search-result-item:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.search-result-type {
    font-size: 11px;
    color: var(--white);
    background: var(--secondary);
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.search-no-result {
    padding: 14px 12px;
    color: var(--gray);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 768px) {
    .header-search-form {
        width: 260px;
        right: -40px;
    }
}

.nav-login {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 7px 16px !important;
    border-radius: 8px !important;
    font-size: 13px;
    white-space: nowrap;
}

.nav-login:hover {
    background: var(--primary-light) !important;
    color: var(--white) !important;
}

.nav-register,
.nav-logout {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    color: var(--gray-dark);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-register:hover,
.nav-logout:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.nav-admin {
    background: var(--secondary) !important;
    color: var(--white) !important;
    padding: 7px 16px !important;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.nav-admin:hover {
    background: var(--secondary-hover) !important;
    color: var(--white) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 90px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-text .hero-search {
    margin: 0 auto 48px;
}

.hero-text .hero-stats {
    margin: 0 auto;
    max-width: 800px;
}

.hero h1 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.hero h1 span {
    color: var(--secondary);
}

.hero-eyebrow {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.85;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-eyebrow span {
    color: var(--secondary);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 17px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

.hero-search {
    display: flex;
    max-width: 580px;
    margin: 0 auto 48px;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-search input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--gray-dark);
}

.hero-search button {
    padding: 16px 32px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.hero-search button:hover {
    background: var(--secondary-hover);
}

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
    display: block;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== SECTION HEADING ===== */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.section-heading a {
    color: var(--secondary);
    font-weight: 600;
}

.section-heading a:hover {
    text-decoration: underline;
}

/* ===== TRANG CHỦ: LAYOUT 2 CỘT ===== */
.home-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-box {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

/* ===== CÔNG CỤ MIỄN PHÍ (TOOL GRID) ===== */
.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tool-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: var(--gray-light);
    color: var(--gray-dark);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.tool-lock {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 11px;
    opacity: 0.7;
}

.tool-item:hover {
    background: #eef1f5;
    transform: translateY(-2px);
}

.tool-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--white);
}

/* ===== PAYOUT PROOF LIST ===== */
.payout-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payout-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.payout-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.payout-logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.payout-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.payout-logo-fallback {
    font-weight: 800;
    font-size: 16px;
    color: var(--primary);
}

.payout-info {
    flex: 1;
    min-width: 0;
}

.payout-brand {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 2px;
}

.payout-amount {
    font-weight: 800;
    color: #16a34a;
    font-size: 18px;
    margin-bottom: 2px;
}

.payout-meta {
    font-size: 12px;
    color: var(--gray);
}

.payout-thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--gray-light);
    border: 1px solid rgba(0,0,0,0.06);
}

.bot-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 480px) {
    .bot-report-grid {
        grid-template-columns: 1fr;
    }
}

.bot-report-item {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 14px;
    min-width: 0;
}

.bot-report-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.bot-report-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.bot-report-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 13px;
    word-break: break-word;
    line-height: 1.3;
}

.bot-report-amount {
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 6px;
}

.bot-report-amount-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray);
}

.bot-report-meta {
    font-size: 12px;
    color: var(--gray);
}

.payout-item-clickable {
    cursor: pointer;
    transition: var(--transition);
}

.payout-item-clickable:hover {
    background: var(--gray-light);
    border-radius: 10px;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.vnfunded-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.vnfunded-lightbox.active {
    display: flex;
}

.vnfunded-lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.vnfunded-lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.payout-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ===== VIDEO SIDEBAR LIST ===== */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-dark);
}

.video-list-thumb {
    width: 64px;
    height: 40px;
    min-width: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-list-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
}

/* ===== GRID CARDS ===== */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* ===== BỐ CỤC TRANG CHI TIẾT BROKER / PROP FIRM ===== */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* ===== CARD ===== */
.card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    padding: 18px;
    transition: var(--transition);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.card-actions {
    margin-top: auto;
    padding-top: 12px;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    border-radius: 50%;
    overflow: hidden;
}

.card-logo img {
    max-width: 42px;
    max-height: 42px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-rating {
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.card-rating .score {
    color: var(--gray);
    font-weight: 600;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 10px 0 14px;
    font-size: 12px;
    color: var(--gray);
    text-align: left;
}

.card-features li {
    padding: 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-features li::before {
    content: '✓ ';
    color: var(--secondary);
    font-weight: 700;
}

.card .btn-primary {
    display: block;
    width: 100%;
    font-size: 14px;
    padding: 10px;
}

/* ===== COURSE CARD ===== */
.course-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card .btn-primary {
    margin-top: auto;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.course-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.course-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.course-tag {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin: 8px 0;
}

.tag-mts { background: #e3f2fd; color: #0d47a1; }
.tag-prop { background: #fff3e0; color: #e65100; }
.tag-trading { background: #f3e5f5; color: #6a1b9a; }

.course-lessons {
    font-size: 13px;
    color: var(--gray);
}

/* ===== COUPON CARD ===== */
.coupon-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed var(--secondary);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.coupon-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.coupon-brand {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.coupon-discount {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin: 8px 0;
}

.coupon-code-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
}

.coupon-code {
    background: var(--white);
    padding: 8px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
    border: 1px solid rgba(0,0,0,0.1);
    letter-spacing: 1px;
}

.copy-btn {
    padding: 8px 16px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--secondary-hover);
}

.copy-btn.copied {
    background: #28a745;
}

/* ===== FEATURE BLOCKS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.feature-block {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius);
    background: var(--gray-light);
    transition: var(--transition);
}

.feature-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-block h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature-block p {
    font-size: 14px;
    color: var(--gray);
}

/* ===== REVIEW / RATING ===== */
.rating-stars {
    color: var(--secondary);
    font-size: 20px;
    letter-spacing: 2px;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 4px;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: var(--secondary);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
}

.footer-logo span {
    color: var(--secondary);
}

.footer-about p {
    font-size: 14px;
    margin-top: 8px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--white);
}

.footer h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 12px;
}

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

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

.footer ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

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

.footer-top-views li {
    margin-bottom: 10px;
}

.footer-top-views a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    transition: var(--transition);
}

.footer-top-views a:hover {
    color: var(--white);
}

.footer-top-rank {
    color: var(--secondary);
    font-weight: 700;
    flex-shrink: 0;
}

.footer-top-title {
    flex: 1;
}

.footer-top-count {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    flex-shrink: 0;
}

.related-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--gray-light);
    border-radius: 10px;
    transition: var(--transition);
    color: var(--gray-dark);
}

.related-link-card:hover {
    background: #eef1f5;
    transform: translateY(-2px);
    color: var(--gray-dark);
}

.related-link-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.related-link-card strong {
    display: block;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 2px;
}

.related-link-card small {
    display: block;
    font-size: 12px;
    color: var(--gray);
    font-weight: 400;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detail-layout > div:first-child {
        position: static !important;
    }

    .detail-layout h1 {
        font-size: 22px !important;
    }

    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        flex-direction: column;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 12px 16px;
    }

    .main-nav ul li .sub-menu {
        display: flex;
        position: static;
        box-shadow: none;
        padding: 0 0 0 16px;
        background: transparent;
    }
    
    .hero {
        padding: 50px 0 70px;
    }

    .hero-eyebrow {
        display: none;
    }

    .hero h1 {
        font-size: 26px;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-search {
        flex-direction: column;
        border-radius: var(--radius);
    }
    
    .hero-search input {
        border-radius: var(--radius) var(--radius) 0 0;
    }
    
    .hero-search button {
        border-radius: 0 0 var(--radius) var(--radius);
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 22px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-heading h2 {
        font-size: 20px;
    }
    
    .coupon-code {
        font-size: 14px;
        padding: 6px 12px;
    }
}
/* ===== ĐỊNH DẠNG NỘI DUNG BÀI VIẾT (the_content) ===== */
.entry-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--gray-dark);
}

.entry-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 32px 0 14px;
}

.entry-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 26px 0 12px;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 24px;
    margin: 0 0 20px;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.entry-content li::marker {
    color: var(--secondary);
    font-weight: 700;
}

.entry-content a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--primary);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.entry-content strong {
    color: var(--primary);
    font-weight: 700;
}

.entry-content blockquote {
    border-left: 4px solid var(--secondary);
    padding: 8px 20px;
    margin: 20px 0;
    color: var(--gray);
    font-style: italic;
    background: var(--gray-light);
    border-radius: 0 8px 8px 0;
}

.entry-content hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin: 32px 0;
}

/* Ẩn nhưng vẫn tồn tại cho SEO/screen reader (không hiện với mắt thường) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
