/* =========================================================
   RCG Academy - Shared events list (homepage + archive)
   Card design matches reference mockup (horizontal date + content)
   ========================================================= */

#page.drawers .main-inner {
    margin-top: 0 !important;
}

.block_remuiupevents.block {
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.block_remuiupevents .card,
.block_remuiupevents .block-body-wrapper,
.block_remuiupevents .card-body {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rcg-events-list,
.rcg-events-list * {
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}

.rcg-events-section.rcg-events-list {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 80px 0;
    background: #ffffff;
}

.rcg-events-list-inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Grid */

.rcg-events-list-grid {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* Card */

.rcg-events-list .rcg-event-card {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #ebe7e0;
    border-radius: 16px;
}

.rcg-events-list .rcg-event-card:hover {
    border-color: #058bc5;
}

.rcg-events-list .rcg-event-date {
    width: 178px;
    min-width: 178px;
    background: #0f2044;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.rcg-events-list .rcg-event-weekday {
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 120%;
    text-transform: uppercase;
}

.rcg-events-list .rcg-event-day {
    color: #ffffff;
    font-size: 56px;
    font-weight: 800;
    line-height: 100%;
}

.rcg-events-list .rcg-event-date--nodate .rcg-event-day--placeholder {
    color: #ffffff;
    font-size: 56px;
    font-weight: 800;
    line-height: 100%;
}

.rcg-events-list .rcg-event-month {
    margin-top: 6px;
    color: #ffde00;
    font-size: 13px;
    font-weight: 600;
    line-height: 100%;
    text-transform: uppercase;
}

.rcg-events-list .rcg-event-content {
    min-width: 0;
    min-height: 234px;
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rcg-events-list .rcg-event-action {
    width: 142px;
    min-height: 54px;
    margin-top: auto;
    flex-shrink: 0;
}

.rcg-events-list .rcg-event-meta {
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    align-content: flex-start;
    gap: 8px 12px;
    flex-wrap: wrap;
    overflow: hidden;
}

.rcg-events-list .rcg-event-meta-start {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    min-width: 0;
    order: 1;
}

.rcg-events-list .rcg-event-meta-flexfill {
    flex: 1 1 12px;
    min-width: 12px;
    height: 1px;
    order: 2;
}

.rcg-events-list .rcg-event-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #058bc5;
    font-size: 13px;
    font-weight: 700;
    line-height: 100%;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.rcg-events-list .rcg-event-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #42be2f;
    display: inline-block;
    flex-shrink: 0;
}

.rcg-events-list .rcg-event-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #101828;
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    white-space: nowrap;
    flex-shrink: 0;
}

.rcg-events-list .rcg-event-time i {
    color: #0f2044;
    font-size: 16px;
}

.rcg-events-list .rcg-event-category {
    height: 28px;
    order: 3;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e8e3dc;
    color: #101828;
    font-size: 13px;
    font-weight: 800;
    line-height: 100%;
    white-space: nowrap;
    flex: 0 0 auto;
    max-width: 100%;
}

.rcg-events-list .rcg-event-card-title {
    max-height: fit-content;
    min-height: fit-content;
    margin: 0 0 10px;
    overflow: hidden;
    color: #000000;
    font-size: 24px;
    font-weight: 700;
    line-height: 120%;
}

.rcg-events-list .rcg-event-card-title a {
    color: #000000;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rcg-events-list .rcg-event-card-title a:hover {
    color: #058bc5;
    text-decoration: none;
}

.rcg-events-list .rcg-event-details {
    min-height: 22px;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 28px;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    line-height: 100%;
}

.rcg-events-list .rcg-event-details span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.rcg-events-list .rcg-event-details i,
.rcg-events-list .rcg-event-details .edw-icon {
    color: #0f2044;
    font-size: 14px;
}

.rcg-events-list .rcg-event-button,
.rcg-events-list .btn.btn-primary.rcg-event-button,
.rcg-events-list .btn.btn-secondary.rcg-event-button {
    width: 142px;
    height: 54px;
    min-height: 54px;
    margin-top: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #058bc5 !important;
    border-radius: 999px;
    background: #058bc5 !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 100%;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none !important;
}

.rcg-events-list .rcg-event-button:hover,
.rcg-events-list .btn.btn-primary.rcg-event-button:hover,
.rcg-events-list .btn.btn-secondary.rcg-event-button:hover {
    background: #016691 !important;
    border-color: #016691 !important;
    color: #ffffff !important;
    text-decoration: none;
}

/* View all */

.rcg-events-list .rcg-events-viewall-wrap {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.rcg-events-list .rcg-events-viewall {
    min-width: 282px;
    height: 54px;
    min-height: 54px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #058bc5 !important;
    border-radius: 999px;
    background: #058bc5 !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 100%;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none !important;
}

.rcg-events-list .rcg-events-viewall:hover {
    background: #016691 !important;
    border-color: #016691 !important;
    color: #ffffff !important;
    text-decoration: none;
}

/* Empty state */

.rcg-events-list .rcg-events-empty {
    width: 100%;
    max-width: 708px;
    margin: 0 auto;
}

.rcg-events-list .rcg-events-empty-card {
    padding: 40px;
    border: 2px solid #ebe7e0;
    border-radius: 16px;
    background: #ffffff;
    color: #344054;
    text-align: center;
}

.rcg-events-list .rcg-events-empty-badge {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #e8e3dc;
    color: #101828;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.rcg-events-list .rcg-events-empty-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 800;
    color: #000000;
}

.rcg-events-list .rcg-events-empty-card p {
    margin: 0;
    color: #344054;
    font-size: 16px;
    line-height: 160%;
}

/* Responsive */

@media (max-width: 991px) {
    .rcg-events-list-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .rcg-events-section.rcg-events-list {
        padding: 48px 0;
    }

    .rcg-events-list-inner {
        padding: 0 16px;
    }

    .rcg-events-list .rcg-event-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .rcg-events-list .rcg-event-date {
        width: 120px;
        min-width: 120px;
    }

    .rcg-events-list .rcg-event-day {
        font-size: 44px;
    }

    .rcg-events-list .rcg-event-content {
        padding: 24px 18px;
    }

    .rcg-events-list .rcg-event-meta {
        height: 64px;
        min-height: 64px;
        max-height: 64px;
    }

    .rcg-events-list .rcg-event-card-title {
        min-height: auto;
        max-height: none;
        font-size: 20px;
    }
}

@media (max-width: 596px) {
    .rcg-events-list .rcg-event-meta {
        height: fit-content;
        min-height: fit-content;
        max-height: fit-content;
        display: flex;
        flex-direction: column;
        align-self: center;
    }

    .rcg-event-meta-start {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .rcg-event-card-title {
        text-align: center;
    }

    .rcg-events-list .rcg-event-details {
        display: flex;
        flex-direction: column;
        align-self: center;
        gap: 10px;
    }

    .rcg-event-meta-flexfill {
        display: none;
    }

    .btn.btn-primary.rcg-event-button {
        align-self: center;
    }
}