.els-event-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.els-event-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    background: #fff;
    border-radius: 20px;
	box-shadow: 1px 0px 29px 0px rgba(75,102,251,0.3);
	-webkit-box-shadow: 1px 0px 29px 0px rgba(75,102,251,0.3);
	-moz-box-shadow: 1px 0px 29px 0px rgba(75,102,251,0.3);
    padding: 20px;
    gap: 20px;
}

.els-event-image-wrapper {
  flex: 1 1 40%;
  max-width: 400px;
  position: relative;
  border-radius: 16px;   /* move radius from the img to the wrapper */
  overflow: hidden;      /* crop image & keep badges inside */
  display: flex;         /* so the img can grow to 100% height */
}

/* The image fills the wrapper and is cropped as needed */
.els-event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* If Flatsome has a global img { height:auto }, force override: */
  height: 100% !important;
}


.els-event-badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;           /* allows wrapping if needed */
    flex-direction: row;       /* horizontal layout */
    gap: 6px;                  /* spacing between badges */
    z-index: 2;
    align-items: flex-start;
}

.els-event-info {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.event-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.eventBadge {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: inline-block;
    width: auto;        /* Make sure width adjusts to content */
    white-space: nowrap; /* Prevent line breaks */
    max-width: 100%;    /* Prevent overflow if text is very long */
}



.els-event-info {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}

.event-category {
    display: inline-block;
    background-color: #25DDAC; /* default */
    color: white;
    padding: 6px 14px;
    border-radius: 16px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 12px;
    align-self: flex-start;
}

/* Pink for category ID 5 */
.event-category.catJournee {
    background-color: #FB88B4;
}

/* Green for category ID 4 */
.event-category.catSemaine {
    background-color: #25DDAC;
}

.els-event-title {
    font-size: 2em;
    font-weight: 800;
    color: #4B66FB;
    margin: 10px 0;
}

.els-event-meta {
    font-size: 14px;
    color: #333;
	margin-bottom: 20px;
}

.els-event-meta:has(+ .els-event-meta) {
  margin-bottom: 0;
}

.event-btn {
    display: inline-block;
    background-color: #4B66FB;
    color: white;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    width: fit-content;
    transition: background-color 0.3s ease;
}

.event-btn:hover {
    background-color: #3f50db;
	color: white;
}

.event-info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f5efb;
    font-size: 16px;
    font-weight: bold;
    text-transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 3;
    padding: 0;
    line-height: 1;
}


.event-info-btn:hover {
    background-color: #ffffff;
    transform: scale(1.05);
}

.event-modal-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #3f5efb;
	padding: 16px 16px 0 16px;
}

.event-modal-desc {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
	padding: 0 16px 16px 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gm-style-iw button[aria-label="Close"] {
    display: none !important;
}


@media (max-width: 768px) {
    .els-event-card {
        flex-direction: column;
        align-items: center;
    }

    .els-event-image-wrapper,
    .els-event-info {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

