.banner {height:100%;
margin-top: 7em;}
/* .banner img{height: 100% important} */
.banner-text {
    top:30% !important;
    left:5% !important;
}

/* General adjustments for the calendar navigation */
.calendar-nav {
        margin-bottom: 20px;
    }

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.calendar-nav h2 {
    margin: 0;
    flex: 1; /* Month title flexes to take up equal space */
    text-align: center;
}

/* Ensure buttons do not take full width */
.calendar-nav .btn {
    flex: 0 0 auto; /* Prevent buttons from stretching to fill space */
    width: auto; /* Ensure buttons are only as wide as their content */
    margin: 0 5px; /* Add some spacing between buttons and the title */
}    

    #calendar {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 10px;
    }

    .calendar-header {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        text-align: center;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .calendar-day {
        background-color: #ffffff;
        border: 1px solid #dee2e6;
        text-align: center;
        padding: 15px;
        cursor: pointer;
        position: relative;
    }

    .calendar-day.event {
        background-color: #e2f4e9;
        border-color: #558b61;
    }

    .calendar-day.event .event-icon {
        position: absolute;
        top: 5px;
        right: 5px;
        font-size: 16px;
        color: #558b61;
    }

    .modal-body img {
        max-width: 100%;
        height: auto;
        margin-top: 10px;
    }

    #printButton {
        margin-left: 10px;
    }


/* Modal responsiveness for event details */
#eventDetails img {
    width: 100%;
    height: auto; /* Ensure the image scales properly */
}


/* Reduce month title font size on smaller screens */
@media (max-width: 768px) {
    #calendarMonthYear {
        font-size: 1.5rem;
        text-align: center;
        margin: 0;
    }

    .calendar-nav {
        justify-content: space-between;
    }

    .btn {
        flex: 1; /* Make buttons flex to take up equal space */
        margin: 0 5px;
    }

    /* Modal adjustments */
    #eventDetails .modal-dialog {
        max-width: 95%; /* Make the modal slightly smaller on mobile */
    }

    /* Ensure the image in the modal is fully responsive */
    #eventDetails img {
        width: 100%;
        height: auto;
    }
}

/* Additional styles for smaller screens */
@media (max-width: 576px) {
    #calendarMonthYear {
        font-size: 1.2rem; /* Further reduce font size on very small screens */
    }

    /* Adjust button sizes for smaller screens */
    .btn {
        padding: 0.5rem 0.75rem;
    }
}

/* Ensure month title stays centered on larger screens */
@media (min-width: 768px) {
    .calendar-nav {
        justify-content: space-between; /* Keep buttons and month centered */
    }

    #calendarMonthYear {
        font-size: 2rem;
    }
}