/* Carousel container */
.carousel {
    width: 100%;
    max-width: 1000px;
    margin: 50px auto 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    position: relative;
}

/* Track */
.carousel-track {
    position: relative;
    height: 480px;
}

/* Slides */
.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

/* Overlay */
.carousel-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

/* Active slide */
.carousel-slide.active {
    opacity: 1;
}

/* Text content */
.carousel-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
}

.carousel-content h3,
.carousel-content p {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

/* Controls */
.carousel-controls {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.carousel-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: 50%;
}

/* Left */
.carousel-controls button:first-child {
    left: 12px;
}

/* Right */
.carousel-controls button:last-child {
    right: 12px;
}