/* === Base Slider Wrapper === */
.ai-slider {
  position: relative;
  width: 100%;
  min-height: 45vw;
  overflow: hidden;
  z-index: 1;
}

/* === Each Slide === */
.ai-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 45vw;
	opacity: 0;
	transform: scale(1.03);
	transition: opacity 1.2s ease-in-out, transform 1.8s ease;
	z-index: 1;
	overflow:hidden;
}

.ai-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
  animation: aiSlideIn 1.8s ease;
}

@keyframes aiSlideIn {
  from { opacity: 0; transform: scale(1.05) translateX(30px); }
  to { opacity: 1; transform: scale(1) translateX(0); }
}

/* === Background Image === */
.ai-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
  filter: brightness(0.95);
  pointer-events: none;
}

/* === Content Area === */
.ai-slide-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 5%;
  max-width: 50vw;
  color: #fff;
  z-index: 5;
  pointer-events: auto;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Top Indicator Line (NEW) === */
.ai-top-indicator {
  display: block;
  height: 2px;
  width: 0;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #46C2EE, #2A0070);
  box-shadow: 0 0 6px #46C2EE;
  border-radius: 4px;
  transition: width 3s linear;
}

/* === Headline === */
.ai-slide-content h1 {
    margin-bottom: 1rem;
    font-size: var(--font-size-120);
    font-family: var(--font-ExtraBold);
    line-height: 1.2;
}

.ai-slide-content h1 span {
  color: #00ffff;
  font-weight: 700;
}

/* === Paragraph === */
.ai-slide-content p {
  font-size: var(--font-size-48);
    font-family: var(--font-Medium);
    margin-bottom: 2vw;
}

/* === Button === */
.ai-btn {
    padding: 0.8vw 1.2vw;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    overflow: visible;
    z-index: 6;
    font-size: var(--font-size-22);
    font-family: var(--font-Medium);
}


.ai-btn::before {
    content: "";
    position: absolute;
    inset: -2px;                 /* controls glow spread */
    border-radius: 300px;
    padding: 2px;               /* border thickness */
    background: linear-gradient(
        15deg,
        rgba(255,255,255,0.9),
        rgba(255,255,255,0.3),
        rgba(255,255,255,0.9)
    );

    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    pointer-events: none;
    z-index: -1;
}

.ai-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
}

.ai-slide-content .ai-btn img {
    width: 0.88vw;
    height: auto;
    opacity: 0;
    transform: translateX(-2vw);
    transition: all 0.4s 
ease;
    position: relative;
    z-index: 2;
    margin-left: -1.5vw;
}
.ai-slide-content .ai-btn:hover img {
    opacity: 1;
    transform: translateX(0);
}

.ai-slide-content .ai-btn:hover img {
    margin-left: 0;
}
/* === Right-side Image === */
.ai-slide-right {
  position: absolute;
  top: 50%;
  right: 4vw;
  transform: translateY(-50%);
  width: 20vw;
  z-index: 10;
  pointer-events: none;
  animation: fadeRight 1.5s ease both;
}

.ai-slide-right img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
}

