.search-container {
    padding: 20px 10%;
    text-align: center;
}

.search-container input[type="text"] {
    width: 80%;
    padding: 10px;
    border: 1px solid #5f3476;
    border-radius: 4px;
    background-color: #1e1e2f;
    color: #ffffff;
    font-family: "Courier New", sans-serif;
}


.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 10%;
}


.event-card {
    position: relative;
    background-color: #29283c;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}


.date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #8d108fc4;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: "Courier New", sans-serif;
    z-index: 2;
}


.event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    position: relative;
}

.event-info::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent, #29283c 70%);
    pointer-events: none;
}

.event-info h3 {
    color: #c792ea;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.event-info p {
    color: #e6e6e6;
    font-size: 1rem;
    flex-grow: 1;
}


.event-card:hover .event-info h3,
.event-card:hover .event-info p {
    color: #fff;
}


@media (max-width: 768px) {
    .event-card {
        flex-direction: row;
    }

    .event-card img {
        width: 40%;
        height: 100%;
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    .event-info {
        flex: 1;
    }
}