/* custom grid sizes */

.mobile {
    display: none;
}

.non-mobile {
    display: block;
}

@media (min-width: 992px) {
    .col-lg-2p5 {
        /* 2.5/12 */
        -webkit-box-flex: 0;
        -ms-flex: 0 0 20.833333%;
        flex: 0 0 20.833333%;
        max-width: 20.833333%;
    }
    
    .col-lg-2p5 {
        position: relative;
        width: 100%;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .col-lg-3p5 {
        /* 3.5/12 */
        -webkit-box-flex: 0;
        -ms-flex: 0 0 29.166667%;
        flex: 0 0 29.166667%;
        max-width: 29.166667%;
    }

    .col-lg-3p5 {
        position: relative;
        width: 100%;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .col-lg-8p5 {
        /* 8.5/12 */
        -webkit-box-flex: 0;
        -ms-flex: 0 0 70.833333%;
        flex: 0 0 70.833333%;
        max-width: 70.833333%;
    }

    .col-lg-8p5 {
        position: relative;
        width: 100%;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
}

@media (max-width: 500px) {
    .subscribe .subscribe-row {
        flex-direction: column;
    }

    .subscribe input {
        width: 100px;
    }

    .subscribe .fixed-container {
        padding: 0;
    }

    .subscribe input {
        border-bottom-right-radius: 5px;
        border-top-right-radius: 5px;
        width: 100%;
        margin-bottom: 10px;
    }


    footer .container {
        flex-direction: column;
        padding: 0 15px;
        gap: 15px;
    }

    .search-container .search-row {
        width: 80%;
        flex-direction: column-reverse;
    }

    .landing-page .search-container li.extra {
        display: none;
    }

    .animated-icons {
        display: none;
    }

    .select-difficulty .widget {
        padding-top: 20px;
    }

    .gradiented-top {
        background-size: 100% 140px;
        min-height: 140px;
    }

    .fixed-container > div {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .fixed-container > div > .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .terms .list {
        margin-top: 20px;
    }
    
    .terms .toolbar {
        flex-direction: column;
        height: initial;
        align-items: initial;
        gap: 10px;
    }
    
    .terms #remove-filters {
        margin-left: 0;
    }
    
    .results .card {
        flex-direction: column;
    }
    
    .instructor-profile .instructor-right-pane {
        margin-top: 30px;
    }

    .instructor-profile .table thead th {
        max-width: 70px;
        overflow-x: hidden;
        text-overflow: ellipsis;
    }
    
    .instructor-profile .table th:first-child {
        max-width: 80px;
        overflow-x: hidden;
        text-overflow: ellipsis;
    }
    
    .auth-packages .pricelist .items {
        display: flex;
        flex-direction: column;
    }

    .auth-packages .pricelist .items .item {
        justify-content: center;
    }

    .auth-packages .pricelist .items .radios {
        margin-bottom: 20px;
    }

    .mobile-reversed {
        flex-direction: column-reverse;
    }
}

@media (max-width: 991px) {
    :root {
        --container-width: 100%;
    }

    h1 {
        font-size: 26px;
        line-height: 30px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    nav {
        padding: 25px 30px 0;
    }

    .landing-page #mission-side .background {
        right: 0px;
        height: 270px;
        top: 30px;
    }

    .landing-page #mission-side .background img:nth-child(6) {
        top: 200px !important;
    }
    
    .search-container li a {
        padding: 3px 10px;
    }

    .landing-page #mission-side .item {
        height: 150px;
    }

    .search-container .subtitle-text {
        margin: 0 10px 25px;
    }

    .landing-page .narrow {
        width: calc(100% - 30px);
    }
    
    .landing-page .brands ul {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
    }

    .landing-page #testimonials-side {
        padding-right: 20px;
    }
    
    .landing-page #testimonials-side .swiper-button-next,
    .landing-page #testimonials-side .swiper-rtl .swiper-button-prev {
        right: 25px;
    }

    .landing-page #testimonials-side .background {
        right: 29px;
    }

    .landing-page #testimonials-side > h3 {
        padding-right: 0 !important;
    }

    .landing-page #testimonials-side .swiper-pagination {
        padding-right: 0;
    }

    .search-container {
        height: 300px;
    }

    .landing-page .btn-filled {
        border-top-left-radius: 7px;
        border-bottom-left-radius: 7px;
    }

    .landing-page .auto-suggest-list {
        top: 40px;
        background-color: #fff;
    }

    .landing-page .search-container img {
        display: none;
    }

    .search-container ul {
        width: 100%;
        overflow-x: auto;
        padding: 2px 0;
    }

    .landing-page .section,
    .page .section {
        padding-left: 15px;
    }

    .landing-page #extended-container {
        width: 100%;
        border-bottom-right-radius: 15px;
        border-top-right-radius: 15px;
    }
    
    .landing-page .blog-items a {
        margin-bottom: 20px;
        display: block;
    }
    
    .subscribe {
        padding: 30px 25px;
    }
    
    .search-container h1 {
        padding-top: 50px;
    }

    .landing-page .tabs-content {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .landing-page #mission-side {
        margin-top: 30px;
    }
    
    .landing-page .tabs {
        margin-bottom: 0 !important;
    }

    .landing-page .section,
    .page .section {
        margin-top: 20px;
    }

    .landing-page .section.equal-padding,
    .page .section {
        padding-right: 15px;
    }

    .landing-page .card.right-trimmed, .page .card.right-trimmed {
        height: initial;
    }
}

