﻿body {
}

.HeaderBG {
    background-color: #F6F4EE;
    position: relative;
    z-index: 1001;
}

.LogoText {
    font-family:'Myriad Pro', sans-serif;
    font-size:32px;
    color:#2E282A;
}

.parallelogram {
    
    height: 50px;
    transform: skew(-20deg);
}

.parallelogramcontent {
    transform: skew(20deg); /* Counter-skew to straighten the content */
    color: white;
    text-align: center;
    padding-top: 10px; /* Adjust as needed */
    text-decoration:underline;
}

.rectangle {
    height: 50px;
}

.rectanglecontent {
    color: white;
    text-align: center;
    padding-top: 10px; /* Adjust as needed */
    text-decoration: underline;
}

.ThemeList {
    display:flex;
    flex-direction:row;
    list-style:none;
    width:96%;
    padding:0 !important;
    margin-bottom:0rem;
    margin-top:0rem;
}

.ThemeButton {
    font-size:18px;
    color:#525252;
    text-decoration:underline;
    background:none;
    border:none;
    text-align:center;
}

/* Footer theme selector now posts to /SetTheme (same flow as the header selector).
   These rules strip the browser's default button chrome so the colored rectangle
   and its white label render identically to the old anchor-based markup. */
.ThemeFooterForm {
    margin: 0;
    padding: 0;
}
.ThemeFooterButton {
    width: 100%;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    display: block;
}
.ThemeFooterButton:focus { outline: none; }
.ThemeFooterButton:hover { opacity: 0.85; }


.F1Header {
    height: 150px;
}

.DesktopMenu {
    transform: skew(-20deg);

}

    .DesktopMenu ul {
        transform: skew(20deg); /* Counter-skew to straighten the content */
        width:calc(100% - 40px);
    }

.ThemeLink {
    z-index:2; 
    position:relative;
    height:50px;
    line-height:40px;
}

.ThemeLink:hover div:first-child {
    opacity:75% !important;
}

.ThemeLink:hover div div:first-child {
    opacity: 100% !important;
}

.HeaderLinkCol {
    height:50px;
    line-height:50px;
    text-align:right;

}

    .HeaderLinkCol a {
        color: #323232;
        font-weight:bold;
    }


.DropDownGroup {
    text-align:left;
    font-weight:bold;
}

.EmploymentBannerTitle {
    font-family: Roboto;
    font-style: normal;
    font-weight: bold;
    font-size: 3em;
    line-height: 1.2em;
    color: #7D1A1A;
    margin-block-start: 0px !important;
    margin: 0px !important;
}


.EmploymentBannerText {
    font-family: Roboto;
    font-style: normal;
    font-weight: normal;
    font-size: 2.25em;
    line-height: 1.3em;
    color: #000000;
}

.EmploymentBannerButton {
    background: #7D1A1A;
    border-radius: 21px;
    font-family: Roboto;
    font-style: normal;
    font-weight: normal;
    font-size: 2.25em;
    line-height: 1.25em;
    color: #FFFFFF;
    padding: 10px 30px;
}



.carousel-indicators [data-bs-target] {
    border-radius: 15px;
    width: 30px;
    height: 30px;
    padding: 0px !important;
    border-top: 0px !important;
    border-bottom: 0px !important;
}




.nav {
    width: 100%;
    min-height: 50px;
    background-color: #7d1a1a;
    max-width: 1400px;
    margin-right: auto;
    margin-left: auto;
}

ul.simple-toggle {
    list-style: none;
    padding: 0px;
    margin: 0px;
    margin-top: 00px;
    text-align: center;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    min-height: 50px;
}

    ul.simple-toggle li {
        display: inline-block;
        text-align: center;
        width: 14%;
        margin-bottom: 0;
        padding: 0;
        vertical-align: top;
    }

        ul.simple-toggle li a {
            display: block;
            padding: 14px 0px 8px 0px;
            text-decoration: none;
            color: #fff;
            font-size: 17px;
            min-height: 28px;
        }

            ul.simple-toggle li a:hover {
                background-color: #a92323;
                color: #fff;
            }



