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

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

/* ==== Refinery Banner Section ==== */
.products-refinery-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 4724 / 1442;
  min-height: 360px;
  max-height: 440px;
  direction: rtl;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #06111f;
  /* بدون انیمیشن */
  animation: none !important;
}

/* تصویر پس‌زمینه با خط آبی دقیقاً در مختصات اصلی */
.refinery-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* کانتینر اصلی محتوا */
.refinery-banner-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* نیمه بالایی: دقیقاً بالای خط آبی وسط (y=687 از 1442 مساوی 47.64%) */
.refinery-banner-half--top {
  height: 47.64%;
  width: 100%;
  display: flex;
  align-items: center;
}

/* نیمه پایینی: دقیقاً پایین خط آبی وسط (y=755 از 1442 مساوی 52.36%) */
.refinery-banner-half--bottom {
  height: 52.36%;
  width: 100%;
  display: flex;
  align-items: center;
}

/* کانتینر افقی با تراز راست و چپ */
.refinery-banner-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  direction: ltr;
}

/* بلوک متنی سمت راست */
.refinery-banner-text {
  display: flex;
  flex-direction: column;
  text-align: right;
  direction: rtl;
}

.refinery-banner-title {
  margin: 0 0 8px 0;
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: 27px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.refinery-banner-desc {
  margin: 0;
  font-family: 'Sahel', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* دکمه‌های سمت چپ (کاملاً بدون هاور و ترنزیشن طبق درخواست کاربر) */
.refinery-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 28px;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  /* بدون ترنزیشن و بدون انیمیشن */
  transition: none !important;
  animation: none !important;
}

/* جلوگیری کامل از هرگونه افکت هاور و فوکوس */
.refinery-banner-btn:hover,
.refinery-banner-btn:focus,
.refinery-banner-btn:active {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* دکمه تیره با کادر نازک روشن (ردیف بالا) */
.refinery-banner-btn--outline {
  background-color: #0b1726;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

.refinery-banner-btn--outline:hover {
  background-color: #0b1726 !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  color: #ffffff !important;
}

/* دکمه زرد رنگ (ردیف پایین) */
.refinery-banner-btn--yellow {
  background-color: #ffb703;
  border: 1px solid #d49b00;
  color: #000000;
}

.refinery-banner-btn--yellow:hover {
  background-color: #ffb703 !important;
  border-color: #d49b00 !important;
  color: #000000 !important;
}

.refinery-btn-text {
  display: inline-block;
  line-height: 1;
}

.refinery-btn-arrow {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1024px) {
  .refinery-banner-container {
    padding: 0 32px;
  }

  .refinery-banner-title {
    font-size: 22px;
  }

  .refinery-banner-desc {
    font-size: 14px;
  }

  .refinery-banner-btn {
    padding: 10px 22px;
    font-size: 16px;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .products-refinery-banner {
    aspect-ratio: auto;
    min-height: auto;
    height: auto;
  }

  .refinery-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .refinery-banner-content {
    position: relative;
    height: auto;
  }

  .refinery-banner-half--top,
  .refinery-banner-half--bottom {
    height: auto;
    padding: 32px 0;
  }

  .refinery-banner-half--top {
    border-bottom: 2px solid #00b0f0;
  }

  .refinery-banner-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 24px;
  }

  .refinery-banner-btn {
    align-self: flex-start;
  }
}