.webinar-index-section {
    --bs-border-color: #dee2e6;
    --bs-gray-100: #f8f9fa;
    --bs-gray-300: #ced4da;
    --bs-gray-400: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-danger: #dc3545;
    --or-green: #57ae57;
    --or-links: #078c07;
    --webinar-type-partner-color: #0d6efd;
    --webinar-type-partner-bg: #eef4ff;
    --webinar-type-focus-bg: #def1de;
    --webinar-type-hood-color: #6f42c1;
    --webinar-type-hood-bg: #f3ecff;
    --webinar-type-qa-bg: #fdebec;
    --webinar-type-firstlook-color: #fd7e14;
    --webinar-type-firstlook-bg: #fff3e6;
    padding-bottom: 3rem;
}

.webinar-back-link-wrap {
    margin: 2rem 0 1.5rem;
}

.webinar-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.webinar-index-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    column-gap: 3rem;
    row-gap: 0;
    align-items: start;
}

.webinar-index-filter-header {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 30px;
}

.webinar-index-layout > [id^="webinar-index-results-header-"] {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    min-height: 30px;
}

.webinar-index-layout > [id^="webinar-index-results-header-"] .webinar-index-results-header {
    width: 100%;
}

.webinar-index-layout-divider-filters {
    grid-column: 1;
    grid-row: 2;
    margin: 1rem 0;
}

.webinar-index-layout-divider-results {
    grid-column: 2;
    grid-row: 2;
    margin: 1rem 0;
}

.webinar-index-sidebar {
    grid-column: 1;
    grid-row: 3;
}

.webinar-index-main {
    grid-column: 2;
    grid-row: 3;
    min-width: 0;
}

.webinar-index-divider {
    border: 0;
    border-top: 1px solid var(--bs-border-color);
    margin: 1rem 0;
}

.webinar-index-results-divider {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.webinar-index-filters-sidebar {
    font-size: inherit;
    line-height: 1.5;
}

.webinar-index-filter-heading,
.webinar-index-filter-group-title,
.webinar-index-filter-option__label,
.webinar-clear-filters-link {
    font-size: inherit;
    line-height: 1.5;
}

.webinar-index-filter-heading,
.webinar-index-filter-group-title {
    font-weight: 700;
}

.webinar-clear-filters-link {
    -webkit-appearance: none;
    appearance: none;
    display: inline;
    font: inherit;
    line-height: inherit;
    color: var(--or-links);
    white-space: nowrap;
    text-decoration: none;
    font-weight: normal;
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    cursor: pointer;
    vertical-align: baseline;
}

.webinar-clear-filters-link:hover,
.webinar-clear-filters-link:focus {
    color: var(--or-links);
    text-decoration: underline;
    outline: none;
    box-shadow: none;
}

.webinar-index-search-wrap {
    position: relative;
}

.webinar-index-search-wrap .webinar-search-input {
    width: 100%;
    height: 40px;
    padding: 8px 40px 8px 12px;
    border: 1px solid var(--bs-border-color);
    border-radius: 6px;
    box-shadow: none;
    font-size: inherit;
}

.webinar-index-search-wrap .webinar-search-input:focus {
    border-color: var(--bs-gray-400);
    box-shadow: none;
}

.webinar-index-search-wrap .webinar-search-btn {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bs-gray-600);
    line-height: 1;
}

.webinar-index-filter-group {
    margin: 0;
}

.webinar-index-filter-group-title {
    display: block;
    margin-bottom: 0.75rem;
}

.webinar-index-filter-options {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.webinar-index-filter-option {
    margin-bottom: 0.625rem;
}

.webinar-index-filter-option:last-child {
    margin-bottom: 0;
}

.webinar-index-filter-option__label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.webinar-index-filter-option__label .webinar-index-filter-option__checkbox {
    margin: 0;
    flex-shrink: 0;
    position: static;
}

.webinar-index-filters-modal .webinar-index-filter-group-title {
    display: block;
    margin-bottom: 0.75rem;
}

.webinar-index-filters-modal .webinar-index-divider {
    margin: 1.25rem 0;
}

.webinar-index-filters-modal .webinar-search-input {
    height: 40px;
}

[id^="webinar-filter-modal-"] .modal-header {
    padding: 1rem 1.25rem;
}

[id^="webinar-filter-modal-"] .modal-body {
    padding: 1.25rem;
}

[id^="webinar-filter-modal-"] .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
}

