.reia-upcoming-item.show-text .reia-upcoming-info {
            max-height: 350px !important;
            opacity: 1 !important;
            padding-top: 5px !important;
            padding-bottom: 10px !important;
        }
        .reia-upcoming-item.show-text .reia-upcoming-thumb img {
            transform: scale(1.03);
            filter: brightness(0.85);
        }
        .reia-upcoming-item {
            transition: all 0.3s ease;
        }
        .reia-events-shell {
            padding-bottom: 80px;
        }

        .reia-events-intro {
            background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 100%);
            border: 1px solid rgba(18, 27, 48, 0.08);
            border-radius: 24px;
            padding: 32px;
            margin-bottom: 32px;
        }

        .reia-events-intro h2 {
            margin-bottom: 18px;
        }

        .reia-events-intro p {
            margin-bottom: 14px;
            color: #5d6473;
        }

        .reia-event-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
            gap: 28px;
            align-items: stretch;
        }

        .reia-event-card {
            display: flex;
            flex-direction: column;
            min-height: 0;
            height: 950px;
            background: #fff;
            border: 1px solid rgba(18, 27, 48, 0.08);
            border-radius: 24px;
            box-shadow: 0 18px 45px rgba(18, 27, 48, 0.08);
            overflow: hidden;
        }

        .reia-calendar-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 24px 24px 18px;
            border-bottom: 1px solid rgba(18, 27, 48, 0.08);
        }

        .reia-calendar-title {
            margin: 0;
            font-size: 28px;
            color: #ffffff !important;
            font-weight: 700;
        }

        .reia-calendar-nav {
            display: flex;
            gap: 10px;
        }

        .reia-calendar-nav button {
            width: 42px;
            height: 42px;
            border: 0;
            border-radius: 50%;
            background: #121b30;
            color: #fff;
            transition: transform .2s ease, background .2s ease;
        }

        .reia-calendar-nav button:hover {
            transform: translateY(-1px);
            background: #c53531;
        }

        .reia-calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
        }

        .reia-calendar-dow {
            padding: 12px 8px;
            text-align: center;
            font-weight: 700;
            font-size: 13px;
            color: #6b7280;
            background: #f8fafc;
            border-bottom: 1px solid rgba(18, 27, 48, 0.08);
        }

        .reia-calendar-day {
            min-height: 130px;
            padding: 12px;
            border-right: 1px solid rgba(18, 27, 48, 0.08);
            border-bottom: 1px solid rgba(18, 27, 48, 0.08);
            background: #fff;
        }

        .reia-calendar-day:nth-child(7n) {
            border-right: 0;
        }

        .reia-calendar-day.is-other {
            background: #fafafa;
            color: #9ca3af;
        }

        .reia-calendar-day.is-today {
            background: #fff7f7;
        }

        .reia-calendar-date {
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .reia-calendar-events {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .reia-calendar-event {
            display: block;
            padding: 8px 10px;
            border-radius: 12px;
            background: #c53531;
            color: #fff;
            font-size: 12px;
            line-height: 1.35;
            text-decoration: none;
        }

        .reia-calendar-event:hover {
            color: #fff;
            background: #a32724;
        }

        .reia-events-side {
            padding: 24px;
        }

        .reia-events-side {
            display: flex;
            flex-direction: column;
            min-height: 0;
        }

        .reia-side-title {
            margin-bottom: 18px;
        }

        .reia-upcoming-list {
            flex: 1;
            min-height: 0;
            display: flex;
            flex-direction: column;
            gap: 14px;
            overflow-y: auto;
            padding-right: 8px;
        }

        .reia-upcoming-item {
            display: block;
            padding: 16px;
            border-radius: 18px;
            background: #f8fafc;
            border: 1px solid rgba(18, 27, 48, 0.06);
            color: inherit;
            text-decoration: none;
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        }

        .reia-upcoming-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(18, 27, 48, 0.12);
            border-color: rgba(18, 27, 48, 0.12);
        }

        .reia-upcoming-thumb {
            overflow: hidden;
            border-radius: 14px;
            margin-bottom: 14px;
            aspect-ratio: 16 / 9;
            background: #e5e7eb;
        }

        .reia-upcoming-thumb img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

        .reia-upcoming-date {
            display: inline-block;
            margin-bottom: 8px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: .04em;
            text-transform: uppercase;
            color: #c53531;
        }

        .reia-upcoming-item h6 {
            margin-bottom: 8px;
            font-size: 18px;
        }

        .reia-upcoming-item p {
            margin-bottom: 6px;
            color: #5d6473;
            font-size: 14px;
        }

        .reia-calendar-empty,
        .reia-events-loading {
            padding: 26px 24px;
            color: #5d6473;
        }

        .reia-subscribe-bridge {
            margin-bottom: 0;
            padding-bottom: 0;
            padding-top: 18px;
            background:
                radial-gradient(circle at 12% 20%, rgba(196, 53, 49, 0.18), transparent 26%),
                radial-gradient(circle at 88% 18%, rgba(7, 55, 102, 0.22), transparent 22%),
                linear-gradient(135deg, #08162b 0%, #0d2340 52%, #c53531 100%);
        }

        .reia-subscribe-bridge.section-space-bottom,
        .reia-subscribe-bridge.has-space {
            padding-bottom: 0 !important;
            margin-bottom: 0 !important;
        }

        .reia-subscribe-bridge .container {
            position: relative;
        }

        .reia-subscribe-bridge .rs-cta-wrapper {
            position: relative;
            overflow: hidden;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
            padding: 8px 0 16px;
        }

        .reia-subscribe-bridge .rs-cta-wrapper::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.12), transparent 18%),
                radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.08), transparent 22%);
            opacity: 0.16;
            pointer-events: none;
        }

        .reia-subscribe-bridge .rs-cta-wrapper::after {
            content: "";
            position: absolute;
            inset: auto 0 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
            pointer-events: none;
        }

        .reia-subscribe-bridge .rs-cta-content-wrapper {
            position: relative;
            z-index: 1;
        }

        .reia-subscribe-visual {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 120px;
        }

        .reia-subscribe-visual-card {
            position: relative;
            width: min(100%, 110px);
            aspect-ratio: 1 / 1;
            border-radius: 28px;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.14);
            backdrop-filter: blur(8px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
        }

        .reia-subscribe-visual-card::before {
            content: "";
            position: absolute;
            inset: 12px;
            border-radius: 18px;
            border: 1px dashed rgba(255, 255, 255, 0.22);
        }

        .reia-subscribe-visual-card i {
            font-size: 34px;
            line-height: 1;
        }

        .reia-subscribe-visual-badge {
            position: absolute;
            right: 8px;
            bottom: 8px;
            padding: 5px 8px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.16);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #fff;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .reia-subscribe-bridge .section-title {
            text-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
        }

        .reia-subscribe-bridge .rs-cta-input input {
            background: rgba(255, 255, 255, 0.9);
            border-color: rgba(255, 255, 255, 0.08);
        }

        .reia-subscribe-bridge .rs-cta-input input::placeholder {
            color: rgba(13, 35, 64, 0.56);
        }

        .reia-subscribe-bridge .rs-btn.hover-black {
            background: #c53531;
            color: #fff;
        }

        .reia-subscribe-bridge .rs-btn.hover-black:hover {
            background: #ffffff;
            color: #0d2340;
        }

        .reia-subscribe-bridge .rs-form-check label {
            color: rgba(255, 255, 255, 0.82);
        }

        @media (max-width: 991.98px) {
            .reia-event-layout {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 767.98px) {
            .reia-events-intro {
                padding: 22px;
            }

            .reia-calendar-title {
                font-size: 22px;
            }

            .reia-calendar-grid {
                font-size: 12px;
            }

            .reia-calendar-day {
                min-height: 110px;
                padding: 8px;
            }

            .reia-calendar-event {
                padding: 6px 8px;
                font-size: 11px;
            }
        }

/* ==========================================
   Single Event Page & Custom JS Calendar Class Rules
   ========================================== */

/* Single Event Card Wrapper */
.reia-event-card {
    background: var(--rs-card-bg, #1a2238);
    border: 1px solid var(--rs-border-color, rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    height: 100%;
}

.reia-event-card.reia-events-side {
    height: auto;
}

/* Event Banner Image */
.event-details-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.event-details-thumb img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

/* Event Metadata Grid */
.event-details-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.meta-icon {
    background: var(--rs-theme-primary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.meta-text {
    display: flex;
    flex-direction: column;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8892b0;
    font-weight: 600;
    margin-bottom: 2px;
}

.meta-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

/* Event Description */
.event-details-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
}

/* Event CTA */
.event-details-cta {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
}

.event-cta-btn {
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Sidebar Specifics */
.reia-side-title {
    margin-bottom: 25px;
    font-weight: 700;
    border-bottom: 2px solid var(--rs-theme-primary);
    padding-bottom: 10px;
    font-size: 1.25rem;
    color: #fff;
}

.reia-upcoming-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.reia-upcoming-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.reia-upcoming-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reia-upcoming-title {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.reia-upcoming-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.reia-upcoming-title a:hover {
    color: var(--rs-theme-primary);
}

.reia-upcoming-loc {
    font-size: 0.82rem;
    color: #8892b0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.reia-upcoming-loc i {
    vertical-align: middle;
    margin-right: 4px;
}

.reia-no-events {
    color: #8892b0;
    font-size: 0.9rem;
}

/* Calendar JS Render Classes */
.reia-upcoming-meta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rs-theme-primary);
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reia-upcoming-meta span i {
    vertical-align: middle;
    margin-right: 4px;
}

.reia-upcoming-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    color: #fff;
    background: var(--rs-theme-primary);
    text-decoration: none;
}

/* Dynamic Tooltip Styling */
.reia-calendar-tooltip {
    position: absolute;
    display: none;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    max-width: 280px;
    z-index: 99999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    transition: opacity 0.15s ease;
    opacity: 0;
}

.reia-calendar-tooltip .tooltip-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #38bdf8;
}

.reia-calendar-tooltip .tooltip-desc {
    color: #cbd5e1;
    margin-bottom: 8px;
    line-height: 1.4;
}

.reia-calendar-tooltip .tooltip-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reia-calendar-tooltip .tooltip-meta i {
    margin-right: 4px;
    vertical-align: middle;
}

/* ==========================================
   Responsive Adjustments for Events Layout
   ========================================== */
@media (max-width: 991.98px) {
    .reia-event-card {
        padding: 20px;
        height: auto;
    }
    
    .event-details-thumb img {
        max-height: 320px;
    }

    .event-details-meta-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 767.98px) {
    .reia-event-card {
        border-radius: 14px;
        padding: 15px;
    }

    .event-details-thumb {
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .event-details-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .event-details-cta {
        padding-top: 15px;
    }

    .event-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}