/* ============================================================
   LIVE WEBINARS PAGE
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --blue-primary:   #6e3482;
    --blue-mid:       #6e3482;
    --blue-light:     #9b5bb5;
    --blue-pale:      #f3eaf8;
    --blue-border:    #d4b3e8;
    --pink:           #572766;
    --green-badge:    #16a34a;
    --green-pale:     #dcfce7;
    --text-dark:      #0f172a;
    --text-mid:       #334155;
    --text-soft:      #64748b;
    --text-muted:     #94a3b8;
    --surface:        #ffffff;
    --bg:             #faf7fc;
    --shadow-card:    0 2px 12px rgba(110,52,130,0.10);
    --shadow-hover:   0 12px 36px rgba(110,52,130,0.20);
    --radius-card:    14px;
}

* { box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif; }

/* ── Page wrapper ── */
.lw-page {
    background: var(--bg);
    padding: 0;
}

/* ══════════════════════════════════════════
   HERO TITLE SECTION
══════════════════════════════════════════ */
.lw-hero {
    background: linear-gradient(
        135deg,
        #9b5bb5 0%,
        #6e3482 55%,
        #572766 100%
    );
    padding: 16px 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,0,102,0.12) 0%, transparent 45%);
    pointer-events: none;
}

.lw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.lw-live-dot {
    font-size: 8px;
    color: #ef4444;
    animation: livePulse 1.2s infinite;
}

.lw-hero-title {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -1px;
    line-height: 1.15;
}

.lw-hero-title span {
    background: linear-gradient(90deg, #f3eaf8, #d4b3e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lw-hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.78);
    margin: 0 0 32px;
    font-weight: 500;
}

/* ── Search ── */
.lw-search-form { position: relative; z-index: 2; }

.lw-search-box {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.lw-search-box i.fa-search {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9b5bb5;
    font-size: 15px;
    z-index: 1;
}

.lw-search-box input {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 50px;
    border: 2px solid transparent;
    border-radius: 26px;
    font-size: 14.5px;
    font-weight: 500;
    font-family: inherit;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transition: all .28s;
    color: var(--text-dark);
}

.lw-search-box input:focus {
    outline: none;
    box-shadow: 0 8px 36px rgba(0,0,0,0.22), 0 0 0 3px rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.lw-search-box input::placeholder { color: var(--text-muted); }

.lw-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color .2s;
    z-index: 1;
}
.lw-search-clear:hover { color: var(--pink); }

/* ══════════════════════════════════════════
   TOOLBAR
══════════════════════════════════════════ */
.lw-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 28px;
    background: var(--surface);
    border-bottom: 1.5px solid #e8eef8;
    flex-wrap: wrap;
}

.lw-toolbar-center {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.lw-results-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lw-count {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-soft);
    white-space: nowrap;
}

.lw-active-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.lw-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--blue-pale);
    color: var(--blue-primary);
    border: 1.5px solid var(--blue-border);
    border-radius: 50px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 600;
}

.lw-tag i { font-size: 10px; color: var(--blue-mid); }

.lw-tag-clear {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff0f5;
    color: var(--pink);
    border: 1.5px solid #ffb3d1;
    border-radius: 50px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.lw-tag-clear:hover { background: var(--pink); color: #fff; border-color: var(--pink); }

/* Filter button */
.lw-filter-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, #9b5bb5, #6e3482);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-family: inherit;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .28s;
    position: relative;
}

.lw-filter-btn:hover {
    background: linear-gradient(135deg, #6e3482, #572766);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(110,52,130,0.35);
}

.lw-filter-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
    position: absolute;
    top: -3px;
    right: -3px;
}

/* ══════════════════════════════════════════
   FILTER PANEL
══════════════════════════════════════════ */
.lw-filter-panel {
    background: var(--surface);
    border-bottom: 2px solid var(--blue-border);
    padding: 24px 28px 20px;
    display: none;
    animation: slideDown .3s ease;
}

.lw-filter-panel.active { display: block; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lw-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 20px;
}

.lw-filter-group h6 {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--blue-pale);
}

.lw-filter-group h6 i { color: var(--blue-light); }

.lw-filter-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--text-mid);
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 7px;
    transition: all .2s;
    margin-bottom: 2px;
}

.lw-filter-label input[type="checkbox"],
.lw-filter-label input[type="radio"] {
    width: 15px;
    height: 15px;
    accent-color: var(--blue-mid);
    cursor: pointer;
    flex-shrink: 0;
    order: 1;
}

.filter-count {
    order: 3;
}

.filter-label-text {
    flex: 1;
    order: 2;
}

.lw-filter-label:hover { background: var(--blue-pale); color: var(--blue-primary); }

.lw-empty-filter { font-size: 12px; color: var(--text-muted); margin: 0; }

.lw-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1.5px solid #f0f4fb;
}

