/* ==== FONTS ==== */
@font-face {
  font-family: Sahel;
  src: url(/static/Font/Sahel.ttf);
}

@font-face {
  font-family: Koodak;
  src: url(/static/Font/B_Koodak.ttf);
}

/* ==== Products Sub-Header Section (Full-width background) ==== */
.products-sub-header {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-color: #06111f;
  color: #ffffff;
  direction: rtl;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* تصویر تمام‌عرض پس‌زمینه */
.products-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  z-index: 0;
  animation: productsHeroZoom 18s ease-out forwards;
}

@keyframes productsHeroZoom {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1);
  }
}

/* لایه تیره: سمت چپ (محل متن) تیره‌تر، سمت راست تصویر واضح */
.products-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(6, 17, 31, 0.05) 0%,
      rgba(6, 17, 31, 0.35) 40%,
      rgba(6, 17, 31, 0.85) 65%,
      rgba(6, 17, 31, 0.96) 100%),
    linear-gradient(180deg, rgba(6, 17, 31, 0) 70%, rgba(6, 17, 31, 0.6) 100%);
  pointer-events: none;
}

.products-sub-header-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 72px 32px;
  display: flex;
  justify-content: flex-start;
  height: 700px;
}

/* ستون متن (سمت چپ) */
.products-sub-header-text-col {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  animation: productsHeroFadeIn 0.8s ease-out both;
  justify-content: center;
}

@keyframes productsHeroFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.products-hero-tag {
  color: #f5b800;
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  display: inline-block;
}

.products-hero-title {
  color: #ffffff;
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 18px 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.products-hero-description {
  color: #cbd5e1;
  font-family: 'Sahel', 'Vazirmatn', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 32px 0;
}

/* دکمه‌ها */
.products-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-product-primary {
  background-color: #f5b800;
  color: #06111f;
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(245, 184, 0, 0.28);
}

.btn-product-primary:hover {
  background-color: #ffc21a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 184, 0, 0.42);
  color: #000000;
}

.btn-arrow-left {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.btn-product-primary:hover .btn-arrow-left,
.btn-product-secondary:hover .btn-arrow-left {
  transform: translateX(-3px);
}

.btn-product-secondary {
  color: #ffffff;
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
  padding: 8px 4px;
}

.btn-product-secondary:hover {
  color: #f5b800;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1024px) {
  .products-sub-header {
    min-height: 460px;
  }

  .products-sub-header-container {
    padding: 56px 24px;
  }

  .products-hero-title {
    font-size: 38px;
  }

  .products-hero-tag {
    font-size: 18px;
  }

  .products-hero-description {
    font-size: 16px;
  }
}

@media (max-width: 860px) {
  .products-hero-overlay {
    background: linear-gradient(180deg,
        rgba(6, 17, 31, 0.55) 0%,
        rgba(6, 17, 31, 0.85) 100%);
  }

  .products-sub-header-container {
    justify-content: center;
  }

  .products-sub-header-text-col {
    align-items: center;
    text-align: center;
  }

  .products-hero-title {
    font-size: 32px;
  }

  .products-hero-actions {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .products-sub-header {
    min-height: 420px;
  }

  .products-sub-header-container {
    padding: 40px 20px;
  }

  .products-hero-title {
    font-size: 28px;
  }

  .products-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 14px;
  }

  .btn-product-primary {
    width: 100%;
    justify-content: center;
  }

  .btn-product-secondary {
    justify-content: center;
  }
}