#carousel {
    background-color: transparent;
}

#slider {
    background-color: #ffffff;
    margin-top: 0px;
    padding: 40px 0;
}

/* Page Carousel Wrapper */
.page-carousel {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #0d0d11;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Carousel Item Styling */
.carousel-item {
    height: 520px;
    background: #0d0d11;
    overflow: hidden;
}

/* Image Container with Ken Burns effect */
.carousel-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    border: none !important;
    left: auto !important;
    transform: none !important;
    transition: transform 10s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item.active img {
    transform: scale(1.08);
}

/* Vignette overlay for text readability */
.carousel-overlay-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(10, 10, 15, 0.85) 0%,
        rgba(10, 10, 15, 0.4) 40%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Modern Text Overlay Container with Glassmorphism */
.carousel-text-container {
    position: absolute;
    bottom: 50px;
    left: 50px;
    right: 50px;
    background: rgba(15, 15, 20, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 28px 36px;
    border-radius: 20px;
    color: #ffffff;
    max-width: 650px;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.carousel-text-container:empty {
    display: none !important;
}

.carousel-item.active .carousel-text-container {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

/* Typography */
.carousel-title-modern {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    line-height: 1.25;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-desc-modern {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Navigation Arrow Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 56px;
    height: 56px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    opacity: 0.85;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
}

.carousel-control-prev {
    left: 24px;
}

.carousel-control-next {
    right: 24px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.carousel-control-prev span,
.carousel-control-next span {
    font-size: 22px;
    color: #ffffff;
    display: inline-block;
    transition: transform 0.3s ease;
}

.carousel-control-prev:hover span {
    transform: translateX(-2px);
}

.carousel-control-next:hover span {
    transform: translateX(2px);
}

/* Custom Indicators Dots */
.carousel-indicators {
    bottom: 24px;
    margin-bottom: 0;
    z-index: 15;
}

.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    border: 2px solid transparent;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 6px;
    cursor: pointer;
    opacity: 1;
}

.carousel-indicators li.active {
    width: 28px;
    border-radius: 5px;
    background-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .carousel-item {
        height: 420px;
    }
    .carousel-text-container {
        bottom: 40px;
        left: 40px;
        right: 40px;
        padding: 22px 28px;
    }
    .carousel-title-modern {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .carousel-item {
        height: 320px;
    }
    .carousel-text-container {
        bottom: 20px;
        left: 20px;
        right: 20px;
        padding: 16px 20px;
        border-radius: 14px;
        max-width: none;
    }
    .carousel-title-modern {
        font-size: 18px;
        margin-bottom: 6px;
    }
    .carousel-desc-modern {
        font-size: 13px;
        line-height: 1.5;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 42px;
        height: 42px;
    }
    .carousel-control-prev {
        left: 12px;
    }
    .carousel-control-next {
        right: 12px;
    }
}
