.events-listing {
    padding: 76px 0 96px;
    background: radial-gradient(circle at 96% 2%, rgba(255, 179, 44, .12), transparent 27%), #f6f8fb;
}

.events-listing__intro,
.events-listing__section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.events-listing__intro {
    margin-bottom: 30px;
}

.events-listing__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: #9a641b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.events-listing__eyebrow span {
    width: 22px;
    height: 2px;
    background: #d69731;
}

.events-listing__intro h2,
.events-listing__section-heading h2,
.events-empty h2 {
    margin: 0;
    color: #18314a;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.events-listing__intro p {
    max-width: 670px;
    margin: 12px 0 0;
    color: #63758a;
    font-size: 16px;
    line-height: 1.7;
}

.events-listing__count {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid #e1e8ef;
    border-radius: 999px;
    background: #fff;
    color: #28435a;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.events-featured {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: 380px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #18304a, #103f45);
    box-shadow: 0 24px 55px rgba(18, 49, 70, .16);
}

.events-featured__image,
.events-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #dbe5e8;
}

.events-featured__image img,
.events-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.events-featured:hover img,
.events-card:hover img {
    transform: scale(1.035);
}

.events-featured__image::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(90deg, transparent 70%, rgba(14, 43, 57, .14));
    pointer-events: none;
}

.events-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    min-height: 68px;
    padding: 8px 10px;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(9, 28, 43, .17);
    color: #17344a;
    line-height: 1.1;
}

.events-date-badge strong {
    font-size: 26px;
    font-weight: 700;
}

.events-date-badge span {
    margin-top: 3px;
    color: #7d5b2e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.events-featured__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.events-featured__label {
    width: fit-content;
    margin-bottom: 20px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 191, 83, .38);
    border-radius: 999px;
    background: rgba(255, 191, 83, .13);
    color: #ffd48c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.events-featured__label i {
    margin-right: 6px;
}

.events-featured__content h3 {
    margin: 0 0 18px;
    font-size: clamp(27px, 2.7vw, 38px);
    font-weight: 700;
    line-height: 1.22;
}

.events-featured__content h3 a,
.events-featured__content h3 a:hover {
    color: #fff;
}

.events-featured__content p {
    margin: 0 0 28px;
    color: #d0dde6;
    font-size: 16px;
    line-height: 1.75;
}

.events-featured__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.events-featured__footer span {
    color: #dce7ec;
    font-size: 13px;
}

.events-featured__footer span i {
    margin-right: 8px;
    color: #ffc66f;
}

.events-featured__footer a,
.events-featured__footer a:hover {
    color: #ffd18a;
    font-size: 13px;
    font-weight: 700;
}

.events-featured__footer a i,
.events-card__link i {
    margin-left: 7px;
    transition: transform .2s ease;
}

.events-featured__footer a:hover i,
.events-card__link:hover i {
    transform: translateX(3px);
}

.events-listing__section-heading {
    margin: 58px 0 24px;
}

.events-listing__section-heading h2 {
    font-size: 27px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.events-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5ebef;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(22, 53, 75, .07);
    transition: transform .25s ease, box-shadow .25s ease;
}

.events-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(22, 53, 75, .13);
}

.events-card__image {
    aspect-ratio: 16 / 10;
}

.events-card__image .events-date-badge {
    top: 14px;
    left: 14px;
    min-width: 57px;
    min-height: 59px;
}

.events-card__image .events-date-badge strong {
    font-size: 22px;
}

.events-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.events-card__meta {
    margin-bottom: 12px;
    color: #8c622b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.events-card__meta i {
    margin-right: 6px;
}

.events-card__body h3 {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

.events-card__body h3 a {
    color: #17334a;
}

.events-card__body h3 a:hover,
.events-card__link:hover {
    color: #b77921;
}

.events-card__body p {
    margin: 0 0 20px;
    color: #66788a;
    font-size: 14px;
    line-height: 1.7;
}

.events-card__link {
    width: fit-content;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e8edf1;
    color: #214c60;
    font-size: 13px;
    font-weight: 700;
}

.events-empty {
    padding: 72px 24px;
    border: 1px dashed #cbd8df;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.events-empty > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: #fff5e6;
    color: #b57929;
    font-size: 27px;
}

.events-empty h2 {
    font-size: 26px;
}

.events-empty p {
    margin: 10px 0 0;
    color: #687a8a;
}

.events-listing__pagination {
    display: flex;
    justify-content: center;
    margin-top: 46px;
}

.events-listing__pagination > nav {
    width: 100%;
}

.events-listing__pagination > nav > .d-sm-flex {
    width: 100%;
    align-items: center;
    justify-content: space-between !important;
    gap: 24px;
    text-align: left;
}

.events-listing__pagination p {
    margin: 0;
    color: #66788a;
    line-height: 1.5;
}

.events-listing__pagination .pagination {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
}

.events-listing__pagination .page-link {
    color: #23435a;
}

.events-listing__pagination .page-item.active .page-link {
    border-color: #173f4b;
    background: #173f4b;
}

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

    .events-featured__image {
        height: 330px;
    }

    .events-featured__content {
        padding: 34px;
    }

    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .events-listing {
        padding: 48px 0 65px;
    }

    .events-listing__intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .events-featured__image {
        height: 245px;
    }

    .events-featured__content {
        padding: 27px 22px;
    }

    .events-featured__content h3 {
        font-size: 27px;
    }

    .events-listing__section-heading {
        margin-top: 44px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .events-card__body {
        padding: 22px;
    }

    .events-listing__pagination > nav > .d-sm-none {
        justify-content: center !important;
        width: 100%;
    }
}
