/* .random-bars-slider-wrapper {
    width: 100%;
    margin: auto;
} */

.random-bars-slider {
    position: relative;
    height: 70vh; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #2d3748;
}

.jumbotron-text {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust to true center */
    z-index: 7; /* Above slides and dots */
    color: white;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.jumbotron-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;/* Use the secondary color for the heading */
    line-height: 1.2;
}
.jumbotron-text h1 span{
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color); /* Use the secondary color for the heading */
    line-height: 1.2;
}
.jumbotron-text p {
    font-size: 1.5rem;
    max-width: 600px;
    margin-top: 1rem;
    color: var(--background-light); /* Use the background light color for the paragraph */
}

.bottom-left-shade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    z-index: 5;
    pointer-events: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:70vh;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.slide.active {
    opacity: 1;
}

.slide-bar.transition-out {
    animation-fill-mode: forwards;
}

/* Animations for the slide bars */
@keyframes fade-out {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

@keyframes fade-in {
    0% {
        opacity: 1;
        transform: translateY(0%);
    }

    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

.dot-container {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 7;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: default;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dot.active {
    background-color: var(--accent-color); /* Use the accent color for the active dot */
    transform: scale(1.4);
    box-shadow: 0 4px 12px rgba(237, 50, 55, 0.6);
}

/* Responsive adjustments for jumbotron text */
@media (max-width: 768px) {
    .jumbotron-text h1 {
        font-size: 1.9rem;
    }

    .jumbotron-text p {
        font-size: 1rem;
    }
}