/* common_styles.css */

/* Global rule to prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1A202C; /* Than Chì - màu chủ đạo mới cho text chính */
    display: flex; /* For sticky footer layout */
    flex-direction: column; /* For sticky footer layout */
    min-height: 100vh; /* For sticky footer layout */
    font-weight: 400; /* Regular weight cho văn bản */
    line-height: 1.7; /* Tăng line-height cho dễ đọc */
    background-color: #F8F7F4; /* Màu nền trắng ngà */
}

/* Added for sticky footer if main content is wrapper */
main {
    flex-grow: 1; /* Allow main content to take available space */
}

/* Dải phân cách gradient nghệ thuật */
.gradient-hr {
    border: none;
    height: 1px;
    /* Tạo dải màu cam chuyển dần sang trong suốt */
    background: linear-gradient(to right, 
        transparent 0%, 
        #f97316 50%, 
        transparent 100%);
    opacity: 0.6;
    max-width: 200px; /* Giới hạn chiều rộng */
    margin: 2.5rem auto; /* Căn giữa và tạo khoảng cách trên dưới (40px) */
}

.hero-bg {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F7F4 100%); /* Chuyển từ trắng sang trắng ngà */
    color: #1A202C; /* Giữ màu chữ tối */
}

/* Kiểu dáng cho tiêu đề phụ phía trên (Pre-title) */
.hero-pretitle {
    font-size: 1rem; /* 16px */
    font-weight: 500; /* Medium weight */
    text-transform: uppercase; /* VIẾT HOA */
    letter-spacing: 0.2em; /* Tăng khoảng cách ký tự */
    color: #5A6474; /* Màu xám nhạt */
    margin-bottom: 2.5rem; /* Tăng lên 40px để tạo khoảng thở rõ rệt */
}

.section-title {
    font-weight: 600; /* Giảm từ 700 xuống 600 cho modern look */
    font-size: 2.25rem; /* 36px */
    line-height: 1.4; /* Tăng line-height cho dễ đọc */
    color: #1A202C; /* Than Chì - màu chủ đạo mới */
}

.section-subtitle {
    font-size: 1.125rem; /* 18px */
    color: #5A6474; /* Màu xám nhạt hơn cho text phụ */
    line-height: 1.8; /* Tăng line-height cho dễ đọc */
}

.card {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02); /* Tăng shadow mềm mại */
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04); /* Tăng shadow khi hover */
}

.card-content {
    flex-grow: 1; /* Allow content to take available space */
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600; /* Reduced from 700 for modern look */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother transition */
    text-transform: none; /* Remove uppercase for minimalist approach */
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent; /* Base border for all buttons */
    cursor: pointer;
    position: relative;
}

.btn:hover {
    transform: translateY(-1px); /* Subtle movement */
}

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

.btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); /* Cam kim loại gradient */
    color: white;
    border: 1px solid #f97316;
    box-shadow:
        0 4px 12px rgba(249, 115, 22, 0.15),
        0 2px 6px rgba(249, 115, 22, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2); /* Thêm inset highlight kim loại */
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%); /* Cam kim loại đậm hơn */
    border-color: #ea580c;
    box-shadow:
        0 6px 20px rgba(249, 115, 22, 0.25),
        0 3px 10px rgba(249, 115, 22, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3); /* Enhanced metallic highlight */
}

.btn-secondary {
    background-color: transparent;
    color: #1A202C; /* Than Chì cho text */
    border: 1px solid rgba(26, 32, 44, 0.2); /* Subtle border với màu mới */
}

.btn-secondary:hover {
    background-color: #F8F7F4; /* Trắng Ngà cho hover background */
    color: #1A202C; /* Giữ màu Than Chì */
    border-color: rgba(26, 32, 44, 0.3); /* Slightly darker border on hover */
}

.btn-nav { /* Specific for navigation buttons if smaller style is needed */
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    text-transform: none; /* Navigation buttons usually aren't uppercase */
}

/* Tertiary Button - Text-only minimalist style */
.btn-tertiary {
    background: transparent;
    color: #888888; /* Warm gray for subtle actions */
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: none;
    position: relative;
}

.btn-tertiary:hover {
    color: #2D2D2D; /* Darken to charcoal on hover */
    background-color: rgba(45, 45, 45, 0.04); /* Very subtle background */
    transform: translateY(-1px); /* Minimal movement */
}

.btn-tertiary:active {
    transform: translateY(0);
    background-color: rgba(45, 45, 45, 0.08);
}

.decorative-text {
    font-size: 0.875rem; /* 14px */
    color: #5A6474; /* Màu xám nhạt mới cho decorative elements */
    font-weight: 400; /* Giảm font-weight cho elegant look */
    letter-spacing: 0.1em;
}

/* ===== ĐỀ XUẤT CẢI TIẾN FOOTER (PHIÊN BẢN XANH NAVY ĐẬM) ===== */

:root {
    /* Dễ dàng thay đổi sắc độ tại đây */
    --navy-background: #020617; /* Màu nền xanh navy rất tối */
    --orange-accent: #f97316;   /* Màu nhấn cam thương hiệu */
    --orange-accent-hover: #fb923c; /* Màu nhấn khi hover, sáng hơn */
    --text-primary: #E0E6E9;    /* Màu chữ chính */
    --text-secondary: #94A3B8;   /* Màu chữ phụ / link */
    --border-color: #1E293B;     /* Màu viền, xám xanh đậm */
}

/* 1. Nền footer tinh tế, tạo chiều sâu */
.footer-bg {
    background: var(--navy-background);
    color: var(--text-primary);
    position: relative;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
    padding-top: 6rem;
    padding-bottom: 4rem;
}

/* 2. Liên kết (links) với màu nhấn bạc thanh lịch */
.footer-link {
    color: var(--text-secondary);
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    text-decoration: none;
    font-weight: 400;
}

.footer-link:hover {
    color: var(--orange-accent-hover); /* Màu cam sáng khi hover */
    transform: translateX(2px);
}

/* 3. Tiêu đề các mục trong footer */
footer h3, footer h4 {
    color: #FFFFFF;
    font-weight: 600;
    letter-spacing: 0.02em; /* Giãn nhẹ ký tự cho thoáng đãng */
    margin-bottom: 1.5rem; /* Tăng khoảng cách dưới tiêu đề */
}

/* 4. Icon mạng xã hội - Tối giản, đồng bộ và đẳng cấp */
#social-links .footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
}

#social-links .footer-link:hover {
    color: var(--navy-background);      /* Icon chuyển sang màu nền */
    background: var(--orange-accent);   /* Nền cam */
    border-color: var(--orange-accent); /* Viền cam */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.2); /* Shadow nhẹ màu cam */
}

/* Specific social media hover colors */
#social-links #facebook:hover {
    background: rgba(59, 89, 152, 0.2);
    border-color: rgba(59, 89, 152, 0.3);
    box-shadow: 0 8px 25px rgba(59, 89, 152, 0.15);
}

#social-links #x-twitter:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#social-links #youtube:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.15);
}

#social-links #tiktok:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#social-links #zalo:hover {
    background: rgba(0, 132, 255, 0.2);
    border-color: rgba(0, 132, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 132, 255, 0.15);
}

/* Zalo icon styling */
#social-links #zalo span {
    font-size: 22px !important;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* 5. Cập nhật các màu tiện ích (utility colors) */
/* Ghi đè lên text-orange-400 của bạn bằng màu nhấn cam */
footer .text-orange-400 {
    color: var(--orange-accent) !important;
}
footer .text-gray-300 {
    color: var(--text-primary) !important;
}
footer .text-gray-400 {
    color: var(--text-secondary) !important;
}
footer .text-gray-500 {
    color: #64748B !important; /* Xám xanh nhạt hơn */
}
footer .border-gray-700 {
    border-color: var(--border-color) !important;
}

/* 6. Hiệu ứng hover cho các icon trong footer */
footer i.fas, footer i.fab {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

footer i.fas:hover, footer i.fab:hover {
    color: var(--orange-accent-hover) !important; /* Cam sáng cho hover */
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
    transform: scale(1.1);
}

/* 8. Styling cho logo footer với hiệu ứng cao cấp */
#footer-logo {
    filter: brightness(1.1) contrast(1.05);
    transition: all 0.3s ease;
}

#footer-logo:hover {
    filter: brightness(1.2) contrast(1.1);
    transform: scale(1.02);
}

