/* =====================
   Events Page Styles
   ===================== */

.events-hero {
    position: relative;
    height: 420px;
    background: url('https://images.unsplash.com/photo-1505373877841-8d25f7d46678?w=1400&q=80') center center / cover no-repeat;
    display: flex;
    align-items: flex-end;
}

.events-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(5,15,30,0.88));
}

/* Filter Tabs */
.events-filter-bar {
    background: #fff;
    border-bottom: 1px solid #e8eef6;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.events-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.ev-tab {
    background: none;
    border: none;
    padding: 18px 28px;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.2s ease;
    white-space: nowrap;
}

.ev-tab:hover {
    color: #0c5db9;
}

.ev-tab.active {
    color: #0c5db9;
    border-bottom-color: #0c5db9;
}

/* Events Listing */
.events-listing {
    background: #f0f5fb;
}

.ev-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e8eef6;
    height: 100%;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ev-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(12,93,185,0.12);
    border-color: #0c5db9;
}

.ev-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.ev-type-label {
    background: rgba(12,93,185,0.1);
    color: #0c5db9;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(12,93,185,0.2);
}

.ev-status {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

.ev-status-upcoming {
    background: rgba(34,197,94,0.1);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,0.25);
}

.ev-status-completed {
    background: rgba(107,114,128,0.1);
    color: #6b7280;
    border: 1px solid rgba(107,114,128,0.2);
}

.ev-title {
    font-size: 20px;
    font-weight: 800;
    color: #0d1b2a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.ev-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}

.ev-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.ev-desc {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.ev-register-btn,
.ev-gallery-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
    align-self: flex-start;
}

.ev-register-btn {
    background: #0c5db9;
    color: white;
}

.ev-register-btn:hover {
    background: #094a92;
    color: white;
    transform: translateY(-2px);
}

.ev-gallery-btn {
    background: transparent;
    border: 2px solid #0c5db9;
    color: #0c5db9;
}

.ev-gallery-btn:hover {
    background: #0c5db9;
    color: white;
}

/* CTA */
.events-cta {
    background: #0d1b2a;
}

.events-cta-inner {
    background: rgba(12,93,185,0.15);
    border: 1px solid rgba(12,93,185,0.3);
    border-radius: 24px;
    padding: 50px 40px;
}

.events-cta-inner h2 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
}

.events-cta-inner p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
    max-width: 560px;
    margin-inline: auto;
}

@media (max-width: 576px) {
    .ev-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
