/* Video Carousel Styles */
.video-carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3em 0;
}
.video-carousel {
    width: 80%;
    overflow: hidden;
    position: relative;
    height: 0;
    padding-bottom: 60%; /* Increased to allow space for text */
}
.video-carousel .video-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
}
.video-carousel .video-item.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}
.video-carousel .video-item.prev {
    opacity: 0;
    transform: translateX(-100%);
}
.video-carousel .video-item.next {
    opacity: 0;
    transform: translateX(100%);
}
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex: 0 0 auto; /* Don't grow or shrink */
}
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures no black bars */
}
.carousel-nav {
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease;
    margin: 0 15px;
    position: relative;
    top: -35px; /* Adjust to vertically center with the video */
}
.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.9);
}
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.indicator.active {
    background: #ffffff;
}
/* Text styling for video items */
.video-item h3 {
    margin: 1em 0 0.3em;
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 2;
}
.video-item p {
    text-align: center;
    margin-bottom: 0;
    opacity: 0.8;
    color: #000000;
    position: relative;
    z-index: 2;
}
/* Video controls styling */
.video-container video::-webkit-media-controls-panel {
    display: flex !important;
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.video-container video::-webkit-media-controls-play-button {
    background-color: rgba(255,255,255,0.8);
    border-radius: 50%;
}
/* Responsive styles */
@media screen and (max-width: 980px) {
    .video-carousel {
        width: 85%;
        padding-bottom: 48%;
    }
}
@media screen and (max-width: 736px) {
    .video-carousel {
        width: 90%;
        padding-bottom: 51%;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
    }
}
@media screen and (max-width: 480px) {
    .video-carousel {
        width: 100%;
        padding-bottom: 56.25%;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
        margin: 0 5px;
    }
    
    .video-carousel-container {
        margin: 2em 0;
    }
}
/* Drag cursor styles */
.video-carousel {
    cursor: grab;
}
.video-carousel:active {
    cursor: grabbing;
}