/* Upcoming Events */
.upcoming-events {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upcoming-events h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
    text-align: left;
    font-weight: bold;
}

/* Events Carousel */
.events-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding: 10px 0;
    scroll-behavior: smooth;
    align-items: stretch; /* Align all cards properly */
    flex-wrap: nowrap; /* Ensure all cards are in one row */
    min-height: 220px;
}

.event-1card {
    flex: 0 0 auto;
    width: 70%; /* Matches size with other cards */
    max-width: 200px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-1card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.event-1image {
    width: 100%;
    height: 100px; /* Consistent image height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.event-1info {
    padding: 3px;
    text-align: center;
}

.event-1info p {
    font-size: 0.75rem;
    color: #555;
    margin: 3px 0;
    text-overflow: ellipsis;
    
    overflow: hidden;
}

.event-1info strong {
    font-weight: bold;
    color: #333;
}

/* Responsive Design for Larger Screens */
@media (min-width: 768px) {
    .upcoming-events h2 {
        font-size: 1.2rem;
    }

    .event-1card {
        width: 210px;
        height: 210px;
    }

    .event-1image {
        width: 100%;
        height: 100px; /* Consistent image height */
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 10px;
    }
}

/* Responsive Design for Smaller Screens */
@media (max-width: 767px) {
    .upcoming-events h2 {
        font-size: 1.2rem;
    }

    .event-1card {
        width: 160px;
        height: 160px;
    }

    .event-1image {
        width: 100%;
        height: 100px; /* Consistent image height */
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 10px;   
     }
}
