/* ═══════════════════════════════════════════════════════════════════════════
   Divi AI Carousel Pro v4.0.0 — Complete Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ───────────────────────────────────────────────────────── */
.daic-carousel-wrapper {
  --daic-arrow-color: #ffffff;
  --daic-arrow-bg: rgba(0,0,0,0.5);
  --daic-pag-color: #ffffff;
  position: relative;
  width: 100%;
  overflow: visible;
}

/* ── Swiper Container ────────────────────────────────────────────────────── */
.daic-swiper {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
  display: block;
}

/* ── Slide Base — FLEXBOX for stacking (no absolute on content) ─────────── */
.daic-slide {
  position: relative !important;
  overflow: hidden;
  display: flex !important;           /* flex for content alignment */
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* ── Background layers (sit behind content via z-index) ─────────────────── */
.daic-slide-bg {
  position: absolute !important;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

.daic-overlay {
  position: absolute !important;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ── Video Background ────────────────────────────────────────────────────── */
.daic-video-bg {
  position: absolute !important;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.daic-video-bg video,
.daic-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border: none;
  pointer-events: none;
}

/* ── Slide Content — sits ABOVE background via z-index ───────────────────── */
.daic-slide-content {
  position: relative !important;
  z-index: 10 !important;             /* well above bg (1) and overlay (2) */
  width: 100%;
  box-sizing: border-box;
  pointer-events: auto;
}

/* ── Text Alignment ──────────────────────────────────────────────────────── */
.daic-align-left   { text-align: left; }
.daic-align-center { text-align: center; }
.daic-align-right  { text-align: right; }

/* ── Typography ──────────────────────────────────────────────────────────── */
.daic-slide-subtitle {
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 12px !important;
  display: block;
}

.daic-slide-title {
  font-size: 52px !important;
  font-weight: 800;
  line-height: 1.15 !important;
  margin: 0 0 18px !important;
  letter-spacing: -0.5px;
  display: block;
  color: #ffffff;             /* default; overridden by inline style */
}

.daic-slide-description {
  font-size: 17px !important;
  line-height: 1.75 !important;
  margin: 0 0 26px !important;
  display: block;
}

.daic-align-center .daic-slide-description { margin-left: auto; margin-right: auto; }

/* ── Accent Line ─────────────────────────────────────────────────────────── */
.daic-accent-line {
  width: 50px;
  height: 4px;
  border-radius: 2px;
  margin: 0 0 18px;
  display: block;
}
.daic-align-center .daic-accent-line { margin: 0 auto 18px; }
.daic-align-right  .daic-accent-line { margin: 0 0 18px auto; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.daic-slide-btn-wrap { margin-top: 6px; }

.daic-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
  position: relative;
  overflow: hidden;
}

.daic-slide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  opacity: 0.92;
}

/* ── Navigation Arrows ───────────────────────────────────────────────────── */
.daic-btn-prev,
.daic-btn-next {
  position: absolute;
  z-index: 30 !important;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--daic-arrow-bg);
  color: var(--daic-arrow-color);
  transition: background 0.25s ease, transform 0.25s ease;
  user-select: none;
  border-radius: 8px;
}

.daic-btn-prev { left: 16px; }
.daic-btn-next { right: 16px; }

.daic-btn-prev:hover,
.daic-btn-next:hover {
  background: rgba(0,0,0,0.85);
  transform: translateY(-50%) scale(1.08);
}

.daic-btn-prev span,
.daic-btn-next span {
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2.5px solid currentColor;
  border-left: 2.5px solid currentColor;
  flex-shrink: 0;
}
.daic-btn-prev span { transform: rotate(-45deg) translate(2px, 0); }
.daic-btn-next span { transform: rotate(135deg) translate(-2px, 0); }

/* Arrow Styles */
.daic-arrow-style-circle .daic-btn-prev,
.daic-arrow-style-circle .daic-btn-next {
  border-radius: 50%;
  width: 52px;
  height: 52px;
}

.daic-arrow-style-minimal .daic-btn-prev,
.daic-arrow-style-minimal .daic-btn-next {
  background: transparent;
  border: 2px solid var(--daic-arrow-color);
  border-radius: 50%;
}

/* Arrow Positions */
.daic-arrow-pos-bottom .daic-btn-prev,
.daic-arrow-pos-bottom .daic-btn-next {
  top: auto;
  bottom: 16px;
  transform: none;
}
.daic-arrow-pos-bottom .daic-btn-prev:hover,
.daic-arrow-pos-bottom .daic-btn-next:hover { transform: scale(1.08); }
.daic-arrow-pos-bottom .daic-btn-prev { left: calc(50% - 60px); }
.daic-arrow-pos-bottom .daic-btn-next { right: calc(50% - 60px); }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.daic-swiper .swiper-pagination { bottom: 16px; z-index: 20 !important; }

.daic-swiper .swiper-pagination-bullet {
  width: 9px; height: 9px;
  background: var(--daic-pag-color);
  opacity: 0.45;
  transition: all 0.3s;
}
.daic-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.45);
}

.daic-swiper .swiper-pagination-fraction { color: var(--daic-pag-color); font-size: 14px; font-weight: 700; }

.daic-swiper .swiper-pagination-progressbar { background: rgba(255,255,255,0.2); height: 3px; bottom: 0; top: auto; }
.daic-swiper .swiper-pagination-progressbar-fill { background: var(--daic-pag-color); }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
.daic-swiper .swiper-scrollbar { background: rgba(255,255,255,0.15); height: 3px; bottom: 0; border-radius: 0; }
.daic-swiper .swiper-scrollbar-drag { background: var(--daic-pag-color); }

/* ── Autoplay Progress Bar ───────────────────────────────────────────────── */
.daic-autoplay-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.15); z-index: 25; overflow: hidden; }
.daic-autoplay-progress-bar { height: 100%; background: var(--daic-pag-color); width: 0%; transition: width 0.1s linear; }

/* ── Custom HTML Slides ──────────────────────────────────────────────────── */
.daic-slide-html { display: block !important; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .daic-slide-title       { font-size: 36px !important; }
  .daic-slide-description { font-size: 15px !important; }
}

@media (max-width: 767px) {
  .daic-swiper              { height: 300px; }
  .daic-slide-title         { font-size: 26px !important; }
  .daic-slide-subtitle      { font-size: 11px !important; letter-spacing: 2px; }
  .daic-slide-description   { font-size: 13px !important; }
  .daic-slide-btn           { padding: 11px 22px; font-size: 13px; }
  .daic-btn-prev, .daic-btn-next { width: 36px; height: 36px; }
  .daic-btn-prev span, .daic-btn-next span { width: 10px; height: 10px; }
}

/* ── Content Animations (initial hidden state applied by JS) ─────────────── */
.daic-anim-fade-up,
.daic-anim-fade-down,
.daic-anim-fade-left,
.daic-anim-fade-right,
.daic-anim-zoom-in,
.daic-anim-flip-up { will-change: opacity, transform; }

/* ── Grab Cursor ─────────────────────────────────────────────────────────── */
.daic-swiper { cursor: grab; }
.daic-swiper:active { cursor: grabbing; }
