/* Video Section Styles - Banner Section 2 */
.ratio2_1 {
    padding: 40px 0;
    background: var(--background-color);
    overflow: hidden;
    position: relative;
}

/* Dark mode video section */
[data-theme="dark"] .ratio2_1 {
    background: var(--background-color);
}

[data-theme="dark"] .ratio2_1::before {
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.5), rgba(30, 30, 30, 0.8));
}

.ratio2_1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(248, 248, 248, 0.5), rgba(255, 255, 255, 0.8));
    z-index: 0;
}

/* Background Elements */
.video-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.video-bg-elements .bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.video-bg-elements .shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #ff6b35, #ff9a3c);
    top: -100px;
    left: -100px;
}

.video-bg-elements .shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, #3a86ff, #8338ec);
    bottom: -150px;
    right: -150px;
}

.ratio2_1 .section-title {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.ratio2_1 .section__header {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--text-dark);
}

.ratio2_1 .section__header span {
    color: #ff6b35;
}

.ratio2_1 .section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Dark mode text elements */
[data-theme="dark"] .ratio2_1 .section__header {
    color: var(--text-dark);
}

[data-theme="dark"] .ratio2_1 .section-subtitle {
    color: var(--text-light);
}

.ratio2_1 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.ratio2_1 .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    align-items: stretch;
}

/* Main Video Container */
.ratio2_1 .col-xl-8,
.ratio2_1 .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.main-video-container {
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.ratio2_1 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Sidebar Container */
.ratio2_1 .small-banner,
.ratio2_1 .col-xl-4,
.ratio2_1 .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
}

.gallery-container {
    width: 100%;
    height: 100%;
    min-height: 350px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.ratio2_1 .small-banner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Enhance Elfsight widget for more visible videos and scrolling */
.ratio2_1 .small-banner .elfsight-app-59048a01-feda-41ca-ba35-9f093656227d {
    max-height: 540px !important;
    min-height: 540px !important;
    overflow-y: auto !important;
    padding-right: 4px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Custom More Videos Header Styling */
.custom-more-videos-header {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    position: relative;
    text-align: left;
    margin-bottom: 10px;
}

.custom-more-videos-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
}

.custom-more-videos-header h5::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(45deg, #ff6b35, #ff9a3c);
    border-radius: 2px;
}

/* Style scrollbar for better visibility */
.ratio2_1 .small-banner .elfsight-app-59048a01-feda-41ca-ba35-9f093656227d::-webkit-scrollbar {
    width: 10px;
    background: #f3f3f3;
    border-radius: 8px;
}
.ratio2_1 .small-banner .elfsight-app-59048a01-feda-41ca-ba35-9f093656227d::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 8px;
}

/* Subtle card styling for video items (if accessible) */
.ratio2_1 .small-banner .elfsight-app-59048a01-feda-41ca-ba35-9f093656227d .es-widget__item,
.ratio2_1 .small-banner .elfsight-app-59048a01-feda-41ca-ba35-9f093656227d .es-widget__video {
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    margin-bottom: 14px;
    background: #fafafa;
    transition: box-shadow 0.2s;
}
.ratio2_1 .small-banner .elfsight-app-59048a01-feda-41ca-ba35-9f093656227d .es-widget__item:hover,
.ratio2_1 .small-banner .elfsight-app-59048a01-feda-41ca-ba35-9f093656227d .es-widget__video:hover {
    box-shadow: 0 4px 16px rgba(255,102,0,0.09);
}

/* Desktop Specific Styles */
@media (min-width: 992px) {
    .ratio2_1 {
        padding: 60px 0;
    }
    
    .ratio2_1 .row {
        height: 500px;
    }
    
    .ratio2_1 .col-xl-8,
    .ratio2_1 .col-lg-8,
    .ratio2_1 .col-xl-4,
    .ratio2_1 .col-lg-4 {
        height: 100%;
        display: flex;
    }
    
    .main-video-container,
    .gallery-container {
        height: 100%;
        padding-top: 0;
    }
    
    .main-video-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .ratio2_1 iframe {
        position: relative;
        height: 100%;
    }
}

/* Mobile Responsive - Tablet */
@media (max-width: 991px) {
    .ratio2_1 {
        padding: 30px 0;
    }
    
    .ratio2_1 .col-xl-8,
    .ratio2_1 .col-lg-8,
    .ratio2_1 .col-xl-4,
    .ratio2_1 .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .main-video-container {
        padding-top: 56.25%;
    }
    
    .gallery-container {
        min-height: 300px;
    }
    
    .elfsight-app-59048a01-feda-41ca-ba35-9f093656227d {
        min-height: 300px !important;
    }
}

/* Mobile Responsive - Mobile */
@media (max-width: 767px) {
    .ratio2_1 {
        padding: 20px 0;
        background: #fff;
    }
    
    .ratio2_1 .section__header {
        font-size: 24px;
    }
    
    .ratio2_1 .container {
        padding: 0 10px;
    }
    
    .ratio2_1 .row {
        margin: 0;
    }
    
    .ratio2_1 .col-xl-8,
    .ratio2_1 .col-lg-8,
    .ratio2_1 .col-xl-4,
    .ratio2_1 .col-lg-4 {
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .main-video-container {
        border-radius: 8px;
    }
    
    .gallery-container {
        min-height: 250px;
        border-radius: 8px;
    }
    
    .elfsight-app-59048a01-feda-41ca-ba35-9f093656227d {
        min-height: 250px !important;
    }
}

/* Mobile Responsive - Small Mobile */
@media (max-width: 480px) {
    .ratio2_1 {
        padding: 15px 0;
    }
    
    .ratio2_1 .section__header {
        font-size: 20px;
    }
    
    .ratio2_1 .container {
        padding: 0 8px;
    }
    
    .ratio2_1 .col-xl-8,
    .ratio2_1 .col-lg-8,
    .ratio2_1 .col-xl-4,
    .ratio2_1 .col-lg-4 {
        padding: 0 5px;
        margin-bottom: 10px;
    }
    
    .gallery-container {
        min-height: 200px;
    }
    
    .elfsight-app-59048a01-feda-41ca-ba35-9f093656227d {
        min-height: 200px !important;
    }
}
