/*
Theme Name: QuangDatMMO Massage
Description: WordPress theme cho dịch vụ sửa chữa ghế massage và máy chạy bộ tại Đồng Nai
Author: QuangDatMMO
Version: 1.0
License: GPL v2 or later
Text Domain: quangdatmmo
*/

/* Color Variables - Màu thương hiệu */
:root {
    /* Primary Colors - Màu chính */
    --primary-color: #1a5f9e;        /* Xanh dương đậm - tin cậy, chuyên nghiệp */
    --primary-light: #3b82f6;        /* Xanh dương sáng */
    --primary-dark: #134e4a;         /* Xanh teal đậm */
    
    /* Secondary Colors - Màu phụ */
    --secondary-color: #059669;      /* Xanh lá - sức khỏe, thư giãn */
    --secondary-light: #10b981;      /* Xanh lá sáng */
    --secondary-dark: #047857;       /* Xanh lá đậm */
    
    /* Accent Colors - Màu điểm nhấn */
    --accent-color: #f59e0b;         /* Vàng cam - năng lượng, tích cực */
    --accent-light: #fbbf24;         /* Vàng sáng */
    --accent-dark: #d97706;          /* Cam đậm */
    
    /* Neutral Colors - Màu trung tính */
    --text-primary: #1f2937;         /* Đen xám đậm */
    --text-secondary: #4b5563;       /* Xám vừa */
    --text-light: #6b7280;           /* Xám nhạt */
    --text-white: #ffffff;           /* Trắng */
    
    /* Background Colors - Màu nền */
    --bg-white: #ffffff;             /* Nền trắng */
    --bg-light: #f9fafb;             /* Nền xám nhạt */
    --bg-gray: #f3f4f6;              /* Nền xám */
    --bg-primary: #eff6ff;           /* Nền xanh nhạt */
    --bg-success: #ecfdf5;           /* Nền xanh lá nhạt */
    --bg-warning: #fffbeb;           /* Nền vàng nhạt */
    
    /* Border Colors - Màu viền */
    --border-light: #e5e7eb;         /* Viền nhạt */
    --border-gray: #d1d5db;          /* Viền xám */
    --border-primary: var(--primary-color);
    --border-success: var(--secondary-color);
    
    /* Status Colors - Màu trạng thái */
    --success-color: #10b981;        /* Xanh lá - thành công */
    --warning-color: #f59e0b;        /* Vàng - cảnh báo */
    --error-color: #ef4444;          /* Đỏ - lỗi */
    --info-color: #3b82f6;           /* Xanh - thông tin */
}

/* Reset và base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.qd-contact-widget {
    background: linear-gradient(135deg, #2563eb 0%, #e9e9e9 100%) !important ;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
}

h2 {
    color: var(--primary-dark);
    font-size: 2rem;
}

h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

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

/* Menu Styles */
.header-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.header-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.header-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.header-menu a:hover {
    color: var(--primary-color);
    background-color: var(--bg-primary);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Sub-menu Dropdown */
.header-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 250px;
    max-width: 350px;
    width: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    white-space: nowrap;
}

.header-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-menu .sub-menu li {
    width: 100%;
    position: static;
}

.header-menu .sub-menu a {
    display: block;
    padding: 10px 10px;
    color: var(--text-secondary);
    font-weight: 400;
    border-radius: 0;
    background: none;
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-left: 0;
}

.header-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.header-menu .sub-menu a:hover {
    color: var(--primary-color);
    background-color: var(--bg-primary);
    padding-left: 10px;
    transform: none;
    text-decoration: none;
}

/* Menu item with children indicator */
.header-menu .menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.75rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.header-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Mobile Menu Styles - Xổ xuống dọc đẹp */
#mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 0 0 20px 20px;
    margin: 0;
    padding: 0;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    animation: slideDownFadeIn 0.4s ease-out forwards;
}

@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-menu-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 8px !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.mobile-menu-list li {
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    display: block !important;
}

.mobile-menu-list a {
    display: flex !important;
    align-items: center !important;
    padding: 16px 20px !important;
    color: #374151 !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    position: relative !important;
    border-radius: 12px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mobile-menu-list a::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%) !important;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: -1 !important;
}

.mobile-menu-list a::after {
    content: '→' !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) translateX(10px) !important;
    opacity: 0 !important;
    color: #2563eb !important;
    font-weight: 600 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mobile-menu-list a:hover {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    transform: translateX(8px) translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15) !important;
    text-decoration: none !important;
}

.mobile-menu-list a:hover::before {
    left: 0 !important;
}

