.upcoming-event {
    font-family: 'Poppins', sans-serif;
    background-color: #acacac;
}

.upcoming-event p {
    text-align: center;
    font-size: 20px;
    color: #fff;
    padding: 5px 0;
    width: 100%;
    max-width: 2000px;
    margin: auto;
}

.mySlides {
    display: none;
}

.slideshow-container .mySlides img {
    vertical-align: middle;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.slideshow-container {
    width: 100%;
    position: relative;
    background-color: #fff;
    text-align: center;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    transition: 0.5s ease;
    user-select: none;
}

.prev {
    left: 10px;
    padding: 10px 18px;
    border-radius: 50%;
}

.next {
    right: 10px;
    padding: 10px 18px;
    border-radius: 50%;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slideshow-dot {
    padding-top: 10px;
    background-color: #fff;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: #717171;
}

/* Transparent Gradient Overlay */
.upcoming-event .mySlides .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0%) 0%, rgba(255, 255, 255, 30%) 80%, rgba(255, 255, 255, 55%) 90%, rgba(255, 255, 255, 80%) 95%, rgb(255, 255, 255) 100%);
    pointer-events: none;
    /* Allows interaction with the image below */
}

.upcoming-event .upcoming-event-message {
    position: absolute;
    top: 100px;
    left: 100px;
    background-color: rgb(191, 191, 191, 25%);
    color: #333;
    border-radius: 18px;

    width: auto;
    height: auto;

    padding: 25px;
    z-index: 1;
    backdrop-filter: blur(10px);
    animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.upcoming-event-message .upcoming-event-title {
    font-size: 40px;
    font-weight: 600;

    max-width: 650px;
    margin-bottom: 25px;
    position: relative;
}

.upcoming-event-message .upcoming-event-title::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 25px;
    background-color: #00093c;
    height: 8px;
    width: 40%;
    border-radius: 5px;
    z-index: 1;
}

.upcoming-event-message .upcoming-event-desc {
    font-size: 25px;
    max-width: 500px;
    margin-bottom: 10px;
}

.upcoming-event-message .upcoming-event-info {
    font-weight: 600;
    font-size: 25px;
}


.timeline {
    font-family: Arial, sans-serif;
    display: flex;
    min-width: 100%;
    max-width: 2000px;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.timeline .circle {
    width: 20px;
    height: 20px;
    background: #979797;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.timeline .circle:hover {
    transform: scale(1.2);
    background: #545454;
}

.timeline .circle:active {
    background: #7e7e7e;
}

.past-event {
    display: flex;
    height: auto;
    padding: 10px;
    width: 100%;
    max-width: 2000px;
    margin: 30px auto;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: #fff;
}

.past-event h3 {
    all: unset;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 35px;
    text-align: left;
    color: #bbbbbb;
    padding: 10px 0 0 10px;
    width: 100%;
}


/* event category */
.past-event-cat {
    min-width: 350px;
    margin: 0 5px;
    background-color: #fff;
}

.past-event-cat ul {
    list-style-type: none;
    padding: 5px;
}

.past-event-cat ul li {
    text-decoration: none;
    width: 100%;
    font-size: 25px;
    font-weight: 600;
    color: #333;
    background-color: #c4c4c4;
    padding: 10px 20px;
    margin: 5px;
    border: 1px solid transparent;
    cursor: pointer;
}

.past-event-cat ul li:hover {
    background-color: #efefef;
    border: 1px solid #4b4b4b;
}


.past-event-card-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    column-gap: 15px;
    row-gap: 20px;
    height: auto;
    background-color: #ffffff;
    padding: 0 10px
}

.past-event-card {
    display: block;
    width: 275px;
    height: 300px;
    background-color: #c5c5c5;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.past-event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
    /* Smooth transition for brightness */
}

.past-event-card .past-event-card-message {
    position: absolute;
    bottom: -55%;
    left: 0;
    width: 100%;
    height: 55%;
    background-color: #efefef;
    padding: 15px;
    transition: bottom 0.3s ease;
}

/* Hover effect to bring up the message */
.past-event-card:hover .past-event-card-message {
    bottom: 0;
}

.past-event-card-message .past-event-card-title {
    color: #333;
    max-height: 115px;
    overflow: hidden;
    font-size: 23px;
    font-weight: 600;
    text-align: left;
}