.lw-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    transition: all .2s;
}
.lw-filter-reset:hover { border-color: var(--pink); color: var(--pink); background: #fff0f5; }

.lw-filter-apply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    padding: 9px 22px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #9b5bb5, #6e3482);
    cursor: pointer;
    transition: all .28s;
}
.lw-filter-apply:hover {
    background: linear-gradient(135deg, #6e3482, #572766);
    box-shadow: 0 5px 14px rgba(110,52,130,0.35);
    transform: translateY(-1px);
}

/* =========================================================
   WEBINAR GRID
========================================================= */

.webinar-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
    padding: 26px 28px;
}


/* =========================================================
   WEBINAR CARD
========================================================= */

.webinar-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: #ffffff;
    border: 1.5px solid #dcbfe7;
    border-radius: 24px;

    box-shadow: 0 4px 16px rgba(110, 52, 130, 0.08);

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;

    position: relative;
}

.webinar-item:hover {
    transform: translateY(-5px);
    border-color: #b97fd4;
    box-shadow: 0 14px 34px rgba(110, 52, 130, 0.16);
}


/* =========================================================
   CARD TITLE
========================================================= */

.webinar-card-title {
    padding: 20px 18px 12px;
    background: #ffffff;
}

.webinar-title {
    margin: 0;

    color: #18202f;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: 45px;
}


/* =========================================================
   MAIN INFORMATION
========================================================= */

.webinar-card-info {
    display: grid;
    grid-template-columns: .85fr 1.15fr 1fr;

    margin: 0 8px;
    border-top: 1px solid #e8e1ed;
}

.webinar-info-box {
    min-height: 104px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 12px 10px;
}

.webinar-info-box + .webinar-info-box {
    border-left: 1px solid #e5dce9;
}


/* =========================================================
   DATE
========================================================= */

