/* Custom CSS for Nuky Tea Landing Page - UPDATED */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Root Variables - Dynamic Color Support */
:root {
    --primary-color: #2d5a27;
    --secondary-color: #6b8e23;
    --accent-color: #8fbc8f;
    --success-color: #28a745;
    --dark-color: #02883c;
    --light-color: #f8f9fa;
    --text-dark: #333;
    --text-muted: #6c757d;
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --navbar-height: 76px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    /* FIX: Remove fixed padding-top để tự động điều chỉnh */
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.display-4, .display-5, .display-6 {
    font-weight: 700;
}

/* Utilities */
.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto;
    border-radius: 2px;
}

/* Navigation - FIX Height và Position */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.95) !important;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    /* Ensure consistent height */
    min-height: var(--navbar-height);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--success-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--success-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}




/* Sections - FIX Proper Spacing */
section {
    scroll-margin-top: var(--navbar-height);
    padding: 5rem 0;
}

/* Special spacing for first section after hero */
#products {
    /* FIX: Add extra top padding to prevent overlap */
    padding-top: 6rem;
}

.product-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

.product-card .card-body {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
}

/* Fixed height for description preview */
.product-description-preview {
    height: 3rem; /* Fixed height = 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Make sure price section doesn't grow */
.price-info {
    flex-shrink: 0;
}

/* Button container at bottom */
.mt-auto {
    margin-top: auto !important;
}

/* Smaller buttons for index page */
.product-card .btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* Product image fixed height */
.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

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

/* Product overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-image {
        height: 200px;
    }
    
    .product-description-preview {
        height: 2.5rem;
        font-size: 0.85rem;
    }
    
    .product-card .btn-sm {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .price-info .h4 {
        font-size: 1.1rem;
    }
}

/* Gallery - FIX Responsive 2 Columns */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 90, 39, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

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

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Contact Section */
.contact-info .contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-form-wrapper {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.contact-form .form-control {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    background: white;
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

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

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    animation: pulse 2s infinite;
}

.fab-call {
    background: var(--success-color);
}

.fab-zalo {
    background: #0084ff;
}

.fab-button:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    opacity: 0.7;
}

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

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), var(--secondary-color));
    border: none;
}

.btn-success:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--success-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark-color);
    transform: translateY(-2px);
}

/* RESPONSIVE DESIGN - FIX Mobile Layout */
@media (max-width: 768px) {
   
    /* Sections Mobile Spacing */
    section {
        padding: 3rem 0;
    }
    
    #products {
        padding-top: 4rem;
    }
    
    /* FIX: Gallery Mobile - 2 Columns */
    #gallery .row.g-3 .col-lg-3,
    #gallery .row.g-3 .col-md-4,
    #gallery .row.g-3 .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* FIX: Blog Mobile - 2 Columns */
    #blog .row.g-4 .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* FIX: Products Mobile - 2 Columns */
    #products .row.g-4 .col-lg-4,
    #products .row.g-4 .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Floating Actions Mobile */
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
    }
    
    .fab-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-form-wrapper {
        margin-top: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .contact-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .product-card,
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    /* Very small screens - single column */
    #gallery .row.g-3 .col-lg-3,
    #gallery .row.g-3 .col-md-4,
    #gallery .row.g-3 .col-sm-6,
    #blog .row.g-4 .col-lg-4,
    #products .row.g-4 .col-lg-4,
    #products .row.g-4 .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Dynamic Color Support - Để settings màu sắc hoạt động */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.alert-success {
    background: linear-gradient(45deg, var(--success-color), var(--secondary-color));
    border: none;
    color: white;
    border-radius: var(--border-radius);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Additional Utility Classes */
.text-success { color: var(--success-color) !important; }
.bg-success { background-color: var(--success-color) !important; }

/* DYNAMIC HEADER & FOOTER COLORS - CSS Update */

/* ============================================
   HEADER/NAVBAR DYNAMIC COLORS
   ============================================ */

/* Main Navbar Background */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-color);
}

