.video-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.video-section .section-title {
    font-size: 3rem;
    color: var(--color-white);
    font-weight: var(--font-medium);
    margin-bottom: 15px;
    text-align: center;
}

.video-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
    text-align: center;
}

/* Video Carousel Container */
.video-carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 60px;
}

.video-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.video-carousel-slide {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.video-carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navigation Buttons */
.video-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(205, 86, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(205, 86, 255, 0.3);
}

.video-carousel-nav:hover {
    background: rgba(205, 86, 255, 1);
    box-shadow: 0 4px 20px rgba(205, 86, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.video-carousel-prev {
    left: 0;
}

.video-carousel-next {
    right: 0;
}

/* Carousel Dots */
.video-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.video-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-carousel-dot.active {
    background: rgba(205, 86, 255, 1);
    transform: scale(1.2);
}

.video-carousel-dot:hover {
    background: rgba(205, 86, 255, 0.7);
}

.video-title {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
    font-weight: var(--font-medium);
}

.video-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 500px;
}

.main-video {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    background: #000;
    display: block;
    pointer-events: auto; /* Enable pointer events for custom controls */
}

/* Custom controls overlay */
.custom-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 1; /* Always visible */
}

.play-btn {
    background: rgba(205, 86, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(205, 86, 255, 0.3);
}

.play-btn:hover {
    background: rgba(205, 86, 255, 1);
    box-shadow: 0 4px 15px rgba(205, 86, 255, 0.5);
    transform: scale(1.1);
}

.play-btn.playing .fa-play::before {
    content: "\f04c"; /* pause icon */
}

.video-wrapper:hover .custom-controls {
    opacity: 1;
}

.story-card {
    flex: 0 0 auto;
    width: 250px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 0 20px;
    position: relative;
}

.story-card:hover {
    transform: scale(1.05);
}

.story-thumbnail {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #007bff;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.story-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 123, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-card:hover .play-icon {
    opacity: 1;
}

.story-title {
    font-size: 0.9rem;
    color: var(--color-white);
    font-weight: var(--font-medium);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .video-section {
        padding: 60px 0;
    }

    .video-section .section-title {
        font-size: 2rem;
    }

    .video-carousel-wrapper {
        padding: 20px 50px;
    }

    .video-carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .video-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .main-video {
        max-width: 100%;
        border-radius: 10px;
    }

    .video-carousel-dots {
        margin-top: 20px;
        gap: 10px;
    }

    .video-carousel-dot {
        width: 10px;
        height: 10px;
    }
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.video-modal-close:hover {
    color: #007bff;
}

.video-modal-body {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; 
    position: relative;
}

.video-modal-body video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.placeholder-content {
    max-width: 400px;
    padding: 20px;
}

.placeholder-content i {
    font-size: 4rem;
    color: #007bff;
    margin-bottom: 20px;
}

.placeholder-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.video-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.story-video {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        max-height: 80vh;
    }

    .video-modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}