/* Start Main Slider */
.kima-btn {
    font-size: 1rem;
    padding: 15px 50px;
}

.carousel-caption {
    bottom: 50px;
}

.carousel-caption p, .carousel-caption h4, .carousel-caption h2 {
    margin-bottom: 20px;
}

/* استایل اندیکاتورها - حفظ شد */
.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background-clip: inherit;
    opacity: .7;
    position: relative;
    margin: 0 10px;
    border: 0;
}

.carousel-indicators li:before {
    content: "";
    position: absolute;
    border-radius: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    border: 3px solid var(--bg-color-3);
    margin: -4px;
}

.carousel-indicators .active {
    opacity: 1;
    background: var(--bg-color-1) !important;
}

.carousel-indicators li.active:before {
    border-color: var(--bg-color-1) !important;
}

ol.carousel-indicators {
    padding: 20px;
}

/* اصلاحیه اصلی برای رفع فاصله و بوردر */
.custom-elementor-slider {
    width: 100%;
    height: 350px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    overflow: hidden; /* کانتینر والد کلیپ شد */
}

/* این کلاس کلید اصلی حل مشکل شماست */
.custom-elementor-slider .carousel-item {
    width: 100%;
    height: 350px;
    border-radius: 25px; /* بوردر ردیوس اینجا اعمال می‌شود */
    overflow: hidden;    /* باعث می‌شود محتوای داخلی (عکس) کاملاً محدود به این کادر شود */
    position: relative;
}

/* تصویر اسلاید */
.custom-elementor-slider .custom-slider-image {
    display: block;      /* حذف فضای baseline */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* جلوگیری از کش آمدن کپشن */
.custom-elementor-slider .carousel-caption {
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* نسخه موبایل */
@media (max-width: 767px) {
    .custom-elementor-slider {
        height: 200px; /* ارتفاع کل اسلایدر */
    }
    
    .custom-elementor-slider .carousel-item {
        height: 200px; /* ارتفاع آیتم اسلاید */
    }
}


/**/

@media (max-width: 767px) {
    .elementor-element-f1f0a0f {
        gap: 10px !important;
    }

    .elementor-element-f1f0a0f > * {
        flex: 1 1 calc(50% - 10px);
    }
}




