/* Actualizare 20 — evenimente compacte, 4 carduri pe desktop. */
.ho-latest-events {
    padding-block: 48px;
    border-block: 1px solid #e2e8ef;
    background: #f7f9fb;
}

.ho-latest-events-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.ho-latest-events-header > div {
    min-width: 0;
}

.ho-latest-events-header h2 {
    margin: 6px 0 0;
    color: var(--ho-navy, #08254d);
    font-size: clamp(24px, 2.1vw, 31px);
    font-weight: 750;
    letter-spacing: -0.032em;
    line-height: 1.18;
}

.ho-latest-events-header p {
    margin: 7px 0 0;
    color: #647386;
    font-size: 13px;
    line-height: 1.55;
}

.ho-latest-events-all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid #ccd7e2;
    border-radius: 999px;
    padding: 0 15px;
    background: #fff;
    color: var(--ho-navy, #08254d);
    font-size: 12px;
    font-weight: 700;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.ho-latest-events-all:hover {
    border-color: var(--ho-navy, #08254d);
    background: var(--ho-navy, #08254d);
    color: #fff;
}

.ho-latest-events-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ho-latest-event-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d9e2eb;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(8, 37, 77, .045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ho-latest-event-card:hover {
    transform: translateY(-2px);
    border-color: #bccbd9;
    box-shadow: 0 10px 24px rgba(8, 37, 77, .075);
}

.ho-latest-event-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e8eef4;
}

.ho-latest-event-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.8;
    object-fit: cover;
    transition: transform .28s ease;
}

.ho-latest-event-card:hover .ho-latest-event-media img {
    transform: scale(1.025);
}

.ho-latest-event-date {
    position: absolute;
    left: 11px;
    bottom: 11px;
    display: grid;
    width: 48px;
    min-height: 48px;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 9px;
    background: rgba(255, 255, 255, .96);
    color: var(--ho-navy, #08254d);
    text-align: center;
    box-shadow: 0 5px 14px rgba(8, 37, 77, .13);
}

.ho-latest-event-date strong {
    font-size: 19px;
    line-height: .95;
}

.ho-latest-event-date span {
    margin-top: 4px;
    color: #008c9d;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .07em;
}

.ho-latest-event-body {
    padding: 14px 15px 15px;
}

.ho-latest-event-category {
    display: block;
    overflow: hidden;
    color: #008c9d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .055em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ho-latest-event-body h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    margin: 7px 0 7px;
    color: var(--ho-navy, #08254d);
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -.018em;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ho-latest-event-body h3 a {
    color: inherit;
}

.ho-latest-event-body > p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 37px;
    margin: 0;
    color: #66768a;
    font-size: 11.5px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ho-latest-event-meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid #e5ebf1;
}

.ho-latest-event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    color: #66778b;
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ho-latest-event-meta svg {
    flex: 0 0 auto;
    color: #008c9d;
}

.ho-latest-events-all:focus-visible,
.ho-latest-event-card a:focus-visible {
    outline: 3px solid rgba(8, 37, 77, .16);
    outline-offset: 3px;
}

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

@media (max-width: 767px) {
    .ho-latest-events {
        padding-block: 40px;
    }

    .ho-latest-events-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 579px) {
    .ho-latest-events-grid {
        grid-template-columns: 1fr;
    }

    .ho-latest-event-card {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .ho-latest-event-media,
    .ho-latest-event-media img {
        height: 100%;
        min-height: 158px;
    }

    .ho-latest-event-media img {
        aspect-ratio: auto;
    }

    .ho-latest-event-date {
        left: 8px;
        bottom: 8px;
        width: 43px;
        min-height: 43px;
    }

    .ho-latest-event-date strong {
        font-size: 17px;
    }

    .ho-latest-event-body {
        padding: 13px;
    }

    .ho-latest-event-body h3 {
        min-height: auto;
        font-size: 16px;
    }

    .ho-latest-event-body > p {
        display: none;
    }

    .ho-latest-event-meta {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ho-latest-events-all,
    .ho-latest-event-card,
    .ho-latest-event-media img {
        transition: none;
    }

    .ho-latest-event-card:hover,
    .ho-latest-event-card:hover .ho-latest-event-media img {
        transform: none;
    }
}
