@import '../config';
@media screen and (max-width: 1141px) {
    .wrapper {
        width: 100%;
        padding: 0 20px;
    }
}

@media screen and (max-width: 1060px) {
    header {
        padding-bottom: 76.5px;
        .wrapper.first {
            height: 92px; 
        }
        .search-form {
            width: 100%;
            margin-top: 30px;
        }
        .menu {
            width: auto;
            float: left;
            padding-left: 0;
            &>li:last-child {
                padding-left: 0;
            }
        }
    }
}

@media screen and (max-width: 1000px) {
    .content-sidebar {
        .content {
            width: calc(100% - 237px - 42px) !important;
            &.full {
                width: 100% !important;
            }
            .post-blk .post-content {
                padding: 15px 20px 20px 20px;
            }
            .post-blk .page-common-title {
                padding: 13px 20px 12px;
                .days {
                    padding: 8px 20px 11px;
                }
            }
        }
        .sidebar {
            width: 237px !important;
            padding: 20px;
            .post {
                .title i.mobile {
                    display: inline;
                }
                p {
                    display: none;
                }
                .title {
                    font-size: 15px;
                    line-height: 15px;
                }
            }
        }
    }
}

@media screen and (max-width: 1000px) and (min-width: 700px) {
    .content-sidebar .sidebar {
        .magazine {
            img {
                float: none;
                width: 50%;
                margin: 0 auto;
                margin-bottom: 20px;
                display: block;
            }
            .text {
                width: 100%;
                min-height: auto;
                .previous {
                    position: relative;
                }
                br {
                    display: none;
                }
                span {
                    display: inline;
                    margin: auto;
                    text-transform: lowercase;
                }
            }
        }
        .member .dtl .title {
            display: none;
        }
    }
}

@media screen and (max-width: 850px) {
    header {
        padding-top: 41px;
        padding-bottom: 59px;

        .wpml-ls-legacy-list-horizontal {
            display: none;
        }
    }
    header .menu {
        display: none;
    }
    header .logo2 {
        display: none;
    }
    header .logo1 {
        margin-bottom: 25px;
        width: 182px;
    }
    header .search-form {
        // float: none;
        margin-top: 0;
        top: 0;
        transform: none;
        -webkit-transform: none;
        width: 100%;
        input[type="text"] {
            padding: 0 10px;
        }
    }
    .toggle-menu {
        transform: translateY(-78%);
    }
    .toggle-menu,
    .slide-menu {
        display: block;
    }
    .subscribe {
        form {
            width: 100%;
            input[type="submit"] {
                padding: 12px 15px;
            }
        }
        h5 {
            font-size: 30px;
            line-height: 40px;
        }
        p {
            width: 100%;
        }
    }
    footer {
        .blk {
            width: calc(50% - 30px);
            &.first {
                width: calc(100% - 30px);
                margin-bottom: 30px;
                padding-left: 0;
            }
        }
        .footer-top {
            padding-bottom: 20px;
        }
        .footer-bottom p {
            text-align: right;
        }
        .copyright {
            &.pc {
                display: none;
            }
            &.mobile {
                display: block;
            }
        }
    }
    .content-sidebar {
        .content .post-blk .post-content h6 {
            font-size: 17px;
            line-height: 20px;
        }
        .sidebar .most-read-news .post {
            padding-bottom: 15px;
            margin-bottom: 15px;
        }
    }
}

@media screen and (max-width: 708px) {
    footer .footer-bottom:after {
        border-width: 108px 100px 0 0;
    }
}

@media screen and (max-width: 700px) {
    .content-sidebar {
        .content {
            width: 100% !important;
        }
        .sidebar {
            right: 0;
            margin-top: 41px;
            width: 100% !important;
            .magazine .text .download {
                background-size: 30px;
            }
            &.fixed {
                position: relative;
            }
            .post p {
                display: block;
            }
        }
    }
}

@media screen and (max-width: 600px) {
    .content-sidebar .sidebar .post .title {
        margin-bottom: 6px;
        i.mobile {
            display: none;
        }
    }
}

@media screen and (max-width: 500px) {
    footer .blk {
        width: calc(100% - 30px);
    }
}

@media screen and (max-width: 458px) {
    footer .footer-bottom:after {
        border-width: 132px 100px 0 0;
    }
}

@media screen and (max-width: 420px) {
    .slide-menu {
        left: -270px;
        width: 270px;
        &:after {
            left: -270px;
            width: 270px;
        }
    }
}