/* ===============================
   Full Width Carousel – Shafa Theme
   =============================== */
.carousel-wrapper {
    /* background-color: var(--bg-primary); */
    padding: 2em 0 7em 0;
    position: relative;
    z-index: 1;
}

.carousel-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url("../images/pattern.png");
    background-repeat: repeat-x;
    background-size: 102% auto;
    background-position: bottom center;
    /* align to bottom center */
    pointer-events: none;
    z-index: 2;
}

.carousel {
    max-width: 100%;
    padding: 0 3em;
    height: 60vh;
    /* border-radius: 1em; */
}

/* .carousel, */
.carousel-inner,
.carousel-item {
    height: 60vh;
    border-radius: 1em;
    position: relative;

}

/* تصویر اسلاید */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* تمرکز تصویر */
}

/* لایه تیره برای خوانایی متن */
.carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* متن و کپشن */
.carousel-caption {
    position: absolute;
    bottom: 5%;
    z-index: 2;
    color: #fff;
}

/* تیتر */
.carousel-caption h1 {
    font-size: 5rem;
    font-family: var(--font-nfs);
    font-weight: 100;
    margin-bottom: 0;
    line-height: 1.2;
}

/* متن توضیح */
.carousel-caption p {
    font-size: 1.5rem;
    font-family: var(--font-nfs);
    max-width: 600px;
    line-height: 1.8;
    /* margin: 0 auto; */
}

/* ===============================
   Responsive – موبایل و تبلت
   =============================== */

@media (max-width: 992px) {

    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 80vh;
    }

    .carousel-caption h1 {
        font-size: 2.2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {

    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 70vh;
    }

    .carousel-caption {
        bottom: 10%;
        text-align: center;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 0.95rem;
        max-width: 100%;
    }
}