.carousel-link {
    display: flex;
    text-decoration: none; /* Removes underline from the link */
    color: inherit; /* Ensures text color is inherited */
}

.carousel-link:hover {
    text-decoration: none !important; /* Ensures no underline on hover for the entire link */
}

.carousel-item {
    display: flex;
    flex-direction: row;
}

.carousel-content {
    display: flex;
    width: 100%;
}

.carousel-image {
    flex: 1;
    background-size: contain; /* Ensures the image fits within the div */
    background-position: center; /* Centers the image within the div */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    width: 100%; /* Full width */
    height: auto; /* Let content define height */
    min-height: 200px; /* Prevent collapsing completely */
}

.carousel-image img {
    width: 100%; /* The image will scale to fit the container's width */
    height: auto; /* Maintain the aspect ratio */
    object-fit: contain; /* Ensures the entire image is visible without cropping */
}

.carousel-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px; /* Adjust padding as needed */
}

.carousel-text h2 {
    text-align: center;
}

.carousel-text p {
    text-align: left;
}

@media (max-width: 750px) {
    .carousel-content {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        align-items: stretch; /* Ensure children fill width */
        height: auto; /* Allow content to define height */
    }

    .carousel-image {
        order: -1; /* Move the image above text */
        flex-shrink: 0; /* Prevent shrinking */
        height: 300px; /* Adjust height for smaller screens */
        background-size: cover; /* Optional, fills container completely */
    }

    .carousel-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .carousel-text {
        order: 0; /* Keep text below image */
    }

    .row.d-flex {
        display: flex;
    }
    
    .featured-box {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }


    .box-content {
        flex-grow: 1; /* Make the box-content take up the remaining space */
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Ensure content is spaced evenly */
    }

   
}