.event-list {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 50px 0;
    z-index: 1;
}

.event-list::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(
      to bottom, 
      rgba(255,255,255,0.1),  /* Nearly transparent at the top */
      rgba(255,255,255,0.3) 10%, /* Transition begins */
      rgba(255,255,255,0.6) 40%, /* More white */
      rgba(255,255,255,0.9) 70%, /* Even more white */
      rgba(255,255,255,1) 100% /* Fully white at the bottom */
    );
    z-index: 2;
}

.event-list h2 {
    text-align: center;
    font-size: 42px;
    color: black; /* Black color */
    font-family: 'Poppins', sans-serif;
    margin-bottom: 30px;
    /* Add text shadow for contrast */
    text-shadow: 2px 2px 4px rgba(255,255,255,0.7); 
    z-index: 3; /* Ensuring it's above the pseudo-element */
    position: relative; /* Required for z-index to take effect */
}

.view-full-calendar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #416ca3;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 60px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    z-index: 3;
}

.view-full-calendar i {
    margin-left: 5px;
    z-index: 3;
}

.view-full-calendar:hover,
.view-full-calendar:focus {
    text-decoration: underline;
    z-index: 3;
    color: #FFD700;
}

.events-pagination-container {
    display: flex;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    z-index: 3;
}

.events-pagination-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    justify-content: center; /* Center the items */
}

.event-item {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: calc(16.666% - 20px); /* Adjusted width to match the design */
    max-width: 200px;
    margin: 0 10px 20px; /* Adjusted margin for spacing */
    padding-bottom: 20px; /* Adds padding inside the card for more space */
}

.event-date-block {
    background: black;
    color: #ffffff;
    padding: 10px;
    width: 100%;
    display: flex;
    flex-direction: row; /* Change to row to make month and day side by side */
    align-items: center;
    justify-content: center; /* Center the items */
    font-family: 'Roboto Slab', sans-serif; /* Sets the Ubuntu font for all elements inside */
}

.event-month {
    font-size: 36px; /* Font size for event month */
    font-weight: bold;
    text-transform: uppercase;
    position: relative; /* To position the pseudo-element */
    margin-right: 25px; /* Add some space between month and day */
}

.event-month::after {
    content: '';
    position: absolute;
    top: 0;
    right: -12px; /* Position to the right of the month */
    width: 2px;
    height: 114%;
    background: white; /* White vertical line */
}
.event-day {
    font-size: 36px; /* Larger font size for event day */
    font-weight: bold;
}

.event-details {
    padding: 20px 0; /* Increase padding for more white space */
    font-family: 'Poppins', sans-serif;
}

.event-name {
    font-size: 16px; /* Custom font size for event name */
    color: #002D72;
    padding: 10px 0; /* Increase padding for more space */
}

.event-time {
    font-size: 14px; /* Font size for event time */
    color: #002D72;
    margin-top: 10px; /* Add margin top for space */
}

/* Navigation Controls */
.navigation-controls {
    width: 100%;
    margin-top: 20px; /* Space above the navigation controls */
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation-controls button {
    background: none;
    border: none;
    color: #416ca3;
    font-size: 50px; /* Example font size for Font Awesome icons */
    cursor: pointer;
    outline: none;
    z-index: 4; /* Ensure buttons are on top of other content */
    margin: 0 20px; /* Bring the buttons closer to the center */
}

.navigation-controls button:hover {
    color: #FFD700;
}


@media (max-width: 1100px) {
    .event-list {
        background: lightslategray !important; /* Solid white background for smaller screens */
    }
    .event-item {
        width: calc(45% - 20px) !important; /* Two items per row with gap adjustment */
        max-width: 160px !important; /* Reduce max width for mobile */
        margin: 10px !important; /* Adjust margin for better spacing */
    }
    .navigation-controls {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px; /* Add some space between items */
    }
    .view-full-calendar {
        order: 0;
        flex: 1;
        text-align: center; /* Center the text */
    }
    .navigation-controls button {
        flex: 0 0 auto; /* Ensure buttons keep their size */
        font-size: 30px; /* Adjust font size for mobile */
    }
}