.past-event-card-message .past-event-card-date {
    color: #333;
    font-size: 15px;
    text-align: right;
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.past-event-card-message .past-event-card-view {
    color: #666;
    font-size: 15px;
    font-weight: 600;

    position: absolute;
    bottom: 15px;
    left: 15px;
    cursor: pointer;
}

.past-event-card-message .past-event-card-view:hover {
    color: #111;
}


/* Hover effect for the image (brightness change) */
.past-event-card:hover img {
    filter: brightness(0.3);
    /* Only brighten the image */
}

/* Optional: Adding hover scale effect to the card */
.past-event-card:hover {
    transform: scale(1.05);
}


.event-banner {
    background: url(../img/banner1.jfif);
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    background-color: #e0e0e0;
    height: auto;
    width: 100%;
    margin: auto;
    padding: 65px 120px;

    display: flex;
    justify-content: flex-start;
    /* Horizontally center */
    align-items: center;
    /* Vertically center */
}

.event-banner p {
    font-size: 50px;
    font-weight: bold;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin: auto;
    text-align: center;
}


/* modal section */
.modal {
    font-family: Arial, sans-serif;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 1400px;

    position: relative;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.close {
    color: black;
    float: right;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: red;
}

.event-title {
    font-size: 30px;
}

.event-date {
    margin-bottom: 10px;
    font-size: 15px;
}

.event-description {
    font-size: 19px;
}


.event-images {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 5px 0;
}

.event-slideshow-container {
    position: relative;
    text-align: center;
    margin: 20px 0;
    background-color: #444;
}

.event-image img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    border-radius: 5px;
}

.event-prev,
.event-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 10px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 3px;
    user-select: none;
    transform: translateY(-50%);
}

.event-prev {
    left: 5px;
}

.event-next {
    right: 5px;
}

.event-prev:hover,
.event-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
    0% {
        transform: translateY(-20%);
        /* Start from the left off-screen */
        opacity: 0;
        /* Initially invisible */
    }

    100% {
        transform: translateY(0);
        /* Move to the final position */
        opacity: 1;
        /* Fully visible */
    }
}


@media (max-width: 768px) {

    /* event banner section */
    .event-banner {
        padding: 10px 0;
    }

    .event-banner p {
        font-size: 13px;

    }

    .past-event {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 0;
        width: 100%;
        max-width: 2000px;
        margin: 20px auto;
        box-sizing: border-box;
        font-family: Arial, sans-serif;
    }

    .past-event h3 {
        all: unset;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 18px;
        text-align: left;
        color: #bbbbbb;
        padding: 5px 0;
        width: 100%;
    }


    /* event category */
    .past-event-cat {
        min-width: 100px;
        margin: 0 25px;
        background-color: #fff;
    }

    .past-event-cat ul {
        list-style-type: none;
        padding: 0;
    }

    .past-event-cat ul li {
        text-decoration: none;
        width: 100%;
        font-size: 12px;
        font-weight: 600;
        color: #333;
        background-color: #ddd;
        padding: 5px 15px;
        margin: 5px 0;
        border: 1px solid transparent;
        cursor: pointer;
    }

    .past-event-card-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-content: flex-start;
        column-gap: 15px;
        row-gap: 15px;
        height: auto;
        width: 100vw;
        background-color: #ffffff;
        padding: 0 25px;
    }

    .past-event-card {
        display: block;
        max-width: 330px;
        width: 100%;
        height: 300px;
        background-color: #c5c5c5;
        position: relative;
        overflow: hidden;
        transition: transform 0.3s ease;
    }

    .past-event-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: filter 0.3s ease;
        /* Smooth transition for brightness */
    }

    .past-event-card .past-event-card-message {
        position: absolute;
        bottom: -55%;
        left: 0;
        width: 100%;
        height: 55%;
        background-color: #efefef;
        padding: 15px;
        transition: bottom 0.3s ease;
    }

    /* Hover effect to bring up the message */
    .past-event-card:hover .past-event-card-message {
        bottom: 0;
    }

    .past-event-card-message .past-event-card-title {
        color: #333;
        max-height: 115px;
        overflow: hidden;
        font-size: 18px;
        font-weight: 600;
        text-align: left;
    }

    .past-event-card-message .past-event-card-date {
        color: #333;
        font-size: 12px;
        text-align: right;
        position: absolute;
        bottom: 15px;
        right: 15px;
    }

    .past-event-card-message .past-event-card-view {
        color: #666;
        font-size: 12px;
        font-weight: 600;

        position: absolute;
        bottom: 15px;
        left: 15px;
        cursor: pointer;
    }

    /* modal section */
    .modal {
        font-family: Arial, sans-serif;
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 1000;
        overflow-y: auto;
    }

    .modal-content {
        background-color: #fff;
        padding: 10px;
        border-radius: 5px;
        max-width: 95%;

        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .close {
        color: black;
        float: right;
        font-size: 25px;
        font-weight: bold;
        cursor: pointer;
    }

    .close:hover {
        color: red;
    }

    .event-title {
        font-size: 20px;
    }

    .event-date {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .event-description {
        font-size: 9px;
    }

    .event-images {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 5px 0;
    }

    .event-slideshow-container {
        position: relative;
        text-align: center;
        margin: 20px 0;
        background-color: #444;
    }

    .event-image img {
        width: 100%;
        height: 200px;
        object-fit: contain;
        border-radius: 5px;
    }

    .event-prev,
    .event-next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: auto;
        padding: 10px;
        color: white;
        font-weight: bold;
        font-size: 18px;
        background-color: rgba(0, 0, 0, 0.5);
        border: none;
        border-radius: 3px;
        user-select: none;
        transform: translateY(-50%);
    }

    .event-prev {
        left: 5px;
    }

    .event-next {
        right: 5px;
    }

    .event-prev:hover,
    .event-next:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

}