/* media queries max-height */
@media (max-width: 575px) {
    header #header-top,
    header #header-main {
        padding-left: var(--ly-df-padding);
        padding-right: var(--ly-df-padding);
    }

    header .header-social ul li a i {
        font-size: 20px !important;
    }

    header .header-top-left .list-wrap li i,
    header .header-contact-two .content > span {
        font-size: 16px;
    }

    header .header-top-left .list-wrap li {
        font-size: 14px;
        font-weight: 400;
    }
}

/* Mobile top header + navbar layout */
@media (max-width: 767px) {
    /* Reduce the oversized top-bar padding on phones */
    header .heder-top-wrap-three {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* Top bar on phones: contact info (phone stacked above email) on the
       left, social icons on the right, all on a single compact row. */
    header #header-top .container-fulid .row {
        flex-wrap: nowrap;
        justify-content: space-between !important;
        align-items: center;
        column-gap: 12px;
    }

    header #contact-content,
    header #skeleton-contact {
        text-align: left;
        min-width: 0;
        flex: 0 1 auto;
    }

    header .heder-top-wrap-three {
        overflow: hidden;
    }

    header .header-top-left.header-top-left-three {
        width: auto;
    }

    /* Stack phone above email so the long email no longer clips */
    header .header-top-left .list-wrap {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
    }

    header .header-top-left .list-wrap li {
        font-size: 12px;
        line-height: 1.25;
        white-space: nowrap;
        padding-left: 0 !important;
    }

    header .header-top-left .list-wrap li i {
        font-size: 14px;
        margin-right: 6px;
    }

    /* The vertical divider only makes sense in a horizontal row */
    header .header-top-left .list-wrap li::before {
        display: none;
    }

    /* Social icons kept on a single row, aligned to the right edge */
    header .header-top-right-three {
        width: auto;
    }

    header .header-top-right-three .header-social .list-wrap {
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0 2px;
    }

    header .header-top-right-three .header-social .list-wrap li a i {
        font-size: 18px !important;
    }

    /* Tighten the main navbar row on phones */
    header #header-main {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    header #header-main .menu-nav {
        align-items: center;
        justify-content: space-between !important;
    }

    /* Logo flush-left, hamburger flush-right for a balanced bar */
    header #header-main .menu-nav .logo {
        text-align: left !important;
        margin: 0 !important;
        flex: 1 1 auto;
    }

    header #header-main .menu-nav .logo img {
        min-height: 0 !important;
        max-height: 44px;
        width: auto;
    }

    /* The slide-out mobile menu already has its own Funding button, and the
       blade marks this one d-none d-md-flex. app.css forces display:flex,
       which breaks that intent and wraps the bar onto two rows. Restore it. */
    header #header-main .header-funding-btn {
        display: none !important;
    }

    header #header-main .header-action .list-wrap {
        gap: 6px;
    }
}

/* Very small phones (<= 374px): shrink contact text and icons a touch so the
   full email and the social row never collide on the single top-bar row. */
@media (max-width: 374px) {
    header #header-top .container-fulid .row {
        column-gap: 8px;
    }

    header .header-top-left .list-wrap li {
        font-size: 11px;
    }

    header .header-top-left .list-wrap li i {
        font-size: 13px;
        margin-right: 4px;
    }

    header .header-top-right-three .header-social .list-wrap {
        gap: 0;
    }

    header .header-top-right-three .header-social .list-wrap li a {
        padding: 0 2px;
    }

    header .header-top-right-three .header-social .list-wrap li a i {
        font-size: 16px !important;
    }
}

