/* Carousel Styles */
/* section#tutorials {
    padding: 0 0 20px 0;
} */

.carousel {
    position: relative;
    width: 100%;
    /* max-width: 600px; */
    margin: 0 auto;
    user-select: none;
    -webkit-user-select: none;
}

.carousel a, .carousel a * {
    user-select: text;
    -webkit-user-select: text;
}

.carousel-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    /* border: 1px solid light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.5));  */
    /* background: light-dark(#f9f9f9, #2c2c2c93); */
}

.carousel-container-large {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    /* border: 2px solid light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.8));  */
    /* background: light-dark(#f9f9f9, #2c2c2c93); */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-content {
    text-align: center;
    max-width: 90%;
}

.carousel-content h3 {
    font-size: 1.4em;
    margin-bottom: 0;
    color: white;
    background-color: #182736;
    padding: 6px 26px;
    border-radius: 12px;
    display: inline-block;
    /* Override the gradient text effect from main CSS */
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.carousel-content p {
    font-size: 1em;
    color: #dbdbdbcf;
    margin-bottom: 12px;
    line-height: 1.5;
    background-color: #183149b5;
    padding: 4px 20px;
    border-radius: 12px;
}

/* Special styling for P tags in large carousels - align to bottom */
.carousel-container-large .carousel-slide {
    align-items: flex-end;
}

.carousel-container-large .carousel-content {
    align-self: flex-end;
}

.carousel-link {
    display: inline-block;
    padding: 6px 16px;
    background: light-dark(#007BFF, #66b3ff);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.carousel-link:hover {
    background: light-dark(#0056b3, #4da6ff);
    text-decoration: none;
}

.carousel-link.coming-soon {
    background: light-dark(#6c757d, #495057);
    cursor: default;
}

.carousel-link.coming-soon:hover {
    background: light-dark(#6c757d, #495057);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: light-dark(#ddd, #555);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: light-dark(#007BFF, #66b3ff);
}

.dot:hover {
    background: light-dark(#bbb, #777);
}

.dot.active:hover {
    background: light-dark(#0056b3, #4da6ff);
}

.carousel a, .carousel a:visited {
    color:white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-container {
        height: 250px;
    }

    .carousel-container-large {
        height: 300px; /* smaller on mobile */
        background-size: contain;
    }

    .carousel-content h3 {
        font-size: 1.2em;
    }

    .carousel-content p {
        font-size: 0.9em;
    }
}