/* Wrap */
.fm-events-wrap {
    width: 100%;
}

/* Grid */
.fm-events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Tablet: 2 per row */
@media (min-width: 641px) {
    .fm-events-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
        row-gap: 40px;
    }
}

/* Desktop: 3 per row */
@media (min-width: 1025px) {
    .fm-events-grid {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 40px;
        row-gap: 65px;
    }
}

/* Card */
.fm-event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image */
.fm-event-image-link {
    display: block;
    width: 100%;
}

.fm-event-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Body */
.fm-event-body {
    padding: 18px 0px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fm-event-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}

.fm-event-title-link {
    text-decoration: none;
    color: inherit;
}

/* Meta list */
.fm-event-meta {
    padding-left: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.fm-event-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    line-height: 1.25;
    opacity: 0.85;
}

.fm-event-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* CTA */
.fm-event-cta {
    margin-top: auto;
    padding-top: 16px;
}

.fm-event-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    background: #7a1414;
    /* adjust to match your brand */
    color: #fff;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.fm-event-button:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

/* Load More */
.fm-events-pagination {
    margin-top: 32px;
    text-align: center;
}

.fm-events-load-more {
    appearance: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    border-radius: 999px;
    padding: 14px 18px;
    background: #111;
    color: #fff;
}

.fm-events-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fm-events-loading {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.7;
}

.fm-event-icon-img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Make card clickable via overlay link */
.fm-event-card {
    position: relative;
}

/* The overlay link that covers the whole card */
.fm-event-card-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: block;
    border-radius: 14px;
    /* match your card radius */
}

/* Ensure internal content sits below the overlay (still visible) */
.fm-event-card>*:not(.fm-event-card-link) {
    position: relative;
    z-index: 1;
}

/* Cursor + hover styling only when clickable */
.fm-event-card--clickable {
    cursor: pointer;
}

.fm-event-card--clickable:hover {
    transform: translateY(-2px);
    transition: transform 0.18s ease;
}

/* Prevent button from being a real link; it's a visual CTA only */
.fm-event-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    background: #7a1414;
    color: #fff;
}

.fm-event-card-link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

@media (min-width: 1280px) {
    .container {
        width: 1370px !important;
    }
}

.fm-event-image-wrap {
    border: 1px solid #CCCCCC;
}

.fm-event-title {
    font-family: 'Montserrat', 'helvetica', 'arial', sans-serif;
    color: #9F1400;
    font-style: normal;
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    line-height: 30px;
}

.fm-event-body .fm-event-meta-text {
    font-family: 'Montserrat', 'helvetica', 'arial', sans-serif;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 20px;
    color: #4A5565;
    font-style: normal;
}

.fm-event-button {
    font-family: 'Montserrat', 'helvetica', 'arial', sans-serif;
    font-style: normal;
    font-weight: 700;
    border-radius: 8px;
    font-style: Bold;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    background: #871100;
    transition: background-color .3s;
}

.fm-event-card-link:hover~.fm-event-image-wrap~.fm-event-body .fm-event-button {
    background: #df1c00;
}
.fm-event-image {
    margin: auto;
}