@media (min-width: 576px) {
    #searchform .modal-dialog {
        max-width: 698px;
    }
}

@media(min-width:768px) {
    section.strengths {
        padding-top: 100px;
        padding-bottom: 100px;
    }
    .swiper-button-next {
        right: -5%;
    }
    .swiper-button-prev {
        left: -5%;
    }
}

@media (min-width: 992px) {
    .header-main .main-nav  .navbar-collapse{
        flex-grow:unset;
    }
    .header-bottom .navbar-collapse{
      width: 100%;
    }
    .header-main .main-nav .navbar-nav>.nav-item{
        margin-left: 8px;
        margin-right:8px;
    }
    .header-main nav.navbar{
           justify-content: space-between;
    }
    .header-bottom nav.navbar .navbar-nav {
        align-items: center;
    }
    .header-main span.btn-dropmenu {
        display: none;
    }
    .nav-item .sub-menu {
        overflow: hidden;
        animation-name: menu-effect-out;
        animation-duration: 0.2s;
        animation-direction: alternate;
        animation-fill-mode: forwards;
        animation-timing-function: linear;
        transition: all 0.2s ease;
        visibility: hidden;
        height: auto;
        position: absolute;
        z-index: 10000;
    }
    .nav-item:hover .sub-menu {
        /*  display: revert !important;*/
        animation-name: menu-effect-in;
        visibility: visible;
        /*  animation-duration: 0.3s;*/
        animation-direction: alternate;
        animation-fill-mode: backwards;
        animation-timing-function: linear;
        visibility: visible;
    }
    @keyframes menu-effect-in {
        from {
            height: 0px;
            opacity: 0.5;
        }
        to {
            height: 200px;
            opacity: 1;
        }
    }
    @keyframes menu-effect-out {
        from {
            height: auto;
            opacity: 1;
        }
        to {
            height: 0;
            opacity: 0;
        }
    }
    .nav-item .sub-menu {
        background-color: #282f42de;
        min-width: 160px;
        padding: 5px;
        min-width: 220px;
        box-shadow: 0 2px 3px rgb(0 0 0 / 15%);
    }
    .header-main .main-nav .navbar-nav .nav-item .sub-menu li a {
        font-size: 12px;
        color: #777 !important;
        font-weight: 400;
        text-transform: uppercase;
        white-space: nowrap;
        padding: 6px 14px 6px 7px;
        font-size: 0.9em;
        line-height: 20px;
    }
    .header-main .main-nav .navbar-nav .nav-item .sub-menu li:hover {
        background: #f4f4f4;
    }
    .header-main .main-nav .navbar-nav .nav-item .sub-menu li {
        border-bottom: 1px solid #f2f2f2;
    }
    .header-main .main-nav .navbar-nav .nav-item .sub-menu li:last-child {
        border: unset;
    }
    .main-nav .navbar-nav .menu-item-mega a {
        position: relative;
    }
    .menu-item-mega {
        position: static !important;
    }
    .menu-item-mega .mega-item a {
        text-transform: inherit;
    }
    .header-bottom .main-nav .navbar-nav .nav-item .sub-menu {
        padding-left: 0;
        padding-right: 0;
    }
    .header-bottom .main-nav .navbar-nav .nav-item .sub-menu li a {
        color: #fff;
        font-size: 16px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        display: block;
    }
    .header-bottom .main-nav .navbar-nav .nav-item .sub-menu li:hover {
        background: #80828e;
    }
    div#mega-menu {
        position: absolute;
        width: 100%;
        background: #fff;
        right: 0px;
        z-index: 100;
        visibility: hidden;
        box-shadow: 0 2px 8px #bebebe;
    }
    div#mega-menu .mega-item a {
        color: #333;
        padding-left: 0;
        padding-right: 0;
        text-transform: inherit;
    }
    div#mega-menu ul {
        list-style: none;
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        margin-left: auto;
        padding-left: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    div#mega-menu .mega-item {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;
        padding-top: 10px;
        padding-bottom: 10px;
        display: flex;
    }
    div#mega-menu .mega-item:before {
        content: "\f105";
        display: block;
        color: #FF000A;
        font-family: 'FontAwesome';
        margin-right: 5px;
        font-weight: bold;
    }
    .main-nav .nav-item:hover #mega-menu {
        visibility: visible;
    }
    .navbar-brand.mobile {
        display: none;
    }
    .navbar-toggler {
        display: none;
    }
    .row-small {
        margin-left: -10px;
        margin-right: -10px;
    }
    .row-small .col-lg-2,
    .row-small .col-lg-3,
    .row-small .col-lg-4,
    .row-small .col-lg-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
    .row-large .col-lg-2,
    .row-large .col-lg-3,
    .row-large .col-lg-4,
    .row-large .col-lg-6 {
        padding-left: 30px;
        padding-right: 30px;
    }
    .row-large {
        margin-left: -30px;
        margin-right: -30px;
    }
    .row-smaller .col-lg-2,
    .row-smaller .col-lg-3,
    .row-smaller .col-lg-4,
    .row-smaller .col-lg-6 {
        padding-left: 6px;
        padding-right: 6px;
    }
    .row-smaller {
        margin-left: -6px;
        margin-right: -6px;
    }
    .navbar-brand {
        margin-right: 2em;
    }
    ul.sub-menu li {
        display: flex;
        align-items: center;
    }
    ul.sub-menu li a:before {
        content: '';
        background: url(../images/icon-hat.png);
        width: 26px;
        height: 16px;
        display: inline-block;
        background-size: 100%;
        background-repeat: no-repeat;
        margin-right: 10px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1300px !important;
    }
    .custom-width {
        max-width: 1170px !important;
    }
