/* ============================================
   THƯ VIỆN LUẬN ÁN - CSS STYLE
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --primary-dark: #0f2440;
    --secondary: #0ea5e9;
    --secondary-light: #38bdf8;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-body: #f0f4f8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-family: 'Be Vietnam Pro', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #1a3a5c 0%, #0ea5e9 100%);
    --gradient-hero: linear-gradient(135deg, #0f2440 0%, #1a3a5c 50%, #164e63 100%);
    --gradient-card: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(26, 58, 92, 0.05) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.top-bar {
    background: var(--primary-dark);
    padding: 6px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

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

.top-bar .top-links a {
    margin-left: 20px;
}

.top-bar .top-links a i {
    margin-right: 4px;
}

/* Main Header */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow-lg);
}

.main-header .navbar {
    padding: 0;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.logo-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

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

.logo-desc {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.author-avatar img {
    border-radius: 50%;
}

.custom-logo-link {
    display: block;
    padding: 8px 0;
}

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

/* Navbar Links */
.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 14.5px;
    padding: 18px 16px !important;
    position: relative;
    transition: var(--transition);
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px 3px 0 0;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

/* Dropdown (dùng cho các menu thường) */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 260px;
    animation: dropdownFade 0.25s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--gradient-card);
    color: var(--secondary);
}

.dropdown-item .badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 20px;
}

/* ============================================
   MEGA MENU
   ============================================ */
.mega-menu-item {
    position: static;
}

/* Toggle link */
.mega-toggle {
    cursor: pointer;
    user-select: none;
}

.mega-arrow {
    font-size: 11px;
    transition: transform 0.25s ease;
    display: inline-block;
    vertical-align: middle;
}

.mega-menu-item:hover .mega-arrow,
.mega-menu-item.open .mega-arrow {
    transform: rotate(180deg);
}

/* Dropdown panel */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    transition-delay: 0.08s;
    z-index: 999;
    pointer-events: none;
}

/* Hover trigger (desktop) */
.mega-menu-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

/* Keep support for .open class (mobile JS toggle) */
.mega-menu-item.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

/* Inner container */
.mega-menu-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 24px 28px;
}

/* Header row */
.mega-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.mega-menu-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.3px;
}

.mega-view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

.mega-view-all:hover {
    color: var(--primary);
}

.mega-view-all i {
    transition: var(--transition);
}

.mega-view-all:hover i {
    transform: translateX(3px);
}

/* 3-column grid */
.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

/* Each category item */
.mega-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.mega-item:hover {
    background: var(--bg-light);
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.mega-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: var(--transition);
}

.mega-item:hover .mega-item-icon {
    transform: scale(1.08);
}

.mega-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mega-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}

.mega-item:hover .mega-item-name {
    color: var(--secondary);
}

.mega-item-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Overlay backdrop — shown when hovering mega menu item */
.mega-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 36, 64, 0.3);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    pointer-events: none;
}

