/* ───────── Outer section ───────── */
.le-events-section {
    padding-top: 24px;
    padding-bottom: 80px;
}

/* ───────── Page header ───────── */
.le-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0 16px;
    flex-wrap: wrap;
}

.le-page-head__title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0d2d52;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.le-page-head__sub {
    font-size: 0.92rem;
    color: #6b7a8d;
    margin: 0;
}

.le-page-head__count {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 14px;
    background: #f0faf5;
    border: 1px solid #c8edd6;
    border-radius: 50px;
}

.le-page-head__count-num {
    font-size: 1rem;
    font-weight: 700;
    color: #138b4c;
    line-height: 1;
}

.le-page-head__count-label {
    font-size: 0.78rem;
    color: #138b4c;
    font-weight: 500;
}

@media (max-width: 575px) {
    .le-page-head__title { font-size: 1.4rem; }
    .le-page-head__count { padding: 10px 16px; }
    .le-page-head__count-num { font-size: 1.2rem; }
}

/* ───────── Live Events Listing — Filter Bar + Chips ───────── */

.le-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
    margin-bottom: 18px;
}

.le-filter-bar__search {
    flex: 1 1 280px;
    position: relative;
    min-width: 220px;
}

.le-filter-bar__search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a96a3;
    pointer-events: none;
}

.le-filter-bar__search input {
    width: 100%;
    height: 42px;
    padding: 8px 14px 8px 38px;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    background: #f8f9fb;
    font-size: 0.92rem;
    color: #1a2b40;
    transition: border-color 0.2s, background 0.2s;
}

.le-filter-bar__search input:focus {
    outline: none;
    border-color: #138b4c;
    background: #fff;
}

/* Reusable .sa-dd (mirror of admin component) — frontend scoped within filter bar */
.le-filter-bar .sa-dd { display: inline-block; position: relative; }
.le-filter-bar .sa-dd__btn {
    height: 42px;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a2b40;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    padding: 0 14px;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.2s;
}
.le-filter-bar .sa-dd__btn,
.le-filter-bar .sa-dd__btn:focus,
.le-filter-bar .sa-dd__btn:active,
.le-filter-bar .sa-dd__btn.btn:focus,
.le-filter-bar .sa-dd__btn.btn:active {
    box-shadow: none !important;
    outline: none;
}
.le-filter-bar .sa-dd__btn:hover { border-color: #c5cdd6; background: #fff; }
.le-filter-bar .sa-dd__btn:focus { border-color: #138b4c; }

/* Show menu manually (BS5 .show or frontend toggle) */
.le-filter-bar .sa-dd .sa-dd__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #fff;
    z-index: 1000;
}
.le-filter-bar .sa-dd.show .sa-dd__menu,
.le-filter-bar .sa-dd .sa-dd__menu.show {
    display: block;
}
.le-filter-bar .sa-dd__label { text-align: left; color: #1a2b40; }
.le-filter-bar .sa-dd__caret { font-size: 11px; color: #8a96a3; margin-left: auto; }

.sa-dd__menu {
    min-width: 180px;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}
.sa-dd__menu .dropdown-item.sa-dd__item {
    position: relative;
    border-radius: 6px;
    padding: 8px 12px 8px 32px !important;
    font-size: 0.88rem;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}
.sa-dd__menu .sa-dd__item:hover,
.sa-dd__menu .sa-dd__item:focus { background: #f3f4f6; color: #111827; }
.sa-dd__menu .sa-dd__item.active,
.sa-dd__menu .sa-dd__item.active:hover {
    background: #111827;
    color: #fff;
}
.sa-dd__menu .sa-dd__item.active::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 10px;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.le-filter-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.le-filter-bar__btn--primary {
    background: #138b4c;
    color: #fff;
}

.le-filter-bar__btn--primary:hover {
    background: #0f7040;
    color: #fff;
}

.le-filter-bar__btn--ghost {
    background: transparent;
    color: #6b7a8d;
    border-color: #e5e9f0;
}

.le-filter-bar__btn--ghost:hover {
    background: #f8f9fb;
    color: #1a2b40;
    border-color: #c5cdd6;
}

/* ───────── Active filter chips ───────── */

.le-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: #6b7a8d;
}

.le-active-filters__label {
    color: #8a96a3;
    margin-right: 4px;
}

.le-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 12px;
    background: #f0faf5;
    color: #138b4c;
    border: 1px solid #c8edd6;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
}

.le-chip a {
    color: #138b4c;
    text-decoration: none;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.2s;
}

.le-chip a:hover { color: #0f7040; }

/* ───────── Result count ───────── */

.le-result-count {
    margin-bottom: 18px;
    padding: 10px 0;
    font-size: 0.88rem;
    color: #6b7a8d;
    border-bottom: 1px solid #f0f2f5;
}

.le-result-count strong {
    color: #1a2b40;
    font-weight: 700;
}

/* ───────── Equal-height event cards ───────── */
.event-holder.row {
    display: flex;
    flex-wrap: wrap;
}

.event-holder > .col {
    display: flex;
    margin-bottom: 24px;
}

.event-holder .courses__item {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.event-holder .courses__item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-holder .courses__item-content .title {
    min-height: 2.6em;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-holder .courses__item-bottom {
    margin-top: auto;
}

/* ───────── Responsive ───────── */

@media (max-width: 768px) {
    .le-filter-bar {
        padding: 14px;
    }
    .le-filter-bar__search { flex: 1 1 100%; }
    .le-filter-bar .sa-dd { flex: 1 1 calc(50% - 6px); }
    .le-filter-bar .sa-dd__btn { width: 100%; min-width: 0; }
}