/*    .header-main .main-nav .navbar-collapse {
        padding-left: 1.5rem;
    }*/
}

@media (max-width: 1200px) {
    .home .header-main .main-nav .navbar-nav>.nav-item>a.nav-link {
        padding: 38px 8px;
    }
    .header-bottom .bottom-nav .navbar-nav>.nav-item>a {
        padding: 12px 18px;
    }
    .header-main .main-nav .navbar-nav .nav-item a.nav-link {
        font-size: 14px;
    }
    .header-bottom .navbar-nav>.nav-item {
        margin: 0px 6px;
    }
}

@media (max-width: 992px) {
    .header-form {
        max-width: 100%;
        width: 100%;
        padding-left: 48px;
    }
    .navbar .navbar-brand {
        display: none;
    }
    .home .navbar-toggler-icon i {
        color: #fff;
    }
    .main-nav .navbar .navbar-collapse.mobile {
        position: fixed;
        height: 100%;
        width: 80%;
        background: #fff;
        top: 0;
        left: -1000px;
        z-index: 1000000;
        transition: all 0.3s;
    }
    .main-nav .navbar .collapse {
        display: block;
    }
    .overlay-mobile.show {
        position: fixed;
        width: 100%;
        height: 100%;
        background-color: #0e0e0e82;
        z-index: 100;
        display: block;
        top: 0;
        left: 0;
    }
    .main-nav .navbar .navbar-collapse.mobile.active {
        left: 0px;
    }
    .header-wrapper .header-main .main-nav .navbar-nav {
        margin-top: 30px;
    }
    .home .header-main .main-nav .navbar-nav .nav-item a.nav-link {
        color: #333;
        font-size: 14px;
        font-weight: 400;
    }
    a.navbar-brand.mobile {
        margin-left: auto;
        margin-right: auto;
    }
    .section.process {
        background-size: cover;
    }
    section.advantages .advantages-item {
        padding: 20px;
    }
    .wrap-breadcrumbs {
        margin-top: 10px;
    }
    .header-main .search-header form {
        display: block;
        margin-top: 25px;
    }
    .first-post .post-title {
        margin-top: 10px;
    }
    .header-main .search-header i {
        display: none;
    }
    .navbar-toggler:focus {
        outline: 0;
        box-shadow: unset;
        border: unset;
    }
    .home .header-main .main-nav .navbar-nav>.nav-item>a.nav-link {
        padding: 8px 10px;
        font-family: 'Open Sans';
    }
    .home .header-main .main-nav .navbar-nav {
        margin-left: 0;
        padding-top: 20px;
    }
    .home .header-main .main-nav .navbar-nav>.nav-item.active {
        background: unset !important;
    }
    .home .header-main .main-nav .navbar-nav>.nav-item:hover {
        background-color: #0692d3 !important;
    }
    .home .header-main .main-nav .navbar-nav>.nav-item:hover a {
        color: #fff !important;
    }
    .header-top {
        display: none;
    }
    .news-slide-pagination {
        bottom: -24px;
    }
    .reviews-item iframe {
        height: 194px !important;
    }
    #mega-menu ul {
        padding-left: 10px;
    }
    #mega-menu ul {
        display: none;
    }
    .navbar-nav .nav-item .sub-menu {
        display: none;
        padding-left: 30px;
    }
    .btn-dropmenu i.fa.rotate {
        transform: rotate(-180deg);
        transition: all 0.3s;
    }
    .btn-dropmenu i {
        border-radius: 33px;
        font-size: 16px;
        color: #333;
        font-weight: bold;
    }
    .header-main span.btn-dropmenu:hover {
        border-radius: 100px;
        background: aliceblue;
    }
    .header-main {
        height: 80px;
        text-align: center;
    }
    .navbar-brand {
        padding-top: 8px;
    }
    .header-form form input {
        margin-left: auto;
        border-radius: 100px !important;
        padding-left: 10px !important;
    }
    .header-bottom .navbar-toggler {
        z-index: 1000;
        position: relative;
        padding-left: 0;
        margin-top: 10px;
    }
    .header-bottom .navbar-nav>.nav-item>a {
        color: #333;
    }
    .header-bottom .navbar-nav>.nav-item {
        position: relative;
        text-align: left;
        border-bottom: 1px dashed #333;
    }
    .header-main .header-form {
        margin-left: auto;
        margin-top: 12px;
    }
    .header-form form button {
        position: absolute;
        right: 10px;
    }
    .btn-dropmenu {
        display: block;
        display: block;
        position: absolute;
        top: 20px;
        right: 23px;
    }
    .btn-dropmenu i {
        color: #000;
    }
    .header-main nav.navbar {
        height: auto;
    }
}