.mobile-menu-list a:hover::after {
    opacity: 1 !important;
    transform: translateY(-50%) translateX(0) !important;
}

/* Mobile Sub-menu với xổ xuống đẹp */
.mobile-menu-list .sub-menu {
    background: linear-gradient(135deg, #f8faff 0%, #f1f5f9 100%) !important;
    list-style: none !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(37, 99, 235, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    max-height: 0 !important;
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
}

.mobile-menu-list .sub-menu::before {
    content: '' !important;
    position: absolute !important;
    left: 16px !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 3px !important;
    background: linear-gradient(180deg, #2563eb 0%, #3b82f6 100%) !important;
    border-radius: 2px !important;
    opacity: 0.3 !important;
}

.mobile-menu-list .sub-menu.show {
    max-height: 500px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    padding: 12px !important;
}

.mobile-menu-list .sub-menu a {
    padding: 12px 16px 12px 36px !important;
    font-size: 15px !important;
    color: #6b7280 !important;
    font-weight: 400 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    margin-bottom: 4px !important;
    position: relative !important;
}

.mobile-menu-list .sub-menu a::before {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.12) 100%) !important;
}

.mobile-menu-list .sub-menu a::after {
    content: '•' !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #9ca3af !important;
    font-size: 12px !important;
    transition: all 0.3s ease !important;
}

.mobile-menu-list .sub-menu a:hover {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.1) !important;
    transform: translateX(6px) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}

.mobile-menu-list .sub-menu a:hover::after {
    color: #2563eb !important;
    transform: translateY(-50%) scale(1.2) !important;
}

/* Menu item với mũi tên dropdown */
.mobile-menu-list .menu-item-has-children > a {
    position: relative !important;
}

.mobile-menu-list .menu-item-has-children > a::after {
    content: '' !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 12px !important;
    height: 12px !important;
    border: 2px solid #9ca3af !important;
    border-left: none !important;
    border-top: none !important;
    transform-origin: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 1 !important;
    color: transparent !important;
}

.mobile-menu-list .menu-item-has-children.open > a::after {
    transform: translateY(-50%) rotate(-135deg) translateY(2px) !important;
    border-color: #2563eb !important;
}

.mobile-menu-list .menu-item-has-children > a:hover::after {
    border-color: #2563eb !important;
    transform: translateY(-50%) rotate(45deg) !important;
}

/* Active menu item */
.mobile-menu-list .current-menu-item > a,
.mobile-menu-list .current-page-ancestor > a {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(59, 130, 246, 0.15) 100%) !important;
    color: #2563eb !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
}

.mobile-menu-list .current-menu-item > a::before {
    left: 0 !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%) !important;
}

/* Override Tailwind để đảm bảo menu xổ xuống dọc */
#mobile-menu .space-y-3 > * {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}

#mobile-menu .py-4 {
    padding: 8px !important;
}

/* Button Contact trong mobile menu */
#mobile-menu .px-4.pt-3.space-y-3 {
    padding: 16px 20px !important;
    background: linear-gradient(135deg, #f8faff 0%, #f1f5f9 100%) !important;
    border-top: 1px solid rgba(37, 99, 235, 0.1) !important;
    margin: 8px !important;
    border-radius: 12px !important;
}

#mobile-menu .px-4.pt-3.space-y-3 a {
    display: block !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    margin-bottom: 8px !important;
    text-decoration: none !important;
}

#mobile-menu .px-4.pt-3.space-y-3 a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3) !important;
}

/* Responsive Design for Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu-container {
        margin: 12px;
        border-radius: 16px;
    }
    
    .mobile-menu-list a {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .mobile-menu-list .sub-menu a {
        padding: 10px 14px 10px 32px;
        font-size: 14px;
    }
    
    .mobile-menu-search {
        padding: 12px 16px;
    }
    
    .mobile-menu-search input {
        padding: 10px 14px;
        font-size: 15px;
    }
    
    .mobile-menu-footer {
        padding: 12px 16px;
    }
    
    .mobile-menu-footer .contact-info {
        font-size: 13px;
    }
    
    .mobile-menu-footer .phone-number {
        font-size: 15px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .mobile-menu-container {
        margin: 8px;
        border-radius: 14px;
    }
    
    .mobile-menu-list a {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .mobile-menu-list .sub-menu a {
        padding: 8px 12px 8px 28px;
        font-size: 13px;
    }
}

/* ===== ARTICLE STYLES - BÀI VIẾT ===== */

/* Article Container */
.article-container {
    background: var(--bg-white);
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.article-container:hover {
    box-shadow: none !important;
}

/* Article Header */
.article-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    z-index: 0;
}