/* 9. Cải thiện typography cho footer */
footer p, footer span {
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* 10. Hiệu ứng gradient cho text quan trọng */
footer .text-orange-400.font-medium {
    background: linear-gradient(135deg, var(--orange-accent) 0%, var(--orange-accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

/* --- Consolidated Form Input Styles --- */
.form-input,
input[type="text"].form-input-like, /* Apply to specific inputs if not using .form-input class */
input[type="email"].form-input-like,
input[type="password"].form-input-like,
input[type="search"].form-input-like,
input[type="tel"].form-input-like,
input[type="url"].form-input-like,
input[type="number"].form-input-like,
textarea.form-input-like,
select.form-input-like {
    width: 100%;
    padding: 0.75rem 1rem; /* 12px 16px */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Subtle border for minimalist look */
    border-radius: 0.375rem; /* rounded-md (6px) */
    font-size: 0.875rem; /* 14px (Added from second definition) */
    color: #2D2D2D; /* Charcoal text for consistency */
    background-color: #fff; /* Ensure background is white */
    transition: border-color 0.2s ease, box-shadow 0.2s ease; /* Added from second definition */
    line-height: 1.5; /* Ensure consistent line height */
}

.form-input:focus,
input[type="text"].form-input-like:focus,
input[type="email"].form-input-like:focus,
input[type="password"].form-input-like:focus,
input[type="search"].form-input-like:focus,
input[type="tel"].form-input-like:focus,
input[type="url"].form-input-like:focus,
input[type="number"].form-input-like:focus,
textarea.form-input-like:focus,
select.form-input-like:focus {
    outline: none;
    border-color: #f97316; /* Cam kim loại */
    /* Consistent shadow với cam kim loại */
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.25);
}

/* Style for select dropdown arrow if needed (browser default might be fine) */
select.form-input-like {
    appearance: none; /* Remove default S.O. arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem; /* Make space for arrow */
}


.form-label {
    display: block;
    font-weight: 400; /* Giảm font-weight cho elegant look */
    color: #1A202C; /* Than Chì cho form labels */
    margin-bottom: 0.375rem; /* 6px */
    font-size: 0.875rem;
}
/* --- End Form Input Styles --- */


.text-theme-primary {
    color: #f97316; /* Cam kim loại cho primary elements */
    background: linear-gradient(135deg, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-theme-secondary {
    color: #5A6474; /* Màu xám nhạt mới cho secondary text */
}

.icon-theme {
    color: #f97316; /* Cam kim loại cho icons */
}

/* Navigation Styles */
.nav-link {
    color: #1A202C; /* Than Chì cho navigation */
    font-weight: 400; /* Lighter weight for minimalist look */
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem; /* rounded-md */
    transition: color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    cursor: default; /* Default for non-links like dropdown toggles */
}
.nav-link[href]:not([href='javascript:void(0);']):not([href='#']) { /* Ensure actual links are pointer */
    cursor: pointer;
}
.nav-link:hover, .nav-link.active-dropdown { /* Style for active dropdown parent */
    color: #f97316; /* Cam kim loại cho hover interactions */
    background-color: #F8F7F4; /* Trắng Ngà background */
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #2D2D2D; /* Charcoal for mobile nav */
}
.mobile-nav-link:hover {
    background-color: #F7F8FA; /* Light gray */
    color: #f97316; /* Orange for hover */
}

.dropdown {
    position: relative;
}
.dropdown-content {
    display: none; /* Hidden by default, shown on hover/JS toggle */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 240px; /* Or adjust as needed */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 10; /* Ensure it's above other content */
    border-radius: 0.375rem; /* rounded-md */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
/* Pure CSS hover for dropdown (can be enhanced with JS) */
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-link {
    color: #1A202C; /* Than Chì cho dropdown links */
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.875rem;
    font-weight: 400; /* Lighter weight */
    cursor: pointer;
}
.dropdown-link:hover {
    background-color: #F8F7F4; /* Trắng Ngà */
    color: #f97316; /* Cam kim loại cho hover */
}
.nav-link .fa-chevron-down {
    margin-left: 0.35rem;
    font-size: 0.7rem;
    transition: transform 0.2s ease-in-out;
}
.dropdown:hover .nav-link .fa-chevron-down {
    transform: rotate(180deg);
}

/* Mobile Submenu specific */
.mobile-submenu {
    padding-left: 1.5rem; /* Indent submenu items */
    /* display: none; Initially hidden, toggled by JS */
}
.mobile-submenu-toggle { /* The clickable item to open submenu */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.mobile-submenu-toggle .fa-chevron-down {
    transition: transform 0.2s ease-in-out;
}
.mobile-submenu-toggle.open .fa-chevron-down { /* Class 'open' added by JS */
    transform: rotate(180deg);
}


/* Contact Float Button Styles */
.contact-options-wrapper {
    position: absolute;
    bottom: 100%; /* Position above the trigger */
    right: 0;
    padding-bottom: 0.75rem; /* Space between trigger and first button */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
#quick-contact-overlay:hover .contact-options-wrapper { /* Assuming #quick-contact-overlay is the trigger */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.contact-options-container { /* Not strictly needed if wrapper handles flex */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.contact-option-item {
    background-color: #4A90E2; /* Example color, can be themed */
    color: white;
    width: 48px;  /* Or use Tailwind w-12 */
    height: 48px; /* Or use Tailwind h-12 */
    border-radius: 9999px; /* full */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: background-color 0.3s ease;
}
.contact-option-item:first-child {
    margin-top: 0;
}
/* End Contact Float Button Styles */


.article-card-image {
    width: 100%;
    height: 200px; /* Or your desired height */
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0; /* Rounded top corners */
}

.loading-message, .error-message {
    text-align: center;
    padding: 2rem;
    color: #71717a; /* zinc-500 */
}

/* Styles for recruitment page specific elements */
.job-listing-card {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06); /* Consistent with other cards */
    border-radius: 0.75rem; /* 12px */
    padding: 1.5rem; /* 24px */
    margin-bottom: 1.5rem; /* 24px */
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02); /* Consistent soft shadows */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.job-listing-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04);
}
.job-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    color: #1f2937; /* Gray 800 */
    margin-bottom: 0.5rem;
}
.job-location, .job-type, .job-salary {
    font-size: 0.875rem; /* 14px */
    color: #6b7280; /* Gray 500 */
    margin-bottom: 0.25rem;
    display: inline-flex;
    align-items: center;
}
.job-location i, .job-type i, .job-salary i {
    margin-right: 0.375rem; /* 6px */
    color: #f97316; /* Orange 500 */
}
.job-description-title {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: #374151; /* Gray 700 */
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.job-description-content {
    color: #4b5563; /* Gray 600 */
    margin-bottom: 1rem;
    line-height: 1.6;
}
.job-description-list {
    list-style-type: disc;
    list-style-position: inside; /* Or outside */
    color: #4b5563; /* Gray 600 */
    padding-left: 0.5rem; /* Adjust if list-style-position is outside */
}
.job-description-list li {
    margin-bottom: 0.25rem;
}
/* End Recruitment Styles */

/* Breadcrumb Styles */
.breadcrumb {
    padding: 1rem 0; /* Adjust as needed */
    font-size: 0.875rem; /* 14px */
    color: #6b7280; /* Gray 500 */
}
.breadcrumb a {
    color: #f97316; /* Orange 500 - Theme primary */
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span.separator { /* Class for ">" or "/" separator */
    margin: 0 0.5rem;
    color: #9ca3af; /* Gray 400 */
}
.breadcrumb span.current-page { /* Class for the current page text */
    color: #374151; /* Gray 700 */
    font-weight: 500;
}
/* Parent category styling - orange color */
.breadcrumb .text-orange-500 {
    color: #f97316 !important; /* Orange 500 - Theme primary */
}
.breadcrumb .font-medium {
    font-weight: 500;
}
/* End Breadcrumb Styles */

/* Fixed Header Body Padding - Fallback */
body {
    padding-top: 75px !important; /* Further reduced fallback padding, will be overridden by JavaScript */
}

/* Admin Panel Override - Remove padding for admin pages */
body.admin-panel {
    padding-top: 0 !important; /* Remove padding for admin panel */
}

/* Ensure main content has proper spacing */
main, .main-content {
    position: relative;
    z-index: 1;
}

/* Additional spacing for breadcrumb on mobile */
@media (max-width: 768px) {
    body {
        padding-top: 62px !important; /* Giảm thêm 23px cho mobile (85-23=62) */
    }

    /* Admin Panel Override for mobile */
    body.admin-panel {
        padding-top: 0 !important; /* Remove padding for admin panel on mobile too */
    }
}

/* Save Article Button Styles */
.save-article-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

.save-article-btn:hover {
    transform: translateY(-1px);
}

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

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

/* ===== METALLIC ORANGE EFFECTS ===== */
/* Hiệu ứng kim loại cho màu cam */
.metallic-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
    background-size: 200% 200%;
    animation: metallicShine 3s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes metallicShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.metallic-button {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    position: relative;
    overflow: hidden;
}

.metallic-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.metallic-button:hover::before {
    left: 100%;
}

/* ===== GLASS MORPHISM EFFECTS ===== */
/* Modern Minimalist Glass Card Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02),
        inset 0 1px 1px rgba(255, 255, 255, 0.4); /* Thêm inset shadow */
    transition: all 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 1px rgba(255, 255, 255, 0.6); /* Tăng inset shadow khi hover */
}

/* Glass Button - Primary CTA with refined elegance */
.glass-button {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); /* Cam kim loại gradient */
    color: white;
    padding: 0.875rem 2.5rem;
    border-radius: 9999px;
    font-weight: 500; /* Lighter weight for modern look */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 16px rgba(249, 115, 22, 0.15),
        0 2px 8px rgba(249, 115, 22, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25); /* Metallic highlight */
}

/* Double-Pass Shimmer Animation */
.glass-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: none;
    opacity: 0;
}

.glass-button:hover::before {
    animation: shimmer-double-pass 1.4s ease-in-out;
}

@keyframes shimmer-double-pass {
    0% {
        left: -100%;
        opacity: 1;
    }
    45% {
        left: 100%;
        opacity: 1;
    }
    50% {
        left: 100%;
        opacity: 1;
    }
    95% {
        left: -100%;
        opacity: 1;
    }
    100% {
        left: -100%;
        opacity: 0;
    }
}

/* Single-pass shimmer animation for page load */
@keyframes shimmer-page-load {
    0% {
        left: -100%;
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.glass-button:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%); /* Cam kim loại đậm hơn */
    transform: translateY(-2px) scale(1.02); /* Subtle movement */
    box-shadow:
        0 8px 24px rgba(249, 115, 22, 0.25),
        0 4px 12px rgba(249, 115, 22, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3); /* Enhanced metallic highlight */
}

/* Page load shimmer effect for glass-button */
.glass-button.page-load-shimmer::before {
    animation: shimmer-page-load 1.2s ease-out;
}

/* Glass Button Secondary - Minimalist transparent style */
.glass-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #1A202C;
    padding: 0.875rem 2.5rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    text-decoration: none; /* Remove underline for links */
}

.glass-button-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: none;
    opacity: 0;
    pointer-events: none;
}

/* Fix hover area issue - ensure full button is hoverable */
.glass-button-secondary * {
    pointer-events: none; /* Prevent child elements from interfering with hover */
}

/* Ensure link behaves like button */
a.glass-button-secondary {
    text-decoration: none !important;
    display: inline-flex;
    user-select: none;
}

a.glass-button-secondary:visited {
    color: #1A202C; /* Keep same color after visited */
}

.glass-button-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04);
    color: #1A202C;
}

/* Double shimmer effect on hover */
.glass-button-secondary:hover::before {
    animation: shimmer-double-pass 1.4s ease-in-out;
}

/* Page load shimmer effect - runs once on page load */
.glass-button-secondary.page-load-shimmer::before {
    animation: shimmer-page-load 1.2s ease-out 0.3s; /* Added delay for better UX */
}

