:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
}

@media (min-width: 922px) {
    .site-content .ast-container {
      display: block !important;
    }
  }
.events-archive-hero {
    background: linear-gradient(135deg, rgba(13,110,253,0.8) 0%, rgba(108,117,125,0.8) 100%), 
                url('https://images.unsplash.com/photo-1511578314322-379afb476865?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 100px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.events-archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.events-archive-hero .container {
    position: relative;
    z-index: 2;
}

.events-archive-hero h1 {
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.events-archive-hero .lead {
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Event Cards */
.event-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.event-card-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.event-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-card-img {
    transform: scale(1.05);
}

.event-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    background: var(--primary-color);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(13,110,253,0.2);
}

.event-card h4 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-color);
    line-height: 1.3;
}

.event-card p.text-muted {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.event-card p:last-child {
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.event-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(2px);
}

/* Filter Controls */
.filter-controls {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.filter-controls label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.filter-controls .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.filter-controls .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.1);
}

/* Pagination */
.pagination {
    margin-top: 50px;
}

.pagination .page-item .page-link {
    border-radius: 8px;
    margin: 0 5px;
    border: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(13,110,253,0.2);
}

.pagination .page-item:not(.active) .page-link:hover {
    background-color: var(--light-color);
}

/* Section Title */
.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.section-title h2 {
    font-weight: 700;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13,110,253,0.3);
}

/* Animation Classes */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .events-archive-hero {
        padding: 80px 0 60px;
        background-attachment: scroll;
    }
    
    .filter-controls .col-md-4 {
        margin-bottom: 15px;
    }
    
    .filter-controls .col-md-4:last-child {
        margin-bottom: 0;
    }
}