@media screen and (min-width: 1200px) and (max-width: 1366px) {
    section.banner h1 {
        font-size: 3.2em;
    }
    .footer_nex_ul_link li {
    font-size: 1em;
    margin-right: 24px;
}

    section.banner p {
        font-size: 1em;
        max-width: 535px;
    }

    .custom-ul-btn {
        zoom: 65%;
        margin-left: 4em;
    }

    .navbar-expand-lg .navbar-collapse {
        justify-content: end !important;
    }

    ul.navbar-nav.mx-auto.d-flex.align-items-center.gap-4 {
        margin: unset !important;
        gap: 4px !important;
    }

    .navbar-brand img {
        max-width: 75%;
    }

    section.banner .container {
        padding-bottom: 3em;
    }

    .image-part img {
        zoom: 65%;
    }

    .home2 p {
        font-size: 1em;
    }

    .overlap-hero-card {
        padding-bottom: 13em;
    }

    .LegacyForward {
        font-size: 2em !important;
    }

    .image-wrapper {
        max-width: 352px;
    }

    .home3-section {
        margin-top: -185px;
    }

    .home3-section {
        padding: 4em 0em 9em;
    }

    .proven_class h3 {
        font-size: 5.2em;
    }

    .excellence-title,
    .advantage-section h2,
    .legacy-title {
        font-size: 3.5em;
    }

    .adv-card {
        height: 420px;
    }

    .adv-card img {
        height: 74%;
    }

    .adv-card-body h5 {
        font-size: 1.5em;
    }

    .advantage-section {
        padding-bottom: 15em;
    }

    .legacy-section .container {
        margin-top: 0em;
    }

    .legacy-row {
        min-height: 21em;
    }

    .legacy-card-content {
        padding: 1em;
        font-size: 1.3em;
    }

    .set_legacy_postion {
        zoom: 89%;
    }
     .footer_nex_ul_link {
        gap: 40px;
    }
    .adv-card:hover img {
    height: 55%;
    }
}


@media (max-width: 768px) {
    /*.header{*/
    /*    width: auto;*/
    /*}*/
    .modal-content .row{
        margin-top: 2em;
    }
    #modalBio{
        margin-top: 1em;
    }
.leader_title_cta a{
           float: left;
        margin-bottom: 1em;
}
.leadership-section1{
        border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    padding-top: 3em;
        padding-bottom: 7em;
}
.leadership-section1 p{
        padding-left: 0em;
        font-size: 22px;
}
    .proven_class h3 {
        font-size: 4em;
    }

    .proven_class p {
        font-size: 1.4em;
    }

    .overlap-section {
        margin-top: -10em;
    }

    .home3-section {
        margin-top: -114px;
        border-top-left-radius: 50px;
        padding-bottom: 7em;
        border-top-right-radius: 50px;
        padding-top: 0;
    }

    .section-logo {
        max-width: 34%;
    }

    .legacy-section {
        background: #2e1818;
        padding-bottom: 3em;
        height: auto;
        position: inherit;
    }

    .advantage-section h2 {
        text-align: left;
        font-size: 2em;
    }

    .advantage-section {
        border-top-left-radius: 50px;
        border-top-right-radius: 50px;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }

    .adv-card img {
        top: 0;
        padding: 7px;
    }

    .legacy-section {
        border-top-left-radius: 50px;
        border-top-right-radius: 50px;
        border-bottom-left-radius: 0%;
        border-bottom-right-radius: 0%;
        z-index: 11;
        position: relative;
        margin-top: -4em;
    }

    .legacy-card {
        min-height: 343px;
    }

    .legacy-section .col-lg-4.col-md-12 {
        margin-bottom: 1em;
    }

    .footer_nex_ul_link {
        padding-left: 0;
        line-height: 2em;
    }

    .legacy-section .container {
        margin-top: auto;
    }

    section.banner {
        height: 0;
        min-height: 398px;
        align-items: start;
        margin-top: 7em;
    }

    .custom-ul-btn {
         
        width: 57%;
    }

    .set_legacy_postion h2 {
        font-size: 2.5em;
    }

    .begin-legacy .btn-outline-light {
        width: 62%;
        zoom: 84%;
    }
     /* about  */

    .about-banner img {
        height: 30em;
        object-fit: cover;
    }

    .about-second-section,
    .leadership-section,
    .philosophy-section {
        border-top-left-radius: 50px;
        border-top-right-radius: 50px;
        padding-top: 4em;
        padding-bottom: 11em;
    }

    .about-second-section {
        margin-top: -3em;
    }

    .about-banner-caption {
        bottom: 45%;
        height: 24%;
    }

    .about-second-section .col-lg-4 {
        margin-bottom: 1em;
    }

   

    .philosophy-section {
        background-size: cover;
        background-position: center;
        margin-bottom: -8px;
    }

   

    .philosophy-section .col {
        flex: 1 0 100%;
    }
    .play-link{
        display:grid;
        text-align:left!important;
    }
}

@media (max-width: 767px) and (orientation: landscape) {

      /* about  */

    .about-banner img {
        height: 30em;
        object-fit: cover;
    }

    .about-second-section,
    .leadership-section,
    .philosophy-section {
        border-top-left-radius: 50px;
        border-top-right-radius: 50px;
        padding-top: 4em;
        padding-bottom: 11em;
    }

    .about-second-section {
        margin-top: -3em;
    }

    .about-banner-caption {
        bottom: 20%;
        height: 24%;
    }

    .about-second-section .col-lg-4 {
        margin-bottom: 1em;
    }


    .philosophy-section {
        background-size: cover;
        background-position: center;
        margin-bottom: -8px;
    }

   

    .philosophy-section .col {
        flex: 1 0 100%;
    }
}


@media screen and (min-width: 320px) and (max-width: 480px) {
    .navbar-brand {
        max-width: 50%;
    }

    .home2 p {
        font-size: 1em;
    }

    .LegacyForward {
        font-size: 1.5em;
    }

    .home3-section .row {
        zoom: 65%;
    }

    .adv-card {
        /*height: 27em;*/

    }
    .mobile_frame{
        display:block;
    }
    .desktop_frame{
        display:none;
    }
    .begin-section {
    margin-top: 25em;
}
.core-overlay p {
    font-size: 22px;}
    section.banner h1 {
line-height: 40px;
}
.adv-card .adv-card-body {
    height: 230px;
}
    .adv-card img {
        height: 72%;
    }

    .adv-card-body h5 {
        font-size: 1.5em;
    }

    .set_legacy_postion {
        transform: translate(1em, -24em) !important;
        zoom: 87%;
    }

    .begin-legacy .btn-outline-light {
        width: 51%;
    }
}