/* Upcoming Events Section */
.upcoming-events {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Events Grid */
.events-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Month Header */
.event-month {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.event-month:hover {
    transform: translateY(-5px);
}

.month-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    padding: 25px 30px;
    color: white;
}

.month-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Event Cards Grid */
.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px;
}

/* Event Card */
.event-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.event-card:hover {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

/* Event Date */
.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    background: #3b82f6;
    color: white;
    border-radius: 10px;
    padding: 10px;
}

.date-day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Different colors for different months */
.event-month:nth-child(1) .event-date { background: #dc2626; } /* January */
.event-month:nth-child(2) .event-date { background: #059669; } /* April */
.event-month:nth-child(3) .event-date { background: #2563eb; } /* July */
.event-month:nth-child(4) .event-date { background: #7c3aed; } /* October */
.event-month:nth-child(5) .event-date { background: #d97706; } /* November */
.event-month:nth-child(6) .event-date { background: #db2777; } /* December */

/* Event Details */
.event-details {
    flex: 1;
}

.event-details h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.event-type {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.event-class {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .event-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .upcoming-events {
        padding: 60px 15px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .month-header h3 {
        font-size: 1.3rem;
    }
    
    .event-cards {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .events-grid {
        gap: 40px;
    }
    
    .event-cards {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
        padding: 20px;
    }
    
    .event-card {
        padding: 15px;
    }
    
    .event-date {
        min-width: 60px;
        padding: 8px;
    }
    
    .date-day {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .upcoming-events {
        padding: 50px 10px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .event-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .month-header {
        padding: 20px;
    }
    
    .month-header h3 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .event-details h4 {
        font-size: 1rem;
    }
    
    .event-date {
        min-width: 55px;
    }
    
    .date-day {
        font-size: 1.3rem;
    }
}

@media (max-width: 400px) {
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        padding: 8px 15px;
        margin-bottom: 10px;
    }
    
    .date-month {
        margin-top: 0;
    }
}