﻿/* =========================================================
   TOP UTILITY BAR
   ========================================================= */

.top-utility-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    width: 100%;

    background: #17365d;
    color: #ffffff;

    font-size: 13px;

    border-bottom: 1px solid rgba(255,255,255,.15);

    z-index: 99999;
}


/* =========================================================
   UTILITY INNER
   ========================================================= */

.top-utility-inner {
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 0 15px;
}


/* =========================================================
   LEFT / RIGHT
   ========================================================= */

.utility-left,
.utility-right {
    display: flex;
    align-items: center;

    flex-wrap: nowrap;

    gap: 8px;

    min-width: 0;
}

.utility-left {
    flex: 1 1 auto;
}

.utility-right {
    flex: 0 0 auto;

    margin-left: auto;
}


/* =========================================================
   LINKS
   ========================================================= */

.utility-link,
.language-link,
.contrast-btn,
.text-size-btn {
    color: #ffffff;
}


/* =========================================================
   UTILITY LINK
   ========================================================= */

.utility-link {
    display: inline-flex;
    align-items: center;

    text-decoration: none;

    padding: 6px 4px;

    white-space: nowrap;
}

.utility-link:hover,
.utility-link:focus,
.language-link:hover,
.language-link:focus {
    color: #ffc107;
    text-decoration: underline;
}

.utility-link i {
    margin-right: 4px;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.utility-divider {
    color: rgba(255,255,255,.45);

    user-select: none;

    flex-shrink: 0;
}


/* =========================================================
   TEXT SIZE
   ========================================================= */

.utility-label {
    font-weight: 600;

    white-space: nowrap;

    margin-right: 1px;
}


/* =========================================================
   TEXT SIZE BUTTON
   ========================================================= */

.text-size-btn {
    min-width: 30px;
    height: 28px;

    padding: 2px 7px;

    border: 1px solid rgba(255,255,255,.5);

    border-radius: 4px;

    background: transparent;

    color: #ffffff;

    font-weight: 600;

    cursor: pointer;

    line-height: 1;

    flex-shrink: 0;
}

.text-size-btn:hover,
.text-size-btn:focus {
    background: #ffffff;
    color: #17365d;

    outline: none;
}


/* =========================================================
   CONTRAST
   ========================================================= */

.contrast-btn {
    display: inline-flex;
    align-items: center;

    border: 0;

    background: transparent;

    color: #ffffff;

    padding: 5px 7px;

    cursor: pointer;

    white-space: nowrap;

    flex-shrink: 0;
}

.contrast-btn:hover,
.contrast-btn:focus {
    color: #ffc107;

    outline: none;
}

.contrast-btn i {
    margin-right: 5px;
}


/* =========================================================
   LANGUAGE
   ========================================================= */

.language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 55px;
    height: 28px;

    padding: 3px 8px;

    margin: 0;

    background: transparent;
    color: #ffffff;

    border: 1px solid rgba(255,255,255,.5);
    border-radius: 4px;

    font-size: 13px;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    white-space: nowrap;
}

.language-link:hover,
.language-link:focus {
    background: #ffffff;
    color: #17365d;

    text-decoration: none;
}

.language-link:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}


/* =========================================================
   KEYBOARD FOCUS
   ========================================================= */

.top-utility-bar a:focus-visible,
.top-utility-bar button:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

/*
   Desktop utility bar = approximately 40px.
   Reserve that space because utility bar is fixed.
*/

#navbar-fixed {
    margin-top: 40px;
}

#navbar-fixed2 {
    margin-top: 40px;
}


/* =========================================================
   MAIN HEADER COLOR
   ========================================================= */