/* Page load shimmer - single pass */
@keyframes shimmer-page-load {
    0% {
        left: -100%;
        opacity: 0;
    }
    20% {
        left: -100%;
        opacity: 1;
    }
    80% {
        left: 100%;
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Glass Button Tertiary - Text-only minimalist style */
.glass-button-tertiary {
    background: transparent;
    color: #888888; /* Warm gray for subtle actions */
    padding: 0.875rem 2.5rem;
    border-radius: 9999px;
    font-weight: 400; /* Light weight for elegance */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    border: none;
    box-shadow: none;
}

.glass-button-tertiary:hover {
    color: #2D2D2D; /* Darken to charcoal on hover */
    background: rgba(45, 45, 45, 0.04); /* Very subtle background */
    transform: translateY(-1px) scale(1.01); /* Minimal movement */
}

.glass-button-tertiary:active {
    transform: translateY(0) scale(1);
    background: rgba(45, 45, 45, 0.08);
}

/* Glass Button White - Transparent with white border */
.glass-button-white {
    background: transparent;
    color: white;
    padding: 0.875rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    border: 2px solid white;
    box-shadow:
        0 4px 15px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-button-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: none;
    opacity: 0;
}

.glass-button-white:hover::before {
    animation: shimmer-double-pass 1.4s ease-in-out;
}

.glass-button-white:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-4px) scale(1.05);
    border-color: white;
    box-shadow:
        0 12px 35px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Page load shimmer effect for glass-button-white */
.glass-button-white.page-load-shimmer::before {
    animation: shimmer-page-load 1.2s ease-out;
}

/* Glass Container for sections - Minimalist approach */
.glass-container {
    background: rgba(247, 248, 250, 0.9); /* Light gray background */
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(0, 0, 0, 0.06); /* Subtle charcoal border */
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth hover transition */
    cursor: pointer; /* Indicate interactivity */
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-container:hover {
    transform: translateY(-8px) scale(1.02); /* Same hover effect as glass-card */
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(249, 115, 22, 0.15); /* Subtle orange border on hover */
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.08),
        0 6px 16px rgba(0, 0, 0, 0.06),
        0 3px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(249, 115, 22, 0.05); /* Subtle orange glow */
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    pointer-events: none;
}

/* Glass Icon Container - Minimalist approach */
.glass-icon {
    background: rgba(247, 248, 250, 0.8); /* Light gray background */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06); /* Subtle charcoal border */
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Smooth transition for icon color */
.glass-icon i,
.glass-icon .fas,
.glass-icon .fab,
.glass-icon .far {
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-icon:hover {
    background: rgba(255, 255, 255, 0.95); /* Nền trắng sáng khi hover */
    border: 1px solid rgba(249, 115, 22, 0.3); /* Viền cam nhẹ */
    transform: scale(1.08); /* Bỏ rotate(2deg) để giữ sự nghiêm túc */
    box-shadow:
        0 6px 16px rgba(249, 115, 22, 0.15),
        0 3px 8px rgba(249, 115, 22, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8); /* Highlight trắng */
}

/* Icon chuyển thành màu cam khi hover để tạo tương phản */
.glass-icon:hover i,
.glass-icon:hover .fas,
.glass-icon:hover .fab,
.glass-icon:hover .far {
    color: #f97316 !important; /* Icon màu cam trên nền trắng */
}

/* Responsive adjustments for glass effects */
@media (max-width: 768px) {
    .glass-card {
        border-radius: 0.75rem; /* Smaller radius on mobile */
        padding: 1.25rem; /* Slightly less padding */
    }

    .glass-card:hover {
        transform: translateY(-4px) scale(1.01); /* Moderate lift on mobile */
        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.06),
            0 4px 10px rgba(0, 0, 0, 0.04),
            0 0 0 1px rgba(249, 115, 22, 0.05); /* Subtle orange glow */
    }

    .glass-button,
    .glass-button-secondary,
    .glass-button-tertiary,
    .glass-button-white {
        padding: 0.75rem 2rem;
        font-size: 0.875rem;
    }

    .glass-icon {
        width: 3rem;
        height: 3rem;
    }

    .glass-icon:hover {
        transform: scale(1.05); /* More subtle on mobile, bỏ rotate */
    }

    .glass-icon:hover i,
    .glass-icon:hover .fas,
    .glass-icon:hover .fab,
    .glass-icon:hover .far {
        color: #f97316 !important; /* Icon màu cam trên nền trắng */
    }
}

/* Enhanced glass effects for better visual hierarchy */
.glass-card-subtle {
    background: rgba(255, 255, 255, 0.85); /* More opaque for readability */
    backdrop-filter: blur(10px) saturate(110%); /* Reduced blur for clarity */
    -webkit-backdrop-filter: blur(10px) saturate(110%);
    border: 1px solid rgba(0, 0, 0, 0.04); /* Very subtle charcoal border */
    border-radius: 0.75rem; /* Slightly smaller radius */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother easing */
    position: relative;
    overflow: hidden;
    cursor: pointer; /* Indicate interactivity */
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.03),
        0 1px 6px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-card-subtle:hover {
    transform: translateY(-6px) scale(1.015); /* Gentle lift with slight scale */
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(249, 115, 22, 0.1); /* Subtle orange border */
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(249, 115, 22, 0.03), /* Very subtle orange glow */
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ===== HEADER GLASS EFFECTS (SUBTLE) ===== */
/* Glass Header - Modern Minimalist approach */
.glass-header {
    background: rgba(255, 255, 255, 0.98) !important; /* More opaque for clarity */
    backdrop-filter: blur(8px) saturate(110%); /* Reduced blur for sharpness */
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04); /* Subtle charcoal border */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02); /* Very subtle shadow */
}

.glass-header.scrolled {
    background: rgba(255, 255, 255, 0.99) !important; /* Nearly opaque when scrolled */
    backdrop-filter: blur(10px) saturate(115%); /* Slightly more blur when scrolled */
    -webkit-backdrop-filter: blur(10px) saturate(115%);
    border-bottom-color: rgba(0, 0, 0, 0.08); /* Slightly darker border */
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02); /* Subtle shadows */
}

/* Glass Dropdown - Modern Minimalist */
.glass-dropdown {
    background: rgba(255, 255, 255, 0.98); /* More opaque for readability */
    backdrop-filter: blur(8px) saturate(110%); /* Reduced blur for sharpness */
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    border: 1px solid rgba(0, 0, 0, 0.08); /* Subtle charcoal border */
    border-radius: 0.75rem;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02); /* Soft multi-layer shadows */
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px); /* Subtle movement */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass Mobile Menu - Modern Minimalist */
.glass-mobile-menu {
    background: rgba(255, 255, 255, 0.98); /* More opaque for readability */
    backdrop-filter: blur(8px) saturate(110%); /* Reduced blur for sharpness */
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    border-top: 1px solid rgba(0, 0, 0, 0.06); /* Subtle charcoal border */
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04); /* Subtle upward shadow */
}

/* ===== MODAL GLASS EFFECTS (SUBTLE) ===== */
/* Glass Modal Backdrop */
.glass-modal-backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Glass Modal Content */
.glass-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    box-shadow:
        0 20px 40px rgba(31, 38, 135, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.glass-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: inherit;
    pointer-events: none;
}

/* Header Button Adjustments */
.glass-button.btn-nav,
.glass-button-secondary.btn-nav,
.glass-button-tertiary.btn-nav,
.glass-button-white.btn-nav {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    min-height: auto;
}

/* Modal Button Text Centering */
.glass-button span,
.glass-button-secondary span,
.glass-button-tertiary span,
.glass-button-white span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Ensure all glass button links work properly */
a.glass-button,
a.glass-button-secondary,
a.glass-button-tertiary,
a.glass-button-white {
    text-decoration: none !important;
    user-select: none;
}

/* Fix any potential z-index or stacking issues */
.glass-button *,
.glass-button-secondary *,
.glass-button-tertiary *,
.glass-button-white * {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.save-article-btn:hover i {
    transform: scale(1.1);
}

/* Saved state styles */
.save-article-btn.saved {
    color: #f97316 !important;
}

.save-article-btn.saved i {
    color: #f97316 !important;
}

/* Additional saved state styles for different contexts */
.save-article-btn[data-saved="true"] {
    color: #f97316 !important;
}

.save-article-btn[data-saved="true"] i {
    color: #f97316 !important;
}

/* Loading state */
.save-article-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.save-article-btn:disabled:hover {
    transform: none;
}

/* Tooltip effect for save button */
.save-article-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    margin-bottom: 0.5rem;
}

.save-article-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px; /* Cùng level với contact buttons */
    right: 100px; /* Dịch sang trái để không che nút liên hệ */
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(251, 146, 60, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    z-index: 9998;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #f97316, #ea580c);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(251, 146, 60, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 25.5px; /* Tâm điểm: 25.5px + 22.5px = 48px (ngang với nút liên hệ mobile) */
        right: 85px; /* Dịch sang trái để không che nút liên hệ mobile */
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Pulse animation when first appears */
.scroll-to-top.pulse {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 4px 20px rgba(251, 146, 60, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(251, 146, 60, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(251, 146, 60, 0.3);
    }
}

/* Quick Contact */
#quick-contact-overlay {
    position: fixed;
    bottom: 15px; /* Điều chỉnh để tâm ngang với scroll button: 15px + 28px = 43px */
    right: 20px;
    z-index: 1000;
}

/* ===== QUICK CONTACT DESIGN SYSTEM ===== */
.contact-options-wrapper {
    position: absolute;
    bottom: 60px; /* Điều chỉnh để căn chỉnh chính xác với tâm nút tròn */
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    padding: 0; /* Loại bỏ padding để căn chỉnh chính xác */
    margin: 0; /* Loại bỏ margin để căn chỉnh chính xác */
}

#quick-contact-overlay:hover .contact-options-wrapper,
#quick-contact-overlay.active .contact-options-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Tăng khu vực hover cho toàn bộ overlay */
#quick-contact-overlay::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: -1;
}

.contact-options-container {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Khoảng cách giữa các nút */
    align-items: center; /* Căn giữa các button */
}

.contact-option-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0; /* Loại bỏ margin để căn chỉnh chính xác với nút tròn */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.contact-option-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-option-item:hover::before {
    opacity: 1;
}

.contact-option-item:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

/* Căn chỉnh icon trong contact option items */
.contact-option-item i {
    line-height: 1;
    vertical-align: middle;
}

