@media only screen and (min-width: 576px) {
    body {
        max-width: 540px;
    }
}

@media only screen and (min-width: 768px) {
    body {
        max-width: 720px;
    }
}

@media only screen and (min-width: 992px) {
    body {
        max-width: 960px;
    }
}

header ul#header-menu>.menu-item {
    display: flex;
}

@media only screen and (min-width: 1200px) {
    body {
        max-width: 1140px;
    }
}

@media only screen and (min-width: 1400px) {
    body {
        max-width: 1320px;
    }
}


/* max-width */

@media only screen and (max-width: 1400px) {
    /* header */
    nav.header-nav-menu li.megamenu>.sub-menu {
        width: 175px;
    }
    nav.header-nav-menu li.megamenu:hover>.sub-menu>li.menu-item-has-children>.sub-menu {
        width: 720px;
    }
}

@media only screen and (max-width: 1200px) {
    /* lists-post */
    .lists-post-index-item {
        flex-basis: 48%;
    }
    /* header */
    header .social-links {
        display: none;
    }
    header nav ul.menu {
        gap: 4px;
    }
    nav.header-nav-menu li.megamenu:hover>.sub-menu>li.menu-item-has-children>.sub-menu {
        width: 515px;
    }
    nav.header-nav-menu li.megamenu>.sub-menu>li>.sub-menu>li {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    nav.header-nav-menu li.supermenu>.sub-menu:nth-child(2) {
        min-width: 580px;
    }
    /* table-last-posts */
    .table-last-posts td>a {
        border: unset;
        padding: 0;
    }
    .table-last-posts tr:hover a {
        background-color: unset;
        color: unset;
    }
    tr#header-table {
        display: none;
    }
    .table-last-posts td>img {
        display: unset;
        margin: auto;
    }
    .table-last-posts td>h3 {
        text-align: right;
        font-size: 14px;
        text-align: end;
        margin: 0;
        margin-right: 25%;
    }
    .table-last-posts td>p {
        margin: 0;
    }
    .table-last-posts tr {
        display: block;
        margin-bottom: 0.625em;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #ddd;
        border-bottom: 3px solid #ddd;
    }
    .table-last-posts td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: left;
        padding: 10px;
    }
    .table-last-posts td::before {
        content: attr(data-label);
        float: right;
        font-weight: bold;
        text-transform: uppercase;
    }
    .table-last-posts td:first-child::before {
        margin-top: 1.1rem;
    }
    .table-last-posts td:last-child {
        border-bottom: 0;
    }
}

