/* ============================================================
   ebhro8 — Hero Section with Paragraph Slider
   Namespace  : ebhro8
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;500;600;700&display=swap');

/* ============================================================
   1. Variables & Colors
============================================================ */
.ebhro8 {

  /* خلفية السكشن */
  --ebhro8-bg:              #ffffff;

  /* العنوان */
  --ebhro8-title-color:     #1a2a7c;
  --ebhro8-title-size:      clamp(1.6rem, 5.5vw, 3rem);
  --ebhro8-title-weight:    700;
  --ebhro8-title-line-h:    1.45;

  /* الخط الأحمر تحت العنوان */
  --ebhro8-line-color:      #d01f2e;
  --ebhro8-line-w:          4rem;
  --ebhro8-line-h:          0.22rem;

  /* نص البراجراف */
  --ebhro8-para-color:      #2c2c2c;
  --ebhro8-para-size:       clamp(0.95rem, 3vw, 1.2rem);
  --ebhro8-para-weight:     400;
  --ebhro8-para-line-h:     1.9;

  /* منطقة السلايدر — الارتفاع ثابت */
  --ebhro8-slider-h:        7rem;
  --ebhro8-slider-bg:       transparent;

  /* الدوتس */
  --ebhro8-dot-color:       #cccccc;
  --ebhro8-dot-active:      #d01f2e;
  --ebhro8-dot-size:        0.5rem;
  --ebhro8-dot-active-w:    1.6rem;

  /* تلميح السحب */
  --ebhro8-hint-color:      #aaaaaa;
  --ebhro8-hint-size:       clamp(0.7rem, 2.2vw, 0.82rem);

  /* Padding السكشن */
  --ebhro8-padding-top:     2rem;
  --ebhro8-padding-bottom:  2rem;

  /* الخط العام */
  font-family: "El Messiri", sans-serif;
}

/* ============================================================
   2. Reset داخل الـ namespace
============================================================ */
*,
.ebhro8 *,
.ebhro8 *::before,
.ebhro8 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   3. Base Styles — Mobile
============================================================ */
.ebhro8 {
  background: var(--ebhro8-bg);
  padding-top:    var(--ebhro8-padding-top);
  padding-bottom: var(--ebhro8-padding-bottom);
  width: 100%;
  direction: rtl;
  overflow: hidden;
}

.ebhro8__container {
  width: 90%;
  max-width: 50rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

}


.ebhro8__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.ebhro8__title {
  color:       var(--ebhro8-title-color);
  font-size:   var(--ebhro8-title-size);
  font-weight: var(--ebhro8-title-weight);
  line-height: var(--ebhro8-title-line-h);
  font-family: "El Messiri", sans-serif;
}

.ebhro8__title-line {
  display: block;
  width:  var(--ebhro8-line-w);
  height: var(--ebhro8-line-h);
  background: var(--ebhro8-line-color);
  border-radius: 0.2rem;
}

.ebhro8__slider-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.ebhro8__track {
  width: 100%;
  height: var(--ebhro8-slider-h);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.ebhro8__slide {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  will-change: transform, opacity;
}

.ebhro8__slide.ebhro8--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.ebhro8__slide.ebhro8--prev {
  opacity: 0;
  transform: translateX(100%);
}

.ebhro8__para {
  color:       var(--ebhro8-para-color);
  font-size:   var(--ebhro8-para-size);
  font-weight: var(--ebhro8-para-weight);
  line-height: var(--ebhro8-para-line-h);
  font-family: "El Messiri", sans-serif;
  overflow: visible;
}


.ebhro8__indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.ebhro8__dot {
  width:  var(--ebhro8-dot-size);
  height: var(--ebhro8-dot-size);
  border-radius: 99rem;
  border: none;
  cursor: pointer;
  padding: 0;
  background: var(--ebhro8-dot-color);
  transition: width 0.3s ease, background 0.3s ease;
  outline: none;
}

.ebhro8__dot.ebhro8--active {
  width:      var(--ebhro8-dot-active-w);
  background: var(--ebhro8-dot-active);
}

.ebhro8__dot:focus-visible {
  box-shadow: 0 0 0 0.15rem var(--ebhro8-dot-active);
}


.ebhro8__swipe-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ebhro8-hint-color);
  font-size: var(--ebhro8-hint-size);
  font-family: "El Messiri", sans-serif;
  user-select: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.ebhro8__swipe-icon {
  font-size: calc(var(--ebhro8-hint-size) * 1.2);
  animation: ebhro8-pulse 1.6s ease-in-out infinite alternate;
}

.ebhro8__swipe-icon:first-child {
  animation-direction: alternate-reverse;
}

@keyframes ebhro8-pulse {
  from { opacity: 0.3; transform: translateX(0); }
  to   { opacity: 1;   transform: translateX(0.25rem); }
}

/* ============================================================
   4. Breakpoints
============================================================ */
@media (min-width: 481px) {
  .ebhro8 {
    --ebhro8-slider-h: 8rem;
  }
}

@media (min-width: 601px) {
  .ebhro8 {
    --ebhro8-slider-h:    9rem;

  }
}

@media (min-width: 769px) {
  .ebhro8 {
    --ebhro8-slider-h:    8.5rem;

  }
}

@media (min-width: 1025px) {
  .ebhro8 {
    --ebhro8-slider-h:    8rem;

  }
}

@media (min-width: 1281px) {
  .ebhro8 {
    --ebhro8-slider-h: 8rem;
  }
}

@media (min-width: 1441px) {
  .ebhro8 {
    --ebhro8-slider-h:    10rem;

  }
}

@media (min-width: 1921px) {
  .ebhro8 {
    --ebhro8-padding-top: 2rem;
    --ebhro8-padding-bottom: 1rem;
  }
}