/* ===================================================================
 * EVENTS PAGE CSS
 * Mata Dhanpati Devi Charitable Trust
 * Palette: Maroon (#A52A2A / #7B2C2C) + Saffron (#F28C28 / #FFD700)
 * =================================================================== */
:root {
    --primary: #A52A2A;
    --primary-dark: #7B2C2C;
    --primary-deeper: #3A0D0D;
    --secondary: #F28C28;
    --secondary-dark: #E67E22;
    --gold: #FFD700;
    --cream-light: #FFF9E6;
    --cream: #FFF0D1;
    --cream2: #FFF5E1;
    --text-dark: #333333;
    --text-muted: #666666;
    --text-secondary: #555555;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
}

/* ===== HERO SECTION ===== */
.events-hero {
    background: linear-gradient(135deg, var(--cream-light) 0%, var(--cream2) 50%, #F5F5DC 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.events-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(242, 140, 40, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.events-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(165, 42, 42, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    background: rgba(242, 140, 40, 0.1);
    color: var(--primary);
    border: 2px solid var(--secondary);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero-title .highlight-text {
    background: linear-gradient(120deg, var(--secondary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.2rem 2rem;
    text-align: center;
    min-width: 160px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.hero-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
}

.hero-stat .stat-number.upcoming {
    color: var(--secondary);
}

.hero-stat .stat-number.past {
    color: var(--primary);
}

.hero-stat .stat-number.total {
    color: var(--primary-dark);
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FILTER PILLS ===== */
.filter-pills {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.filter-pills a {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-pills a.filter-all {
    color: var(--text-muted);
    background: transparent;
}

.filter-pills a.filter-all.active,
.filter-pills a.filter-all:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(165, 42, 42, 0.3);
}

.filter-pills a.filter-upcoming {
    color: var(--text-muted);
    background: transparent;
}

.filter-pills a.filter-upcoming.active,
.filter-pills a.filter-upcoming:hover {
    color: white;
    background: linear-gradient(135deg, #28A745, #20C997);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.3);
}

.filter-pills a.filter-past {
    color: var(--text-muted);
    background: transparent;
}

.filter-pills a.filter-past.active,
.filter-pills a.filter-past:hover {
    color: white;
    background: linear-gradient(135deg, var(--text-secondary), #6c757d);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(108, 117, 125, 0.3);
}

/* ===== EVENT CARDS ===== */
.event-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.35s ease;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--gold));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

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

.event-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, var(--cream-light), var(--cream));
}

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

.event-card:hover .event-image {
    transform: scale(1.08);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(165, 42, 42, 0.3);
    line-height: 1.1;
    z-index: 2;
}

.event-date-badge .day {
    font-size: 1.6rem;
    font-weight: 800;
    display: block;
    font-family: 'Playfair Display', serif;
}

.event-date-badge .month {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 2px;
}

.event-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.event-status-badge .badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.event-status-badge .badge-upcoming {
    background: rgba(40, 167, 69, 0.95);
    color: white;
}

.event-status-badge .badge-past {
    background: rgba(108, 117, 125, 0.9);
    color: white;
}

.event-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1rem;
}

.event-meta-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-meta-item i {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.event-meta-item i.fa-clock {
    color: var(--secondary);
}

.event-meta-item i.fa-map-marker-alt {
    color: #dc3545;
}

.event-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.event-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-read-more {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.event-read-more:hover {
    color: var(--primary);
    gap: 8px;
}

.event-share-icons {
    display: flex;
    gap: 6px;
}

.event-share-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cream-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.event-share-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== EMPTY STATE ===== */
.empty-events {
    padding: 4rem 2rem;
    text-align: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.empty-events .empty-icon {
    font-size: 4.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-events h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.empty-events p {
    color: var(--text-muted);
    margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section .cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Playfair Display', serif;
}

.cta-section .cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cta-section .btn-cta-light {
    background: white;
    color: var(--primary);
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-section .btn-cta-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

.cta-section .btn-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-section .btn-cta-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .events-hero {
        padding: 80px 0 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stat {
        min-width: 130px;
        padding: 1rem 1.2rem;
    }

    .hero-stat .stat-number {
        font-size: 1.8rem;
    }

    .filter-pills {
        width: 100%;
        flex-direction: column;
        border-radius: 20px;
    }

    .filter-pills a {
        width: 100%;
        justify-content: center;
    }

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

    .cta-section .cta-title {
        font-size: 1.7rem;
    }
}
