/* Remove red overlay from main slider */
.page-section.background-img-slider:before,
.page-section.background-img-slider:after {
    display: none !important;
    background: none !important;
    content: none !important;
}

.page-section.background-img-slider {
    background-color: transparent !important;
}

/* Ensure slide items don't have red background */
#main-slider .item {
    background-color: transparent !important;
}

/* Specific fix for slide3 red overlay */
.slide3:before,
.slide3:after,
.slide3 .caption .container:before,
.slide3 .caption .container:after {
    display: none !important;
    background: none !important;
    content: none !important;
}

/* Ensure consistent text color if needed, though background removal is primary */
.slide3 .caption-title,
.slide3 .caption-subtitle,
.slide3 .caption-text {
    z-index: 10;
    /* Ensure text is above any potential remaining background */
    position: relative;
}

/* Navbar Logo Right Styling */
/* Navbar Logo Group (Flexbox for perfect alignment) */
.logos-group {
    float: left;
    display: flex;
    align-items: center;
    height: 100%;
    /* Ensure it takes full height of header if needed, or let content dictate */
}

/* Navbar Logo Styling */
.logo {
    float: none;
    /* Flex item */
    margin-right: 20px;
    padding: 15px 0;
    /* Add padding to match header height or spacing */
    margin-top: 0 !important;
    /* Reset margin */
}

.logo-right {
    float: none;
    /* Flex item */
    margin-left: 0;
    margin-top: 0 !important;
    /* Let flexbox handle vertical alignment */
    padding: 15px 0;
}

.logo img,
.logo-right img {
    vertical-align: middle;
}

.shrink .logo,
.shrink .logo-right {
    padding: 5px 0;
    /* Reduce padding on shrink */
}

.logo-right img {
    height: 50px !important;
    width: auto !important;
    display: block;
}

@media (max-width: 991px) {
    .logos-group {
        width: auto;
    }

    .logo-right {
        display: block;
        margin-left: 10px;
        margin-top: 0 !important;
    }

    .logo-right img {
        height: 40px !important;
    }

    .logo {
        margin-right: 0;
        margin-top: 0 !important;
    }

    .logo img {
        max-height: 40px !important;
    }

    .navigation {
        clear: both;
        margin-left: 0;
        float: none !important;
    }
}

/* Override navigation to float left */
.navigation {
    float: left !important;
    margin-left: 30px;
}

/* Header Vertical Alignment Fix */
.header-wrapper {
    display: flex;
    align-items: center;
}

/* Ensure mobile menu doesn't break flex layout */
@media (max-width: 991px) {
    .header-wrapper {
        display: block;
        /* Revert to block on mobile for standard behavior */
    }

    .navigation {
        float: none !important;
    }
}

/* Reduce header grey bar visibility */
.wide .header.shrink,
.boxed .header.shrink>.container,
.header.shrink-off {
    background-color: rgba(68, 68, 68, 0.9) !important;
}

/* Fix for invisible headers in Host Institution section */
#about h4,
#about h5,
#host-institution h4,
#host-institution h5 {
    color: #2c3e50 !important;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Helper class for theme color text */
.text-theme {
    color: #ed4a43 !important;
}