@media (max-width: 1400px) {
  .container,
  .primary-header {
    padding: 0 20px;
  }
}

@media (max-width: 1300px) {
  .top-menu ul li a {
    font-size: 22px;
    padding: 0 5px;
  }
}

@media (max-width: 1200px) {
  .container,
  .primary-header {
    padding: 0 20px;
  }

  .content-wrapper {
    padding: 20px 0 30px;
  }

  .primary-header > .middlebar {
    display: none !important;
  }

  .primary-header > .leftbar {
    flex: 1;
  }

  .site-logo {
    margin: 0 auto;
    position: relative;
    left: -15px;
  }

  .theme-mode-wrapper label {
    width: 60px;
    height: 30px;
  }

  .theme-mode-wrapper label span {
    width: 22px;
    height: 22px;
    top: 1px;
    left: 2px;
  }

  .theme-mode-wrapper input:checked ~ label span {
    left: 30px;
  }

  .theme-mode-wrapper label::before {
    width: 4px;
    height: 4px;
    top: 11px;
  }

  .theme-mode-wrapper label::after {
    top: 3px;
    right: 4px;
  }

  .home-block-wrapper {
    padding: 15px 0 0;
  }

  .home-block-wrapper > .container {
    display: flex;
    flex-direction: column;
  }

  .home-block-wrapper .leftbar {
    width: 100%;
    order: 2;
  }

  .home-block-wrapper .rightbar {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    gap: 30px;
  }

  .col-wrapper {
    flex-direction: column;
    gap: 5px;
  }

  .col-wrapper > .col-right {
    width: 100% !important;
    position: static;
    order: 2;
  }

  .col-wrapper > .col-left {
    width: 100%;
    order: 1;
    padding: 0 !important;
  }

  .custom-listing.latest-widget,
  .custom-listing.video-widget {
    margin: 0;
  }

  .custom-listing.latest-widget ul,
  .custom-listing.video-widget ul {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .custom-listing.latest-widget ul::-webkit-scrollbar,
  .custom-listing.video-widget ul::-webkit-scrollbar {
    display: none;
  }
  .custom-listing.latest-widget ul::-moz-scrollbar,
  .custom-listing.video-widget ul::-moz-scrollbar {
    display: none;
  }

  .custom-listing.latest-widget ul li,
  .custom-listing.video-widget ul li {
    width: 300px;
    display: inline-block;
    width: min-content;
    min-width: 200px;
  }

  .custom-listing.video-widget ul li {
    min-width: 280px;
  }

  .custom-listing.latest-widget ul li:not(:last-child),
  .custom-listing.video-widget ul li:not(:last-child) {
    margin: 0 20px 0 0;
  }

  .custom-listing.latest-widget ul li .custom-listing-item,
  .custom-listing.video-widget ul li .custom-listing-item {
    flex-direction: column;
    gap: 10px 0;
    margin: 0 0 30px;
  }

  .custom-listing.latest-widget ul li:not(.first) .custom-listing-item img {
    width: auto;
    max-height: 200px;
    max-height: 170px;
    max-height: unset;
    border-radius: 6px;
  }

  .custom-listing.latest-widget ul li .custom-listing-item .custom-item-title,
  .custom-listing.video-widget ul li .custom-listing-item .custom-item-title {
    white-space: normal;
  }

  .post-image img {
    max-width: 100%;
  }

  .more-news-wrap,
  .more-news-wrap h4 {
    width: 100%;
  }

  .custom-tabs .tabs-wrap {
    width: calc(100% + 40px);
    margin: -20px -20px 0;
    padding: 0 15px 0 0;
  }
  .custom-tabs .nav-tabs {
    width: 100%;
    white-space: nowrap;
    display: inline-block;
    overflow: hidden;
    overflow-x: auto;
  }
  .custom-tabs .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .custom-tabs .nav-tabs::-moz-scrollbar {
    display: none;
  }
  .custom-tabs .nav-tabs .nav-link {
    margin: 0 10px;
  }
}

@media (max-width: 1024px) {
}

@media (max-width: 800px) {
  .container,
  .primary-header {
    padding: 0 15px;
  }
  .post-title {
    font-size: 24px;
    line-height: 30px;
  }
  .post-image img {
    height: 100%;
  }
  .inner-content p,
  .inner-content ul li {
    font-size: 16px;
    line-height: 26px;
  }
  .inner-content.video-inner-content iframe {
    height: 300px;
  }
  .related-posts.cat-listing ul li img {
    height: 170px;
  }
  .custom-listing.latest-widget ul li .custom-listing-item img {
    border-radius: 10px;
  }

  .cat-listing ul li .cat-title {
    font-size: 15px;
    line-height: 20px;
  }
}

@media (max-width: 767px) {
  .home-video-listing ul::-webkit-scrollbar {
    display: none;
  }
  .home-video-listing ul::-moz-scrollbar {
    display: none;
  }
  .offcanvas-end {
    width: 340px;
  }
  .custom-listing {
    margin: 0 0 25px;
  }
  .home-block-wrapper .custom-listing {
    margin: 0;
  }
  .home-block-wrapper .special-news {
    margin: 0 0 30px;
  }
  .home-block-wrapper .rightbar {
    flex-direction: column-reverse;
  }
  .home-block-wrapper .rightbar .left-col,
  .home-block-wrapper .rightbar .right-col {
    width: 100%;
  }
  .home-video-section {
    padding: 30px 0 5px;
    margin: 0 0 30px;
  }
  .next-prev-post {
    flex-direction: column-reverse;
    gap: 15px 0;
  }
  .more-news-wrap {
    flex-direction: column;
    gap: 5px;
  }
  .more-news-wrap img {
    max-width: 100%;
    border-radius: 4px;
  }
  .more-news-wrap span {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0;
    margin: 0 0 3px;
  }
  .more-news-wrap h4 {
    font-size: 20px;
    line-height: 30px;
  }
}

@media (max-width: 360px) {
  .post-title {
    font-size: 26px;
    line-height: 36px;
  }
}