.anchor-link {
    display: none;
    text-align: right;
    text-align: center;
    padding: 5px 10px;
    color: #000;
    text-decoration: none;
    margin: 3px;
    float: left;
}

#mobile-nav {
    display: none;
}

.simple-toggle {
    padding: 0px;
    margin: 0px;
    vertical-align: top;
}

    .simple-toggle li {
        display: inline-block;
        width: 12%;
        min-height: 40px;
        position: relative;
    }

        .simple-toggle li a {
            width: 100% !important;
        }

        .simple-toggle li panel a {
            width: 190px !important;
        }

            .simple-toggle li panel a.LocationOfficerLink {
                width: 600px !important;
            }

a.SubMenuTop {
    /*background-color:#f6f5f3;
    display:inline-block;
    
    line-height:65px;
    color:black;
    text-decoration:none;
    font-size:16px;
    margin-left:20px;*/

    text-align: center !important;
}

    a.SubMenuTop + ul {
        display: none;
    }

    a.SubMenuTop + panel {
        display: none;
    }

    a.SubMenuTop:link {
        width: 12%;
    }

    a.SubMenuTop:hover {
        /*text-decoration:underline;*/
    }

        a.SubMenuTop:hover + ul {
            /*text-decoration:underline;*/
            display: block;
            z-index: 9000;
        }

        a.SubMenuTop:hover + panel {
            /*text-decoration:underline;*/
            display: block;
            z-index: 9000;
        }

.SubMenu {
    position: absolute;
    top: 50px;
    min-height: 50px;
    left: 0%;
    width: 150%;
    list-style: none;
    -webkit-padding-start: 0px;
    padding-left: 0;
}

.SubMenuRight {
    position: absolute;
    top: 50px;
    min-height: 50px;
    right: 0;
    width: 150%;
    list-style: none;
    -webkit-padding-start: 0px;
    padding-left: 0;
}

    .SubMenu li, .SubMenuRight li {
        display: block !important;
        background-color: #7d1a1a;
        text-align: center !important;
        font-size: 16px;
        color: #fff;
        width: 95% !important;
        padding: 10px 20px 10px 15px;
        min-height: 50px;
        border-top: 1px solid #000;
    }

        .SubMenu li a:link {
            color: #fff;
        }

        .SubMenu li a:visited {
            color: #fff;
        }

        .SubMenu li a {
            text-decoration: none;
        }

            .SubMenu li a:hover {
                background-color: #a92323;
                text-decoration-color: #ff934d;
                color: #ff934d;
            }

.SubMenu:hover {
    display: block !important;
}

.SubMenuRight:hover {
    display: block !important;
}

.MobileMenu {
    display: none;
}

@media (max-width:1040px) {
    ul.simple-toggle .SubMenu li, ul.simple-toggle .SubMenuRight li {
        width: 95% !important;
    }

    ul.simple-toggle li {
        width: 12% !important;
    }
}