[id^="webinar-filter-modal-"] .modal-footer .btn {
    margin: 0;
}

.webinar-index-results {
    padding-bottom: 2rem;
}

.webinar-index-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 30px;
}

.webinar-index-filter-summary {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--bs-gray-600);
    font-size: inherit;
}

.webinar-index-results-header-spacer {
    flex: 1 1 auto;
}

.webinar-index-sort {
    flex-shrink: 0;
}

.webinar-index-sort .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    white-space: nowrap;
    border-radius: 6px;
    font-size: inherit;
}

.webinar-index-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.webinar-tile {
    display: flex;
    flex-direction: column;
    aspect-ratio: 1;
    width: 100%;
    font-size: inherit;
    line-height: 1.5;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #fff;
}

.webinar-tile:hover,
.webinar-tile:focus {
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.webinar-tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    background: var(--bs-gray-100);
}

/* Shrinks first so the title and footer keep their full height */
.webinar-tile-image {
    position: relative;
    flex: 0 1 50%;
    min-height: 0;
    overflow: hidden;
    background: var(--bs-gray-100);
}

.webinar-tile-image__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.webinar-tile-image-fallback {
    background: var(--bs-gray-100);
}

.webinar-tile-image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
}

.webinar-tile-image-fallback .webinar-tile-image-overlay {
    position: static;
    height: 100%;
    align-items: flex-start;
    background: transparent;
}

.webinar-tile-header-partner {
    background: var(--webinar-type-partner-bg);
}

.webinar-tile-header-focus {
    background: var(--webinar-type-focus-bg);
}

.webinar-tile-header-hood {
    background: var(--webinar-type-hood-bg);
}

.webinar-tile-header-qa {
    background: var(--webinar-type-qa-bg);
}

.webinar-tile-header-firstlook {
    background: var(--webinar-type-firstlook-bg);
}

.webinar-tile-date {
    font-size: 0.875em;
    line-height: 1.5;
    color: var(--bs-gray-600);
}

.webinar-tile-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem 1rem 0.5rem;
    min-height: 0;
    text-align: left;
}

.webinar-tile-title {
    width: 100%;
    font-size: inherit;
    line-height: 1.5;
    font-weight: 700;
    margin: 0;
    color: #212529;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.content-webinar-detail h1 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.webinar-tile-footer {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0 1rem 0.75rem;
    margin-top: auto;
}

