/* EVENTS SECTION */
.events-section {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.events-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: rgb(14, 9, 9);
}

.events-header p {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
}

/* GRID */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* CARD */
.event-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    height: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

/* IMAGE */
.event-card img {
    width: 100%;
    height: 100%;
    background-size: cover;
    display: block;
}

/* OVERLAY TEXT */
.event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.75)
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
}

/* TEXT */
.event-overlay h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.event-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* HOVER EFFECT (DESKTOP) */
.event-card:hover {
    transform: translateY(-8px);
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {

    .events-header h2 {
        font-size: 24px;
    }

    .event-card {
        height: 180px;
    }

    .event-overlay h3 {
        font-size: 18px;
    }

    .event-overlay p {
        font-size: 13px;
    }
}