@media (max-width:48.000em) {

    .simple-toggle {
        display: none !important;
    }
    /*.MobileMenu {
        display:block !important;
    }*/
    .MobileIndent {
        padding-left: 30px !important;
        background-color: #be2727 !important;
    }

    /*.simple-toggle li panel a.LocationOfficerLink{
        
        width:190px !important;
    }
.LocationOfficerLink {
margin-top:0px !important;
}
    .Title {
        font-size:24px;
    }
	

.SubMenu, .SubMenuRight {
    position:static !important;
	top:100%;
    left:0;
    float:none;
	width:100% !important;
z-index:500;

}
    .SubMenu li, .SubMenuRight li {
        display:inline-block !important;
        position:static !important;
        width:100% !important;
    }


    .SubMenu:hover {
    display:inline-block !important;
}
.SubMenuRight:hover {
    display:inline-block !important;
}
        */

    ul.simple-toggle {
        display: none;
    }

    .anchor-link, #mobile-nav {
        display: block;
    }

    ul.open {
        box-shadow: 2px 2px 3px #444444;
        display: block;
        list-style: none outside none;
        margin: 0;
        padding: 0;
        position: absolute;
        box-sizing: border-box;
        left: 0px;
        top: 100%;
        width: 100%;
        z-index: 500;
        text-align: left;
    }

        ul.open li {
            display: block;
            list-style: none;
            text-align: left;
            width: 100%;
        }

            ul.open li a {
                display: block;
                padding: 10px 10px;
                text-decoration: none;
                background-color: #7d1a1a;
                border: 1px solid #000 !important;
                color: white !important;
            }

                ul.open li a:hover {
                    text-decoration: underline;
                    text-decoration-color: #fff;
                    color: #fff;
                }

    .HeaderMenu {
        display: none !important;
    }
}


.btn-menu {
    display: block;
    float: right;
    margin-top: 13px;
    margin-bottom: 2px;
    margin-right: 13px;
    border: 0;
    width: 40px;
    height: 25px;
    background-color: transparent;
    cursor: pointer;
    display: block;
    position: relative;
}

    .btn-menu:focus {
        outline: 1px dotted #E0AE19;
    }

.show_menu .btn-menu:focus {
    outline: none;
}

.btn-menu .text {
    display: block;
    text-indent: 150%;
    white-space: nowrap;
    overflow: hidden;
}

.btn-menu .bar,
.btn-menu .bar:before,
.btn-menu .bar:after {
    display: block;
    position: absolute;
    width: 40px;
    height: 5px;
    background-color: #fff;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.btn-menu .bar {
    top: 10px;
    left: 0;
}

    .btn-menu .bar:before {
        position: absolute;
        content: '';
        top: 10px;
        left: 0;
    }

    .btn-menu .bar:after {
        position: absolute;
        content: '';
        top: -10px;
        left: 0;
    }

