.fem-events-list-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.fem-events-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: end;
    margin: 0 0 28px;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid #dfe6f1;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(17, 34, 64, 0.08);
}

.fem-events-filter .fem-filter-field {
    display: flex;
    flex-direction: column;
    min-width: 230px;
    flex: 1 1 230px;
}

.fem-events-filter .fem-filter-field label {
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #061739;
}

.fem-events-filter input[type="text"],
.fem-events-filter select {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #cbd6e4;
    border-radius: 7px;
    background: #ffffff;
    color: #10203d;
    font-size: 15px;
    line-height: 1.3;
}

.fem-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.fem-filter-button,
.fem-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 7px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.fem-filter-button {
    border: 0;
    background: #174a98;
    color: #ffffff !important;
    cursor: pointer;
}

.fem-filter-button:hover {
    background: #0f3977;
}

.fem-reset-button {
    background: #ffffff;
    color: #174a98 !important;
    border: 1px solid #174a98;
}

.fem-events-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fem-event-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 315px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    background: #0b1e3d;
}

.fem-event-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    transform: scale(1.01);
}

.fem-event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(3, 22, 54, 0.96) 0%,
        rgba(3, 22, 54, 0.82) 32%,
        rgba(3, 22, 54, 0.38) 58%,
        rgba(3, 22, 54, 0.10) 100%
    );
    z-index: 1;
}

.fem-event-date-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 3;
    width: 54px;
    min-height: 70px;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 9px 4px 8px;
}

.fem-event-day {
    display: block;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: #124a87;
}

.fem-event-month {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 900;
    color: #58595b;
    text-transform: uppercase;
}

.fem-event-card-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: 315px;
    width: 100%;
}

.fem-event-card-content {
    width: 100%;
    max-width: 760px;
    padding: 36px 32px 32px 130px;
}

.fem-event-title {
    margin: 0 0 14px !important;
    font-size: 30px !important;
    line-height: 1.18 !important;
    font-weight: 500 !important;
}

.fem-event-title,
.fem-event-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.fem-event-title a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

.fem-event-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fem-event-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 16px;
    line-height: 1.35;
    color: #ffffff !important;
}

.fem-event-icon {
    width: 17px;
    height: 17px;
    min-width: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    color: #ffffff;
}

.fem-event-icon svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: currentColor;
}

.fem-event-label {
    font-weight: 400;
    color: #ffffff !important;
}

.fem-event-value {
    font-weight: 600;
    color: #ffffff !important;
}

.fem-event-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.fem-event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 25px;
    background: #4280c2;
    border: 2px solid #7ed321;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
}

.fem-event-button:hover {
    background: #124783;
    color: #ffffff !important;
    text-decoration: none !important;
}

.fem-event-button-secondary {
    background: rgba(10, 28, 62, 0.65);
    border-color: #7ed321;
}

.fem-event-button-secondary:hover {
    background: rgba(10, 28, 62, 0.9);
}

.fem-no-events {
    padding: 18px 20px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #f8fbff;
    color: #22324d;
}

/* Event list responsive behavior */
@media (max-width: 980px) {
    .fem-events-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .fem-filter-actions {
        width: 100%;
    }

    .fem-event-card,
    .fem-event-card-inner {
        min-height: 380px;
    }

    .fem-event-card-content {
        padding: 104px 24px 28px 24px;
    }

    .fem-event-title {
        font-size: 25px !important;
    }

    .fem-event-meta-row {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .fem-event-card,
    .fem-event-card-inner {
        min-height: 440px;
    }

    .fem-event-card-content {
        padding: 104px 18px 24px 18px;
    }

    .fem-event-title {
        font-size: 22px !important;
    }

    .fem-event-meta-row {
        font-size: 14px;
    }

    .fem-event-date-badge {
        top: 18px;
        left: 18px;
        width: 52px;
    }

    .fem-event-day {
        font-size: 24px;
    }
}

/* Single FI Event Details - simple left-aligned list */
.fem-single-event-details {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.fem-single-event-details-title {
    margin: 0 0 16px !important;
    color: #124a87;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 1px solid #124a87;
    padding-bottom: 10px;
}

.fem-single-event-details-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 18px;
}

/* icon | label | value */
.fem-single-event-detail-row {
    display: grid !important;
    grid-template-columns: 18px max-content 1fr !important;
    column-gap: 8px !important;
    align-items: start !important;
    color: #1e2f4f;
    font-size: 16px;
    line-height: 1.4;
    text-align: left !important;
}

.fem-single-event-detail-icon {
    grid-column: 1 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    color: #174a98;
    margin-top: 2px;
}

.fem-single-event-detail-icon svg,
.fem-single-event-detail-icon .fem-inline-icon,
.fem-inline-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    display: block !important;
    fill: currentColor !important;
    overflow: hidden !important;
    flex: 0 0 18px !important;
}

