/* CSS Variables for Modern Design */
:root {
    --primary-color: #6c63ff;
    --primary-hover: #5a52cc;
    --secondary-color: #ff6b6b;
    --text-color: #2d3748;
    --text-light: #718096;
    --background-color: #ffffff;
    --background-light: #f8f9fa;
    --content-background: #ffffff;
    --outer-background: #f8f9fa;
    --border-color: #e2e8f0;
    --accent-bg: #ffffff;
    --header-sticky-height: 70px;
    --container-max-width: 1200px;
    --widget-spacing: 25px;
    --section-spacing: 40px;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --box-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
body.dark-theme {
    --text-color: #e2e8f0;
    --text-light: #a0aec0;
    --background-color: #1a202c;
    --background-light: #2d3748;
    --content-background: #1a202c;
    --outer-background: #2d3748;
    --border-color: #4a5568;
    --accent-bg: #2d3748;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --box-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Dark theme specific overrides */
body.dark-theme .header {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(20px);
}

body.dark-theme .dropdown-content {
    background: var(--background-light);
    border-color: var(--border-color);
}

body.dark-theme .nav-link:hover {
    color: #f87171;
    background-color: transparent; /* Không tô nền, để trong suốt */
}

/* Dark theme article header and intro */
body.dark-theme .article-header {
    background: transparent;
    border: none;
}

body.dark-theme .article-header .entry-title {
    color: var(--text-color);
}

body.dark-theme .article-meta {
    color: var(--text-light);
}

body.dark-theme .article-meta a {
    color: var(--primary-color);
}

body.dark-theme .article-meta a:hover {
    color: #8b5cf6;
}

body.dark-theme .article-intro {
    background: transparent;
    border: none;
    border-left: none;
}

body.dark-theme .article-intro p {
    color: var(--text-color);
}

body.dark-theme .article-intro strong {
    color: #8b5cf6;
}

body.dark-theme .search-input {
    background: var(--background-light);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-theme .search-input:focus {
    border-color: var(--primary-color);
    background: var(--background-color);
}

body.dark-theme .breadcrumb {
    background: var(--background-light);
}

body.dark-theme .toc-top {
    background: var(--background-light);
    border-color: var(--border-color);
}

body.dark-theme .article-image {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

body.dark-theme .widget {
    background: var(--background-light);
    border-color: var(--border-color);
}

body.dark-theme .footer {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
}

body.dark-theme .footer-bottom {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
}

body.dark-theme .hamburger span {
    background: var(--text-color);
}

/* Article Header and Intro Styling */
.article-header {
    background: var(--content-background);
    padding: 30px 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.article-header .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 15px;
}

.entry-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 20px auto;
    border-radius: 2px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 20px;
}

.article-meta .date,
.article-meta .author {
    display: flex;
    align-items: center;
}

.article-meta a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.article-intro {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
}

.article-intro p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.article-intro strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Design for Article Header */
@media (max-width: 768px) {
    .article-header {
        padding: 15px 0;
    }
    
    .article-header .entry-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-intro {
        padding: 10px 0;
    }
    
    .article-intro p {
        font-size: 1rem;
    }
}

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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--outer-background);
    font-size: 16px;
    font-weight: 400;
    transition: var(--transition);
}

/* WordPress Grid System */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-12 {
    width: 100%;
    padding: 0 15px;
}

.large-9 {
    width: 75%;
    padding: 0 15px;
}

.large-3 {
    width: 25%;
    padding: 0 15px;
}

/* Dark Theme */
body.dark-theme {
    --background-color: #1a1a1a;
    --text-color: #e2e8f0;
    --border-color: #444444;
    --accent-bg: #2d2d2d;
    background: var(--background-color);
    color: var(--text-color);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-sticky-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    flex: 1;
    justify-content: space-evenly;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    padding: 15px 16px;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 70px;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    color: #dc2626;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown .icon {
    transition: transform 0.3s ease;
    width: 12px;
    height: 12px;
}

.dropdown:hover .icon {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-top: 3px solid var(--primary-color);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    display: block;
    padding: 10px 18px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: var(--accent-bg);
    color: #dc2626;
    border-left-color: #dc2626;
    padding-left: 25px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    padding: 8px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    width: 200px;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    font-size: 14px;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    margin-left: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: var(--background-color);
    z-index: 999;
    transition: var(--transition);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-color);
    color: white;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-content {
    padding: 0;
}

/* Mobile Navigation List */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list > li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--accent-bg);
    color: var(--primary-color);
}

