/*
 * =========================================================
 * FILE: mod-theme/assets/css/responsive.css
 * =========================================================
 */

@media screen and (max-width: 1240px) {
  .sidebar-left {
    width: 220px;
  }
  .sidebar-right {
    width: 260px;
  }
  .mod-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-navigation .nav-menu {
    gap: 14px;
  }
  .main-navigation .nav-menu a {
    font-size: 13.5px;
  }
  .header-search-input {
    width: 170px;
  }
  .header-search-input:focus {
    width: 210px;
  }
}

@media screen and (max-width: 1024px) {
  .main-layout {
    flex-direction: column;
    gap: 24px;
  }
  .content-area {
    order: 1;
    width: 100%;
  }
  .sidebar-left {
    order: 2;
    width: 100%;
  }
  .sidebar-right {
    order: 3;
    width: 100%;
  }
  .site-sidebar {
    order: 2;
    width: 100%;
  }
  .single-mod-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .site-header .main-navigation {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-search-input {
    width: 150px;
  }

  .header-search-input:focus {
    width: 180px;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .submit-form-wrapper {
    padding: 24px 16px;
    margin: 20px auto 40px;
    border-radius: 12px;
  }

  .download-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .download-cta-action {
    width: 100%;
  }

  .btn-download-huge {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .single-mod-article {
    padding: 20px;
  }

  .single-mod-title {
    font-size: 22px;
  }

  .mod-feed-header {
    padding: 18px 18px 10px 18px;
  }

  .mod-feed-title {
    font-size: 19px;
  }

  .mod-feed-body {
    padding: 14px 18px 18px 18px;
  }
}

@media screen and (max-width: 580px) {
  .mod-grid,
  .mod-grid-sidebar {
    grid-template-columns: 1fr !important;
  }

  .mod-feed-header {
    padding: 14px 14px 8px 14px;
  }

  .mod-feed-title {
    font-size: 17px;
  }

  .mod-feed-body {
    padding: 12px 14px 16px 14px;
  }

  .mod-feed-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-feed-comments,
  .btn-feed-download {
    width: 100%;
    justify-content: center;
  }

  .single-mod-meta-grid {
    grid-template-columns: 1fr;
  }

  .catalog-title {
    font-size: 24px;
  }

  .category-cards-grid {
    grid-template-columns: 1fr;
  }

  .mod-share-section {
    flex-direction: column;
    align-items: flex-start;
  }
}