.mega-menu-item:hover~.mega-backdrop,
.mega-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile: mega menu stacked */
@media (max-width: 991.98px) {
    .mega-menu {
        position: static;
        box-shadow: none;
        border-radius: var(--radius-md);
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        display: none;
        border: 1px solid var(--border-color);
        margin: 5px 0 10px;
        background: #fdfdfd;
        max-height: 450px;
        overflow-y: auto;
    }

    .mega-menu-item.open .mega-menu {
        display: block;
    }

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

    .mega-menu-inner {
        padding: 12px;
    }

    .mega-menu-header {
        padding: 0 8px 10px;
        margin-bottom: 12px;
    }

    .mega-menu-label {
        font-size: 13px;
    }

    .mega-view-all {
        font-size: 12px;
    }

    .mega-backdrop {
        display: none;
    }
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login,
.btn-account {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-login:hover,
.btn-account:hover {
    background: var(--primary);
    color: #fff;
}

.btn-register {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
    color: #fff;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: var(--gradient-hero);
    padding: 70px 0 80px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23f0f4f8' d='M0,64L48,58.7C96,53,192,43,288,42.7C384,43,480,53,576,53.3C672,53,768,43,864,37.3C960,32,1056,32,1152,37.3C1248,43,1344,53,1392,58.7L1440,64L1440,80L0,80Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease;
}

.hero-badge i {
    color: var(--accent);
}

.hero-title {
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.25;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--secondary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Search Box */
.hero-search {
    max-width: 680px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.3s both;
    position: relative;
    z-index: 10000;
}

.search-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 60px;
    padding: 6px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.search-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.search-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    padding: 14px 16px;
    width: calc(100% - 20px);
    font-family: var(--font-family);
}

.search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-wrapper .btn-search {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary);
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.search-wrapper .btn-search:hover {
    background: var(--secondary-light);
    transform: translateY(-50%) scale(1.02);
}

.search-wrapper .btn-search i {
    margin-right: 6px;
}

/* Search Autocomplete */
.search-autocomplete {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    z-index: 9999;
    max-height: 420px;
    overflow-y: auto;
    display: none;
    border: 1px solid rgba(0, 0, 0, .06);
}

.search-autocomplete.active {
    display: block;
}

.search-autocomplete .ac-header {
    padding: 10px 16px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.search-autocomplete .ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #1e293b;
    transition: background .15s;
    border-bottom: 1px solid #f8fafc;
    text-align: left;
}

.search-autocomplete .ac-item:hover,
.search-autocomplete .ac-item.ac-active {
    background: #f0f7ff;
}

.search-autocomplete .ac-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fef2f2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.search-autocomplete .ac-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.search-autocomplete .ac-title {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    word-break: break-word;
    text-align: left;
}

.search-autocomplete .ac-title mark {
    background: #fef08a;
    color: inherit;
    font-weight: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

.search-autocomplete .ac-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-autocomplete .ac-footer {
    padding: 10px 16px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.search-autocomplete .ac-footer a {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary, #1a3a5c);
    text-decoration: none;
}

.search-autocomplete .ac-footer a:hover {
    text-decoration: underline;
}

.search-autocomplete .ac-empty {
    padding: 24px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.search-autocomplete .ac-loading {
    padding: 20px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 44px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

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

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    display: block;
    line-height: 1.2;
}

.stat-number .plus {
    color: var(--accent);
    font-size: 24px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-top: 4px;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
    padding: 60px 0;
}

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

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.section-title i {
    color: var(--secondary);
    margin-right: 10px;
    font-size: 22px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
}

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

.section-link i {
    margin-left: 4px;
    transition: var(--transition);
}

.section-link:hover i {
    transform: translateX(4px);
}

/* Category Cards */
.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 165, 233, 0.3);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.08);
}

.category-info h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.3;
}

.category-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Category icon colors */
.cat-blue {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
}

.cat-green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.cat-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.cat-orange {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.cat-red {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.cat-teal {
    background: rgba(20, 184, 166, 0.12);
    color: #14b8a6;
}

.cat-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.cat-pink {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
}

.cat-cyan {
    background: rgba(6, 182, 212, 0.12);
    color: #06b6d4;
}

/* ============================================
   DOCUMENT TYPE BADGES (Sidebar)
   ============================================ */
.type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.type-badge:hover,
.type-badge.active {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(14, 165, 233, 0.06);
}

.type-badge .count {
    background: var(--bg-body);
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-muted);
}

.type-badge.active .count {
    background: rgba(14, 165, 233, 0.12);
    color: var(--secondary);
}

/* ============================================
   THESIS LIST ITEMS
   ============================================ */
.thesis-section {
    padding: 0 0 60px;
}

.thesis-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thesis-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.thesis-item:hover {
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.thesis-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(26, 58, 92, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

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

.thesis-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thesis-item-title a {
    color: inherit;
}

.thesis-item-title a:hover {
    color: var(--secondary);
}

.thesis-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.thesis-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.thesis-meta-tag i {
    font-size: 11px;
    width: 14px;
    text-align: center;
}

.thesis-meta-tag.category-tag {
    background: rgba(14, 165, 233, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    color: var(--secondary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

a.thesis-meta-tag.category-tag:hover {
    background: rgba(14, 165, 233, 0.18);
    color: var(--secondary);
    text-decoration: none;
}

.thesis-meta-tag.type-tag {
    background: rgba(139, 92, 246, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    color: #8b5cf6;
    font-weight: 500;
}

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

.btn-view-desc {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    color: var(--secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font-family);
}

.btn-view-desc:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--secondary);
}

.btn-download {
    background: var(--secondary);
    border: none;
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font-family);
}

.btn-download:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-download i {
    margin-right: 5px;
}

/* Free/Paid badges */
.badge-free {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.badge-premium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-widget {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-body);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: var(--secondary);
    font-size: 14px;
}

/* Category List in Sidebar */
.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-list li {
    border-bottom: 1px solid var(--border-light);
}

.sidebar-category-list li:last-child {
    border-bottom: none;
}

.sidebar-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--transition);
}

.sidebar-category-list a:hover {
    color: var(--secondary);
    padding-left: 8px;
}

.sidebar-category-list .cat-count {
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-body);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* Member CTA Widget */
.member-cta {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.member-cta::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.member-cta::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.member-cta .cta-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    position: relative;
    z-index: 1;
}

.member-cta h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.member-cta p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.member-cta .btn-cta {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 1;
    font-family: var(--font-family);
}

.member-cta .btn-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
    color: #fff;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

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

.pricing-card.featured {
    border-color: var(--secondary);
    box-shadow: 0 0 0 1px var(--secondary), var(--shadow-lg);
}

/* Custom Added Pricing Badges & Gold Styles */
.pricing-card .disabled {
    color: #adb5bd;
}

.pricing-card .disabled i {
    color: #ef4444;
}

.pricing-card.pricing-vip {
    border: 2px solid #f59e0b;
    box-shadow: 0 0 0 1px #f59e0b, var(--shadow-lg);
}

.vip-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 4px;
    font-weight: 700;
}

.pricing-badge-top {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 16px;
    display: inline-block;
}

.pricing-badge-gold {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.btn-pricing-gold {
    display: block;
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    margin-top: 20px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    transition: all .2s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, .3);
}

.btn-pricing-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, .4);
    color: #fff;
}

