/* ============================================================
   Coderix Widgets – Slider Styles
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.cx-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ── Slide ───────────────────────────────────────────────── */
.cx-slider .swiper-slide.cx-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
}

/* Full-slide clickable link */
.cx-slide__link-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
}

/* ── Overlay ─────────────────────────────────────────────── */
.cx-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── Content ─────────────────────────────────────────────── */
.cx-slide__content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px 30px;
    box-sizing: border-box;
}

.cx-slide__title {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.cx-slide__desc {
    margin: 0 0 30px;
    color: rgba(255,255,255,0.92);
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    line-height: 1.7;
}

/* ── Button ──────────────────────────────────────────────── */
.cx-slide__btn {
    display: inline-block;
    padding: 14px 36px;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.cx-slide__btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ── Navigation – Arrows ─────────────────────────────────── */
.cx-slider .swiper-button-prev,
.cx-slider .swiper-button-next {
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.25);
    border-radius: 50%;
    transition: background 0.3s;
}

.cx-slider .swiper-button-prev::after,
.cx-slider .swiper-button-next::after {
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}

.cx-slider .swiper-button-prev:hover,
.cx-slider .swiper-button-next:hover {
    background: rgba(0,0,0,0.50);
}

/* ── Navigation – Dots ───────────────────────────────────── */
.cx-slider .swiper-pagination {
    bottom: 18px;
}

.cx-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.55);
    opacity: 1;
    transition: background 0.3s, transform 0.3s;
}

.cx-slider .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.3);
}

/* ── Content Animations ──────────────────────────────────── */
.cx-animate {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
}

.cx-animate.cx-anim--up     { transform: translateY(40px); }
.cx-animate.cx-anim--down   { transform: translateY(-40px); }
.cx-animate.cx-anim--left   { transform: translateX(60px); }
.cx-animate.cx-anim--right  { transform: translateX(-60px); }
.cx-animate.cx-anim--zoom   { transform: scale(0.80); }
.cx-animate.cx-anim--none   { transform: none; opacity: 0; }

.cx-slide--active .cx-animate,
.swiper-slide-active .cx-animate {
    opacity: 1;
    transform: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cx-slide__content {
        padding: 16px 24px;
    }
}

@media (max-width: 767px) {
    .cx-slide__content {
        padding: 12px 16px;
    }
    .cx-slide__title {
        font-size: clamp(1.25rem, 5vw, 2rem);
        margin-bottom: 10px;
    }
    .cx-slide__desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .cx-slide__btn {
        padding: 11px 24px;
        font-size: 0.9rem;
    }
    .cx-slider .swiper-button-prev,
    .cx-slider .swiper-button-next {
        display: none;
    }
}

@media (max-width: 480px) {
    .cx-slide__title { font-size: 1.2rem; }
    .cx-slide__desc  { font-size: 0.85rem; }
}
