﻿.main-header {
    min-height: 5rem;
    max-height: 9rem;
    background: #003087;
    padding: 17px 0;
    display: flex;
    align-items: center;
    z-index: 50;
}


.tb-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 54px; /* logo size spec */
    width: auto;
    display: block;
}

/* Footer Styles */
footer {
    display: flex;
    flex-direction: column;
    padding-top: 3px;
    background-color: rgb(66, 65, 67);
    flex-shrink: 0;
}

#footer-navigation {
    display: flex;
    flex-direction: column;
    padding-top: 30px;
    height: 100%;
    justify-content: space-between;
}

#footer-terms {
    display: flex;
    flex-direction: column;
}

    #footer-terms ul {
        display: flex;
        flex-wrap: wrap;
        list-style-type: none;
        margin: 0;
        margin-bottom: 10px;
        padding: 0;
    }

    #footer-terms li {
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 5px;
        font-size: 14px;
        line-height: 21px;
    }

    #footer-terms ul li a {
        color: #ffffff;
        text-decoration: none;
        white-space: nowrap;
    }

    #footer-terms p {
        color: #ffffff;
        line-height: 18px;
        font-size: 12px;
        padding-left: 5px;
    }

#footer-branding {
    display: flex;
    flex-direction: column;
    padding-left: 0px;
    padding-right: 0px;
}

    #footer-branding a {
        color: #ffffff;
        text-decoration: none;
        white-space: nowrap;
    }

#footer-branding-logo-link {
    display: flex;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 15px;
    white-space: nowrap;
}

#footer-branding-media {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}


/*Mobile / small screens*/
@media (max-width: 768px) {
    .main-header {
        height: auto !important;
        max-height: none !important;
        overflow: visible;
        padding-top: 15px !important;
        padding-bottom: 8px !important;
    }

    /* the wrapper that contains the logo img + hamburger button */
    #header-navigation .tb-wrap-col-3 {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    /* logo image */
    header.main-header img.logo-image {
        height: 36px !important;
        max-height: 36px !important;
        width: auto !important;
        display: block !important;
        margin: 0 !important;
    }

    /* hamburger button: remove extra spacing so it aligns nicely */
    #header-navigation button.navbar-toggle {
        margin: 0 !important;
        line-height: 1 !important;
    }
}

/* ============================================================
   MOBILE HEADER – LOGO LEFT / TOGGLE RIGHT
   ============================================================ */

@media (max-width: 768px) {

    /* Header row layout */
    .main-header {
        display: flex !important;
        align-items: center !important;
    }

    /* Wrapper that contains logo + toggle */
    .tb-wrap {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Logo – clean size & alignment */
    .logo-image {
        height: 36px !important; 
        width: auto !important;
        display: block !important;
        margin: 0 !important;
    }

    /* Toggle – push it to the right */
    .navbar-toggle,
    .navbar-toggler {
        margin-left: auto !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* Remove odd spacing around the button */
    .navbar-toggle,
    .navbar-toggler {
        padding: 6px 8px !important;
        line-height: 1 !important;
    }
}