@media only screen and (max-width: 992px) {
    /* header */
    header {
        justify-content: space-between;
    }
    .left-box-header {
        display: block;
        position: fixed;
        left: 0;
        right: -100%;
        top: 0;
        bottom: 0;
        background-color: #f0f8ff;
        width: 70%;
        z-index: 2;
        transition: 1s;
        padding-top: 12px;
        padding-right: 10px;
        height: 100vh;
        overflow: auto;
    }
    header ul.menu {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 10px;
    }
    .open-menu-moble {
        right: 0%;
    }
    header ul.menu li {
        padding: 10px 2px;
    }
    header .menu a {
        font-size: 14px;
        padding-right: 18px;
    }
    header .social-links ul {
        display: flex;
    }
    header ul.menu>li.dropdown:hover ul.sub-menu {
        display: none;
    }
    header ul.menu>li.dropdown ul.sub-menu.sub-menu-open {
        position: unset;
        display: block !important;
        padding: 0;
        background: unset;
        box-shadow: unset;
        line-height: unset;
        transition: 0s;
    }
    header li.menu-item-has-children.dropdown.change:after {
        content: "";
    }
    header ul.sub-menu>li {
        margin-right: 20px;
        font-size: 15px;
    }
    header ul#header-menu>.menu-item {
        padding: 10px 2px;
    }
    header ul#header-menu>.menu-item.change {
        flex-direction: column;
    }
    header ul.sub-menu>li:first-child {
        margin-top: 5px;
    }
    header ul.sub-menu>li::before {
        content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3e%3cpath fill='%23747474' d='M192 448c-8.188 0-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25l160-160c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l137.4 137.4c12.5 12.5 12.5 32.75 0 45.25C208.4 444.9 200.2 448 192 448z'/%3e%3c/svg%3e");
        width: .66em;
        position: absolute;
        margin-top: 2px;
    }
    nav.header-nav-menu li.megamenu>.sub-menu>li>a,
    nav.header-nav-menu li.megamenu .sub-menu>li.menu-item-has-children>.sub-menu>li .sub-menu a {
        padding-right: 17px;
    }
    /* megamenu */
    nav.header-nav-menu li.megamenu>.sub-menu,
    nav.header-nav-menu li.megamenu:hover>.sub-menu>li.menu-item-has-children>.sub-menu {
        position: unset;
        background-color: unset;
        width: unset;
        min-height: unset;
        box-shadow: unset;
        opacity: 1;
        display: block;
        padding: 0;
    }
    nav.header-nav-menu li.megamenu>.sub-menu:nth-child(2) li {
        border: none;
        padding: 10px 2px;
        margin-top: 5px;
        margin-right: 20px;
        font-size: 15px;
        display: none;
    }
    nav.header-nav-menu li.megamenu>.sub-menu:nth-child(2) li.sub-menu-open {
        display: block;
    }
    nav.header-nav-menu li.megamenu>.sub-menu>li:hover {
        background-color: transparent;
    }
    nav.header-nav-menu li.megamenu ul li:nth-child(1) .sub-menu {
        opacity: 1 !important;
        padding: 0;
    }
    nav.header-nav-menu li.megamenu .sub-menu:nth-child(2) {
        display: none !important;
        padding: 0;
    }
    nav.header-nav-menu li.megamenu.change ul.sub-menu {
        display: block !important;
    }
    nav.header-nav-menu li.megamenu>.sub-menu>li>.sub-menu>li {
        max-width: 100%;
        flex: 0 0 100%;
    }
    nav.header-nav-menu li.megamenu>.sub-menu li.menu-item-has-children .sub-menu li {
        padding: unset;
        margin-bottom: unset;
    }
    nav.header-nav-menu li.megamenu>.sub-menu>li>.sub-menu>li>a {
        margin-top: 20px;
    }
    header li.menu-item-has-children.megamenu.change:after {
        content: "";
    }
    /* super menu */
    nav.header-nav-menu li.supermenu>.sub-menu:nth-child(2) {
        position: unset;
        min-width: unset;
        display: none;
        border-radius: unset;
        background: unset;
        box-shadow: unset;
        line-height: unset;
        overflow: unset;
    }
    li.supermenu.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-has-children:hover>.sub-menu:nth-child(2) {
        display: none;
    }
    li.supermenu ul.sub-menu.sub-menu-open {
        display: block !important;
    }
    nav.header-nav-menu li.supermenu>.sub-menu>li.menu-item-has-children {
        background-color: unset;
        display: block;
        max-width: unset;
        padding: 10px 2px;
        text-align: right;
    }
    nav.header-nav-menu li.supermenu>.sub-menu li.menu-item-has-children a {
        color: #212529;
    }
    nav.header-nav-menu li.supermenu>.sub-menu li.menu-item-has-children>a {
        font-weight: 900;
    }
    nav.header-nav-menu li.supermenu>.sub-menu li.menu-item-has-children .sub-menu {
        display: block;
        padding: 0;
    }
    nav.header-nav-menu li.supermenu>.sub-menu li.active-item-menu .sub-menu {
        position: unset;
        right: unset;
        top: unset;
        display: block;
        background-color: unset;
        padding: 0;
    }
    nav.header-nav-menu li.supermenu>.sub-menu li.active-item-menu .sub-menu li {
        position: unset;
        right: unset;
        top: unset;
        display: block;
        background-color: unset;
        padding: 10px 2px;
    }
    nav.header-nav-menu li.supermenu>.sub-menu li.active-item-menu .sub-menu li.menu-item-has-children ul {
        position: unset;
        right: unset;
        top: unset;
        min-width: unset;
        background-color: unset;
        display: unset;
    }
    nav.header-nav-menu li.supermenu>.sub-menu li.active-item-menu .sub-menu li.menu-item-has-children ul>li {
        background-color: unset;
    }
    header li.menu-item-has-children.supermenu.change:after {
        content: "";
    }
    .social-links {
        position: absolute;
        bottom: 25px;
        left: 50%;
        transform: translatex(-50%);
    }
    .mobile-menu-overlay {
        background-color: rgba(103, 103, 103, 0.5);
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 1;
        left: 0;
        right: 0;
        width: 100%;
        backdrop-filter: blur(3px);
        display: none;
    }
    .mobile-menu-overlay-open {
        display: block;
    }
    button.icon-menu-moblie {
        display: flex;
        padding: 0;
        margin: 0;
        border: transparent;
        background-color: transparent;
        cursor: pointer;
    }
    button.icon-menu-moblie svg {
        width: 23px;
        height: 23px;
    }
    button.close-menu-moblie {
        display: block;
        padding: 0;
        margin: 0;
        border: transparent;
        background-color: transparent;
        cursor: pointer;
        position: absolute;
        left: 15px;
        top: 15px;
        z-index: 2;
    }
    button.close-menu-moblie svg {
        fill: #fe4f70;
        width: 23px;
        height: 23px;
    }
    /* category-banner */
    section.category-banner-homepage {
        flex-wrap: wrap;
    }
    .item-category-banner {
        flex-basis: 31%;
    }
    .item-category-banner:last-child {
        display: none;
    }
    /* video */
    a.text-over-video i {
        font-size: 45px;
    }
    /* footer */
    .latest-videos-item>.text-over-video {
        font-size: 13px;
    }
    footer .widget:nth-child(1) {
        flex: 1;
    }
    /* single-page */
    main.single-container {
        flex-direction: column;
    }
}

@media only screen and (max-width: 768px) {
    /* footer */
    footer {
        flex-direction: column;
    }
    /* category-banner */
    .item-category-banner {
        flex-basis: 30%;
    }
    .lists-post-index-item {
        flex-basis: 100%;
    }
    /* video */
    .latest-videos-container-items {
        gap: 7.5px;
        flex-direction: column;
    }
    .latest-videos-item {
        border-radius: 0;
    }
    .latest-videos-item a:first-child:after,
    .latest-videos-container-items img {
        border-radius: 16px;
        overflow: hidden;
    }
    .latest-videos-item a:first-child:after {
        bottom: 7px;
    }
    /* single-page */
    .navigation-post {
        flex-direction: column;
        align-items: stretch;
    }
    .navigation-post-prev,
    .navigation-post-next {
        flex: 100%
    }
}

@media only screen and (max-width: 576px) {
    body {
        max-width: 100%;
        padding: 0 10px;
    }
    .item-category-banner {
        flex-basis: 47%;
    }
    /* single comment */
    .comment-meta.commentmetadata {
        display: none;
    }
    section.single-comments ul.children {
        margin-right: 30px;
    }
}