/* Custom Carousel Styles */
.custom-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Navigation Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button-prev {
    left: 20px;
}

.carousel-button-next {
    right: 20px;
}

.carousel-button-prev::after,
.carousel-button-next::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.carousel-button-prev::after {
    transform: translate(-30%, -50%) rotate(-135deg);
}

.carousel-button-next::after {
    transform: translate(-70%, -50%) rotate(45deg);
}

/* Pagination */
.carousel-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-pagination-bullet.active {
    background-color: #fff;
}

/* Overlay Text */
.slide-overlay-text {
    position: absolute;
    padding: 20px;
    color: #fff;
    z-index: 3;
}

.slide-overlay-text.center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.slide-overlay-text.top-left {
    top: 20px;
    left: 20px;
}

.slide-overlay-text.top-right {
    top: 20px;
    right: 20px;
    text-align: right;
}

.slide-overlay-text.bottom-left {
    bottom: 20px;
    left: 20px;
}

.slide-overlay-text.bottom-right {
    bottom: 20px;
    right: 20px;
    text-align: right;
}