.tec-extend-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
}

.tec-extend-event-card {
    position: relative;
    overflow: hidden;
    min-height: 286px;
    background: #0d1f3c;
    box-shadow: 0px 8px 32px 0px #00000040;
}

.tec-extend-event-card__link {
    position: relative;
    display: block;
    min-height: 286px;
    color: inherit;
    text-decoration: none;
}

.tec-extend-event-card__link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 58%;
    background: linear-gradient(
        0deg,
        rgba(0, 87, 168, 0) 0%,
        rgba(7, 24, 48, 0.48) 18%,
        rgba(7, 24, 48, 0.56) 38%,
        rgba(5, 66, 132, 0.22) 68%,
        rgba(0, 87, 168, 0) 100%
    );
    z-index: 1;
}

.tec-extend-event-card__media {
    position: absolute;
    inset: 0;
    margin: 0;
    background: #0d1f3c;
}

.tec-extend-events-grid .tec-extend-event-card__media img.wp-post-image {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.tec-extend-event-card__content {
    position: relative;
    z-index: 2;
    min-height: 286px;
}

.tec-extend-event-card__date {
    position: absolute;
    top: 18px;
    left: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 54px;
    background: linear-gradient(135deg, #e2001a 0%, #8a000f 100%);
    color: #ffffff;
    font-style: normal;
    text-transform: uppercase;
}

.tec-extend-event-card__date span {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 24.8px;
    font-weight: 700;
    line-height: 1;
}

.tec-extend-event-card__date small {
    margin-top: 2px;
    font-family: "Barlow", sans-serif;
    font-size: 9.6px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
}

.tec-extend-event-card__body {
    position: absolute;
    right: 20px;
    bottom: 22px;
    left: 20px;
}

.tec-extend-event-card__body h3 {
    margin: 0 0 7px;
    color: #ffffff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 17.6px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.tec-extend-event-card__body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-family: "Barlow", sans-serif;
    font-size: 11.68px;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

.tec-extend-events-empty {
    padding: 28px;
    background: #ffffff;
    color: #0d1f3c;
    font-family: "Barlow", sans-serif;
}

@media (max-width: 1024px) {
    .tec-extend-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tec-extend-events-grid {
        grid-template-columns: 1fr;
    }

    .tec-extend-event-card,
    .tec-extend-event-card__link {
        min-height: 240px;
    }
}