.mobile-nav-link i {
    width: 20px;
    margin-right: 15px;
    text-align: center;
    color: var(--primary-color);
}

.mobile-nav-link span {
    flex: 1;
}

/* Mobile Dropdown */
.mobile-dropdown-icon {
    margin-left: auto;
    margin-right: 0;
    width: auto !important;
    transition: var(--transition);
}

.mobile-dropdown.active .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--accent-bg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 300px;
}

.mobile-sub-link {
    display: block;
    padding: 12px 20px 12px 55px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.mobile-sub-link:hover {
    background: var(--background-color);
    color: var(--primary-color);
    padding-left: 60px;
}

/* Mobile Search */
.mobile-search {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-search-container {
    display: flex;
    gap: 10px;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    background: var(--accent-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.mobile-search-input:focus {
    border-color: var(--primary-color);
    background: var(--background-color);
}

.mobile-search-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-search-btn:hover {
    background: var(--primary-hover);
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
    padding: 20px;
}

.mobile-theme-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background: var(--accent-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-theme-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.mobile-theme-btn i {
    margin-right: 15px;
    font-size: 16px;
}

/* Dark mode for mobile menu */
body.dark-theme .mobile-menu {
    background: var(--background-color);
}

body.dark-theme .mobile-menu-header {
    background: var(--primary-color);
}

body.dark-theme .mobile-nav-link {
    color: var(--text-color);
}

body.dark-theme .mobile-nav-link:hover {
    color: #f87171; /* Màu đỏ nhạt cho dark mode */
    background: transparent; /* Không tô nền, để trong suốt */
}

body.dark-theme .mobile-sub-link {
    color: var(--text-light);
}

body.dark-theme .mobile-sub-link:hover {
    color: #f87171; /* Màu đỏ nhạt cho dark mode */
    background: transparent; /* Không tô nền, để trong suốt */
}

body.dark-theme .mobile-search-input {
    background: var(--background-light);
    color: var(--text-color);
}

body.dark-theme .mobile-theme-btn {
    background: var(--background-light);
    color: var(--text-color);
    position: relative;
}

.search-input {
    padding: 0.6rem 1.2rem;
    border: 2px solid rgba(233, 30, 99, 0.2);
    border-radius: 25px;
    outline: none;
    width: 200px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-input:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    transform: scale(1.02);
}

.search-btn {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #c2185b, #880e4f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.theme-toggle:hover {
    background: #f0f0f0;
}

body.dark-theme .theme-toggle:hover {
    background: #444;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

body.dark-theme .hamburger span {
    background: #e0e0e0;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--outer-background);
    padding: 15px 0;
    margin-top: var(--header-sticky-height);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb-container {
    background: var(--content-background);
    padding: 15px 30px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    box-shadow: var(--box-shadow);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.breadcrumb .current {
    color: var(--text-color);
    font-weight: 500;
}

/* Main Content */
#wrapper {
    min-height: 100vh;
    background: var(--outer-background);
}

#main {
    padding: 30px;
    background: var(--content-background);
    max-width: var(--container-max-width);
    margin: 0 auto;
    box-shadow: var(--box-shadow);
    position: relative;
    min-height: calc(100vh - var(--header-sticky-height) - 100px);
}

#content {
    position: relative;
}

/* WordPress Entry Styles */
.entry-header {
    text-align: center;
    margin-bottom: var(--section-spacing);
    padding-bottom: 20px;
}

.entry-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 20px;
}

.entry-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.entry-meta {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.entry-meta .author a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* Table of Contents - FTWP Plugin Style */
#ftwp-container-outer {
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: var(--section-spacing);
    box-shadow: 0 4px 15px rgba(175, 34, 140, 0.1);
    overflow: hidden;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-bg), #f0f0f0);
    border-bottom: 1px solid var(--border-color);
}

.toc-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.toc-controls {
    display: flex;
    gap: 10px;
}

.toc-toggle,
.toc-minimize {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-light);
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toc-toggle:hover,
.toc-minimize:hover {
    color: var(--primary-color);
    background: rgba(175, 34, 140, 0.1);
}

#ftwp-postcontent {
    padding: 20px;
    transition: all 0.3s ease;
    background: #e2e8f0; /* Light mode - xám tương phản với trắng */
    border-radius: 8px;
}

#ftwp-postcontent.collapsed {
    display: none;
}

/* Enhanced TOC with automatic indentation - NO bullets, NO borders */
#ftwp-postcontent nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Main level items (1, 2, 3, 4, 5...) - NO border-bottom */
#ftwp-postcontent nav > ul > li {
    padding: 0;
    margin: 0;
    /* Removed border-bottom */
}

