

.kba-webinars-page {
    padding: 70px 0 70px;
    background: #f8f9fb;
    min-height: 70vh;
}

.kba-webinars-hero {
    background: linear-gradient(135deg, #1f3b64, #c40e0e);
    border-radius: 24px;
    padding: 42px;
    color: #ffffff;
    margin-bottom: 26px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.kba-webinars-hero:after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.kba-webinars-hero-content {
    position: relative;
    z-index: 2;
}

.kba-webinars-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 13px;
    color: #ffffff;
}

.kba-webinars-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff;
}

.kba-webinars-hero p {
    font-size: 16px;
    max-width: 680px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.92);
}



.kba-section-title {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.kba-section-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1f3b64;
    margin-bottom: 6px;
}

.kba-section-title p {
    color: #6b7280;
    margin-bottom: 0;
}

.kba-webinar-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    height: calc(100% - 24px);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.25s ease;
}

.kba-webinar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}

.kba-webinar-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #edf2f7;
    overflow: hidden;
}

.kba-webinar-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kba-webinar-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f3b64;
    background: linear-gradient(135deg, #eef4ff, #fff1f1);
}

.kba-webinar-status {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    background: #c40e0e;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}

.kba-webinar-status.past {
    background: #1f3b64;
}

.kba-webinar-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kba-webinar-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.35;

    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    min-height: auto;
    height: auto;
}

.kba-webinar-card-desc {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: 39px;
    max-height: 39px;
}

.kba-webinar-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.kba-webinar-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 13px;
    line-height: 1.35;
}

.kba-webinar-meta-icon {
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: #f3f5f8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c40e0e;
    flex: 0 0 25px;
}

.kba-webinar-instructor {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border-radius: 13px;
    background: #f8fafc;
    margin-bottom: 14px;
}

.kba-webinar-instructor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    flex: 0 0 36px;
}

.kba-webinar-instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kba-webinar-instructor-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f3b64;
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
}

.kba-webinar-instructor-name {
    font-weight: 800;
    color: #111827;
    font-size: 13px;
    line-height: 1.2;
}

.kba-webinar-instructor-bio {
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
    line-height: 1.35;
}

.kba-webinar-card-actions {
    margin-top: auto;
}

.kba-btn {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 14px;
    border: 0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.kba-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.kba-btn-primary {
    background: #c40e0e;
    color: #ffffff;
}

.kba-btn-primary:hover {
    background: #a90c0c;
    color: #ffffff;
}

.kba-btn-secondary {
    background: #1f3b64;
    color: #ffffff;
}

.kba-btn-secondary:hover {
    background: #162b4a;
    color: #ffffff;
}

.kba-btn-light {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.kba-empty-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 42px 24px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
}

.kba-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #f8fafc;
    color: #c40e0e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.kba-empty-icon svg {
    width: 32px;
    height: 32px;
}

.kba-empty-box h4 {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.kba-empty-box p {
    color: #6b7280;
    margin-bottom: 0;
}

/* Clickable card areas */
.kba-webinar-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.kba-webinar-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.kba-webinar-title-link {
    color: inherit;
    text-decoration: none;
}

.kba-webinar-title-link:hover {
    color: #c40e0e;
    text-decoration: none;
}

/* Shared modal for registration and recording */
.kba-webinar-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    z-index: 99999;
    display: none;
    padding: 22px;
    overflow-y: auto;
}

.kba-webinar-modal.kba-modal-is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.kba-modal-open {
    overflow: hidden;
}

.kba-webinar-modal-dialog {
    width: 100%;
    max-width: 980px;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.kba-webinar-modal.kba-registration-modal .kba-webinar-modal-dialog {
    max-width: 720px;
}

.kba-webinar-modal.kba-recording-modal .kba-webinar-modal-dialog {
    max-width: 980px;
}

.kba-webinar-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.kba-webinar-modal-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 5px;
}

.kba-webinar-modal-header p {
    color: #6b7280;
    margin-bottom: 0;
}

.kba-webinar-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: #f1f5f9;
    color: #111827;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.kba-webinar-modal-body {
    padding: 0;
}

.kba-webinar-modal-content iframe {
    width: 100%;
    border: 0;
    display: block;
}

.kba-webinar-modal.kba-registration-modal .kba-webinar-modal-content iframe {
    height: 390px;
}

.kba-webinar-modal.kba-recording-modal .kba-webinar-modal-content iframe {
    height: 650px;
}

.kba-recording-message {
    padding: 40px;
    text-align: center;
    color: #6b7280;
}

@media (max-width: 991.98px) {
    .kba-webinars-page {
        padding: 24px 0 50px;
    }

    .kba-webinars-hero {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .kba-webinars-hero h1 {
        font-size: 32px;
    }

    .kba-webinars-hero p {
        font-size: 15px;
    }

    .kba-webinars-tabs-wrap {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kba-webinars-tab {
        justify-content: center;
    }

    .kba-section-title {
        display: block;
    }

    .kba-section-title h2 {
        font-size: 24px;
    }

    .kba-webinar-modal {
        padding: 12px;
        align-items: flex-start;
    }

    .kba-webinar-modal-dialog {
        border-radius: 18px;
    }

    .kba-webinar-modal-header {
        padding: 16px;
    }

    .kba-webinar-modal-header h3 {
        font-size: 18px;
    }

    .kba-webinar-modal.kba-registration-modal .kba-webinar-modal-content iframe {
        height: 430px;
    }

    .kba-webinar-modal.kba-recording-modal .kba-webinar-modal-content iframe {
        height: 560px;
    }
}



.kba-webinars-section {
    margin-top: 34px;
}

.kba-webinars-section-past {
    margin-top: 54px;
}

.kba-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.kba-section-count {
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #1f3b64;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    flex: 0 0 38px;
}