/* ===== VIDEO TERBARU SECTION STYLES ===== */

/* Desktop Styles */
.video-terbaru-section {
    padding: 20px 0 !important;
    background: transparent !important;
}

.video-terbaru-section .title8 h4 {
    color: #333 !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
}

/* Owl Carousel Video Terbaru */
.owl-home-slider-video-terbaru {
    padding: 0 !important; /* Removed all padding for wider cards */
    position: relative !important;
    margin: 0 -10px !important; /* Reduced negative margin for better spacing */
}

.owl-home-slider-video-terbaru .item {
    padding: 0 5px !important; /* Reduced padding for tighter spacing on desktop */
}

/* Desktop specific - even tighter spacing */
@media (min-width: 992px) {
    .owl-home-slider-video-terbaru .item {
        padding: 0 3px !important; /* Ultra tight spacing for desktop */
    }
}

/* Navigation Buttons */
.owl-home-slider-video-terbaru .owl-nav {
    position: absolute !important;
    top: 50% !important;
    width: 100% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    justify-content: space-between !important;
    z-index: 10 !important;
    padding: 0 5px !important;
}

.owl-home-slider-video-terbaru .owl-nav button {
    background: rgba(220, 53, 69, 0.8) !important;
    color: white !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    margin: 0 5px !important;
    flex-shrink: 0 !important;
    font-size: 18px !important;
}

.owl-home-slider-video-terbaru .owl-nav button:hover {
    background: #dc3545 !important;
    transform: scale(1.1) !important;
}

.owl-home-slider-video-terbaru .owl-nav button span {
    font-size: 18px !important;
}

/* Card Styles */
.video-terbaru-card {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.video-terbaru-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

.video-terbaru-card .position-relative {
    position: relative !important;
    overflow: hidden !important;
}

.video-terbaru-card .card-img-top {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.video-terbaru-card:hover .card-img-top {
    transform: scale(1.05) !important;
}

/* Play Button Overlay */
.play-button {
    width: 60px !important;
    height: 60px !important;
    background: rgba(220, 53, 69, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.play-button:hover {
    background: #dc3545 !important;
    transform: scale(1.1) !important;
}

/* CSS Triangle Play Icon */
.play-triangle {
    width: 0 !important;
    height: 0 !important;
    border-left: 12px solid white !important;
    border-top: 8px solid transparent !important;
    border-bottom: 8px solid transparent !important;
    margin-left: 3px !important; /* Adjust for visual centering */
}

/* Badge Overlay Styles */
.video-terbaru-card .position-absolute {
    z-index: 10 !important;
}

.video-terbaru-card .badge {
    font-weight: 600 !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.video-terbaru-card .bg-danger {
    background-color: #dc3545 !important;
}

.video-terbaru-card .bg-dark {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

.video-terbaru-card .card-body {
    padding: 15px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.video-terbaru-card .card-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .video-terbaru-section {
        padding: 15px 0 !important;
        background: transparent !important;
    }
    
    .video-terbaru-section .title8 h4 {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Reduced negative margin for mobile */
    .owl-home-slider-video-terbaru {
        margin: 0 -5px !important; /* Smaller negative margin for mobile */
    }
    
    /* Mobile: 1 card per slide */
    .owl-home-slider-video-terbaru .owl-stage {
        display: flex !important;
    }
    
    .owl-home-slider-video-terbaru .owl-item {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
    
    .owl-home-slider-video-terbaru .item {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        padding: 0 20px !important; /* More padding for mobile spacing */
    }
    
    /* Center the cards properly */
    .owl-home-slider-video-terbaru .item > * {
        max-width: 300px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .video-terbaru-card {
        max-width: 100% !important;
        width: 100% !important;
        min-height: 280px !important;
        margin: 0 auto !important;
    }
    
    .video-terbaru-card .card-img-top {
        height: 180px !important;
    }
    
    .video-terbaru-card .card-body {
        padding: 12px !important;
    }
    
    .video-terbaru-card .card-title {
        font-size: 0.9rem !important;
    }
    
    /* Play button mobile */
    .play-button {
        width: 50px !important;
        height: 50px !important;
    }
    
    .play-triangle {
        border-left: 10px solid white !important;
        border-top: 7px solid transparent !important;
        border-bottom: 7px solid transparent !important;
    }
    
    /* Badge mobile styles */
    .video-terbaru-card .badge {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }
}

@media (max-width: 480px) {
    .video-terbaru-card {
        min-height: 300px !important;
    }
    
    .video-terbaru-card .card-img-top {
        height: 200px !important;
    }
    
    .video-terbaru-card .card-body {
        padding: 15px !important;
    }
    
    .video-terbaru-card .card-title {
        font-size: 0.95rem !important;
        min-height: 50px !important;
    }
    
    /* No extra negative margin for small mobile - keep it centered */
    .owl-home-slider-video-terbaru {
        margin: 0 !important; /* No negative margin for small mobile */
    }
    
    .owl-home-slider-video-terbaru .item {
        padding: 0 25px !important; /* Extra padding for small mobile spacing */
    }
    
    /* Play button extra small mobile */
    .play-button {
        width: 45px !important;
        height: 45px !important;
    }
    
    .play-triangle {
        border-left: 9px solid white !important;
        border-top: 6px solid transparent !important;
        border-bottom: 6px solid transparent !important;
    }
    
    /* Badge extra small mobile styles */
    .video-terbaru-card .badge {
        font-size: 0.6rem !important;
        padding: 2px 5px !important;
    }
}