/* Articles Page Styles - Subtle Modern Gradient Design */
:root {
    --primary-gold: #5e936c;
    --primary-gold-light: #5e936c;
    --primary-beige: #5e936c;
    --text-dark: #23262f;
    --text-gray: #64748b;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 20px rgba(94, 147, 108, 0.1);
    --shadow-hover: 0 8px 40px rgba(35, 38, 47, 0.15);
    --gradient-primary: linear-gradient(135deg, #5e936c 0%, #5e936c 100%);
}

/* Museo Moderno Font Configuration for Articles */
.articles-page,
.articles-page *,
.article-detail-page,
.article-detail-page * {
    font-family: "Museo Moderno", "Inter", "Segoe UI", Tahoma, Geneva, Verdana,
        sans-serif;
}

/* Pattern overlay giống Featured Areas */
.articles-page::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 80px,
            rgba(139, 114, 71, 0.08) 80px,
            rgba(139, 114, 71, 0.08) 82px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 120px,
            rgba(255, 255, 255, 0.05) 120px,
            rgba(255, 255, 255, 0.05) 121px
        );
    z-index: -1;
    pointer-events: none;
}

/* Container đơn giản */
.articles-page .container {
    position: relative;
    padding: 2rem;
}

/* Xóa animation cũ không cần thiết */

/* ====== Ẩn background mặc định của trang ====== */
.articles-page .main-background {
    display: none !important;
}

/* Body không có background để tránh chồng lên */
body {
    font-family: "Museo Moderno", "Inter", "Segoe UI", Tahoma, Geneva, Verdana,
        sans-serif;
    color: var(--text-dark);
    position: relative;
}

/* Xóa body::before không cần thiết nữa */

/* ====== Font Override for All Elements ====== */
.articles-page h1,
.articles-page h2,
.articles-page h3,
.articles-page h4,
.articles-page h5,
.articles-page h6,
.articles-page p,
.articles-page span,
.articles-page div,
.articles-page a,
.articles-page button,
.articles-page input,
.articles-page label {
    font-family: "Museo Moderno", "Inter", "Segoe UI", Tahoma, Geneva, Verdana,
        sans-serif !important;
}

/* ====== Enhanced Page Title Section ====== */
.section-header {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-family: "Museo Moderno", sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
    position: relative;
}

.title-highlight {
    background: linear-gradient(135deg, #3e5f44 0%, #3e5f44 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Legacy page title styles - keep for backward compatibility */
.page-title {
    font-family: "Museo Moderno", sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.page-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* ====== Enhanced Search Section ====== */
.search-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 114, 71, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(139, 114, 71, 0.1);
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 114, 71, 0.03) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(139, 114, 71, 0.03) 100%
    );
    pointer-events: none;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .search-form {
        flex-direction: row;
    }
}

.search-input-container {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(139, 114, 71, 0.2);
    border-radius: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Museo Moderno", sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(139, 114, 71, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.search-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: "Museo Moderno", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 114, 71, 0.2);
}

.search-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 114, 71, 0.3);
    color: var(--white);
}

.search-btn:hover::before {
    left: 100%;
}

/* ====== Enhanced Articles Grid ====== */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 114, 71, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(139, 114, 71, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
}

.article-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 114, 71, 0.02) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(139, 114, 71, 0.02) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(139, 114, 71, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.article-image-container {
    position: relative;
    width: 250px;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 20px 0 0 20px;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-image {
    transform: scale(1.1);
}

.article-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(139, 114, 71, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .article-overlay {
    opacity: 1;
}

.article-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-decoration: none;
    display: block;
    font-family: "Museo Moderno", sans-serif;
    transition: all 0.3s ease;
}

.article-title:hover {
    color: var(--primary-gold);
    text-decoration: none;
}

.article-excerpt {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(139, 114, 71, 0.1);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.article-meta-item i {
    color: var(--primary-gold);
    font-size: 0.85rem;
}

.read-more-btn {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-self: flex-start;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.read-more-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 114, 71, 0.3);
    color: var(--white);
    text-decoration: none;
}

.read-more-btn:hover::before {
    left: 100%;
}

/* ====== Enhanced Sidebar ====== */
.sidebar-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 114, 71, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(139, 114, 71, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 114, 71, 0.02) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(139, 114, 71, 0.02) 100%
    );
    pointer-events: none;
}

