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

.cully-events-view-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.cully-events-view-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 16px;
    border: 1px solid #ded0db;
    border-radius: 8px;
    background: #fff;
    color: #5b354e;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.cully-events-view-nav a:hover,
.cully-events-view-nav a:focus,
.cully-events-view-nav a.is-active {
    border-color: #5b354e;
    background: #5b354e;
    color: #ffe23a;
}

.cully-event-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .06);
}

.cully-event-link {
    margin-top: auto;
}

.cully-event-calendar {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #5b354e;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    color: #fff;
    text-align: center;
    text-transform: uppercase;
}

.cully-event-calendar-month {
    width: 100%;
    padding: 9px 12px 4px;
    background: transparent;
    color: #ffe23a;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1;
}

.cully-event-calendar-day {
    color: #fff;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
}

.cully-event-calendar-year {
    padding: 4px 12px 10px;
    color: #ffe23a;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1;
}

.cully-event-summary {
    min-width: 0;
}

.cully-event-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f7f2f6;
}

.cully-event-image-empty {
    background: #f7f2f6;
}

.cully-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.cully-event-card-tags {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cully-event-card-tags .cully-event-tag {
    background: #ffffff;
    color: #5b354e;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}

.cully-event-card-tags + .cully-event-calendar {
    top: 54px;
}

.cully-event-card:hover .cully-event-image img {
    transform: scale(1.03);
}

.cully-event-body h3 {
    margin: 0 0 8px;
    color: #5b354e;
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.25;
}

.cully-event-body {
    padding: 20px 22px 22px;
}

@media (min-width: 901px) {

    .cully-event-card {
        display: flex;
        flex-direction: column;
    }

    .cully-event-summary {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .cully-event-body {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .cully-event-body .cully-event-link {
        margin-top: auto !important;
        align-self: flex-start;
    }
}


.cully-event-body h3 a {
    color: inherit;
    text-decoration: none;
}

.cully-event-venue {
    margin: 0 0 8px;
    color: #72529b;
    font-size: .92rem;
    font-weight: 700;
}

.cully-event-excerpt {
    margin: 0 0 16px;
    color: #575b62;
    font-size: .95rem;
    line-height: 1.5;
}

.cully-event-link.elementor-button {
    background: #5b354e;
    color: #ffe23a !important;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1;
    padding: 14px 18px;
    text-decoration: none;
}

.cully-event-link.elementor-button,
.cully-event-link.elementor-button:hover,
.cully-event-link.elementor-button:focus,
.cully-event-link.elementor-button:visited {
    background: #4d2d42;
    color: #ffe23a !important;
}

.cully-event-details {
    margin-top: 32px;
    color: #575b62;
    font-size: 20px;
    line-height: 1.28;
}

.cully-event-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 4px;
}

.cully-event-detail-row strong {
    color: #4f5359;
    font-weight: 800;
}

.cully-event-detail-icon {
    flex: 0 0 32px;
    color: #5b354e;
    line-height: 1.28;
    text-align: center;
}

.cully-event-detail-icon .fa-map-marker-alt,
.cully-event-detail-icon .fa-users {
    color: #5b354e;
}

.cully-event-detail-tags > span:last-child {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cully-event-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    vertical-align: middle;
}

.cully-event-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: #ffe23a;
    color: #5b354e;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.cully-event-back {
    margin: 0 0 14px;
}

.cully-event-back-bottom {
    margin: 28px 0 0;
    text-align: right;
}

.cully-event-back a {
    color: #5b354e;
    font-size: 16px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cully-event-back a:hover,
.cully-event-back a:focus {
    color: #4d2d42;
}

.cully-event-register {
    margin: 20px 40px 40px;
}

.cully-event-register .elementor-button {
    background: #5b354e;
    color: #ffe23a;
    border-radius: 10px;
    font-size: inherit;
    font-weight: 700;
    line-height: 1;
    padding: 24px 30px;
    text-decoration: none;
}

.cully-event-register .elementor-button:hover,
.cully-event-register .elementor-button:focus {
    background: #4d2d42;
    color: #ffe23a;
}

.cully-event-status {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 14px 40px 40px;
    padding: 18px 20px;
    border: 1px solid #eadfce;
    border-radius: 10px;
    background: #fffaf1;
    color: #575b62;
    font-size: 20px;
}

.cully-event-status strong {
    color: #5b354e;
    font-weight: 800;
}

.cully-event-status span {
    line-height: 1.45;
}

.cully-event-status-past {
    background: #f7f2f6;
    border-color: #ded0db;
}

.cully-event-status-closed {
    background: #fffaf1;
    border-color: #eadfce;
}

.cully-events-pagination {
    margin-top: 34px;
}

.cully-events-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cully-events-pagination a,
.cully-events-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #ded0db;
    border-radius: 8px;
    background: #fff;
    color: #5b354e;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.cully-events-pagination a:hover,
.cully-events-pagination a:focus,
.cully-events-pagination .current {
    border-color: #5b354e;
    background: #5b354e;
    color: #ffe23a;
}

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

    .cully-event-register .elementor-button {
        padding: 20px 26px;
    }
}

@media (max-width: 600px) {
    .cully-event-calendar {
        top: 12px;
        left: 12px;
        min-width: 76px;
    }

    .cully-event-card-tags {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .cully-event-card-tags + .cully-event-calendar {
        top: 58px;
    }

    .cully-event-calendar-month,
    .cully-event-calendar-year {
        font-size: .75rem;
    }

    .cully-event-calendar-day {
        font-size: 2.25rem;
    }

    .cully-event-summary {
       padding: 0;
    }

    .cully-event-body h3 {
        font-size: 1.05rem;
    }

    .cully-event-register {
        margin: 18px 0 28px;
    }

    .cully-event-register .elementor-button {
        padding: 16px 22px;
    }

    .cully-event-status {
        margin: 18px 0 28px;
    }
}