.article-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-title a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #1d4ed8;
}

/* Article Featured Image */
.article-featured-image {
    position: relative;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}



/* Article Content */
.article-content {
    padding: 2rem;
}

.noidungbaiviet {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Article Headings */
.noidungbaiviet h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 3px solid rgba(37, 99, 235, 0.2);
    position: relative;
}

.noidungbaiviet h1::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2563eb;
}

.noidungbaiviet h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 2rem 0 1rem 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #2563eb;
    border-radius: 0 8px 8px 0;
}

.noidungbaiviet h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid #60a5fa;
}

.noidungbaiviet h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4b5563;
    margin: 1.25rem 0 0.75rem 0;
}

/* Article Paragraphs */
.noidungbaiviet p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
}

.noidungbaiviet p:first-of-type {
    font-size: 1.125rem;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.7;
}

/* Article Lists */
.noidungbaiviet ul,
.noidungbaiviet ol {
    margin: 1.5rem 0;
    padding-left: 0;
}

.noidungbaiviet ul li,
.noidungbaiviet ol li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.7;
}

.noidungbaiviet ul li::before {
    content: '●';
    color: #2563eb;
    font-size: 1.2rem;
    position: absolute;
    left: 0.5rem;
    top: 0;
}

.noidungbaiviet ol {
    counter-reset: article-counter;
}

.noidungbaiviet ol li {
    counter-increment: article-counter;
}

.noidungbaiviet ol li::before {
    content: counter(article-counter);
    color: white;
    background: #2563eb;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    position: absolute;
    left: 0;
    top: 0.1rem;
}

/* Article Images */
.noidungbaiviet img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    transition: transform 0.3s ease;
}

.noidungbaiviet img:hover {
    transform: scale(1.02);
}

/* Article Blockquotes */
.noidungbaiviet blockquote {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 5px solid #2563eb;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.125rem;
    color: #1e293b;
    position: relative;
}

.noidungbaiviet blockquote::before {
    content: '"';
    font-size: 4rem;
    color: rgba(37, 99, 235, 0.2);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: serif;
}

/* Article Links */
.noidungbaiviet a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.noidungbaiviet a:hover {
    color: #1d4ed8;
    border-bottom-color: #2563eb;
}

/* Article Tags */
.article-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.article-tags .tags-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    display: block;
}

