/**
 * Education Video List Styles
 * Updated to use flexbox layout instead of floats
 */

/* Main Container */
.edu_video_main_row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Filter Section */
.edu_video_filter_section {
    width: 25%;
    padding-right: 20px;
    box-sizing: border-box;
}

.edu_video_list_section {
    width: 75%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
}

.edu_video_list_section .edu_video_list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-height: 950px;
    overflow-y: auto;
}

/* Video Card Styling */
.edu_video_list .row {
    flex: 0 0 calc(33.333% - 20px);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding: 0;
}

.edu_video_list .row:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.edu_video_row {
    display: none !important;
}

.edu_video_row.edu_video_visible {
    display: flex !important;
    flex-direction: column !important;
}

/* Popup link styling */
.popup-link {
    color: #0E6AB5 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 8px 16px;
    background-color: #0E6AB5;
    color: #fff !important;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.popup-link:hover {
    background-color: #006a8f;
}

/* Filter Styling */
.filter-container {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.filter-container label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.filter_toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 3px;
    background-color: #f5f5f5;
    transition: background-color 0.2s ease;
}

.filter_toggle:hover {
    background-color: #e5e5e5;
}

.edu_video_filter {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6"><path d="M0 0l6 6 6-6z" fill="%23666"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edu_video_filter:focus {
    border-color: #0E6AB5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(14, 106, 181, 0.2);
}

.edu_video_filter.active-filter {
    border-color: #0E6AB5;
    background-color: #f8fbff;
    font-weight: 500;
}

/* Filter Actions */
.filter-actions {
    margin-top: 15px;
    text-align: center;
}

.reset-filters {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.reset-filters:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.reset-filters:active {
    transform: translateY(0);
}

.reset-filters i {
    font-size: 12px;
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.no-results-content p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
}

.btn-reset-inline {
    background: none;
    border: none;
    color: #0E6AB5;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    margin: 0 2px;
}

.btn-reset-inline:hover {
    color: #006a8f;
}

/* Video Item Layout */
.education-video-team-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.edu_video_thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.edu_video_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content section styling */
.edu_video_name,
.edu_video_note,
.edu_video_view {
    padding: 0 15px;
    width: 100%;
}

.edu_video_name {
    margin: 15px 0 5px;
}

.edu_video_name h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0E6AB5;
    line-height: 1.3;
}

.edu_video_note {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    flex-grow: 1;
}

.edu_video_view {
    margin: 5px 0 15px;
    text-align: center;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .edu_video_list .row {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 991px) {
    .edu_video_main_row {
        flex-direction: column;
    }
    
    .edu_video_filter_section,
    .edu_video_list_section {
        width: 100%;
        padding-right: 0;
    }
    
    .edu_video_filter_section {
        margin-bottom: 25px;
        order: 1;
    }
    
    .edu_video_list_section {
        order: 2;
    }
}

@media (max-width: 767px) {
    .edu_video_list .row {
        flex: 0 0 100%;
    }
    
    .edu_video_thumb {
        height: 180px;
    }
    
    .edu_video_name h4 {
        font-size: 16px;
    }
} 


