/* Video Gallery Page Styles */

/* Hero Section */
.video-gallery-hero {
    padding: 100px 0;
    /* background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%); */
    background-color: #f0fdf4;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.video-gallery-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(71, 183, 73, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.video-gallery-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(71, 183, 73, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.video-gallery-hero .row {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(71, 183, 73, 0.1) 0%, rgba(71, 183, 73, 0.15) 100%);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(71, 183, 73, 0.2);
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.video-gallery-hero p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 18px;
}

.hero-img-wrapper {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(71, 183, 73, 0.15), 0 10px 20px rgba(15, 23, 42, 0.08);
}

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

.hero-img-wrapper:hover img {
    transform: scale(1.05);
}

/* Video Gallery Section */
.video-gallery-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-item {
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(71, 183, 73, 0.15);
}

.video-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(71, 183, 73, 0.95);
    opacity: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.video-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Modal */
#videoModal .modal-content {
    background: #0f172a;
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

#videoModal .modal-body {
    position: relative;
    padding: 0;
}

#videoModal .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    filter: invert(1);
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 8px;
}

#videoModal .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 991px) {
    .video-gallery-hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .video-gallery-section {
        padding: 60px 0;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    .video-thumb {
        height: 200px;
    }

    .play-icon {
        font-size: 3rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.3rem;
    }

    .video-thumb {
        height: 180px;
    }

    .play-icon {
        font-size: 2.5rem;
    }
}
