.video-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.video-popup-inner {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #000;
}

.video-popup iframe {
    width: 100%;
    height: 450px;
}

.video-close {
    position: absolute;
    top: -35px;
    right: 0;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}



.events-tabs {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-bottom: 80px;
}

.events-tabs a {
    padding: 0px 0 12px;
    cursor: pointer;
    color: #898989;
    position: relative;
    font-weight: 600;
    text-decoration: none;
}

.event-card {
    margin-bottom: 50px;
}

.events-tabs a.active, .events-tabs a:hover, .events-tabs a:active {
    color: #1B2E5A;
}

.events-tabs a.active::after, .events-tabs a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 4px;
    background: #f57c00;
}


.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.event-image img {
    width: 100%;
    border-radius: 10px;
}

.photo-credit {
    font-size: 14px;
    color: #1B2E5A;
    display: block;
    margin: 5px 0 0px;
    line-height: 22px;
}

.event-date {
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 20px;
}

.event-title {
    font-size: 36px;
    color: #1B2E5A;
    margin-bottom: 15px;
    line-height: 46px;
}

.speakers-content {
    font-family: "Lexend", 'Poppins';
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.speaker {
    width: 49%;
    margin-bottom: 10px;
}

.speaker strong {
    display: block;
    font-size: 16px;
    line-height: 20px;
    color: #1B2E5A;
}

.speaker span {
    display: block;
    font-size: 16px;
    color: #1B2E5A;
    line-height: 20px;
}

.event-excerpt {
    margin: 15px 0;
    color: #1B2E5A;
}

.read-more-toggle {
    font-weight: 600;
    color: #1B2E5A;
    text-decoration: underline;
    cursor: pointer;
}

.noevents {
    font-weight: 600;
    font-size: 36px;
}

.event-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.event-actions a {
    font-weight: 600;
    color: #1B2E5A;
    text-decoration: none;
}

.event-actions img {
    margin-right: 10px;
}

.event-actions a {
    margin-right: 15px;
}

.pagination.full-width {
    width: 100%;
    margin-top: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    margin: 0 6px;
    text-decoration: none;
    color: #777;
}

.pagination .current {
    font-weight: 700;
    color: #0a2a66;
}

@media (max-width: 991px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
       margin-bottom: 10px;
    }

    section.events-category-section {
        margin-bottom: 30px;
    }
}

.filter-header {
    display: none;
}

.filter-toggle {
    transition: transform 0.3s ease;
}

/* Mobile only */
@media (max-width: 768px) {

    .speaker {
        width: 100%;
    }

    .event-title {
        font-size: 26px;
        line-height: 36px;
    }

    .event-date {
        font-size: 16px;
        line-height: 26px;
    }
    .event-excerpt p, .event-excerpt * {
       font-size: 16px;
        line-height: 26px;
    }
    .full-width {
        width: 100%;
    }

    .filter-toggle {
        display: flex;
    }

    .events-filter-tab {
        background: #E1E2E6;
        border-radius: 30px;
        padding: 15px;
        margin-bottom: 50px;
    }

    .filter-header {
        display: flex;
        justify-content: space-between;
        text-transform: uppercase;
        font-size: 16px;
        font-weight: 800;
        font-family: 'Lexend';
        padding: 0 10px;
        align-items: center;
    }

    .events-tabs {
        display: none;
        margin-bottom: 0;
    }

    .events-filter-tab.open .events-tabs {
        display: block;
    }

    .events-filter-tab.open .filter-toggle {
        transform: rotate(180deg);
    }

    .events-filter-tab .events-tabs a {
        display: block;
        width: 100%;
        border: none;
        padding: 10px;
        margin: 10px 0;
        color: #1B2E5A;
    }

    .events-filter-tab .events-tabs a:after {
        display: none;
    }

    .events-filter-tab .events-tabs a.active {
        background: #1B2E5A;
        color: #fff;
    }
}

