.header {
    text-align: right;
    height: 300px;
    display: flex;
    align-items: center;
    background-color: #2e4480;
    color: #FFFFFF;
    overflow: hidden;
    /* margin-bottom: 6rem; */
}

.header .container {
    position: relative;
    height: inherit;
    display: flex;
    align-items: center;
}

.header-logo {
    display: inline-flex;
    position: absolute;
    left: 15px;
    bottom: -4rem;
    width: 32rem;
}

    .header-logo img {
        width: 60%;
        max-width: 450px;
    }

.header-text {
    width: 100%;
    display: inline-block;
    text-align: right;
}

    .header-text img {
        height: 8.5rem;
    }

.header .subtitle-mega {
    text-align: right;
    float: initial;
    width: 50%;
    line-height: 25px;
    width: auto;
}



/* Show both images, but smaller. */
@media(max-width: 1200px) {
    .header {
        height: 320px;
    }
}

/* Hide the logo (image on the left). */
@media(max-width: 990px) {
    .header {
        height: 300px;
    }

    .header-text {
        text-align: center;
        width: 100%;
    }
        .header .subtitle-mega {
          font-size: 15px;
          text-align: center;
    }
    

    .header .header-logo {
        display: none;
    }
    
}

/* Center the main image, hide all of the remaining text. */
@media(max-width: 768px) {
    .header {
        height: 220px;
    }
    
    .header .title-mega {
        font-size: 17px !important;
    }

    .header .subtitle-mega {
        font-size: 13px;
    }

    .header-text img {
        height: 6rem;
        margin: 0 auto;
    }
}

@media(max-width: 550px) {
    .header {
        height: 220px;
    }
    .header .title-mega {
        font-size: 14px !important;
    }

    .header-text img {
        height: 4rem;
        max-width: 100%;
    }
    
}

@media screen and (max-height: 800px) and (max-width:990px) {
    .dropdown-nav {
        overflow-y: scroll;
        max-height: 80vh;
        margin-bottom: 10px;
        overflow: scroll;
    }
}

@media screen and (max-height: 400px) {
    .dropdown-nav {
        max-height: 70vh;
    }
}