/* =============================================
   Carousel Pro for Elementor — Swiper Edition
   Pure structural CSS. Zero color hardcoding.
   ============================================= */

/* ── WRAPPER ── */
.cwp-carousel-wrap {
    position: relative;
    width: 100%;
}

/* ── SWIPER RESET ── */
.cwp-carousel-wrap .swiper {
    width: 100%;
    overflow: hidden;
}

.cwp-carousel-wrap .swiper-wrapper {
    align-items: stretch;
}

/* ── SLIDE INNER ── */
.cwp-carousel-wrap .cwp-slide-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* ── IMAGE WRAP ── */
.cwp-carousel-wrap .cwp-img-wrap {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
    flex-shrink: 0;
}

.cwp-carousel-wrap .cwp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── OVERLAY ── */
.cwp-carousel-wrap .cwp-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* ── PLACEHOLDER ── */
.cwp-carousel-wrap .cwp-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ebebeb;
    color: #bbb;
}

/* ══════════════════════════════
   CAPTION POSITIONS
══════════════════════════════ */

/* Below Image */
.cwp-cap-below .cwp-caption {
    position: relative;
    z-index: 2;
    padding: 20px 24px;
}

/* Overlay Center */
.cwp-cap-overlay .cwp-slide-inner { position: relative; overflow: hidden; }
.cwp-cap-overlay .cwp-img-wrap { flex: 1; }
.cwp-cap-overlay .cwp-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 86%;
    padding: 20px 24px;
    pointer-events: none;
}

/* Overlay Bottom */
.cwp-cap-overlay-bottom .cwp-slide-inner { position: relative; overflow: hidden; }
.cwp-cap-overlay-bottom .cwp-img-wrap { flex: 1; }
.cwp-cap-overlay-bottom .cwp-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 3;
    padding: 20px 24px;
    pointer-events: none;
}

/* Overlay Top */
.cwp-cap-overlay-top .cwp-slide-inner { position: relative; overflow: hidden; }
.cwp-cap-overlay-top .cwp-img-wrap { flex: 1; }
.cwp-cap-overlay-top .cwp-caption {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 3;
    padding: 20px 24px;
    pointer-events: none;
}

/* ── TITLE ── */
.cwp-carousel-wrap .cwp-title {
    font-weight: 700 !important;
    line-height: 1.3;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 1;
}

/* ── DESC ── */
.cwp-carousel-wrap .cwp-desc {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* ── BUTTON ── */
.cwp-carousel-wrap .cwp-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 24px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    position: relative;
    z-index: 1;
}
.cwp-carousel-wrap .cwp-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ══════════════════════════════
   ARROWS — Override Swiper defaults
══════════════════════════════ */

/* Hide Swiper's built-in navigation (we use custom buttons) */
.cwp-carousel-wrap .swiper-button-prev,
.cwp-carousel-wrap .swiper-button-next {
    display: none !important;
}

/* Our custom arrow buttons */
.cwp-carousel-wrap .cwp-btn-prev,
.cwp-carousel-wrap .cwp-btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    outline: none;
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
    background: #fff;
    padding: 0;
}

.cwp-carousel-wrap .cwp-btn-prev { left: 10px; }
.cwp-carousel-wrap .cwp-btn-next { right: 10px; }

.cwp-carousel-wrap .cwp-btn-prev svg,
.cwp-carousel-wrap .cwp-btn-next svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.cwp-carousel-wrap .cwp-btn-prev:hover,
.cwp-carousel-wrap .cwp-btn-next:hover {
    transform: translateY(-50%) scale(1.06);
}

/* Round */
.cwp-arrow-round  .cwp-btn-prev,
.cwp-arrow-round  .cwp-btn-next { border-radius: 50%; }

/* Square */
.cwp-arrow-square .cwp-btn-prev,
.cwp-arrow-square .cwp-btn-next { border-radius: 4px; }

/* Ghost */
.cwp-arrow-minimal .cwp-btn-prev,
.cwp-arrow-minimal .cwp-btn-next {
    border-radius: 50%;
    background: rgba(0,0,0,0.4) !important;
    border: 2px solid rgba(255,255,255,0.5);
}
.cwp-arrow-minimal .cwp-btn-prev svg,
.cwp-arrow-minimal .cwp-btn-next svg { stroke: #fff; }

/* Outside */
.cwp-arrows-outside .cwp-btn-prev { left: -54px; }
.cwp-arrows-outside .cwp-btn-next { right: -54px; }

/* Disabled state */
.cwp-carousel-wrap .cwp-btn-prev.swiper-button-disabled,
.cwp-carousel-wrap .cwp-btn-next.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ══════════════════════════════
   PAGINATION — Override Swiper
══════════════════════════════ */
.cwp-carousel-wrap .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* For overlay captions, keep pagination inside */
.cwp-cap-overlay .swiper-pagination,
.cwp-cap-overlay-bottom .swiper-pagination {
    position: absolute;
    bottom: 12px;
    margin-top: 0;
    left: 0; right: 0;
    z-index: 10;
}

.cwp-carousel-wrap .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 1;
    transition: background 0.25s, width 0.3s, border-radius 0.3s;
    margin: 0 !important;
}

.cwp-carousel-wrap .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 5px;
}

/* Progressbar pagination */
.cwp-carousel-wrap .swiper-pagination-progressbar {
    position: relative;
    height: 3px;
    margin-top: 10px;
    background: rgba(0,0,0,0.1);
}

/* Fraction */
.cwp-carousel-wrap .swiper-pagination-fraction {
    font-size: 14px;
    font-weight: 600;
}

/* ══════════════════════════════
   SCROLLBAR
══════════════════════════════ */
.cwp-carousel-wrap .swiper-scrollbar {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 10px;
    border-radius: 4px;
    background: rgba(0,0,0,0.1);
    height: 4px;
}

.cwp-carousel-wrap .swiper-scrollbar-drag {
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
}

/* ══════════════════════════════
   RESPONSIVE: hide outside arrows
══════════════════════════════ */
@media (max-width: 1024px) {
    .cwp-arrows-outside .cwp-btn-prev { left: 6px; }
    .cwp-arrows-outside .cwp-btn-next { right: 6px; }
}
