/* ============================================================
   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:   #f97316;
    --blue-mid:       #ff8500;
    --blue-light:     #ff9d1a;
    --blue-pale:      #fff3e6;
    --blue-border:    #ffd2a6;
    --pink:           #111827;
    --green-badge:    #16a34a;
    --green-pale:     #dcfce7;
    --text-dark:      #0f172a;
    --text-mid:       #334155;
    --text-soft:      #64748b;
    --text-muted:     #94a3b8;
    --surface:        #ffffff;
    --bg:             #f0f4fb;
    --shadow-card:    0 2px 12px rgba(249,115,22,0.10);
    --shadow-hover:   0 12px 36px rgba(249,115,22,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,
        #ff8500 0%,
        #ff8500 55%,
        #ff8500 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: #111827;
    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, #fff7ed, #ffb347);
    -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: var(--blue-light);
    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, #f97316, #ff8500);
    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, #f97316, #ff8500);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(249,115,22,0.35);
}

.lw-filter-dot {
    width: 8px;
    height: 8px;
    background: #111827;
    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, #f97316, #ff8500);
    cursor: pointer;
    transition: all .28s;
}
.lw-filter-apply:hover {
    background: linear-gradient(135deg, #f97316, #ff8500);
    box-shadow: 0 5px 14px rgba(249,115,22,0.35);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   WEBINAR GRID
══════════════════════════════════════════ */
.webinar-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
    padding: 24px 28px;
}

.webinar-row { display: contents; }

.webinar-item {
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform .28s, box-shadow .28s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1.5px solid #e8eef8;
    position: relative;
}

.webinar-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--blue-border);
}

.webinar-card-header {
    position: relative;
    background: linear-gradient(135deg, #f97316 0%, #ff8500 100%);
    padding: 20px 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 90px;
}

.webinar-card-header .instructor-photo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,0.85);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 6px 12px 7px;
    min-width: 56px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.14);
    flex-shrink: 0;
}

.date-badge .badge-month {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--blue-primary);
    text-transform: uppercase;
    letter-spacing: .8px;
    line-height: 1;
    margin-bottom: 2px;
}

.date-badge .badge-day {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.status-pill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10.5px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.status-pill.upcoming {
    background: rgba(255,255,255,0.22);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
}

.status-pill.live-now {
    background: var(--pink);
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-pill.ended {
    background: rgba(0,0,0,0.25);
    color: rgba(255,255,255,0.85);
}

.live-dot {
    width: 7px;
    height: 7px;
    background: white;
    border-radius: 50%;
    animation: livePulse 1.2s infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%   { opacity:1; transform:scale(1); }
    50%  { opacity:.4; transform:scale(1.35); }
    100% { opacity:1; transform:scale(1); }
}

.webinar-card-body {
    padding: 16px 16px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.webinar-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.badge-test {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.card-instructor { display: flex; flex-direction: column; gap: 1px; }
.card-instructor .name { font-size: 13px; font-weight: 700; color: var(--text-mid); margin: 0; }
.card-instructor .designation { font-size: 11.5px; color: var(--text-soft); margin: 0; }

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-primary);
    padding-bottom: 2px;
}

.card-meta i { color: var(--blue-light); font-size: 12px; }
.card-meta .sep { color: var(--blue-border); font-weight: 400; }

.webinar-card-footer {
    padding: 12px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1.5px solid #f0f4fb;
    margin-top: auto;
}

.price-tag {
    font-size: 18px;
    font-weight: 800;
    color: var(--blue-primary);
    letter-spacing: -.3px;
}

.price-tag.free {
    font-size: 13.5px;
    font-weight: 700;
    background: var(--green-pale);
    color: var(--green-badge);
    padding: 5px 12px;
    border-radius: 20px;
}

.enroll-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f97316 0%, #ff8500 100%);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all .28s;
    box-shadow: 0 3px 10px rgba(249,115,22,0.30);
}

.enroll-btn:hover {
    background: linear-gradient(135deg, #f97316 0%, #ff8500 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(249,115,22,0.35);
    color: white;
    text-decoration: none;
}

.webinar-list .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-soft);
    padding: 60px 20px;
    font-size: 15px;
    font-weight: 500;
}

.countdown {
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-align: center;
    line-height: 1.4;
}

/* ══════════════════════════════════════════
   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(249,115,22,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, #ff8500, #f97316);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249,115,22,0.30);
    text-decoration: none;
}

.lw-pag-btn.active {
    background: linear-gradient(135deg, #f97316, #ff8500);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(249,115,22,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: #ff8500;
    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: #111827;
}