.sidebar-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 114, 71, 0.12);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Museo Moderno", sans-serif;
    position: relative;
    z-index: 1;
}

.sidebar-title i {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.latest-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.latest-article {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(139, 114, 71, 0.1);
}

.latest-article:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 114, 71, 0.12);
    border-color: rgba(139, 114, 71, 0.2);
}

.latest-article-image {
    width: 5rem;
    height: 5rem;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.latest-article-content h6 {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-family: "Museo Moderno", sans-serif;
}

.latest-article:hover .latest-article-content h6 {
    color: var(--primary-gold);
}

.latest-article-date {
    font-size: 0.8rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.latest-article-date i {
    color: var(--primary-gold);
}

/* ====== Enhanced Contact Info ====== */
.contact-info {
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 15px 35px rgba(139, 114, 71, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-avatar::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.contact-avatar:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 114, 71, 0.4);
}

.contact-avatar:hover::before {
    left: 100%;
}

.contact-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: "Museo Moderno", sans-serif;
}

.contact-title {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-action {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    font-size: 1rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.contact-action::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.contact-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 114, 71, 0.4);
    color: var(--white);
    text-decoration: none;
}

.contact-action:hover::before {
    left: 100%;
}

/* ====== Enhanced Pagination ====== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 114, 71, 0.2);
    padding: 0.875rem 1.25rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    min-width: 50px;
    text-align: center;
    display: inline-block;
    font-family: "Museo Moderno", sans-serif;
    position: relative;
    overflow: hidden;
}

.pagination .page-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 114, 71, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-gold);
    color: var(--white);
    font-weight: 700;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 114, 71, 0.3);
}

.pagination
    .page-link:hover:not(.page-item.active .page-link):not(
        .page-item.disabled .page-link
    ) {
    background: rgba(255, 255, 255, 1);
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 114, 71, 0.2);
}

.pagination .page-link:hover::before {
    left: 100%;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    background: rgba(248, 249, 250, 0.5);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    background: rgba(248, 249, 250, 0.5);
    color: #ccc;
    border-color: var(--border-color);
    transform: none;
    box-shadow: none;
}

/* ====== Enhanced Empty State ====== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 114, 71, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(139, 114, 71, 0.08);
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 114, 71, 0.02) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(139, 114, 71, 0.02) 100%
    );
    pointer-events: none;
}

.empty-state-icon {
    width: 7rem;
    height: 7rem;
    margin: 0 auto 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 15px 35px rgba(139, 114, 71, 0.3);
    position: relative;
    z-index: 1;
}

.empty-state-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: "Museo Moderno", sans-serif;
    position: relative;
    z-index: 1;
}

.empty-state-text {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

/* ====== Smooth Scrolling & Performance ====== */
* {
    scroll-behavior: smooth;
}

/* ====== Fade In Animation ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Apply animations to elements */
.article-card {
    animation: fadeInUp 0.6s ease-out;
}

.article-card:nth-child(1) {
    animation-delay: 0.1s;
}
.article-card:nth-child(2) {
    animation-delay: 0.2s;
}
.article-card:nth-child(3) {
    animation-delay: 0.3s;
}
.article-card:nth-child(4) {
    animation-delay: 0.4s;
}
.article-card:nth-child(5) {
    animation-delay: 0.5s;
}

.sidebar-section {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.search-section {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* ====== Enhanced Scroll Effects ====== */
@media (prefers-reduced-motion: no-preference) {
    .articles-page {
        overflow-x: hidden;
    }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ====== Loading States ====== */
.article-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

.article-card.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ====== Responsive Design ====== */
@media (max-width: 768px) {
    .articles-page::before {
        background-size: 200px 200px, 250px 250px, 150px 150px;
        background-position: 0 0, 100px 100px, 150px 50px;
    }

    .page-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .page-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .search-section {
        padding: 1.5rem;
        margin: 0 1rem 1.5rem;
    }

    .articles-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .article-card {
        flex-direction: column;
        border-radius: 20px;
    }

    .article-image-container {
        width: 100%;
        height: 200px;
        border-radius: 20px 20px 0 0;
    }

    .article-content {
        padding: 1.5rem;
    }

    .sidebar-section {
        padding: 1.5rem;
        margin: 0 1rem 1.5rem;
    }

    .pagination .page-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-width: 45px;
    }

    .pagination {
        gap: 0.25rem;
        flex-wrap: wrap;
    }

    .contact-avatar {
        width: 5rem;
        height: 5rem;
        font-size: 1.75rem;
    }

    .empty-state {
        padding: 3rem 1.5rem;
        margin: 0 1rem;
    }

    .empty-state-icon {
        width: 6rem;
        height: 6rem;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .search-form {
        gap: 0.75rem;
    }

    .search-input {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .search-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .article-title {
        font-size: 1.2rem;
    }

    .article-content {
        padding: 1.25rem;
    }

    .sidebar-section {
        padding: 1.25rem;
    }
}

/* Override body background cho trang articles */
body:has(.articles-page) {
    background: none !important;
}

/* Fallback cho trình duyệt cũ không hỗ trợ :has() */
/* ====== Simple Articles Page Background ====== */
.articles-page {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    overflow: hidden;
}

/* ====== Contact Info Enhanced Styles ====== */
/* Override background cho sidebar chứa contact info */
.sidebar-section:has(.contact-info) {
    background: rgba(255, 255, 255, 1) !important;
    border: 2px solid rgba(139, 114, 71, 0.2);
    box-shadow: 0 10px 40px rgba(139, 114, 71, 0.15);
}

.sidebar-section:has(.contact-info)::before {
    background: linear-gradient(
        135deg,
        rgba(139, 114, 71, 0.02) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(139, 114, 71, 0.02) 100%
    ) !important;
}

/* Fallback cho trình duyệt không hỗ trợ :has() */
.contact-info-wrapper {
    background: rgba(255, 255, 255, 1) !important;
    border: 2px solid rgba(139, 114, 71, 0.2);
    box-shadow: 0 10px 40px rgba(139, 114, 71, 0.15);
}

.contact-info-wrapper::before {
    background: linear-gradient(
        135deg,
        rgba(139, 114, 71, 0.02) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(139, 114, 71, 0.02) 100%
    ) !important;
}

/* Enhanced Contact Avatar với logo căng đều */
.contact-avatar {
    width: 7rem !important;
    height: 7rem !important;
    background: rgba(255, 255, 255, 1) !important;
    border: 3px solid rgba(139, 114, 71, 0.3);
    box-shadow: 0 8px 25px rgba(139, 114, 71, 0.2);
    padding: 0.5rem;
}

.contact-avatar:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 114, 71, 0.3);
    border-color: rgba(139, 114, 71, 0.5);
}

/* Logo image styles để căng đều và đẹp */
.contact-avatar .logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-avatar:hover .logo-image {
    transform: scale(1.1);
}

/* Enhanced contact details */
.contact-details {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(139, 114, 71, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 114, 71, 0.05);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(139, 114, 71, 0.1);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

.contact-text {
    color: var(--text-gray);
    font-weight: 400;
    line-height: 1.4;
}

/* Enhanced social media links */
.social-media-links {
    margin-top: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 114, 71, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(139, 114, 71, 0.2);
    border-color: rgba(139, 114, 71, 0.4);
}

.social-link i {
    font-size: 1rem;
}

/* Enhanced contact direct actions */
.contact-direct-actions {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(139, 114, 71, 0.1);
}

.contact-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.contact-icon-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.1;
    transform: scale(0);
    transition: all 0.3s ease;
}

.contact-icon-btn:hover::before {
    transform: scale(1);
    opacity: 0.2;
}

.phone-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.phone-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.email-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.email-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.zalo-icon {
    background: linear-gradient(135deg, #0068ff, #0052cc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 104, 255, 0.3);
}

.zalo-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 104, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-icon-img {
    width: 40px;
    height: 29px;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
    /* filter: brightness(0) invert(1); */
}

.contact-icon-btn i {
    font-size: 1.25rem;
    z-index: 1;
    position: relative;
}

/* Mobile Responsive - Ẩn contact-details trên mobile */
@media (max-width: 767.98px) {
    .contact-details {
        display: none !important;
    }
}

/* Import Contact Sidebar Styles */
@import url("contact-sidebar.css");