@media screen and (max-width: 991px) {
    nav .main-nav-box {
        display: none;
        position: fixed;
        width: 100%;
        transition: .4s ease-in-out;
        top: 0;
        left: 0;
        padding: 20px 20px 40px 20px;
        background-color: #fff;
        z-index: 1000;
    }

    nav .main-nav-box li {
        display: block;
        padding: 10px 0;
    }
    
    nav .main-nav-box.open {
        display: block;
    }
    
    nav .main-nav-box .main-nav {
        display: flex;
        flex-direction: column;
    }
    
    nav ul {
        float: none;
    }
    
    #nav-icon1, #nav-icon2, #nav-icon3, #nav-icon4 {
        width: 28px;
        position: absolute;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        -o-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        cursor: pointer;
        z-index: 1001;
        top: 30px;
        right: 30px;
    }

    #nav-icon1 span:nth-child(1) {
        top: 0px;
    }

    #nav-icon1 span:nth-child(2) {
        top: 10px;
    }

    #nav-icon1 span:nth-child(3) {
        top: 20px;
    }

    #nav-icon1 span, #nav-icon3 span, #nav-icon4 span {
        display: block;
        position: absolute;
        height: 4px;
        width: 100%;
        background: var(--blue);
        border-radius: 9px;
        opacity: 1;
        left: 0;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .25s ease-in-out;
        -moz-transition: .25s ease-in-out;
        -o-transition: .25s ease-in-out;
        transition: .25s ease-in-out;
    }

    #nav-icon1.open {
        top: 30px;
    }

    #nav-icon1.open span:nth-child(1) {
        top: 10px;
        -webkit-transform: rotate(135deg);
        -moz-transform: rotate(135deg);
        -o-transform: rotate(135deg);
        transform: rotate(135deg);
    }

    #nav-icon1.open span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    #nav-icon1.open span:nth-child(3) {
        top: 10px;
        -webkit-transform: rotate(-135deg);
        -moz-transform: rotate(-135deg);
        -o-transform: rotate(-135deg);
        transform: rotate(-135deg);
    }

    #nav-icon1.open span {
        background: var(--blue);
    }
    
    .mobile {
        display: block;
    }
    
    .non-mobile {
        display: none;
    }

    .landing-page .tabs .card, .page .tabs .card {
        margin-left: 0;
        height: initial;
    }

}

@media (min-width: 992px) and (max-width: 1279px) {
    :root {
        --container-width: 960px;
    }

    h1 {
        font-size: 36px;
        line-height: 30px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 22px;
    }
    
    nav {
        padding: 25px 20px 0;
    }

    .search-container .subtitle-text {
        margin: 0px 220px 25px;
    }

    .landing-page .search-container > img {
        display: none;
    }

    .search-container {
        height: 500px;
    }

    .landing-page .tabs .card, .page .tabs .card {
        margin-left: 0;
        height: initial;
    }

    .landing-page .card.right-trimmed, .page .card.right-trimmed {
        height: initial;
    }

    .mobile {
        display: block;
    }

    .non-mobile {
        display: none;
    }
    
}