.carousel.slick-dotted.slick-slider {
    margin-bottom: 0 !important;
}
.carousel,
.carousel .et_pb_image,
.carousel .slick-slide > div,
.carousel .slick-slide > div .et_pb_image,
.carousel .et_pb_image .et_pb_image_wrap  {
    display: flex !important;
    width: 100%;
}
.carousel .slick-list {
    padding: 0;
}

.et-db #et-boc .et-l .slick-initialized.carousel .slick-slide,
.slick-initialized.carousel .slick-slide {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
}

.carousel .slick-dots {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex !important;
    width: auto;
}

body .carousel .slick-dots li.slick-active button:before {
    color: var(--white);
}
body .carousel .slick-dots li button:before {
    color: var(--white);
    background: var(--white);
}

/* Ensure all slides have the same height */
.et_pb_column.carousel {
    /* margin-bottom: 20px !important; */
    margin-bottom: 0 !important;
}

.carousel .slick-track {
    display: flex !important;
    align-items: stretch;
}

.carousel .slick-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important; /* Ensures slides stretch based on content */
}

/* Adjust height for mobile */
@media only screen and (max-width: 980px) {
    .carousel .slick-slide {
        max-height: 350px; /* Adjust as needed */
    }
}
/* Ensure the inner containers inside each slide stretch to full height */
.carousel .slick-slide > div {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    height: 100%;
    width: 100%;
}

/* Force the image container to fill the available space */
.carousel .slick-slide .et_pb_module {
    flex-grow: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

/* Ensure images fill their containers */
.carousel .slick-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    flex-grow: 1;
}


@media only screen and (max-width: 980px) {
    .carousel,
    .carousel .et_pb_image,
    .carousel .slick-slide > div,
    .carousel .slick-slide > div .et_pb_image,
    .carousel .et_pb_image .et_pb_image_wrap {
        height: 350px;
    }
}