/* ===== Video Gallery Section ===== */
.video-gallery-section {
    padding: 60px 0;
    background: #fff;
}

.video-gallery-section .section-header {
    margin-bottom: 50px;
}

.video-gallery-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.video-gallery-section .section-header p {
    font-size: 1rem;
    color: #999;
    margin: 0;
}

/* ===== Video Gallery Grid ===== */
.video-gallery-grid {
    margin: 0 -12px;
}

.video-gallery-grid .col-md-4,
.video-gallery-grid .col-sm-6,
.video-gallery-grid .col-xs-12 {
    padding: 0 12px;
}

/* ===== Video Card ===== */
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }
.video-card:nth-child(4) { animation-delay: 0.4s; }
.video-card:nth-child(5) { animation-delay: 0.5s; }
.video-card:nth-child(6) { animation-delay: 0.6s; }
.video-card:nth-child(7) { animation-delay: 0.7s; }
.video-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ===== Video Container ===== */
.video-container {
    position: relative;
    background: #000;
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Video Overlay ===== */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

/* ===== Play Button ===== */
.play-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.play-btn:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
}

/* ===== Video Info ===== */
.video-info {
    padding: 16px;
    background: #fff;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.video-card:hover .video-title {
    color: #e74c3c;
}

.video-date {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-date i {
    color: #e74c3c;
}

/* ===== Responsive Design ===== */
/* Desktop (1024px and above) */
@media (max-width: 1199px) {
    .video-gallery-section .section-header h2 {
        font-size: 2.2rem;
    }
}

/* Tablet (768px to 1023px) */
@media (max-width: 991px) {
    .video-gallery-section {
        padding: 50px 0;
    }

    .video-gallery-section .section-header {
        margin-bottom: 40px;
    }

    .video-gallery-section .section-header h2 {
        font-size: 2rem;
    }

    .video-title {
        font-size: 1rem;
    }

    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .video-card:nth-child(n) { animation-delay: 0.2s !important; }
}

/* Mobile Tablet (600px to 767px) */
@media (max-width: 767px) {
    .video-gallery-section {
        padding: 40px 0;
    }

    .video-gallery-section .section-header {
        margin-bottom: 30px;
    }

    .video-gallery-section .section-header h2 {
        font-size: 1.8rem;
    }

    .video-gallery-section .section-header p {
        font-size: 0.95rem;
    }

    .video-gallery-grid .col-md-4,
    .video-gallery-grid .col-sm-6,
    .video-gallery-grid .col-xs-12 {
        padding: 0 8px;
    }

    .video-card {
        margin-bottom: 10px;
    }

    .video-info {
        padding: 12px;
    }

    .video-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .video-date {
        font-size: 0.8rem;
    }

    .play-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Mobile (below 600px) */
@media (max-width: 599px) {
    .video-gallery-section {
        padding: 30px 0;
    }

    .video-gallery-section .section-header {
        margin-bottom: 25px;
    }

    .video-gallery-section .section-header h2 {
        font-size: 1.5rem;
    }

    .video-gallery-section .section-header p {
        font-size: 0.9rem;
    }

    .video-gallery-grid .col-md-4,
    .video-gallery-grid .col-sm-6,
    .video-gallery-grid .col-xs-12 {
        padding: 0 6px;
    }

    .video-card {
        border-radius: 10px;
        margin-bottom: 8px;
    }

    .video-info {
        padding: 10px;
    }

    .video-title {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .video-date {
        font-size: 0.75rem;
    }

    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Extra Small (below 480px) */
@media (max-width: 479px) {
    .video-gallery-section {
        padding: 25px 0;
    }

    .video-gallery-section .section-header h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .video-gallery-section .section-header p {
        font-size: 0.85rem;
    }

    .video-card {
        border-radius: 8px;
    }

    .video-info {
        padding: 8px;
    }

    .video-title {
        font-size: 0.85rem;
    }

    .video-date {
        font-size: 0.7rem;
    }

    .play-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* ===== Loading Animation ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.video-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