.webinar-date-box .date-day {
    color: #6e3482;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.webinar-date-box .date-month {
    margin-top: 7px;

    color: #6e3482;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   TIME
========================================================= */

.webinar-time-primary {
    color: #343b4a;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.webinar-time-secondary {
    margin-top: 4px;

    color: #7b8495;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.webinar-duration {
    margin-top: 8px;

    color: #6f7a8d;
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   INSTRUCTOR
========================================================= */

.webinar-instructor-box {
    gap: 6px;
}

.instructor-photo {
    width: 54px;
    height: 54px;

    object-fit: cover;
    border-radius: 14px;

    border: 1px solid #eee7f1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.instructor-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.instructor-name {
    color: #3c4350;
    font-size: 12.5px;
    font-weight: 700;

    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.instructor-designation {
    margin-top: 2px;

    color: #7c8594;
    font-size: 10.5px;
    font-weight: 500;

    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   STATUS BAR
========================================================= */

.webinar-status-bar {
    margin: 8px 7px 0;

    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 7px 12px;

    background: #eeeeee;
    border-radius: 10px;

    color: #5d6675;
}


/* Upcoming */

.status-upcoming {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    color: #596577;

    font-size: 12px;
    font-weight: 700;
}


/* Live */

.status-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #b42318;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
}

.status-live-dot {
    width: 8px;
    height: 8px;

    background: #ef4444;
    border-radius: 50%;

    animation: livePulse 1.2s infinite;
}


/* Ended */

.status-ended {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #6b7280;

    font-size: 11px;
    font-weight: 700;
}


/* Countdown */

.countdown {
    color: #596577;

    font-size: 11px;
    font-weight: 700;

    text-align: center;
    line-height: 1.4;
}


/* =========================================================
   TEST BADGE
========================================================= */

.badge-test {
    display: inline-block;

    margin-left: 5px;
    padding: 3px 7px;

    background: #f3e8ff;
    color: #6e3482;

    border: 1px solid #dfc5eb;
    border-radius: 5px;

    font-size: 9px;
    font-weight: 700;

    vertical-align: middle;
}


/* =========================================================
   CARD FOOTER
========================================================= */

.webinar-card-footer {
    margin-top: 10px;

    padding: 14px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: linear-gradient(
        135deg,
        #d7b8e6 0%,
        #c69bdc 100%
    );
}


/* =========================================================
   PRICE
========================================================= */

.price-tag {
    color: #542267;

    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.price-tag.free {
    padding: 5px 11px;

    background: rgba(255,255,255,.72);
    color: #16803c;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   ENROLL BUTTON
========================================================= */

.enroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 9px 17px;

    background: #6e3482;
    color: #ffffff;

    border: none;
    border-radius: 50px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
    white-space: nowrap;

    box-shadow: 0 4px 10px rgba(110, 52, 130, 0.22);

    transition: all .25s ease;
}

.enroll-btn:hover {
    background: #5a286b;
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 7px 16px rgba(110, 52, 130, 0.28);
    text-decoration: none;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.webinar-list .empty-state {
    grid-column: 1 / -1;

    text-align: center;

    color: var(--text-soft);

    padding: 60px 20px;

    font-size: 15px;
    font-weight: 500;
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes livePulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .45;
        transform: scale(1.35);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .webinar-list {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 768px) {

    .webinar-list {
        grid-template-columns: repeat(2, 1fr);
        padding: 18px 16px;
        gap: 18px;
    }

    .webinar-card-title {
        padding: 18px 15px 11px;
    }

    .webinar-title {
        font-size: 14px;
    }

    .webinar-card-info {
        grid-template-columns: .8fr 1.1fr 1fr;
        margin: 0 6px;
    }

    .webinar-info-box {
        padding: 10px 7px;
        min-height: 100px;
    }

    .webinar-date-box .date-day {
        font-size: 30px;
    }

    .webinar-time-primary {
        font-size: 11.5px;
    }

    .webinar-time-secondary {
        font-size: 10px;
    }

    .webinar-duration {
        font-size: 11px;
    }

    .instructor-photo {
        width: 48px;
        height: 48px;
    }

    .webinar-card-footer {
        padding: 13px 14px;
    }

}


@media (max-width: 580px) {

    .webinar-list {
        grid-template-columns: 1fr;
        padding: 14px 12px;
        gap: 16px;
    }

    .webinar-card-title {
        padding: 18px 16px 11px;
    }

    .webinar-title {
        font-size: 14.5px;
        min-height: 43px;
    }

    .webinar-card-info {
        grid-template-columns: .85fr 1.15fr 1fr;
    }

    .webinar-info-box {
        min-height: 98px;
        padding: 9px 6px;
    }

    .webinar-date-box .date-day {
        font-size: 32px;
    }

    .webinar-date-box .date-month {
        font-size: 12px;
    }

    .webinar-time-primary {
        font-size: 12px;
    }

    .webinar-time-secondary {
        font-size: 9.5px;
    }

    .webinar-duration {
        font-size: 10.5px;
    }

    .instructor-photo {
        width: 50px;
        height: 50px;
    }

    .instructor-name {
        font-size: 11.5px;
    }

    .instructor-designation {
        font-size: 9.5px;
    }

    .webinar-status-bar {
        min-height: 40px;
    }

    .webinar-card-footer {
        padding: 13px 14px;
    }

    .price-tag {
        font-size: 17px;
    }

    .enroll-btn {
        padding: 8px 15px;
        font-size: 11.5px;
    }

}

/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
.lw-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 28px;
    background: var(--surface);
    border-top: 1.5px solid #e8eef8;
    flex-wrap: wrap;
    margin: 0;
}

.lw-pag-left {
    flex: 1;
    min-width: 160px;
}

.lw-perpage-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

.lw-perpage-form select {
    padding: 7px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--blue-border);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    color: var(--blue-primary);
    background: var(--surface);
    cursor: pointer;
    transition: all .25s;
}

.lw-perpage-form select:focus {
    outline: none;
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(110,52,130,0.10);
}

.lw-pag-center {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.lw-pag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    transition: all .25s;
    border: 1.5px solid var(--blue-border);
    background: var(--surface);
    color: var(--blue-mid);
    cursor: pointer;
    white-space: nowrap;
}

.lw-pag-btn:hover:not(.disabled):not(.active) {
    background: linear-gradient(135deg, #9b5bb5, #6e3482);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110,52,130,0.30);
    text-decoration: none;
}

.lw-pag-btn.active {
    background: linear-gradient(135deg, #9b5bb5, #6e3482);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(110,52,130,0.35);
    cursor: default;
}

.lw-pag-btn.disabled {
    color: var(--text-muted);
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
}

.lw-pag-right {
    flex: 1;
    min-width: 120px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

.lw-pag-right strong { color: var(--blue-primary); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1200px) {
    .webinar-list { grid-template-columns: repeat(2, 1fr); }
    .lw-filter-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .webinar-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .lw-hero { padding: 36px 20px 36px; }
    .lw-toolbar { padding: 14px 16px; }
    .webinar-list { padding: 16px; }
    .lw-filter-panel { padding: 20px 16px; }
    .lw-filter-grid { grid-template-columns: 1fr; gap: 16px; }
    .lw-pagination { padding: 16px; flex-direction: column; align-items: center; }
    .lw-pag-left, .lw-pag-right { text-align: center; }
}

@media (max-width: 580px) {
    .webinar-list { grid-template-columns: 1fr; padding: 12px; }
    .lw-pag-btn { min-width: 34px; height: 34px; font-size: 12px; }
}

/* Filter count badge */
.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6e3482;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 50px;
    margin-left: auto;
    line-height: 1;
    flex-shrink: 0;
}

.lw-filter-label:hover .filter-count {
    background: #572766;
}