/* Căn chỉnh chữ Z cho Zalo */
.contact-option-item span {
    line-height: 1;
    vertical-align: middle;
    margin-top: -2px; /* Điều chỉnh nhỏ cho chữ Z */
}

/* Căn chỉnh hoàn hảo - loại bỏ translateY để tất cả nút cùng trục */
#quick-facebook:hover {
    transform: translateY(-3px) scale(1.08);
}

#quick-phone:hover {
    transform: translateY(-3px) scale(1.08);
}

#quick-zalo:hover {
    transform: translateY(-3px) scale(1.08);
}

#quick-contact-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7b00, #f97316);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 22px;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#quick-contact-toggle:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.4);
}

/* Căn chỉnh icon tai nghe */
#quick-contact-toggle i {
    line-height: 1;
    vertical-align: middle;
}

/* Mobile responsive for quick contact */
@media (max-width: 768px) {
    #quick-contact-overlay {
        bottom: 8px; /* Điều chỉnh để tâm ngang với scroll button mobile: 8px + 26px = 34px ≈ 36px */
        right: 15px;
    }

    #quick-contact-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .contact-options-wrapper {
        bottom: 50px; /* Điều chỉnh cho nút 45px */
        padding: 0;
        margin: 0;
    }

    .contact-options-container {
        gap: 6px; /* Khoảng cách phù hợp trên mobile */
    }

    .contact-option-item {
        width: 45px;
        height: 45px;
        font-size: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        margin: 0; /* Loại bỏ margin để căn chỉnh chính xác */
    }

    .contact-option-item:hover {
        transform: translateY(-1px) scale(1.05);
        z-index: 10;
    }

    /* Mobile adjustments - căn chỉnh hoàn hảo */
    #quick-facebook:hover {
        transform: translateY(-1px) scale(1.05);
    }

    #quick-phone:hover {
        transform: translateY(-1px) scale(1.05);
    }

    #quick-zalo:hover {
        transform: translateY(-1px) scale(1.05);
    }

    /* Mobile click behavior */
    #quick-contact-overlay.active .contact-options-wrapper {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Scroll button trên mobile */
    .scroll-to-top {
        bottom: 15px;
        right: 80px; /* Tăng khoảng cách để tránh quick contact button */
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* Styles for contact page specific elements */
.social-icon-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; /* w-14 */
    height: 56px; /* h-14 */
    border-radius: 9999px; /* full */
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.social-icon-contact:hover {
    transform: scale(1.1);
}
/* End Contact Page Styles */


/* Modal Styles (Consolidated and refined) */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    display: flex; /* Used with align-items and justify-content to center modal */
    align-items: center;
    justify-content: center;
    z-index: 10001; /* Increased z-index to be above header (9999) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    pointer-events: none; /* Prevent interaction when hidden */
}
.modal-backdrop.active { /* Class added by JS to show modal */
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Enable interaction when active */
}

/* Prevent header from interfering with modal */
body.modal-open #mainHeader {
    pointer-events: none !important;
}

body.modal-open .modal-backdrop {
    pointer-events: auto !important;
}

body.modal-open .modal-content {
    pointer-events: auto !important;
}

/* Hide header on mobile when modal is active */
@media (max-width: 768px) {
    body.modal-open #mainHeader {
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        pointer-events: none !important;
    }

    body.modal-open {
        padding-top: 0 !important;
    }
}
.modal-content {
    background-color: white;
    padding: 2rem; /* 32px */
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    width: 90%; /* Responsive width */
    max-width: 500px; /* Max width for larger screens */
    position: relative; /* For positioning close button */
    transform: translateY(-20px) scale(0.95); /* Initial state for animation */
    transition: transform 0.3s ease-out;
}
.modal-backdrop.active .modal-content {
    transform: translateY(0) scale(1); /* Active state for animation */
}
.modal-close-button {
    position: absolute;
    top: 1rem; /* 16px */
    right: 1rem; /* 16px */
    background: none;
    border: none;
    font-size: 1.5rem; /* 24px */
    color: #6b7280; /* Gray-500 */
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1; /* Ensure consistent height */
}
.modal-close-button:hover {
    color: #1f2937; /* Gray-800 */
}
/* End Modal Styles */


/* Article body styles (from .article-body class) */
/* Old article styling removed - replaced with enhanced version above */
/* Old list, link and blockquote styling removed - replaced with enhanced version above */
#articleBodyContent img, .article-body img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 0.5rem; 
    margin: 1.5rem auto; 
    display: block; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease;
}

/* Handle broken images in article content */
#articleBodyContent img[src=""], 
#articleBodyContent img:not([src]), 
#articleBodyContent img[src="#"],
.article-body img[src=""], 
.article-body img:not([src]), 
.article-body img[src="#"] {
    display: none;
}

/* Style for broken image placeholder */
.broken-image-placeholder {
    min-height: 200px;
    background-color: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin: 1.5rem auto;
    padding: 2rem;
    text-align: center;
    max-width: 100%;
    transition: all 0.3s ease;
}

.broken-image-placeholder:hover {
    border-color: #9ca3af;
    background-color: #f3f4f6;
}

/* Hide images with error class */
#articleBodyContent img.error,
.article-body img.error {
    display: none !important;
}

/* Fallback for older broken images handling */
#articleBodyContent img,
.article-body img {
    position: relative;
    transition: opacity 0.3s ease;
}

/* Loading state for images */
#articleBodyContent img[data-processed="false"],
.article-body img[data-processed="false"] {
    opacity: 0.7;
}

#articleBodyContent img[data-processed="true"],
.article-body img[data-processed="true"] {
    opacity: 1;
}

/* Style for images that failed to load but haven't been replaced yet */
#articleBodyContent img[data-error-reason],
.article-body img[data-error-reason] {
    display: none;
}

/* Responsive broken image placeholder */
@media (max-width: 768px) {
    .broken-image-placeholder {
        min-height: 150px;
        padding: 1.5rem;
        margin: 1rem auto;
        font-size: 0.8rem;
    }
    
    .broken-image-placeholder div:first-child {
        font-size: 1.5rem !important;
    }
}

/* Logo optimizations for 150x106 ratio */
#site-logo {
    height: 3rem; /* 48px */
    width: auto;
    object-fit: contain;
    max-width: none;
}

@media (min-width: 768px) {
    #site-logo {
        height: 3.5rem; /* 56px */
    }
}

/* Admin logo optimizations */
#admin-logo {
    height: 2.5rem; /* 40px */
    width: auto;
    object-fit: contain;
    max-width: 9rem; /* 144px */
}

/* Footer logo optimizations */
#footer-logo {
    height: 3rem; /* 48px */
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    #footer-logo {
        height: 3.5rem; /* 56px */
    }
}

/* Logo preview optimizations */
.logo-preview-img {
    object-fit: contain;
    background-color: #f9fafb;
    padding: 0.5rem;
}

/* Ensure logos don't get cut off */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
}

/* Logo upload preview styling */
.logo-upload-preview {
    max-width: 100%;
    height: auto;
    max-height: 5rem;
    object-fit: contain;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    padding: 0.5rem;
}

/* Loading States & Animations - Orange Gradient */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid transparent;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #f97316, #ea580c, #dc2626, #f97316);
    animation: spin-gradient 1.2s linear infinite;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: white;
    border-radius: 50%;
}

.loading-spinner-large {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    border: 4px solid transparent;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #f97316, #ea580c, #dc2626, #f97316);
    animation: spin-gradient 1.2s linear infinite;
    position: relative;
}

.loading-spinner-large::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
}

/* Skeleton Loading Animation */
.skeleton {
    background-color: #e5e7eb;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    border-radius: 0.25rem;
}

.skeleton-text {
    height: 1rem;
    background-color: #e5e7eb;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    background-color: #e5e7eb;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 3rem;
    height: 3rem;
    background-color: #e5e7eb;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    border-radius: 50%;
}

.skeleton-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.skeleton-image {
    width: 100%;
    height: 12rem;
    background-color: #e5e7eb;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Error States */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.error-message .error-icon {
    color: #ef4444;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.success-message .success-icon {
    color: #22c55e;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.warning-message {
    background-color: #fffbeb;
    border: 1px solid #fed7aa;
    color: #d97706;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.warning-message .warning-icon {
    color: #f59e0b;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.info-message {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.info-message .info-icon {
    color: #3b82f6;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.loading-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    max-width: 24rem;
    margin: 0 1rem;
}

/* Button Loading States - Orange Gradient */
.btn-loading {
    position: relative;
    color: transparent !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
    pointer-events: none !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #f97316, #ea580c, #dc2626, #f97316);
    animation: spin-gradient 1.2s linear infinite;
    z-index: 2;
}

.btn-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    background: white;
    border-radius: 50%;
    z-index: 3;
}

/* Ensure loading state only applies when class is present */
button:not(.btn-loading)::after,
button:not(.btn-loading)::before {
    display: none !important;
}

