/* Carousel Component Styles */

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
}

.carousel-control {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: #800000;
}

/* Smooth Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.carousel-slide.active {
    animation: fadeIn 1s forwards;
}

.carousel-slide:not(.active) {
    animation: fadeOut 1s forwards;
}

/* Article Link Styles */
.article-link {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: #f5a425;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
    transition: all 0.3s;
}

.carousel-control:hover::before {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.caption {
    max-width: 80%;
}

.caption h6 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.caption h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.caption p {
    font-size: 16px;
    line-height: 1.5;
}

@media screen and (max-width: 767px) {
    .caption h2 {
        font-size: 24px;
    }
    .caption p {
        font-size: 14px;
    }
    .carousel-control {
        font-size: 24px;
    }
    .carousel-control::before {
        width: 40px;
        height: 40px;
    }
    .carousel-control:hover::before {
        width: 50px;
        height: 50px;
    }
}