.show .btn-menu .bar {
    background-color: transparent;
}

    .show .btn-menu .bar:before {
        top: 0;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .show .btn-menu .bar:after {
        top: 0;
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

.mobile-nav {
    height: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #009900;
    border: 1px solid #005500;
    border-top: none;
    border-bottom: none;
    -webkit-transition: height 0.3s ease-in-out;
    transition: height 0.3s ease-in-out;
}

    .mobile-nav a {
        text-decoration: none;
        color: #fff;
        font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
        font-size: 18px;
        text-indent: 10px;
        display: block;
        line-height: 42px;
        border-bottom: 1px solid #005500;
    }

        .mobile-nav a:focus,
        .mobile-nav a:hover,
        .mobile-nav a:active {
            background-color: #004301;
        }

    .mobile-nav li:first-child a {
        border-top: 1px solid #005500;
    }

.show .mobile-nav {
    height: auto;
}

.mobile-nav .dd + ul {
    height: 0;
    overflow: hidden;
    background-color: #093CB3;
    -webkit-transition: height 0.3s ease-in-out;
    transition: height 0.3s ease-in-out;
}

    .mobile-nav .dd + ul a {
        text-indent: 30px;
    }

        .mobile-nav .dd + ul a:focus,
        .mobile-nav .dd + ul a:hover,
        .mobile-nav .dd + ul a:active {
            background-color: #001E66;
        }

.mobile-nav .dd:after {
    content: '\25BC';
    margin-left: 5px;
    font-size: 12px;
}

.mobile-nav .dd-show + ul {
    height: auto;
}

main {
    
    position: relative;
}

header nav ul {
    display: none;
}


.container {
    margin: 0 auto;
    width: 100%;
}

.nav-fostrap {
    display: block;
    /*margin-bottom: 15px;*/
    background: #7d1a1a;
    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    -ms-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    -o-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
}

    .nav-fostrap ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: block;
        box-sizing: border-box;
    }

    .nav-fostrap li {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: inline-block;
        width: 14%;
        position: relative;
        font-size: 1.05em;
        color: #ffffff;
        box-sizing: border-box;
    }

        .nav-fostrap li a {
            padding: 15px 20px;
            font-size: 1.2em;
            color: #ffffff;
            display: inline-block;
            /*outline: 0;*/
            font-weight: 400;
            width: 100%;
            box-sizing: border-box;
            text-align: center;
        }

        .nav-fostrap li.MobileOnlyMenu {
            display: none !important
        }

        .nav-fostrap li:hover ul.dropdown {
            display: block;
        }

        .nav-fostrap li ul.dropdown {
            position: absolute;
            display: none;
            width: 100%;
           /* background: #7d1a1a;*/
            -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
            -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
            -ms-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
            -o-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
            box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
            padding-top: 0;
            z-index: 1000;
        }

    .nav-fostrap > ul > li:last-child > a {
        font-size: 1.1em !important;
    }

    .nav-fostrap li ul.dropdown li {
        display: block;
        list-style-type: none;
        width: 100%;
        box-sizing: border-box;
    }

        .nav-fostrap li ul.dropdown li a {
            padding: 15px 20px;
            font-size: .8em;
            color: #000;
            display: block;
            font-weight: 400;
            width: 100%;
            box-sizing: border-box;
        }

        .nav-fostrap li ul.dropdown li:last-child a {
            border-bottom: none;
        }

    .nav-fostrap li:hover a {
       /* background: #a92323;
        color: #fff !important;*/
    }

    .nav-fostrap li:first-child:hover a {
        border-radius: 3px 0 0 3px;
    }

    .nav-fostrap li ul.dropdown li:hover a {
        background: rgba(0,0,0, .1);
    }

    .nav-fostrap li ul.dropdown li:first-child:hover a {
        border-radius: 0;
    }

    .nav-fostrap li:hover .arrow-down {
        border-top: 5px solid #fff;
    }

.arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #def1f0;
    position: relative;
    top: 15px;
    right: -5px;
    content: '';
}

.title-mobile {
    display: none;
}

@media (max-widtH:1435px) {
    .nav-fostrap li a, .nav-fostrap li ul.dropdown li a {
        font-size: 1.1em;
        padding: 15px 15px;
    }

    .nav-fostrap li {
        width: 13.5%;
    }

    .nav-fostrap > ul > li:last-child > a {
        font-size: 1em !important;
    }
}

@media (max-widtH:1290px) {
    .nav-fostrap li a, .nav-fostrap li ul.dropdown li a {
        font-size: 1em;
        padding: 15px 12px;
    }

    .nav-fostrap li {
        width: 13.5%;
    }

    .nav-fostrap > ul > li:last-child > a {
        font-size: .9em !important;
    }
}

@media (max-widtH:1188px) {
    .nav-fostrap li a, .nav-fostrap li ul.dropdown li a {
        font-size: 1em;
        padding: 15px 12px;
    }

    .nav-fostrap li {
        width: 13.5%;
    }

    .nav-fostrap > ul > li:last-child > a {
        font-size: .8em !important;
    }
}

@media (max-widtH:1122px) {
    .nav-fostrap li a, .nav-fostrap li ul.dropdown li a {
        font-size: 1em;
        padding: 15px 6px;
    }

    .nav-fostrap li {
        width: 13%;
    }

    .nav-fostrap > ul > li:last-child > a {
        font-size: .8em !important;
    }

    @media (max-widtH:1075px) {
        .nav-fostrap li a, .nav-fostrap li ul.dropdown li a {
            font-size: .8em;
            padding: 15px 6px;
        }

        .nav-fostrap li {
            width: 13.5%;
        }

        .nav-fostrap > ul > li:last-child > a {
            font-size: .8em !important;
        }
    }
}

