/* =====================================================
   EVENTS PAGE
   ===================================================== */


/* =====================================================
   HERO
   ===================================================== */

.events-hero {

    min-height: 75vh;

    display: flex;

    align-items: flex-end;

    padding: 100px 7%;

    background:
        linear-gradient(
            90deg,
            rgba(5,7,8,0.96),
            rgba(5,7,8,0.45)
        ),
     url("../images/hero4.jpeg")
        center / cover no-repeat;
}


.events-hero-content {

    max-width: 900px;
}


.events-hero h1 {

    margin: 0;

    font-size: clamp(55px, 8vw, 105px);

    line-height: 0.9;

    letter-spacing: -5px;
}


.events-hero h1 span {

    display: block;

    color: rgba(255,255,255,0.35);
}


.events-hero-content > p:last-child {

    max-width: 600px;

    margin-top: 30px;

    color: rgba(255,255,255,0.55);

    line-height: 1.8;
}


/* =====================================================
   UPCOMING EVENTS
   ===================================================== */

.events-section {

    padding: 140px 0;

    background: #090b0d;
}


.events-heading {

    margin-bottom: 50px;
}


.events-heading h2 span {

    display: block;

    color: rgba(255,255,255,0.35);
}


/* =====================================================
   FILTERS
   ===================================================== */

.event-filters {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 55px;
}


.event-filter {

    padding: 12px 18px;

    border: 1px solid rgba(255,255,255,0.1);

    background: transparent;

    color: rgba(255,255,255,0.45);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;

    transition: 0.2s ease;
}


.event-filter:hover,
.event-filter.active {

    background: #ffffff;

    color: #080a0c;

    border-color: #ffffff;
}


/* =====================================================
   EVENT GRID
   ===================================================== */

.event-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}


.event-card {

    background: #0d1012;

    border: 1px solid rgba(255,255,255,0.07);

    overflow: hidden;

    transition: 0.3s ease;
}


.event-card:hover {

    transform: translateY(-5px);

    border-color: rgba(255,255,255,0.15);
}


/* =====================================================
   EVENT IMAGES
   ===================================================== */

.event-image {

    height: 280px;

    display: flex;

    align-items: flex-end;

    padding: 25px;

    background-position: center;

    background-size: cover;
}


