/* CUSTOMIZE THE CAROUSEL
  -------------------------------------------------- */

/* Carousel base class */
.carousel {
    margin-bottom: 4rem;
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
    bottom: 3rem;
    z-index: 10;
}

/* Declare heights because of positioning of img element */
.carousel-item {
    height: 40rem;
}

.carousel-caption {
    position: absolute;
    bottom: 200px;
    left: 0;
    right: 0;
}

.carousel-caption h5 {
    font-size: 25px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
    color: #005191;
}

.carousel-caption p {
    width: 70%;
    margin: 0 auto 20px;
    font-size: 15px !important;
    color: #444444;
}

.carousel-caption a.btn {
    text-transform: uppercase;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: bold;
    background-color: #007bff;
    border: none;
    transition: background-color 0.3s ease;
}

.carousel-caption a.btn:hover {
    background-color: #0056b3;
}

#carouselCaption {
    border-top: 5px solid #005191;
    width: 70%;
    margin: auto;
    background-color: rgba(255, 255, 255, 0.9);
}


/* RESPONSIVE CSS
  -------------------------------------------------- */

@media (min-width: 40em) {

    /* Bump up size of carousel content */
    .carousel-caption p {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
        line-height: 1.4;
    }

}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
    .carousel-item {
        height: 300px;
        /* Smaller height for mobile */
    }

    .carousel-caption h5 {
        font-size: 24px;
    }

    .carousel-caption p {
        font-size: 14px;
        width: 80%;
    }

    .carousel-caption a.btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}