/* Reset any potential loading states on buttons by default */
.glass-button:not(.btn-loading) {
    color: white !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.glass-button:not(.btn-loading) span {
    opacity: 1 !important;
}

/* Fade Transitions */
.fade-in {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.fade-in.show {
    opacity: 1;
}

.slide-up {
    transform: translateY(1rem);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.slide-up.show {
    transform: translateY(0);
    opacity: 1;
}

/* Form Validation States */
.form-input-error {
    border-color: #fca5a5;
}
.form-input-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.form-input-success {
    border-color: #86efac;
}
.form-input-success:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.form-error-text {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
}

.form-error-text .error-icon {
    color: #ef4444;
    margin-right: 0.25rem;
    font-size: 0.875rem;
}

.form-success-text {
    color: #15803d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
}

.form-success-text .success-icon {
    color: #22c55e;
    margin-right: 0.25rem;
    font-size: 0.875rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.empty-state-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

/* Progress Indicators */
.progress-bar {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.5rem;
}

.progress-fill {
    background-color: #f97316;
    height: 100%;
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
}

/* Tooltip */
.tooltip {
    position: absolute;
    z-index: 10;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: white;
    background-color: #1f2937;
    border-radius: 0.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.tooltip.show {
    opacity: 1;
    pointer-events: auto;
}

/* Pulse animation for skeleton loading */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Loading States */
@media (max-width: 768px) {
    .loading-spinner-large {
        width: 2rem;
        height: 2rem;
        border-width: 2px;
    }
    
    .skeleton-card {
        padding: 1rem;
    }
}

/* Dark Mode Support for Loading States */
@media (prefers-color-scheme: dark) {
    .skeleton {
        background-color: #374151;
    }
    
    .skeleton-text {
        background-color: #374151;
    }
    
    .skeleton-title {
        background-color: #374151;
    }
    
    .skeleton-avatar {
        background-color: #374151;
    }
    
    .skeleton-image {
        background-color: #374151;
    }
}

/* Refresh button animation */
.fa-sync-alt {
    transition: transform 0.3s ease-in-out;
}

.fa-sync-alt:hover {
    transform: rotate(180deg);
}

/* Animation khi đang refresh */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gradient spinner animation */
@keyframes spin-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.refreshing .fa-sync-alt {
    animation: spin 1s linear infinite;
}

/* Custom message styling cho refresh */
.refresh-message {
    background: linear-gradient(45deg, #f97316, #fb923c);
    color: white;
    border: none;
}

/* Smooth transition cho tất cả buttons */
button {
    transition: all 0.2s ease-in-out;
}

#articleBodyContent table, .article-body table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    border: 1px solid #e5e7eb; /* Gray 200 */
}
#articleBodyContent th, .article-body th,
#articleBodyContent td, .article-body td {
    border: 1px solid #e5e7eb; /* Gray 200 */
    padding: 0.75rem 1rem;
    text-align: left;
}
#articleBodyContent th, .article-body th {
    background-color: #f9fafb; /* Gray 50 */
    font-weight: 600;
}
#articleBodyContent pre, .article-body pre {
    background-color: #f3f4f6; /* Gray 100 */
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
#articleBodyContent code, .article-body code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #e5e7eb; /* Gray 200 */
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.9em; /* Slightly smaller than surrounding text */
}
#articleBodyContent pre code, .article-body pre code { /* Reset for code inside pre */
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* Content Restriction Styles */
#articleCardContainer { /* Ensure this container has relative positioning */
    position: relative; 
}
#articleBodyContent.restricted-preview {
    max-height: 33vh; /* Or a fixed pixel value like 250px or 300px */
    overflow: hidden;
    /* CSS Gradient Mask for smooth fade-out effect */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    position: relative; /* Needed for the mask and overlay to work correctly with some content */
}

/* Force broken image placeholder display - override all conflicts */
div[data-placeholder-added="true"] {
    min-height: 200px !important;
    background-color: #f9fafb !important;
    border: 2px dashed #d1d5db !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 20px auto !important;
    padding: 20px !important;
    text-align: center !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    color: #6b7280 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Override any figure or article body styles that might interfere */
#articleBodyContent div[data-placeholder-added="true"],
.article-body div[data-placeholder-added="true"],
figure div[data-placeholder-added="true"] {
    all: unset !important;
    min-height: 200px !important;
    background-color: #f9fafb !important;
    border: 2px dashed #d1d5db !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 20px auto !important;
    padding: 20px !important;
    text-align: center !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    color: #6b7280 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Hide any broken images that might still be visible */
#articleBodyContent img[src*="683ffbcc"],
#articleBodyContent img[src=""],
#articleBodyContent img:not([src]),
.article-body img[src*="683ffbcc"],
.article-body img[src=""],
.article-body img:not([src]) {
    display: none !important;
}

/* PDF Viewer Styles */
.pdf-viewer-container {
    border: 1px solid #e5e7eb; /* Gray-200 */
    border-radius: 0.75rem; /* 12px */
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.pdf-header {
    background-color: #f9fafb; /* Gray-50 */
    border-bottom: 1px solid #e5e7eb; /* Gray-200 */
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdf-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827; /* Gray-900 */
    margin: 0;
}

.pdf-header p {
    font-size: 0.875rem;
    color: #6b7280; /* Gray-500 */
    margin: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    border-radius: 0.375rem;
    color: #6b7280; /* Gray-500 */
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.btn-icon:hover {
    color: #111827; /* Gray-900 */
    background-color: #f3f4f6; /* Gray-100 */
}

.pdf-content {
    position: relative;
    background-color: #f9fafb; /* Gray-50 */
}

.pdf-embed {
    border: none;
    display: block;
}

.pdf-fallback {
    background-color: #f9fafb; /* Gray-50 */
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pdf-fallback.hidden {
    display: none !important;
}

.pdf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb; /* Gray-50 */
    border-radius: 0.75rem;
}

.pdf-error {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fef2f2; /* Red-50 */
    border: 1px solid #fecaca; /* Red-200 */
    border-radius: 0.75rem;
}

/* Responsive adjustments for PDF viewer */
@media (max-width: 768px) {
    .pdf-viewer-container {
        margin: 0 -1rem; /* Extend to screen edges on mobile */
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .pdf-header {
        padding: 0.75rem;
    }

    .pdf-header h3 {
        font-size: 0.875rem;
    }

    .pdf-header p {
        font-size: 0.75rem;
    }

    .btn-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* Animation for PDF viewer appearance */
.pdf-viewer-container {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner animation */
.animate-spin {
    animation: spin 1s linear infinite;
}

/* End PDF Viewer Styles */

/* Enhanced Image Loading Styles */
.article-image {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease;
    background-color: #f3f4f6;
}

.article-image[data-processed="true"],
.article-image.loaded {
    opacity: 1 !important;
    transform: scale(1);
}

.image-placeholder {
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.article-image.loaded + .image-placeholder,
.article-image[data-processed="true"] + .image-placeholder {
    opacity: 0;
    pointer-events: none;
}

/* Loading animation for image placeholders */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Force visibility for loaded images */
img[data-processed="true"] {
    opacity: 1 !important;
    visibility: visible !important;
}

img.loaded {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Smooth image reveal animation */
.article-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.article-image.loaded,
.article-image[data-processed="true"] {
    opacity: 1;
}

/* Placeholder styles for broken images */
.image-error-placeholder {
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Preload animation */
.preload-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Image container improvements */
.aspect-w-16.aspect-h-9 {
    position: relative;
    overflow: hidden;
}

.aspect-w-16.aspect-h-9::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.aspect-w-16.aspect-h-9 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Enhanced loading states for pagination */
.pagination-image-loading {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: pagination-loading 1.5s infinite;
}

@keyframes pagination-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Ensure images are properly contained */
.article-image-container {
    position: relative;
    overflow: hidden;
    background-color: #f9fafb;
}

.article-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

/* Image container for consistent layout */
.image-container {
    position: relative;
    overflow: hidden;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    color: #9ca3af;
    z-index: 1;
}

.image-container .article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

/* Category tag styling for image containers */
.image-container .absolute.top-3.left-3 {
    z-index: 10 !important;
    transform: translate(18px, 13px); /* Dịch chuyển sang phải 18px và xuống dưới 13px để đạt top: 25px, left: 30px */
}

/* Ensure category tags are always visible */
.image-container span[class*="bg-"] {
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

/* Hover effect for category tags */
.image-container .absolute.top-3.left-3:hover {
    transform: translate(18px, 12px); /* Giữ nguyên dịch chuyển ngang, chỉ nâng lên 1px khi hover */
}

.image-container span[class*="bg-"]:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Specific styling for different category colors */
.image-container span.bg-orange-500 {
    background-color: #f97316 !important;
}

.image-container span.bg-green-500 {
    background-color: #22c55e !important;
}

.image-container span.bg-red-500 {
    background-color: #ef4444 !important;
}

.image-container span.bg-purple-500 {
    background-color: #a855f7 !important;
}

.image-container span.bg-blue-500 {
    background-color: #3b82f6 !important;
}

.image-container span.bg-teal-500 {
    background-color: #14b8a6 !important;
}

.image-container span.bg-indigo-500 {
    background-color: #6366f1 !important;
}

.image-container span.bg-gray-500 {
    background-color: #6b7280 !important;
}

/* End Enhanced Image Loading Styles */

/* Enhanced CSS for hosting environment - prevent image flicker */
.image-container {
    position: relative !important;
    overflow: hidden !important;
    background-color: #f3f4f6 !important;
    min-height: 200px !important;
}

.article-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease-in-out !important;
    background-color: #f3f4f6 !important;
    z-index: 3 !important;
}

.article-image.loaded {
    opacity: 1 !important;
}

.image-placeholder {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.5s infinite !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.article-image.loaded + .image-placeholder {
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Prevent any layout shift */
.aspect-w-16.aspect-h-9 {
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
    overflow: hidden !important;
}

.aspect-w-16.aspect-h-9 > * {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Forgot Password Button Loading States - Similar to Contact Form */
#forgotPasswordSubmitLoading.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

#forgotPasswordSubmitText:not(.hidden) {
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Prevent any loading manager conflicts for forgot password */
#forgotPasswordSubmitBtn:not(.btn-loading) #forgotPasswordSubmitLoading {
    display: none !important;
}

#forgotPasswordSubmitBtn:not(.btn-loading) #forgotPasswordSubmitText {
    display: inline !important;
}

/* Ensure forgot password button has consistent loading behavior */
#forgotPasswordSubmitBtn.btn-loading #forgotPasswordSubmitText {
    display: none !important;
}

#forgotPasswordSubmitBtn.btn-loading #forgotPasswordSubmitLoading {
    display: inline !important;
}

/* Reset Password Button Loading States - Similar to Contact Form and Forgot Password */
#resetPasswordSubmitLoading.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

#resetPasswordSubmitText:not(.hidden) {
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Prevent any loading manager conflicts for reset password */
#resetPasswordSubmitBtn:not(.btn-loading) #resetPasswordSubmitLoading {
    display: none !important;
}

#resetPasswordSubmitBtn:not(.btn-loading) #resetPasswordSubmitText {
    display: inline !important;
}

/* Ensure reset password button has consistent loading behavior */
#resetPasswordSubmitBtn.btn-loading #resetPasswordSubmitText {
    display: none !important;
}

#resetPasswordSubmitBtn.btn-loading #resetPasswordSubmitLoading {
    display: inline !important;
}

/* ============================================= */
/* ===   TÙY CHỌN NÂNG CẤP HERO SECTION   ==== */
/* ============================================= */

/* --- Phương án A: Lưới Digital Tinh Tế --- */
/* Gợi cảm giác công nghệ, chính xác và cấu trúc. */
.hero-bg-option-a {
  background-color: #FDFDFD; /* Màu nền trắng siêu nhẹ, tạo cảm giác sạch sẽ */
  position: relative;
}

.hero-bg-option-a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Tạo lưới chấm nhỏ bằng radial-gradient */
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.08) 1px, transparent 0);
  background-size: 35px 35px;
  opacity: 0.6;
  z-index: 0;
}

/* --- Phương án B: Hiệu Ứng Ánh Sáng Sang Trọng --- */
/* Gợi cảm giác về sự chuyển động nhẹ nhàng, tinh tế và cao cấp. */
.hero-bg-option-b {
    background-color: #F8F7F4;
    position: relative;
    overflow: hidden;
  }
  
  .hero-bg-option-b::before,
  .hero-bg-option-b::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
  }
  
  /* Luồng sáng màu cam (màu thương hiệu) */
  .hero-bg-option-b::before {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: rgba(249, 115, 22, 0.2); /* Tăng opacity từ 0.06 lên 0.15 */
    top: -10%;
    left: -20%;
    animation: float-light-1 25s infinite linear alternate;
  }
  
  /* Luồng sáng màu xám xanh (bổ trợ) */
  #hero-bg-option-b::after {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: rgba(90, 100, 116, 0.15); /* Tăng opacity từ 0.06 lên 0.15 */
    bottom: -15%;
    right: -15%;
    animation: float-light-2 30s infinite linear alternate;
  }
  

