/* ==========================================================================
   responsive.css — تنظیمات موبایل‌اول تا دسکتاپ بزرگ
   ========================================================================== */

/* ----- موبایل کوچک ----- */
@media (max-width: 380px) {
  :root {
    --bottomnav-h: 62px;
  }

  .bn-item {
    font-size: .56rem;
  }

  .bn-item i {
    font-size: 1.15rem;
  }

  .btn {
    padding: .58rem .9rem;
  }

  .card-x-body {
    padding: .85rem;
  }
}

/* ----- موبایل ----- */
@media (max-width: 575.98px) {
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: .75rem;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
  }

  .hero-slider {
    min-height: 0;
  }

  .hero-slide {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    min-height: 0;
    padding-block: 1rem;
  }

  .hero-slide--image-left .hero-slide-media,
  .hero-slide--image-right .hero-slide-media {
    order: 0;
    transform: rotate(0);
  }

  .hero-slide--image-left .hero-slide-copy,
  .hero-slide--image-right .hero-slide-copy {
    order: 1;
  }

  .hero-slide-description h1,
  .hero-slide-description h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-slider-controls {
    position: relative;
    inset: auto;
    min-height: 3.25rem;
    padding-inline: 0;
  }

  .hero-slider-controls .hero-slider-dots {
    inset-block-end: auto;
  }

  .hero-slider-arrow {
    inset-block-start: auto;
    inset-block-end: .2rem;
    transform: none;
  }

  .hero-slider-arrow--previous {
    inset-inline-start: 0;
  }

  .hero-slider-arrow--next {
    inset-inline-end: 0;
  }

  .hero-slider-arrow:hover {
    transform: translateY(-2px);
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .swiper {
    padding-bottom: 2.5rem !important;
  }

  .toc {
    position: static;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .panel {
    padding: var(--sp-4);
  }

  .table-x {
    font-size: var(--fs-sm);
  }
}

/* ----- تبلت ----- */
@media (min-width: 576px) and (max-width: 991.98px) {
  .container-x {
    padding-inline: var(--sp-5);
  }
}

/* ----- دسکتاپ ----- */
@media (min-width: 992px) {
  .container-x {
    padding-inline: var(--sp-5);
  }

  .hero {
    padding-block: 5rem 4.5rem;
  }

  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .desktop-only {
    display: none !important;
  }

  .dash-sidebar {
    position: static;
  }

  .drawer {
    display: block;
  }
}

/* ----- دسکتاپ بزرگ ----- */
@media (min-width: 1400px) {
  :root {
    --container-max: 1320px;
  }

  body {
    font-size: .97rem;
  }
}

/* ----- چاپ ----- */
@media print {

  .site-header,
  .bottom-nav,
  .site-footer,
  .to-top,
  .share-row,
  .toc {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
    color: #000;
  }
}