@media (max-width: 991px) {
    .mobile-menu .menu-outer .navigation li > ul.sub-menu {
        display: none;
    }

    .mobile-menu .menu-outer .navigation li > a {
        display: block;
        line-height: 24px;
        padding: 10px 60px 10px 25px;
        font-size: 16px;
        font-weight: 700;
        color: var(--tg-heading-font-color);
        text-decoration: none;
    }

    .mobile-menu .menu-outer .navigation li {
        border-top: 1px solid rgb(0 0 0 / 10%);
    }

    .mobile-menu .menu-outer .navigation li ul li > a {
        margin-left: 20px;
        font-size: 15px;
        font-weight: 600;
    }

    .mobile-menu .menu-outer .navigation li ul li ul li > a {
        margin-left: 36px;
        font-size: 14px;
        font-weight: 500;
    }
}

@media (max-width: 1199px) {

}

/* Keep desktop navbar items on a single row */
@media (min-width: 992px) {
    header .menu-nav {
        flex-wrap: nowrap !important;
        row-gap: 0;
        column-gap: 12px;
    }

    header .menu-nav .logo {
        flex: 0 0 auto;
    }

    header .menu-nav .logo img {
        min-height: 48px !important;
        max-height: 52px;
        width: auto;
    }

    header .menu-nav .navbar-wrap.main-menu {
        flex: 1 1 auto !important;
        min-width: 0;
    }

    header .menu-nav .navbar-wrap ul.navigation {
        flex-wrap: nowrap !important;
        row-gap: 0;
        margin: 0 auto !important;
        justify-content: center;
    }

    header .menu-nav .navbar-wrap ul.navigation > li {
        flex-grow: 0 !important;
        flex-shrink: 1;
    }

    header .menu-nav .header-action {
        flex: 0 0 auto;
        flex-shrink: 0;
        margin-left: auto;
    }

    header .menu-nav .header-action .list-wrap {
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .menu-area-four .navbar-wrap ul {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    header #header-main .navbar-wrap ul li a {
        padding: 6px 7px !important;
        font-size: 13px !important;
    }

    header .header-funding-btn {
        padding: 0 8px !important;
    }

    header .header-funding-btn .btn-solid-yellow {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    header .header-action > ul li {
        margin-left: 12px;
    }
}

@media (min-width: 1400px) and (max-width: 1599px) {
    header #header-main .navbar-wrap ul li a {
        padding: 8px 10px !important;
        font-size: 14px !important;
    }
}

/* media queries min-height */
@media (min-width: 576px) {
    header #header-top,
    header #header-main {
        padding-left: var(--ly-sm-padding);
        padding-right: var(--ly-sm-padding);
    }

    header #header-top .container-fulid .row > * {
        flex-grow: 1;
    }
}

@media (min-width: 768px) {
    header #header-top,
    header #header-main {
        padding-left: var(--ly-md-padding);
        padding-right: var(--ly-md-padding);
    }
}

@media (min-width: 992px) {
    header #header-top,
    header #header-main {
        padding-left: var(--ly-lg-padding);
        padding-right: var(--ly-lg-padding);
    }

    section#who-we-are-container > .container-fulid > .contact-inner-wrap > .row {
        padding-left: var(--ly-lg-padding);
    }

    section#our-goals-container > .container-fulid > .contact-inner-wrap > .row {
        padding-left: var(--ly-lg-padding);

        .contact-image {
            position: absolute;
            top: 0;
            left: 0;
            width: calc(50% + (var(--ly-df-padding) * 2));
            height: 100%;
        }
    }
}

@media (min-width: 1200px) {
    header #header-top,
    header #header-main {
        padding-left: var(--ly-xl-padding);
        padding-right: var(--ly-xl-padding);
    }

    section#who-we-are-container > .container-fulid > .contact-inner-wrap > .row {
        padding-left: var(--ly-xl-padding);
    }

    section#our-goals-container > .container-fulid > .contact-inner-wrap > .row {
        padding-left: var(--ly-xl-padding);

        .contact-image {
            position: absolute;
            top: 0;
            left: 0;
            width: calc(50% + (var(--ly-df-padding) * 2.5));
            height: 100%;
        }
    }
}
