/* Musevenomics Custom Styles */

/* Logo and Header Styling */
.centered-logo-container {
    text-align: center;
    padding: 5px 0;
    background: #FFDD00; /* Solid yellow to match logo */
    border-bottom: 3px solid #000000;
    margin-bottom: 0;
}

.musevenomics-logo-img {
    max-height: 100px;
    width: auto;
    display: inline-block;
    margin-bottom: 10px;
}

.musevenomics-logo {
    font-size: 2.8rem;
    font-weight: 700;
    color: #000000; /* Black text to match logo */
    margin: 0;
    text-shadow: none; /* Remove shadow for clean look */
    letter-spacing: 2px;
    font-family: 'Montserrat Alternates', sans-serif;
}

.logo-tagline {
    font-size: 1rem;
    color: #000000; /* Black text to match logo */
    margin: 5px 0 0 0;
    font-weight: 400;
    text-shadow: none; /* Remove shadow for clean look */
    font-style: italic;
}

/* Adjust header structure */
.header-style-one .header-upper .nav-outer {
    width: 100%;
    text-align: center;
    float: none;
    /* margin-top: 10px; */
}

.header-style-one .header-upper .inner-container {
    padding: 0 40px 20px 40px;
}

/* Banner height reduction */
.banner-section .slide-item {
    height: 450px !important; /* Reduced from original height */
}

.banner-section .image-layer {
    height: 450px !important;
}

/* Larger Icons for Service Blocks */
.service-block-three .inner-box .icon-box .icon,
.service-block .inner-box .icon-box .icon,
.featured-block-two .icon-box .icon {
    font-size: 48px !important;
    line-height: 1.2 !important;
}

