/* Events Section Styles */
.events-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background: #ffffff;
    font-family: fibra, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.events-header {
    margin-bottom: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.event-label {
    display: inline-block;
    background: #FFD51E;
    color: #404040;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 8.4px;
    margin-bottom: 15px;
    border-radius: 4px;
    width: fit-content;
    
}

.events-title {
    font-size: 48px;
    font-weight: 700;
    color: #404040;
    margin: 0 0 0 0;
    line-height: 1.2;
    font-family: fibra, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.events-filters {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #ffffff;
    font-size: 14px;
    color: #404040;
    cursor: pointer;
    min-width: 130px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 40px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #FFD51E;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.event-card {
    background: #ffffff;
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-image {
    width: 100%;
    height: 452px;
    overflow: hidden;
    border-radius: 41px;
    margin-bottom: 30px;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.02);
}

.event-date {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin-bottom: 15px;
    flex-direction: column;
}

.event-month {
    color: #FFD51E;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-day {
    color: #404040;
    font-size: 42px;
    font-weight: bold;
    line-height: 1;
}

.event-content {
    padding: 0 25px 0;
    background: #ffffff;
    border-left: 4px solid #EFE7E7;
    display: flex;
    flex-direction: column;
    gap:30px;
}

.event-date-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}


.event-title {
    font-size: 24px;
    font-weight: 700;
    color: #404040;
    margin: 0 0 12px 0;
    line-height: 1.3;
    font-family: fibra, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.event-description {
    color: #6A6A6A;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.event-pdf-btn {
    display: inline-block;
    background: #FFD51E;
    color: #404040;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto;
    width: fit-content;
    box-sizing: border-box;
}

.event-pdf-btn:hover {
    background: #FFC700;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    color: #404040;
    text-decoration: none;
}

.event-pdf-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .events-title {
        font-size: 36px;
    }
    
    .events-filters {
        position: static;
        margin-top: 20px;
        flex-wrap: wrap;
    }
    
    .filter-select {
        min-width: 100px;
        flex: 1;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .events-section {
        padding: 20px 15px;
    }
    
    .events-title {
        font-size: 28px;
    }
    
    .events-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .event-content {
        padding: 15px;
    }
    
    .event-title {
        font-size: 16px;
    }
    
    .event-description {
        font-size: 13px;
    }
}

/* Loading Animation */
.events-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.events-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FFD51E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Filter Animation */
.event-card {
    transition: all 0.3s ease;
    animation: fadeInUp 0.3s ease;
}

.event-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    animation: fadeOut 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Filter loading state */
.events-grid.filtering {
    opacity: 0.7;
    pointer-events: none;
}

.events-grid.filtering::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FFD51E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* No Results Message */
.events-no-results {
    text-align: center;
    padding: 80px 20px;
    color: #6A6A6A;
    font-size: 18px;
    grid-column: 1 / -1;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
    margin: 20px 0;
}

.events-no-results h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.events-no-results p {
    margin: 0;
    font-size: 16px;
    color: #6A6A6A;
}

/* Additional polish */
.events-section * {
    box-sizing: border-box;
}


.event-image {
    background: #f8f9fa;
}

.event-content {
    background: #ffffff;
}

/* Filter Status */
.filter-status {
    font-size: 14px;
    color: #6A6A6A;
    margin-top: 15px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #FFD51E;
    display: none;
}

/* Ensure proper spacing and alignment */
.events-header {
    margin-bottom: 50px;
}

.events-grid {
    margin-top: 30px;
}
