/* Main grid */
.cme-event-grid {
    width:100%;
    display: grid;
    gap: 2rem;
}

/* Flexbox for each card */
.cme-event-card {
    display: flex;
    flex-direction: row;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease-in-out;
gap: 2rem;
}

/* Left block: images */
.cme-event-image {
    position: relative;
    width: 40%;
    min-width: 120px;
}

/* The image takes up the entire block */
.cme-event-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Date of the event (label) */
.cme-event-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--e-global-color-primary);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* Content on the right */
.cme-event-content {
display: flex;
flex-direction:column;
    padding: 1rem;
    flex: 1;
align-items:flex-start;
}

/* Event title */
.cme-event-content h3 {
    margin: 0 0 10px;
    font-size: inherit;
}

/* Event metadata */
.cme-event-meta{
	margin-bottom: 1rem;
}
.cme-event-meta span {
    display: block;
    font-size: inherit;
    color: #666;
}

/* Booking button */
.cme-event-button {
    display: inline-block;
    margin-top: 0;
    padding: inherit;
    background: inherit;
    color: inherit;
    text-decoration: none;
    border-radius: inherit;
    text-align: center;
    font-weight: bold;
}
.cme-event-button:hover {
    background: inherit;
}

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

    .cme-event-image {
        width: 100%;
    }

    .cme-event-content {
        text-align: center;
    }

    .cme-event-meta span {
        text-align: left;
    }

    .cme-event-button {
        display: block;
        width: 100%;
        margin-top: 15px;
    }
}
