/* ========================================
   EVENT CARDS
======================================== */

.thotis-events__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.thotis-event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 28px;
    border-radius: 16px;
    min-height: 146px;
    box-sizing: border-box;
}

/* Date */

.thotis-event-card__date {
    display: block;
    margin: 0 0 18px;
    padding: 0;
    background: transparent;
    text-align: left;
    line-height: 1.2;
}

.thotis-event-card__date span,
.thotis-event-card__date strong {
    display: inline;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.thotis-event-card__date strong {
    margin: 0 3px;
    font-weight: 700;
}

/* Contenu */

.thotis-event-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    text-align: left;
}

/* Ecole */

.thotis-event-card__body h3 {
    margin: 0 0 12px;
    padding: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    text-align: left;
}

/* Lieu + horaires */

.thotis-event-card__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
}

.thotis-event-card__details span {
    display: block;
    text-align: left;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 900px) {
    .thotis-events__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .thotis-events__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .thotis-event-card {
        padding: 22px;
    }

    .thotis-event-card__date span,
    .thotis-event-card__date strong {
        font-size: 14px;
    }

    .thotis-event-card__body h3 {
        font-size: 20px;
    }
}

/* added */

.thotis-event-card {
    position: relative;
    background-image: url('./ellipse-mask-group-2.jpg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 45% auto;
    background-size: cover;
}


.thotis-event-card .wp-block-buttons {
    position: absolute;
    right: 15px;
    bottom: 20px;
    margin: 0;
    z-index: 2;
}

.thotis-event-card .wp-block-button {
    margin: 0;
}
