/* Carousel Text Justification Fix */

/* Justify all paragraph text in the carousel slides */
.common-home-sect2 .carousel-item .para {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Ensure proper spacing for justified text */
.common-home-sect2 .common-sect-para .heading h2 {
    margin-bottom: 1rem;
}

.common-home-sect2 .common-sect-para .para {
    max-width: 100%;
    padding: 0 10px;
}

/* Responsive adjustments */
@media screen and (min-width: 1200px) {
    .common-home-sect2 .carousel-item .para {
        line-height: 1.85;
        padding-right: 15px;
        text-align: justify;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .common-home-sect2 .carousel-item .para {
        line-height: 1.75;
        padding-right: 10px;
        text-align: justify;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .common-home-sect2 .carousel-item .para {
        line-height: 1.7;
        padding-right: 8px;
        text-align: justify;
        font-size: 15px;
    }
}

@media screen and (max-width: 767px) {
    .common-home-sect2 .carousel-item .para {
        font-size: 14px;
        line-height: 1.65;
        text-align: justify;
        padding: 0 5px;
        margin-top: 12px;
    }
}

@media screen and (max-width: 480px) {
    .common-home-sect2 .carousel-item .para {
        font-size: 13px;
        line-height: 1.6;
        text-align: justify;
        padding: 0;
        margin-top: 10px;
    }
}

/* Specific slide text justification */
#slide-1.carousel-item .para,
#slide-2.carousel-item .para,
#slide-3.carousel-item .para,
#slide-4.carousel-item .para {
    text-align: justify;
    text-justify: inter-word;
}
