.est-home-events__wrapper {
    position: relative;
}

.est-home-events__swiper {
    overflow: hidden;
    width: 100%;
    padding-bottom: 10px;
}

.est-home-event-card {
    display: grid;
    height: 154px;
    grid-template-columns: 60% minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 12px;
    background: #fff;
    color: #17243d;
    text-decoration: none !important;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.est-home-event-card:hover,
.est-home-event-card:focus-visible {
    color: #17243d;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(23, 32, 51, .12);
    transform: translateY(-1px);
}

.est-home-event-card__media {
    position: relative;
    display: block;
    min-width: 0;
    background-color: #eef2f7;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.est-home-event-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.est-home-event-card__sale,
.est-home-event-card__date {
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(15, 42, 88, .1);
}

.est-home-event-card__sale {
    padding: 4px 7px;
    border-radius: 5px;
    background: #ff804d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.est-home-event-card__date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    padding: 6px 8px;
    border: 1px solid rgba(11, 92, 255, .18);
    border-radius: 8px;
    background: #fff;
    color: #0b5cff;
    font-size: 10px;
    line-height: 1.1;
}

.est-home-event-card__date strong {
    font-size: 13px;
    font-weight: 700;
}

.est-home-event-card__body {
    display: flex;
    min-width: 0;
    padding: 16px;
    flex-direction: column;
}

.est-home-event-card__title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.est-home-event-card__meta {
    display: flex;
    min-width: 0;
    margin-top: 10px;
    gap: 6px;
    flex-direction: column;
    color: #7a879d;
    font-size: 10px;
    line-height: 1.25;
}

.est-home-event-card__meta > span {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
}

.est-home-event-card__meta svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.est-home-event-card__more {
    display: inline-flex;
    margin-top: auto;
    align-items: center;
    gap: 8px;
    color: #0b5cff;
    font-size: 12px;
    font-weight: 700;
}

.est-home-events__button {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    transform: translateY(-50%);
    place-items: center;
    border: 1px solid #dfe5ee;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(23, 32, 51, .12);
    color: #0b5cff;
    cursor: pointer;
}

.est-home-events__button[hidden] {
    display: none;
}

.est-home-events__button--prev {
    left: -18px;
}

.est-home-events__button--next {
    right: -18px;
}

.est-home-events__button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

@media (max-width: 699px) {
    .est-home-event-card {
        height: 146px;
        grid-template-columns: 60% minmax(0, 1fr);
    }

    .est-home-event-card__body {
        padding: 12px;
    }

    .est-home-event-card__badges {
        top: 8px;
        left: 8px;
    }

    .est-home-events__button--prev {
        left: -12px;
    }

    .est-home-events__button--next {
        right: -12px;
    }
}
