/* =========================================
   استایل اختصاصی صفحه اصلی
   ========================================= */

.home-hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 1024px) {
  .home-hero-grid {
    grid-template-columns: 1.2fr 0.9fr;
  }
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-showcase-slider {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
  box-shadow: var(--shadow-medium);
}

.home-stats {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 16px 0 18px;
  background: transparent;
}

.home-stats__grid {
  display: grid !important;
  width: 100%;
  max-width: 1120px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 0;
  overflow: visible;
}

.home-stat {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #111827;
  text-align: center;
}

.home-stat > i { color: #111827; stroke-width: 1.45; }
.home-stat strong { display: flex; flex-direction: row; align-items: center; gap: 2px; color: #b50909; font-size: 23px; font-weight: 600; line-height: 1.15; }
.home-stat strong > span { display: inline-block; min-width: 1ch; }
.home-stat strong > bdi { font-weight: 700; }
.home-stat > span { font-size: 15px; font-weight: 600; }
.home-stat > i { opacity: 0; transform: translateY(8px); transition: opacity 450ms ease, transform 450ms ease; }
.home-stats.is-animated .home-stat > i { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .home-stat > i { opacity: 1; transform: none; transition: none; }
}

@media (min-width: 700px) {
  .home-stats { padding: 12px 0 14px; }
  .home-stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 0; }
  .home-stat { min-height: 112px; }
}

.home-showcase-slider__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
}

.home-showcase-slider__image.is-active {
  opacity: 1;
}

.home-showcase-slider__caption {
  position: absolute;
  right: 0;
  bottom: 58px;
  left: 0;
  padding: 38px 22px 16px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.78));
}

.home-showcase-slider__controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-showcase-slider__controls button,
.home-showcase-slider__dot {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
}

.home-showcase-slider__dots {
  display: flex;
  gap: 7px;
}

.home-showcase-slider__dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  padding: 0;
  border: 0;
}

.home-showcase-slider__dot.is-active {
  width: 24px;
  border-radius: 99px;
  background: #fff;
}

.home-board-gallery,
.home-partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}

.home-board-gallery img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  background: #f1f5f9;
}

.home-partner-logos {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center;
}

.home-partner-logos img {
  width: 100%;
  height: 90px;
  padding: 10px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .home-showcase-slider {
    min-height: 250px;
  }
  .home-board-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-modules-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .home-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-modules-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-dual-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .home-dual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
