/* =============================================
   LUANAN.NET.VN — Frontend Stylesheet
   Primary: #3500fa | Font: Be Vietnam Pro
   ============================================= */

:root {
    --primary: #463389;
    --primary-hover: #2a1a62;
    --primary-light: rgba(53, 0, 250, 0.08);
    --primary-lighter: rgba(53, 0, 250, 0.04);
    --secondary: #f97316;
    --text: #1a1a2e;
    --text-secondary: #5a5a72;
    --text-muted: #8e8ea0;
    --bg: #ffffff;
    --bg-section: #f7f8fc;
    --border: #e8e8ef;
    --border-light: #f0f0f5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.25s ease;
    --font: 'Be Vietnam Pro', sans-serif;
    --section-spacing: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

.section-header {
    margin-bottom: 35px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

.section-padding {
    padding: var(--section-spacing) 0;
}

/* ── Buttons ── */
.btn {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 6px;
    transition: var(--transition);
}

.rounded-3 {
    border-radius: var(--radius) !important;
}

.bg-vip {
    background-color: var(--secondary) !important;
    color: #fff !important;
}

.border-vip {
    border-color: var(--secondary) !important;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(53, 0, 250, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-link-primary {
    color: var(--primary);
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
}

.btn-link-primary:hover {
    color: var(--primary-hover);
}


/* ===========================================================
   NAVBAR
   =========================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.top-bar {
    background: var(--text);
    padding: 6px 0;
    font-size: 0.82rem;
    color: #ccc;
}

.top-bar a {
    color: #ccc;
    font-weight: 400;
}

.top-bar a:hover {
    color: #fff;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar {
    padding: 12px 0;
    background: var(--bg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand img {
    height: 42px;
    width: auto;
}

.nav-link {
    font-weight: 600;
    color: var(--text) !important;
    padding: 8px 16px !important;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}



.navbar .btn-login {
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: var(--transition);
}

.navbar .btn-login:hover {
    background: var(--primary-hover);
    color: #fff;
    box-shadow: 0 4px 12px rgba(53, 0, 250, 0.3);
}

.navbar .btn-register {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.navbar .btn-register:hover {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(53, 0, 250, 0.2);
}

.navbar .btn-upload {
    background: rgba(249, 115, 22, 0.1);
    color: var(--secondary);
    border-radius: 30px;
    padding: 7px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--secondary);
    transition: var(--transition);
}

.navbar .btn-upload:hover {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Mega Menu for Categories */
.has-mega-menu {
    position: static;
}

.navbar .container {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(10px);
    z-index: 1000;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.mega-menu-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.mega-menu-link {
    font-size: 0.85rem;
    color: #0ea5e9;
    font-weight: 600;
}

.mega-menu-link:hover {
    color: #0284c7;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.mega-menu-item:hover {
    background: var(--bg-section);
}

.mmi-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mmi-content {
    display: flex;
    flex-direction: column;
}

.mmi-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 2px 0;
}

.mmi-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===========================================================
   HERO SECTION
   =========================================================== */
.hero-section {
    background-color: var(--primary);
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.hero-content {
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.25;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-search {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: flex;
    align-items: center;
    max-width: 580px;
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 1rem;
    font-family: var(--font);
    background: transparent;
    color: var(--text);
}

.hero-search input::placeholder {
    color: var(--text-muted);
}

.hero-search .btn {
    padding: 12px 28px;
    border-radius: var(--radius);
    white-space: nowrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

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

.hero-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    display: block;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.hero-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration img {
    max-height: 380px;
}

/* ===========================================================
   CATEGORIES SECTION
   =========================================================== */
.categories-section {
    background: var(--bg);
}

.category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: var(--transition);
    height: 100%;
    color: var(--text);
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    color: var(--primary);
}

.category-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
}

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

.category-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-count {
    font-size: 0.82rem;
    color: var(--text-muted);
}


/* ===========================================================
   DOCUMENTS LIST (dạng list như trang gốc)
   =========================================================== */
.documents-section {
    background: var(--bg-section);
}

/* Tab filter bar */
.doc-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}

.doc-tab {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.doc-tab:hover {
    color: var(--primary);
}

.doc-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.doc-tab .badge {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 6px;
    font-weight: 600;
}

/* Document list item */
.doc-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.doc-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    transition: var(--transition);
}

.doc-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.doc-item.is-vip {
    border-color: var(--secondary);
    background: rgba(249, 115, 22, 0.03);
    /* subtle warm tint */
}

.doc-file-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-right: 8px;
}

.doc-file-icon.icon-word {
    background: rgba(30, 136, 229, 0.1);
}

.doc-file-icon.icon-word .fa-file-word {
    color: #1e88e5;
}

.doc-file-icon.icon-pdf {
    background: rgba(229, 57, 53, 0.1);
}

.doc-file-icon.icon-pdf .fa-file-pdf {
    color: #e53935;
}

.doc-content {
    flex: 1;
    min-width: 0;
}

.doc-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}

.doc-title a {
    color: var(--text);
}

.doc-title a:hover {
    color: var(--primary);
}

.doc-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.doc-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.doc-meta-item i {
    font-size: 0.78rem;
}

.doc-badge-vip {
    color: #f59e0b;
    font-weight: 600;
}

.doc-badge-type {
    text-transform: uppercase;
    font-weight: 600;
}

.doc-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

.doc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.doc-actions .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.doc-actions .btn-download:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(53, 0, 250, 0.3);
    color: #fff;
}

.doc-actions .btn-save {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
}

.doc-actions .btn-save:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.doc-actions .btn-save.active {
    border-color: #ef4444;
    color: #ef4444;
    background-color: #fef2f2;
}

@keyframes favPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.fav-pulse {
    animation: favPulse 0.4s ease-in-out;
}

.load-more-wrap {
    text-align: center;
    margin-top: 30px;
}

/* ===========================================================
   CTA BANNER 
   =========================================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #5e35d4 100%);
    border-radius: var(--radius-xl);
    padding: 40px 50px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta-banner h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.cta-banner p {
    opacity: 0.85;
    margin: 0;
    font-size: 0.95rem;
}

.cta-banner .btn {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: 12px 32px;
    border-radius: var(--radius);
    white-space: nowrap;
}

.cta-banner .btn:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* ===========================================================
   PRICING SECTION
   =========================================================== */
.pricing-section {
    background: #f8f6ff;
    /* Light purple background */
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
    overflow: hidden;
}

.pricing-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.pricing-glow.pg-1 {
    width: 400px;
    height: 400px;
    background: rgba(70, 51, 137, 0.15);
    /* Primary color glow */
    top: -150px;
    left: -150px;
}

.pricing-glow.pg-2 {
    width: 500px;
    height: 500px;
    background: rgba(144, 97, 255, 0.1);
    /* Lighter purple glow */
    bottom: -200px;
    right: -200px;
}

.pricing-header .section-title {
    color: var(--text);
}

.pricing-header .section-desc {
    color: var(--text-secondary);
}

.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

/* Gói Tiết Kiệm — Light primary bg */
.pricing-card.tier-mid {
    background: #f0edf8;
    border-color: #d6cef0;
}

.pricing-card.tier-mid:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(70, 51, 137, 0.12);
}