@media only screen and (max-width:980px) {
    .MainWrap {
        margin-top: 50px;
    }

    .HeaderWrap {
        border-bottom: 1px solid #7d1a1a;
    }

    .nav-fostrap li.MobileOnlyMenu {
        display: inline-block !important
    }

    .nav-fostrap {
        background: #fff;
        width: 100%;
        height: 100%;
        display: block;
        position: fixed;
        left: -100%;
        top: 150px;
        -webkit-transition: left 0.25s ease;
        -moz-transition: left 0.25s ease;
        -ms-transition: left 0.25s ease;
        -o-transition: left 0.25s ease;
        transition: left 0.25s ease;
        margin: 0;
        border: 0;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: hidden;
        height: 100%;
        z-index: 10;
    }

    .title-mobile {
        position: fixed;
        display: block;
        top: 10px;
        font-size: 1.4em;
        left: 100px;
        right: 100px;
        text-align: center;
        color: #FFF;
    }

    .nav-fostrap.visible {
        left: 0px;
        -webkit-transition: left 0.25s ease;
        -moz-transition: left 0.25s ease;
        -ms-transition: left 0.25s ease;
        -o-transition: left 0.25s ease;
        transition: left 0.25s ease;
    }

    .nav-bg-fostrap {
        display: inline-block;
        vertical-align: middle;
        width: 100%;
        height: 50px;
        margin: 0;
        position: fixed;
       
        padding: 12px 0 0 10px;
        -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
        -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
        -ms-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
        -o-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
        box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
        z-index: 25;
    }

    .navbar-fostrap {
        display: inline-block;
        vertical-align: middle;
        height: 50px;
        cursor: pointer;
        margin: 0;
        position: absolute;
        top: 0;
        left: 0;
        padding: 12px;
        z-index: 999;
    }

        .navbar-fostrap span {
            height: 2px;
            background: #fff;
            margin: 5px;
            display: block;
            width: 20px;
        }

            .navbar-fostrap span:nth-child(2) {
                width: 20px;
            }

            .navbar-fostrap span:nth-child(3) {
                width: 20px;
            }

    

    .nav-fostrap li {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

        .nav-fostrap li a {
            display: block;
            color: #505050;
            font-weight: 600;
            width: 100%;
            box-sizing: border-box;
            text-align: left;
        }

        .nav-fostrap li:first-child:hover a {
            border-radius: 0;
        }

        .nav-fostrap li ul.dropdown {
            position: relative;
        }

            .nav-fostrap li ul.dropdown li a {
               /* background: #a92323 !important;
                border-bottom: none;
                color: #fff !important;*/
            }

        .nav-fostrap li:hover a {
            /*background: #7d1a1a;
            color: #fff !important;*/
        }

        .nav-fostrap li ul.dropdown li:hover a {
  /*          background: rgba(0,0,0,.1) !important;
            color: #fff !important;*/
        }

        .nav-fostrap li ul.dropdown li a {
            padding: 10px 10px 10px 30px;
           /* *//*font-size: 1.2em !important;*/
        }

        .nav-fostrap li:hover .arrow-down {
            border-top: 5px solid #fff;
        }

    .arrow-down {
        border-top: 5px solid #505050;
        position: absolute;
        top: 20px;
        right: 10px;
    }

    .cover-bg {
        background: rgba(0,0,0,0.5);
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }
    .nav-fostrap > ul > li > a {
        font-size: 1.1em !important;
    }
    .nav-fostrap > ul > li:last-child > a {
        font-size: 1.1em !important;
    }
}



.DesktopMenu {
    position: relative;
    z-index: 1000;
}

.drop-down {
    position: absolute;
    z-index: 1050;
}

#myCarousel {
    position: relative;
    z-index: 1;
}

.nav-fostrap {
    max-height: 90vh; /* or 100vh minus some header height */
    overflow-y: auto;
    padding-bottom:60px;
}

.dropdown {
    max-height: none !important;
    overflow: visible !important;
}