.article-tag {
    display: inline-block;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0.5rem 0.25rem 0;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header {
        padding: 1.5rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .noidungbaiviet {
        font-size: 0.95rem;
    }
    
    .noidungbaiviet h1 {
        font-size: 1.75rem;
    }
    
    .noidungbaiviet h2 {
        font-size: 1.375rem;
        padding: 0.75rem 1rem;
    }
}

/* Read More Link */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    border: none !important;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.read-more-link:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white !important;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: 8px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.pagination a:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pagination .current {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
    padding: 0.5rem 1.25rem;
}

/* Post Navigation - Bài trước/Bài sau */
.post-navigation {
    margin: 2rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    max-width: 48%;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    display: block;
    padding: 1.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-navigation a:hover {
    background: #ffffff;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-navigation .nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: #1f2937;
}

.post-navigation a:hover .nav-title {
    color: #2563eb;
}

/* Responsive Post Navigation */
@media (max-width: 768px) {
    .post-navigation .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
        text-align: left;
    }
    
    .post-navigation a {
        padding: 1.25rem;
    }
}

/* Article Excerpt Styles */
.noidungbaiviet p:last-child {
    margin-bottom: 0;
}

/* Article Summary for Archive/Home */
.article-summary {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Special Styles for Service Articles */
.article-container.service-article {
    border-left: 4px solid #2563eb;
}

.article-container.service-article .article-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Contact card */
.contact-card {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
}

.contact-phone {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-phone:hover {
    color: #f59e0b;
}

/* Content styles */
.noidungbaiviet {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.noidungbaiviet h1,
.noidungbaiviet h2,
.noidungbaiviet h3 {
    color: #1f2937;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.noidungbaiviet p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.noidungbaiviet img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Tables in posts */
.noidungbaiviet table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.noidungbaiviet table th,
.noidungbaiviet table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.noidungbaiviet table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.noidungbaiviet table tr:nth-child(even) {
    background: #f8fafc;
}

.noidungbaiviet table tr:hover {
    background: #f1f5f9;
    transition: background-color 0.2s ease;
}

.noidungbaiviet table td {
    vertical-align: top;
    color: #374151;
}

.noidungbaiviet table td:first-child {
    font-weight: 500;
    color: var(--primary-color);
}

/* Responsive tables */
@media (max-width: 768px) {
    .noidungbaiviet table {
        font-size: 0.85rem;
    }
    
    .noidungbaiviet table th,
    .noidungbaiviet table td {
        padding: 8px 10px;
    }
    
    .noidungbaiviet table {
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .noidungbaiviet table thead,
    .noidungbaiviet table tbody,
    .noidungbaiviet table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .noidungbaiviet {
        font-size: 14px;
    }
    
    .contact-phone {
        font-size: 1.25rem;
    }
}

/* ===== CLEAN FOOTER DESIGN ===== */
.main-footer {
    background: #f8f9fa;
    border-top: 3px solid #1f7ee2 !important;
    padding: 40px 0 0;
    color: #000000;
}

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

.footer-content {
    text-align: center;
    padding-bottom: 40px;
}

/* Footer Brand */
.footer-brand {
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #4a9eff 0%, #0066cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-tagline {
    font-size: 14px;
    color: #000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Menu */
.footer-menu-section {
    margin-bottom: 30px;
}

.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-menu-list li {
    margin: 0;
}

.footer-menu-list a {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-menu-list a:hover {
    color: #0066cc;
    background-color: rgba(70, 158, 255, 0.1);
}

/* Footer Social */
.footer-social-section {
    margin-bottom: 20px;
}

.social-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f3f4;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link.facebook:hover {
    background: #1877f2;
    color: white;
}

.social-link.zalo:hover {
    background: #0084ff;
    color: white;
}

.social-link.youtube:hover {
    background: #ff0000;
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #e9ecef;
    padding: 15px;
    background: #fff;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.copyright-text {
    margin: 0;
    font-size: 14px;
    color: #000;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: #0066cc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 0;
    }
    
    .footer-logo {
        font-size: 28px;
    }
    
    .footer-menu-list {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .footer-menu-list a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

/* ===== SIDEBAR ARTICLE STYLES ===== */

/* Sidebar improvements */
.sidebar-article-list {
    margin-left: 0;
    margin-top: 16px;
}

.sidebar-article-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(26, 95, 158, 0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.sidebar-article-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

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

.sidebar-article-item:hover {
    background: linear-gradient(135deg, #f8faff 0%, #f1f5f9 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 158, 0.15);
}

.sidebar-article-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-article-item:hover .sidebar-article-image {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 95, 158, 0.2);
}

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

.sidebar-article-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    transition: color 0.3s ease;
}

.sidebar-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
}

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

.sidebar-article-item:hover .sidebar-article-title {
    color: #2563eb;
}

/* Sidebar H3 styling */
.sidebar-h3 {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-left: 4px solid #2563eb;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sidebar-h3:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: translateX(2px);
}

/* Responsive Design for Sidebar */
@media (max-width: 768px) {
    .sidebar-article-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .sidebar-article-image {
        width: 50px;
        height: 50px;
    }
    
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    color: white;
}

.floating-call {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.floating-call:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.floating-zalo {
    background: linear-gradient(135deg, #0084ff, #006dd1);
}

.floating-zalo:hover {
    background: linear-gradient(135deg, #006dd1, #0056b3);
}

/* Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-actions {
        bottom: 15px;
        right: 15px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-btn svg {
        width: 20px;
        height: 20px;
    }
}    .sidebar-article-title {
        font-size: 0.85rem;
    }
    
    .sidebar-article-title a {
        font-size: 14px;
    }
    
    .sidebar-h3 {
        font-size: 18px;
        padding: 6px 10px;
    }
}

/* Related Posts CSS */
.related-posts {
  margin: 3rem 0 2rem;
  padding: 2rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.related-posts-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.related-posts-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3182ce, #63b3ed);
  border-radius: 2px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.related-post-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.related-post-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3182ce, #63b3ed);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.related-post-item:hover::before {
  transform: scaleX(1);
}

.related-post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e0;
}

.related-post-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.related-post-title a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-title a:hover {
  color: #3182ce;
}

.related-post-meta {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-post-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.related-post-excerpt {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design for Related Posts */
@media (max-width: 768px) {
  .related-posts {
    margin: 2rem 0 1rem;
    padding: 1.5rem;
  }
  
  .related-posts-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .related-post-item {
    padding: 1.25rem;
  }
  
  .related-post-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .related-post-meta {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
  
  .related-post-excerpt {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .related-posts {
    padding: 1rem;
    margin: 1.5rem 0 0.5rem;
  }
  
  .related-posts-title {
    font-size: 1.25rem;
  }
  
  .related-post-item {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
    .footer-logo {
        font-size: 14px;
    }
.logo a {font-size: 18px;}
}