.pricing-card.tier-mid .pricing-icon {
    background: rgba(70, 51, 137, 0.12);
}

.pricing-card.tier-mid .pricing-features li i.fa-check {
    color: var(--primary);
}

/* VIP — Dark primary bg */
.pricing-card.featured {
    background: linear-gradient(145deg, #2a1a62, #463389);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 4px 25px rgba(70, 51, 137, 0.25);
}

.pricing-card.featured:hover {
    box-shadow: 0 12px 40px rgba(70, 51, 137, 0.35);
    transform: translateY(-8px);
}

.pricing-card.featured .pricing-name {
    color: #fff;
}

.pricing-card.featured .pricing-desc {
    color: rgba(255,255,255,0.55);
}

.pricing-card.featured .pricing-amount {
    color: #f97316;
}

.pricing-card.featured .pricing-amount span {
    color: rgba(255,255,255,0.4);
}

.pricing-card.featured .pricing-features li {
    color: rgba(255,255,255,0.85);
    border-bottom-color: rgba(255,255,255,0.08);
}

.pricing-card.featured .pricing-features li i.fa-check {
    color: #f97316;
}

.pricing-card.featured .pricing-features li.disabled {
    color: rgba(255,255,255,0.3);
}

.pricing-card.featured .pricing-features li.disabled i {
    color: rgba(255,255,255,0.25);
}

.pricing-badge {
    position: absolute;
    top: 16px;
    right: -32px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: 4px 40px;
    transform: rotate(45deg);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.pricing-card.featured .pricing-icon {
    background: rgba(255,255,255,0.12);
}

.pricing-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.pricing-card.featured .pricing-amount {
    border-bottom-color: rgba(255,255,255,0.1);
}

.pricing-amount span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: #22c55e;
    margin-top: 3px;
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-features li.disabled i {
    color: var(--text-muted);
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

.pricing-card .btn-featured {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.pricing-card .btn-featured:hover {
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #fff;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.pricing-card.featured .btn-outline-primary {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.pricing-card.featured .btn-outline-primary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}


/* ===========================================================
   BLOG SECTION
   =========================================================== */
.blog-section {
    background: var(--bg);
}

.blog-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-list-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.blog-thumb-small {
    flex-shrink: 0;
    width: 140px;
    height: 95px;
    border-radius: 8px;
    overflow: hidden;
}

.blog-page-wrapper .blog-thumb-small {
    width: 220px;
    height: 140px;
    /* Blog list page: larger and fixed aspect ratio */
}

.blog-thumb-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    flex: 1;
}

.blog-list-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-color: var(--primary-light);
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a {
    color: var(--text);
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================================================
   BLOG & DOCUMENT SINGLE CONTENT
   =========================================================== */
.blog-single-content {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.blog-single-content>*:first-child {
    margin-top: 0 !important;
}

.blog-single-content h2,
.blog-single-content h3,
.blog-single-content h4 {
    font-weight: 700;
    color: var(--text);
    margin-top: 1.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.blog-single-content h2 {
    font-size: 1.5rem;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.blog-single-content h3 {
    font-size: 1.25rem;
}

.blog-single-content p {
    margin-bottom: 1rem;
    color: #444;
}

.blog-single-content ul,
.blog-single-content ol {
    padding-left: 0;
    margin-bottom: 1.5rem;
    list-style: none;
}

.blog-single-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: #444;
}

.blog-single-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.blog-single-content blockquote {
    font-style: italic;
    background: #fdfdfd;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    margin: 1.5rem 0;
    color: #555;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.blog-single-content blockquote::before {
    display: none;
}


/* ===========================================================
   DOCUMENT DETAIL
   =========================================================== */
.document-toc {
    background-color: #fcfcfc;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #f0f0f0;
    margin-top: 1.5rem;
    background-color: #fafafa;
}

.blog-single-content .document-toc ul {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.blog-single-content .document-toc ul li {
    padding-left: 1.5rem;
    position: relative;
    color: #444;
    font-size: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
    margin-bottom: 0;
    transition: all 0.2s ease;
}

.blog-single-content .document-toc ul li:hover {
    color: var(--primary);
    padding-left: 1.75rem;
}

.blog-single-content .document-toc ul li:last-child {
    border-bottom: none;
}

.blog-single-content .document-toc ul li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

.blog-single-content .document-toc strong {
    font-family: var(--font-heading);
    color: #222;
    font-size: 1.1rem;
    letter-spacing: -0.2px;
}

.document-page {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.document-page:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* ===========================================================
   SIDEBAR WIDGETS
   =========================================================== */
.widget {
    position: relative;
    border-radius: var(--radius);
}

.widget-card {
    background: #fff;
    padding: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.widget-cat-list li {
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.widget-cat-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget-cat-list li a {
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.widget-cat-list li a:hover {
    color: var(--primary) !important;
    transform: translateX(4px);
}

.widget-cat-list li a .badge {
    background-color: #f3f4f6 !important;
    font-size: 0.85rem;
    font-weight: 600;
}

.related-posts a:hover h6 {
    color: var(--primary);
}

.related-posts img {
    width: 80px !important;
    height: 60px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

/* Nâng cấp Hội viên Widget */
.widget-upgrade {
    background: linear-gradient(135deg, var(--primary) 0%, #6b53c7 100%);
    padding: 35px 25px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px var(--primary-light);
}

.widget-upgrade::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.widget-upgrade::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.widget-upgrade .upgrade-icon .icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.widget-upgrade .upgrade-btn {
    background: var(--secondary);
    border: none;
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.widget-upgrade .upgrade-btn:hover {
    background: #e66610;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}




/* ===========================================================
   PAGINATION
   =========================================================== */
.custom-pagination {
    gap: 8px;
}

.custom-pagination .page-item .page-link {
    border-radius: 8px;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-weight: 500;
    background: var(--bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.custom-pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.custom-pagination .page-item .page-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.custom-pagination .page-item.disabled .page-link {
    background: #f1f5f9;
    color: #94a3b8;
    box-shadow: none;
    pointer-events: none;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
    background: #0f0f1a;
    color: #c4c4d4;
    padding: 60px 0 0;
}

.footer-brand img {
    height: 48px;
    margin-bottom: 16px;
}

.footer-about {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #9a9ab0;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a9ab0;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9a9ab0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: #9a9ab0;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--primary);
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    color: #6a6a80;
    font-size: 0.85rem;
}


/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 991px) {
    :root {
        --section-spacing: 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-illustration {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .nav-item.dropdown .dropdown-menu {
        min-width: 100%;
    }

    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    :root {
        --section-spacing: 50px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .hero-section {
        padding: 50px 0 60px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-search {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }

    .hero-search input {
        padding: 12px 16px;
    }

    .hero-search .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat-item {
        min-width: 80px;
    }

    .doc-item {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .doc-number {
        display: none;
    }

    .doc-actions {
        width: 100%;
    }

    .doc-actions .btn-download {
        flex: 1;
        justify-content: center;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
    }

    .top-bar {
        display: none;
    }

    .pricing-card {
        padding: 28px 20px;
    }
}

/* ── Hero Graphics ── */
.hero-graphics {
    position: relative;
    height: 450px;
    width: 100%;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(100px);
    opacity: 0.5;
    border-radius: 50%;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 2;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.fc-1 {
    top: 15%;
    left: 8%;
    width: 200px;
    animation-delay: 0s;
}

.fc-2 {
    top: 5%;
    right: 5%;
    width: 180px;
    animation-delay: -2s;
}

.fc-3 {
    top: 45%;
    left: 20%;
    width: 320px;
    animation-delay: -4s;
    box-shadow: 0 25px 50px rgba(70, 51, 137, 0.2);
    z-index: 3;
}

.fc-icon {
    font-size: 32px;
    margin-bottom: 12px;
    background: var(--primary-lighter);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.fc-lines .line {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    margin-bottom: 8px;
}

.fc-lines .line:last-child {
    margin-bottom: 0;
}

.fc-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 12px;
}

.fc-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.fc-meta {
    font-size: 12px;
    color: var(--text-muted);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ===========================================================
   AUTH MODAL
   =========================================================== */
.auth-modal .modal-content {
    border-radius: 24px !important;
    overflow: hidden;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background-color: var(--bg-section);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    opacity: 0.7;
    transition: var(--transition);
}

.modal-close-btn:hover {
    opacity: 1;
    background-color: #e2e8f0;
}

.auth-tabs {
    background: var(--bg-section);
    padding: 6px;
    border-radius: 100px;
    display: flex;
    margin-bottom: 24px;
}

.auth-tabs .nav-item {
    flex: 1;
}

.auth-tabs .nav-link {
    width: 100%;
    text-align: center;
    border-radius: 100px;
    color: var(--text-muted) !important;
    font-weight: 600;
    padding: 10px 0;
    border: none;
    background: transparent;
    transition: var(--transition);
}

.auth-tabs .nav-link.active {
    background: var(--bg) !important;
    color: var(--text) !important;
    box-shadow: var(--shadow-sm);
}

.auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    background: var(--primary-light);
    color: var(--primary);
}

.auth-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.btn-google {
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 8px;
    padding: 8px 16px;
    transition: var(--transition);
}

.btn-google:hover {
    background: var(--bg-section);
    border-color: #cbd5e1;
}

.google-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.google-user img {
    width: 32px;
    height: 32px;
}

.google-user-info {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.google-user-info .g-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.google-user-info .g-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.g-logo {
    width: 24px;
    height: 24px;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background: var(--bg);
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon>i:first-child {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 5;
}

.input-with-icon .form-control {
    padding-left: 44px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 0.95rem;
}

.input-with-icon .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-with-icon.right-icon .form-control {
    padding-right: 44px;
}

.input-with-icon .show-pwd {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 5;
}

.input-with-icon .show-pwd:hover {
    color: var(--text);
}

.btn-auth {
    height: 48px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    background: var(--primary);
    border: none;
    color: #fff;
    transition: var(--transition);
}

.btn-auth:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-light);
    color: #fff;
}

.otp-input {
    width: 48px;
    height: 56px;
    font-size: 1.5rem;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

/* ===========================================================
   PAGE HEADER
   =========================================================== */
.page-header {
    background-color: var(--primary);
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 270px;
    display: flex;
    align-items: center;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.page-header .page-title {
    color: white;
    font-weight: 700;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.5) !important;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ===========================================================
   ACCOUNT PAGE
   =========================================================== */
.account-sidebar .nav-link {
    color: var(--text-secondary);
    padding: 12px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.account-sidebar .nav-link:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

.account-sidebar .nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left: 4px solid var(--primary);
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.account-sidebar .nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.subscription-status {
    background: #fff;
    border: 1px solid #edf2f7 !important;
}

.ls-1 {
    letter-spacing: 1px;
}

.bg-vip {
    background-color: var(--secondary) !important;
    color: #fff !important;
    font-weight: 600;
}

/* Custom Form Controls */
.form-control, .form-select {
    border: 1px solid #e2e8f0;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border-radius: 10px;
    background-color: #f8fafc;
    transition: all 0.25s ease;
    color: #1e293b;
}

.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: none;
}

.form-control[readonly] {
    background-color: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-label {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

/* Input Group Custom */
.input-group-custom .input-group-text {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #94a3b8;
    padding: 0.7rem 0.85rem;
    transition: all 0.25s ease;
}

.input-group-custom .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-group-custom:focus-within .input-group-text {
    border-color: var(--primary);
    color: var(--primary);
    background-color: #fff;
}

.input-group-custom:focus-within .form-control {
    border-color: var(--primary);
}

/* Order Card */
.order-card {
    background: #fff;
    border-color: #e2e8f0 !important;
    transition: all 0.25s ease;
}

.order-card:hover {
    border-color: var(--primary-light) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.06);
}

/* Download Item */
.download-item {
    background: #fff;
    border-color: #e2e8f0 !important;
    transition: all 0.25s ease;
}

.download-item:hover {
    border-color: var(--primary-light) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.06);
}

.download-icon.icon-pdf {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.download-icon.icon-word {
    background: rgba(30, 136, 229, 0.08);
    color: #1e88e5;
}

/* Document Manage Item */
.doc-manage-item {
    background: #fff;
    border-color: #e2e8f0 !important;
    transition: all 0.25s ease;
}

.doc-manage-item:hover {
    border-color: var(--primary-light) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.06);
}

/* Avatar Upload */
.avatar-upload-section {
    border: 1px dashed #cbd5e1;
}

/* Min width helper */
.min-width-0 {
    min-width: 0;
}

/* Custom Table Styles */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #64748b;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
    padding: 0.875rem 1.25rem;
}

.table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

.table tr:last-child td {
    border-bottom: none;
}

/* Badge Refinement */
.badge {
    font-weight: 600;
    padding: 0.45em 0.85em;
}

/* ===========================================================
   ABOUT PAGE
   =========================================================== */
.about-stat-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.about-stat-box:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(70, 51, 137, 0.08);
}

.about-stat-box h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

.about-stat-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.about-image-wrap {
    position: relative;
}

.about-image-deco {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(70, 51, 137, 0.1), rgba(249, 115, 22, 0.08));
    z-index: -1;
}

.about-value-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

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

.about-value-card__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.about-value-card__title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.about-value-card__desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.about-feature {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    height: 100%;
}

.about-feature:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(70, 51, 137, 0.08);
}

.about-feature__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.about-feature__title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}

.about-feature__desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===========================================================
   CONTACT PAGE
   =========================================================== */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-info-item__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-social-btn:hover {
    background: var(--primary);
    color: #fff;
}

.contact-social-btn--zalo {
    font-size: 0.7rem;
    font-weight: 700;
    width: auto;
    padding: 0 14px;
    border-radius: 20px;
}

.contact-form-wrap {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
}

@media (max-width: 991px) {
    .contact-form-wrap {
        padding: 24px;
    }
}

/* ===========================================================
   FAQ PAGE
   =========================================================== */
.faq-search {
    position: relative;
}

.faq-search__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    z-index: 1;
}

.faq-search__input {
    padding-left: 48px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 0.95rem;
}

.faq-search__input:focus {
    border-color: var(--primary);
}

.faq-category__title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

.faq-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    padding: 16px 20px;
    background: var(--bg);
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
}

.faq-accordion .accordion-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 0 20px 16px;
}

.faq-cta {
    background: var(--primary-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-top: 32px;
}

.faq-cta__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

/* ===========================================================
   POLICY / TERMS PAGES
   =========================================================== */
.policy-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

@media (max-width: 767px) {
    .policy-content {
        padding: 24px;
    }
}

.policy-update-info {
    background: var(--primary-light);
    color: var(--primary);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin-bottom: 32px;
}

.policy-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.policy-section {
    margin-bottom: 32px;
}

.policy-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.policy-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

.policy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.92rem;
}

.policy-section ul {
    padding-left: 20px;
    margin-top: 8px;
}

.policy-section ul li {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 4px;
}

.policy-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.policy-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 32px;
}

.policy-cta > i {
    font-size: 1.8rem;
    color: var(--primary);
    min-width: 40px;
    text-align: center;
}

/* ===========================================================
   EXAM SCORES LOOKUP PAGE
   =========================================================== */

/* Breadcrumb */
.exam-breadcrumb {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}

.exam-breadcrumb .breadcrumb {
    font-size: 0.85rem;
}

.exam-breadcrumb .breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.exam-breadcrumb .breadcrumb-item.active {
    color: #e53e3e;
    font-weight: 600;
}

/* Hero */
.exam-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 60px 0 50px;
}

.exam-hero__inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.exam-hero__badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.exam-hero__title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a202c;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.exam-hero__title span {
    color: #e53e3e;
}

.exam-hero__desc {
    color: #64748b;
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* Search Box */
.exam-search-form {
    max-width: 580px;
    margin: 0 auto 16px;
}

.exam-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 60px;
    padding: 6px 6px 6px 20px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.exam-search-box:focus-within {
    border-color: #e53e3e;
    box-shadow: 0 4px 25px rgba(229, 62, 62, 0.12);
}

.exam-search-box__icon {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.exam-search-box__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text);
    background: transparent;
    padding: 10px 0;
}

.exam-search-box__input::placeholder {
    color: #a0aec0;
}

.exam-search-box__btn {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.exam-search-box__btn:hover {
    background: linear-gradient(135deg, #c53030, #9b2c2c);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.exam-hero__note {
    color: #94a3b8;
    font-size: 0.82rem;
    text-align: center;
}

.exam-hero__note i {
    color: #e53e3e;
}

/* Features */
.exam-features {
    padding: 50px 0;
}

.exam-feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

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

.exam-feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.2rem;
}

.exam-feature-card__icon--orange {
    background: #fff7ed;
    color: #ea580c;
}

.exam-feature-card__icon--blue {
    background: #eff6ff;
    color: #2563eb;
}

.exam-feature-card__icon--green {
    background: #ecfdf5;
    color: #059669;
}

.exam-feature-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.exam-feature-card__desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Guide */
.exam-guide {
    padding: 0 0 60px;
}

.exam-guide-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
}

.exam-guide-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
}

.exam-guide-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
}

.exam-guide-steps {
    padding-left: 20px;
    margin: 12px 0;
}

.exam-guide-steps li {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 6px;
}

/* Result */
.exam-result-section {
    padding: 0 0 40px;
}

.exam-result-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.exam-result-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.exam-result-header__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.exam-result-header__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.exam-result-header__sbd {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0;
}

.exam-result-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: var(--radius);
    padding: 14px 20px;
    font-size: 0.9rem;
}

.exam-result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
}

.exam-result-table th {
    background: #f8fafc;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
}

.exam-result-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
    color: var(--text);
}

.exam-result-table tr:last-child td {
    border-bottom: none;
}

.exam-result-table .score-highlight {
    font-weight: 800;
    color: #e53e3e;
    font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 767px) {
    .exam-hero__title {
        font-size: 1.75rem;
    }

    .exam-search-box {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 12px;
        gap: 10px;
    }

    .exam-search-box__icon {
        display: none;
    }

    .exam-search-box__input {
        width: 100%;
        text-align: center;
    }

    .exam-search-box__btn {
        width: 100%;
        border-radius: var(--radius);
    }

    .exam-guide-card {
        padding: 24px;
    }
}

/* Smooth scale-up animation for all frontend modals */
.modal.fade .modal-content {
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.modal.show .modal-content {
    transform: scale(1) !important;
}

#vipUpgradeModal .modal-content {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}