@keyframes float-light-1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(10vw, 5vh) rotate(180deg); }
}

@keyframes float-light-2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-8vw, -4vh) rotate(-180deg); }
}

/* Section Light Effect - Enhanced with subtle overlay */
.section-light-effect {
    position: relative;
}

.section-light-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.06); /* Increased opacity from 0.04 to 0.06 */
    pointer-events: none;
    z-index: 1;
}

.section-light-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.18) 0%, /* Increased from 0.15 */
        rgba(255, 255, 255, 0.1) 100% /* Increased from 0.08 */
    );
    pointer-events: none;
    z-index: 2;
}

/* Ensure content stays above the overlays */
.section-light-effect > .container {
    position: relative;
    z-index: 3;
}

/* =================================================================== */
/* ===   ĐỀ XUẤT NÂNG CẤP FOOTER - PHIÊN BẢN "DẤU ẤN CHUYÊN GIA"   ==== */
/* =================================================================== */

:root {
    /* Bảng màu được định nghĩa để dễ dàng tùy chỉnh sau này */
    --navy-background: #020B18;    /* Xanh navy rất đậm, sang trọng và hiện đại */
    --orange-accent: #f97316;      /* Màu nhấn cam thương hiệu */
    --orange-accent-hover: #fb923c;/* Màu cam sáng hơn khi hover */
    --text-primary: #E0E6E9;       /* Màu chữ chính (trắng ngà, dịu mắt) */
    --text-secondary: #94A3B8;      /* Màu chữ phụ / links (xám-xanh nhạt) */
    --border-color: #1E293B;        /* Màu viền, xám-xanh đậm */
}

/* 1. Nền footer tinh tế, tạo chiều sâu */
.footer-bg {
    background-color: var(--navy-background);
    color: var(--text-primary);
    position: relative;
    overflow: hidden; /* Ngăn các hiệu ứng nền tràn ra ngoài */
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
    padding-top: 5rem; /* Tăng khoảng đệm */
    padding-bottom: 3rem;
}
/* Hiệu ứng nền chìm */
.footer-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04), transparent 30%),
                      radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.05), transparent 40%);
    opacity: 0.7;
    z-index: 0;
}
/* Đảm bảo nội dung luôn nổi lên trên */
.footer-bg > .container {
    position: relative;
    z-index: 1;
}

/* 2. Liên kết (links) với màu nhấn thanh lịch */
.footer-link {
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    font-weight: 400;
    display: inline-block;
}
.footer-link:hover {
    color: var(--orange-accent-hover);
    transform: translateX(3px); /* Hiệu ứng dịch chuyển nhẹ khi hover */
}

/* 3. Tiêu đề các mục trong footer */
footer h3, footer h4 {
    color: #FFFFFF;
    font-weight: 600;
    letter-spacing: 0.02em; /* Giãn nhẹ ký tự cho thoáng đãng */
    margin-bottom: 1.5rem; /* Tăng khoảng cách dưới tiêu đề */
    display: flex;
    align-items: center;
}
/* Icon trong tiêu đề */
footer h3 i, footer h4 i {
    color: var(--orange-accent);
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}
footer h3:hover i, footer h4:hover i {
    transform: scale(1.1);
}

/* 4. Icon mạng xã hội - Tối giản, đồng bộ và đẳng cấp */
#social-links .footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
}
#social-links .footer-link:hover {
    color: #FFFFFF;
    background: var(--orange-accent);
    border-color: var(--orange-accent);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.2); /* Shadow nhẹ màu cam */
}
/* Zalo icon styling */
#social-links #zalo span {
    font-size: 24px !important;
    font-weight: bold;
    line-height: 1;
}

/* 5. Cập nhật các màu tiện ích (utility colors) */
footer .text-orange-400 { color: var(--orange-accent) !important; }
footer .text-gray-300 { color: var(--text-primary) !important; }
footer .text-gray-400 { color: var(--text-secondary) !important; }
footer .text-gray-500 { color: #64748B !important; }
footer .border-gray-700 { border-color: var(--border-color) !important; }

/* 6. Hiệu ứng hover cho các icon trong phần liên hệ */
footer .space-y-3 i.fas {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
footer .space-y-3 p:hover i.fas {
    color: var(--orange-accent-hover) !important;
    transform: scale(1.15);
}

/* 7. Logo và slogan dưới cùng */
#footer-logo {
    filter: grayscale(20%) brightness(1.1);
    opacity: 0.9;
    transition: all 0.3s ease;
}
#footer-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1.2);
    transform: scale(1.03);
}
.footer-bg .text-sm.text-orange-400.font-medium {
    font-style: italic;
    color: var(--text-secondary) !important;
}

/* 8. Cải thiện typography cho footer */
footer p, footer span, footer li {
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* 9. Hiệu ứng cho dòng text "Good Trader Investing" */
footer p.text-xs.text-gray-500 {
    transition: all 0.3s ease;
}
footer p.text-xs.text-gray-500:hover .text-orange-400,
footer p.text-xs.text-gray-500:hover .text-orange-500 {
    text-shadow: 0 0 5px rgba(249, 115, 22, 0.5);
}

/* ======================================================= */
/* === OVERRIDE: Tinh chỉnh kích thước Glass Button    === */
/* ===        trong Article Restriction Overlay        === */
/* ======================================================= */

/* Sử dụng #contentRestrictionOverlay để tăng độ ưu tiên, 
  đảm bảo các style này CHỈ áp dụng cho các nút bên trong lớp phủ.
*/
#contentRestrictionOverlay .glass-button,
#contentRestrictionOverlay .glass-button-secondary {
    padding: 0.6rem 1.75rem; /* Giảm padding từ 0.875rem 2.5rem */
    font-size: 0.875rem;     /* Giảm kích thước font (14px) */
    gap: 0.5rem;             /* Giảm khoảng cách giữa icon và chữ */
}

/* Điều chỉnh lại hiệu ứng hover cho phù hợp với kích thước mới,
  làm cho nó nhẹ nhàng hơn một chút.
*/
#contentRestrictionOverlay .glass-button:hover,
#contentRestrictionOverlay .glass-button-secondary:hover {
    transform: translateY(-2px) scale(1.01); /* Giảm nhẹ hiệu ứng scale */
}

/* Class định danh font chữ cho tên thương hiệu */
.font-brand-display {
    font-family: 'Playfair Display', serif;
}
/* --- Survey Modal Styles --- */
.progress-container {
    overflow: hidden; /* Ensures the inner bar stays rounded */
}

.form-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db; /* border-gray-300 */
    border-radius: 50%;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.form-radio:checked {
    border-color: #f97316; /* theme-primary */
}

.form-radio:checked::after {
    content: '';
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #f97316; /* theme-primary */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.form-checkbox:checked {
    background-color: #f97316; /* theme-primary */
    border-color: #f97316;
}