.fem-single-event-detail-label {
    grid-column: 2 !important;
    font-weight: 800 !important;
    color: #061739;
    white-space: nowrap !important;
    text-align: left !important;
}

.fem-single-event-detail-value {
    grid-column: 3 !important;
    font-weight: 500;
    color: #263a5f;
    text-align: left !important;
    justify-self: start !important;
}

.fem-single-event-detail-value a {
    color: #174a98;
    font-weight: 500;
    text-decoration: none;
}

.fem-single-event-detail-value a:hover {
    text-decoration: underline;
}

/* Shared inline SVG icon sizing */
.fem-event-icon,
.fem-single-event-detail-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
}

.fem-event-icon svg,
.fem-single-event-detail-icon svg,
.fem-inline-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    display: block !important;
    fill: currentColor !important;
}

/* Keep details left-aligned on small screens */
@media (max-width: 600px) {
    .fem-single-event-detail-row {
        grid-template-columns: 18px max-content 1fr !important;
    }

    .fem-single-event-detail-label {
        grid-column: 2 !important;
    }

    .fem-single-event-detail-value {
        grid-column: 3 !important;
    }
}

/* Mobile filter spacing fix */
@media (max-width: 767px) {
    .fem-events-filter {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        align-items: stretch !important;
        padding: 20px !important;
        margin-bottom: 24px !important;
    }

    .fem-events-filter .fem-filter-field {
        min-width: 0 !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    .fem-events-filter .fem-filter-field label {
        margin: 0 0 8px !important;
        display: block !important;
    }

    .fem-events-filter input[type="text"],
    .fem-events-filter select {
        min-height: 48px !important;
        margin: 0 !important;
    }

    .fem-filter-actions {
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 4px !important;
    }

    .fem-filter-button,
    .fem-reset-button {
        min-height: 48px !important;
        padding: 0 24px !important;
    }
}

/* Single Event Feature Card */
.fem-single-feature-card {
    width: 100%;
    margin: 0 0 28px;
}

.fem-single-feature-card .fem-event-title {
    color: #ffffff !important;
    text-decoration: none !important;
    pointer-events: none;
}

.fem-single-feature-card .fem-event-card-content {
    max-width: 850px;
}

.fem-single-feature-card .fem-event-actions {
    margin-top: 28px;
}

/* Single feature card venue/organizer links: right-to-left underline */
.fem-single-feature-card .fem-event-value a {
    position: relative !important;
    display: inline-block !important;
    color: inherit !important;
    font-weight: inherit !important;
    text-decoration: none !important;
    line-height: 1.25;
}

.fem-single-feature-card .fem-event-value a::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    bottom: -2px !important;
    width: 100% !important;
    height: 1px !important;
    background-color: currentColor !important;
    transform: scaleX(0) !important;
    transform-origin: right center !important;
    transition: transform 0.25s ease !important;
    pointer-events: none !important;
}

.fem-single-feature-card .fem-event-value a:hover::after,
.fem-single-feature-card .fem-event-value a:focus::after {
    transform: scaleX(1) !important;
    transform-origin: right center !important;
}

/* External link icon inside FI Events buttons */
.fem-event-button {
    gap: 8px;
}

.fem-event-button .fem-inline-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    color: currentColor;
    position: relative;
    top: 1px;
}

/* More pronounced Register button hover */
.fem-event-button-secondary {
    background: rgba(10, 28, 62, 0.65);
    border-color: #7ed321;
    color: #ffffff !important;
}

.fem-event-button-secondary:hover,
.fem-event-button-secondary:focus {
    background: #7ed321 !important;
    border-color: #7ed321 !important;
    color: #061739 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(126, 211, 33, 0.35);
}

.fem-event-button-secondary:hover .fem-inline-icon,
.fem-event-button-secondary:focus .fem-inline-icon {
    color: #061739 !important;
    fill: currentColor !important;
}