/* Mobile layer for the EliteBank template (brend1). The mirrored theme CSS has almost no
   phone rules for the headers or the home banner, and it zeroes .auto-container padding
   under 768px. Loaded after responsive.css; the mirror CSS itself is never edited
   (the port scripts re-copy it). */

@media only screen and (max-width: 767px) {

    /* ---- Headers (all four variants) ------------------------------------------------ */

    /* Top info bars: too much text for a phone; the mobile menu panel already carries
       Sign In / Open Account and the support e-mail. */
    .main-header-one__top,
    .main-header-two__top,
    .main-header-three__top,
    .main-header-four__top {
        display: none;
    }

    /* One row: logo left, menu toggler right. Search / My Account / sidebar / Login
       buttons are reachable from the mobile menu. */
    .main-header-one__bottom-right,
    .main-header-two__bottom-right,
    .main-header-three__bottom-right,
    .main-header-four__bottom-right {
        display: none !important;
    }

    /* Header 01 floats over the grey banner; without the top bar it starts at the top. */
    .main-header-one__bottom {
        top: 0;
        margin-top: 12px;
        left: 0;
        right: 0;
        padding: 0 12px;
    }

    .main-header-one__bottom-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 68px;
        padding: 0 18px;
        border-radius: 12px;
    }

    .main-header-one__bottom-middle {
        position: static;
        display: flex;
        align-items: center;
    }

    .main-header-one__bottom-inner .header-logo-one img,
    .stricky-header .logo img {
        max-height: 40px;
        max-width: 150px;
    }

    /* Headers 02-04 (dark): logo and toggler away from the screen edge, toggler on the
       right, and white bars (the theme draws them dark on a dark background). */
    .main-header-two__bottom-inner,
    .main-header-three__bottom-inner,
    .main-header-four__bottom-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
    }

    .main-header-two .main-menu__list-wrapper,
    .main-header-four .main-menu__list-wrapper {
        margin-left: auto;
        justify-content: flex-end;
    }

    .main-header-two__bottom-left {
        flex: 1;
    }

    /* Header 03 is the header on every page now: one compact row (logo + toggler), without
       the desktop menu pill, so it fits above the breadcrumb band's 95px top padding. */
    .main-header-three__bottom {
        padding: 12px 0;
    }

    .main-header-three__bottom-middle {
        margin-left: auto;
        padding: 0;
        background-color: transparent;
    }

    .main-header-three .header-logo-three img {
        max-height: 40px;
        max-width: 150px;
    }

    .main-header-two .mobile-nav__toggler .icon-bar,
    .main-header-three .mobile-nav__toggler .icon-bar,
    .main-header-four .mobile-nav__toggler .icon-bar {
        background-color: #fff;
    }

    /* First section under header 01: it reserved room for the old two-row header. */
    .banner-one {
        padding-top: 110px;
        padding-bottom: 60px;
    }

    .breadcrumb-one {
        padding-top: 95px;
    }

    .breadcrumb-one__content {
        min-height: 0;
        padding: 40px 24px 36px;
    }

    .breadcrumb-one__menu {
        margin-top: 40px;
    }

    /* ---- Home banner (banner-one) --------------------------------------------------- */

    .banner-one .auto-container {
        padding: 0 16px;
    }

    /* ---- Home banner (banner-three, the main page) ----------------------------------- */

    .banner-three {
        padding-top: 130px;
    }

    .banner-three .auto-container {
        padding: 0 16px;
    }

    .banner-three__content-title h2 {
        font-size: 42px;
    }

    .banner-three__content-menu ul li a {
        font-size: 15px;
        line-height: 24px;
    }

    .banner-one__left {
        margin-right: 0;
    }

    .banner-one__left .sec-title {
        padding-bottom: 0;
        margin-bottom: 18px;
    }

    .banner-one__left .sec-title h2 {
        font-size: 38px;
        line-height: 1.15;
    }

    .banner-one__left .sec-title h2 br {
        display: none;
    }

    .banner-one__left-text-box {
        margin-bottom: 24px;
    }

    .banner-one__interest-box {
        margin-top: 32px;
        padding: 20px 22px;
    }

    .banner-one__img-box {
        margin: 32px 0 0;
        border-radius: 20px;
        overflow: hidden;
    }

    .banner-one__right {
        margin: 32px 0 0;
    }

    .banner-one__online-login {
        padding: 28px 22px 30px;
        border-radius: 20px;
    }

    /* Log In + forgot / open-account links stack instead of squeezing side by side. */
    .banner-one__bottom-right-down {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* Tablets: menu already collapses to the toggler below 1200px. */
@media only screen and (min-width: 768px) and (max-width: 1199px) {

    /* Toggler next to the right-hand buttons instead of mid-bar. */
    .main-header-one__bottom-middle {
        margin-left: auto;
        margin-right: 24px;
    }

    .main-header-one__bottom-right {
        margin-left: 0;
    }

    .banner-one__left .sec-title {
        padding-bottom: 0;
        margin-bottom: 24px;
    }
}

/* Footer 03 below 1200px: the theme pins the logo / tagline card absolutely over the photo with a 70px
   right margin, so on narrow screens it covers the support e-mail and runs into "Subscribe Us".
   Photo becomes a short strip, the card sits under it (overlapping a little), the button and e-mail wrap. */
@media only screen and (max-width: 1199px) {
    .footer-three__main-left {
        margin: 0 0 50px;
        padding-bottom: 0;
    }

    .footer-three__main-left > img {
        height: 220px;
        object-fit: cover;
    }

    .footer-three__main-left-contant {
        position: relative;
        right: auto;
        margin: -60px 24px 0 0;
        padding: 30px 26px;
    }

    .footer-three__main-logo img {
        width: auto;
    }

    .footer-three__main-left-contant-bottom {
        flex-wrap: wrap;
        gap: 16px 20px;
    }

    .footer-three__main-left-contant-phn a {
        word-break: break-all;
    }
}

@media only screen and (max-width: 767px) {
    .footer-three__main {
        padding: 70px 0 50px;
    }

    /* Subscribe form: the button text left little room for the e-mail field; on phones the button is
       just its arrow (the label stays as aria-label) and the field gets the space back. */
    #footer-widget-three__form button {
        font-size: 0;
        padding-left: 18px;
    }

    #footer-widget-three__form button i {
        font-size: 18px;
        margin-left: 0;
    }

    #footer-widget-three__form input[type="email"] {
        padding-right: 70px;
    }
}