@keyframes fadeRight {
  from { opacity: 0; transform: translate(50px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}

.ai-rightimg  img {
    border-radius: 0.72vw;
    max-width: 100%;
}
.ai-rightimg {
    background: rgb(54 49 134 / 25%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), inset 0 0 10px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.45vw;
    backdrop-filter: blur(34px);
    -webkit-backdrop-filter: blur(34px);
    padding: 1vw;
}
/* === Dots Navigation === */
.ai-dots {
  position: absolute;
  left: -250%;
  transform: translateX(-250%);
  z-index: 20;
  display: flex;
  gap: 5px;
}

.ai-dot {
  transition: all 0.3s ease;
  width: 0.3vw;
  height: 0.82vw;
  border-radius: 1vw;
  background: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.ai-dot.is-active {
  background: #00ffff;
  box-shadow: 0 0 12px #00ffff;
  background: #46C2EE;
}

/* === Editor Styles === */
.ai-slider-editor .ai-slide-item {
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
}
.ai-slider-editor .ai-slide-actions { margin-top: 8px; }
/* === H1 TOP INDICATOR LINE === */
.ai-slide-content {
  position: relative;
}

.ai-top-indicator {
  width: 60px;
  height: 2px;
  margin-bottom: 1.2vw;
  background: linear-gradient(90deg, #46C2EE, #2A0070);
  box-shadow: 0 0 10px #00ffff;
  border-radius: 2px;
  animation: aiGlow 2s ease-in-out infinite alternate;
}
.ai-tab-item {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 6px;
  background: #fff;
}

.ai-tab-header {
  padding: 10px 12px;
  font-weight: 600;
  background: #f7f7f7;
  cursor: pointer;
  border-radius: 6px;
}

.ai-tab-body {
  padding: 12px;
  background: #fff;
}

/* subtle pulsing glow */
@keyframes aiGlow {
  from {
    opacity: 0.6;
    transform: scaleX(0.8);
    filter: blur(0.5px);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
    filter: blur(1px);
  }
}

/* === Responsive === */
@media (max-width: 991px) {
  .ai-slider{
        min-height: 60vw;
  }
  .ai-slide-content {
    bottom: 10vw;
    left: 5%;
    max-width: 85%;
  }

  .ai-slide-content p {
    width: 80%;
  }

  .ai-slide-right {
    width: 22vw;
    right: 2vw;
  }
  .ai-slide-content, .ai-slide-right{
    top:46%;
  }
	  .ai-slide {
		height: 70vw;
	  }
	.ai-dots {
		left: -220%;
		transform: translateX(-220%);
	}
	.ai-dot {
		width: 1vw;
		height: 2.42vw;
	}
}

@media (max-width: 600px) {
  .ai-slide-content h1 {
    font-size: 8vw;
  }
  .ai-slide-content p {
    font-size: 4vw;
  }
  .ai-btn {
    padding: 8px 20px;
    font-size: 2.9vw;
  }
  .ai-slider {
      min-height: 120vw;
  }
  .ai-slide {
    height: 140vw;
  }
  .ai-slide-content p {
    width: 90%;
    max-width: 90%;
  }
  .ai-slide-content {
    max-width: 100%;
  }
  .ai-slide-right{
    display: none;
  }

}


/* ============================================
   AI SLIDER — ARABIC RTL VERSION
   Applies ONLY when <html dir="rtl">
=============================================== */

html[dir="rtl"] .ai-slider * {
    direction: rtl !important;
    text-align: right !important;
}

/* ===== Content Area Adjustments ===== */
html[dir="rtl"] .ai-slide-content {
    left: auto !important;
    right: 5% !important;
    text-align: right !important;
    transform: translateY(-50%);
}

/* Top indicator stays before heading */
html[dir="rtl"] .ai-top-indicator {
    margin-right: 0;
    margin-left: auto; /* aligns to right */
}

/* ===== Headline RTL ===== */
html[dir="rtl"] .ai-slide-content h1 {
    direction: rtl;
}

/* Highlighted span still blue */
html[dir="rtl"] .ai-slide-content h1 span {
    color: #00ffff;
}

/* ===== Paragraph RTL ===== */
html[dir="rtl"] .ai-slide-content p {
    direction: rtl;
    text-align: right;
    font-family: var(--font-MediumCond);
}

/* ===== Button RTL ===== */

html[dir="rtl"] .ai-slide-content .ai-btn img {
    margin-left: 1vw !important;
    margin-right: -1.5vw !important;
    transform: translateX(2vw);
}
html[dir="rtl"] .ai-slide-content .ai-btn:hover img {
    margin-left: 0vw !important;
    margin-right: 0.5vw !important;
}
html[dir="rtl"]  .ai-btn:hover  img{
  transform: scaleX(-1);
}

html[dir="rtl"] .ai-slide-content .ai-btn:hover img {
    opacity: 1;
}
/* ===== RIGHT IMAGE becomes LEFT IMAGE in RTL ===== */
html[dir="rtl"] .ai-slide-right {
    right: auto !important;
    left: 4vw !important;
}

/* ===== Dots Centering (unchanged but RTL safe) ===== */
html[dir="rtl"] .ai-dots {
    left: -270%;
    right: auto;
    transform: translateX(-270%);
}
.carousel-nav button.prev {
    position: absolute;
    left: -140px;
}
.carousel-nav button.next {
    position: absolute;
    right: 20px;
}
.carousel-nav button.prev:focus, .carousel-nav button.next:focus{
      outline-width: 0px;
}
html[lang="ar"]  .carousel-nav button.next {
    position: absolute;
    right: 30px;
}
 html[lang="ar"]  .carousel-nav {
    bottom: 30px;
    right: auto;
    left: 10%;
}
/* ====== RESPONSIVE RTL ====== */

@media (max-width: 991px) {
	
  
 html[lang="ar"]  .carousel-nav button.prev {
      left: -130px;
  }
  html[lang="ar"] .carousel-nav {
    left: 18%;
      right: auto;
  }
  html[dir="rtl"] .ai-dots {
      left: -220%;
      right: auto;
      transform: translateX(-220%);
  }
    html[dir="rtl"] .ai-slide-content {
        right: 5%;
        left: auto;
    }
    html[dir="rtl"] .ai-slide-right {
        left: 2vw;
        right: auto;
    }
	 
}

@media (max-width: 600px) {
	html[lang="en-US"] .ai-dot {
        width: 1.85vw;
        height: 4.182vw;
    }
	.ai-dots {
		left: -220%;
		transform: translateX(-220%);
	}
  html[lang="ar"] .carousel-nav {
        left: 40%;
    }
    html[dir="rtl"] .ai-slide-content {
        max-width: 100%;
        right: 5%;
        left: auto;
    }
    html[dir="rtl"] .ai-slide-right {
        display: none !important;
    }
    html[dir="rtl"] .ai-dots {
        left: -275%;
        transform: translateX(-275%);
    }
    html[lang="ar"] .ai-dot {
        width: 1.3vw;
        height: 2.8vw;
    }
}