/* Navbar when scrolled */
.navbar.scrolled {
    background: linear-gradient(135deg, var(--primary-color)ee, var(--secondary-color)ee) !important;
    box-shadow: 0 2px 20px rgba(154, 233, 7, 0.724);
}

/* Top Bar Colors */
.top-bar {
    background: var(--accent-color) !important;
    color: white !important;
}

.top-bar small {
    color: white !important;
}

/* Brand/Logo Colors */
.navbar-brand {
    color: white !important;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.navbar-brand .brand-text {
    color: white !important;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

.navbar-nav .nav-link::after {
    background: var(--accent-color) !important;
}

/* Navbar Toggle Button */
.navbar-toggler {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.25);
}

.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");
}

/* Navbar Action Buttons */
.navbar-actions .btn {
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-actions .btn-success {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.navbar-actions .btn-success:hover {
    background: white !important;
    color: var(--primary-color) !important;
    border-color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.navbar-actions .btn-primary {
    background: #0084ff !important;
    border-color: #0084ff !important;
}

.navbar-actions .btn-primary:hover {
    background: white !important;
    color: #0084ff !important;
    border-color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ============================================
   FOOTER DYNAMIC COLORS
   ============================================ */

/* Main Footer Background */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
}

.footer-main {
    background: transparent !important;
}

/* Footer Headings */
.footer-title {
    color: var(--accent-color) !important;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Footer Links */
.footer-link {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    display: inline-block;
}

.footer-link:hover {
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

/* Contact Icons */
.contact-icon {
    background: var(--accent-color) !important;
    color: white !important;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-icon:hover {
    background: white !important;
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

/* Contact Details */
.contact-value {
    color: white !important;
    font-weight: 500;
}

.contact-value:hover {
    color: var(--accent-color) !important;
}

.contact-label {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.875rem;
}

/* Social Media Links */
.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.social-link.facebook {
    background: #1877F2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.social-link.youtube {
    background: #FF0000;
}

.social-link.tiktok {
    background: #000000;
}

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

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white !important;
}

/* Newsletter Section */
.footer-newsletter {
    background: var(--accent-color) !important;
    color: white !important;
}

.newsletter-form .form-control {
    border: 2px solid white;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 25px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form .form-control:focus {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

.newsletter-form .btn {
    border-radius: 25px;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.newsletter-form .btn:hover {
    background: white !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Footer Actions */
.footer-actions .btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.footer-actions .btn-success {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.footer-actions .btn-success:hover {
    background: white !important;
    color: var(--accent-color) !important;
    border-color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.footer-actions .btn-primary:hover {
    background: white !important;
    color: #0084ff !important;
    border-color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Bottom Footer */
.footer-bottom {
    background: rgba(0,0,0,0.2) !important;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-link-bottom {
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link-bottom:hover {
    color: var(--accent-color) !important;
}

.business-info small {
    color: rgba(255,255,255,0.6) !important;
}

/* Footer Logo */
.footer-logo-img {
    max-height: 60px;
    width: auto;
    filter: brightness(1.2);
}

.text-logo {
    color: white !important;
}

.text-logo .fa-leaf {
    color: var(--accent-color) !important;
}

/* Footer Description */
.footer-description {
    color: rgba(255,255,255,0.8) !important;
    line-height: 1.6;
}

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

.fab-button {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.fab-call {
    background: var(--primary-color) !important;
}

.fab-call:hover {
    background: var(--accent-color) !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

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

.fab-top {
    background: var(--secondary-color) !important;
}

.fab-top:hover {
    background: var(--primary-color) !important;
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .navbar {
        background: var(--primary-color) !important;
    }
    
    .navbar-collapse {
        background: rgba(0,0,0,0.1);
        border-radius: 10px;
        margin-top: 10px;
        padding: 15px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-radius: 5px;
        margin: 2px 0;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .navbar-actions {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    .footer-widget {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-actions .btn {
        margin-bottom: 10px;
    }
}

/* ============================================
   ANIMATION ENHANCEMENTS
   ============================================ */

/* Navbar slide down animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    animation: slideDown 0.5s ease-out;
}

/* Footer links hover animation */
.footer-links li {
    position: relative;
    overflow: hidden;
}

.footer-links li::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--accent-color);
    transition: left 0.3s ease;
}

.footer-links li:hover::before {
    left: 0;
}

/* Social links pulse animation */
@keyframes socialPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255,255,255,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0);
    }
}

.social-link {
    animation: socialPulse 2s infinite;
}

.social-link:hover {
    animation: none;
}

/* ============================================
   FIX VỊ TRÍ VÀ LAYOUT - Thêm vào style.css
   ============================================ */

/* Reset và base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body padding fix */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    /* KHÔNG set padding-top ở đây */
}

/* Navbar height variable */
:root {
    --navbar-height: 76px;
}

/* Navbar positioning */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-height: var(--navbar-height);
    z-index: 1030;
}

/* Hero Section - FIXED POSITIONING */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    /* FIX: Proper spacing without overlap */
    display: flex;
    align-items: center;
    padding-top: 0;
    margin-top: 0;
}

/* Sections spacing */
section {
    scroll-margin-top: var(--navbar-height);
}

/* Products section - FIX overlap */
#products {
    /* Remove excessive padding */
    padding: 5rem 0;
}

/* All sections consistent spacing */
section:not(.hero-section) {
    padding: 5rem 0;
}

/* Contact section background */
#contact {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white;
}

/* Contact icons */
.contact-icon {
    background: var(--accent-color) !important;
    color: white !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer override */
footer,
.site-footer,
footer.bg-black,
footer.bg-dark {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2) !important;
}

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

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.fab-call {
    background: var(--primary-color) !important;
}

.fab-zalo {
    background: #0084ff !important;
}

.fab-button:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Responsive Design - FIXED */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    section:not(.hero-section) {
        padding: 3rem 0;
    }
    
    #products {
        padding: 4rem 0;
    }
    
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
    }
    
    .fab-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .contact-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

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

/* Remove preload warnings - Ensure fonts load immediately */
body {
    font-display: swap;
}

/* Navbar links hover */
.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Navbar buttons */
.navbar .btn-success {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.navbar .btn-success:hover {
    background: white !important;
    color: var(--primary-color) !important;
}

/* Product cards hover effects */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Gallery responsive - 2 columns on mobile */
@media (max-width: 768px) {
    #gallery .col-lg-3,
    #gallery .col-md-4,
    #gallery .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    #blog .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    #products .col-lg-4,
    #products .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    #gallery .col-lg-3,
    #gallery .col-md-4,
    #gallery .col-sm-6,
    #blog .col-lg-4,
    #products .col-lg-4,
    #products .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================
   GALLERY CSS ENHANCEMENTS
   Thêm vào style.css
   ============================================ */

.album-tabs .nav-pills .nav-link {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin: 0 0.25rem 0.5rem 0;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.album-tabs .nav-pills .nav-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.album-tabs .nav-pills .nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color)dd, var(--secondary-color)dd);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.gallery-info {
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}


.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .album-tabs .nav-pills {
        flex-wrap: wrap;
    }
    
    .album-tabs .nav-pills .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
}

/* ===== SECTION BUILDER ENHANCEMENTS ===== */

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease !important;
}

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

.hover-scale {
    transition: all 0.3s ease !important;
}

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

.hover-rotate {
    transition: all 0.3s ease !important;
}

.hover-rotate:hover {
    transform: rotate(2deg) !important;
}

/* Enhanced Cards */
.card.shadow-custom {
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, #667eea, #764ba2) 1;
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Buttons */
.btn-gradient {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

.btn-neo {
    background: #f0f0f0;
    color: #333;
    border: none;
    box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
    transition: all 0.3s ease;
}

.btn-neo:hover {
    box-shadow: 4px 4px 8px #d1d1d1, -4px -4px 8px #ffffff;
    transform: translateY(2px);
}

/* Parallax Sections */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Particle Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Icon Animations */
.icon-bounce {
    animation: iconBounce 2s infinite;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.icon-pulse {
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.icon-rotate {
    animation: iconRotate 3s linear infinite;
}

@keyframes iconRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Text Effects */
.text-glow {
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.text-outline {
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

/* Background Patterns */
.bg-pattern-dots {
    background-image: radial-gradient(circle, rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-pattern-lines {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.05) 10px,
        rgba(0,0,0,0.05) 20px
    );
}

.bg-pattern-zigzag {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.05) 2px,
        rgba(0,0,0,0.05) 4px
    );
}

/* Enhanced Contact Form */
.contact-form .form-control {
    border: 2px solid transparent;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color, #007bff);
    background: rgba(255,255,255,1);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    transform: translateY(-2px);
}

/* Gallery Enhancements */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Testimonial Enhancements */
.testimonial-card {
    position: relative;
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color, #007bff);
    font-family: serif;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.2rem;
}

/* Loading Animations */
.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

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

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

/* Responsive Utilities */
@media (max-width: 768px) {
    .hover-lift:hover,
    .hover-scale:hover,
    .hover-rotate:hover {
        transform: none !important;
    }
    
    .parallax-section {
        background-attachment: scroll;
    }
    
    .btn-gradient,
    .btn-neo {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .glass-effect {
        background: rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.2);
    }
    
    .card {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .testimonial-card {
        background: #2d3748;
        color: #e2e8f0;
    }
}

/* Print Styles */
@media print {
    .hover-lift,
    .hover-scale,
    .hover-rotate,
    .btn-gradient,
    .btn-neo {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .parallax-section {
        background-attachment: scroll;
    }
}
/* ===== VIDEO SECTION ===== */
#video {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

#video::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="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 0;
}

#video .container {
    position: relative;
    z-index: 1;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #000;
    margin-bottom: 2rem;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.video-wrapper iframe {
    border-radius: 15px;
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
}

.video-wrapper:hover iframe {
    transform: scale(1.02);
}

/* Section Divider */
.divider {
    width: 60px;
    height: 4px;
    background: var(--primary-color, #77bb41);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Video Control Buttons */
.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
    background: transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    border-width: 2px;
}

.btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ===== SOCIAL MEDIA ENHANCEMENTS ===== */

/* Social Links Container */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Social Media Buttons */
.social-links .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.social-links .btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

/* Specific Social Media Colors */
.social-links .btn[href*="facebook"] {
    background: #4267B2;
    border-color: #4267B2;
}

.social-links .btn[href*="facebook"]:hover {
    background: #365899;
    border-color: #365899;
}

.social-links .btn[href*="youtube"] {
    background: #FF0000;
    border-color: #FF0000;
}

.social-links .btn[href*="youtube"]:hover {
    background: #CC0000;
    border-color: #CC0000;
}

.social-links .btn[href*="instagram"] {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    border: none;
}

.social-links .btn[href*="instagram"]:hover {
    opacity: 0.9;
    transform: translateY(-2px) scale(1.15);
}

.social-links .btn[href*="zalo"] {
    background: #0084ff;
    border-color: #0084ff;
}

.social-links .btn[href*="zalo"]:hover {
    background: #006bb3;
    border-color: #006bb3;
}

/* Facebook Page Embed */
.facebook-embed iframe {
    border-radius: 8px;
    min-height: 500px !important;
    height: 500px !important;
}

.facebook-embed iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    border: none;
}

.facebook-embed iframe:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Quick Links Enhancement */
.quick-links h6 {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
    font-weight: 600;
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links ul li {
    margin-bottom: 0.5rem;
}

.quick-links ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 0;
    display: inline-block;
    position: relative;
}

.quick-links ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color, #8fbc8f);
    transition: width 0.3s ease;
}

.quick-links ul li a:hover {
    color: white !important;
    text-decoration: none !important;
    padding-left: 8px;
}

.quick-links ul li a:hover::after {
    width: 100%;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1200px) {
    .video-wrapper {
        max-width: 900px;
        margin: 0 auto 2rem;
    }
}

/* Tablet */
@media (max-width: 992px) {
    #video {
        padding: 4rem 0;
    }
    
    #video .container {
        padding: 0 20px;
    }
    
    .video-wrapper {
        margin-bottom: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #video {
        padding: 3rem 0;
    }
    
    .video-wrapper {
        border-radius: 10px;
        margin-bottom: 2rem;
    }
    
    .video-wrapper iframe {
        border-radius: 10px;
    }
    
    @media (max-width: 768px) {
    .facebook-embed iframe {
        height: 400px !important;
        min-height: 400px !important;
    }
}
    
    .social-links {
        justify-content: center;
        margin: 1rem 0;
    }
    
    .social-links .btn {
        width: 35px;
        height: 35px;
        margin: 0 3px 8px 0;
    }
    
    .quick-links {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .btn-outline-danger {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    #video {
        padding: 2rem 0;
    }
    
    #video .display-5 {
        font-size: 1.8rem;
    }
    
    .video-wrapper {
        border-radius: 8px;
    }
    
    .video-wrapper iframe {
        border-radius: 8px;
    }
    
    .social-links .btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* ===== LOADING ANIMATION ===== */
.video-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Loading placeholder for video */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper.loading::before {
    opacity: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== ACCESSIBILITY ===== */
.video-wrapper:focus-within {
    outline: 3px solid var(--accent-color, #8fbc8f);
    outline-offset: 2px;
}

.social-links .btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .video-wrapper {
        border: 2px solid #000;
    }
    
    .social-links .btn {
        border: 2px solid white;
    }
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-btn {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-card:hover .play-btn {
    background: var(--primary-color);
    transform: scale(1.1);
}



.navbar .dropdown {
    position: relative;
}

.dropdown-menu-custom {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(45, 90, 39, 0.15);
    padding: 20px 0;
    margin-top: 8px;
    min-width: 320px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.navbar .dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.dropdown-item-custom {
    padding: 15px 30px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.dropdown-item-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.dropdown-item-custom:hover {
    color: white;
    transform: translateX(8px);
}

.dropdown-item-custom:hover::before {
    left: 0;
}

.dropdown-item-custom i {
    margin-right: 15px;
    width: 24px;
    text-align: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.dropdown-item-custom:hover i {
    transform: scale(1.2);
}

.dropdown-item-custom .item-content {
    flex: 1;
}

.dropdown-item-custom .item-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.dropdown-item-custom .item-desc {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.3;
}

.dropdown-divider-custom {
    margin: 15px 25px;
    border-top: 1px solid var(--accent-color);
    opacity: 0.3;
}

.dropdown-header-custom {
    padding: 10px 30px 15px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 10px;
}

/* Hover effect cho nav-link */
.navbar-nav .nav-link.dropdown-toggle {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link.dropdown-toggle:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.dropdown-toggle::after {
    border: none;
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.navbar .dropdown:hover .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 991.98px) {
    .dropdown-menu-custom {
        position: static !important;
        transform: none !important;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 15px;
        box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
        margin-top: 10px;
        padding: 15px 0;
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        display: none;
    }
    
    .navbar .dropdown.show .dropdown-menu-custom {
        display: block;
    }
    
    .dropdown-item-custom {
        color: white;
        padding: 12px 25px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-item-custom:last-child {
        border-bottom: none;
    }
    
    .dropdown-item-custom::before {
        display: none;
    }
    
    .dropdown-item-custom:hover {
        background: rgba(255,255,255,0.1);
        transform: translateX(5px);
    }
    
    .dropdown-divider-custom {
        border-color: rgba(255,255,255,0.2);
        margin: 10px 20px;
    }
    
    .dropdown-header-custom {
        color: rgba(255,255,255,0.9);
        border-color: rgba(255,255,255,0.2);
    }
    
    .navbar .dropdown:hover .dropdown-menu-custom {
        display: none;
    }
}

/* Animation cho mobile */
@media (max-width: 991.98px) {
    .dropdown-menu-custom {
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

   /* Hero Section Container */
        .hero-section {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #000;
        }

        /* Slideshow Container */
        .hero-slideshow {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        /* Individual Slide - FIXED */
        .hero-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0;
            transform: translateX(100%);
            transition: all 0.8s ease-in-out;
            z-index: 1;
        }

        /* Active Slide */
        .hero-slide.active {
            opacity: 1;
            transform: translateX(0);
            z-index: 2;
        }

        /* Previous Slide */
        .hero-slide.prev {
            opacity: 0;
            transform: translateX(-100%);
            z-index: 1;
        }

        /* Next Slide */
        .hero-slide.next {
            opacity: 0;
            transform: translateX(100%);
            z-index: 1;
        }

        /* Slide Overlay */
        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
            z-index: 3;
            pointer-events: none;
        }

        /* Dots Navigation */
        .hero-dots {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        .hero-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .hero-dot.active {
            background: white;
            transform: scale(1.2);
            border-color: #77bb41;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        .hero-dot:hover {
            background: rgba(255, 255, 255, 0.8);
            transform: scale(1.1);
        }

        /* Navigation Arrows - THÊM MỚI */
        .hero-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-nav:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: translateY(-50%) scale(1.1);
        }

        .hero-nav.prev-btn {
            left: 20px;
        }

        .hero-nav.next-btn {
            right: 20px;
        }

        /* Slide Counter - THÊM MỚI */
        .slide-counter {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            z-index: 10;
        }

        /* ===== RESPONSIVE DESIGN ===== */

        /* Extra Large Desktop (1400px+) */
        @media (min-width: 1400px) {
            .hero-section {
                height: 100vh;
                max-height: 900px;
            }
            
            .hero-dots {
                bottom: 40px;
            }
            
            .hero-dot {
                width: 14px;
                height: 14px;
            }
            
            .hero-nav {
                width: 60px;
                height: 60px;
                font-size: 1.4rem;
            }
        }

        /* Large Desktop (1200px - 1399px) */
        @media (max-width: 1399.98px) and (min-width: 1200px) {
            .hero-section {
                height: 95vh;
                max-height: 850px;
            }
            
            .hero-dots {
                bottom: 35px;
            }
        }

        /* Desktop (992px - 1199px) */
        @media (max-width: 1199.98px) and (min-width: 992px) {
            .hero-section {
                height: 90vh;
                max-height: 800px;
            }
            
            .hero-dots {
                bottom: 30px;
            }
            
            .hero-dot {
                width: 11px;
                height: 11px;
            }
        }

        /* Tablet (768px - 991px) */
        @media (max-width: 991.98px) and (min-width: 768px) {
            .hero-section {
                height: 85vh;
                max-height: 700px;
                min-height: 600px;
            }
            
            .hero-slide {
                background-size: cover;
                background-position: center center;
            }
            
            .hero-dots {
                bottom: 25px;
                gap: 8px;
            }
            
            .hero-dot {
                width: 10px;
                height: 10px;
            }
            
            .hero-overlay {
                background: rgba(0, 0, 0, 0.4);
            }
            
            .hero-nav {
                width: 45px;
                height: 45px;
                font-size: 1.1rem;
            }
        }

        /* Mobile Large (576px - 767px) */
        @media (max-width: 767.98px) and (min-width: 576px) {
            .hero-section {
                height: 80vh;
                max-height: 600px;
                min-height: 500px;
            }
            
            .hero-slide {
                background-size: cover;
                background-position: center center;
                background-attachment: scroll;
            }
            
            .hero-dots {
                bottom: 20px;
                gap: 6px;
                padding: 0 20px;
            }
            
            .hero-dot {
                width: 8px;
                height: 8px;
                opacity: 0.8;
            }
            
            .hero-dot.active {
                transform: scale(1.3);
                opacity: 1;
            }
            
            .hero-overlay {
                background: rgba(0, 0, 0, 0.45);
            }
            
            .hero-nav {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
            
            .hero-nav.prev-btn {
                left: 15px;
            }
            
            .hero-nav.next-btn {
                right: 15px;
            }
            
            .slide-counter {
                top: 15px;
                right: 15px;
                padding: 6px 12px;
                font-size: 0.8rem;
            }
        }

        /* Mobile Small (dưới 576px) */
        @media (max-width: 575.98px) {
            .hero-section {
                height: 75vh;
                max-height: 500px;
                min-height: 450px;
            }
            
            .hero-slide {
                background-size: cover;
                background-position: center center;
                background-attachment: scroll;
            }
            
            .hero-dots {
                bottom: 15px;
                gap: 5px;
                padding: 0 15px;
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .hero-dot {
                width: 7px;
                height: 7px;
                margin: 2px;
            }
            
            .hero-dot.active {
                transform: scale(1.4);
            }
            
            .hero-overlay {
                background: rgba(0, 0, 0, 0.5);
            }
            
            .hero-nav {
                width: 35px;
                height: 35px;
                font-size: 0.9rem;
            }
            
            .hero-nav.prev-btn {
                left: 10px;
            }
            
            .hero-nav.next-btn {
                right: 10px;
            }
            
            .slide-counter {
                top: 10px;
                right: 10px;
                padding: 4px 8px;
                font-size: 0.7rem;
            }
        }

        /* Extra Small Mobile (dưới 400px) */
        @media (max-width: 399.98px) {
            .hero-section {
                height: 70vh;
                max-height: 450px;
                min-height: 400px;
            }
            
            .hero-dots {
                bottom: 12px;
                gap: 4px;
                padding: 0 10px;
            }
            
            .hero-dot {
                width: 6px;
                height: 6px;
            }
            
            .hero-nav {
                display: none; /* Ẩn arrows trên màn hình rất nhỏ */
            }
        }

        /* ===== ORIENTATION RESPONSIVE ===== */

        /* Landscape trên Mobile */
        @media (max-width: 767.98px) and (orientation: landscape) {
            .hero-section {
                height: 100vh;
                max-height: none;
                min-height: 100vh;
            }
            
            .hero-dots {
                bottom: 10px;
            }
            
            .slide-counter {
                top: 10px;
                right: 10px;
            }
        }

        /* Portrait trên Tablet */
        @media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
            .hero-section {
                height: 80vh;
                max-height: 700px;
            }
        }

        /* ===== ACCESSIBILITY ===== */

        /* Reduced Motion Support */
        @media (prefers-reduced-motion: reduce) {
            .hero-slide {
                transition: opacity 0.5s ease;
                transform: none;
            }
            
            .hero-slide.active {
                transform: none;
            }
            
            .hero-slide.prev,
            .hero-slide.next {
                transform: none;
            }
            
            .hero-dot,
            .hero-nav {
                transition: none;
            }
        }

        /* High Contrast Mode */
        @media (prefers-contrast: high) {
            .hero-overlay {
                background: rgba(0, 0, 0, 0.7);
            }
            
            .hero-dot {
                border: 2px solid white;
                background: rgba(255, 255, 255, 0.8);
            }
            
            .hero-dot.active {
                background: white;
                border-color: #000;
            }
            
            .hero-nav {
                background: rgba(0, 0, 0, 0.9);
                border: 2px solid white;
            }
        }

        /* ===== LOADING STATE ===== */
        .hero-section.loading {
            background: linear-gradient(
                90deg,
                #f0f0f0 25%,
                #e0e0e0 50%,
                #f0f0f0 75%
            );
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
        }

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

        /* ===== PERFORMANCE OPTIMIZATIONS ===== */
        .hero-slide {
            will-change: transform, opacity;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }

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