﻿
#toggleEvents {
    background-color: black;
    text-align: center;
    margin-top:25px;
}

#toggleEvents h3 {
    font-weight: 400;
    color: white;
    margin-top: 8px;
    transition: opacity 0.5s ease;
    background-color:black;
}
.fade {
    opacity: 0;
}


.header_showcase {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    cursor: pointer;
}

    .header_showcase#toggleEvents {
        background: #004aad;
        color: #fff;
        text-align: center;
        padding: 12px;
        cursor: pointer;
        user-select: none;
        position: relative;
    }

#toggleEvents h1 {
    margin: 0;
}

#arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

    #arrow.rotate {
        transform: rotate(180deg);
    }

/* ===== CAROUSEL ===== */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: auto;
    max-width: 1200px;
    display: none;
    transition: max-height 0.4s ease;
}


    .carousel-wrapper.show {
        display: block;
    }


.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

/* ===== EVENT CARD ===== */
.event-card {
    flex: 0 0 calc(33.333% - 20px);
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: scroll;
}


    .event-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

.event-info p {
    color: #555;
    text-align: justify;
}

.slider {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
}





.innerslide {
    display: none;
    width: 100%;
    height: 100%;
}

    .innerslide.active-slide {
        display: block;
    }

    .innerslide img,
    .innerslide video,
    .innerslide iframe {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }


.caption-text {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}





/* Buttons */
.prev, .next {
    position: absolute;
    top: 25%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.event-card .prev,
.event-card .next {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}




/* Show them only when hovering over the card */
.event-card:hover .prev,
.event-card:hover .next {
    opacity: 1;
    visibility: visible;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


/* Event info */
.event-info {
    padding: 15px !important;
    flex-grow: 1;
    font-weight: 400!important;
    padding-bottom: 5px;
    font-size:14px;
}

    .event-info h3 {
        margin-bottom: 8px;
        font-size: 14px;
        color: #222;
    }

    .event-info p {
        color: #555;
        text-align: justify;
        height: 70px;
        font-weight: 400!important;
        padding-bottom: 5px;
    }


/* ===== NAV BUTTONS ===== */
.carousel-btn {
    position: absolute;
    top: 49%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 28px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s;
}

    .carousel-btn:hover {
        background: rgba(0, 0, 0, 0.85);
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }


/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}

    .lightbox img {
        max-width: 90%;
        max-height: 80%;
        border-radius: 8px;
    }

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 10px;
    max-width: 90%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
}





/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .event-card {
        flex: 0 0 calc(50% - 20px); /* 2 per row */
    }

    .slider {
        height: 200px;
    }

    .innerslide img,
    .innerslide video,
    .innerslide iframe {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .carousel-track {
        padding: 10px;
        gap: 10px;
    }

    .event-card {
        flex: 0 0 100%;
    }

    .slider {
        height: 180px;
    }

    .innerslide img,
    .innerslide video,
    .innerslide iframe {
        height: 180px;
    }

    .event-info p {
        font-size: 14px;
    }

    .carousel-btn {
        font-size: 22px;
    }
}

#eventCarousel {
    transition: transform 0.8s ease-in-out;
}