@media (max-width: 768px) {
    section.strengths {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .section-title {
        font-size: 26px;
    }
    .nav-tabs.search-tab {
        display: flex;
        white-space: nowrap;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .modal#searchform a.nav-item.nav-link,
    .modal#searchform .form-content select {
        font-size: 14px;
    }
    .row-grid .col-grid .studyAbroad-img {
        height: 170px;
    }
    .row-grid .col-grid .studyAbroad-title {
        font-size: 24px;
    }
    .whyChoose-box .whyChoose-content {
        font-size: 14px;
        padding-left: 38px;
        padding-right: 30px;
        line-height: 22px;
    }
    .whyChoose-box .number {
        font-size: 40px;
        padding-left: 24px;
    }
    .whyChoose-item:before {
        width: 80px;
        height: 80px;
        top: 0;
        left: 12px;
    }
    .whyChoose-box {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    section.whyChoose-us span.title-second:after {
        top: 31px;
        font-size: 79px;
        right: 8px;
    }
    section.whyChoose-us .section-title .title-first {
        font-size: 24px;
    }
    section.whyChoose-us .section-title .title-second {
        font-size: 28px;
    }
    .about-home .about-text p {
        font-size: 16px;
    }
    section.steps .section-title-container .section-title-2 {
        font-size: 24px;
        line-height: unset;
    }
    section.steps .section-title-container .section-title-1 {
        font-size: 74px;
    }
    .steps-swapper .steps-slide::after {
        right: -44px;
        top: 6px;
        background-size: 64%;
    }
    .steps-swapper .steps-slide::before {
        left: -10px;
        top: 0px;
        background-size: 50%;
    }
    .slider-home .swiper-slide img {
        height: 100%;
    }
    section.home-contact .contact-form label {
        font-size: 16px;
    }
    .first-post .box-image {
        height: 100%;
    }
}

@media (max-width: 540px) {
    .post-list .media,
    .scholarship-box .media,
    .results-box .media {
        display: block;
    }
    .post-list .post-item .box-image,
    .scholarship-box .media .box-image,
    .results-box .media .box-image {
        width: 100%;
        height: 100%;
        margin-bottom: 10px;
    }
    .home .header-main .main-nav .dropdown-toggle::after {
        color: #333;
    }
    .first-post .box-text .post-title {
        font-size: 18px;
    }
    .follow-social {
        text-align: center;
    }
    .main-nav .navbar-brand img {
        width: 110px;
    }
    h1.cat-title {
        text-align: center;
    }
    .steps-swapper .swiper-slide .steps-box .step-title {
        width: 150px;
        height: 150px
    }
    .first-blog .meta-box p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        max-height: 6.5em;
    }
    .post-item .excerpt,
    .scholarship-wrapper .scholarship-box .media-body p,
    .search-form::before {
        display: none;
    }
    .post-item .box-image {
        width: 125px;
        height: 72px;
    }
    .post-item .media-body a {
        font-size: 16px;
    }
    .scholarship-wrapper .scholarship-box .media-body h3 a,
    .scholarship-wrapper .scholarship-box .media-body p {
        text-align: center;
        font-size: 16px;
    }
    .study-abroad .row-grid {
        grid-template-columns: 100%;
    }
    .study-abroad .row-grid .col-grid {
        grid-column: unset;
    }
    .register-form .form-title {
        font-size: 18px;
    }
    .register-form form .col-auto {
        position: absolute;
        right: 0;
    }
    h1.page-title,
    .home-contact.study-register-form .section-title-container p {
        font-size: 22px;
    }
    .search-form .col-absolute img {
        width: 28px;
    }
    .search-form input {
        padding-left: 10px;
    }
    .search-form .col-absolute {
        position: absolute;
        right: -18px;
    }
    .search-form .col-absolute button:focus {
        outline: 0;
        border: 0;
    }
    .results-box {
        padding-bottom: 20px;
    }
    .first-post .box-text p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        max-height: 4.5em;
    }
    .recruitment-wrapper .table-info tr td:nth-child(2),
    .recruitment-wrapper .table-info tr th:nth-child(2) {
        border-left: 1px solid #fff;
        border-right: 1px solid #fff;
    }
    .recruitment-wrapper .table-info th,
    .recruitment-wrapper .table-info tr td {
        font-size: 16px;
    }

    .font18mobile{
        font-size: 18px!important;
    }
}

@media (max-width: 426px) {
    footer #footer .footer-block .block-item img {
        margin-right: 5px;
        width: 10px;
    }
    footer #footer .footer-block .block-item span {
        font-size: 10px;
    }
    footer #footer .footer-menu ul li.nav-item {
        padding: 0;
        line-height: 22px;
    }
}