.event-image span {

    padding: 7px 10px;

    background: rgba(0,0,0,0.7);

    color: #ffffff;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


.event-image-one {

    background:
        linear-gradient(
            rgba(0,0,0,0.15),
            rgba(0,0,0,0.8)
        ),
        url("../images/event-competition.jpg")
        center / cover;
}


.event-image-two {

    background:
        linear-gradient(
            rgba(0,0,0,0.15),
            rgba(0,0,0,0.8)
        ),
        url("../images/event-seminar.jpg")
        center / cover;
}


.event-image-three {

    background:
        linear-gradient(
            rgba(0,0,0,0.15),
            rgba(0,0,0,0.8)
        ),
        url("../images/event-cultural.jpg")
        center / cover;
}


.event-image-four {

    background:
        linear-gradient(
            rgba(0,0,0,0.15),
            rgba(0,0,0,0.8)
        ),
        url("../images/event-training.jpg")
        center / cover;
}


/* =====================================================
   EVENT CONTENT
   ===================================================== */

.event-content {

    display: grid;

    grid-template-columns: 70px 1fr;

    gap: 25px;

    padding: 30px;
}


.event-date {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    padding-right: 20px;

    border-right: 1px solid rgba(255,255,255,0.08);
}


.event-date strong {

    font-size: 32px;

    line-height: 1;
}


.event-date span {

    margin-top: 5px;

    color: rgba(255,255,255,0.35);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;
}


.event-date small {

    display: block;

    margin-top: 3px;

    font-size: 7px;
}


.event-info h3 {

    margin-bottom: 12px;

    font-size: 22px;
}


.event-info > p {

    margin-bottom: 20px;

    color: rgba(255,255,255,0.4);

    font-size: 11px;

    line-height: 1.7;
}


.event-location {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 22px;

    color: rgba(255,255,255,0.3);

    font-size: 9px;
}


.event-details-button {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 0;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;
}


/* =====================================================
   PAST EVENTS
   ===================================================== */

.past-events {

    padding: 140px 0;

    background: #0d1012;
}


.past-events-grid {

    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 100px;
}


.past-events-grid > div:first-child > p:last-child {

    max-width: 450px;

    margin-top: 25px;

    color: rgba(255,255,255,0.4);

    line-height: 1.8;
}


.past-events-grid h2 span {

    display: block;

    color: rgba(255,255,255,0.35);
}


.past-event {

    display: grid;

    grid-template-columns: 60px 1fr 30px;

    align-items: center;

    gap: 20px;

    padding: 25px 0;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}


.past-event > span {

    color: rgba(255,255,255,0.25);

    font-size: 10px;
}


.past-event h3 {

    margin-bottom: 6px;

    font-size: 16px;
}


.past-event p {

    margin: 0;

    color: rgba(255,255,255,0.3);

    font-size: 10px;
}


.past-event > i {

    color: rgba(255,255,255,0.3);

    font-size: 11px;
}


/* =====================================================
   CTA
   ===================================================== */

.events-cta {

    padding: 130px 0;

    background: #ffffff;

    color: #080a0c;

    text-align: center;
}


.events-cta-content {

    max-width: 700px;

    margin: auto;
}


.events-cta .section-label {

    color: rgba(0,0,0,0.4);
}


.events-cta h2 {

    color: #080a0c;
}


.events-cta h2 span {

    color: rgba(0,0,0,0.3);
}


.events-cta-content > p:not(.section-label) {

    color: rgba(0,0,0,0.5);

    line-height: 1.8;
}


.events-cta .btn {

    display: inline-block;

    margin-top: 25px;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {

    .event-grid {

        grid-template-columns: 1fr;

    }


    .past-events-grid {

        grid-template-columns: 1fr;

        gap: 50px;

    }

}


@media (max-width: 600px) {

    .events-hero {

        min-height: 650px;

        padding: 70px 5%;

    }


    .events-hero h1 {

        font-size: 55px;

        letter-spacing: -3px;

    }


    .events-section,
    .past-events {

        padding: 90px 0;

    }


    .event-content {

        grid-template-columns: 55px 1fr;

        gap: 15px;

        padding: 22px;

    }


    .event-image {

        height: 230px;

    }


    .events-cta {

        padding: 90px 20px;

    }

}
/* =====================================================
   EVENT DETAILS PANEL
   ===================================================== */

.event-details-panel {

    position: relative;

    display: none;

    max-width: 900px;

    margin: 70px auto 0;

    padding: 50px;

    background: #111417;

    border: 1px solid rgba(255,255,255,0.1);

}


.event-details-panel.open {

    display: block;

    animation: eventPanelOpen 0.3s ease;

}


@keyframes eventPanelOpen {

    from {

        opacity: 0;

        transform: translateY(15px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* Close button */

.close-event-details {

    position: absolute;

    top: 20px;

    right: 20px;

    width: 35px;

    height: 35px;

    border: 1px solid rgba(255,255,255,0.1);

    background: transparent;

    color: white;

    cursor: pointer;

}


.close-event-details:hover {

    background: white;

    color: #080a0c;

}


/* Event title */

.event-details-panel h2 {

    max-width: 700px;

    margin: 10px 0 30px;

    font-size: clamp(35px, 5vw, 60px);

    line-height: 1;

}


/* Information row */

.event-detail-information {

    display: flex;

    flex-wrap: wrap;

    gap: 30px;

    padding: 25px 0;

    margin-bottom: 25px;

    border-top: 1px solid rgba(255,255,255,0.08);

    border-bottom: 1px solid rgba(255,255,255,0.08);

}


.event-detail-information div {

    display: flex;

    align-items: center;

    gap: 10px;

    color: rgba(255,255,255,0.5);

    font-size: 10px;

}


.event-detail-information i {

    color: rgba(255,255,255,0.8);

}


/* Description */

#event-detail-description {

    max-width: 700px;

    color: rgba(255,255,255,0.45);

    line-height: 1.9;

    font-size: 12px;

}


/* Register button */

.event-register-button {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 30px;

    padding: 15px 22px;

    border: none;

    background: white;

    color: #080a0c;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;

}


@media (max-width: 600px) {

    .event-details-panel {

        padding: 35px 25px;

    }


    .event-detail-information {

        flex-direction: column;

        gap: 15px;

    }

}
/* =========================================
   EVENT SEARCH
   ========================================= */

.event-search {
    display: flex;
    align-items: stretch;
    gap: 12px;
    max-width: 700px;
    margin: 35px auto 0;
    margin-bottom: 2rem;
}

.event-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.event-search-box i {
    font-size: 15px;
    opacity: 0.55;
}

.event-search-box input {
    width: 100%;
    height: 52px;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
}

.event-search-box input::placeholder {
    opacity: 0.55;
}

.clear-event-search {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.55;
}

.clear-event-search:hover {
    opacity: 1;
}

.event-search > button {
    height: 52px;
    padding: 0 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}

.events-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination-button,
.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.pagination-number.active {
    font-weight: 700;
}

.pagination-button {
    gap: 8px;
}