.pricing-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
}

.pricing-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.pricing-card .price small {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .price-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

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

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

.pricing-features li i {
    color: var(--success);
    font-size: 13px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.pricing-features li i.fa-xmark {
    color: var(--text-light);
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-family);
    text-decoration: none;
}

.btn-pricing-outline {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

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

.btn-pricing-filled {
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-pricing-filled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
    color: #fff;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section {
    padding: 60px 0;
}

.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.2);
}

.blog-card-tag {
    display: inline-block;
    background: rgba(14, 165, 233, 0.08);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 14px;
}

.blog-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card h5 a {
    color: inherit;
}

.blog-card h5 a:hover {
    color: var(--secondary);
}

.blog-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.blog-card-date {
    font-size: 12px;
    color: var(--text-light);
}

.blog-card-date i {
    margin-right: 4px;
}

.blog-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
}

.blog-card-link i {
    margin-left: 4px;
    transition: var(--transition);
}

.blog-card-link:hover i {
    transform: translateX(3px);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 56px 0 0;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
}

.footer-logo .logo-name {
    color: #fff;
    font-size: 18px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-links a i {
    font-size: 10px;
    width: 14px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}

.footer-contact li i {
    color: var(--secondary);
    margin-top: 4px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

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

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrapper {
    padding-top: 24px;
}

.pagination .page-link {
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    margin: 0 3px;
    border-radius: var(--radius-sm) !important;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: var(--secondary);
    color: var(--secondary);
}

.pagination .page-item.active .page-link {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* WordPress paginate_links() output */
.pagination-wrapper nav ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.pagination-wrapper nav ul.page-numbers li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-wrapper nav ul.page-numbers li a,
.pagination-wrapper nav ul.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark, #1a1a1a);
    background: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.pagination-wrapper nav ul.page-numbers li a:hover {
    background: rgba(26, 58, 92, 0.06);
    border-color: var(--secondary, #1a3a5c);
    color: var(--secondary, #1a3a5c);
}

.pagination-wrapper nav ul.page-numbers li span.current {
    background: var(--secondary, #1a3a5c);
    border-color: var(--secondary, #1a3a5c);
    color: #fff;
    box-shadow: 0 3px 10px rgba(26, 58, 92, 0.25);
}

.pagination-wrapper nav ul.page-numbers li .prev,
.pagination-wrapper nav ul.page-numbers li .next {
    font-size: 12px;
    padding: 0 14px;
}

.pagination-wrapper nav ul.page-numbers li span.dots {
    border: none;
    background: none;
    color: #94a3b8;
    min-width: 30px;
    cursor: default;
}

/* WooCommerce pagination fallback */
.woocommerce-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark, #1a1a1a);
    background: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
}

.woocommerce-pagination .page-numbers li a:hover {
    background: rgba(26, 58, 92, 0.06);
    border-color: var(--secondary, #1a3a5c);
    color: var(--secondary, #1a3a5c);
}

.woocommerce-pagination .page-numbers li span.current {
    background: var(--secondary, #1a3a5c);
    border-color: var(--secondary, #1a3a5c);
    color: #fff;
    box-shadow: 0 3px 10px rgba(26, 58, 92, 0.25);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(26, 58, 92, 0.35);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback: show content if JS fails */
.no-js .animate-on-scroll {
    opacity: 1;
    transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 991.98px) {
    .top-bar {
        display: none;
    }

    .navbar-nav .nav-link {
        padding: 12px 16px !important;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .header-actions {
        margin-top: 12px;
        padding-bottom: 16px;
    }

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

    .hero-title {
        font-size: 30px;
    }

    .hero-stats {
        gap: 28px;
    }

    .stat-number {
        font-size: 26px;
    }

    .thesis-item {
        flex-direction: column;
        gap: 12px;
    }

    .thesis-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .sidebar-widget {
        margin-top: 24px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 26px;
    }

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

    .search-wrapper input {
        width: 100%;
        font-size: 14px;
        padding: 12px 16px;
    }

    .search-wrapper .btn-search {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50px;
        margin-top: 0;
    }

    .search-wrapper .btn-search .btn-text {
        display: none;
    }

    .search-wrapper .btn-search i {
        margin-right: 0;
        font-size: 16px;
    }

    .search-wrapper {
        border-radius: 60px;
        display: block;
        padding: 6px 56px 6px 20px;
    }

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

    .stat-item {
        width: calc(50% - 10px);
    }

    .section-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        text-align: left;
    }

    .thesis-item-icon {
        display: flex;
        width: 44px;
        height: auto;
        align-self: stretch;
        border-radius: 8px;
        background: #f8fafc;
        border: 1px solid #eef2f6;
    }

    .pricing-card {
        margin-bottom: 16px;
    }

    .footer-col {
        margin-bottom: 32px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 22px;
    }

    .thesis-item {
        padding: 5px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .thesis-item-content {
        flex: 1;
        width: calc(100% - 60px);
    }

    .thesis-item-title {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .thesis-item-actions {
        display: none !important;
    }

    .btn-save-card {
        width: 32px;
        height: 32px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .btn-save-card.is-saved {
        background: #ef4444;
        color: #fff;
        border-color: #ef4444;
    }

    .btn-save-card.is-saved i {
        color: #fff !important;
    }

    .thesis-item-meta {
        display: flex;
        align-items: center;
        width: 100%;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: #c1c7cf;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a7af;
}

/* ============================================
   AUTH MODAL POPUP
   ============================================ */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 32px 28px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    transform: scale(0.94) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal-overlay.active .auth-modal {
    transform: scale(1) translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.auth-modal-close:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.amodal-tabs {
    display: flex;
    background: var(--bg-light);
    border-radius: 30px;
    padding: 4px;
    position: relative;
    margin-bottom: 24px;
}

.amodal-tab {
    flex: 1;
    padding: 9px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: none;
    border-radius: 26px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.25s;
    position: relative;
    z-index: 1;
    font-family: var(--font-base);
}

.amodal-tab.active {
    color: var(--primary);
}

.amodal-tab-bar {
    position: absolute;
    top: 4px;
    bottom: 4px;
    background: #fff;
    border-radius: 26px;
    transition: left 0.3s cubic-bezier(.4, 0, .2, 1), width 0.3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.amodal-panel {
    display: none;
}

.amodal-panel.active {
    display: block;
    animation: amodalIn 0.3s ease;
}

@keyframes amodalIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amodal-header {
    text-align: center;
    margin-bottom: 20px;
}

.amodal-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
}

.amodal-icon.login-icon {
    background: linear-gradient(135deg, rgba(15, 36, 64, 0.08), rgba(14, 165, 233, 0.12));
    color: var(--secondary);
}

.amodal-icon.reg-icon {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(34, 197, 94, 0.1));
    color: #22c55e;
}

.amodal-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.amodal-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.amodal-social {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.amodal-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-base);
    color: var(--text-dark);
    white-space: nowrap;
}

.amodal-social-btn:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.amodal-social-btn.facebook {
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.3);
}

.amodal-social-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.04);
}

.amodal-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.amodal-divider::before,
.amodal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.amodal-divider span {
    font-size: 12px;
    color: var(--text-muted);
}

.amodal-form {
    width: 100%;
}

.amodal-field {
    margin-bottom: 16px;
}

.amodal-field>label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.amodal-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.amodal-label-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.amodal-forgot {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.amodal-forgot:hover {
    color: var(--primary);
}

.amodal-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.amodal-input-wrap.focused {
    border-color: var(--secondary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.amodal-input-wrap>i {
    position: absolute;
    left: 13px;
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
    transition: color 0.2s;
}

.amodal-input-wrap.focused>i {
    color: var(--secondary);
}

.amodal-input-wrap input {
    width: 100%;
    padding: 10px 40px 10px 38px;
    border: none;
    background: transparent;
    font-family: var(--font-base);
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    border-radius: var(--radius-md);
}

.amodal-input-wrap input::placeholder {
    color: #c5cdd8;
}

.amodal-eye {
    position: absolute;
    right: 11px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    transition: color 0.2s;
}

.amodal-eye:hover {
    color: var(--secondary);
}

.amodal-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.astrength-bar {
    flex: 1;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.astrength-bar span {
    display: block;
    height: 100%;
    border-radius: 2px;
    transition: width 0.35s ease, background 0.35s ease;
    width: 0;
}

#aStrengthLabel {
    font-size: 12px;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

.amodal-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    cursor: pointer;
    font-family: var(--font-base);
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(15, 36, 64, 0.22);
    margin-bottom: 16px;
}

.amodal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 36, 64, 0.28);
}

.amodal-submit:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.amodal-submit i {
    transition: transform 0.25s ease;
}

.amodal-submit:hover i {
    transform: translateX(4px);
}

.amodal-submit-otp {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
}

.amodal-submit-otp:hover {
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.28) !important;
}

.amodal-error {
    background: #fef2f2;
    color: #dc2626;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-bottom: 10px;
    text-align: center;
    animation: authShake 0.4s ease;
}

@keyframes authShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

.amodal-alt {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.amodal-alt a {
    color: var(--secondary);
    font-weight: 700;
    text-decoration: none;
}

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

.auth-modal::-webkit-scrollbar {
    width: 5px;
}

.auth-modal::-webkit-scrollbar-thumb {
    background: #dde3ee;
    border-radius: 3px;
}

@media (max-width: 480px) {
    .auth-modal {
        padding: 24px 20px 20px;
    }

    .amodal-social {
        flex-direction: column;
    }
}

/* ================================================================
   TRANG GIỚI THIỆU – gioi-thieu.css
   ================================================================ */

/* ── Page Hero ── */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0f4f8a 60%, var(--secondary) 100%);
    padding: 56px 0 64px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
}

.page-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.7;
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.page-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.page-hero-breadcrumb a:hover {
    color: #fff;
}

.page-hero-breadcrumb .sep {
    font-size: 10px;
}

/* ── About content ── */
.about-section {
    padding: 64px 0 80px;
}

.about-intro-card {
    background: linear-gradient(135deg, var(--primary) 0%, #0f4f8a 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: #fff;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.about-intro-card::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.about-intro-card h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}

.about-intro-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    margin: 0;
}

.about-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.about-stat-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.about-stat-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
    transform: translateY(-3px);
}

.about-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 14px;
}

.about-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.about-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.about-mission {
    margin-bottom: 48px;
}

.about-mission h2,
.about-values h2,
.about-team h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.about-mission h2::after,
.about-values h2::after,
.about-team h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mission-card {
    background: var(--bg-light);
    border-left: 3px solid var(--secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
}

.mission-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mission-card h5 i {
    color: var(--secondary);
    font-size: 14px;
}

.mission-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.value-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.value-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 14px;
}

.value-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.team-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
}

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

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px;
    font-weight: 800;
    color: #fff;
}

.team-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.team-card .role {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.team-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.about-cta {
    background: linear-gradient(135deg, #0f2340 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    color: #fff;
    margin-top: 56px;
}

.about-cta h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.about-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.about-cta .btn-cta-w {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.about-cta .btn-cta-w:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .about-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 575.98px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .page-hero h1 {
        font-size: 26px;
    }
}

/* ================================================================
   TRANG LIÊN HỆ – lien-he.css
   ================================================================ */

/* ── Page Hero (shared) ── */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0f4f8a 55%, var(--secondary) 100%);
    padding: 56px 0 64px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
}

.page-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    line-height: 1.7;
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.page-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.page-hero-breadcrumb a:hover {
    color: #fff;
}

/* ── Contact layout ── */
.contact-section {
    padding: 64px 0 80px;
}

/* Info cards */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.contact-info-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
    transform: translateY(-3px);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

.contact-info-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.contact-info-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.contact-info-card a {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    display: block;
}

.contact-info-card a:hover {
    color: var(--primary);
}

/* Form + FAQ wrapper */
.contact-main {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 32px;
}

/* Contact form */
.contact-form-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contact-form-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.contact-form-card>p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.cf-field {
    margin-bottom: 20px;
}

.cf-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.cf-field label span {
    color: #ef4444;
}

.cf-input,
.cf-select,
.cf-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-base);
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
    border-color: var(--secondary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.cf-input::placeholder,
.cf-textarea::placeholder {
    color: #c5cdd8;
}

.cf-textarea {
    height: 130px;
    resize: vertical;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cf-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.cf-topic {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    color: var(--text-dark);
}

.cf-topic:hover {
    border-color: var(--secondary);
    background: rgba(14, 165, 233, 0.04);
}

.cf-topic input {
    accent-color: var(--secondary);
}

.btn-cf-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-base);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(15, 36, 64, 0.2);
}

.btn-cf-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 36, 64, 0.28);
}

.btn-cf-submit i {
    transition: transform 0.25s ease;
}

.btn-cf-submit:hover i {
    transform: translateX(4px);
}

/* FAQ side */
.contact-faq {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-faq-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.contact-faq-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    gap: 12px;
    user-select: none;
}

.faq-question .faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.open .faq-icon {
    background: var(--secondary);
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 18px 16px;
}

/* Map embed */
.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 48px;
    border: 1px solid var(--border-light);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: none;
}

/* Social strip */
.contact-social-strip {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.contact-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-social-btn.fb {
    background: #1877f2;
    color: #fff;
}

.contact-social-btn.yt {
    background: #ff0000;
    color: #fff;
}

.contact-social-btn.zl {
    background: #0068ff;
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .cf-row {
        grid-template-columns: 1fr;
    }

    .cf-topic-grid {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 26px;
    }
}

/* ================================================================
   TRANG BLOG LISTING – blog.css
   ================================================================ */

/* ── Page Hero (shared) ── */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0f4f8a 55%, var(--secondary) 100%);
    padding: 56px 0 64px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
}

.page-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    line-height: 1.7;
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.page-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

/* ── Blog layout ── */
.blog-listing-section {
    padding: 56px 0 80px;
}

/* Featured post */
.blog-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    transition: var(--transition);
}

.blog-featured:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-featured-img {
    background: linear-gradient(135deg, #1a3a5c 0%, #0e97d2 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 100px;
    position: relative;
    overflow: hidden;
}

.blog-featured-img .feat-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.blog-featured-content {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-cat-tag {
    display: inline-block;
    background: rgba(14, 165, 233, 0.08);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.blog-featured-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-featured-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-featured-content h2 a:hover {
    color: var(--secondary);
}

.blog-featured-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.blog-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.blog-meta-row span {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 18px;
    transition: var(--transition);
}

.blog-read-more:hover {
    gap: 10px;
}

/* Category filter */
.blog-cat-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.blog-cat-chip {
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: #fff;
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-base);
}

.blog-cat-chip:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.blog-cat-chip.active {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

/* Post grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.blog-post-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.1);
    transform: translateY(-3px);
}

.blog-post-thumb {
    height: 180px;
    background: linear-gradient(135deg, #1a3a5c, #0e97d2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    color: rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.blog-post-thumb .post-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-post-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.45;
    margin-bottom: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-post-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-post-body h3 a:hover {
    color: var(--secondary);
}

.blog-post-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 1;
    margin-bottom: 16px;
}

.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.blog-post-date {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-post-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.blog-post-link:hover {
    gap: 8px;
}

/* Sidebar */
.blog-sidebar {}

.blog-search-box {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.blog-search-wrap {
    display: flex;
    gap: 8px;
}

.blog-search-wrap input {
    flex: 1;
    padding: 9px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-base);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.blog-search-wrap input:focus {
    border-color: var(--secondary);
}

.blog-search-wrap button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--secondary);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.blog-search-wrap button:hover {
    background: var(--primary);
}

.blog-popular {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.blog-popular h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.popular-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.popular-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    flex-shrink: 0;
}

.popular-rank.top {
    background: var(--secondary);
    color: #fff;
}

.popular-post-info a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    line-height: 1.4;
    transition: color 0.2s;
}

.popular-post-info a:hover {
    color: var(--secondary);
}

.popular-post-info span {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    display: block;
}

.blog-tags-widget {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.blog-tags-widget h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 5px 12px;
    border-radius: 12px;
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

/* Thumb color variants */
.thumb-blue {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}

.thumb-green {
    background: linear-gradient(135deg, #15803d, #22c55e);
}

.thumb-purple {
    background: linear-gradient(135deg, #7e22ce, #a855f7);
}

.thumb-orange {
    background: linear-gradient(135deg, #c2410c, #f97316);
}

.thumb-teal {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.thumb-rose {
    background: linear-gradient(135deg, #be123c, #f43f5e);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .blog-featured {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 575.98px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 26px;
    }

    .categories-section {
        padding: 20px 0;
    }

    .section-header {
        margin-bottom: 16px !important;
    }

    .thesis-section {
        padding-bottom: 15px;
    }
}

/* ================================================================
   TRANG CHI TIẾT BLOG – blog-chi-tiet.css
   ================================================================ */

/* ── Breadcrumb bar ── */
.blog-breadcrumb-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.blog-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.blog-breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
}

.blog-breadcrumb .sep {
    color: var(--border-color);
    font-size: 10px;
}

/* ── Post layout ── */
.blog-detail-section {
    padding: 44px 0 80px;
}

/* Article header */
.article-header {
    margin-bottom: 32px;
}

.article-cat-tag {
    display: inline-block;
    background: rgba(14, 165, 233, 0.08);
    color: var(--secondary);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 14px;
}

.article-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
}

.article-meta-bar span {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta-bar .author-name {
    font-weight: 700;
    color: var(--text-dark);
}

/* Featured image block */
.article-featured-img {
    background: linear-gradient(135deg, #1a3a5c 0%, #0e97d2 100%);
    border-radius: var(--radius-lg);
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: rgba(255, 255, 255, 0.1);
    margin: 28px 0;
    position: relative;
    overflow: hidden;
}

.article-featured-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(15, 36, 64, 0.4));
}

.article-featured-img .img-caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 1;
    font-style: italic;
}

/* Article body */
.article-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-dark);
}

.article-body h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin: 36px 0 14px;
    padding-left: 16px;
    border-left: 4px solid var(--secondary);
}

.article-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 28px 0 12px;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body strong {
    color: var(--primary);
}

.article-body a {
    color: var(--secondary);
    text-decoration: underline;
}

.article-highlight-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(14, 165, 233, 0.02));
    border: 1.5px solid rgba(14, 165, 233, 0.2);
    border-left: 4px solid var(--secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin: 28px 0;
    font-size: 15px;
    color: var(--text-dark);
}

.article-highlight-box i {
    color: var(--secondary);
    margin-right: 6px;
}

.article-tip-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06), rgba(34, 197, 94, 0.02));
    border: 1.5px solid rgba(34, 197, 94, 0.2);
    border-left: 4px solid #22c55e;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin: 28px 0;
    font-size: 15px;
}

