@media (max-width: 1199px){
    #courses.gridview .course:nth-child(3n+1){
        clear: none
    }

    #courses.gridview .course:nth-child(2n+1){
        clear: both
    }

}

@media (max-width: 1199px) and (min-width: 992px){
    .mainMenu .nav>li>a{
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 991px){
    ul.list li.media img{
        width: 200px;
    }

    .title.bg{
        background-size: 100% 100%;
    }

    header#main .navbar-text{
        font-size: 15px;
    }

    header#main .navbar-text strong{
        font-size: 22px;
    }
}

@media (max-width: 991px) and (min-width: 768px){

    .mainMenu .navbar-right{
        float: inherit !important;
    }

    .mainMenu{
        margin-top: 0
    }

    .mainMenu .nav>li>a{
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 767px){

    footer#main{
        padding-top: 20px
    }

    #front{
        margin-top: 20px;
    }

    header#main .search-form{
        margin-top: 15px;
    }

    header#main .right{
        margin: 15px 0;
    }

    #front .center{
        border: none;
        margin: 20px 0
    }

    aside#main{
        margin-top: 20px;
    }
    
    header#main .logo img{
        position: relative;
        z-index: 100000;
        max-width: 100%;
    }

    .grid .item{
        width: 50%;
    }

    .mainMenu{
        margin-top: -40px
    }

    header#main .navbar li a{
        color: #1A73A9;
        text-transform: uppercase;
    }

    header#main .navbar li a:hover,
    header#main .navbar li[class^=current] > a,
    header#main .navbar li[class*=current] > a{
        color: #000
    }    

    #mainMenu li .sub-menu{
        position: static;
        background: none;
        width: auto;
        display: block;
        z-index: 100000
    }

    #mainMenu li .sub-menu li a{
        padding-left: 30px;
    }

    #mainMenu li .sub-menu .sub-menu li a{
        padding-left: 50px;
    }

    #mainMenu li .sub-menu li a:before{
        content: "\e080";
        font-family: 'Glyphicons Halflings';
        display: inline-block;
        margin-right: 3px;
        font-size: 11px;
    }

    .navbar-toggle{
        background: none !Important;
        border: none;
        margin: 15px;
        padding: 0;
        border-radius: 0 !Important;
    }

    .navbar-toggle .icon-bar{
        background-color: white !important;
    }

    .navbar-toggle .icon-bar+.icon-bar{
        margin-top: 5px;
    }

    .navbar-toggle:hover .icon-bar{
        background: #23A9E1
    }

    .push-canvas {
        -webkit-transition: all .25s ease-out;
        -moz-transition: all .25s ease-out;
        -o-transition: all .25s ease-out;
        transition: all .25s ease-out;
        overflow-x: hidden;
        position: relative;
        left: 0;
    }
    
    .navbar-push {
        padding-right: 15px;
        padding-left: 15px;
        margin-left: 0;
        margin-right: 0;
    }

    .push-canvas.pushed-left {
        left: -80%;
    }
    
    .push-canvas.pushed-right {
        left: 80%;
    }
    
    .navbar-push {
        -webkit-transition: all .25s ease-out;
        -moz-transition: all .25s ease-out;
        -o-transition: all .25s ease-out;
        transition: all .25s ease-out;
        overflow-y: scroll;
        height: 100%;
        position: fixed;
        width: 80%;
        top: 0;
        border: none;
        z-index: 9999999999;
        background: white;
    }

    .admin-bar .navbar-push{
        top: 50px;
    }

    .navbar-nav{
        margin: 10px 0;
    }
    
    .navbar-push.navbar-push-right.in {
        left: 0;
    }
    
    .navbar-push.navbar-push-left.in {
        right: 0;
        margin-right: 0;
    }

    .closeMenu{
        background: rgba(0, 0, 0, .7);
        z-index: 100000000000;
        right: 80%;
    }

    #primary .media-list .media-object{
        width: 200px;
        height: auto;
    }

    .page-title .title{
        font-size: 20px;
    }

    .page-title{
        padding: 15px 0
    }

    .copyright, .copyright .social,
    #courses.owl-carousel .thumbnail .footer p{
        text-align: center;
    }

    #courses.gridview .thumbnail img{
        max-height: inherit
    }

    .hotline{
        float: none;
        margin-top: -5px;
        text-align: center
    }

    header#main .logo{
        text-align: center
    }

    header#main .logo .slogan{
        display: block;
        text-align: center
    }

    header#main .logo img{
        max-width: 100%;
        width: auto;
        height: 70px;
        margin: 10px 0;
    }

    header#main .navbar li > a:after{
        display: none
    }    

}

@media (max-width: 600px){
    .navbar-brand{
        display: block;
        float: none;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    header#main .navbar-text{
        margin-top: 0
    }

    header#main .logo img{
        margin: auto;
    }

    header#main .navbar-form{
        margin-top: 0
    }

    #courses .thumbnail img{
        max-height: inherit;
    }    
}

@media screen and (max-width: 520px){
    .grid .item{
        width: 100%;
    }

    .widget_post_category_full_widget li.large, .widget_tieudiem_widget li.large{
        width: 100%;
        float: none
    }

    ul.list li.media .thumbnail,
    .widget_post_category_full_widget li.large{
        width: 100%
    }
    
    #primary .media-left{
        width: 100%;
        display: block;
        padding-right: 0;
        margin-bottom: 15px;
    }

    #primary .media-list .media-object{
        width: 100%;
    }

    header#main .col-xs-4,
    header#main .col-xs-8,
    header#main .right{
        width: 100%;
        text-align: center;
    }

    .homebox .widget.layerslider_widget,
    .boxes .ads{
        display: none
    }

    .gallery .gallery-item{
        width: 50% !important
    }

}