/* Homepage Header Fixes */

/* Hide the "Delivering Development Impact" subtitle with icon */
.hero5 .main-heading .sub-title {
    display: none !important;
}

/* Hide the purple circle background shape */
.hero5 .hero3-images .main-image-bg {
    display: none !important;
}

/* Add HAD image as background with cover sizing */
.hero5 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/img/Images-for-HAD/IMG_3475-scaled-1.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Hide the right side image container since we're using it as background */
.hero5 .hero3-images {
    display: none !important;
}

/* Make the hero section full width */
.hero5 .container .row .col-lg-6:first-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Fix the white button text color for better contrast - make it much darker */
.hero5 .buttons .theme-btn6 .text,
.hero5 .theme-btn6 .text,
.theme-btn6 .text {
    color: #000000 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

/* Ensure button hover states maintain good contrast */
.hero5 .buttons .theme-btn6:hover .text,
.hero5 .theme-btn6:hover .text,
.theme-btn6:hover .text {
    color: #000000 !important;
}

/* Additional button styling for better visibility */
.hero5 .buttons .theme-btn6,
.hero5 .theme-btn6,
.theme-btn6 {
    background-color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

.hero5 .buttons .theme-btn6:hover,
.hero5 .theme-btn6:hover,
.theme-btn6:hover {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    transform: translateY(-2px) !important;
}

/* Fix arrow colors in white button - make them black */
.hero5 .buttons .theme-btn6 .arrow-all,
.hero5 .theme-btn6 .arrow-all,
.theme-btn6 .arrow-all {
    color: #000000 !important;
}

.hero5 .buttons .theme-btn6:hover .arrow-all,
.hero5 .theme-btn6:hover .arrow-all,
.theme-btn6:hover .arrow-all {
    color: #000000 !important;
}

/* Additional fallback - target specific button structure */
.hero5 .buttons a.theme-btn6 span.text,
.hero5 a.theme-btn6 span.text,
a.theme-btn6 span.text {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Override any white text colors */
.hero5 .buttons .theme-btn6,
.hero5 .theme-btn6,
.theme-btn6 {
    color: #000000 !important;
}

/* Make navbar full width and remove padding */
.homepage .vl-header-area5 {
    padding: 0 !important;
    min-height: 100px !important;
    z-index: 999 !important;
    position: relative !important;
}

.homepage .vl-header-area5 .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 30px !important;
    min-height: 100px !important;
}

.homepage .header5-bg {
    background: transparent !important;
    padding: 15px 0 !important;
    min-height: 100px !important;
}

/* Ensure row has proper height */
.homepage .vl-header-area5 .row {
    min-height: 100px !important;
    align-items: center !important;
}

/* Fix dropdown menu z-index - Using standard scale */
.homepage .vl-main-menu .sub-menu {
    z-index: 1030 !important;
    position: absolute !important;
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 8px !important;
}

.homepage .vl-main-menu .has-dropdown:hover .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Make logo larger and add white background */
.homepage .vl-logo {
    background: white !important;
    padding: 10px 25px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    height: auto !important;
    min-height: 90px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* Adjust column width for logo */
.homepage .vl-header-area5 .col-lg-2 {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
}

/* Logo styling as requested */
.homepage .vl-logo .had-logo {
    height: 80px !important;
    width: auto !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: none !important;
}

/* General logo styling for consistency */
.homepage *[class*="logo"]:not(.vl-logo):not(.search__logo) {
    max-height: 80px !important;
    overflow: visible !important; /* Changed from hidden to visible */
}

/* Ensure logo container is visible and doesn't truncate */
.homepage .vl-logo a {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    line-height: 0 !important;
    overflow: visible !important;
}

/* Hide white logo, only show black logo with white background */
.homepage .vl-logo .white-logo {
    display: none !important;
}

.homepage .vl-logo .black-logo {
    display: inline-block !important;
}

/* Menu items styling - now handled in hero-viewport-fix.css for better contrast */
/* This section is moved to hero-viewport-fix.css for consistency */

/* Ensure header is always visible */
.homepage .vl-header-area5 {
    background: rgba(0,0,0,0.1) !important;
}

/* Mobile menu button styling - now handled in hero-viewport-fix.css for better contrast */