/* Video Gallery Responsive Styles */

/* Base styles for video gallery */
.blog-area {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.single-blog-post {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.single-blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-thumb {
    position: relative;
    overflow: hidden;
}

.blog-thumb iframe {
    width: 100%;
    height: 250px;
    border: none;
    transition: transform 0.3s ease;
}

.blog-thumb:hover iframe {
    transform: scale(1.03);
}

.blog-content {
    padding: 20px !important;
    height: auto !important;
    min-height: 120px;
}

.blog-content h4 {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video hover effect */
.video-container {
    position: relative;
    cursor: pointer;
}

.video-container::before {
    content: "\f04b";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-container:hover::before {
    opacity: 0.7;
}

.video-playing .video-container::before {
    display: none;
}

/* Responsive styles for all devices */
@media (max-width: 1199px) {
    .blog-thumb iframe {
        height: 220px;
    }
    
    .blog-content h4 {
        font-size: 15px !important;
    }
}

@media (max-width: 991px) {
    .blog-area {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    
    .blog-thumb iframe {
        height: 200px;
    }
    
    .blog-content {
        padding: 15px !important;
    }
}

@media (max-width: 767px) {
    .blog-area {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .grid-item {
        margin-bottom: 20px;
    }
    
    .blog-thumb iframe {
        height: 200px;
    }
    
    .single-blog-post {
        margin-bottom: 20px;
    }
    
    .blog-content h4 {
        font-size: 14px !important;
    }
    
    .video-container::before {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .blog-thumb iframe {
        height: 180px;
    }
    
    .blog-content {
        padding: 12px !important;
    }
    
    .blog-content h4 {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .blog-area {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    .blog-thumb iframe {
        height: 160px;
    }
    
    .mb-45 {
        margin-bottom: 20px !important;
    }
    
    .video-container::before {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Ensure videos maintain aspect ratio */
.video-responsive {
    position: relative;
    overflow: hidden;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}