/* Custom styles for the hospital website - YTECO Style */

/* Footer links - no underline */
footer a {
    text-decoration: none !important;
}

footer a:hover {
    text-decoration: none !important;
}

/* Body padding for fixed header - chỉ cho homepage */
body.homepage {
    padding-top: 0; /* Bỏ padding-top cho body */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
}

.lead {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Ensure forms use full width */
.container .row .col-12 {
    width: 100% !important;
    max-width: 100% !important;
}

/* Force full width for appointment, insurance, and lab result forms */
.appointment-form,
.insurance-form,
.lab-result-form {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure normal pages can scroll */
body:not(.fullpage-active) {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

/* Remove any default margins/padding from main content */
main {
    margin-top: 0;
    padding-top: 0;
}

/* Ensure hero banner starts immediately after header */
.hero-banner {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix navbar positioning on homepage */
body.homepage {
    padding-top: 0 !important;
}

body.homepage header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1050 !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.homepage header nav {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

body.homepage .hero-banner {
    margin-top: 0 !important; /* Không cần margin-top cho hero banner */
    padding-top: 0 !important;
}

/* Ensure navbar is visible on all pages - chỉ cho homepage */
body.homepage {
    padding-top: 0 !important; /* Bỏ padding-top cho body */
}

/* Chỉ hero section cần padding-top để tránh header che */
body.homepage .hero-section {
    padding-top: 100px !important; /* Chỉ hero section cần padding-top */
}

header {
    position: relative !important;
    z-index: 1050 !important;
    background: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
}

.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1050 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
}

.navbar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.navbar-brand {
    flex-shrink: 0 !important;
    margin-right: auto !important;
}

.navbar-collapse {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
    margin-left: 2rem !important;
}

/* Force navbar to be visible on homepage */
body.homepage .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1050 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

/* Fix navbar on all pages */
.container-fluid {
    padding-top: 0 !important;
}

main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* Right side actions */
.d-flex.align-items-center {
    gap: 0.5rem;
    margin-left: auto;
    justify-content: flex-end;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333 !important;
    padding: 0.8rem 1rem !important;
    border-radius: 5px;
    margin: 0 0.2rem;
}

.nav-link:hover {
    color: #2c5aa0 !important;
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

/* Login button styling */
.btn-primary.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.nav-link i {
    font-size: 0.9rem;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #2c5aa0;
}

/* Hide FullPage.js watermark */
.fp-watermark {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Contact section */
.contact-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: visible !important;
    transform: none !important;
    background: #ffffff !important;
}

.contact-section .container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Removed duplicate CSS - handled below */

.contact-section .col-12 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.contact-section h2,
.contact-section p,
.contact-section .contact-form,
.contact-section .map-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Contact form and map equal height - moved to media queries */

.contact-section .contact-form,
.contact-section .map-container {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.contact-section .map-container {
    height: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.contact-section .map-container iframe {
    flex: 1 !important;
    height: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Map header styling */
.contact-section .map-header {
    background: #2c5aa0 !important;
    border-radius: 0.375rem 0.375rem 0 0 !important;
}

.contact-section .map-header h5 {
    margin: 0 !important;
    font-weight: 600 !important;
}

/* Mobile responsive for contact section */
@media (max-width: 991.98px) {
    .contact-section .row {
        flex-wrap: wrap !important;
    }
    
    .contact-section .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
    }
}

/* Desktop - Force 2 columns side by side */
@media (min-width: 992px) {
    .contact-section .row.g-4 {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        gap: 0 !important;
    }
    
    .contact-section .col-lg-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        display: flex !important;
        flex-direction: column !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        float: left !important;
    }
    
    /* Ensure both columns are visible and side by side */
    .contact-section .col-lg-6:first-child {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        float: left !important;
    }
    
    .contact-section .col-lg-6:last-child {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        float: right !important;
    }
}

/* Override FullPage.js transform for contact section */
.contact-section.fp-section {
    transform: none !important;
}

.contact-section.fp-section.fp-table {
    transform: none !important;
}

.contact-section.fp-section.fp-completely {
    transform: none !important;
}

.contact-section.fp-section.active {
    transform: none !important;
}

.contact-section.fp-section.revealed {
    transform: none !important;
}

/* Override FullPage.js for inner elements */
.contact-section .fp-overflow {
    transform: none !important;
}

.contact-section .container {
    transform: none !important;
}

.contact-section .row {
    transform: none !important;
}

.contact-section .col-12 {
    transform: none !important;
}

/* Debug - Force contact section elements to be visible but maintain layout */
.contact-section .row {
    visibility: visible !important;
    opacity: 1 !important;
}

.contact-section .col-lg-6 {
    visibility: visible !important;
    opacity: 1 !important;
}

.contact-section .contact-form {
    visibility: visible !important;
    opacity: 1 !important;
}

.contact-section .map-container {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Prevent FullPage.js from affecting contact section */
.contact-section.fp-section {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: visible !important;
    transform: none !important;
    position: relative !important;
    z-index: 10 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.contact-section.fp-section.fp-completely {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: visible !important;
    transform: none !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Force contact section to stay in place */
.contact-section.fp-section.fp-active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Override any FullPage.js transforms */
.contact-section.fp-section[data-anchor] {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Disable scroll animations for contact section */
.contact-section {
    animation: none !important;
    transition: none !important;
}

.contact-section * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* DISABLE ALL POSSIBLE ANIMATIONS */
.contact-section,
.contact-section *,
.contact-section.fp-section,
.contact-section.fp-section *,
.contact-section.fp-section.fp-completely,
.contact-section.fp-section.fp-completely *,
.contact-section.fp-section.fp-active,
.contact-section.fp-section.fp-active * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    perspective: none !important;
}

/* Force contact section to be always visible */
.contact-section.fp-section.fp-table {
    display: table !important;
}

.contact-section.fp-section.fp-table .fp-tableCell {
    display: table-cell !important;
    vertical-align: middle !important;
    height: 100vh !important;
}

/* OVERRIDE ALL FULLPAGE CLASSES FOR CONTACT SECTION */
.contact-section.fp-section,
.contact-section.fp-section.fp-completely,
.contact-section.fp-section.fp-active,
.contact-section.fp-section.fp-table,
.contact-section.fp-section[data-anchor],
.contact-section.fp-section.fp-auto-height,
.contact-section.fp-section.fp-responsive {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
    transform: none !important;
    background: #ffffff !important;
    overflow: visible !important;
}

/* Force contact section content to be visible */
.contact-section .container,
.contact-section .row,
.contact-section .col-12,
.contact-section h2,
.contact-section p,
.contact-section .contact-form,
.contact-section .map-container {
    position: relative !important;
    z-index: 11 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Footer */
footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    background: #f8f9fa;
    padding: 3rem 0;
    margin-top: 0;
}

/* Ensure footer is always visible on desktop */
@media (min-width: 769px) {
    footer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
        background: #f8f9fa;
        padding: 3rem 0;
        margin-top: 0;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand img {
    height: 70px !important; /* Khớp với logo header desktop */
    width: auto !important;
    transition: transform 0.3s ease;
}

/* Tablet responsive - khớp với header */
@media (max-width: 991.98px) {
    .footer-brand img {
        height: 64px !important; /* Khớp với logo header tablet */
        width: auto !important;
    }
}

/* Mobile responsive - khớp với header */
@media (max-width: 575.98px) {
    .footer-brand img {
        height: 58px !important; /* Khớp với logo header mobile */
        width: auto !important;
    }
}

.footer-brand:hover img {
    transform: scale(1.05);
}

.social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #2c5aa0 !important;
    transform: translateY(-2px);
}





/* Hero Banner */
.hero-banner {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.hero-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 0;
    padding-top: 0;
}

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

.hero-buttons .btn {
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.hero-buttons .btn {
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin: 5px;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Company Stats */
.company-stats {
    background: #f8f9fa;
}

.stat-item {
    padding: 30px 20px;
    transition: transform 0.3s ease;
    text-align: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.stat-icon {
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* About Section - Full Width Design */
.about-section {
    height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: stretch;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Mobile: Remove fixed height and allow natural flow */
@media (max-width: 768px) {
    .about-section {
        height: auto;
        min-height: 100vh;
        display: block;
    }
}

.about-section .row {
    height: 100%;
    margin: 0;
}

/* Mobile: Remove fixed height and allow natural flow */
@media (max-width: 768px) {
    .about-section .row {
        height: auto;
        margin: 0;
    }
}

.about-image-full {
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 1; /* Đảm bảo hiển thị */
    pointer-events: auto; /* Đảm bảo có thể tương tác */
    background: #f8f9fa;
    display: flex; /* Thêm flex để ảnh fill hết container */
    align-items: stretch;
}

/* Mobile: Remove fixed height and overflow */
@media (max-width: 768px) {
    .about-image-full {
        height: auto;
        min-height: 50vh;
        overflow: visible;
    }
}

.about-image-full img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Thay đổi từ cover sang fill để ảnh fill hết container */
    object-position: center center; /* Đảm bảo ảnh được căn giữa */
    display: block;
    transition: transform 0.3s ease;
    flex: 1; /* Thêm flex: 1 để ảnh fill hết không gian */
    min-height: 0; /* Đảm bảo ảnh có thể shrink */
}

.about-image-full:hover img {
    transform: scale(1.05);
}

.about-image-overlay-full {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    pointer-events: none;
}

.about-image-placeholder-full {
    height: 100vh;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content-full {
    height: 100vh !important;
    background: #ffffff;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Thay đổi từ center sang flex-start */
    padding: 100px 3rem 3rem 3rem !important; /* Padding đều */
    box-sizing: border-box;
    overflow: hidden; /* Không scroll nội dung */
    position: relative; /* Đảm bảo hiển thị */
    z-index: 1; /* Đảm bảo trên cùng */
}

/* Mobile: Remove fixed height and allow natural flow */
@media (max-width: 768px) {
    .about-content-full {
        height: auto;
        min-height: 50vh;
        padding: 40px 20px;
    }
}

.about-badge {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem !important; /* Giảm margin-bottom từ mb-4 xuống */
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
    font-family: 'Poppins', 'Inter', sans-serif;
    margin-bottom: 1rem !important; /* Giảm margin-bottom từ mb-4 xuống */
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

/* Giảm margin của header section */
.about-content-full .mb-5 {
    margin-bottom: 2rem !important; /* Giảm từ mb-5 (3rem) xuống 2rem */
}

/* Giảm margin của features section */
.about-features {
    margin-bottom: 2rem !important; /* Giảm từ mb-5 (3rem) xuống 2rem */
}

/* Removed duplicate - already defined above */

.feature-icon-full {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    color: #0d6efd;
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.feature-desc {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
}

.about-actions .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.about-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .about-title {
        font-size: 2rem;
    }
    
    .about-content-full {
        padding: 3rem !important;
    }
}

@media (max-width: 991.98px) {
    .about-image-full,
    .about-image-placeholder-full,
    .about-content-full {
        height: 100vh;
    }
    
    .about-title {
        font-size: 1.75rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .about-content-full {
        padding: 2rem !important;
        text-align: center;
    }
    
    .feature-item-full {
        margin-bottom: 1.5rem;
    }
    
    .about-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .about-actions .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .about-image-full,
    .about-image-placeholder-full,
    .about-content-full {
        height: 100vh;
    }
    
    .about-title {
        font-size: 1.5rem;
    }
    
    .about-description {
        font-size: 0.95rem;
    }
    
    .about-content-full {
        padding: 1.5rem !important;
    }
    
    .feature-icon-full {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-desc {
        font-size: 0.9rem;
    }
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    position: relative;
    overflow: hidden;
    height: 100vh;
}

/* Mobile: Remove fixed height and allow natural flow */
@media (max-width: 768px) {
    .statistics-section {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
}

/* Statistics section with background image */
.statistics-section.has-bg-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.statistics-section.has-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(30, 58, 138, 0.8) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* Ensure statistics section content is always visible */
.statistics-section .container,
.statistics-section .row,
.statistics-section .col-12 {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
    position: relative;
    z-index: 2;
}

/* Statistics section text styling */
.statistics-section h2,
.statistics-section .display-4,
.statistics-section .lead {
    color: white !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5) !important;
    font-weight: 700 !important;
}

.statistics-section .title-underline {
    background: linear-gradient(90deg, #ffffff, #00d4ff) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Hero section text styling */
.hero-section h1,
.hero-section .display-1,
.hero-section .display-2,
.hero-section .display-3,
.hero-section .display-4,
.hero-section .hero-title,
.hero-section .hero-subtitle {
    color: white !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5) !important;
    font-weight: 700 !important;
}

/* Services section text styling */
.services-section h2,
.services-section .services-main-title,
.services-section .services-main-description {
    color: #333 !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3) !important;
    font-weight: 600 !important;
}

/* Service cards text styling */
.services-section .service-content,
.services-section .service-title,
.services-section .service-description {
    color: white !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.4) !important;
    font-weight: 600 !important;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1 !important;
    transform: translateY(0) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.stat-card:hover {
    transform: translateY(-10px) !important;
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #1e40af;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(30, 64, 175, 0.3);
    flex-shrink: 0;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-card {
        padding: 1.5rem 0.5rem;
        min-height: 150px;
        margin-bottom: 1.5rem;
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
    
    /* Add spacing between rows on tablet */
    .statistics-section .row {
        margin-bottom: 0.5rem;
    }
    
    .statistics-section .col-6 {
        margin-bottom: 1rem;
    }
}

/* Services Section - Simple Grid */
.services-section {
    position: relative;
    overflow: hidden;
    height: 100vh;
    background: #ffffff;
    width: 100%;
    max-width: 100vw;
}

/* Mobile: Remove fixed height and allow natural flow */
@media (max-width: 768px) {
    .services-section {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
}

.section-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s ease;
}


.services-section .fp-overflow,
.services-center-content,
.services-grid {
    position: relative;
    z-index: 2;
}

.services-center-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #333333;
    opacity: 1;
    padding: 40px 20px;
    transition: all 0.6s ease;
    pointer-events: none;
}

.services-main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.services-main-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #666666;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 2rem auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.services-main-button {
    margin-top: 1rem;
}

.services-main-button .btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #2c5aa0;
    background: #2c5aa0;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.3);
    font-size: 1rem;
}

.services-main-button .btn:hover {
    background: #1e3d6b;
    border-color: #1e3d6b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.5);
    color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 100vh;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    transition: opacity 0.6s ease;
    box-sizing: border-box;
}

/* Mobile: Remove fixed height and allow natural flow */
@media (max-width: 768px) {
    .services-grid {
        height: auto;
        min-height: 100vh;
        width: 100%;
        max-width: 100%;
    }
}

.service-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    border: none;
    outline: none;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-image: url('/images/services/default-bg.jpg');
    z-index: 1;
    transition: all 0.3s ease;
}

/* Mobile responsive background */
@media (max-width: 768px) {
    .service-item::before {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        height: 100vh;
        gap: 0;
    }
    
    .service-item {
        min-height: 200px;
    }
}

@media (max-width: 576px) {
    .service-item::before {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 1fr);
        height: 100vh;
        gap: 0;
    }
    
    .service-item {
        min-height: 150px;
    }
}

/* Specific background images for each service type */
.service-item[data-bg*="kham-benh"]::before {
    background-image: url('/images/services/kham-benh-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.service-item[data-bg*="xet-nghiem"]::before {
    background-image: url('/images/services/xet-nghiem-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.service-item[data-bg*="chan-doan"]::before {
    background-image: url('/images/services/chan-doan-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.service-item[data-bg*="phauthuat"]::before {
    background-image: url('/images/services/phauthuat-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.service-item[data-bg*="capcuu"]::before {
    background-image: url('/images/services/capcuu-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/* Dynamic background from data-bg attribute - will be set by JavaScript */
.service-item[data-bg]:not([data-bg=""])::before {
    background-image: var(--dynamic-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/* Global rule to prevent image repetition */
.service-item::before {
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: scroll !important;
}

/* Fallback colors for service items */
.service-item:nth-child(1)::before {
    background: linear-gradient(135deg, rgba(0,123,255,0.8), rgba(0,86,179,0.8)), url('/images/services/kham-benh-bg.jpg');
}

.service-item:nth-child(2)::before {
    background: linear-gradient(135deg, rgba(40,167,69,0.8), rgba(30,126,52,0.8)), url('/images/services/xet-nghiem-bg.jpg');
}

.service-item:nth-child(3)::before {
    background: linear-gradient(135deg, rgba(255,193,7,0.8), rgba(224,168,0,0.8)), url('/images/services/chan-doan-bg.jpg');
}

.service-item:nth-child(4)::before {
    background: linear-gradient(135deg, rgba(111,66,193,0.8), rgba(90,45,145,0.8)), url('/images/services/phauthuat-bg.jpg');
}

.service-item:nth-child(5)::before {
    background: linear-gradient(135deg, rgba(220,53,69,0.8), rgba(200,35,51,0.8)), url('/images/services/capcuu-bg.jpg');
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 1;
}

.service-content {
    position: relative;
    z-index: 3;
    text-align: center;
    transition: all 0.3s ease;
}

.service-icon {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.service-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Simple hover effect - just scale up */
.service-item:hover {
    transform: scale(1.05);
}

/* Simple hover content - positioned absolutely */
.service-hover-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.service-item:hover .service-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* Show button on hover */
.service-item:hover .service-hover-content {
    opacity: 1;
    pointer-events: auto;
}

.service-hover-content .btn {
    background: #2c5aa0;
    color: #ffffff;
    border: 2px solid #2c5aa0;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

.service-item:hover .service-hover-content .btn {
    background: #2c5aa0;
    color: #ffffff;
    border: 2px solid #2c5aa0;
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
    transform: translateY(0);
}

.service-item:hover .service-hover-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.6);
}

/* Services Section Responsive */
@media (max-width: 1199.98px) {
    .services-section {
        height: 100vh;
        min-height: 600px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        height: 100vh;
    }
    
    .services-main-title {
        font-size: 2.5rem;
    }
    
    .services-main-description {
        font-size: 1.1rem;
        max-width: 400px;
    }
    
    .services-main-button .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 991.98px) {
    .services-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        height: 100vh;
    }
    
    .services-center-content {
        padding: 20px 15px;
    }
    
    .services-main-title {
        font-size: 2.2rem;
    }
    
    .services-main-description {
        font-size: 1rem;
        max-width: 350px;
    }
    
    .services-main-button .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .service-icon {
        font-size: 2.2rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .services-section {
        height: 100vh;
        min-height: 400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        height: 100vh;
    }
    
    .services-center-content {
        padding: 15px 10px;
    }
    
    .services-main-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .services-main-description {
        font-size: 0.9rem;
        padding: 0 1rem;
        max-width: 300px;
        margin-bottom: 1.5rem;
    }
    
    .services-main-button .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .service-hover-content .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Mobile specific - 50% width per item */
@media (max-width: 575.98px) {
    .services-section {
        height: 100vh;
        min-height: 350px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        height: 100vh;
    }
    
    .services-center-content {
        padding: 10px 5px;
    }
    
    .services-main-title {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .services-main-description {
        font-size: 0.8rem;
        padding: 0 0.5rem;
        max-width: 250px;
        margin-bottom: 1rem;
    }
    
    .services-main-button .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .service-icon {
        font-size: 1.8rem;
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .service-hover-content .btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .stat-card {
        padding: 1rem 0.5rem;
        margin-bottom: 2rem;
        min-height: 120px;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    /* Add more spacing between rows on mobile */
    .statistics-section .row {
        margin-bottom: 1rem;
    }
    
    .statistics-section .col-6 {
        margin-bottom: 1.5rem;
    }
}

/* Mobile overflow fix - Remove all individual scrolls */
@media (max-width: 768px) {
    /* Remove fixed heights and allow natural flow */
    .about-section,
    .statistics-section,
    .services-section,
    .news-section {
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
    }
    
    /* Contact section should maintain proper height */
    .contact-section {
        height: 100vh !important;
        min-height: 100vh !important;
        overflow: visible !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Remove fixed heights for grid containers */
    .services-grid,
    .statistics-grid,
    .news-grid {
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
    }
    
    /* Remove fixed heights for content containers */
    .about-content-full,
    .about-image-full,
    .about-image-placeholder-full {
        height: auto !important;
        min-height: 50vh;
        overflow: visible !important;
    }
    
    /* Remove fixed heights for row containers */
    .about-section .row,
    .statistics-section .row,
    .services-section .row,
    .news-section .row {
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Contact section row - keep flexbox for desktop */
    .contact-section .row {
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
}
/* Title Underline */
.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    border-radius: 2px;
    margin: 20px auto;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
    background: white;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.service-overlay {
    background: rgba(44, 90, 160, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.service-overlay .btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
}

/* Doctor Cards */
.doctor-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
    background: white;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.doctor-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

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

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

/* News Cards */
.news-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
    background: white;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    /* padding: 12px 30px; */
    margin: 2px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.btn-outline-primary {
    border: 2px solid #2c5aa0;
    color: #2c5aa0;
}

.btn-outline-primary:hover {
    background: #2c5aa0;
    border-color: #2c5aa0;
}

/* Cards */
.card {
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

/* Image Placeholders */
.hero-image-placeholder {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    min-height: 400px;
}

.service-image-placeholder {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    height: 250px;
}

.doctor-image-placeholder {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    height: 300px;
}

.news-image-placeholder {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    height: 200px;
}

.hospital-building-placeholder {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    height: 400px;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

.services-section,
.news-section {
    background: #f8f9fa;
}

/* Text Colors */
.text-primary {
    color: #2c5aa0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Ẩn hero section trên mobile */
    .hero-section {
        display: none !important;
    }
    
    .hero-banner .hero-bg {
        height: 60vh;
    }
    
    /* Fix slider images on mobile - Force override */
    .hero-banner img,
    .hero-banner .carousel-item img,
    .hero-banner .carousel-item,
    .hero-banner .carousel-item .hero-bg,
    .hero-banner .carousel-item .hero-content {
        height: 60vh !important;
        width: 100% !important;
        min-height: 60vh !important;
        max-height: 60vh !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }
    
    /* Force all images in carousel to same height on mobile */
    .carousel-item img[src],
    .carousel-item .hero-bg,
    .carousel-item .hero-content {
        height: 60vh !important;
        width: 100% !important;
        min-height: 60vh !important;
        max-height: 60vh !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* Force override any conflicting CSS on mobile */
    .hero-banner .carousel-item * {
        height: inherit !important;
        max-height: 60vh !important;
        min-height: 60vh !important;
    }
    
    /* Specific override for background images on mobile */
    .hero-banner .carousel-item .hero-bg {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        height: 60vh !important;
        width: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    .carousel-item {
        height: 60vh !important;
        min-height: 60vh !important;
        max-height: 60vh !important;
    }
    
    .carousel-item.active {
        height: 60vh !important;
        min-height: 60vh !important;
        max-height: 60vh !important;
    }
    
    /* Fix carousel inner content on mobile */
    .carousel-inner {
        height: 60vh !important;
    }
    
    .carousel-inner .carousel-item {
        height: 60vh !important;
        min-height: 60vh !important;
        max-height: 60vh !important;
    }
    
    /* Ensure all carousel content is centered and consistent on mobile */
    .carousel-item .container,
    .carousel-item .row,
    .carousel-item .col-12 {
        height: 60vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Disable scroll animations only */
    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .scale-in,
    .animate,
    .animated {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Keep slider working */
    .carousel,
    .carousel-inner,
    .carousel-item,
    .carousel-item.active {
        transition: transform 0.6s ease-in-out !important;
    }
    
    /* Disable scroll animations only */
    .section .container,
    .section .hero-content,
    .section .about-content,
    .section .service-card,
    .section .news-card,
    .section .contact-form-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    .section.revealed .container,
    .section.revealed .hero-content,
    .section.revealed .about-content,
    .section.revealed .service-card,
    .section.revealed .news-card,
    .section.revealed .contact-form-card {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    /* Disable scroll animations for non-hero sections */
    .section:not(.hero-section) {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Keep FullPage.js slider working with smooth animations */
    .hero-section {
        transition: all 0.6s ease-in-out !important;
    }
    
    .hero-section .slide {
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important; /* Chỉ transition opacity */
        opacity: 0 !important; /* Mặc định ẩn */
    }
    
    /* Đảm bảo slide active hiển thị */
    .hero-section .slide.active,
    .hero-section .slide.fp-active,
    .hero-section .slide.fp-completely {
        opacity: 1 !important;
        z-index: 1 !important;
    }
    
    /* Đảm bảo hero-bg-image luôn hiển thị */
    .hero-section .slide .hero-bg-image {
        opacity: 1 !important;
    }
    
    .hero-section .hero-bg {
        transition: all 0.6s ease-in-out !important;
    }
    
    .hero-section .hero-bg-image {
        transition: all 0.6s ease-in-out !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 2 !important;
    }
    
    .hero-section .hero-content {
        transition: all 0.6s ease-in-out !important;
    }
    
    /* Disable other scroll animations */
    [data-aos],
    .aos-init,
    .aos-animate,
    .scroll-reveal,
    .scroll-animate,
    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .scale-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Force static layout */
    body {
        overflow-x: hidden !important;
    }
    
    .container,
    .container-fluid,
    .row,
    .col-12,
    .col-md-12,
    .col-lg-12 {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    section {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Remove spacing only for main page sections on mobile */
    .hero-banner,
    .about-section,
    .services-section,
    .statistics-section,
    .news-section {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Contact section should have proper spacing */
    .contact-section {
        margin: 0 !important;
        padding: 2rem 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Footer should have proper spacing */
    .footer {
        margin: 0 !important;
        padding: 2rem 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Remove spacing for main page containers only */
    body.homepage .container,
    body.homepage .container-fluid,
    body.homepage .row {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Remove spacing for main page columns only */
    body.homepage .col-12,
    body.homepage .col-md-12,
    body.homepage .col-lg-12 {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* About Company Section */
.about-company {
    background-color: #fff;
}

.about-company .about-image-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.about-company .feature-item {
    font-size: 1.1rem;
    color: #555;
}

.about-company .feature-item i {
    color: #2c5aa0;
}

/* Company Stats Section */
.company-stats {
    background-color: #f8f9fa;
}

.stat-item {
    padding: 2rem;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

.stat-icon {
    color: #2c5aa0;
}

.stat-number {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #2c5aa0;
}

.stat-label {
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
}

/* Services Section */
.services-section {
    background-color: #fff;
}

.service-card, .news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.service-image, .news-image {
    height: 220px;
    overflow: hidden;
}

.service-image img, .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img,
.news-card:hover .news-image img {
    transform: scale(1.1);
}

.service-overlay {
    background: rgba(44, 90, 160, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-overlay .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.service-card:hover .service-overlay .btn {
    opacity: 1;
    transform: translateY(0);
}

.service-image-placeholder, .news-image-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

/* Partners Section */
.partners-section {
    background-color: #f8f9fa;
}

.partner-card {
    padding: 2rem;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

.partner-logo {
    color: #2c5aa0;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
    transform: scale(1.1);
}

/* News Section */
.news-section {
    background-color: #fff;
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%) !important;
}

.contact-cta .btn {
    background-color: #fff;
    color: #2c5aa0;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-cta .btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

/* Active states */
.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

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

/* Cải thiện scroll performance */
* {
    -webkit-overflow-scrolling: touch;
}


/* Windows-style scroll reveal effect */
.section {
    position: relative;
    overflow: hidden;
}

/* About section - GIỐNG CONTACT SECTION */
.about-section {
    background: #ffffff;
    color: #333;
    padding-top: 100px;
}

.about-section .container,
.about-section .row,
.about-section .col-12,
.about-section .col-lg-6 {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.about-section .row {
    display: flex !important;
}

.about-section .col-lg-6 {
    display: block !important;
}

/* Cột trái: Hình ảnh */
.about-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-container {
    width: 100%;
    max-width: 600px;
}

/* Mobile slide cho about section */
.about-mobile-slide {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.about-mobile-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.about-mobile-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.about-mobile-slide-item.active {
    opacity: 1 !important;
    z-index: 1 !important;
}

.about-mobile-slide-bg {
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-mobile-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.about-mobile-slide-image::before {
    display: none !important; /* Ẩn mask mờ như hero section */
}

.about-building-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

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

.about-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.about-image-placeholder i {
    color: #6c757d;
    margin-bottom: 1rem;
}

.about-image-placeholder p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* Cột phải: Nội dung */
.about-content-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content-container {
    max-width: 550px;
}

.about-badge {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.2;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #666;
}

.about-button .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.about-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 991.98px) {
    .about-section {
        padding-top: 80px !important;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .about-section {
        padding-top: 70px !important;
    }
    
    .about-content-container {
        text-align: center;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
}

/* Contact section - tránh header che */
.contact-section {
    padding-top: 100px !important; /* Thêm padding-top để tránh header */
}

.contact-center-content {
    padding-top: 0 !important; /* Reset padding-top của content */
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.section.revealed::before {
    transform: translateY(0);
}

.section .container,
.section .hero-content,
.section .about-content,
.section .service-card,
.section .news-card,
.section .contact-form-card {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section.revealed .container,
.section.revealed .hero-content,
.section.revealed .about-content,
.section.revealed .service-card,
.section.revealed .news-card,
.section.revealed .contact-form-card {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for cards */
.section.revealed .service-card:nth-child(1) { transition-delay: 0.1s; }
.section.revealed .service-card:nth-child(2) { transition-delay: 0.2s; }
.section.revealed .service-card:nth-child(3) { transition-delay: 0.3s; }
.section.revealed .news-card:nth-child(1) { transition-delay: 0.1s; }
.section.revealed .news-card:nth-child(2) { transition-delay: 0.2s; }
.section.revealed .news-card:nth-child(3) { transition-delay: 0.3s; }

/* Parallax effect for hero */
.hero-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    width: 100%;
    object-fit: cover;
}

/* Fix slider images to same size - Force override */
.hero-banner img,
.hero-banner .carousel-item img,
.hero-banner .carousel-item,
.hero-banner .carousel-item .hero-bg,
.hero-banner .carousel-item .hero-content {
    height: 100vh !important;
    width: 100% !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Force all images in carousel to same height */
.carousel-item img[src],
.carousel-item .hero-bg,
.carousel-item .hero-content {
    height: 100vh !important;
    width: 100% !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Ensure carousel items have consistent height */
.carousel-item {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
}

.carousel-item.active {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
}

/* Fix carousel inner content */
.carousel-inner {
    height: 100vh !important;
}

.carousel-inner .carousel-item {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
}

/* Ensure all carousel content is centered and consistent */
.carousel-item .container,
.carousel-item .row,
.carousel-item .col-12 {
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Force override any conflicting CSS */
.hero-banner * {
    box-sizing: border-box !important;
}

.hero-banner .carousel-item * {
    height: inherit !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
}

/* Specific override for background images */
.hero-banner .carousel-item .hero-bg {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    height: 100vh !important;
    width: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Login Page Styles */
.login-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.login-card .card-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%) !important;
    border: none;
    padding: 1.5rem;
}

.login-card .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.login-card .form-control:focus {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.login-card .btn {
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.login-card .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem;
}

.login-card .card-footer a {
    color: #2c5aa0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-card .card-footer a:hover {
    color: #1e3a8a;
    transform: translateX(-3px);
}

.login-card .form-label i {
    color: #2c5aa0;
}

.login-card .form-check-input:checked {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
}

.login-card .form-check-label i {
    color: #28a745;
}

.login-card .alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

/* Services Page Styles */
.service-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-image-placeholder {
    height: 200px;
    background: #f8f9fa;
    border-bottom: 3px solid #2c5aa0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    z-index: 1;
}

.service-image-placeholder > div {
    position: relative;
    z-index: 2;
}

.service-card .btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

/* Services Detail Page Styles */
.service-detail-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-detail-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.service-detail-card .card-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
}

.service-detail-card .card-body {
    padding: 2rem;
}

.service-detail-card .btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-detail-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.related-services .card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

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

.related-services .card-body {
    padding: 2rem;
}

.related-services .btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.related-services .btn:hover {
    transform: translateY(-2px);
}

/* User Dropdown Styles */
.user-dropdown {
    color: #2c5aa0 !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    padding: 0.4rem 0.8rem !important;
}

.user-dropdown:hover {
    color: #1e3a8a !important;
    text-decoration: none !important;
}

.user-dropdown:focus {
    text-decoration: none !important;
    box-shadow: none;
}

.user-dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    min-width: 200px;
    right: 0 !important;
    left: auto !important;
    transform: translateX(0) !important;
}

.user-dropdown-menu .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #2c5aa0;
    transform: translateX(5px);
}

.user-dropdown-menu .dropdown-item i {
    color: #2c5aa0;
    width: 16px;
}

.user-dropdown-menu .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e9ecef;
}

/* Dark mode user dropdown */
.dark-mode .user-dropdown-menu {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3) !important;
}

.dark-mode .user-dropdown-menu .dropdown-item {
    color: #ffffff !important;
}

.dark-mode .user-dropdown-menu .dropdown-item:hover {
    background-color: #444 !important;
    color: #007bff !important;
}

/* Dropdown Behavior - Only one dropdown open at a time */
.dropdown-menu {
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

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

/* Ensure dropdowns close properly */
.dropdown-toggle:focus {
    box-shadow: none;
}

.dropdown-toggle[aria-expanded="false"] + .dropdown-menu {
    display: none;
}

.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    display: block;
}

/* Staggered animations */
.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

/* Fix double arrow issue in form-select */
.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Dark mode form-select arrow */
.dark-mode .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

/* Dark mode navbar styles */
.dark-mode .navbar {
    background-color: #2d2d2d !important;
    border-bottom: 1px solid #444 !important;
}

.dark-mode .navbar.bg-white {
    background-color: #2d2d2d !important;
}

.dark-mode .navbar.navbar-light {
    background-color: #2d2d2d !important;
}

.dark-mode .navbar .nav-link {
    color: #ffffff !important;
}

.dark-mode .navbar .nav-link:hover {
    color: #007bff !important;
}

.dark-mode .navbar .dropdown-menu {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    max-height: 500px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Custom scrollbar for dark mode dropdown menu */
.dark-mode .navbar .dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dark-mode .navbar .dropdown-menu::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.dark-mode .navbar .dropdown-menu::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}

.dark-mode .navbar .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.dark-mode .navbar .dropdown-item {
    color: #ffffff !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
}

.dark-mode .navbar .dropdown-item {
    background: transparent !important;
}

.dark-mode .navbar .dropdown-item:hover {
    background: transparent !important;
    color: #007bff !important;
}

.dark-mode .navbar .dropdown-item::after {
    background: linear-gradient(90deg, transparent 0%, #007bff 50%, transparent 100%) !important;
}

.dark-mode .navbar .btn {
    color: #ffffff !important;
}

.dark-mode .navbar .btn-outline-primary {
    border-color: #007bff !important;
    color: #007bff !important;
}

.dark-mode .navbar .btn-outline-primary:hover {
    background-color: #007bff !important;
    color: #ffffff !important;
}

.dark-mode .navbar .btn-primary {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: #ffffff !important;
}

.dark-mode .navbar .btn-primary:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

/* Dark mode slogan text */
.dark-mode .slogan-text {
    color: #ffffff !important;
}

.dark-mode .slogan-text .slogan-line-1-2,
.dark-mode .slogan-text .slogan-line-3 {
    color: #ffffff !important;
}

.dark-mode .slogan-text .motto-text {
    color: #ffffff !important;
}

/* Override Bootstrap classes for dark mode */
.dark-mode .navbar.bg-white,
.dark-mode .navbar.navbar-light,
.dark-mode .navbar.sticky-top {
    background-color: #2d2d2d !important;
    border-bottom: 1px solid #444 !important;
}

/* Force dark mode navbar background */
body.dark-mode .navbar {
    background-color: #2d2d2d !important;
    border-bottom: 1px solid #444 !important;
}

body.dark-mode .navbar.bg-white {
    background-color: #2d2d2d !important;
}

body.dark-mode .navbar.navbar-light {
    background-color: #2d2d2d !important;
}

/* Mobile offcanvas dark mode */
.dark-mode .offcanvas {
    background-color: #2d2d2d !important;
}

.dark-mode .offcanvas-header {
    background-color: #2d2d2d !important;
    border-bottom: 1px solid #444 !important;
}

.dark-mode .offcanvas-header .offcanvas-title {
    color: #ffffff !important;
}

.dark-mode .offcanvas-header .btn-close {
    filter: invert(1) !important;
}

.dark-mode .offcanvas-body {
    background-color: #2d2d2d !important;
}

.dark-mode .offcanvas-body .nav-link {
    color: #ffffff !important;
}

.dark-mode .offcanvas-body .nav-link:hover {
    background-color: #444 !important;
    color: #007bff !important;
}

.dark-mode .offcanvas-body .dropdown-menu {
    background-color: #1a1a1a !important;
    border: 1px solid #444 !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Custom scrollbar for offcanvas dropdown menu */
.offcanvas-body .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.offcanvas-body .dropdown-menu::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

.offcanvas-body .dropdown-menu::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}

.offcanvas-body .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Custom scrollbar for dark mode offcanvas dropdown menu */
.dark-mode .offcanvas-body .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dark-mode .offcanvas-body .dropdown-menu::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.dark-mode .offcanvas-body .dropdown-menu::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}

.dark-mode .offcanvas-body .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* CKEditor: align-left size like side image */
.ck-content .image-style-align-left {
    max-width: 50% !important;
    width: 50% !important;
}

@media (max-width: 767.98px) {
    .ck-content .image-style-align-left {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Public site: align-left/side-left/side size like side image */
.specialty-section .image-style-align-left,
.specialty-section .image-style-side-left,
.specialty-section .image-style-side {
    max-width: 50% !important;
    width: 50% !important;
}

figure.image.image-style-align-left,
figure.image.image-style-side-left,
figure.image.image-style-side {
    max-width: 50% !important;
    width: 50% !important;
}

figure.image.image-style-side {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

figure.image.image-style-side-left,
figure.image.image-style-align-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

figure.image.image-style-align-left img,
figure.image.image-style-side-left img,
figure.image.image-style-side img {
    width: 100% !important;
    height: auto !important;
}

@media (max-width: 767.98px) {
    .specialty-section .image-style-align-left,
    .specialty-section .image-style-side-left,
    .specialty-section .image-style-side {
        max-width: 100% !important;
        width: 100% !important;
    }

    figure.image.image-style-align-left,
    figure.image.image-style-side-left,
    figure.image.image-style-side {
        max-width: 100% !important;
        width: 100% !important;
        float: none !important;
        margin: 0 0 1rem 0 !important;
    }
}

.dark-mode .offcanvas-body .dropdown-item {
    color: #ffffff !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
}

.dark-mode .offcanvas-body .dropdown-item:hover {
    background-color: #444 !important;
    color: #007bff !important;
}

.dark-mode .offcanvas-body .btn {
    color: #ffffff !important;
}

.dark-mode .offcanvas-body .btn-outline-primary {
    border-color: #007bff !important;
    color: #007bff !important;
}

.dark-mode .offcanvas-body .btn-outline-primary:hover {
    background-color: #007bff !important;
    color: #ffffff !important;
}

.dark-mode .offcanvas-body .btn-primary {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: #ffffff !important;
}

.dark-mode .offcanvas-body .btn-primary:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

/* Form-select focus state */
.form-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form-select hover state */
.form-select:hover {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form-select active state */
.form-select:active {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form-select disabled state */
.form-select:disabled {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form-select invalid state */
.form-select:invalid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dc3545' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form-select valid state */
.form-select:valid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23198754' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form-select required state */
.form-select:required {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffc107' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form-select optional state */
.form-select:optional {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form-select readonly state */
.form-select:readonly {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form-select checked state */
.form-select:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23198754' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form-select indeterminate state */
.form-select:indeterminate {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffc107' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form-select in-range state */
.form-select:in-range {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23198754' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form-select out-of-range state */
.form-select:out-of-range {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dc3545' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form-select placeholder-shown state */
.form-select:placeholder-shown {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form-select not placeholder-shown state */
.form-select:not(:placeholder-shown) {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Hover effects for icons */
.fa-stethoscope:hover,
.fa-user-md:hover,
.fa-newspaper:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Breadcrumb styling */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: #1e3a8a;
    background-color: rgba(44, 90, 160, 0.1);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

/* Remove default Bootstrap breadcrumb styling */
.breadcrumb-item::before {
    display: none !important;
}

.breadcrumb-item:not(:first-child)::before {
    content: "›";
    color: #adb5bd;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 0.5rem;
    display: inline-flex;
    align-items: center;
}

/* Service card description - ensure consistent button alignment */
.service-card-description {
    min-height: 4.5em; /* Ensure enough space for exactly 3 lines of text */
    max-height: 4.5em; /* Limit to exactly 3 lines */
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Chỉ button "ĐẶT LỊCH KHÁM" - Giống button "XEM DỊCH VỤ" */
.btn-primary.appointment-btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    border: none !important;
    background: #2c5aa0 !important;
    color: white !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.btn-primary.appointment-btn:hover {
    background: #1e3a8a !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.btn-primary.appointment-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25) !important;
}




/* Ensure all service cards have the same height */
.card.h-100 {
    display: flex;
    flex-direction: column;
}

.card.h-100 .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card.h-100 .card-body .mt-auto {
    margin-top: auto;
}

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

/* ===================================
   Pagination Styles
   =================================== */

/* Modern pagination for public pages */
.pagination-modern {
    gap: 0.5rem;
}

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

.pagination-modern .page-link {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    color: #2c5aa0;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-modern .page-link:hover {
    background-color: #e9ecef;
    border-color: #2c5aa0;
    color: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.2);
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a6f 100%);
    border-color: #2c5aa0;
    color: white;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.pagination-modern .page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-modern .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination-modern {
        gap: 0.25rem;
    }
    
    .pagination-modern .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.875rem;
        min-width: 36px;
    }
}

/* ===================================
   News Page Styles (YTECO Design)
   =================================== */

/* Page Title */
.news-page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 1rem;
    position: relative;
}

.news-page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #0066cc;
}

/* Category Tabs */
.news-category-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.category-tab {
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.category-tab:hover {
    color: #0066cc;
}

.category-tab.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

/* Featured News Card (First Item) */
.news-featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.news-featured-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}

.news-featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.news-featured-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0066cc;
    margin: 0.5rem 0 0.8rem;
    line-height: 1.4;
}

.news-featured-summary {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Regular News Card (Row 2: 2 columns) */
.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.news-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0066cc;
    font-family: 'Poppins', 'Inter', sans-serif;
    margin: 0.3rem 0 0.5rem;
    line-height: 1.4;
    min-height: 2.2rem;
}

.news-card-summary {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    flex-grow: 1;
}

/* Small News Card (Row 3+: 4 columns) */
.news-card-small {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.news-card-img-small {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card-body-small {
    padding: 0.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title-small {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0066cc;
}

/* Responsive card-title sizing */
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .card-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
}

@media (max-width: 576px) {
    .card-title {
        font-size: 1rem;
        line-height: 1.2;
    }
}

/* ==================== FLOATING ACTION BUTTONS ==================== */

.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    text-decoration: none;
    position: relative;
    z-index: 10000 !important;
    pointer-events: auto !important;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

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

/* Scroll to Top Button */
.floating-btn.scroll-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Zalo Button */
.floating-btn.zalo {
    background: linear-gradient(135deg, #0068ff 0%, #004bb5 100%);
}

/* Call Button */
.floating-btn.call {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Chatbot Button */
.floating-btn.chatbot {
    background: linear-gradient(135deg, #fd7e14 0%, #e83e8c 100%);
}

/* Tooltip */
.floating-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn::before {
    content: '';
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-btn:hover::after,
.floating-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-buttons {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .floating-btn::after {
        right: 60px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .floating-btn::before {
        right: 50px;
        border-width: 5px;
    }
}

/* Animation for scroll to top */
.floating-btn.scroll-top.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Pulse animation for call button */
.floating-btn.call.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4), 0 0 0 10px rgba(40, 167, 69, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    }
}

/* Force override for floating buttons */
.floating-buttons {
    z-index: 1040 !important; /* Giảm z-index để thấp hơn navbar */
    pointer-events: auto !important;
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
}

.floating-btn {
    z-index: 1040 !important; /* Giảm z-index để thấp hơn navbar */
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* ==================== HEADER STABILITY ==================== */
.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1060 !important; /* Tăng z-index để cao hơn floating buttons */
    transition: none !important;
}

/* Fix modal accessibility issues */
.modal {
    pointer-events: auto !important;
    display: none !important; /* Ẩn modal mặc định */
}

.modal.show {
    display: block !important; /* Chỉ hiện khi có class show */
    pointer-events: auto !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

body.modal-open {
    overflow: hidden !important;
}

/* Force enable pointer events for all interactive elements */
* {
    pointer-events: auto !important;
}

/* Specific overrides for problematic elements */
body, html {
    pointer-events: auto !important;
}

a, button, input, select, textarea, [role="button"], [tabindex] {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Ensure navbar is clickable */
.navbar, .navbar *, .nav-link, .dropdown-toggle {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Force all clickable elements to work */
div, span, p, h1, h2, h3, h4, h5, h6, li, ul, ol {
    pointer-events: auto !important;
}

/* Override any potential blocking */
.container, .row, .col, .card, .card-body {
    pointer-events: auto !important;
}

.navbar .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Header layout: Logo+Slogan | Menu | DarkMode+Login */
.navbar .container-fluid > div:first-child {
    flex: 0 0 auto; /* Logo + Slogan - không co giãn */
    order: 1;
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    justify-content: flex-start; /* Căn trái để không bị lệch */
    max-width: 45%; /* Giới hạn chiều rộng để menu có đủ không gian */
    min-width: 0; /* Cho phép co lại nếu cần */
}

.navbar .navbar-collapse {
    flex: 1 1 auto; /* Menu - co giãn */
    order: 2;
    display: flex !important;
    justify-content: center !important;
}

.navbar .d-flex.align-items-center:last-child {
    flex: 0 0 auto; /* DarkMode + Login - không co giãn */
    order: 3;
}

/* Mobile header layout fixes */
@media (max-width: 991px) {
    .navbar {
        position: relative !important;
    }
    
    .navbar .container-fluid {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }
    
    .navbar .container-fluid > div:first-child {
        flex: 1 1 auto !important;
        max-width: none !important;
        overflow: visible !important;
        margin-right: 60px !important; /* Tạo chỗ cho toggle button */
    }
    
    .logo-section {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .logo-section img {
        height: 50px !important;
        width: auto !important;
    }
    
    .motto-text {
        display: none !important;
    }
    
    .slogan-text {
        display: flex !important;
        flex-direction: column !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        margin-left: 8px !important;
        max-width: 200px !important;
        overflow: visible !important;
    }
    
    .slogan-line-1-2 {
        font-size: 12px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }
    
    .slogan-line-3 {
        font-size: 12px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }
}

/* Responsive font size cho slogan trên mobile */
@media (max-width: 480px) {
    .slogan-text {
        font-size: 11px !important;
        max-width: 100px !important;
    }
    
    .slogan-line-1-2,
    .slogan-line-3 {
        font-size: 11px !important;
    }
    
    .slogan-line-3 {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        /* transform: translateX(0%); */
    }
    .slogan-text .motto-text {
        left: 50% !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .slogan-text {
        font-size: 13px !important;
        max-width: 140px !important;
    }
    
    .slogan-line-1-2,
    .slogan-line-3 {
        font-size: 13px !important;
    }
    
    .slogan-line-3 {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        /* transform: translateX(0%); */
    }
    .slogan-text .motto-text {
        left: 50% !important;
    }
}

/* Ẩn menu desktop trên mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Ẩn tất cả menu items trên mobile */
    .navbar-nav {
        display: none !important;
    }
    
    /* Hiển thị right actions trên mobile */
    .navbar .d-flex.align-items-center:last-child {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Logo và slogan ở bên trái trên mobile */
    .navbar .container-fluid > div:first-child {
        flex: 1 1 auto !important;
        max-width: none !important;
        overflow: visible !important;
        margin-right: 60px !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .logo-section {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .navbar-brand {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    /* Slogan mobile - canh giữa dòng 2 với dòng 1 */
    .slogan-text {
        position: relative !important;
    }
    
    .slogan-line-1-2 {
        text-align: left !important;
        width: 100% !important;
    }
    
    .slogan-line-3 {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        position: relative !important;
        left: 50% !important;
        /* transform: translateX(-50%); */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Force center với CSS mạnh hơn */
    .navbar .container-fluid > div:first-child .slogan-text .slogan-line-3 {
        text-align: center !important;
        position: relative !important;
        left: 50% !important;
        /* transform: translateX(-60%); */
        width: auto !important;
        max-width: 100% !important;
    }
    
    .navbar-brand img {
        height: 50px !important;
        margin-right: 10px !important;
    }
    
    .navbar-toggler {
        display: block !important;
        position: fixed !important;
        right: -10px !important;
        top: -5px !important;
        z-index: 9999 !important;
        font-size: 0.8rem !important;
        background: white !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
        padding: 8px 12px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
}


/* ==================== HEADER SLOGAN ==================== */
.slogan-text {
    font-family: 'Poppins', 'Inter', sans-serif;
    line-height: 1.2;
    color: #2c5aa0;
    font-weight: bold;
    flex-shrink: 0; /* Prevent slogan from shrinking */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Canh giữa theo chiều dọc với logo */
    align-items: center; /* Canh giữa slogan với logo */
    position: relative; /* Thay vì absolute để vẫn chiếm không gian */
    z-index: 99;
    margin-left: 0; /* Xóa hoàn toàn margin để sát logo */
    margin-top: 0; /* Thay vì top: 34px */
    padding-left: 0; /* Xóa padding trái */
}

/* Logo section styling */
.logo-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; /* Đảm bảo chiều cao đầy đủ */
    margin-right: 0; /* Xóa margin để logo và slogan sát nhau */
    padding-right: 0; /* Xóa padding để gần slogan hơn */
}

.slogan-text .motto-text {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #3fe0d0;
    text-align: center !important;
    margin: 4px auto 0 auto !important;
    white-space: nowrap;
    letter-spacing: 0.5px;
    width: 100% !important;
    max-width: 250px; /* Tăng max-width để chứa text dài hơn */
    display: block !important;
    position: relative !important;
    /* transform: translateX(-73%) !important; */
    font-style: italic;
}

/* Hide motto on mobile - chỉ hiện trên desktop */
@media (max-width: 991px) {
    .slogan-text .motto-text {
        font-size: 11px;
        /* transform: translateX(-40%) !important; */
    }
}


.slogan-line-1-2 {
    font-size: 17px;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 2px;
    white-space: nowrap; /* Không cho phép rớt dòng */
    text-align: center; /* Canh giữa */
    display: none;
}

.slogan-line-3 {
    font-size: 15px;
    font-weight: 650;
    color: #1c436c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Không cho phép rớt dòng */
    text-align: center; /* Canh giữa */
    width: 100%; /* Đảm bảo chiều rộng đầy đủ để center hoạt động */
    display: block; /* Đảm bảo là block element */
}

/* Header navigation optimization - FIXED */
.navbar-nav {
    gap: 0.3rem;
    flex-wrap: nowrap !important; /* Prevent wrapping */
    margin: 0 !important; /* Remove default margin */
}

.navbar-nav .nav-link {
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
    font-size: 0.95rem !important;
    white-space: nowrap;
    transition: none !important; /* Disable transitions to prevent jumping */
    flex-shrink: 0; /* Prevent nav links from shrinking */
    text-transform: uppercase;
}

.navbar-brand {
    margin-right: 1rem !important;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

/* Force navbar to stay in one line */
.navbar-collapse {
    flex-basis: auto !important;
    flex-grow: 1 !important; /* Allow menu to grow */
    justify-content: center !important; /* Center menu */
}

.navbar-toggler {
    flex-shrink: 0 !important;
    order: 4; /* Toggle button last */
}

/* Slogan responsive - SIMPLIFIED */
@media (max-width: 1200px) {
    .slogan-text {
        display: none; /* Hide slogan on smaller screens */
    }
    
    .motto-text {
        display: none; /* Hide motto on smaller screens */
    }
}

/* Only show slogan on very large screens */
@media (min-width: 1201px) {
    .slogan-line-1 {
        font-size: 12px;
    }
    
    .slogan-line-2 {
        font-size: 14px;
    }
    
    .slogan-line-3 {
        font-size: 15px;
    }
}
    /* font-family: 'Poppins', 'Inter', sans-serif;
    margin: 0.2rem 0 0.5rem;
    line-height: 1.3;
    min-height: 2rem;
} */

/* Category Badge */
.news-category-badge {
    color: #dc3545;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Read More Link */
.news-readmore {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.news-readmore:hover {
    color: #357abd;
    transform: translateX(5px);
}

/* News Pagination (YTECO Style) */
.news-pagination {
    gap: 0.5rem;
}

.news-pagination .page-item .page-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6c757d;
    background: #f5f5f5;
    transition: all 0.3s ease;
}

.news-pagination .page-item.active .page-link {
    background: #0066cc;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.news-pagination .page-item .page-link:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-2px);
}

.news-pagination .page-item.disabled .page-link {
    background: #e9ecef;
    color: #adb5bd;
}

/* Responsive */
@media (max-width: 768px) {
    .news-page-title {
        font-size: 2rem;
    }
    
    .news-featured-img {
        height: 250px;
        border-radius: 20px 20px 0 0;
    }
    
    .news-featured-content {
        padding: 1.5rem;
    }
    
    .news-featured-title {
        font-size: 1.3rem;
    }
    
    .category-tab {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
}

/* Admin Filter Box */
.admin-filter-box {
    position: relative;
}

.admin-filter-box .form-select {
    padding-left: 2.5rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-size: 0.9rem;
    height: 40px;
    transition: all 0.3s ease;
}

.admin-filter-box .form-select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Admin Filter Form Layout */
#filterForm .row {
    align-items: end;
}

#filterForm .admin-search-box,
#filterForm .admin-filter-box {
    margin-bottom: 0;
}

#filterForm .form-control,
#filterForm .form-select {
    height: 40px;
    font-size: 0.9rem;
}

/* Admin Alert Boxes - Fix Overlapping */
.admin-section-card .alert {
    margin-bottom: 1.5rem !important;
    position: relative !important;
    z-index: 1 !important;
    clear: both !important;
    overflow: visible !important;
    display: block !important;
}

.admin-section-card .alert:last-child {
    margin-bottom: 0 !important;
}

/* Fix overlapping alerts */
.admin-section-card .section-content .alert {
    clear: both !important;
    overflow: visible !important;
    margin-bottom: 1.5rem !important;
}

/* Alert spacing in forms */
.form-alert {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    clear: both !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Ensure proper stacking */
.admin-section-card .row .col-lg-4 .admin-section-card {
    position: relative !important;
    z-index: 2 !important;
}

/* Force alert boxes to not overlap */
.alert {
    position: relative !important;
    z-index: auto !important;
    margin-bottom: 1.5rem !important;
    clear: both !important;
}

/* Specific fix for user management alerts */
.col-lg-4 .admin-section-card .alert {
    margin-bottom: 1.5rem !important;
    position: relative !important;
    z-index: 1 !important;
    clear: both !important;
    overflow: visible !important;
}

/* Prevent any overlapping */
.admin-section-card .section-content {
    overflow: visible !important;
    position: relative !important;
}

.admin-section-card .section-content .alert + .alert {
    margin-top: 1.5rem !important;
}

/* Specific fix for User Management pages */
.container-fluid .row .col-lg-4 .admin-section-card .section-content {
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

.container-fluid .row .col-lg-4 .admin-section-card .section-content .alert {
    position: relative !important;
    z-index: 2 !important;
    margin-bottom: 1.5rem !important;
    clear: both !important;
    overflow: visible !important;
    display: block !important;
    width: 100% !important;
}

/* Force proper layout for user forms */
.col-lg-4 .admin-section-card {
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
}

.col-lg-4 .admin-section-card .section-content {
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
    padding-bottom: 2rem !important;
}

/* Alert Container */
.alert-container {
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
    display: block !important;
    width: 100% !important;
}

.alert-container .alert {
    position: relative !important;
    z-index: 2 !important;
    margin-bottom: 1.5rem !important;
    clear: both !important;
    overflow: visible !important;
    display: block !important;
    width: 100% !important;
}

.alert-container .alert:last-child {
    margin-bottom: 0 !important;
}

/* --- Navbar Fix & Modern Offcanvas Enhancement --- */

/* Đảm bảo toggle luôn hiển thị trên mobile */
.navbar-toggler {
    display: block !important;
    z-index: 1051 !important;
    border: none;
    background: transparent;
  }
  
  .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
  }
  
  /* Sticky navbar luôn nằm trên top */
  .navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1050;
  }
  
  /* Fix background offcanvas */
  .offcanvas {
    background-color: #fff;
    transition: transform 0.4s ease-in-out;
  }
  
  .offcanvas.show {
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
  }
  
  /* Header offcanvas */
  .offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
  }
  
  .offcanvas-title {
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  /* Body offcanvas */
  .offcanvas-body {
    padding: 1rem 1.25rem;
  }
  
  .offcanvas-body .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  .offcanvas-body .navbar-nav .nav-link:hover {
    color: var(--bs-primary, #d60000);
  }
  
  /* Responsive - chỉ áp dụng khi màn hình nhỏ */
  @media (max-width: 992px) {
    .navbar-nav {
      flex-direction: column;
      gap: 0;
    }
  }

/* ===============================
   Navbar - Bootstrap 5.3 Optimized (Updated by ChatGPT)
   =============================== */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    position: sticky !important;
    top: 0;
    z-index: 1050;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure navbar is always visible */
.navbar-collapse {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.navbar-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-nav .nav-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
}

.navbar-nav .nav-link {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #333 !important;
    padding: 0.5rem 1rem !important;
}

/* Desktop - Ensure navbar is visible */
@media (min-width: 992px) {
    .navbar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1050 !important;
    }
    
    .navbar-toggler {
        display: none !important;
    }
    
    .offcanvas {
        display: none !important;
    }
    
    /* Show desktop menu */
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
        flex-grow: 1 !important;
        visibility: visible !important;
        opacity: 1 !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1.5rem !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .navbar-nav .nav-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
    }
    
    .navbar-nav .nav-link {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #333 !important;
        padding: 0.5rem 1rem !important;
    }
}

.navbar-brand img {
    height: 50px;
    transition: transform 0.3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Desktop only - logo transform */
@media (min-width: 992px) {
    .navbar-brand img {
        transform: translateX(0%);
    }
    
    .navbar-brand:hover img {
        transform: translateX(0%) scale(1.05);
    }
    
    .slogan-text {
        transform: translateX(-5%);
    }
}

/* Toggle button */
.navbar-toggler {
    border: none !important;
    background-color: transparent !important;
    padding: 0.4rem 0.6rem;
}
.navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
}
.navbar-toggler-icon {
    background-image: var(--bs-navbar-toggler-icon-bg) !important;
}

/* Mobile: Navbar toggler với nền xanh và icon trắng (giống button "Về chúng tôi") */
@media (max-width: 991px) {
    .navbar-toggler {
        background: linear-gradient(135deg, #007bff 0%, #025bb9 100%) !important;
        border-radius: 8px !important;
        padding: 0.5rem 0.75rem !important;
        border: none !important;
    }
    
    .navbar-toggler:hover {
        background: linear-gradient(135deg, #007bff 0%, #025bb9 100%) !important;
    }
    
    .navbar-toggler:focus {
        outline: none !important;
        box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25) !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        filter: brightness(0) invert(1) !important;
        transition: all 0.3s ease !important;
    }
    
    /* Đổi icon thành close (X) khi menu mở */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon,
    .navbar-toggler[data-bs-toggle="offcanvas"][aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4l8 8M12 4l-8 8'/%3e%3c/svg%3e") !important;
        filter: brightness(0) invert(1) !important;
    }
    
    /* Hoặc khi offcanvas có class show */
    #mainOffcanvas.show ~ .navbar .navbar-toggler .navbar-toggler-icon,
    body:has(#mainOffcanvas.show) .navbar-toggler[data-bs-target="#mainOffcanvas"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4l8 8M12 4l-8 8'/%3e%3c/svg%3e") !important;
        filter: brightness(0) invert(1) !important;
    }
}

/* Offcanvas menu */
.offcanvas {
    background: #ffffff;
    transition: transform 0.3s ease-in-out;
}
.offcanvas-header {
    border-bottom: 1px solid #e9ecef;
}
.offcanvas-body .nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}
.offcanvas-body .nav-link:hover {
    color: #2c5aa0 !important;
    background-color: #f8f9fa;
    transform: translateX(3px);
}

/* Dropdown in offcanvas */
.offcanvas-body .dropdown-menu {
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Right-side actions */
.navbar .d-flex.align-items-center {
    margin-left: auto;
    gap: 0.5rem;
}

/* Scroll effect */
.navbar-scrolled {
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Mobile specific */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1050 !important;
    }

    .navbar-brand {
        margin-right: auto !important;
        margin-left: 0 !important;
    }

    .navbar-brand img {
        height: 50px;
    }

    .navbar-toggler {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        border: none !important;
        padding: 0.25rem 0.5rem !important;
        position: relative !important;
        z-index: 1060 !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    /* Dark mode toggle button */
    .dark-mode .navbar-toggler {
        border-color: #ffffff !important;
    }
    
    .dark-mode .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
    }
    
    .dark-mode .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    .navbar-collapse:not(.show) {
        display: none !important;
    }

    .offcanvas {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 300px !important;
        height: 100vh !important;
        z-index: 1055 !important;
        background: #ffffff !important;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1) !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
    }
    
    .offcanvas.show {
        display: block !important;
        transform: translateX(0) !important;
    }
    
    .offcanvas-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0,0,0,0.5) !important;
        z-index: 1050 !important;
        pointer-events: auto !important;
    }

    /* Ẩn nút close trong offcanvas trên mobile */
    .offcanvas-header .btn-close {
        display: none !important;
    }

    .offcanvas-body .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .offcanvas-body .nav-item {
        width: 100% !important;
        margin: 0 !important;
        border-bottom: 1px solid #e9ecef !important;
    }
    
    .offcanvas-body .nav-link {
        padding: 1rem !important;
        text-align: left !important;
        border-radius: 0 !important;
        transition: all 0.3s ease !important;
        margin: 0 !important;
    }
    
    .offcanvas-body .nav-link:hover {
        background-color: #f8f9fa !important;
        color: #2c5aa0 !important;
    }
    
    .offcanvas-body .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        background-color: #f8f9fa !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        max-height: 400px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    .offcanvas-body .dropdown-item {
        padding: 0.75rem 1rem 0.75rem 2rem !important;
        font-size: 0.9rem !important;
        border-bottom: 1px solid #e9ecef !important;
        text-transform: uppercase;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.4 !important;
    }
    
    .offcanvas-body .dropdown-item:hover {
        background-color: #e9ecef !important;
        color: #2c5aa0 !important;
    }
    
    .offcanvas-body .d-flex {
        flex-direction: row !important;
        align-items: center !important;
        gap: 1rem !important;
        margin-top: 1rem !important;
        justify-content: space-between !important;
    }
    
    .offcanvas-body .btn {
        flex: 1 !important;
        text-align: center !important;
        margin: 0 !important;
    }
    
    .offcanvas-body .dropdown {
        flex: 1 !important;
    }
}
@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 50px;
    }
}


.slide-status {
    position: absolute;
    top: 10px;
    right: 10px;
}

.slide-body {
    padding: 1.25rem;
    flex-grow: 1;
}

.slide-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.slide-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.slide-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.slide-order,
.slide-date {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.slide-order i,
.slide-date i {
    color: #0066cc;
}

.slide-footer {
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.slide-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.slide-actions .btn {
    flex: 1;
    border-radius: 6px;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-secondary {
    background-color: #e2e3e5;
    color: #6c757d;
}

/* Footer mobile responsiveness */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0 !important;
    }
    
    footer .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    footer .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    footer .col-md-4 {
        margin-bottom: 2rem !important;
        text-align: left !important;
    }
    
    footer .col-md-4:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Contact info styling */
    footer .text-light {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }
    
    footer .text-light i {
        margin-right: 0.5rem !important;
        width: 16px !important;
    }
}


.slogan-line-3 {
    transform: translateX(0%);
}

.slogan-text .motto-text {
    transform: translateX(-20%);
}
  
  /* --- Tablet --- */
  @media (min-width: 768px) and (max-width: 991px) {
    .slogan-line-3 {
        transform: translateX(-60%);
    }

    .slogan-text .motto-text {
        transform: translateX(-40%);
        left: 35% !important;
    }
  }
  
  /* --- Desktop nhỏ --- */
  @media (min-width: 992px) and (max-width: 1199px) {
    .slogan-line-3 {
        transform: translateX(0%);
    }

    .slogan-text .motto-text {
        transform: translateX(-70%);
        left: 35% !important;
    }
  }
  
  /* --- Desktop lớn --- */
  @media (min-width: 1200px) {
    .slogan-line-3 {
        transform: translateX(0%);
    }

    .slogan-text .motto-text {
        transform: translateX(-72%);
        left: 70% !important;
    }
  }

/* ==================== NAVBAR ENHANCEMENT ==================== */
/* Gradient background cho navbar */
.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%) !important;
    /* border-bottom: 2px solid #007bff !important; */
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

/* Navbar hover effect */
.navbar:hover {
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15) !important;
}

/* Nav links với màu sắc */
.navbar .nav-link {
    color: #2c5aa0 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    margin: 0 0.25rem !important;
    background: transparent !important;
}

/* Nav link hover effect */
.navbar .nav-link:hover {
    background: transparent !important;
    color: #007bff !important;
    transform: none !important;
    box-shadow: none !important;
}

.navbar .nav-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0.5rem !important;
    left: 1rem !important;
    right: 1rem !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent 0%, #007bff 50%, transparent 100%) !important;
    transform: scaleX(0) !important;
    transform-origin: center !important;
    transition: transform 0.3s ease !important;
}

.navbar .nav-link:hover::after {
    transform: scaleX(1) !important;
}

/* Dropdown menu styling */
.navbar .dropdown-menu {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 1px solid #007bff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15) !important;
    margin-top: 0 !important;
    padding: 8px 0 !important;
    min-width: 250px !important;
    max-width: 350px !important;
    max-height: 500px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Custom scrollbar for dropdown menu */
.navbar .dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.navbar .dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.navbar .dropdown-menu::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}

.navbar .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Auto show dropdown on hover (desktop only) */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover .dropdown-menu,
    .navbar .nav-item.dropdown .dropdown-menu:hover {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        animation: dropdownFadeIn 0.3s ease !important;
    }
    
    .navbar .nav-item.dropdown:hover .dropdown-toggle {
        color: #007bff !important;
    }
    
    /* Keep dropdown visible when hovering over it */
    .navbar .nav-item.dropdown .dropdown-menu {
        margin-top: 0 !important;
    }
    
    /* Add small delay before hiding */
    .navbar .nav-item.dropdown .dropdown-menu {
        pointer-events: auto !important;
    }
}

.navbar .dropdown-item {
    color: #2c5aa0 !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    margin: 2px 8px !important;
    margin-left: 0px !important;
    position: relative !important;
    background: transparent !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
}

.navbar .dropdown-item:hover {
    background: transparent !important;
    color: #007bff !important;
}

.navbar .dropdown-item::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0.5rem !important;
    left: 1.5rem !important;
    right: 1.5rem !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent 0%, #007bff 50%, transparent 100%) !important;
    transform: scaleX(0) !important;
    transform-origin: center !important;
    transition: transform 0.3s ease !important;
}

.navbar .dropdown-item:hover::after {
    transform: scaleX(1) !important;
}

/* Button styling */
.navbar .btn-outline-primary {
    border: 2px solid #007bff !important;
    color: #007bff !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease !important;
}

.navbar .btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

/* Logo enhancement */
.navbar-brand {
    transition: all 0.3s ease !important;
}

.navbar-brand:hover {
    transform: scale(1.05) !important;
}

/* Slogan text enhancement */
.slogan-text {
    text-shadow: 0 1px 3px rgba(0, 123, 255, 0.1) !important;
}

/* Dark mode navbar enhancement */
.dark-mode .navbar {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #0d0d0d 100%) !important;
    border-bottom: 2px solid #007bff !important;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2) !important;
}

.dark-mode .navbar:hover {
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3) !important;
}

.dark-mode .navbar .nav-link {
    background: transparent !important;
}

.dark-mode .navbar .nav-link:hover {
    background: transparent !important;
    color: #007bff !important;
}

.dark-mode .navbar .nav-link::after {
    background: linear-gradient(90deg, transparent 0%, #007bff 50%, transparent 100%) !important;
}

.dark-mode .navbar .dropdown-menu {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    border: 1px solid #007bff !important;
}

.dark-mode .navbar .dropdown-item {
    background: transparent !important;
}

.dark-mode .navbar .dropdown-item:hover {
    background: transparent !important;
    color: #007bff !important;
}

.dark-mode .navbar .dropdown-item::after {
    background: linear-gradient(90deg, transparent 0%, #007bff 50%, transparent 100%) !important;
}

/* Video modal styling */
#videoModal .modal-dialog {
    width: 96%;
    max-width: 1100px;
    margin: 1.5rem auto;
}

#videoModal .modal-content {
    border: none;
    border-radius: 24px;
    box-shadow: 0 28px 65px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    background-color: #ffffff;
}

#videoModal .modal-header {
    padding: 1.25rem 1.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background-color: #ffffff;
}

#videoModal .modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

#videoModal .modal-header .btn-close {
    background-color: rgba(100, 116, 139, 0.12);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease-in-out;
}

#videoModal .modal-header .btn-close:hover {
    background-color: rgba(59, 130, 246, 0.18);
}

#videoModal .modal-body {
    padding: 0;
    background-color: #060b14;
}

#videoModal .ratio {
    --bs-aspect-ratio: 56.25%;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    background-color: #000;
}

#videoModal .ratio iframe,
#videoModal iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

#videoModal .modal-footer {
    padding: 1.25rem 1.9rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background-color: #ffffff;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

#videoModal .modal-footer .btn {
    min-width: 120px;
}

@media (max-width: 768px) {
    #videoModal .modal-dialog {
        width: 100%;
        max-width: none;
        margin: 0.75rem;
    }

    #videoModal .modal-title {
        font-size: 1.1rem;
    }
}

/* Video card overlay */
.video-card-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25) 0%, rgba(15, 23, 42, 0.75) 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-card-thumbnail:hover .video-card-overlay {
    opacity: 1;
    transform: scale(1);
}

.video-card-overlay .btn-play {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card-overlay .btn-play i {
    font-size: 1.35rem;
}

.video-card-overlay .btn-play:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.45);
}