/*
 * Webcast Archive Styles
 */

.webcast-archive-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    justify-content: center;
    /*padding: 20px;*/
    background-color: #ffffff; 
    /*margin: 40px 0; */
    box-sizing: border-box; 
}

.webcast-archive-item {
    
    flex: 0 0 calc(33.333% - 13.33px);
    min-width: 240px;
    background-color: transparent; 
    /*border-radius: 8px;*/
    overflow: hidden; 
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
}

.webcast-archive-item:hover {
    transform: translateY(-5px); 
    /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);*/
}

.webcast-archive-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
    align-items: center; 
}

.webcast-archive-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    overflow: hidden;
    /*border-radius: 8px 8px 0 0; */
}


.webcast-archive-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.webcast-archive-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Overlay that appears on hover */
.webcast-archive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Play icon (SVG) */
.webcast-archive-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 3;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.webcast-archive-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
    fill: white;
}

/* Show overlay and icon on hover */
.webcast-archive-thumbnail-wrapper:hover .webcast-archive-overlay,
.webcast-archive-thumbnail-wrapper:hover .webcast-archive-icon {
    opacity: 1;
    visibility: visible;
}









.webcast-archive-content {
    padding: 15px 0;
    width: 100%; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

.webcast-archive-category {
    display: inline-block; 
    padding: 4px 15px; 
    margin-bottom: 10px; 
    color: #ffffff; 
    font-family: 'Ubuntu', sans-serif !important; 
    font-weight: 700; 
    font-size: 13px; 
    /*border-radius: 4px;*/
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.webcast-archive-title {
    font-size: 18px;
    line-height: 1.3;
    color: #000000;
    font-family: 'Abhaya Libre', serif !important;
    font-weight: 800;
    margin: 0; 
    text-align: left; 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


@media (max-width: 1200px) {
    .webcast-archive-item {
        flex: 0 0 calc(33.333% - 13.33px);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .webcast-archive-item {
        flex: 0 0 calc(50% - 10px);
        min-width: 220px;
    }
    .webcast-archive-thumbnail-wrapper {
        padding-bottom: 65%; 
    }
    .webcast-archive-icon {
        width: 50px;
        height: 50px;
    }
    .webcast-archive-title {
        font-size: 18px;
        -webkit-line-clamp: 4;
    }
    .webcast-archive-category {
        font-size: 12px;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .webcast-archive-item {
        flex: 0 0 calc(100% - 0px);
        min-width: unset;
    }
    .webcast-archive-container {
        padding: 15px;
        gap: 15px;
    }
    .webcast-archive-thumbnail-wrapper {
        padding-bottom: 60%;
    }
    .webcast-archive-icon {
        width: 45px;
        height: 45px;
    }
    .webcast-archive-title {
        font-size: 17px;
        -webkit-line-clamp: 5; 
    }
}

/* --- Pagination Styles --- */
.webcast-archive-pagination {
    width: 100%;
    margin-top: 30px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.webcast-archive-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #3f4a52;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.webcast-archive-pagination li {
    display: block; 
    margin: 0;
}

.webcast-archive-pagination a,
.webcast-archive-pagination span {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #ffffff;
    background-color: transparent;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.webcast-archive-pagination a:hover {
    background-color: #55636c;
}

.webcast-archive-pagination .current {
    background-color: #FF5B00;
    color: #ffffff;
    font-weight: 700;
    cursor: default;
    pointer-events: none;
}

.webcast-archive-pagination .dots {
    color: #ffffff;
    padding: 10px 15px;
    font-size: 15px;
}

.webcast-archive-pagination .prev,
.webcast-archive-pagination .next {
    font-weight: 600;
    padding: 10px 20px; 
}
