/* Video Gallery - Mobile First */
.video-gallery {
    padding: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: inherit;
    margin: 0 auto;
}

/* Video Card */
.video-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 2em;
    /* border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;*/
}

/* .video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
} */

.video-card img {
    width: 100%;
    height: auto;
    display: block;
}

.video-card.large {
    grid-column: 1;
}

/* Video Overlay */
/* .video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    padding: 20px;
    color: #fff;
}

.video-overlay h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.video-overlay p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.arrow-next {
    display: inline-block;
}

.arrow-next img {
    width: 30px;
    height: auto;
} */

/* Play Button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FF512F;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button:hover {
    background: #c41111;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button img {
    width: 30px;
    height: auto;
}

/* Video Modal - Mobile First */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
}

#player {
    width: 100%;
    height: 100%;
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
}


/* Videos Section - Mobile First */
.videos-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    border-bottom: 2px solid var(--border-color);
}

/* Videos Grid - Mobile First */
.videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* Video Item */
.video-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio:  16/9;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video Overlay at Bottom */
.video-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #000000 100%);
    padding: 15px;
}

.video-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}

.video-title {
    font-family: var(--font-accent);
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0px;
    color: #fff;
    flex: 1;
}

/* Play Icon */
.play-icon {
    background: #ff0000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.play-icon:hover {
    background: #cc0000;
}

.play-icon svg {
    color: #fff;
}

/* Video Details */
.video-details {
    padding: 15px 0;
}

.video-date {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 26px;
    letter-spacing: 0px;
    color: #666;
    margin-bottom: 8px;
}

.video-description {
    font-family: var(--font-accent);
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: 0px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination - Mobile First */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 2px solid var(--border-color);
    color: var(--border-color);
    font-family: var(--font-accent);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background-color: var(--border-color);
    color: #fff;
}

.page-btn.active {
    background-color: var(--border-color);
    color: #fff;
}

.prev-btn,
.next-btn {
    font-size: 18px;
}


/* Tablet (768px and up) */
@media (min-width: 768px) {
    .video-gallery {
        padding: 40px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-card {
        margin-bottom: 0em !important;       
    }
     
    .video-card.large {
        grid-column: 1 / -1;        
    }
    
    /* .video-overlay h3 {
        font-size: 24px;
    }
    
    .video-overlay p {
        font-size: 16px;
    } */
    
    .play-button {
        width: 90px;
        height: 90px;
    }
    
    .play-button img {
        width: 40px;
    }
    
    .video-modal {
        padding: 40px;
    }
    
    .close-modal {
        top: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 50px;
    }

    /* Videos - Page */
    .videos-section {
        padding: 60px 40px;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .video-title {
        font-size: 20px;
    }
    
    .video-date {
        font-size: 16px;
    }
    
    .video-description {
        font-size: 18px;
    }
    
    .play-icon {
        width: 45px;
        height: 45px;
    }
    
    .page-btn {
        width: 45px;
        height: 45px;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .video-gallery {
        padding: 60px;
    }
    
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .video-card {
        margin-bottom: 0em !important;       
    }
    .video-card.large {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    
    /* .video-overlay h3 {
        font-size: 28px;
    }
    
    .video-overlay p {
        font-size: 18px;
    } */
    
    .play-button {
        width: 100px;
        height: 100px;
    }
    
    .play-button img {
        width: 50px;
    }

    /* Videos - Page */
    .videos-section {
        padding: 80px 60px;
    }
    
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
        padding-top: 2em;
    }
    
    .video-overlay-bottom {
        padding: 20px;
    }
    
    .video-title {
        font-size: 23px;
    }
    
    .play-icon {
        width: 50px;
        height: 50px;
    }
    
    .page-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .pagination {
        gap: 12px;
    }
}
