/* Container styles */
.events-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.events-section {
    margin-bottom: 3rem;
}

.events-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.section-description {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Grid layout */
.events-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Event card styles */
.event-card {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    background: #fff;
}

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

.event-image-container {
    position: relative;
    padding-top: 100%; /* 16:9 aspect ratio */
}

.event-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.event-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

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

.event-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Past events styles */
.past-events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.past-event-card {
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: background-color 0.3s;
}

.past-event-card:hover {
    background: #f8fafc;
}

.past-event-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.past-event-details {
    color: #666;
}

.event-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.event-button:hover {
    background: #e2e8f0;
}

/* Icons */
.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.25rem;
}