.service-block-three .inner-box .icon-box,
.service-block .inner-box .icon-box,
.featured-block-two .icon-box {
    margin-bottom: 25px !important;
    height: auto !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.banner-section .slide-item {
    height: 450px !important; /* Reduced from original height */
}

.banner-section .image-layer {
    height: 450px !important;
}

/* Enhanced Page Title Section */
.page-title {
    position: relative;
    padding: 40px 0 40px !important;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.page-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-title .auto-container {
    position: relative;
    z-index: 2;
}

.page-title .inner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.page-title .title-box h1 {
    color: #FFFFFF !important;
    font-size: 42px !important;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-title .title-box .subtitle {
    color: #FFDD00 !important;
    font-size: 18px;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 0;
}

.page-title .bread-crumb {
    text-align: right;
    margin: 0;
    padding: 0;
}

.page-title .bread-crumb li {
    display: inline-block;
    margin-right: 15px;
    position: relative;
    color: #FFFFFF;
    font-size: 16px;
}

.page-title .bread-crumb li:after {
    content: '>';
    position: absolute;
    right: -10px;
    color: #FFDD00;
    font-weight: bold;
}

.page-title .bread-crumb li:last-child:after {
    display: none;
}

.page-title .bread-crumb li a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-title .bread-crumb li a:hover {
    color: #FFDD00;
}

.page-title .bread-crumb li span {
    color: #CCCCCC;
}
.banner-carousel .content-box {
    height: 450px !important; /* Reduced from 700px */
    padding: 20px 0px;
}

.banner-carousel .content-box .content {
    padding: 30px 0px; /* Reduced padding */
}

/* Banner content styling with dark overlay for text readability */
.banner-carousel .slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for better text contrast */
    z-index: 2;
}

.banner-carousel .content-box {
    z-index: 3;
}

/* Button styling with logo colors */
.theme-btn.btn-style-one {
    background: #FFDD00; /* Match logo yellow */
    border: 2px solid #FFDD00;
    color: #000000;
    font-weight: 600;
}

.theme-btn.btn-style-one:hover {
    background: #DC143C;
    border-color: #DC143C;
    color: #FFFFFF;
}

.theme-btn.btn-style-two {
    background: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
}

.theme-btn.btn-style-two:hover {
    background: #FFDD00; /* Match logo yellow */
    border-color: #FFDD00;
    color: #000000; /* Black text on yellow background */
}

/* Navigation styling with improved visibility */
.main-menu .navigation > li:hover > a,
.main-menu .navigation > li.current > a {
    color: #DC143C !important; /* Use red for better visibility */
}

.main-menu .navigation > li > a {
    color: #333333 !important; /* Dark gray for normal state */
}

/* Dropdown menu styling */
.main-menu .navigation > li > ul > li > a {
    color: #333333 !important;
}

.main-menu .navigation > li > ul > li:hover > a {
    color: #DC143C !important;
}

/* Section title styling */
.sec-title h2 {
    color: #DC143C;
    font-weight: 700;
}

.sec-title .lower-text {
    color: #555555;
    font-size: 16px;
    line-height: 1.6;
}

/* Welcome section with subtle yellow accent */
.welcome-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, rgba(255, 221, 0, 0.05) 100%);
    padding: 80px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .musevenomics-logo-img {
        max-height: 60px;
    }
    
    .musevenomics-logo {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .logo-tagline {
        font-size: 0.9rem;
    }
    
    .banner-carousel .content-box {
        height: 350px !important;
    }
    
    .centered-logo-container {
        padding: 0 0;
    }
}

@media (max-width: 480px) {
    .musevenomics-logo-img {
        max-height: 80px;
    }
    
    .musevenomics-logo {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    
    .logo-tagline {
        font-size: 0.8rem;
    }
    
    .banner-carousel .content-box {
        height: 300px !important;
    }
}

/* Add subtle Uganda flag stripe pattern */
.header-upper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #000000 33%, #FFDD00 33%, #FFDD00 66%, #DC143C 66%);
}

/* Disable sticky header to improve readability */
.sticky-header {
    display: none !important;
}

.fixed-header .header-upper,
.fixed-header.header-style-one .header-upper,
.fixed-header.header-style-two .header-upper {
    position: static !important;
}

/* Ensure no top padding is added for sticky header space */
body {
    padding-top: 0 !important;
}

/* Ensure all elements with yellow background have black text */
[style*="background: #FFDD00"],
[style*="background-color: #FFDD00"],
.yellow-bg,
*[style*="background:#FFDD00"] {
    color: #000000 !important;
}

/* Override any white text on yellow backgrounds globally */
*[style*="background: #FFDD00"] *,
*[style*="background-color: #FFDD00"] * {
    color: #000000 !important;
}

/* Fix team block hover states - change white text to black on yellow background */
.team-block .inner-box:hover .lower-box h4 a {
    color: #000000 !important; /* Black text instead of white */
}

.team-block .inner-box:hover .lower-box .designation {
    color: #000000 !important; /* Black text instead of white */
}

/* Fix any other yellow background hover states */
.team-block .lower-box:before {
    background: #ffe200 !important; /* Ensure consistent yellow */
}

/* Fix all buttons with yellow backgrounds - override white text with black */
.btn-style-one,
.btn-style-one .btn-title,
.theme-btn.btn-style-one,
*[style*="background: #ffe200"],
*[style*="background-color: #ffe200"] {
    color: #000000 !important; /* Black text on yellow backgrounds */
}

/* Comprehensive yellow background text fix */
.btn-style-one:hover .btn-title {
    color: #000000 !important;
}

/* Global override for any yellow background elements */
*[style*="#ffe200"] {
    color: #000000 !important;
}

/* Hide sections to simplify page */
.team-section,
.news-section {
    display: none !important;
}

/* Enhanced Mobile Menu Styling */
/* Mobile Navigation Toggler - Hide on desktop, show only on mobile */
.mobile-nav-toggler {
    display: none !important; /* Hidden by default on desktop */
}

/* Mobile Header Responsive Adjustments */
@media (max-width: 991px) {
    .header-style-one .header-upper .inner-container {
        position: relative !important;
        padding: 10px 20px !important;
    }
    
    .nav-outer {
        position: relative !important;
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .main-menu {
        display: none !important;
    }
    
    /* Show mobile navigation toggler only on mobile */
    .mobile-nav-toggler {
        display: flex !important; /* Show on mobile */
        position: static !important;
        width: 50px !important;
        height: 50px !important;
        background: #DC143C !important;
        border-radius: 8px !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 3px 10px rgba(220, 20, 60, 0.3) !important;
        border: 2px solid #FFDD00 !important;
        transition: all 0.3s ease !important;
        margin: 10px auto !important;
    }
    
    .mobile-nav-toggler:hover {
        background: #FFDD00 !important;
        border-color: #DC143C !important;
        transform: scale(1.05) !important;
    }
    
    .mobile-nav-toggler .icon {
        color: #FFFFFF !important;
        font-size: 20px !important;
        font-weight: bold !important;
    }
    
    .mobile-nav-toggler:hover .icon {
        color: #DC143C !important;
    }
}

/* Mobile Menu Container */
.mobile-menu {
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 99999 !important;
}

.mobile-menu .menu-backdrop {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* Mobile Menu Box */
.mobile-menu .menu-box {
    background: linear-gradient(135deg, #FFFFFF 0%, #f8f9fa 100%) !important;
    border-left: 5px solid #DC143C !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3) !important;
    max-width: 320px !important;
}

/* Mobile Menu Close Button */
.mobile-menu .close-btn {
    background: #DC143C !important;
    color: #FFFFFF !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    right: 20px !important;
    top: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #FFDD00 !important;
    transition: all 0.3s ease !important;
}

.mobile-menu .close-btn:hover {
    background: #FFDD00 !important;
    color: #DC143C !important;
    transform: rotate(90deg) !important;
}

/* Mobile Menu Logo */
.mobile-menu .nav-logo {
    padding: 30px 20px 20px !important;
    text-align: center !important;
    border-bottom: 2px solid #FFDD00 !important;
    background: linear-gradient(135deg, #FFDD00 0%, #ffd700 100%) !important;
}

.mobile-menu .nav-logo img {
    max-height: 60px !important;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2)) !important;
}

/* Mobile Menu Items */
.mobile-menu .menu-outer {
    padding: 20px 0 !important;
}

.mobile-menu .navigation li {
    border-bottom: 1px solid #f0f0f0 !important;
    margin: 0 !important;
}

.mobile-menu .navigation li:last-child {
    border-bottom: none !important;
}

.mobile-menu .navigation li a {
    color: #333333 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 15px 25px !important;
    display: block !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.mobile-menu .navigation li a:before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 0 !important;
    background: #DC143C !important;
    transition: width 0.3s ease !important;
}

.mobile-menu .navigation li a:hover {
    color: #FFFFFF !important;
    background: #DC143C !important;
    padding-left: 35px !important;
}

.mobile-menu .navigation li a:hover:before {
    width: 5px !important;
}

/* Mobile Menu Current Item */
.mobile-menu .navigation li.current > a {
    color: #FFFFFF !important;
    background: #DC143C !important;
    font-weight: 700 !important;
}

.mobile-menu .navigation li.current > a:before {
    width: 5px !important;
    background: #FFDD00 !important;
}

/* Mobile Menu Dropdown */
.mobile-menu .navigation li.dropdown > a:after {
    content: '+' !important;
    position: absolute !important;
    right: 25px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #DC143C !important;
    font-weight: bold !important;
    font-size: 18px !important;
    transition: transform 0.3s ease !important;
}

.mobile-menu .navigation li.dropdown.open > a:after {
    transform: translateY(-50%) rotate(45deg) !important;
}

.mobile-menu .navigation li ul {
    background: #f8f9fa !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-menu .navigation li ul li a {
    padding: 12px 25px 12px 45px !important;
    font-size: 14px !important;
    color: #666666 !important;
    border-left: 3px solid transparent !important;
}

.mobile-menu .navigation li ul li a:hover {
    color: #DC143C !important;
    background: #FFFFFF !important;
    border-left-color: #DC143C !important;
}



@media (max-width: 767px) {
    .mobile-nav-toggler {
        width: 45px !important;
        height: 45px !important;
    }
    
    .mobile-nav-toggler .icon {
        font-size: 18px !important;
    }
    
    /* Move owl-nav lower on mobile to avoid covering buttons */
    .banner-section .owl-theme .owl-nav {
        bottom: -70px !important;
        background: rgba(241, 241, 241, 0.95) !important;
        border-radius: 28px !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Adjust banner section padding to accommodate lower nav */
    .banner-section {
        padding-bottom: 80px !important;
    }
}

/* Additional mobile adjustments for smaller screens */
@media (max-width: 480px) {
    .banner-section .owl-theme .owl-nav {
        bottom: -60px !important;
        width: 100px !important;
        height: 50px !important;
        margin-left: -50px !important;
    }
    
    .banner-section .owl-theme .owl-nav .owl-prev,
    .banner-section .owl-theme .owl-nav .owl-next {
        height: 50px !important;
        width: 50px !important;
        line-height: 50px !important;
        font-size: 18px !important;
    }
    
    .banner-section .owl-theme .owl-nav:before {
        top: 9px !important;
        height: 32px !important;
    }
    
    .banner-section {
        padding-bottom: 70px !important;
    }
}