/* Main level links */
#ftwp-postcontent nav > ul > li > a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px; /* Tăng từ 15px lên 16px */
    line-height: 1.5;
    letter-spacing: 1px; /* Khoảng cách giữa các chữ là 1 */
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    background: transparent;
}

#ftwp-postcontent nav > ul > li > a:hover {
    color: #dc2626; /* Màu đỏ thay vì xanh lam */
    background: transparent; /* Không tô nền, để trong suốt */
    border-left-color: #dc2626; /* Border đỏ */
    transform: translateX(5px);
}

/* Sub-level items (2.1, 2.2, 3.1, 3.2...) - NO border-top */
#ftwp-postcontent nav ul ul {
    background: transparent; /* Trong suốt, không có background riêng */
    margin: 0;
    padding: 0;
    /* Removed border-top */
}

#ftwp-postcontent nav ul ul li {
    padding: 0;
    margin: 0;
    /* Removed border-bottom */
}

/* Sub-level links - automatically indented, NO bullets */
#ftwp-postcontent nav ul ul li a {
    display: block;
    padding: 10px 15px 10px 35px; /* 35px left padding for indentation */
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    font-size: 15px; /* Tăng từ 14px lên 15px */
    line-height: 1.4;
    letter-spacing: 1px; /* Khoảng cách giữa các chữ là 1 */
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    /* Removed :before bullet point */
}

#ftwp-postcontent nav ul ul li a:hover {
    color: #dc2626; /* Màu đỏ thay vì xanh lam */
    background: transparent; /* Không tô nền, để trong suốt */
    border-left-color: #dc2626; /* Border đỏ */
    transform: translateX(8px);
}

/* Third level items (if any) - even more indented, NO bullets */
#ftwp-postcontent nav ul ul ul li a {
    padding-left: 55px; /* 55px left padding for deeper indentation */
    font-size: 14px; /* Tăng từ 13px lên 14px */
    letter-spacing: 1px; /* Khoảng cách giữa các chữ là 1 */
    /* Removed :before bullet point */
}

/* Dark theme support */
body.dark-theme #ftwp-postcontent {
    background: #2d3748; /* Dark mode - màu tương phản */
}

body.dark-theme #ftwp-postcontent nav > ul > li > a:hover,
body.dark-theme #ftwp-postcontent nav ul ul li a:hover {
    color: #f87171; /* Màu đỏ nhạt hơn cho dark mode */
    background: transparent; /* Không tô nền, để trong suốt */
}

/* Article Styles */
.article {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(175, 34, 140, 0.08);
}

/* Reading Layout - Simple Unified Text */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.8;
}

.article-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 40px;
    overflow: visible;
}

