/* ===================================
   Homepage Navigation & Logo Visibility Fix
   =================================== */

/* Make white logo visible on homepage blue background */
.vl-header-area5 .white-logo,
.homepage .vl-header-area5 .white-logo {
    display: block !important;
}

.vl-header-area5 .black-logo,
.homepage .vl-header-area5 .black-logo {
    display: none !important;
}

/* Enhance logo visibility with better styling */
.vl-header-area5 .had-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    max-height: 50px !important;
    width: auto !important;
    transition: all 0.3s ease !important;
}

/* Logo hover effect */
.vl-header-area5 .vl-logo:hover .had-logo {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) !important;
    transform: scale(1.05) !important;
}

/* Ensure logo container has proper positioning */
.vl-header-area5 .vl-logo {
    position: relative !important;
    z-index: 999 !important;
}

/* Mobile responsive logo fixes */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .vl-header-area5 .white-logo {
        display: block !important;
    }
    
    .vl-header-area5 .black-logo {
        display: none !important;
    }
    
    .vl-header-area5 .had-logo {
        max-height: 45px !important;
    }
}

@media (max-width: 767px) {
    .vl-header-area5 .white-logo {
        display: block !important;
    }
    
    .vl-header-area5 .black-logo {
        display: none !important;
    }
    
    .vl-header-area5 .had-logo {
        max-height: 40px !important;
    }
}

/* Dark mode support */
.dark-mode .vl-header-area5 .white-logo {
    display: block !important;
}

.dark-mode .vl-header-area5 .black-logo {
    display: none !important;
}

/* Header background contrast enhancement */
.vl-header-area5.header-tranperent {
    background: rgba(30, 95, 153, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Sticky header adjustments */
#vl-header-sticky.sticky {
    background: rgba(30, 95, 153, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

#vl-header-sticky.sticky .had-logo {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2)) !important;
}

/* Alternative white background version if needed */
.vl-header-area5.white-bg .white-logo {
    display: none !important;
}

.vl-header-area5.white-bg .black-logo {
    display: block !important;
}

.vl-header-area5.white-bg {
    background: rgba(255, 255, 255, 0.98) !important;
}

/* Improve overall header contrast */
.vl-header-area5 {
    transition: all 0.3s ease !important;
}

/* Add a subtle gradient overlay to improve logo contrast */
.vl-header-area5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 95, 153, 0.1) 0%, rgba(46, 155, 216, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.vl-header-area5 .container {
    position: relative;
    z-index: 2;
}