/* =====================================================
   sopa-utils.css — یوتیلیتی‌های چیدمان (معادل Bootstrap 5)
   فقط برای بخش‌های جاسازی‌شده در قالب‌های Elementor
   ===================================================== */

/* ---------- Grid: container / row / col ---------- */
.sopa-grid, .sopa-site .container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 15px;
}
.sopa-site .row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-.5 * var(--bs-gutter-x));
  margin-left: calc(-.5 * var(--bs-gutter-x));
}
.sopa-site .row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
  margin-top: var(--bs-gutter-y);
}
.sopa-site .g-3 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
.sopa-site .g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
@media (min-width: 992px) {
  .sopa-site .g-lg-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
  .sopa-site .g-lg-5 { --bs-gutter-x: 3rem; --bs-gutter-y: 3rem; }
}

/* ---------- Columns ---------- */
.sopa-site [class*="col-"] { flex: 0 0 auto; }
.sopa-site .col-sm-6 { width: 100%; }
.sopa-site .col-md-6, .sopa-site .col-md-4, .sopa-site .col-lg-6, .sopa-site .col-lg-8 { width: 100%; }
@media (min-width: 576px) { .sopa-site .col-sm-6 { width: 50%; } }
@media (min-width: 768px) {
  .sopa-site .col-md-6 { width: 50%; }
  .sopa-site .col-md-4 { width: 33.333333%; }
}
@media (min-width: 992px) {
  .sopa-site .col-lg-3 { width: 25%; }
  .sopa-site .col-lg-9 { width: 75%; }
  .sopa-site .col-lg-6 { width: 50%; }
  .sopa-site .col-lg-8 { width: 66.666667%; }
}

/* ---------- Flex utilities ---------- */
.sopa-site .d-flex { display: flex !important; }
.sopa-site .d-none { display: none !important; }
.sopa-site .d-inline-flex { display: inline-flex !important; }
.sopa-site .flex-wrap { flex-wrap: wrap !important; }
.sopa-site .flex-column { flex-direction: column !important; }
.sopa-site .align-items-center { align-items: center !important; }
.sopa-site .align-items-start { align-items: flex-start !important; }
.sopa-site .justify-content-between { justify-content: space-between !important; }
.sopa-site .justify-content-center { justify-content: center !important; }
.sopa-site .justify-content-end { justify-content: flex-end !important; }
.sopa-site .gap-3 { gap: 1rem !important; }
.sopa-site .gap-4 { gap: 1.5rem !important; }
.sopa-site .text-center { text-align: center !important; }
.sopa-site .text-start { text-align: start !important; }
.sopa-site .overflow-hidden { overflow: hidden !important; }
.sopa-site .position-relative { position: relative !important; }
.sopa-site .mx-auto { margin-inline: auto !important; }
.sopa-site .m-0 { margin: 0 !important; }
.sopa-site .p-0 { padding: 0 !important; }
.sopa-site .mt-1 { margin-top: .25rem !important; }
.sopa-site .mt-4 { margin-top: 1.5rem !important; }
.sopa-site .mt-5 { margin-top: 3rem !important; }
.sopa-site .mb-2 { margin-bottom: .5rem !important; }
.sopa-site .mb-4 { margin-bottom: 1.5rem !important; }
.sopa-site .px-5 { padding-inline: 3rem !important; }
.sopa-site .ms-auto { margin-inline-start: auto !important; }
.sopa-site .me-auto { margin-inline-end: auto !important; }
@media (min-width: 992px) {
  .sopa-site .d-lg-block { display: block !important; }
  .sopa-site .d-lg-flex { display: flex !important; }
  .sopa-site .d-lg-none { display: none !important; }
}
@media (min-width: 768px) {
  .sopa-site .d-md-block { display: block !important; }
  .sopa-site .d-md-flex { display: flex !important; }
  .sopa-site .d-md-none { display: none !important; }
  .sopa-site .mb-lg-0 { margin-bottom: 0 !important; }
}

/* ---------- Toast / misc ---------- */
.sopa-site .position-fixed { position: fixed !important; }
.sopa-site .bottom-0 { bottom: 0 !important; }
.sopa-site .start-0 { inset-inline-start: 0 !important; }
.sopa-site .p-3 { padding: 1rem !important; }
.sopa-site .toast-container { width: max-content; max-width: 100%; z-index: 1900; }
.sopa-site .toast { display: none; }
.sopa-site .toast.show { display: flex; }
.sopa-site .fw-bold { font-weight: 700 !important; }
.sopa-site .btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: .25em;
  color: inherit;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: .375rem;
  opacity: .5;
  cursor: pointer;
}