.article-tip-box .tip-title {
    font-weight: 700;
    color: #15803d;
    margin-bottom: 8px;
    font-size: 14px;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 14px;
}

.article-table th {
    background: var(--primary);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.article-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-light);
}

.article-table tr:nth-child(even) td {
    background: var(--bg-light);
}

.article-table tr:hover td {
    background: rgba(14, 165, 233, 0.04);
}

/* Article footer */
.article-tags {
    margin: 32px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.article-tags-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.article-tag-item {
    padding: 4px 12px;
    border-radius: 12px;
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.article-tag-item:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.article-share-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.share-fb {
    background: #1877f2;
    color: #fff;
}

.share-tw {
    background: #1da1f2;
    color: #fff;
}

.share-cp {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
}

/* Author box */
.author-box {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 40px;
}

.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.author-info h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.author-info .role {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.author-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Related posts */
.related-posts-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.related-posts-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary);
}

.related-post-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.related-post-item:last-child {
    border-bottom: none;
}

.related-post-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
}

.related-post-info a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.2s;
}

.related-post-info a:hover {
    color: var(--secondary);
}

.related-post-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Sidebar widgets ── */
.blog-search-box {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.blog-search-wrap {
    display: flex;
    gap: 8px;
}

.blog-search-wrap input {
    flex: 1;
    padding: 9px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-base);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.blog-search-wrap input:focus {
    border-color: var(--secondary);
}

.blog-search-wrap button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--secondary);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.blog-search-wrap button:hover {
    background: var(--primary);
}