/* ============================================================
   Menu refactor: hover-white items, hamburger in secondary bar,
   combined mobile drawer. See _Layout.cshtml for markup.
   ============================================================ */

/* --- Top bar (general nav + quick links, above the brand header) --- */
.TopBar {
    background-color: #2D2D2D;
    /* Own stacking context so the dropdowns below paint over the header/shadow below */
    position: relative;
    z-index: 2000;
    font-size: 14px;
}
.TopBar-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    align-items: center;
    min-height: 36px;
}
.TopBar-left {
    flex: 1 1 auto;
    min-width: 0;
}
.TopBar-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto; /* hard-right alignment */
}
.TopBar-link {
    padding: 0 12px;
    line-height: 1;
}
.TopBar-link a {
    color: #fff !important;
    font-size: 14px;
    text-decoration: underline; /* ADA: links visually distinguishable */
    white-space: nowrap;
}
.TopBar-link a:hover { text-decoration: underline; }

/* Hide the Pay Loan link on mobile (the phone number and Internet Banking Login
   still fit; the pay-loan URL is too long for the compact mobile TopBar). */
@media (max-width: 991.98px) {
    .TopBar-link-payloan { display: none !important; }
}

/* TopBar nav: no skew, flat bar, items and dropdowns all white-text styled. */
.TopBar .DesktopMenu {
    transform: none;       /* kill the skew used on the themed secondary bar */
    height: auto;
}
.TopBar .DesktopMenu ul {
    transform: none;
    width: auto;
    height: 100%;
    align-items: stretch;
    gap: 0;
}
.TopBar .DesktopMenu ul > li {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0;
    flex: 0 0 auto !important; /* condensed: items size to their label, no flex-grow */
    width: auto !important;
}
.TopBar .DesktopMenu ul > li > a.nav-link {
    color: #fff !important;
    font-size: 14px;
    padding: 8px 6px;      /* condensed horizontal spacing */
    line-height: 1;
    text-decoration: underline; /* ADA: links underlined */
}
.TopBar .DesktopMenu ul > li:hover,
.TopBar .DesktopMenu ul > li:focus-within {
    background-color: rgba(255, 255, 255, 0.08) !important;
}
.TopBar .DesktopMenu ul > li:hover > a.nav-link,
.TopBar .DesktopMenu ul > li:focus-within > a.nav-link {
    color: #fff !important;
}
/* Keep the dropdown-indicator icon but size it down to fit the compact bar */
.TopBar .DesktopMenu ul > li > img {
    width: 14px !important;
    height: 14px !important;
    margin-left: -2px;
    margin-right: 4px;
    opacity: 0.85;
    vertical-align: middle;
}

/* TopBar dropdowns must float above the header (which comes later in source order).
   Bumping z-index on the dropdown itself (the TopBar is already a stacking context). */
.TopBar .drop-down,
.TopBar .drop-down-general {
    z-index: 10000 !important;
}

/* ADA: underline all themed-menu (secondary bar) top-level links too */
.DesktopMenu ul > li > a.nav-link {
    text-decoration: underline;
}
/* ADA: header quick-link text (HeaderLinkCol) */
.HeaderLinkCol a { text-decoration: underline; }

/* --- Header theme selector: vertically centered, larger font --- */
.HeaderThemeSelectorWrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.HeaderThemeSelector .ThemeButton { font-size: 22px; }
/* Size each tab to content and distribute empty space evenly so the visible gap
   between theme names is equal regardless of word length. Overrides the inline
   width:(100/count)% that the ThemeSelector component writes on each <li>. */
.HeaderThemeSelector .ThemeList {
    justify-content: space-evenly;
}
.HeaderThemeSelector .ThemeList > li {
    width: auto !important;
    padding: 0;
    flex: 0 0 auto;
}


/* Neutral base color for top-level nav links (was inline `color:black !important` before) */
.DesktopMenu ul > li > a.nav-link {
    color: #000;
}

