/* === EVENTS SECTION === */
.events-section {
    position: relative;
    border-top: 2px solid limegreen;
    border-bottom: 2px solid limegreen;
    padding: 3.5rem 2rem;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 0; /* ensures overlay works */
}

/* Make picture fill section */
.events-section .events-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* behind content + overlay */
}

.events-section .background-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ✅ stretch & crop nicely */
}

/* Overlay layer */
.events-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    z-index: -1; /* sits above bg but behind content */
}
/* === EVENTS LIST === */
.event-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1400px;
    width: 100%;
    z-index: 2;
}

/* === INDIVIDUAL EVENT CARD === */
.event-item {
    position: relative;
    overflow: hidden;
    flex: 1 1 410px;
    max-width: 410px;
    min-height: 300px; /* ✅ desktop base */
    background: rgba(0, 0, 0, 0.45);
    color: white;
    padding: 1.5rem 1.65rem;
    border-radius: 18px;
    border: 2px solid rgba(0, 255, 0, 0.6);
    box-shadow: 0 0 28px rgba(0, 255, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;

    display: flex;
    flex-direction: column;
}

.event-item:hover {
    transform: scale(1.04);
    box-shadow: 0 0 35px 10px rgba(0, 255, 0, 0.5);
}


/* === BASE TYPOGRAPHY === */
.event-item h3 {
    font-size: 1.65rem;
    color: white;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.event-item time {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00e676;
    text-shadow: 0 0 6px rgba(0, 255, 0, 0.5);

}

.event-item p {
    margin-top: 0.75rem;
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.5;
    flex-grow: 1;
}

/* === ACTION BUTTONS === */
.event-buttons {
    margin-top: auto;
    display: flex;
    justify-content: center;
    width: 100%;
}

.event-buttons a {
    padding: 0.75rem 1.4rem;
    background-color: #00c853;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 255, 0, 0.3);
    display: inline-block;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.event-buttons a:hover {
    background-color: limegreen;
    transform: scale(1.05);
    box-shadow: 0 0 50px 20px rgba(0, 255, 0, 0.6);
}


/* === TABLET OPTIMIZATION (601px–900px) === */
@media (max-width: 768px) {

    .event-item {
        flex: 1 1 370px; /* allow 2 cards per row */
        max-width: 370px;
        min-height: 280px;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .event-item h3 {
        font-size: 1.35rem;
    }

    .event-item time {
        font-size: 1.2rem;
    }

    .event-item p {
        font-size: 1.05rem;
    }

    .event-buttons a {
        font-size: 0.95rem;
        padding: 0.65rem 1.2rem;
    }

    .event-list {
        gap: 1.5rem; /* balanced spacing for grid */
    }
}