/* ============================================================
   Custom Slider Widget – Nibir  |  style.css  v1.2.0
   ============================================================ */

.cs-nibir-slider {
    width: 100%;
    position: relative;
}

.cs-nibir-slider .swiper-slide {
    position: relative;
    display: flex;
    overflow: hidden;
}

/* ── Background layer ── */
.cs-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* ── Overlay ── */
.cs-slide-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* controlled by Elementor */
    z-index: 2;
}

/* ── Content layer ── */
.cs-slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 30px;
    box-sizing: border-box;
    /* align-items / justify-content set by Elementor controls */
}

/* ── Inner wrapper ── */
.cs-slide-inner {
    /* width / text-align set by Elementor controls */
}

/* ── Typography defaults ── */
.cs-subtitle {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.cs-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.2;
}

.cs-desc {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #f1f1f1;
}

/* ── Buttons ── */
.cs-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Align buttons to match text-align */
.cs-slide-inner[style*="text-align: center"] .cs-buttons { justify-content: center; }
.cs-slide-inner[style*="text-align: right"]  .cs-buttons { justify-content: flex-end; }
.cs-slide-inner[style*="text-align: left"]   .cs-buttons { justify-content: flex-start; }

.cs-btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.cs-btn-1 {
    background-color: #61ce70;
    color: #fff;
}

.cs-btn-1:hover {
    opacity: 0.88;
    color: #fff;
}

.cs-btn-2 {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cs-btn-2:hover {
    background-color: #fff;
    color: #333;
}

/* ── Swiper arrows — force centering (fixes Astra/theme overrides) ── */
.cs-nibir-slider .swiper-button-next,
.cs-nibir-slider .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;       /* override Swiper default that breaks centering */
    color: #fff;
    background-color: rgba(0, 0, 0, 0.30);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    box-sizing: border-box;
}

.cs-nibir-slider .swiper-button-prev { left:  10px; }
.cs-nibir-slider .swiper-button-next { right: 10px; }

.cs-nibir-slider .swiper-button-next::after,
.cs-nibir-slider .swiper-button-prev::after {
    font-size: 18px;
    line-height: 1;
}

/* ── Swiper dots ── */
.cs-nibir-slider .swiper-pagination {
    position: absolute;
    bottom: 10px;
    z-index: 10;
}

.cs-nibir-slider .swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.5;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.cs-nibir-slider .swiper-pagination-bullet-active {
    opacity: 1;
}
