.bg-light {
    background-color: #fffcf4 !important;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #000000;
    background: #ffffff;
    font-weight: 400;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    font-family: "Poppins", sans-serif !important;
    color: #031550;
    line-height: 1.4;
    font-weight: 300;
    margin: 0 0 15px;
}

h3 {
    font-size: 24px;
    font-weight: 700;
}

@media only screen and (min-width: 1201px) and (max-width: 1400px) {
    h3 {
        font-size: 22px;
    }
}

@media only screen and (max-width: 767px) {
    h3 {
        font-size: 20px;
    }
}

img {
    max-width: 100%;
    object-fit: cover;
}

.carousel-item img {
    height: 550px;
    /* Adjust as needed */
    object-fit: cover;
    /* Ensures the image covers the area without stretching */
    object-position: top center;
    /* Centers the image at the top */
}

/* Caption Position */
.carousel-caption {
    position: absolute;
    top: 30%;
    left: 10% !important;
    transform: translateY(-50%);
    text-align: left !important;
    opacity: 0;
    /* Initially hidden */
    visibility: hidden;
    z-index: 2;
}

/* Slide-in Animation */
.carousel-item.active .carousel-caption {
    animation: slideLeft 0.8s ease-in-out forwards;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
        visibility: visible;
    }

    to {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
    }
}

/* Responsive Text */
.carousel-caption h1 {
    font-size: 2.8rem;
    font-weight: bold;
    color: white;
    font-family: "Poppins", sans-serif;
}

.carousel-caption h1 span {
    color: #3DB4FD;
}

.carousel-caption p {
    font-size: 1.2rem;
}

.carousel-caption .btn {
    font-size: 1rem;
    padding: 10px 20px;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .carousel-item img {
        height: 450px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 350px;
    }

    .carousel-caption h1 {
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: 0.5rem;
    }

    .carousel-caption {
        position: absolute;
        top: 15%;
        left: 10%;
        transform: translateY(-50%);
        text-align: left;
        opacity: 0;
        /* Initially hidden */
        visibility: hidden;
        z-index: 2;
    }
}

/* Prev & Next Buttons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    color: #000000;
    background: rgba(255, 255, 255, 0.575);
    padding: 5px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;

}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
    font-size: 18px;
    display: none;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .carousel-box {
        width: 90%;
    }

    .carousel-caption {
        font-size: 16px;
    }
}