/* Upcoming events — below impact stats on homepage */

.hp-events {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    background: #f8faf9;
    border-top: 1px solid rgba(0, 200, 104, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hp-events .container {
    width: 100%;
    max-width: var(--hp-container-max, 1320px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--hp-gutter, 1.25rem);
    padding-right: var(--hp-gutter, 1.25rem);
}

.hp-events__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 1.75rem;
}

.hp-events__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #9a7209;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.22);
}

.hp-events__head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--f-text-main, #0f172a);
}

.hp-events__head p {
    flex: 1 1 280px;
    max-width: 440px;
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--f-text-muted, #64748b);
}

.hp-events__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 200, 104, 0.35);
    color: var(--f-primary-neon, #00a855);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.hp-events__link:hover {
    background: rgba(0, 200, 104, 0.08);
    color: #087a42;
}

.hp-events__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.95fr 0.95fr;
    gap: 18px;
    align-items: stretch;
}

.hp-events__card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 20px;
    align-items: start;
    min-height: 220px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hp-events__card:first-child {
    min-height: 260px;
}

.hp-events__card:hover {
    color: inherit;
    transform: translateY(-6px);
    border-color: rgba(0, 200, 104, 0.35);
    box-shadow: 0 14px 32px rgba(0, 200, 104, 0.12);
}

.hp-events__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.25);
    text-align: center;
}

.hp-events__date strong {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    color: #b58c35;
}

.hp-events__date span {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #8c6c28;
}

.hp-events__body h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--f-text-main, #0f172a);
}

.hp-events__body p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--f-text-muted, #64748b);
}

.hp-events__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--f-primary-neon, #00a855);
}

.hp-events__empty {
    margin: 0;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    background: #fff;
    border: 1px dashed rgba(0, 0, 0, 0.12);
    color: var(--f-text-muted, #64748b);
}

@media (max-width: 991px) {
    .hp-events__grid {
        grid-template-columns: 1fr;
    }

    .hp-events__card,
    .hp-events__card:first-child {
        min-height: 0;
    }
}

@media (max-width: 575px) {
    .hp-events__card {
        grid-template-columns: 1fr;
    }

    .hp-events__date {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        min-height: 0;
    }
}
