
/* ==================== GALERI VIDEO MODERN ==================== */
.main-section-video {
    max-width: 1600px;
    margin: 50px auto;
    padding: 0 20px;
}

.row-video {
    margin-bottom: 60px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
}

.row-video:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.post-card-halaman {
    padding: 35px 30px 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title-halaman {
    font-size: 30px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-bottom: 12px;
}

.section-title-halaman:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #ff6b6b);
    border-radius: 10px;
}

.section-title-halaman i {
    color: #e74c3c;
    font-size: 36px;
    transition: transform 0.5s ease;
}

.gallery-grid-video {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.video-item {
    width:100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    position: relative;
    z-index: 1;
    margin:0 auto;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.2);
    z-index: 2;
}

.video-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #e74c3c, #ff6b6b);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.video-item:hover:before {
    opacity: 0.05;
}

.gallery-link {
    display: block;
    text-decoration: none;
    color: #000;
}

.thumbnail-container {
    position: relative;
    height: 190px;
    overflow: hidden;
    border-bottom: 3px solid #f1f2f6;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-item:hover .gallery-img {
    transform: scale(1.1);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(231, 76, 60, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.play-icon i {
    color: white;
    font-size: 24px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.video-item:hover .play-icon {
    background: rgba(231, 76, 60, 1);
    transform: translate(-50%, -50%) scale(1.15);
}

.video-item:hover .play-icon i {
    transform: scale(1.2);
}

.duration-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.video-info {
    padding: 18px 20px;
}

.video-title {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #2c3e50;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-item:hover .video-title {
    color: #e74c3c;
}

.video-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #7f8c8d;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-count i {
    color: #e74c3c;
}

/* Tombol Lihat Video Lengkap */
.btn-video-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, #e74c3c, #ff6b6b);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
    border: none;
    outline: none;
    cursor: pointer;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-video-more:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b, #e74c3c);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-video-more:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

.btn-video-more:hover:before {
    opacity: 1;
}

.btn-video-more i {
    transition: transform 0.3s ease;
}

.btn-video-more:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-grid-video {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title-halaman {
        font-size: 26px;
    }
    
    .gallery-grid-video {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .main-section-video {
        padding: 0 15px;
    }
    
    .row-video {
        margin-bottom: 40px;
    }
    
    .post-card-halaman {
        padding: 25px 20px;
    }
    
    .section-title-halaman {
        font-size: 24px;
    }
    
    .gallery-grid-video {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .thumbnail-container {
        height: 170px;
    }
    
    .video-title {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .gallery-grid-video {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .section-title-halaman {
        font-size: 14px;
    }
    
    .btn-video-more {
        padding: 10px 24px;
        font-size: 15px;
    }
    
    .thumbnail-container {
        height: 300px;
    }
   
    .video-title {
        font-size: 14px;
    }
}
