/* Hero Section */
.events-hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('../images/events/events-hero.jpg') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Upcoming Events Section */
.upcoming-events {
    padding: 80px 0;
    background: #f8f9fa;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-image:hover img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.event-info {
    padding: 20px;
    text-align: center;
}

.event-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.event-info p {
    color: #666;
    margin-bottom: 15px;
}

.event-info .btn {
    margin-top: 10px;
}

/* Past Events Timeline */
.past-events {
    padding: 80px 0;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.year {
    width: 100px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 40px;
}

.event-details {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex: 1;
}

.event-details h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.event-details p {
    color: #666;
    margin-bottom: 15px;
}

.event-details .btn {
    margin-top: 10px;
}

/* Join Events Section */
.join-events {
    padding: 80px 0;
    background: linear-gradient(135deg, #000, #333);
    color: white;
    text-align: center;
}

.join-content {
    max-width: 600px;
    margin: 0 auto;
}

.join-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.join-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.join-content .btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.join-content .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hero Section */
    .events-hero {
        height: 40vh;
    }

    .hero-content h1 {
        font-size: 2rem;
        padding: 0 15px;
    }

    /* Upcoming Events Section */
    .upcoming-events {
        padding: 40px 20px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .event-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .event-image {
        height: 180px;
    }

    .event-info {
        padding: 15px;
    }

    .event-info h3 {
        font-size: 1.3rem;
    }

    /* Past Events Timeline */
    .past-events {
        padding: 40px 20px;
    }

    .timeline {
        padding: 20px 0;
    }

    .timeline-item {
        flex-direction: column;
        margin-bottom: 25px;
        padding-left: 30px;
    }

    .timeline-item::before {
        left: 0;
        top: 30px;
    }

    .year {
        width: auto;
        margin-bottom: 15px;
        margin-right: 0;
        font-size: 1.1rem;
    }

    .event-details {
        padding: 15px;
    }

    .event-details h3 {
        font-size: 1.2rem;
    }

    /* Join Events Section */
    .join-events {
        padding: 40px 20px;
    }

    .join-content {
        padding: 0 15px;
    }

    .join-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .join-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .join-content .btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* تحسينات إضافية للشاشات الأصغر */
@media (max-width: 480px) {
    .events-hero {
        height: 30vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .event-card {
        border-radius: 10px;
    }

    .event-image {
        height: 160px;
    }

    .event-date {
        font-size: 0.9rem;
        padding: 4px 8px;
    }

    .event-info h3 {
        font-size: 1.2rem;
    }

    .timeline-item {
        padding-left: 25px;
    }

    .event-details {
        font-size: 0.9rem;
    }

    .join-content h2 {
        font-size: 1.5rem;
    }
} 