:root {
    --primary: #2b59ff;
    --primary-dark: #1f45d8;
    --text-main: #1f2937;
    --text-soft: #6b7280;
    --border: #e5e7eb;
    --bg-soft: #f7f9fc;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 18px 40px rgba(15, 23, 42, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f8fafc;
    color: var(--text-main);
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.webinar-main {
    min-height: 100vh;
}

.webinar-shell {
    width: min(1200px, calc(100% - 32px));
    margin-inline: auto;
}

/* hero */
.webinar-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 40px;
    background:
        radial-gradient(circle at top right, rgba(43, 89, 255, 0.15), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.webinar-hero__content {
    max-width: 760px;
    padding: 24px 0;
}

.webinar-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(43, 89, 255, 0.08);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.webinar-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.3;
    color: #111827;
}

.webinar-hero p {
    margin: 0;
    font-size: 16px;
    line-height: 2;
    color: var(--text-soft);
    max-width: 680px;
}

.webinar-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-stat {
    min-width: 140px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(43, 89, 255, 0.08);
    border-radius: 18px;
    padding: 16px 18px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 24px rgba(43, 89, 255, 0.05);
}

.hero-stat strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.hero-stat span {
    font-size: 14px;
    color: var(--text-soft);
}

/* section head */
.webinar-list-section {
    padding: 42px 0 64px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-head__mini {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: #111827;
}

/* grid */
.webinar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.webinar-card {
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.webinar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(43, 89, 255, 0.14);
}

.webinar-card__image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef2ff;
}

.webinar-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.webinar-card:hover .webinar-card__image {
    transform: scale(1.05);
}

.webinar-card__tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.75);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.webinar-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.webinar-card__meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.meta-chip i {
    color: var(--primary);
    font-size: 13px;
}

.webinar-card__title {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.7;
    color: #111827;
}

.webinar-card__desc {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 2;
    flex: 1;
}

.webinar-card__footer {
    margin-top: 22px;
    display: flex;
    justify-content: flex-start;
}

.details-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 20px rgba(43, 89, 255, 0.18);
}

.details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(43, 89, 255, 0.22);
    color: #fff;
}

/* empty state */
.empty-state {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.empty-state__icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    background: rgba(43, 89, 255, 0.08);
    color: var(--primary);
    font-size: 30px;
}

.empty-state h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.empty-state p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 2;
}

/* pagination */
.pagination-wrap {
    margin-top: 38px;
    display: flex;
    justify-content: center;
}

.pagination-wrap nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pagination-wrap .pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.pagination-wrap .page-item {
    list-style: none;
}

.pagination-wrap .page-link,
.pagination-wrap span[aria-current="page"] span,
.pagination-wrap .page-item span,
.pagination-wrap .page-item a {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px !important;
    border: 1px solid var(--border);
    background: #fff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.pagination-wrap .page-item a:hover {
    background: rgba(43, 89, 255, 0.08);
    border-color: rgba(43, 89, 255, 0.18);
    color: var(--primary);
}

.pagination-wrap .page-item.active span,
.pagination-wrap [aria-current="page"] span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination-wrap .page-item.disabled span {
    opacity: 0.45;
    cursor: not-allowed;
}

/* responsive */
@media (max-width: 991px) {
    .webinar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .webinar-hero {
        padding: 44px 0 32px;
    }
}

@media (max-width: 767px) {
    .webinar-shell {
        width: min(100% - 20px, 1200px);
    }

    .webinar-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .webinar-hero h1 {
        font-size: 30px;
    }

    .webinar-hero p {
        font-size: 14px;
    }

    .webinar-card__body {
        padding: 16px;
    }

    .webinar-card__title {
        font-size: 18px;
    }

    .details-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stat {
        flex: 1 1 calc(50% - 7px);
        min-width: unset;
    }

    .section-head {
        margin-bottom: 20px;
    }

    .section-head h2 {
        font-size: 22px;
    }
}