/* Home page — events carousel */
.home-events-section,
#rs-events.home-events-section {
    position: relative;
    padding: 40px 0 44px;
    background:
        radial-gradient(circle at 88% 12%, rgba(249, 200, 51, 0.07) 0%, transparent 40%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
}

.home-events-header {
    margin-bottom: 24px;
}

.home-events-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #061a28;
    background: linear-gradient(135deg, rgba(249, 200, 51, 0.22) 0%, rgba(240, 180, 41, 0.14) 100%);
    border: 1px solid rgba(249, 200, 51, 0.35);
    border-radius: 999px;
}

.home-events-heading {
    margin: 0 0 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    color: #061a28;
}

.home-events-subheading {
    margin: 0 auto;
    max-width: 640px;
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #64748b;
}

.home-events-carousel-wrap {
    position: relative;
}

.home-events-carousel .owl-stage-outer {
    padding: 4px 4px 6px;
}

.home-events-carousel.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.home-events-carousel.owl-carousel .owl-item {
    display: flex;
    align-items: stretch;
    height: auto;
}

.home-event-card {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(6, 26, 40, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(6, 26, 40, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(6, 26, 40, 0.14);
}

.home-event-media {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    height: 200px;
    background: linear-gradient(135deg, #04121c 0%, #061a28 100%);
}

.home-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.home-event-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(249, 200, 51, 0.75);
    font-size: 2.4rem;
}

.home-event-card:hover .home-event-image:not(.home-event-image--placeholder) {
    transform: scale(1.06);
}

.home-event-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    min-width: 58px;
    padding: 10px 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-left: 4px solid #f9c833;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(4, 18, 28, 0.18);
}

.home-event-date-day {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #061a28;
    line-height: 1;
}

.home-event-date-month {
    display: block;
    margin-top: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.home-event-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 220px;
    padding: 18px 18px 20px;
}

.home-event-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #94a3b8;
}

.home-event-meta i {
    color: #f0b429;
}

.home-event-title {
    margin: 0 0 10px;
    min-height: 2.9em;
    font-family: 'Inter', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-event-desc {
    margin: 0 0 16px;
    flex: 1 1 auto;
    min-height: 4.95em;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #64748b;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.home-event-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: #061a28;
    transition: color 0.2s ease, gap 0.2s ease;
}

.home-event-link i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.home-event-link:hover {
    color: #92400e;
}

.home-event-link:hover i {
    transform: translateX(4px);
}

.home-events-carousel .owl-nav {
    display: block !important;
    position: absolute;
    top: -62px;
    right: 0;
    margin: 0;
}

.home-events-carousel .owl-nav button {
    width: 42px;
    height: 42px;
    margin: 0 0 0 10px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    color: #061a28 !important;
    background: #ffffff !important;
    border: 1px solid rgba(6, 26, 40, 0.12) !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 20px rgba(6, 26, 40, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.home-events-carousel .owl-nav button:hover {
    background: linear-gradient(135deg, #f9c833 0%, #f0b429 100%) !important;
    border-color: #f9c833 !important;
    color: #061a28 !important;
    transform: translateY(-2px);
}

.home-events-carousel .owl-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px !important;
}

.home-events-carousel .owl-dots .owl-dot {
    width: 28px;
    height: 4px;
    margin: 0 !important;
    border-radius: 999px;
    background: rgba(6, 26, 40, 0.16);
    transition: width 0.25s ease, background 0.25s ease;
}

.home-events-carousel .owl-dots .owl-dot.active {
    width: 42px;
    background: linear-gradient(90deg, #f9c833 0%, #f0b429 100%);
}

.home-events-empty {
    padding: 48px 24px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed rgba(6, 26, 40, 0.14);
    border-radius: 18px;
    color: #64748b;
    font-family: 'Inter', sans-serif;
}

.home-events-empty i {
    display: block;
    margin-bottom: 12px;
    font-size: 2rem;
    color: #cbd5e1;
}

@media (max-width: 991px) {
    .home-events-section,
    #rs-events.home-events-section {
        padding: 36px 0 40px;
    }

    .home-events-carousel .owl-nav {
        position: static;
        display: flex !important;
        justify-content: center;
        margin-top: 8px;
    }

    .home-events-carousel .owl-nav button {
        margin: 0 6px !important;
    }
}

@media (max-width: 575px) {
    .home-event-body {
        padding: 16px;
    }
}