/* Hover/focus: turn the item text white. The whole li also paints with primary color,
   which is set per-theme via the inline <style> block that defines `.DesktopMenu ul li:hover`. */
.DesktopMenu ul > li:hover > a.nav-link,
.DesktopMenu ul > li:focus-within > a.nav-link {
    color: #fff !important;
}

/* Main desktop menu (not TopBar) sits on a light background: invert the white icon so
   it shows dark by default, and drop the filter on hover so it flips back to white
   against the hover-painted primary-color li. */
.DesktopMenu ul > li > img {
    filter: invert(1);
    transition: filter 0.15s ease;
}
.DesktopMenu ul > li:hover > img,
.DesktopMenu ul > li:focus-within > img {
    filter: none;
}
/* TopBar sits on a dark bar — keep its icon white (no invert). */
.TopBar .DesktopMenu ul > li > img,
.TopBar .DesktopMenu ul > li:hover > img,
.TopBar .DesktopMenu ul > li:focus-within > img {
    filter: none;
}

/* Prevent top-level menu items from wrapping: flex the row and let items size to their label */
.DesktopMenu ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.DesktopMenu ul > li {
    width: auto !important; /* override inline width:X% from DynamicMenu so labels never wrap */
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}
.DesktopMenu ul > li > a.nav-link {
    white-space: nowrap;
}

/* --- Responsive header polish: contact row and theme strip between 992 and 1334 px --- */
.HeaderMenu .HeaderLinkCol { min-width: 0; }
.HeaderMenu .HeaderLinkCol a { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1334px) {
    /* First .HideMobile inside .HeaderMenu is the contact row. Let it use full width
       so the phone / login / pay-loan links stop wrapping over the theme strip. */
    .HeaderMenu > .HideMobile:first-of-type {
        max-width: none !important;
        margin-right: 10px;
    }
    .HeaderMenu .HeaderLinkCol a { font-size: clamp(11px, 1vw, 14px); }
    .HeaderMenu .HeaderLinkCol.col-1 { display: none; }
    .HeaderMenu .HeaderLinkCol.col-2 { flex: 0 0 auto; width: auto; padding-right: 10px; }
    .HeaderMenu .HeaderLinkCol.col-4 { flex: 1 1 auto; width: auto; padding-right: 10px; text-align: right; }
}

/* --- Mobile: keep logo + bank name, collapse desktop menus, fill secondary bar --- */
@media (max-width: 991.98px) {
    /* Hide the desktop menu strips; the combined drawer replaces them */
    .HeaderMenu .DesktopMenu,
    .PrimaryBorder .DesktopMenu { display: none !important; }

    /* Right-side header column (contact bar, theme strip, desktop menu) */
    .HeaderMenu { display: none !important; }

    /* Brand row shrinks to its content, logo is vertically centered with the text,
       inter-column gap is tightened and the text is allowed to grow to fill the row. */
    .F1Header .HeaderTop { height: auto !important; padding: 6px 0; }
    .F1Header .HeaderTop > .d-flex { align-items: center; }
    .F1Header .HeaderTop .col-4 {
        flex: 0 0 auto;
        width: auto !important;
        padding: 0 !important;
        text-align: center !important;
    }
    .F1Header .HeaderTop .col-4 a { display: inline-flex; align-items: center; }
    .F1Header .HeaderTop .col-4 img {
        width: auto !important;
        max-width: clamp(56px, 16vw, 90px) !important;
        padding: 0 !important;
        margin: 0 6px;
    }
    .F1Header .HeaderTop .col-8 {
        flex: 1 1 auto;
        width: auto !important;
        height: auto !important;
        padding: 0 8px 0 4px !important;
    }
    .F1Header .HeaderTop .LogoText {
        font-size: clamp(16px, 4.4vw, 24px) !important;
        line-height: 1.15;
    }

      

    /* Secondary strip becomes the mobile action bar; background/border come from the themed rule in WebTheme.ThemeStyles */
    .PrimaryBorder.PrimaryMenuBG {
        /* background-color + border are set per-theme in ThemeStyles under this same media query */
    }
    .PrimaryBorder.PrimaryMenuBG > .d-flex { align-items: center; }
    .PrimaryBorder.PrimaryMenuBG .col-4 {
        flex: 1 1 auto;
        width: auto !important;
        padding-left: 16px !important;
    }
    .PrimaryBorder.PrimaryMenuBG .col-4 span { font-size: 18px !important; }
    .PrimaryBorder.PrimaryMenuBG .col-8 {
        flex: 0 0 auto;
        width: auto !important;
        height: auto !important;
        padding-right: 8px;
    }
}

