

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
    gap: 24px;
    justify-content: center;
    width: min(90%, 1140px);
    margin: 0 auto;
    padding: 10px 0;
    
}
img{
    width: 50%;
    height: auto;
    border-radius: 20px;
}
.event-image {
    width: 240px;
    height: 340px;
    object-fit: contain;
}

a.event-card {
    text-decoration: none;
    color: inherit;
}

.event-card {
    display: grid;
    width: fit-content;
    max-width: 300px;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 19px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #f7f8fb;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
    transform: translateY(-8px);
    border-color: rgba(123, 180, 255, 0.8);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.18);
}

.event-card h3 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.2;
}

.event-card p {
    margin: 0;
    color: #e9edf6;
    font-size: 0.98rem;
}


@media (max-width: 768px) {
    .events-container {
        grid-template-columns: minmax(0, 300px);
        justify-content: center;
    }

    .event-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .event-image {
        width: 100%;
        height: auto;
        max-height: 340px;
    }

    .event-card h3 {
        font-size: 1.25rem;
    }

    .event-card p {
        font-size: 1rem;
    }
}