/* ============================================================
   Events Page — Horizontal Card Layout
   ============================================================ */

.events-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ── Hero ──────────────────────────────────────────────────── */
.events-hero {
    position: relative;
    min-height: 340px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.events-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.25) 100%);
}

.events-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 24px;
    max-width: 700px;
}

.events-hero__content h1 {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}

.events-hero__content p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Content ───────────────────────────────────────────────── */
.events-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* ── Section header ────────────────────────────────────────── */
.events-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.events-section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.events-section-header h2 svg {
    color: #0958a3;
    flex-shrink: 0;
}

.events-badge {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #0958a3;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.events-badge--muted {
    background: #f1f5f9;
    color: #64748b;
}

/* ── Events list (stacked) ─────────────────────────────────── */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Horizontal Event Card ─────────────────────────────────── */
.event-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.event-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.event-card--past {
    opacity: 0.7;
}

.event-card--past:hover {
    opacity: 1;
}

/* Image — fixed left column */
.event-card__image {
    position: relative;
    flex-shrink: 0;
    width: 320px;
    min-height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}

.event-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.event-card:hover .event-card__image img {
    transform: scale(1.05);
}

.event-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
}

/* Body — right side */
.event-card__body {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Date badge — inline horizontal inside body */
.event-card__date-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.event-card__date-day {
    font-size: 32px;
    font-weight: 800;
    color: #0958a3;
    line-height: 1;
}

.event-card__date-month {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0958a3;
    opacity: 0.8;
}

/* Title */
.event-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    line-height: 1.35;
}

.event-card:hover .event-card__title {
    color: #0958a3;
}

/* Meta items */
.event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 14px;
}

.event-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
}

.event-card__meta-item svg {
    flex-shrink: 0;
    color: #94a3b8;
}

/* Excerpt */
.event-card__excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
}

/* CTA link */
.event-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #0958a3;
    margin-top: auto;
    transition: gap 0.2s ease;
}

.event-card:hover .event-card__link {
    gap: 10px;
}

.event-card__link svg {
    transition: transform 0.2s ease;
}

.event-card:hover .event-card__link svg {
    transform: translateX(3px);
}

/* ── Empty State ───────────────────────────────────────────── */
.events-empty {
    text-align: center;
    padding: 80px 24px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.events-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #eff6ff;
    border-radius: 50%;
    color: #0958a3;
    margin-bottom: 20px;
}

.events-empty h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.events-empty p {
    font-size: 15px;
    color: #64748b;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Past section ──────────────────────────────────────────── */
.events-section--past .events-section-header h2 svg {
    color: #94a3b8;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .events-container {
        padding: 40px 16px 60px;
    }

    .events-hero {
        min-height: 260px;
    }

    .events-hero__content h1 {
        font-size: 30px;
    }

    .events-hero__content p {
        font-size: 15px;
    }

    .events-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Stack cards vertically on mobile */
    .event-card {
        flex-direction: column;
    }

    .event-card__image {
        width: 100%;
        min-height: 180px;
        max-height: 220px;
    }

    .event-card__body {
        padding: 20px;
    }

    .event-card__date-day {
        font-size: 26px;
    }

    .event-card__title {
        font-size: 18px;
    }

    .events-empty {
        padding: 50px 20px;
    }
}
