.events-page {
    max-width:1366px;
    margin: 3rem auto;
    padding:0 1rem;
}
.eventCards {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    gap: 20px; /* Adjusted gap for responsiveness */
    justify-content: flex-start; /* Ensures alignment starts from the left */
    margin-top: 50px;
    overflow-x: auto; /* Enables horizontal scrolling if the content overflows */
    padding: 20px 40px; /* Optional, adds padding around the content */
    margin: 0px 40px;
}

@media screen and (max-width:500px) {
    .eventCards {
        margin:0;
    }
}

.eventCards::-webkit-scrollbar {
    display:none;
}

.eventCard {
    flex-shrink: 0; /* Prevents cards from shrinking */
    scroll-snap-align: start; /* Aligns each card to the start of the container */
    width: 350px; /* Fixed width as per requirement */
    box-shadow: 3px 3px 10px gray;
    transition: all 0.3s ease;
    cursor: pointer;
}

.eventCard:hover {
    transform: translateY(-10px);
}

.eventCard-ImageSection {
    position: relative;
}

.eventCard-ImageSection img {
    width: 100%;
    height: 225px; /* Set a fixed height for consistency */
    object-fit: cover;
}

.eventCard-locationAndFee {
    position: absolute;
    color: white;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eventCard-fee {
    background: rgb(27, 37, 95);
    padding: 5px 10px;
    border-radius: 20px;
}

.eventCard-ContentSection {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
}

.eventCard-date {
    font-size: 16px;
}

.eventCard-title {
    font-size: 18px;
    font-weight: 500;
}

.eventCard-description {
    font-size: 14px;
}

/* Media Queries */
@media (min-width: 768px) {
    .eventCards {
        gap: 30px; /* Slightly larger gap for bigger screens */
    }

    .eventCard {
        width: 350px; /* Maintain the fixed width */
    }
}

@media (min-width: 1024px) {
    .eventCards {
        gap: 40px;
    }
}

/* Snap Scrolling for phones */
@media (max-width: 767px) {
    .eventCards {
        scroll-snap-type: x mandatory;
        overflow-x: scroll;
    }

    .eventCard {
        width: 350px; /* Maintain the fixed width */
        scroll-snap-align: center; /* Centers the card in the viewport */
    }

    .eventCard-ImageSection img {
        height: 225px; /* Adjusted height for smaller screens */
    }
}
