.events-page {
    min-height: 80vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10rem;
}

.events-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.events-section h2 {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e1e8ed;
}

.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid #e1e8ed;
}

.event-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.event-content {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
}

.event-content:has(.event-info:first-child) {
    grid-template-columns: 1fr;
}

.event-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.event-main {
    min-width: 0;
}

.event-header time {
    display: block;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.event-venue {
    display: block;
    color: #34495e;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.event-poster {
    flex-shrink: 0;
    width: 80px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.event-poster:hover {
    opacity: 0.8;
}

.event-poster img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.event-details {
    color: #7f8c8d;
    font-size: 0.95rem;
    text-align: right;
    padding-right: 1rem;
}

.event-address {
    margin: 0;
}

.events-separator {
    margin: 3rem 0 2rem 0;
    text-align: center;
    position: relative;
}

.events-separator::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #ddd;
}

.events-separator span {
    position: relative;
    background: white;
    padding: 0 2rem;
    color: #95a5a6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.events-section.past .event-item {
    opacity: 0.6;
}

.events-section.past .event-poster img {
    filter: grayscale(0.5);
}

.no-events {
    color: #95a5a6;
    font-style: italic;
    padding: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .events-page {
        padding: 1.5rem 0 3rem 0;
    }
    
    .events-page h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .event-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .event-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .event-poster {
        width: 100px;
        justify-self: center;
    }
    
    .event-details {
        text-align: left;
        padding-right: 0;
    }
}

.poster-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.poster-overlay.active {
    opacity: 1;
}

.poster-overlay-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.poster-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 2.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #2c3e50;
    transition: background-color 0.2s ease;
}

.poster-close:hover {
    background-color: white;
}

@media (max-width: 768px) {
    .poster-overlay-img {
        max-width: 95%;
    }
    
    .poster-close {
        font-size: 2rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}