.ec-event-cards-widget {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ec-event-grid {
    display: grid;
    width: 100%;
    margin-inline: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 32px;
}

.ec-event-card {
    position: relative;
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition-property: transform, box-shadow, background-color, border-color;
    transition-duration: 300ms;
    transition-timing-function: ease;
}

.ec-event-card:hover {
    box-shadow: 0 20px 35px -18px rgba(15, 23, 42, 0.35);
    transform: translateY(-4px);
}

.ec-event-card-main {
    min-width: 0;
}

.ec-event-media {
    position: relative;
    height: 224px;
    overflow: hidden;
    background: #f1f5f9;
}

.ec-event-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 500ms ease;
}

.ec-event-card:hover .ec-event-image {
    transform: scale(1.05);
}

.ec-event-image-overlay {
    --ec-overlay-bottom: rgba(0, 0, 0, 0.6);
    --ec-overlay-middle: rgba(0, 0, 0, 0);
    --ec-overlay-top: rgba(0, 0, 0, 0.2);
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        var(--ec-overlay-bottom) 0%,
        var(--ec-overlay-middle) 55%,
        var(--ec-overlay-top) 100%
    );
}

.ec-event-date-badge,
.ec-event-featured-badge,
.ec-event-category {
    position: absolute;
    z-index: 2;
}

.ec-event-date-badge {
    top: 16px;
    left: 16px;
    display: flex;
    min-width: 64px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ec-event-month {
    color: #d97706;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ec-event-day {
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.ec-event-featured-badge {
    top: 16px;
    right: 16px;
    max-width: calc(100% - 112px);
    padding: 5px 12px;
    border-radius: 999px;
    background: #f59e0b;
    color: #020617;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.18);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.ec-event-category {
    bottom: 12px;
    left: 16px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ec-event-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.ec-event-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ec-event-title {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    transition: color 250ms ease;
}

.ec-event-card:hover .ec-event-title {
    color: #0d9488;
}

.ec-event-description {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
}

.ec-event-description p {
    margin: 0;
}

.ec-event-description p + p {
    margin-top: 0.75em;
}

.ec-event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.ec-event-meta-row {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 8px;
}

.ec-event-time {
    align-items: center;
    color: #1e293b;
    font-weight: 700;
}

.ec-event-meta-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-top: 0.1em;
    font-size: 16px;
    line-height: 1;
}

.ec-event-meta-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.ec-event-time .ec-event-meta-icon {
    color: #0d9488;
}

.ec-event-location .ec-event-meta-icon {
    color: #f59e0b;
}

.ec-event-location-copy {
    min-width: 0;
}

.ec-event-venue {
    color: #1e293b;
    font-weight: 700;
}

.ec-event-address {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
}

.ec-event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 24px 24px;
}

.ec-event-status {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ec-event-status-label {
    color: #059669;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ec-event-status-detail {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.ec-event-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #db2777 0%, #f59e0b 100%);
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease, color 200ms ease, background 200ms ease;
}

.ec-event-button:hover,
.ec-event-button:focus {
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
    transform: scale(1.02);
}

.ec-event-button:focus-visible {
    outline: 3px solid rgba(13, 148, 136, 0.35);
    outline-offset: 3px;
}

.ec-event-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.ec-event-button-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

@media (max-width: 767px) {
    .ec-event-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ec-event-featured-badge {
        max-width: calc(100% - 108px);
    }

    .ec-event-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .ec-event-button {
        width: 100%;
    }
}
