.carousel-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 1 0 33.33%;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-item img {
    width: auto;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 10px;
}

.carousel-item h3 {
    margin: 10px 0;
    font-size: 1.2em;
    width: 100%;
    max-width: 200px;
    text-align: center;
    word-wrap: break-word;
	    font-weight: 300;
}

.learn-more-button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    background-color: #223053;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    max-width: 40%;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1000; /* Ensure the buttons are on top of other elements */
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}
