.past-events-section{
    height: 85vh;
    margin-top: 0;
    /* background-color: rgba(0,0,0,0.4); */
    background-image: url("/assets/imgs/_P4A0914.jpg");
    background-size: cover;
    background-blend-mode: overlay;

    .event-details{
        width: 55%;
        background: linear-gradient(90deg, #00549F, #00559fd7, transparent);
        .title{
            font-size: 32px;
            line-height: 45px;
            font-weight: bold;
        }
        .desc{
            font-family: 'Montserrat';
            font-size: 15px;
        }
        .other-details{
            font-family: 'Montserrat';
            font-size: 14px;
            width: 50%;
            line-height: 25px;
        }
    }
    
    @media (max-width: 1000px){
        .main.desc{
            display: none;
        }
    }
    

    @media (max-width: 900px){
        min-height: 400px;
        .event-details{
            width: 100%;            
            .title{
                font-size: 25px;
                line-height: 36px;
            }
        }
    }
}

.mobile-description{
    margin-top: 30px;
    h4{
        color: brown;
        font-family: 'Montserrat';
        font-size: 18px;
    }
    p{
        line-height: 25px;
        font-size: 14px;
    }
}

.events-main-content{
    padding: 0 8%;
    color: #063B73;
    line-height: 45px;
    margin-bottom: 50px;

    .title{
        margin-top: 70px;
        margin-bottom: 20px;
        text-align: left;
        font-size: 24px;
        letter-spacing: 1px;
        font-weight: 400;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition-duration: 100ms;
        
        @media(max-width: 500px){
            font-size: 18px;
            .other-events-link{
                font-size: 14px!important;
            }
        }
    }    

    .title a:hover{
        transition-duration: 100ms;
        color: brown;
        cursor: pointer;
    }
    .title a:hover .fa{
        transition-duration: 100ms;       
        padding-left: 10px;
        
    }
    .title .fa{
        transition-duration: 100ms;
    }
    .desc{
        font-size: 16px;
        letter-spacing: -0.5px;
    }
    .contents-horizontal-line{
        height: 1px;
        margin-bottom: 30px;
    }

    .gallery-style{
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    #gallery .item{
        border-radius: 15px;
        width: 100%;
        height: 300px;        
        background-position: center;
        background-size: 100%;
        background-repeat: no-repeat;
        background-color: black;
        cursor: pointer;
        transition-duration: 300ms;
        overflow: hidden;
    }

    #gallery .item img{
        object-fit: contain;
        transition-duration: 200ms;
    }

    #gallery .item:hover img{
        transition-duration: 500ms;
        scale: 1.2;
    }

    #gallery .item:hover{
        transition-duration: 500ms;
        background-size: 110%
    }

    .item img{
        width: 100%;
        height: 300px;
    }

    .title .other-events-link{
        font-size: 16px;
    }

    .gallery-end-button-container{
        display: flex;
        justify-content: center;
        margin-top: 30px;
        a{
            text-decoration: none;
            background-color: #0E64CC;
            padding: 10px 50px;
            color: white;
            font-family: "Montserrat";
            font-size: 15px;
        }
    }   
}


/* modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 1000; /* Ensure it's on top */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Prevent clicks on overlay when closed */
    transition: opacity 0.3s ease; /* Smooth fade-in/out */
}

.modal {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px); /* Initially slightly above center */
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth appearance */
    max-width: 900px; /* Adjust as needed */
    width: 90%; /* Responsive width */
    color: #063B73;
}

.modal.show {
    opacity: 1;
    transform: translateY(0); /* Move to center */
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto; /* Enable clicks when open */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.close-button {
    cursor: pointer;
    font-size: 20px;
}

.modal .title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Montserrat;
}

.modal .title span{
    font-weight: bold;
    font-size: 23px;
}

.modal .year{
    font-family: Montserrat;
    font-size: 14px;
}

.modal .dropdown {
    /* position: relative; */
}

.modal .year .dropdown-content{
    position: absolute;
}

.modal-content {
    .event-list-container{
        padding: 20px 30px;
        height: 75vh;
        overflow-y: auto;
    }

    .event-list-item{
        font-family: Montserrat;
        display: flex;
        gap: 20px;
        justify-content: start;
        align-items: center;
        margin: 10px 0px;

        .image {
            height: 150px;
            width: 200px;
            background-color: black;
            border-radius: 10px;
            object-fit: cover;
            display: none;
        }
        .desc{
            font-size: 14px;
            text-align: start;
            display: flex;
            flex-direction: column;
            gap: 7px;            
        }
        .event-title{
            font-size: 18px;
            font-weight: 600;
       }
       .event-time{
        font-size: 13px;
        font-weight: 700;
        margin-top: 20px;
       }
    }

    @media (max-width: 650px){
        .event-list-container{
            padding-left: 10px;
            padding-right: 10px;
        }
        .event-list-item{
            flex-direction: column;
        }
        .event-title{
            font-size: 16px!important;
            text-align: center;
        }
        .event-time{
            text-align: center;
            font-size: 143px;
            margin-top: 10px!important;
        }
    }

    .divider-container{
        display: flex;
        justify-content: center;
    }
    .divider{
        margin: 20px 0;
    }
}

.event-search-container{
    margin-top: 20px;

    .event-search{
        padding: 15px;
        outline: none;
        border-radius: 5px;
        width: 100%;
        color: #063B73;
        border: 1px solid #063B73;
    }

    .event-search::placeholder{
        color: #063B73;
    }
}

/* Optional: Add a simple fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Optional: Add a simple fade-out animation */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}