/* Events Listing Page Styles */

/* ============================================
   Hero Section
   ============================================ */
.events-hero {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.events-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.events-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   Events Listing Section
   ============================================ */
.events-listing-section {
    padding: 60px 20px 80px;
    background: #f8f9fa;
}

.events-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #001353;
    margin-bottom: 10px;
}

.events-section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* ============================================
   Tab Toggle
   ============================================ */
.events-tab-container {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 50px;
    background: #e9ecef;
    border-radius: 50px;
    padding: 5px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.events-tab {
    padding: 12px 35px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.events-tab:hover {
    color: #001353;
}

.events-tab.active {
    background: white;
    color: #001353;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Events Grid
   ============================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   Event Card
   ============================================ */
.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Event Card Image */
.event-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: #001353;
}

.event-card-eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.event-card-banner-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.event-card-banner-subtitle {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    opacity: 0.9;
}

/* Mode Badge */
.event-mode-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mode-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.event-mode-inperson .mode-dot {
    background: #10B981;
}

.event-mode-online .mode-dot {
    background: #F59E0B;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Past Event Badge */
.event-past-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

/* Event Card Content */
.event-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-date {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin: 0 0 10px;
}

.event-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #001353;
    margin: 0 0 10px;
    line-height: 1.4;
}

.event-card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-cta {
    font-size: 14px;
    font-weight: 600;
    color: #0066cc;
    transition: color 0.2s ease;
}

.event-card:hover .event-card-cta {
    color: #0052a3;
}

/* Past Event Card */
.event-card-past {
    opacity: 0.85;
}

.event-card-past:hover {
    opacity: 1;
}

.event-card-past .event-card-date {
    color: #888;
}

/* ============================================
   Empty State
   ============================================ */
.events-empty {
    text-align: center;
    padding: 60px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.events-empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.events-empty h3 {
    font-size: 22px;
    font-weight: 700;
    color: #001353;
    margin: 0 0 10px;
}

.events-empty p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .events-hero {
        min-height: 35vh;
        padding: 60px 20px;
    }

    .events-hero-title {
        font-size: 2.5rem;
    }

    .events-hero-subtitle {
        font-size: 1rem;
    }

    .events-listing-section {
        padding: 40px 15px 60px;
    }

    .events-section-title {
        font-size: 1.8rem;
    }

    .events-section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .events-tab-container {
        margin-bottom: 35px;
    }

    .events-tab {
        padding: 10px 28px;
        font-size: 14px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .event-card-image {
        height: 180px;
    }

    .event-card-banner-title {
        font-size: 24px;
    }

    .event-card-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .events-hero-title {
        font-size: 2rem;
    }

    .events-tab {
        padding: 10px 22px;
        font-size: 13px;
    }

    .event-card-image {
        height: 160px;
    }

    .event-card-banner-title {
        font-size: 20px;
    }

    .event-card-title {
        font-size: 16px;
    }
}

/* ============================================
   Remove footer margin for this page
   ============================================ */
.footer {
    margin-top: 0;
}
