

@media screen and (min-width: 1023px) {
    .header-main .header-inner {
        padding-left: 242px;
        padding-right: 0;
    }
    .home .page-left-sidebar .div-phai {
        background: transparent;
        padding: 0px;
    }
    .page-left-sidebar .div-phai {
        /*        min-height: 700px;*/
        margin-bottom: 15px;
        background: white;
        padding: 20px;
    }
    /*    .div-phai {
            flex-basis: 80%;
            max-width: 80%;
        }*/

    .div-sidebar {
        -ms-flex-preferred-size: 20%;
            flex-basis: 20%;
        max-width: 20%;
        z-index: 999;
    }
    .col-divided {
        padding-left: 0px;
        padding-right: 0px;
        border-right: none;
    }

}

@media screen and (min-width: 850px) {
    [data-show="show-for-medium"], .show-for-medium {
        display: none !important;
    }
    .large-3 {
        max-width: 25%;
        -ms-flex-preferred-size: 25%;
        flex-basis: 25%;
    }
    .col-divided {
        padding-right: 30px;
        /*        border-right: 1px solid #ececec;*/
    }

}
@media (min-width: 768px){
    .col-md-9 {
        -ms-flex: 0 0 80%;
        -webkit-box-flex: 0;
                flex: 0 0 80%;
        max-width: 80%;
    }
}


@media screen and (min-width: 1023px) and (max-width: 1138px){
    input.form-control.border-0.bg-light {
        width: 150px;
    }
    #secondary {
/*        margin-top: 0;*/
        width: 200px;
    }
}

@media screen and (min-width: 1023px) {
   #single-wrapper #secondary , #archive-wrapper #secondary {
        margin-top: 0;
       
    }
}
@media screen and (min-width: 992px) and (max-width: 1022px){
    input.form-control.border-0.bg-light {
        width: 250px;
    }
    .large-9{
        max-width: 70%;
    }
    #secondary {
        margin-top: 0;
    }
}
@media screen and (min-width: 768px) and (max-width: 991px){
    .large-9{
        max-width: 70%;
    }
    input.form-control.border-0.bg-light {
        width: 120px;
    }
    #secondary {
        margin-top: 0;
        width: 165px;
    }
}
@media (max-width: 1022px) {
    #archive-wrapper, #single-wrapper {
        padding-top: 60px;
    }
   #single-wrapper #secondary ,#archive-wrapper #secondary {
        margin-top: 0;
        
    }
}
@media (max-width: 768px) {
    .tab-post > *,
    .cate-post > * {
        width: 100%;
        max-width: 100%;
        -webkit-box-flex: 0;
            -ms-flex: none;
                flex: none;
    }
    .news-homepage > *.wpb_column {
        width: 100%;
    }
    
    .list-news,
    .post-widget .textwidget {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        margin: -15px;
    }
    .list-news > *,
    .post-widget .textwidget > * {
        width: 50%;
        padding: 15px;
    }
    .list-news .item-list,
    .post-widget .textwidget a p:last-child {
        margin-bottom: 0;
    }
    
}
@media (max-width: 767px) {
    .page-wrapper {
    padding-top: 115px;
    }
    .div-phai main#main {

        padding-top: 80px;
    }
    .header .flex-row {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
        padding: 5px 15px;
    }
    .diachi a {
        margin-right: 0;
    }
    .header-main {
        height: auto;
    }


    #content, #footer {
        /*display: none;*/
    }
    #logo.flex-col.logo {
        -webkit-box-ordinal-group: 0;
            -ms-flex-order: -1;
                order: -1;
        padding: 0;
        margin: 0;
    }
    .hide-for-medium.flex-right {
        -webkit-box-ordinal-group: 3;
            -ms-flex-order: 2;
                order: 2;
        width: calc(100% - 170px);
    }
    .hide-for-medium.flex-right .nav {
        -webkit-box-pack: end;
            -ms-flex-pack: end;
                justify-content: end;
    }
    .icon-menubar {
        width: 40px;
        height: 40px;
/*        background: red;*/
        -webkit-box-ordinal-group: 4;
            -ms-flex-order: 3;
                order: 3;
        cursor: pointer;
        position: relative;
    }
    .icon-menubar:before{
     content: '';
    position: absolute;
    top: 25px;
    right: 20px;
    display: block;
    width: 15px;
    height: 7px;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    }
    .icon-menubar:after{
                content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    display: block;
    width: 15px;
    height: 2px;
    background: #ffffff;
    }
    
    input.form-control.border-0.bg-light {
        -webkit-box-flex: 1;
            -ms-flex: 1;
                flex: 1;
        width: auto;
    }
    .search-home {
        width: calc(50% - 40px);
        -webkit-box-ordinal-group: 5;
            -ms-flex-order: 4;
                order: 4;
        padding: 0 15px 0 5px;
    }
    .search-home ul li:nth-child(1) {
        width: 100%;
    }
    .account-item.has-icon.diachi {
        -webkit-box-ordinal-group: 6;
            -ms-flex-order: 5;
                order: 5;
    }

    /*Danh Muc*/
    #secondary {
        z-index: 101;
        left: -100%;
        top: 0;
        margin: 0;
        border-radius: 0;
        -webkit-transition: 0.3s;
        -o-transition: 0.3s;
        transition: 0.3s;
    }
    #secondary.active {
        left: 0;
        top: 0;
    }
    #dropmenu {
        position: fixed;
        z-index: 100;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.8);
        opacity: 0;
        visibility: hidden;
        -webkit-transition: 0.3s;
        -o-transition: 0.3s;
        transition: 0.3s;
        pointer-events: auto;
    }
    #dropmenu.active {
        opacity: 1;
        visibility: visible;
    }

    /*Footer*/
    .container > .row > .div-sidebar {
        width: 0;
        padding: 0;
        -webkit-box-flex: 0;
            -ms-flex: none;
                flex: none;
        
    }
}

@media (max-width: 440px) {
    .account-item.has-icon.diachi {
        width: 170px;
    }
    #logo {
        width: 150px;
    }

    .hide-for-medium.flex-right {
        -webkit-box-ordinal-group: 3;
            -ms-flex-order: 2;
                order: 2;
        width: calc(100% - 170px - 40px);
    }
    .search-home {
        width: calc(100% -  170px);

    }
    .donhang a span {
        display: none;
    }
}
@media (max-width: 480px) {
    .tempvideo {
        width: 200px;
        height: 150px;
    }
    .tempvideo img {
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
           object-fit: cover;
    }
}
@media (max-width: 380px) {
    .list-news > *,
    .post-widget .textwidget > * {
        width: 100%;
    }
    .tempvideo {
        width: 140px;
        height: 160px;
    }
    
   
}