.blog-popular {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.blog-popular h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.popular-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.popular-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    flex-shrink: 0;
}

.popular-rank.top {
    background: var(--secondary);
    color: #fff;
}

.popular-post-info a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    line-height: 1.4;
    transition: color 0.2s;
}

.popular-post-info a:hover {
    color: var(--secondary);
}

.popular-post-info span {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    display: block;
}

.blog-tags-widget {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.blog-tags-widget h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 5px 12px;
    border-radius: 12px;
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

/* CTA sidebar */
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary), #0269a4);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.sidebar-cta .cta-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.sidebar-cta h5 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
}

.sidebar-cta p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.sidebar-cta a {
    display: block;
    background: #fff;
    color: var(--primary);
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-cta a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================
   MY ACCOUNT PAGE
   ============================================ */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.my-account-sidebar {
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    flex-shrink: 0;
}

.user-profile-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar img {
    border-radius: 50%;
    width: 70px;
    height: 70px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
}

.user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.user-email {
    font-size: 13px;
    color: var(--text-muted);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 14px 24px;
    color: var(--text-dark);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.woocommerce-MyAccount-navigation li a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 12px;
    color: var(--text-light);
    width: 20px;
    text-align: center;
    display: inline-block;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: "\f015";
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a::before {
    content: "\f07a";
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: "\f044";
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: "\f023";
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--download-history a::before {
    content: "\f019";
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--saved-thesis a::before {
    content: "\f004";
}

.woocommerce-MyAccount-navigation li:hover a,
.woocommerce-MyAccount-navigation li.is-active a {
    background: #f8fafc;
    color: var(--secondary);
    border-left-color: var(--secondary);
}

.woocommerce-MyAccount-navigation li.is-active a::before,
.woocommerce-MyAccount-navigation li:hover a::before {
    color: var(--secondary);
}

.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    padding: 30px;
}

.tvla-dashboard-welcome {
    font-size: 15px;
    color: var(--text-dark);
}

.tvla-dashboard-welcome a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
}

.tvla-membership-status-box {
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.ms-header {
    border-bottom: 1px solid #e8ecf0;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.ms-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.ms-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ms-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.ms-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ms-stat-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
}

.ms-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.ms-stat-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.ms-benefits h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.ms-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ms-benefits li {
    margin-bottom: 12px;
    font-size: 14.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ms-benefits li.has i {
    color: #22c55e;
    margin-top: 3px;
}

.ms-benefits li.has span {
    color: var(--text-dark);
}

.ms-benefits li.no i {
    color: #ef4444;
    margin-top: 3px;
}

.ms-benefits li.no span {
    color: var(--text-muted);
    text-decoration: line-through;
}

.ms-benefits li strong {
    color: var(--primary);
}

/* ── Responsive ── */
@media (max-width: 575.98px) {
    .article-title {
        font-size: 22px;
    }

    .article-body {
        font-size: 15px;
    }

    .author-box {
        flex-direction: column;
    }
}

/* ============================================
   VIP ITEM HIGHLIGHT (Light Orange VIP Highlight)
   ============================================ */
.thesis-item.is-vip,
.cat-thesis-item.is-vip,
.doc-header-card.is-vip {
    border-color: #fdba74 !important;
    /* light orange border */
    background-color: #fffef8 !important;
    /* extremely light warm tint */
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.03);
    /* softer orange shadow */
}

.thesis-item.is-vip:hover,
.cat-thesis-item.is-vip:hover,
.doc-header-card.is-vip:hover {
    border-color: #fb923c !important;
    /* darker orange on hover */
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.1);
}

/* ============================================
   FORMAT SPECIFIC ICON COLORS
   Màu sắc background và icon theo từng định dạng
   ============================================ */
[data-format="pdf"] {
    color: #ef4444 !important;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
}

[data-format="doc"],
[data-format="docx"] {
    color: #3b82f6 !important;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
}

[data-format="xls"],
[data-format="xlsx"] {
    color: #10b981 !important;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
}

[data-format="ppt"],
[data-format="pptx"] {
    color: #f97316 !important;
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%) !important;
}

[data-format="zip"],
[data-format="rar"] {
    color: #8b5cf6 !important;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%) !important;
}

/* ============================================
   VIP BADGE COLOR
   ============================================ */
.ct-vip {
    color: #d97706 !important;
}

.ct-vip i {
    color: #f59e0b !important;
}

/* ============================================
   CARD SAVE / FAVORITE BUTTON
   ============================================ */
.btn-save-card {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 15px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.btn-save-card:hover {
    border-color: #fca5a5;
    color: #ef4444;
    background: #fef2f2;
}

.btn-save-card:hover i {
    transform: scale(1.15);
}

.btn-save-card i {
    transition: all 0.3s ease;
}

.btn-save-card.is-saved {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fca5a5;
}

.btn-save-card.is-saved i {
    color: #ef4444;
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(0.95);
    }

    75% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.btn-save-card.is-saved i {
    animation: heartPulse 0.5s ease;
}

/* ============================================
   TOAST NOTIFICATION (Global)
   ============================================ */
.tvla-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-base, 'Be Vietnam Pro', sans-serif);
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.tvla-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tvla-toast-success {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.tvla-toast-info {
    background: linear-gradient(135deg, #334155, #1e293b);
    color: #fff;
}

.tvla-toast i {
    font-size: 16px;
}

li.wc_payment_method.payment_method_pay2s label img {
    width: 50px;
}