.article-container .article {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.article-header {
    padding: 20px 0;
    background: transparent;
    border-bottom: none;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.article-meta {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-intro {
    padding: 10px 0;
    background: transparent;
    border-bottom: none;
    position: relative;
}

.article-intro::before {
    display: none;
}

.article-intro p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    font-style: normal;
    color: var(--text-color);
}

.entry-content {
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    position: relative;
}

.entry-content::before {
    display: none;
}

.article-section {
    padding: 30px 0;
    margin-bottom: 20px;
    border-bottom: none;
    position: relative;
}

.article-section:last-child {
    border-bottom: none;
}

.article-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #e53e3e; /* Đỏ nhẹ nhàng */
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e53e3e; /* Viền đỏ nhẹ */
    display: inline-block;
}

.article-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e53e3e; /* Đỏ nhẹ nhàng */
    margin: 30px 0 20px 0;
    position: relative;
    padding-left: 0; /* Bỏ padding để không có khoảng trống cho dấu chấm */
}

.article-section h3::before {
    display: none; /* Ẩn dấu chấm tròn */
}

.article-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e53e3e; /* Đỏ nhẹ nhàng */
    margin: 25px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-section h4 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.article-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: justify;
}

.article-section h2 {
    color: #e53e3e; /* Đỏ nhẹ nhàng */
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.article-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #e53e3e, #c53030); /* Gradient đỏ nhẹ */
    border-radius: 2px;
}

.article-section h3 {
    color: #e53e3e; /* Đỏ nhẹ nhàng */
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px 0;
}

.article-section p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.article-section ul {
    margin: 16px 0 16px 30px;
}

.article-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Special List Styles */

/* WordPress Image Blocks */
.wp-block-image {
    text-align: center;
    margin: 30px 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(175, 34, 140, 0.15);
    transition: transform 0.3s ease;
}

.wp-block-image img:hover {
    transform: scale(1.02);
}

.wp-element-caption {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}

/* Career Grid */
.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.career-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.career-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(175, 34, 140, 0.15);
}

.career-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.career-item ul {
    margin: 0;
    padding-left: 20px;
}

.career-item li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Advice Container */
.advice-container {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    padding: 30px;
    margin: 25px 0;
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.advice-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.advice-item:hover {
    transform: translateY(-3px);
}

.advice-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.advice-item h4 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.advice-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--widget-spacing);
}

.widget {
    background: var(--accent-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: var(--widget-spacing);
    transition: var(--transition);
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.widget-title {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Search Widget */
.widget_search .search-form {
    padding: 20px;
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    border-color: var(--primary-color);
}

.search-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: var(--primary-hover);
}

/* Tool Cards */
.tool-card {
    padding: 20px;
    text-align: center;
}

.tool-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.tool-image:hover {
    transform: scale(1.05);
}

.tool-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(175, 34, 140, 0.3);
}

.tool-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), #6a1355);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(175, 34, 140, 0.4);
}

/* Recent Posts Widget */
.recent-posts {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.recent-posts li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s ease;
    display: block;
}

.recent-posts a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    padding-left: 10px;
}

