/* Events Page Styles */
.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem 2rem 1rem;
}

.events-intro {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: -1rem;
}

.events-intro h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.events-intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 1440px;
    margin: 0 auto;
    line-height: 1.6;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid #e1e5e9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-header {
    margin-bottom: 1.5rem;
}

.event-header h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s ease;
}

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

.event-details {
    margin-bottom: 1.5rem;
}

.event-details > div {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #555;
}

.event-details svg {
    margin-right: 0.8rem;
    color: #667eea;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    overflow: visible;
}

.event-description {
    margin-bottom: 2rem;
}

.event-description p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.event-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.events-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 3rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

.events-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 4px 4px;
}

.events-cta h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.events-cta p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Event Photos Section */
.event-photos-section {
    margin: 4rem 0;
    text-align: center;
}

.event-photos-section h3 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.event-photos-section p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.event-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.event-photo-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1e5e9;
}

.event-photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.photo-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.event-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.event-photo-card:hover .photo-overlay {
    transform: translateY(0);
}

.photo-info h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.photo-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-container {
        padding: 1rem 0.5rem;
    }

    .events-intro h2 {
        font-size: 2rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-card {
        padding: 1.5rem;
    }

    .event-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Event Photos Responsive */
    .event-photos-section {
        margin: 3rem 0;
    }

    .event-photos-section h3 {
        font-size: 1.8rem;
    }

    .event-photos-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .event-photos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .photo-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .photo-info h4 {
        font-size: 1.2rem;
    }

    .photo-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .events-intro h2 {
        font-size: 1.8rem;
    }

    .event-header h3 {
        font-size: 1.5rem;
    }

    .events-cta {
        padding: 2rem 1rem;
    }

    .events-cta h3 {
        font-size: 1.6rem;
    }

    /* Event Photos Small Mobile */
    .event-photos-section {
        margin: 2rem 0;
    }

    .event-photos-section h3 {
        font-size: 1.6rem;
    }

    .event-photos-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .event-photos-grid {
        gap: 1rem;
    }

    .photo-overlay {
        padding: 1rem 0.8rem 0.8rem;
    }

    .photo-info h4 {
        font-size: 1.1rem;
    }

    .photo-info p {
        font-size: 0.85rem;
    }
}