/* --- Hamburger toggle (lives in the secondary bar) --- */
.MobileMenuToggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    height: 50px;
}
.MobileMenuToggle .bars {
    display: inline-block;
    width: 26px;
    height: 3px;
    background: currentColor;
    position: relative;
}
.MobileMenuToggle .bars::before,
.MobileMenuToggle .bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 26px;
    height: 3px;
    background: currentColor;
}
.MobileMenuToggle .bars::before { top: -8px; }
.MobileMenuToggle .bars::after  { top:  8px; }

@media (max-width: 991.98px) {
    .MobileMenuToggle { display: inline-flex; }
}

/* --- Combined mobile drawer --- */
.MenuScrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
}
.MenuScrim.is-visible { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

.CombinedMobileMenu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100vh;
    background: #F6F4EE;
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 10000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.CombinedMobileMenu.is-open { transform: translateX(0); }

.CombinedMobileMenu .MenuHeader {
    /* background-color set dynamically by WebTheme.ThemeStyles (.PrimaryBG color) */
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    position: sticky;
    top: 0;
    z-index: 1;
}
.CombinedMobileMenu .MenuClose {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.CombinedMobileMenu .ThemeStrip {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #F6F4EE;
}
.CombinedMobileMenu .ThemeStrip .ThemeList {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}
.CombinedMobileMenu .ThemeStrip .ThemeList > li {
    width: 50% !important;
    padding: 4px;
}

.CombinedMobileMenu .MenuSectionLabel {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #370031;
    padding: 16px 16px 4px 16px;
    font-weight: 700;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #efece4;
}

.CombinedMobileMenu .MenuGroup {
    list-style: none;
    padding: 0;
    margin: 0;
}
.CombinedMobileMenu .MenuGroup > li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.CombinedMobileMenu .MenuRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    color: #2F2A2A;
    font-weight: 600;
    text-decoration: none;
}
.CombinedMobileMenu .MenuRow:hover,
.CombinedMobileMenu .MenuRow:focus { background: rgba(55, 0, 49, 0.06); }
.CombinedMobileMenu .MenuRow .chev {
    transition: transform 0.2s;
    font-size: 14px;
    color: #370031;
}
.CombinedMobileMenu .MenuGroup > li.is-expanded .MenuRow .chev { transform: rotate(90deg); }

.CombinedMobileMenu .MenuSub {
    display: none;
    padding: 4px 0 10px 0;
    background: #FFF9FE;
}
.CombinedMobileMenu .MenuGroup > li.is-expanded .MenuSub { display: block; }

.CombinedMobileMenu .MenuSub .DropDownGroup {
    font-size: 12px;
    padding: 8px 20px 4px 20px;
    margin: 0;
    border-bottom: 1px solid #370031;
    color: #370031 !important;
    font-weight: 700;
    text-align: left;
}
.CombinedMobileMenu .MenuSub a.dropdown-item {
    display: block;
    padding: 10px 24px;
    color: #2F2A2A !important;
    text-decoration: none;
    font-size: 15px;
    white-space: normal;
    text-align: left;
}
.CombinedMobileMenu .MenuSub a.dropdown-item:hover {
    background: rgba(55, 0, 49, 0.08);
}