.webinar-tile-partner {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.webinar-tile-partner-mobile-spacer {
    display: none;
}

.webinar-tile-partner-with {
    font-size: 0.875em;
    line-height: 1.5;
    color: var(--bs-gray-600);
    font-weight: normal;
    flex-shrink: 0;
}

.webinar-tile-partner-name {
    font-size: 0.875em;
    line-height: 1.5;
    font-weight: 700;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.webinar-tile-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #212529;
    font-size: 0.875em;
    line-height: 1.5;
    font-weight: normal;
    white-space: nowrap;
    flex-shrink: 0;
}

.webinar-tile-video {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75em;
    height: 1.75em;
    border-radius: 50%;
    background: #212529;
    color: #fff;
    font-size: 0.75em;
}

.webinar-type-badge {
    display: inline-block;
    padding: 0.2em 0.65em;
    border-radius: 999px;
    font-size: 0.75em;
    line-height: 1.5;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.webinar-type-badge-partner {
    color: var(--webinar-type-partner-color);
    border-color: var(--webinar-type-partner-color);
    background: var(--webinar-type-partner-bg);
}

.webinar-type-badge-focus {
    color: var(--or-green);
    border-color: var(--or-green);
    background: var(--webinar-type-focus-bg);
}

.webinar-type-badge-hood {
    color: var(--webinar-type-hood-color);
    border-color: var(--webinar-type-hood-color);
    background: var(--webinar-type-hood-bg);
}

.webinar-type-badge-qa {
    color: var(--bs-danger);
    border-color: var(--bs-danger);
    background: var(--webinar-type-qa-bg);
}

.webinar-type-badge-firstlook {
    color: var(--webinar-type-firstlook-color);
    border-color: var(--webinar-type-firstlook-color);
    background: var(--webinar-type-firstlook-bg);
}

.content-webinarindex .webinar-tile,
.content-webinarindex .webinar-tile-body,
.content-webinarindex .webinar-tile-title {
    text-align: left;
}

.webinar-index-empty {
    text-align: center;
    padding: 3rem 1rem 2rem;
    margin-bottom: 2rem;
    color: var(--bs-gray-600);
}

.webinar-index-empty-icon {
    font-size: 3rem;
    color: var(--bs-gray-300);
    margin-bottom: 1rem;
}

.webinar-index-empty__heading {
    color: #000;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: inherit;
}

.webinar-index-mobile-toolbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
    width: 100%;
}

.webinar-index-mobile-toolbar-divider {
    display: none;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

.webinar-index-mobile-toolbar-start {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.webinar-index-mobile-toolbar-end {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
}

.webinar-index-mobile-toolbar-end .webinar-index-results-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    min-height: 0;
}

.webinar-index-mobile-toolbar-end .webinar-index-sort .dropdown-toggle {
    height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    line-height: 1;
    font-size: inherit;
}

.webinar-index-mobile-toolbar-end .webinar-index-results-header-spacer {
    display: none;
}

.webinar-filter-btn {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.webinar-filter-applying {
    margin-left: 0.5rem;
}

.webinar-filter-count {
    position: absolute;
    top: -0.35rem;
    left: -0.35rem;
    right: auto;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: var(--bs-gray-600);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.25rem;
    text-align: center;
}

.webinar-episode-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}

.webinar-episode-nav .podcast-page-numbers {
    flex: 0 1 auto;
    min-width: 0;
}

.webinar-pagination {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.25rem;
    margin: 0;
}

.webinar-pagination__item {
    float: none;
    display: block;
    flex: 0 0 auto;
}

.webinar-pagination__link {
    float: none;
    margin-left: 0;
    border-radius: 4px;
}

.webinar-episode-nav .podcast-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 2px solid var(--or-green);
    border-radius: 6px;
    color: var(--or-green);
    text-decoration: none;
}

.webinar-episode-nav .podcast-page-btn:hover,
.webinar-episode-nav .podcast-page-btn:focus {
    background-color: var(--or-green);
    color: #fff;
    text-decoration: none;
}

.webinar-episode-nav .podcast-page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.webinar-pagination__item.active .webinar-pagination__link,
.webinar-pagination__item.active .webinar-pagination__link:hover,
.webinar-pagination__item.active .webinar-pagination__link:focus {
    background-color: var(--or-green);
    border-color: var(--or-green);
}

/* lg and below */
@media (max-width: 991.98px) {
    .webinar-index-layout {
        display: block;
    }

    .webinar-index-mobile-toolbar {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }

    .webinar-index-mobile-toolbar-divider {
        display: block;
    }

    .webinar-index-mobile-toolbar-start,
    .webinar-index-mobile-toolbar-end {
        flex: 0 0 auto;
    }

    .webinar-index-tiles {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        max-width: none;
    }

    .webinar-tile {
        aspect-ratio: 6 / 5;
        width: 100%;
        max-width: none;
    }

    .webinar-tile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        flex: 0 0 auto;
        padding: 0.5rem 0.875rem;
    }

    .webinar-tile-partner-mobile-spacer {
        display: block;
        flex: 1 1 auto;
    }

    .webinar-tile-body {
        flex: 1 1 auto;
        min-height: 0;
        padding: 0.625rem 0.875rem;
        justify-content: center;
        align-items: stretch;
        overflow: hidden;
        text-align: left;
    }

    .content-webinar-detail h1 {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .webinar-tile-footer {
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        padding: 0 0.875rem 0.625rem;
    }

    .webinar-episode-nav {
        max-width: none;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .webinar-episode-nav > div:first-child,
    .webinar-episode-nav > div:last-child {
        flex: 0 0 auto;
    }

    .webinar-episode-nav .podcast-page-numbers {
        flex: 1 1 auto;
        min-width: 0;
        overflow: visible;
    }

    .webinar-episode-nav .podcast-page-btn {
        white-space: nowrap;
        padding: 5px 10px;
    }
}

/* lg and up */
@media (min-width: 992px) {
    .webinar-index-tiles {
        grid-template-columns: repeat(3, 1fr);
    }

    .webinar-tile-body {
        padding: 1rem 1.25rem 0.75rem;
        gap: 0.5rem;
    }

    .webinar-tile-footer {
        padding: 0 1.25rem 1rem;
    }

    /* Square tile: the footer row costs a title line */
    .webinar-tile-title--clamp-3 {
        -webkit-line-clamp: 3;
    }
}
