/* ============================================
   VIDEOS SECTION CSS
   ============================================ */

.videos-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
}

.videos-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(242, 140, 40, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.videos-section > .container {
    position: relative;
    z-index: 1;
}

/* Videos Header */
.videos-header {
    text-align: center;
    margin-bottom: 4rem;
}

.videos-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: rgba(242, 140, 40, 0.15);
    border: 1px solid rgba(242, 140, 40, 0.3);
    border-radius: 50px;
    color: #F28C28;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.videos-header-badge i {
    font-size: 0.875rem;
}

.videos-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.videos-title .title-accent {
    background: linear-gradient(135deg, #F28C28, #FF7A00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.videos-subtitle {
    font-size: 1.125rem;
    color: #6B7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Video Card */
.video-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 177.78%; /* 9:16 Aspect Ratio (Portrait) */
    background: #000000;
    overflow: hidden;
}

/* Instagram Video - Fresh Clean Implementation */
.instagram-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    z-index: 1;
    background: #000000;
}

/* Bottom overlay to hide Instagram UI elements (like count, follow button, etc.) */
.instagram-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0.98) 40%, rgba(0, 0, 0, 0.95) 60%, rgba(0, 0, 0, 0.9) 80%, transparent 100%);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
    /* Strong shadow to ensure complete coverage */
    box-shadow: inset 0 -100px 100px -100px rgba(0, 0, 0, 1);
}

.video-wrapper.playing .instagram-bottom-overlay {
    opacity: 0.6;
    height: 120px;
}

/* Instagram Profile Button */
.video-control-btn.instagram-profile-btn {
    background: rgba(59, 130, 246, 0.9);
    border-color: rgba(59, 130, 246, 0.6);
}

.video-control-btn.instagram-profile-btn:hover {
    background: rgba(59, 130, 246, 1);
    border-color: rgba(59, 130, 246, 1);
    transform: scale(1.1);
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    background: #000000;
}

.video-player::-webkit-media-controls {
    display: none !important;
}

.video-player::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Video Overlay (Play Button) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.2s ease;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

/* For Instagram videos, make overlay clickable */
.video-wrapper:has(.instagram-embed) .video-overlay {
    pointer-events: auto;
}

.video-wrapper.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-play-pause {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(242, 140, 40, 0.9);
    border: 3px solid #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-play-pause:hover {
    background: rgba(242, 140, 40, 1);
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.video-wrapper.playing .video-play-pause {
    display: none;
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.video-wrapper:hover .video-controls,
.video-wrapper.playing .video-controls {
    opacity: 1;
    pointer-events: all;
}

.video-control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.125rem;
}

.video-control-btn:hover {
    background: rgba(242, 140, 40, 0.9);
    border-color: #F28C28;
    transform: scale(1.1);
}

.video-control-btn.muted .fa-volume-up::before {
    content: "\f6a9"; /* fa-volume-mute */
}

.video-control-btn.playing .fa-play::before {
    content: "\f04c"; /* fa-pause */
}

/* Video Title */
.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    padding: 1.5rem;
    margin: 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .videos-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .videos-section {
        padding: 4rem 0;
    }
    
    .videos-header {
        margin-bottom: 3rem;
    }
    
    .videos-title {
        font-size: 2rem;
    }
    
    .videos-subtitle {
        font-size: 1rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-play-pause {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .video-control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