.form-checkbox:checked::after {
    content: '✔';
    display: block;
    color: white;
    font-size: 0.8rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Hide step content that is not active */
.survey-step {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SURVEY MODAL STYLES ===== */

/* Luxury Survey Modal Container */
.luxury-survey-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 10px 30px -10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Close Button Style - Similar to other modals */
.luxury-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(249, 115, 22, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6b7280;
    transition: all 0.3s ease;
    z-index: 10;
}

.luxury-close-button:hover {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    transform: scale(1.1);
}

/* Survey Content Container */
.luxury-survey-content {
    padding: 2.5rem;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Survey Navigation Bar */
.survey-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2.5rem;
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
    margin: -2.5rem -2.5rem 0 -2.5rem;
    margin-top: 2rem;
}

.survey-navigation .glass-button,
.survey-navigation .glass-button-secondary {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.survey-navigation .glass-button i,
.survey-navigation .glass-button-secondary i {
    font-size: 0.875rem;
}

/* Step Indicator - Fixed visibility */
.luxury-step-indicator {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937 !important;
    background: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.luxury-step-indicator span {
    color: #1f2937 !important;
    font-weight: 600;
    display: inline !important;
    visibility: visible !important;
}

/* Make sure all text inside step indicator is dark */
.luxury-step-indicator,
.luxury-step-indicator * {
    color: #1f2937 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Form Styles within Survey */
.luxury-survey-content .form-label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.luxury-survey-content .form-input {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.luxury-survey-content .form-input:focus {
    background: white;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Radio and Checkbox Styles */
.luxury-survey-content .form-radio,
.luxury-survey-content .form-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #d1d5db;
    transition: all 0.2s ease;
}

.luxury-survey-content .form-radio:checked,
.luxury-survey-content .form-checkbox:checked {
    background-color: #f97316;
    border-color: #f97316;
}

.luxury-survey-content .form-radio:focus,
.luxury-survey-content .form-checkbox:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Section Headers */
.luxury-survey-content h4 {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(249, 115, 22, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .luxury-survey-content {
        padding: 1.5rem;
    }
    
    .survey-navigation {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .luxury-step-indicator {
        order: -1;
        margin-bottom: 0.5rem;
    }
    
    .luxury-close-button {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .survey-navigation .glass-button,
    .survey-navigation .glass-button-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Hide submit button on non-final steps */
.survey-step:not(:last-of-type) ~ .survey-navigation .glass-button[type="submit"] {
    display: none !important;
}

/* Smooth transitions between steps */
.survey-step {
    animation: fadeInStep 0.3s ease-out;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Special style for "Start Survey" button on welcome step */
.survey-step[data-step="0"] ~ .survey-navigation .luxury-nav-next {
    background: #f97316;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
}

.survey-step[data-step="0"] ~ .survey-navigation .luxury-nav-next:hover {
    background: #ea580c;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

/* Force text color for step indicator */
#step-indicator,
#step-indicator * {
    color: #1f2937 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Icon styles in buttons */
.luxury-nav-btn i {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ======================================================= */
/* === Survey Modal Minor Fixes (2025-06-18)            === */
/* ======================================================= */
/* Force dark text for step indicator in every scenario */
#step-indicator,
#step-indicator * {
    color: #1f2937 !important;
}

/* Hide scroll for welcome step (step 0) on desktop only */
@media (min-width: 769px) {
    /* Hide scroll when welcome step is active */
    .luxury-survey-modal.welcome-step .luxury-survey-content {
        overflow-y: hidden !important;
        max-height: none !important;
    }
    
    .luxury-survey-modal.welcome-step .survey-welcome-container {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Tone down hover effects for survey navigation buttons */


.luxury-nav-next:hover,
.luxury-nav-submit:hover,
.luxury-nav-prev:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* === Survey Modal Minor Fixes (continued) === */
.survey-navigation .glass-button,
.survey-navigation .glass-button-secondary {
    padding: 0.5rem 1.25rem !important; /* smaller */
    font-size: 0.875rem !important; /* sm text */
    line-height: 1.2;
}

.survey-navigation .glass-button {
    border-radius: 9999px !important;
}

/* Step Indicator Styles */
.survey-navigation .glass-button-secondary {
    color: #111827 !important;
}

.survey-navigation .glass-button-secondary span {
    color: #111827 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .survey-navigation {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .survey-navigation .glass-button,
    .survey-navigation .glass-button-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ✅ ENHANCED ARTICLE BODY STYLING - Match CKEditor exactly */

/* Enhanced headings to match CKEditor exactly */
#articleBodyContent h1, .article-body h1 { 
    font-size: 2rem; /* 32px - match CKEditor */
    font-weight: 700; 
    color: #111827; 
    margin-top: 1.5rem; 
    margin-bottom: 1rem; 
    line-height: 1.3; 
    page-break-after: avoid;
}

#articleBodyContent h2, .article-body h2 { 
    font-size: 1.75rem; /* 28px - match CKEditor */
    font-weight: 700; 
    color: #1f2937; 
    margin-top: 2rem; 
    margin-bottom: 1rem; 
    line-height: 1.4;
    page-break-after: avoid;
}

#articleBodyContent h3, .article-body h3 { 
    font-size: 1.5rem; /* 24px - match CKEditor */
    font-weight: 600; 
    color: #1f2937; 
    margin-top: 1.75rem; 
    margin-bottom: 0.75rem; 
    line-height: 1.5;
    page-break-after: avoid;
}

#articleBodyContent h4, .article-body h4 { 
    font-size: 1.25rem; /* 20px - match CKEditor */
    font-weight: 600; 
    color: #374151; 
    margin-top: 1.5rem; 
    margin-bottom: 0.5rem; 
    line-height: 1.5;
    page-break-after: avoid;
}

#articleBodyContent h5, .article-body h5 { 
    font-size: 1.125rem; /* 18px - match CKEditor */
    font-weight: 600; 
    color: #374151; 
    margin-top: 1.25rem; 
    margin-bottom: 0.5rem; 
    line-height: 1.5;
    page-break-after: avoid;
}

#articleBodyContent h6, .article-body h6 { 
    font-size: 1rem; /* 16px - match CKEditor */
    font-weight: 600; 
    color: #374151; 
    margin-top: 1rem; 
    margin-bottom: 0.5rem; 
    line-height: 1.5;
    page-break-after: avoid;
}

/* Enhanced paragraph styling to match CKEditor exactly */
#articleBodyContent p, .article-body p { 
    font-size: 1rem; /* 16px - match CKEditor */
    line-height: 1.7; /* Match CKEditor */
    color: #374151; /* Match CKEditor */
    margin-bottom: 1.25rem; /* Match CKEditor */
    margin-top: 0;
    text-align: left; /* Default alignment */
    text-indent: 0;
    page-break-inside: avoid;
}

#articleBodyContent p:last-child, .article-body p:last-child {
    margin-bottom: 0;
}

#articleBodyContent p:empty, .article-body p:empty {
    margin: 6px 0;
    min-height: 1.4em;
}

/* Enhanced text formatting to match CKEditor */
#articleBodyContent strong, .article-body strong,
#articleBodyContent b, .article-body b {
    font-weight: 700;
    color: #111827;
}

#articleBodyContent em, .article-body em,
#articleBodyContent i, .article-body i {
    font-style: italic;
}

#articleBodyContent u, .article-body u {
    text-decoration: underline;
}

#articleBodyContent s, .article-body s {
    text-decoration: line-through;
}

/* Enhanced list styling to match CKEditor exactly */
#articleBodyContent ul, .article-body ul,
#articleBodyContent ol, .article-body ol { 
    margin-top: 1.25rem; 
    margin-bottom: 1.25rem; 
    padding-left: 2rem; /* Increased for better visibility */
    line-height: 1.7;
    list-style-position: outside;
}

#articleBodyContent ul, .article-body ul {
    list-style-type: disc;
}

#articleBodyContent ol, .article-body ol {
    list-style-type: decimal;
}

#articleBodyContent ul li, .article-body ul li { 
    list-style-type: disc; 
    margin-top: 0.5rem;
    margin-bottom: 0.5rem; 
    line-height: 1.7;
    color: #374151;
    display: list-item; /* Ensure proper list display */
    padding-left: 0.5rem; /* Add padding for better readability */
}

#articleBodyContent ol li, .article-body ol li { 
    list-style-type: decimal; 
    margin-top: 0.5rem;
    margin-bottom: 0.5rem; 
    line-height: 1.7;
    color: #374151;
    display: list-item; /* Ensure proper list display */
    padding-left: 0.5rem; /* Add padding for better readability */
}

#articleBodyContent li > p, .article-body li > p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: block; /* Changed from inline-block for better formatting */
    width: auto; /* Changed from 100% */
}

/* Nested lists to match CKEditor with better styling */
#articleBodyContent ul ul, .article-body ul ul,
#articleBodyContent ol ol, .article-body ol ol,
#articleBodyContent ul ol, .article-body ul ol,
#articleBodyContent ol ul, .article-body ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

#articleBodyContent ul ul, .article-body ul ul {
    list-style-type: circle;
}

#articleBodyContent ul ul ul, .article-body ul ul ul {
    list-style-type: square;
}

#articleBodyContent ol ol, .article-body ol ol {
    list-style-type: lower-alpha;
}

#articleBodyContent ol ol ol, .article-body ol ol ol {
    list-style-type: lower-roman;
}

/* Ensure list markers are visible */
#articleBodyContent li::marker, .article-body li::marker {
    color: #6b7280;
}

/* Force list visibility and proper structure */
#articleBodyContent ul, .article-body ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 2rem !important;
    display: block !important;
}

#articleBodyContent ol, .article-body ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 2rem !important;
    display: block !important;
}

#articleBodyContent li, .article-body li {
    display: list-item !important;
    list-style-position: outside !important;
    margin-left: 0 !important;
}

/* Force nested list styling */
#articleBodyContent ul ul, .article-body ul ul {
    list-style-type: circle !important;
}

#articleBodyContent ul ul ul, .article-body ul ul ul {
    list-style-type: square !important;
}

#articleBodyContent ol ol, .article-body ol ol {
    list-style-type: lower-alpha !important;
}

#articleBodyContent ol ol ol, .article-body ol ol ol {
    list-style-type: lower-roman !important;
}

/* Enhanced todo list styling */
#articleBodyContent .todo-list, .article-body .todo-list {
    list-style: none;
    padding-left: 0;
}

#articleBodyContent .todo-list li, .article-body .todo-list li {
    position: relative;
    padding-left: 2rem;
}

#articleBodyContent .todo-list li .todo-list__label, .article-body .todo-list li .todo-list__label {
    position: absolute;
    left: 0;
    top: 0;
}

/* Enhanced link styling to match CKEditor */
#articleBodyContent a, .article-body a { 
    color: #f97316; /* Theme primary - match CKEditor */
    text-decoration: underline; 
    font-weight: 500;
    transition: color 0.2s ease;
}

#articleBodyContent a:hover, .article-body a:hover { 
    color: #ea580c; /* Darker orange on hover */
}

/* Enhanced blockquote styling to match CKEditor */
#articleBodyContent blockquote, .article-body blockquote { 
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
    padding-left: 1rem;
    border-left: 0.25rem solid #e5e7eb;
    font-weight: 500;
    font-style: italic;
    color: #4b5563;
    background-color: #f9fafb;
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 0.375rem;
}

/* Enhanced image styling to match CKEditor */
#articleBodyContent img, .article-body img { 
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced table styling to match CKEditor with better visibility */
#articleBodyContent table, .article-body table {
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    table-layout: auto;
    background-color: white;
    border: 2px solid #d1d5db; /* Thicker border for better visibility */
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
    display: table; /* Ensure table display */
}

#articleBodyContent thead, .article-body thead {
    border-bottom: 2px solid #e5e7eb;
    background-color: #f8fafc;
    display: table-header-group; /* Ensure proper table header display */
}

#articleBodyContent tbody, .article-body tbody {
    display: table-row-group; /* Ensure proper table body display */
}

#articleBodyContent tr, .article-body tr {
    display: table-row; /* Ensure proper row display */
}