/* Categories Widget */
.widget_categories ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.cat-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.cat-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.cat-item span {
    background: var(--accent-bg);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Social Share Floating */
.social-share-floating {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 998;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.whatsapp-share {
    background: #25d366;
}

.facebook-share {
    background: #1877f2;
}

.twitter-share {
    background: #1da1f2;
}

.email-share {
    background: #34495e;
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Footer */
.site-footer {
  margin: 0px;
  padding: 0px;
  background-color: #222;
  color: white;
  font-size: 16px;
}

.footer-row {
  margin-top: 30px;
  margin-bottom: 30px;
  margin-left: 310px;
  margin-right: 310px;
  gap: 25px; /* Tạo khoảng cách 30px giữa các cột */
  display: flex; /* 	Kích hoạt chế độ Flexbox cho .footer-row, giúp các phần tử con (các .footer-col) xếp thành 1 hàng ngang. */
  justify-content: space-between; /* Căn đều 2 cột ra 2 bên, tạo khoảng trống lớn nhất có thể ở giữa */
  flex-wrap: wrap; /* Cho phép các cột tự động xuống hàng khi màn hình hẹp (rất cần cho responsive – ví dụ điện thoại). */
}

.footer-col {
  flex: 1;
  min-width: 280px;
}

/* Tăng độ ưu tiên */
.footer-col p.title-footer {
  font-size: 22px;
  text-align: left;
  color: white;
  margin-bottom: 15px;
}

/* Class dùng chung cho hiệu ứng chuyển màu */
.text-gradient {
  font-weight: bold;
  display: inline-block;
  background: linear-gradient(-45deg, #ff0000, #ff9900, #33cc33, #0099ff);
  background-size: 400% 400%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientText 5s ease infinite;
}

.text-gradient-logo {
  font-weight: bold;
  display: inline-block;
  background: linear-gradient(-45deg, #fffb00, #fd7575, white);
  background-size: 400% 400%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientText 5s ease infinite;
}

.footer-col p.slogan-footer {
  font-size: 17px;
  text-align: center;
  font-weight: bold;
  display: inline-block;
  background: linear-gradient(-45deg, #ff0000, #ff9900, #33cc33, #0099ff);
  background-size: 400% 400%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientText 5s ease infinite;
}

.footer-col a.gmail {
  font-size: 16px;
  text-align: center;
}

/* Animation */
@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-col p {
  margin: 0px;
  padding: 2px;   /* ❌ Xóa thụt đầu dòng */
  font-size: 16px; /* Cỡ chữ */
  line-height: 1.5; /* Khoảng cách giữa 2 dòng */
  color: white; 
  list-style: none;  /* ❌ Bỏ dấu chấm tròn mặc định */
  text-decoration: none; /* Xóa gạch chân mặc định của link <a>. */
}

/* Margin	Khoảng cách bên ngoài phần tử*/
/* Padding Khoảng cách bên trong phần tử*/
.border-line {
  border-top: 1px solid white; /* Tạo đường viền ở phía trên của một phần tử. */
  width: 35%; /* chiều dài đường viền */
  margin: 35px auto 20px auto; /* (Tức là: top → 50px, right → auto, bottom → 20px, left → auto) */
}

.footer-bottom {
  margin: 0px;
  padding: 20px 0px;
  background-color: #222; /* Cùng màu với site-footer */
  color: white; /* Màu chữ */ 
  font-size: 16px; /* Cỡ chữ */
  text-align: center; /* Căn giữa cho chữ */
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
    .footer-row {
        margin-left: 20px;
        margin-right: 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-col {
        min-width: auto;
    }
    
    .footer-col p.title-footer {
        font-size: 20px;
        text-align: center;
    }
    
    .footer-col p.slogan-footer {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .footer-row {
        margin-left: 15px;
        margin-right: 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .footer-col p.title-footer {
        font-size: 18px;
    }
    
    .footer-col p.slogan-footer {
        font-size: 15px;
    }
    
    .footer-col p {
        font-size: 14px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .large-9 {
        width: 100%;
    }
    
    .large-3 {
        width: 100%;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    

}

@media (max-width: 768px) {
    :root {
        --header-sticky-height: 60px;
    }
    
    .navbar {
        padding: 0 15px;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--text-color);
        transition: 0.3s;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-sticky-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-sticky-height));
        background: var(--background-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
@media (max-width: 768px) {
    :root {
        --header-sticky-height: 60px;
    }
    
    .navbar {
        padding: 0 15px;
        flex-wrap: wrap;
    }
    
    .hamburger {
        display: flex;
        order: 3;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-sticky-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-sticky-height));
        background: var(--background-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        order: 4;
        flex: none;
        justify-content: flex-start;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 0;
    }
    
    .nav-link {
        padding: 15px 10px;
        font-size: 16px;
        border-bottom: 1px solid var(--border-color);
        height: auto;
        border-bottom-color: var(--border-color) !important;
    }
    
    .nav-link:hover {
        background-color: var(--accent-bg);
        border-bottom-color: var(--border-color) !important;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--accent-bg);
        border-radius: 0;
        border-top: none;
        border-left: 3px solid var(--primary-color);
        margin-left: 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-content {
        max-height: 300px;
    }
    
    .dropdown-content a {
        padding: 10px 15px;
        font-size: 14px;
        border-left: none;
    }
    
    .nav-controls {
        order: 2;
        gap: 10px;
        margin-left: 0;
        margin-right: 15px;
    }
    
    .search-container {
        display: none;
    }
}

/* Additional Dark Mode Styles */
body.dark-theme .search-field {
    background: var(--background-light);
    border-color: var(--border-color);
    color: var(--text-color);
}

body.dark-theme .search-submit {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

body.dark-theme .tool-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
}

body.dark-theme .tool-btn {
    background: var(--primary-color);
    color: white;
}

body.dark-theme .tool-btn:hover {
    background: var(--primary-hover);
}

body.dark-theme .recent-posts a {
    color: var(--text-color);
}

body.dark-theme .recent-posts a:hover {
    color: var(--primary-color);
}

body.dark-theme .cat-item a {
    color: var(--text-color);
}

body.dark-theme .cat-item span {
    background: var(--background-color);
    color: var(--text-light);
}

body.dark-theme .social-share-floating .share-btn {
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

body.dark-theme .toc-show-btn {
    background: var(--background-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

body.dark-theme .career-item,
body.dark-theme .advice-item {
    background: var(--background-light);
    border: 1px solid var(--border-color);
}

body.dark-theme .newsletter-form input {
    background: var(--background-light);
    border-color: var(--border-color);
    color: var(--text-color);
}

body.dark-theme .newsletter-form button {
    background: var(--primary-color);
    color: white;
}

body.dark-theme .social-link {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

body.dark-theme .social-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
    
    .search-input {
        width: 120px;
        font-size: 14px;
    }
    
    .brand-text {
        font-size: 12px;
    }
    
    .entry-title {
        font-size: 28px;
    }
    
    .breadcrumb {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    #main {
        padding: 20px 0;
    }
    
    .article-section {
        padding: 20px;
    }
    
    .career-grid,
    .advice-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-share-floating {
        left: 10px;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .entry-title {
        font-size: 24px;
    }
    
    .article-section h2 {
        font-size: 20px;
    }
    
    .tool-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .social-share-floating {
        display: none;
    }
}

/* Dark Theme Adjustments */
body.dark-theme {
    --background-color: #1a202c;
    --text-color: #e2e8f0;
    --border-color: #2d3748;
    --accent-bg: #2d3748;
}

body.dark-theme .header {
    background: rgba(26, 32, 44, 0.95);
}

body.dark-theme .footer {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
}

body.dark-theme .footer-bottom {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
}

body.dark-theme .nav-menu {
    background: var(--background-color);
}

body.dark-theme .hamburger span {
    background: var(--text-color);
}

/* Dark Theme Footer Styles */
body.dark-theme .site-footer {
    background-color: #1a1a1a;
}

body.dark-theme .footer-bottom {
    background-color: #1a1a1a; /* Cùng màu với site-footer trong dark mode */
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Performance optimizations */
* {
    backface-visibility: hidden;
    perspective: 1000;
}

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

/* Print styles */
@media print {
    .header,
    .footer,
    .sidebar,
    .social-share-floating,
    .toc-show-btn {
        display: none !important;
    }
    
    .article {
        box-shadow: none;
        border: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

.toc-show-btn {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    display: none;
    z-index: 998;
    transition: all 0.3s ease;
}

.toc-show-btn:hover {
    background: linear-gradient(135deg, #c2185b, #880e4f);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: var(--text-color);
    margin-top: 4rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

.footer-section h4 {
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #e91e63, #f06292);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 0.25rem 0;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.social-links a:hover {
    background: linear-gradient(135deg, #c2185b, #880e4f);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.footer-bottom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid #e0e0e0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-controls {
        order: -1;
        gap: 0.5rem;
    }
    
    .search-input {
        width: 150px;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article {
        padding: 1rem;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .breadcrumb {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .toc-show-btn {
        right: 10px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .nav-controls {
        flex-wrap: wrap;
    }
    
    .search-input {
        width: 120px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article,
.widget,
.toc-top {
    animation: fadeIn 0.6s ease-out;
}

/* Active TOC link highlighting */
.toc-link.active {
    color: #e91e63;
    font-weight: 600;
}

/* Responsive Design for Reading Layout */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 20px 10px;
    }
    
    .article-container {
        margin-bottom: 20px;
        box-shadow: none;
    }
    
    .article-header {
        padding: 20px 0;
    }
    
    .entry-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .article-intro {
        padding: 10px 0;
    }
    
    .article-intro p {
        font-size: 1rem;
    }
    
    .article-section {
        padding: 25px;
    }
    
    .article-section h2 {
        font-size: 1.5rem;
    }
    
    .article-section h3 {
        font-size: 1.2rem;
    }
    
    .article-section h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 15px 5px;
    }
    
    .article-header {
        padding: 25px 20px 15px 20px;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .article-intro {
        padding: 20px;
    }
    
    .article-section {
        padding: 20px;
    }
    
    .article-section h2 {
        font-size: 1.3rem;
    }
    
    .article-section h3 {
        font-size: 1.1rem;
    }
}

/* Numerology Calculator Styles */
.numerology-calculator {
    background: var(--background-light);
    padding: 60px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.calculator-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.calculator-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.calculator-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.calculator-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--input-bg);
    color: var(--text-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.birth-date-group {
    margin-bottom: 25px;
}

.birth-date-group > label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-color);
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.date-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.date-field select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.date-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

.calculator-results {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.user-info {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

.main-number-display {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.numbers-section {
    margin: 40px 0;
}

.numbers-group {
    margin-bottom: 40px;
    padding: 25px;
    background: var(--accent-bg);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.numbers-group h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.core-numbers .number-item {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.secondary-numbers .number-item {
    background: linear-gradient(135deg, #10b981, #059669);
}

.karmic-numbers .number-item {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.time-numbers .number-item {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.number-item {
    color: white;
    text-align: center;
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    position: relative;
}

.number-item:hover {
    transform: translateY(-5px);
}

.number-description {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 5px;
    line-height: 1.3;
}

.birth-chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.birth-chart {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-width: 200px;
    margin: 0 auto;
}

.chart-cell {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.chart-cell.filled {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chart-cell.missing {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.chart-analysis {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.chart-analysis h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.analysis-item {
    margin-bottom: 12px;
    padding: 8px;
    background: var(--accent-bg);
    border-radius: 6px;
    font-size: 0.9rem;
}

.strength {
    border-left: 4px solid #10b981;
}

.weakness {
    border-left: 4px solid #f59e0b;
}

.missing {
    border-left: 4px solid #ef4444;
}

.number-item {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    text-align: center;
    padding: 25px 15px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    transition: transform 0.3s ease;
}

.number-item:hover {
    transform: translateY(-5px);
}

.number-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    min-width: 200px;
}

.number-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.number-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.related-articles {
    margin: 40px 0;
}

.related-articles h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-card h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.article-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Default Articles List Layout */
.default-articles {
    margin-top: 2rem;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.articles-header {
    text-align: center;
    margin-bottom: 2rem;
}

.articles-header h4 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.articles-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Articles List Container */
.articles-list-container {
    max-height: 600px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.articles-list-container::-webkit-scrollbar {
    width: 8px;
}

.articles-list-container::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 4px;
}

.articles-list-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.articles-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.articles-list {
    display: flex;
    flex-direction: column;
}

/* Article Item */
.article-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

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

.article-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.article-item:hover::before {
    transform: scaleY(1);
}

.article-item:hover {
    background: var(--background-light);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Article Number */
.article-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    min-width: 60px;
    text-align: center;
    margin-right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Article Content */
.article-content {
    flex: 1;
    margin-right: 1rem;
}

.article-content h5 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-item:hover .article-content h5 {
    color: var(--primary-color);
}

.article-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Article Arrow */
.article-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.article-item:hover .article-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Alternating row colors */
.article-item:nth-child(even) {
    background: var(--background-light);
}

.article-item:nth-child(even):hover {
    background: var(--background-color);
}

/* Popular articles highlight */
.article-item:nth-child(-n+5) .article-number {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-item:nth-child(-n+5) .article-category {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.share-result-btn,
.recalculate-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-result-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.share-result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.recalculate-btn {
    background: var(--accent-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

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

/* Dark theme for calculator */
body.dark-theme .numerology-calculator {
    background: var(--background-dark);
    border-top-color: var(--border-dark);
}

body.dark-theme .calculator-wrapper {
    background: var(--card-dark);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-theme .form-group input,
body.dark-theme .date-field select {
    background: var(--input-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

body.dark-theme .numbers-group {
    background: var(--accent-dark);
}

body.dark-theme .chart-cell {
    background: var(--card-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

body.dark-theme .chart-cell.missing {
    background: #7f1d1d;
    color: #fca5a5;
    border-color: #991b1b;
}

body.dark-theme .chart-analysis {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

body.dark-theme .analysis-item {
    background: var(--accent-dark);
}

body.dark-theme .personality-traits,
body.dark-theme .career-suggestions,
body.dark-theme .love-compatibility {
    background: var(--accent-dark);
}

body.dark-theme .results-table {
    background: var(--card-dark);
}

body.dark-theme .results-table td {
    border-bottom-color: var(--border-dark);
    color: var(--text-dark);
}

body.dark-theme .results-table tr:nth-child(even) {
    background: var(--accent-dark);
}

body.dark-theme .article-card {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

body.dark-theme .recalculate-btn {
    background: var(--accent-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .numerology-calculator {
        padding: 40px 0;
    }
    
    .calculator-wrapper {
        padding: 25px;
        margin: 0 15px;
    }
    
    .calculator-header h2 {
        font-size: 1.8rem;
    }
    
    .date-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .number-card {
        padding: 20px;
        min-width: 150px;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .number-item {
        padding: 15px 10px;
    }
    
    .number-value {
        font-size: 2rem;
    }
    
    .birth-chart-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-cell {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .numbers-group {
        padding: 20px 15px;
    }
    
    .action-buttons {
        flex-direction: column;
    }

    /* List Layout Mobile Responsive */
    .default-articles {
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
    }
    
    .articles-list-container {
        max-height: 500px;
    }
    
    .article-item {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .article-item:hover {
        transform: none;
    }
    
    .article-number {
        font-size: 1.2rem;
        min-width: auto;
        margin-right: 0;
        margin-bottom: 0.5rem;
        align-self: flex-end;
    }
    
    .article-content {
        margin-right: 0;
        order: 1;
        width: 100%;
    }
    
    .article-content h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .article-content p {
        font-size: 0.85rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .article-category {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .article-arrow {
        display: none;
    }
    
    /* Carousel responsive */
    .carousel-article {
        flex: 0 0 calc(100% - 1rem);
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .carousel-prev {
        left: -17.5px;
    }
    
    .carousel-next {
        right: -17.5px;
    }
    
    .default-articles {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .articles-header h4 {
        font-size: 1.3rem;
    }
    
    .carousel-article {
        padding: 1rem;
    }
    
    .carousel-article h5 {
        font-size: 1rem;
    }
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) translateX(100%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
}

.reading-progress-container.visible {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    visibility: visible;
}

.reading-progress-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    animation: bookPulse 2s ease-in-out infinite;
}

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

.reading-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.reading-progress-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
    opacity: 0.9;
}

/* Book icon animation */
@keyframes bookPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Hover effect */
.reading-progress-container:hover {
    transform: translateY(-50%) translateX(0) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Dark theme for reading progress */
body.dark-theme .reading-progress-container {
    background: rgba(30, 30, 30, 0.95);
    border-color: var(--border-color);
}

body.dark-theme .reading-progress-text {
    color: var(--text-color);
}

/* Responsive reading progress */
@media (max-width: 1024px) {
    .reading-progress-container {
        right: 15px;
        padding: 12px;
        min-width: 100px;
    }
    
    .reading-progress-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .reading-progress-container {
        right: 10px;
        padding: 10px;
        min-width: 90px;
        gap: 8px;
    }
    
    .reading-progress-bar {
        height: 4px;
    }
    
    .reading-progress-text {
        font-size: 0.7rem;
    }
    
    .reading-progress-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .reading-progress-container {
        right: 8px;
        padding: 8px;
        min-width: 80px;
    }
    
    .reading-progress-text {
        font-size: 0.65rem;
    }
}


