/* Large devices (laptops/desktops, 992px and up) - 60em*/
@media (min-width: 992px) {
    .col-md-4 {
        width: 33.33333333%;
    }

    .col-md-7 {
        width: 58.33333333%;
    }

    .mb-lg-6 {
        margin-bottom: 4rem !important;
    }

    .mb-lg-3-half {
        margin-bottom: 2.5rem !important;
    }

    .two-column-list {
        columns: 2;
    }


    .gap-lg-7 {
        gap: 5rem !important;
    }

    /********* Page header - header top ***********/

    header {
        padding: 45px 0 0;
    }

    .interior-top {
        height: 300px;
        width: 100%;
    }

    .search_autocomplete.instant_suggestions h3 {
        margin-left: revert;
    }

/****** header image begins **********/

    .header-top-wrapper {
        grid-template-areas: "header-content header-image"; /* Revert to original order for larger screens */
        grid-template-columns: 0.5fr 1fr;
    }

    .header-top-wrapper h1 {
        font-size: 2.5rem;
    }

    .header-top-wrapper.article {
        grid-template-columns: 0.5fr 0.75fr;
    }

    /* || Hero Section  */

    .hero-image-gradient {
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(90deg, #dfe6e6 30%, rgba(234, 234, 243, 0) 55%);
    }

    .hero-container-content {
        position: absolute;
        inset: 10% auto auto 6%;
        max-width: 500px;
        background: initial;
        margin: revert;
        border-radius: revert;
        box-shadow: revert;
        padding-left: 0;
    }

    .hero-image-container img {
        width: 100%;
        height: 500px;
    }
   
    /****** hero banners ends **********/

    .button-primary-header {
        font-size: 1.3rem;
        margin: 1.5rem 0;
    }

    .interior-page h2 {
        font-size: 2rem;
    }

    .interior-page h3 {
        font-size: 1.5rem;
    }
    
    /**** BUTTON ****/

    .JoinBtn {
        background-color: #1c355e !important;
        color: #fff !important;
        border: 2px #1c355e solid !important;
        width: 90px;
        border-radius: var(--btn-radius) !important;
        padding: 7px;
        margin-bottom: 0px !important;
        font-weight: 700 !important;
        font-size: 0.8rem !important;
    }
    
    .productTbl-btn {
        font-size: 0.9rem;
    }

    .navigation {
        width: 100%;
        right: 0;
        left: 0;
        height: 45px;
        position: absolute;
       overflow: visible;
    }

    .navigation .custom-container {
        position: relative;
        height: 0;
    }

    /*     Logo     */
    .logo {
        margin: 0 0 0 1rem;
    }

    .logo img {
        padding-block: 1rem;
    }

    .top-nav {
        display: flex;
        flex-direction: row;
        justify-content: end;
        padding: 0.45rem;
    }

    .top-nav ul {
        flex-direction: row;
        gap: 2rem;
        padding: inherit;
    }

    .main-nav {
        position: static;
        margin-top: 45px;
        width: auto;
        float: right;
        border-bottom: none;
    }

    .main-nav > ul {
        display: flex;
        justify-content: flex-end;
        height: 116px;
        align-items: center;
        background-color: var(--white);
        position: static;
    }

    .cm-menu .expander-wrap .has-sub > span:after,
    .cm-menu .has-sub:after {
        background-image: url(/Content/images/main-nav-arrow.png);
        height: 9px;
        width: 11px;
        right: 5px;
        top: calc(50% - 4px)
    }

    .cm-menu .opened > .expander-wrap .has-sub > span:after,
    .cm-menu .opened > .has-sub:after {
        -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        transform: rotate(180deg)
    }

    .main-nav > ul > li:last-child {
        display: flex
    }

    .main-nav > ul > li > a {
        font-size: .9375rem;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 10px !important;
        position: relative;
        border-top: none
    }

    .main-nav > ul > li > a:focus,
    .main-nav > ul > li > a:hover {
        background: linear-gradient(to bottom, rgba(240, 237, 234, 0) 0, rgba(240, 237, 234, 0) 63%, rgba(240, 237, 234, 1) 100%)
    }

    .main-nav > ul > li > a:focus:before,
    .main-nav > ul > li > a:hover:before {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--links-hover-color);
        bottom: 0;
        display: block;
        right: 0;
        left: 0
    }

    .main-nav > ul > li > a.has-sub {
        padding: 0 20px 0 10px !important
    }

    .main-nav > ul > li {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        position: static
    }

    .main-nav > ul > li.opened > a.has-sub {
        position: relative;
        background: linear-gradient(to bottom, rgba(240, 237, 234, 0) 0, rgba(240, 237, 234, 0) 63%, rgba(240, 237, 234, 1) 100%)
    }

    .main-nav > ul > li.opened > a.has-sub:before {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--links-hover-color);
        bottom: 0;
        display: block;
        right: 0;
        left: 0
    }

    .main-nav > ul > li:nth-last-child(2), .main-nav > ul > li:last-child {
        margin: 0 10px
    }

    .main-nav .custom-sub {
        position: absolute;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 2px 6px 0 rgba(179, 179, 179, .7);
        top: 160px;
        right: 10px;
        left: 10px;
        width: 100%;
    }

    .main-nav .custom-sub > .link-landing {
        background-color: var(--catalina-blue);
        float: left;
        width: 100%;
    }

    .main-nav .custom-sub > .link-landing a {
        color: var(--white);
        position: relative;
        display: block;
        float: left;
        padding: 15px 20px;
    }

    .main-nav .custom-sub > .link-landing a:after {
        content: '';
        background-image: url(/Content/images/white-arrow.png);
        background-repeat: no-repeat;
        top: 22px;
        right: 6px;
        height: 13px;
        width: 8px;
        display: block;
        position: absolute;
        background-size: 7px;
    }

    .main-nav .custom-sub .child-items {
        display: flex;
        gap: 2.5rem;
        padding: 1.25rem;
    }

    .main-nav .custom-sub .child-items ul li {
        margin: 0 0 3px;
    }

    .main-nav .custom-sub .child-items ul li a {
        color: #1d355e;
        border: none;
        padding: 0;
    }

    .main-nav .custom-sub .child-items ul ul li a {
        background-color: transparent;
        padding: 0;
    }


    .toggle-menu + .cm-menu {
        max-height: 80em;
        opacity: 1;
        overflow: visible;
    }

    .cm-menu ul {
        top: 100%;
        overflow: hidden;
    }

    .cm-menu .opened > ul {
        max-height: 80em;
        opacity: 1;
        padding: 25px 15px;
    }

    .cm-menu .opened > .custom-sub {
        max-height: 80em;
        opacity: 1;
        background-color: #fff
    }

    .cm-menu .animating > .custom-sub {
        z-index: -1;
    }

    .cm-menu .animated > ul {
        overflow: visible;
        z-index: 10;
    }

    .cm-menu .animating > ul {
        z-index: -1;
    }

    [data-type=dropdown] ul {
        display: block;
        position: absolute;
        left: 0;
        z-index: -1;
        width: 100%;
        min-width: 180px;
        transition: max-height .4s ease-in-out, opacity .4s ease-in-out, left .4s ease-in-out, right .4s ease-in-out
    }

    [data-type=dropdown] ul ul {
        top: -5px;
    }

    [data-type=dropdown] .opened > ul {
        left: 100%;
        max-height: 80em;
        opacity: 1;
    }

    li[data-type=dropdown]:nth-last-child(-n+2) ul {
        left: 0;
        right: auto;
    }

    li[data-type=dropdown]:nth-last-child(-n+2) .opened > ul {
        left: auto;
        right: 100%;
    }

    .nav-bar ul li[data-type=dropdown] li li {
        margin-left: 5px;
        margin-right: 5px;
    }

    [data-type=dropdown] a + .has-sub {
        width: 0;
        min-height: 0;
        height: 100%
    }

    [data-type=dropdown] a + .has-sub > span {
        min-height: 0;
        height: 100%;
    }

    .header-menu-mobile {
        display: none;
    }

    .menu-mobile {
        padding: inherit;
        margin: inherit;
    }

    .menu-mobile--cta {
        display: none;
    }


    /**** || Footer */
    footer {
        padding-inline: 6rem;
    }

    /* **** || Article Card Styling */

    /* These three classes get dynamically added via JavaScript. See scripts.js file for detailed information. */
    .article-cards article:first-child img {
        aspect-ratio: 16 / 10;
        border-radius: 0.5rem 0 0 0.5rem;
        height: 400px;
    }

    .featured-card {
        gap: 1rem !important;
        justify-content: center !important;
        position: relative !important;
        padding-block: 1.5rem !important;
    }

    .featured-card-date-read {
        position: absolute;
        bottom: 0;
        gap: 2rem;
        padding-bottom: 1rem;
    }


    /********* Main Content ***********/

    /***********************************************/
    /****************** COMPONENTS *****************/
    /**********************************************/

    /********* Page Content ***********/
   
   /*** || COMMON FEATURE LIST ***/

    .feature-list {
        flex-flow: row nowrap;
    }

    /*This is used on promotion pages*/

    .feature-list-icon {
        width: 60%;
    }

    .carousel-quote-container {
        grid-template-columns: repeat(3, 1fr);
    }

    /*** || PRODUCT TABLE ***/

    #productTbl-tabs.nav-tabs .nav-link {
        padding: 12px 32px;
    }

    .prodLinks {
        justify-content: space-evenly;
        padding-bottom: 0.75rem;
        flex-direction: column;
    }

    .prodLinks-2, .prodLinks-3 {
        justify-content: space-evenly;
        padding-bottom: 0.75rem;
    }

    .linkSection {
        flex-wrap: wrap;
        margin: 0;
        flex-direction: row;
    }

    .linkSection-4 {
        flex-wrap: wrap;
        justify-content: space-around;
        margin: 0;
        flex-direction: row;
    }



    .ymalBox {
        margin-inline: 0;
    }

    .list .list-items .expand-item .item-content {
        padding: 0 20px 30px 30px
    }

    .video-single h4 {
        font-size: 1.375rem
    }

    
    /*****************hamburger menu collapsible menu head row (AW-21.04 April Flowers AWEB-54)*****************/
    #checkingMobile, #creditMobile, #loanMobile, #savingMobile, #digitalMobile, #ratesMobile, #commercialLoansMobile, #commercialMerchantMobile, #commercialCheckingMMMobile, #cashManagementMobile, #afsMobile {
        display: none;
    }
    .checkingSub, .creditSub, .loanSub, .savingSub, .digitalSub, .ratesSub, .commercialLoansSub, .commercialCheckingSub, .commercialMerchantSub, .cashManagementSub, .afsSub {
        display: block;
    }

    #checkingFull, #creditFull, #loanFull, #savingFull, #digitalFull, #ratesFull, #commercialLoansFull, #commercialMerchantFull, #commercialCheckingMMFull, #cashManagementFull, #afsFull {
        display: block;
    }

    /****************/

    
    /* *** || Accordion Header Styling */
    .accordion-header h3, .accordion-header button {
         font-size: 1.4rem;
    }

    .branch-card-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .virtual-branch__select-form {
        flex-wrap: initial;
    }
    /* Apply to all >= 992px */
    @media (min-width: 992px) {
        /* Let menu items wrap naturally and keep spacing normal */
        .main-nav .custom-sub .child-items ul li a {
            display: inline-block; /* avoids flex's space-between behavior */
            white-space: normal; /* allow wrapping to next line */
            overflow: visible; /* don't clip text */
            text-overflow: clip; /* no ellipsis */
            word-spacing: normal;
            letter-spacing: normal;
            line-height: 1.25; /* keeps row height tight */
        }

        /* If the LI/UL is flex, stop any spacing/stretching */
        .main-nav .custom-sub .child-items ul {
            justify-content: flex-start;
        }

            .main-nav .custom-sub .child-items ul li {
                flex-wrap: nowrap;
                margin-bottom: 0.25rem; /* trims extra vertical gap between items */
            }
    }

}
