/**
 * Events — home teal design system
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ev-primary: #0d7377;
    --ev-primary-light: #14a098;
    --ev-primary-dark: #074f51;
    --ev-bg: #f8fafc;
    --ev-card: #ffffff;
    --ev-text: #0f172a;
    --ev-muted: #64748b;
    --ev-border: #e2e8f0;
    --ev-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --ev-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --ev-radius: 14px;
    --ev-radius-lg: 18px;
    --ev-font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --ev-font-body: 'Inter', system-ui, sans-serif;
}

.events-page {
    font-family: var(--ev-font-body);
    background: var(--ev-bg);
    color: var(--ev-text);
}

.ev-hero {
    background: linear-gradient(135deg, var(--ev-primary) 0%, var(--ev-primary-dark) 100%);
    padding: 48px 0 56px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ev-hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -12%; width: 48%; height: 180%;
    background: rgba(255,255,255,0.04); transform: rotate(18deg); pointer-events: none;
}
.ev-hero .container { position: relative; z-index: 1; }

.ev-breadcrumb {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    list-style: none; padding: 0; margin: 0 0 18px; font-size: 0.85rem;
}
.ev-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.ev-breadcrumb a:hover { color: #fff; }
.ev-breadcrumb span { color: rgba(255,255,255,0.45); }
.ev-breadcrumb .current { color: rgba(255,255,255,0.95); }

.ev-hero-title {
    font-family: var(--ev-font-display); font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px;
}
.ev-hero-sub { margin: 0 0 14px; max-width: 36rem; color: rgba(255,255,255,0.85); line-height: 1.55; }
.ev-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
    font-size: 0.82rem; font-weight: 600;
}

.ev-section { padding: 40px 0; }
.ev-section-tight { padding-top: 24px; padding-bottom: 0; }

.ev-toolbar {
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.ev-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-tab {
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ev-border);
    background: var(--ev-card); color: var(--ev-muted); text-decoration: none; font-weight: 600; font-size: 0.88rem;
}
.ev-tab.is-active, .ev-tab:hover {
    background: var(--ev-primary); border-color: var(--ev-primary); color: #fff;
}

.ev-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--ev-card); border: 1px solid var(--ev-border); border-radius: 12px;
    padding: 6px 8px 6px 12px; min-width: min(100%, 320px); flex: 1 1 240px; max-width: 420px;
}
.ev-search i { color: var(--ev-muted); }
.ev-search input {
    border: 0; outline: none; flex: 1; min-width: 0; font-size: 0.92rem; background: transparent;
}
.ev-search button {
    border: 0; background: var(--ev-primary); color: #fff; border-radius: 8px;
    padding: 8px 12px; font-weight: 600; font-size: 0.85rem; cursor: pointer;
}

.ev-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ev-cat {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ev-border);
    background: #fff; color: var(--ev-muted); text-decoration: none; font-size: 0.82rem; font-weight: 600;
}
.ev-cat.is-active, .ev-cat:hover {
    border-color: var(--ev-primary); color: var(--ev-primary); background: rgba(13,115,119,0.06);
}

.ev-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}

.ev-card {
    background: var(--ev-card); border: 1px solid var(--ev-border); border-radius: var(--ev-radius-lg);
    box-shadow: var(--ev-shadow-sm); overflow: hidden; display: flex; flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ev-card:hover { transform: translateY(-3px); box-shadow: var(--ev-shadow-md); }

.ev-card-cover {
    position: relative; aspect-ratio: 16 / 10; background: #e2e8f0; overflow: hidden;
}
.ev-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.ev-card-cover-empty {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(13,115,119,0.12), rgba(7,79,81,0.18));
    color: var(--ev-primary); font-size: 2.2rem;
}

.ev-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
    background: rgba(15,23,42,0.75); color: #fff; text-transform: uppercase; letter-spacing: 0.03em;
}
.ev-badge-live { background: #dc2626; }
.ev-badge-up { background: var(--ev-primary); }

.ev-card-body { padding: 16px 18px 8px; flex: 1; }
.ev-card-cat {
    font-size: 0.75rem; font-weight: 700; color: var(--ev-primary); text-transform: uppercase;
    letter-spacing: 0.04em; margin-bottom: 6px;
}
.ev-card-title {
    font-family: var(--ev-font-display); font-size: 1.1rem; font-weight: 800; margin: 0 0 8px;
    letter-spacing: -0.02em; line-height: 1.3;
}
.ev-card-desc {
    margin: 0 0 12px; color: var(--ev-muted); font-size: 0.9rem; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ev-meta li {
    display: flex; gap: 8px; align-items: flex-start; font-size: 0.82rem; color: #475569;
}
.ev-meta i { color: var(--ev-primary-light); margin-top: 2px; width: 14px; text-align: center; }
.ev-meta-soon { color: var(--ev-primary-dark); font-weight: 600; }

.ev-card-footer {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 12px 18px 16px; border-top: 1px solid var(--ev-border); margin-top: auto;
}
.ev-duration { font-size: 0.8rem; color: var(--ev-muted); font-weight: 600; }
.ev-btn {
    display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 10px;
    background: var(--ev-primary); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.85rem;
}
.ev-btn:hover { background: var(--ev-primary-dark); color: #fff; }

.ev-empty {
    text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed var(--ev-border);
    border-radius: var(--ev-radius-lg); color: var(--ev-muted);
}
.ev-empty i { font-size: 2rem; color: var(--ev-primary-light); margin-bottom: 10px; }
.ev-empty h2 { font-family: var(--ev-font-display); color: var(--ev-text); margin: 0 0 6px; }
.ev-empty p { margin: 0 0 14px; }

@media (max-width: 992px) {
    .ev-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .ev-grid { grid-template-columns: 1fr; }
    .ev-toolbar { flex-direction: column; align-items: stretch; }
    .ev-search { max-width: none; }
}
