/* =========================================================
   Alkafaa Telecom - PROMOTIONS SLIDER (Final - Image + Text)
   - Works with your HTML (.promo-slide, .promo-text, .dot)
   - Works with your JS (.active)
========================================================= */

/* ------------------------------
   SECTION WRAPPER
------------------------------ */
.promotions{
  background: #121212;
  padding: 70px 0;
  text-align: center;
  position: relative;
}

/* ------------------------------
   SLIDER CONTAINER
------------------------------ */
.promo-slider{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #050505;
  box-shadow: 0 20px 55px rgba(0,0,0,0.95);
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.05);
}

/* ------------------------------
   INDIVIDUAL SLIDE (2-COLUMN)
------------------------------ */
.promo-slide{
  display: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.promo-slide.active{
  display: grid;                       /* key change */
  grid-template-columns: 1.1fr 0.9fr;  /* image bigger */
  align-items: stretch;
  opacity: 1;
}

/* RTL: flip visually */
body.rtl .promo-slide.active{
  grid-template-columns: 0.9fr 1.1fr;
}

/* ------------------------------
   IMAGE SIDE
------------------------------ */
.promo-img{
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;     /* fills nicely on desktop */
  background: #000;
}

/* ------------------------------
   TEXT SIDE
------------------------------ */
.promo-text{
  padding: 34px 34px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;

  /* premium subtle panel */
  background:
    radial-gradient(800px 300px at 20% 20%, rgba(247,150,51,0.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.18));
}

body.rtl .promo-text{
  text-align: right;
}

/* small accent line */
.promo-text::before{
  content: "";
  width: 70px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-bottom: 18px;
}

body.rtl .promo-text::before{
  margin-left: auto;
}

/* typography */
.promo-text h3{
  color: var(--primary-light);
  font-size: 1.8rem;
  margin-bottom: 10px;
  line-height: 1.25;
}

.promo-text p{
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 520px;
}

/* ------------------------------
   DOT NAVIGATION
------------------------------ */
.promo-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 22px;
}

.dot{
  width: 11px;
  height: 11px;
  background: #4b4b4b;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active{
  background: var(--primary);
  transform: scale(1.2);
}

/* ------------------------------
   RESPONSIVE (STACKED)
------------------------------ */
@media (max-width: 992px){

  /* Stack image then text */
  .promo-slide.active{
    grid-template-columns: 1fr !important;
  }

  /* Make the image area BIG and clean */
  .promo-img{
    width: 100%;
    height: 340px;
    min-height: 260px;
    max-height: 340px;
    object-fit: cover;     /* full image, no crop */
    background: none;
    padding: 0;           /* smaller padding so image looks bigger */
  }

  /* Text becomes a clean caption panel */
  .promo-text{
    padding: 18px 16px 22px;
    text-align: center;
  }

  body.rtl .promo-text{
    text-align: center;
  }

  .promo-text::before{
    margin: 0 auto 12px;
  }

  .promo-text h3{
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  body.rtl .promo-text h3{
    font-size: 1.45rem;
  }

  .promo-text p{
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0 auto;
    max-width: 520px;
  }

  /* Give dots a bit more breathing room */
  .promo-dots{
    margin: 12px 0 18px;
  }
}
@media (max-width: 600px){
  .promotions{
    padding: 55px 0;
  }
}



/* ===== Polish pass ===== */

/* Make the slide container feel like one component */
.promo-slide.active{
  border-radius: 18px;
  overflow: hidden;
}

/* Subtle separator between text and image */
.promo-text{
  position: relative;
}

.promo-text::after{
  content:"";
  position:absolute;
  top: 10%;
  bottom: 10%;
  right: 0;
  width: 1px;
  background: rgba(255,255,255,0.08);
}

body.rtl .promo-text::after{
  right: auto;
  left: 0;
}


/* ===== Desktop polish ===== */

/* Slightly wider slider on desktop */
@media (min-width: 993px){
  .promo-slider{
    max-width: 980px;
  }

  .promo-slide.active{
    grid-template-columns: 1.2fr 0.8fr; /* give image more weight */
  }

  /* Image: keep it clean and "ad-like" */
  .promo-img{
    object-fit: cover;      /* fills image side */
    min-height: 420px;      /* stronger visual impact */
  }

  /* Text: less empty, more structured */
  .promo-text{
    padding: 42px 38px;
  }

  .promo-text h3{
    font-size: 2.05rem;
    margin-bottom: 14px;
  }

  body.rtl .promo-text h3{
    font-size: 2.15rem;
  }

  .promo-text p{
    font-size: 1.08rem;
    line-height: 1.8;
  }
}