#articleBodyContent th, .article-body th,
#articleBodyContent td, .article-body td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
    border: 1px solid #d1d5db;
    display: table-cell; /* Ensure proper cell display */
    word-wrap: break-word;
    max-width: 300px; /* Prevent overly wide cells */
}

#articleBodyContent th, .article-body th {
    font-weight: 600;
    color: #111827;
    background-color: #f8fafc;
    position: sticky; /* Make headers sticky if needed */
    top: 0;
}

#articleBodyContent td, .article-body td {
    color: #374151;
    background-color: white;
}

#articleBodyContent tbody tr:nth-child(even), .article-body tbody tr:nth-child(even),
#articleBodyContent.prose tbody tr:nth-child(even),
#articleBodyContent.prose-lg tbody tr:nth-child(even) {
    background-color: #f9fafb !important;
}

#articleBodyContent tbody tr:nth-child(even) td, .article-body tbody tr:nth-child(even) td,
#articleBodyContent.prose tbody tr:nth-child(even) td,
#articleBodyContent.prose-lg tbody tr:nth-child(even) td {
    background-color: #f9fafb !important;
}

#articleBodyContent tbody tr:last-child, .article-body tbody tr:last-child {
    border-bottom: none;
}

/* Table responsive wrapper */
#articleBodyContent .table-wrapper, .article-body .table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Force table visibility and proper structure */
#articleBodyContent table, .article-body table,
.table-wrapper table,
#articleBodyContent.prose table,
#articleBodyContent.prose-lg table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1.5rem 0 !important;
    border: 2px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    background-color: white !important;
}

#articleBodyContent thead, .article-body thead,
.table-wrapper thead,
#articleBodyContent.prose thead,
#articleBodyContent.prose-lg thead {
    display: table-header-group !important;
    background-color: #f8fafc !important;
    border-bottom: 2px solid #e5e7eb !important;
}

#articleBodyContent tbody, .article-body tbody,
.table-wrapper tbody,
#articleBodyContent.prose tbody,
#articleBodyContent.prose-lg tbody {
    display: table-row-group !important;
}

#articleBodyContent tr, .article-body tr,
.table-wrapper tr,
#articleBodyContent.prose tr,
#articleBodyContent.prose-lg tr {
    display: table-row !important;
    border-bottom: 1px solid #e5e7eb !important;
}

#articleBodyContent th, .article-body th,
#articleBodyContent td, .article-body td,
.table-wrapper th, .table-wrapper td,
#articleBodyContent.prose th, #articleBodyContent.prose td,
#articleBodyContent.prose-lg th, #articleBodyContent.prose-lg td {
    display: table-cell !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #d1d5db !important;
    text-align: left !important;
    vertical-align: top !important;
    word-wrap: break-word !important;
    max-width: 300px !important;
}

#articleBodyContent th, .article-body th,
.table-wrapper th,
#articleBodyContent.prose th,
#articleBodyContent.prose-lg th {
    font-weight: 600 !important;
    color: #111827 !important;
    background-color: #f8fafc !important;
}

#articleBodyContent td, .article-body td,
.table-wrapper td,
#articleBodyContent.prose td,
#articleBodyContent.prose-lg td {
    color: #374151 !important;
    background-color: white !important;
}

/* Ensure table is visible on mobile */
@media (max-width: 768px) {
    #articleBodyContent table, .article-body table {
        font-size: 0.875rem;
        min-width: 100%;
    }
    
    #articleBodyContent th, .article-body th,
    #articleBodyContent td, .article-body td {
        padding: 0.5rem 0.75rem;
        max-width: 200px;
    }
}

/* Enhanced hr styling to match CKEditor */
#articleBodyContent hr, .article-body hr {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #e5e7eb 20%, #e5e7eb 80%, transparent 100%);
}

/* Enhanced code styling to match CKEditor */
#articleBodyContent code, .article-body code {
    background-color: #f3f4f6;
    color: #dc2626;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
}

#articleBodyContent pre, .article-body pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

#articleBodyContent pre code, .article-body pre code { 
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* Enhanced text alignment classes */
#articleBodyContent .text-left, .article-body .text-left,
#articleBodyContent [style*="text-align: left"], .article-body [style*="text-align: left"] {
    text-align: left !important;
}

#articleBodyContent .text-center, .article-body .text-center,
#articleBodyContent [style*="text-align: center"], .article-body [style*="text-align: center"] {
    text-align: center !important;
}

#articleBodyContent .text-right, .article-body .text-right,
#articleBodyContent [style*="text-align: right"], .article-body [style*="text-align: right"] {
    text-align: right !important;
}

#articleBodyContent .text-justify, .article-body .text-justify,
#articleBodyContent [style*="text-align: justify"], .article-body [style*="text-align: justify"] {
    text-align: justify !important;
}

/* Enhanced font family support to match CKEditor */
#articleBodyContent [style*="font-family: Inter"], .article-body [style*="font-family: Inter"],
#articleBodyContent .font-family-inter, .article-body .font-family-inter {
    font-family: 'Inter', sans-serif !important;
}

#articleBodyContent [style*="font-family: Arial"], .article-body [style*="font-family: Arial"],
#articleBodyContent .font-family-arial, .article-body .font-family-arial {
    font-family: Arial, Helvetica, sans-serif !important;
}

#articleBodyContent [style*="font-family: Georgia"], .article-body [style*="font-family: Georgia"],
#articleBodyContent .font-family-georgia, .article-body .font-family-georgia {
    font-family: Georgia, serif !important;
}

#articleBodyContent [style*="font-family: Times"], .article-body [style*="font-family: Times"],
#articleBodyContent .font-family-times, .article-body .font-family-times {
    font-family: 'Times New Roman', Times, serif !important;
}

#articleBodyContent [style*="font-family: Roboto"], .article-body [style*="font-family: Roboto"],
#articleBodyContent .font-family-roboto, .article-body .font-family-roboto {
    font-family: 'Roboto', sans-serif !important;
}

#articleBodyContent [style*="font-family: Verdana"], .article-body [style*="font-family: Verdana"],
#articleBodyContent .font-family-verdana, .article-body .font-family-verdana {
    font-family: Verdana, Geneva, sans-serif !important;
}

#articleBodyContent [style*="font-family: Tahoma"], .article-body [style*="font-family: Tahoma"],
#articleBodyContent .font-family-tahoma, .article-body .font-family-tahoma {
    font-family: Tahoma, Geneva, sans-serif !important;
}

/* Enhanced font color support */
#articleBodyContent [style*="color:"], .article-body [style*="color:"] {
    /* Preserve color styling from CKEditor */
}

#articleBodyContent [style*="background-color:"], .article-body [style*="background-color:"] {
    /* Preserve background color styling from CKEditor */
    padding: 0.125rem 0.25rem;
    border-radius: 0.125rem;
}

/* Enhanced indentation support to match CKEditor */
#articleBodyContent .ck-indent-1, .article-body .ck-indent-1,
#articleBodyContent [style*="margin-left: 40px"], .article-body [style*="margin-left: 40px"] {
    margin-left: 40px !important;
}

#articleBodyContent .ck-indent-2, .article-body .ck-indent-2,
#articleBodyContent [style*="margin-left: 80px"], .article-body [style*="margin-left: 80px"] {
    margin-left: 80px !important;
}

#articleBodyContent .ck-indent-3, .article-body .ck-indent-3,
#articleBodyContent [style*="margin-left: 120px"], .article-body [style*="margin-left: 120px"] {
    margin-left: 120px !important;
}

#articleBodyContent .ck-indent-4, .article-body .ck-indent-4,
#articleBodyContent [style*="margin-left: 160px"], .article-body [style*="margin-left: 160px"] {
    margin-left: 160px !important;
}

#articleBodyContent .ck-indent-5, .article-body .ck-indent-5,
#articleBodyContent [style*="margin-left: 200px"], .article-body [style*="margin-left: 200px"] {
    margin-left: 200px !important;
}

/* Word cleanup - remove problematic Word styling */
#articleBodyContent [style*="mso-"], .article-body [style*="mso-"] {
    /* Remove Word-specific styles that don't translate well */
}

#articleBodyContent p[style*="margin:"], .article-body p[style*="margin:"] {
    /* Override Word margins with our consistent spacing */
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
}

/* Enhanced spacing for better readability */
#articleBodyContent, .article-body {
    word-spacing: normal;
    letter-spacing: normal;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #374151;
}

/* ✅ Enhanced responsive design for mobile */
@media (max-width: 768px) {
    #articleBodyContent h1, .article-body h1 { font-size: 1.75rem; }
    #articleBodyContent h2, .article-body h2 { font-size: 1.5rem; }
    #articleBodyContent h3, .article-body h3 { font-size: 1.25rem; }
    #articleBodyContent h4, .article-body h4 { font-size: 1.125rem; }
    
    #articleBodyContent table, .article-body table {
        font-size: 0.875rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    #articleBodyContent .ck-indent-1, .article-body .ck-indent-1 { margin-left: 20px !important; }
    #articleBodyContent .ck-indent-2, .article-body .ck-indent-2 { margin-left: 40px !important; }
    #articleBodyContent .ck-indent-3, .article-body .ck-indent-3 { margin-left: 60px !important; }
    #articleBodyContent .ck-indent-4, .article-body .ck-indent-4 { margin-left: 80px !important; }
    #articleBodyContent .ck-indent-5, .article-body .ck-indent-5 { margin-left: 100px !important; }
}

/* ✅ Print-friendly styles to match CKEditor */
@media print {
    #articleBodyContent, .article-body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000000;
    }
    
    #articleBodyContent h1, .article-body h1 { font-size: 18pt; page-break-after: avoid; }
    #articleBodyContent h2, .article-body h2 { font-size: 16pt; page-break-after: avoid; }
    #articleBodyContent h3, .article-body h3 { font-size: 14pt; page-break-after: avoid; }
    #articleBodyContent h4, .article-body h4 { font-size: 12pt; page-break-after: avoid; }
    
    #articleBodyContent a, .article-body a { color: #000000; text-decoration: underline; }
    #articleBodyContent img, .article-body img { max-width: 100%; page-break-inside: avoid; }
    #articleBodyContent table, .article-body table { page-break-inside: avoid; }
    #articleBodyContent blockquote, .article-body blockquote { page-break-inside: avoid; }
}