.innerMenu-2 .topHeader {
    background: #9fc5e3;

    transition: all .3s linear;

    z-index: 1111;

    position: relative;

    border: none;

    box-shadow: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .top-utility-inner {
        min-height: auto;

        padding: 5px 10px;

        flex-direction: column;

        gap: 3px;
    }

    .utility-left {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;
    }

    .utility-right {
        width: 100%;

        justify-content: center;

        flex-wrap: nowrap;

        margin-left: 0;
    }

    /*
       Utility bar now has approximately two rows.
    */
    #navbar-fixed,
    #navbar-fixed2 {
        margin-top: 76px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .top-utility-bar {
        font-size: 11px;
    }


    /* -----------------------------------------
       Utility container
       ----------------------------------------- */

    .top-utility-inner {
        padding: 5px 3px;

        gap: 3px;
    }


    /* -----------------------------------------
       First row
       ----------------------------------------- */

    .utility-left {
        display: flex;

        width: 100%;

        justify-content: center;

        align-items: center;

        flex-wrap: nowrap;

        gap: 2px;
    }

    .utility-left .utility-link {
        font-size: 11px;

        padding: 3px 2px;
    }

    .utility-link i {
        margin-right: 2px;
    }


    /* -----------------------------------------
       Second row
       ----------------------------------------- */

    .utility-right {
        display: flex;

        width: 100%;

        justify-content: center;

        align-items: center;

        flex-wrap: nowrap;

        gap: 3px;

        white-space: nowrap;
    }


    /* -----------------------------------------
       Text Size
       ----------------------------------------- */

    .utility-label {
        font-size: 11px;

        margin-right: 0;
    }

    .text-size-btn {
        min-width: 29px;

        width: 29px;

        height: 27px;

        padding: 2px 4px;

        font-size: 13px;
    }


    /* -----------------------------------------
       Contrast
       ----------------------------------------- */

    .contrast-btn {
        padding: 3px 4px;

        font-size: 11px;
    }

    .contrast-btn i {
        margin-right: 2px;
    }


    /* -----------------------------------------
       Language
       ----------------------------------------- */

    .language-link {
        font-size: 12px;

        padding: 3px 4px;

        margin: 0 !important;
    }


    /* -----------------------------------------
       Dividers
       ----------------------------------------- */

    .utility-divider {
        margin: 0 1px;

        display: inline;
    }


    /* -----------------------------------------
       Main header
       ----------------------------------------- */

    #navbar-fixed,
    #navbar-fixed2 {
        margin-top: 76px;
    }

    .innerMenu-2 .topHeader {
        min-height: auto;

        padding: 10px 15px;

        border: none;

        box-shadow: none;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .top-utility-bar {
        font-size: 10px;
    }

    .top-utility-inner {
        padding-left: 2px;
        padding-right: 2px;
    }

    .utility-left,
    .utility-right {
        gap: 1px;
    }

    .utility-left .utility-link {
        font-size: 10px;

        padding-left: 1px;
        padding-right: 1px;
    }

    .utility-label {
        font-size: 10px;
    }

    .text-size-btn {
        min-width: 27px;

        width: 27px;

        height: 26px;

        padding: 1px 3px;

        font-size: 12px;
    }

    .contrast-btn {
        font-size: 10px;

        padding: 2px 3px;
    }

    .language-link {
        font-size: 11px;

        padding: 2px 3px;
    }

    #navbar-fixed,
    #navbar-fixed2 {
        margin-top: 74px;
    }
}


/* =========================================================
   PREVENT HORIZONTAL OVERFLOW
   ========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}


/* =========================================================
   MOBILE IMAGES
   ========================================================= */

@media (max-width: 767.98px) {

    img {
        max-width: 100%;
        height: auto;
    }

    .container,
    .container-fluid {
        max-width: 100%;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        max-width: 100%;

        overflow-wrap: anywhere;
        word-break: normal;
    }
}


/* =========================================================
   HIGH CONTRAST
   ========================================================= */

body.high-contrast {
    background: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast a,
body.high-contrast .utility-link,
body.high-contrast .language-link {
    color: #ffff00 !important;
}

body.high-contrast .top-utility-bar {
    background: #000000 !important;
    color: #ffffff !important;

    border-bottom: 1px solid #ffffff !important;
}

body.high-contrast .innerMenu-2 .topHeader {
    background: #000000 !important;
    color: #ffffff !important;

    border: none !important;
    box-shadow: none !important;
}

body.high-contrast .card,
body.high-contrast .feedback-card,
body.high-contrast .modal-content {
    background: #000000 !important;
    color: #ffffff !important;

    border: 1px solid #ffffff !important;
}

body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select {
    background: #000000 !important;
    color: #ffffff !important;

    border: 1px solid #ffffff !important;
}

body.high-contrast button {
    background: #000000 !important;
    color: #ffffff !important;

    border-color: #ffffff !important;
}

body.high-contrast .text-size-btn:hover,
body.high-contrast .text-size-btn:focus {
    background: #ffffff !important;
    color: #000000 !important;
}

body.high-contrast .utility-divider {
    color: #ffffff !important;
}

body.high-contrast .utility-label {
    color: #ffffff !important;
}