.cw-events {
    --cw-blue: #0047ab;
    --cw-blue-dark: #063277;
    --cw-ink: #101522;
    --cw-muted: #5d6678;
    --cw-line: #d8dee9;
    --cw-soft: #f6f8fc;
    --cw-white: #fff;
    color: var(--cw-ink);
    font-family: "Lato", Arial, sans-serif;
    max-width: 1160px;
    margin: 0 auto;
    padding: 20px 18px 10px;
}

.cw-events *,
.cw-events *::before,
.cw-events *::after {
    box-sizing: border-box;
}

.cw-events-section-heading {
    max-width: 660px;
    margin: 0 auto 34px;
    text-align: center;
}

.cw-events-kicker {
    margin: 0 0 12px;
    color: #13274f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cw-events h2 {
    margin: 0 0 16px;
    color: var(--cw-ink);
    font-family: "Lato", Arial, sans-serif;
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.05;
}

.cw-events-section-heading p:last-child {
    margin: 0;
    color: var(--cw-muted);
    font-size: 17px;
    line-height: 1.55;
}

.cw-events-featured-list {
    display: grid;
    gap: 22px;
}

.cw-event-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1.08fr);
    overflow: hidden;
    border: 1px solid var(--cw-line);
    border-radius: 8px;
    background: var(--cw-white);
    box-shadow: 0 14px 34px rgba(16, 21, 34, 0.06);
}

.cw-event-image,
.cw-event-archive-image {
    display: block;
    overflow: hidden;
    background: var(--cw-soft);
}

.cw-event-image img,
.cw-event-archive-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.cw-event-image img {
    object-fit: contain;
}

.cw-event-archive-image img {
    object-fit: cover;
}

.cw-event-image {
    min-height: 330px;
    background: var(--cw-white);
}

.cw-event-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 42px;
}

.cw-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0px 18px;
    margin-bottom: 10px;
    color: var(--cw-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cw-event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cw-event-meta svg,
.cw-events-search-field svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.cw-event-meta svg {
    color: var(--cw-blue);
}

.cw-event-content h3 {
    margin: 0 0 15px;
    font-family: "Lato", Arial, sans-serif;
    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 700;
    line-height: 1.08;
}

.cw-event-content h3 a,
.cw-event-content h3 .cw-event-title,
.cw-event-archive-card a {
    color: var(--cw-blue);
    text-decoration: none;
}

.cw-event-content h3 a:hover,
.cw-event-archive-card a:hover strong {
    text-decoration: none;
}

.cw-event-description {
    color: #333a49;
    font-size: 16px;
    line-height: 1.7;
}

.cw-event-description p {
    margin: 0 0 .5em;
}

.cw-event-description p:last-child {
    margin-bottom: 0;
}

.cw-event-description .wp-block-paragraph,
.cw-event-description .wp-block-group,
.cw-event-description .wp-block-list {
    margin-top: 0;
    margin-bottom: 1em;
}

.cw-event-description > :last-child {
    margin-bottom: 0;
}

.cw-event-button {
    align-self: flex-start;
    min-width: 164px;
    margin-top: 18px;
    border-radius: 4px;
    background: var(--cw-blue);
    color: var(--cw-white);
    font-family: "Lato", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    padding: 16px 24px;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.cw-event-button--static {
    cursor: default;
}

a.cw-event-button:hover,
a.cw-event-button:focus {
    background: var(--cw-blue-dark);
    color: var(--cw-white);
    transform: translateY(-1px);
}

.cw-events-archive {
    margin-top: 0px;
}

.cw-events-filters {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.8fr) minmax(240px, 1.25fr) auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 34px;
}

.cw-events-filter-field label {
    display: block;
    margin-bottom: 10px;
    color: #273249;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cw-events-filter-field select,
.cw-events-filter-field input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--cw-line);
    border-radius: 0;
    background: var(--cw-white);
    color: var(--cw-ink);
    font-size: 15px;
    padding: 0 16px;
}

.cw-events .cw-events-archive .cw-events-filters .cw-events-filter-field select,
.cw-events .cw-events-archive .cw-events-filters .cw-events-filter-field input[type="search"] {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 50px;
    margin: 0;
    border: 1px solid var(--cw-line);
    border-radius: 0;
    box-shadow: none;
    background-color: var(--cw-white);
    color: var(--cw-ink);
    font-family: inherit;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    outline: 0;
}

.cw-events .cw-events-archive .cw-events-filters .cw-events-filter-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23101522'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m6%209%206%206%206-6'/%3E%3C/svg%3E");
    background-position: right 22px center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    padding: 0 62px 0 16px;
}

.cw-events .cw-events-archive .cw-events-filters .cw-events-filter-field input[type="search"] {
    appearance: textfield;
    padding: 0 62px 0 16px;
}

.cw-events .cw-events-archive .cw-events-filters .cw-events-filter-field select:focus,
.cw-events .cw-events-archive .cw-events-filters .cw-events-filter-field input[type="search"]:focus {
    border-color: var(--cw-blue);
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.12);
}

.cw-events-search-field {
    position: relative;
}

.cw-events-search-field input {
    padding-right: 48px;
}

.cw-events-search-field button {
    position: absolute;
    right: 2px;
    bottom: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    color: #24304a;
    cursor: pointer;
}

.cw-events .cw-events-archive .cw-events-filters .cw-events-search-field button {
    position: absolute;
    right: 1px;
    bottom: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    min-width: 54px;
    max-width: 54px;
    height: 48px;
    min-height: 48px;
    margin: 0;
    border: 0;
    border-radius: 0;
    border-bottom: 0;
    box-shadow: none;
    background: transparent;
    color: #24304a;
    font: inherit;
    line-height: 1;
    padding: 0;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    transform: none;
    cursor: pointer;
}

.cw-events .cw-events-archive .cw-events-filters .cw-events-search-field button::before,
.cw-events .cw-events-archive .cw-events-filters .cw-events-search-field button::after {
    display: none;
    content: none;
}

.cw-events .cw-events-archive .cw-events-filters .cw-events-search-field button:hover,
.cw-events .cw-events-archive .cw-events-filters .cw-events-search-field button:focus {
    background: var(--cw-soft);
    color: var(--cw-blue);
    border: 0;
    border-bottom: 0;
    box-shadow: none;
    text-decoration: none;
    transform: none;
}

.cw-events-filter-submit {
    min-height: 50px;
    border: 1px solid var(--cw-blue);
    border-radius: 6px;
    background: var(--cw-blue);
    color: var(--cw-white);
    cursor: pointer;
    font-weight: 700;
    padding: 0 18px;
}

.cw-events-clear {
    align-self: center;
    color: var(--cw-blue);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.cw-events .cw-events-archive .cw-events-clear {
    display: inline-flex;
    align-items: center;
    align-self: end;
    min-height: 50px;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    color: var(--cw-blue);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    padding: 0;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
}

.cw-events .cw-events-archive .cw-events-clear:hover,
.cw-events .cw-events-archive .cw-events-clear:focus {
    color: var(--cw-blue-dark);
    text-decoration: none;
}

.cw-events-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 22px;
}

.cw-events-archive-results {
    position: relative;
    min-height: 120px;
}

.cw-events-is-loading .cw-events-archive-results {
    opacity: 0.38;
    transition: opacity 120ms ease;
}

.cw-events-results-updated .cw-events-archive-results {
    animation: cw-events-results-in 260ms ease both;
}

.cw-events-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.cw-events .cw-events-archive .cw-events-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    min-height: 48px;
    margin: 0;
    border: 1px solid var(--cw-blue);
    border-radius: 0;
    box-shadow: none;
    background: var(--cw-white);
    color: var(--cw-blue);
    font-family: "Lato", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    padding: 0 24px;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    transform: none;
    cursor: pointer;
}

.cw-events .cw-events-archive .cw-events-load-more::before,
.cw-events .cw-events-archive .cw-events-load-more::after {
    display: none;
    content: none;
}

.cw-events .cw-events-archive .cw-events-load-more:hover,
.cw-events .cw-events-archive .cw-events-load-more:focus {
    background: var(--cw-blue);
    color: var(--cw-white);
    box-shadow: none;
    text-decoration: none;
    transform: none;
}

.cw-events .cw-events-archive .cw-events-load-more:disabled {
    cursor: progress;
    opacity: 0.68;
}

.cw-events .cw-events-archive .cw-events-load-more[hidden] {
    display: none;
}

@keyframes cw-events-results-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cw-event-archive-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--cw-line);
    border-radius: 5px;
    background: var(--cw-white);
}

.cw-event-archive-link {
    display: grid;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.cw-event-archive-link--static {
    cursor: default;
}

.cw-event-archive-image {
    aspect-ratio: 0.9 / 1;
    min-height: 300px;
}

.cw-event-archive-body {
    display: block;
    padding: 16px 16px 20px;
}

.cw-event-archive-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 16px;
    margin-bottom: 8px;
    color: var(--cw-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cw-event-archive-meta time {
    display: inline-block;
}

.cw-events .cw-events-archive .cw-event-archive-card .cw-event-archive-meta time {
    margin: 0;
    color: var(--cw-muted);
    font-family: "Lato", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.cw-events .cw-events-archive .cw-event-archive-card .cw-event-archive-location {
    display: block;
    margin: 8px 0 0;
    color: var(--cw-muted);
    font-family: "Lato", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    text-decoration: none;
}

.cw-event-archive-body strong {
    display: block;
    color: var(--cw-blue);
    font-family: "Lato", Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.13;
}

.cw-event-archive-link--static .cw-event-archive-body strong {
    color: var(--cw-ink);
}

.cw-events-empty {
    border: 1px solid var(--cw-line);
    border-radius: 8px;
    background: var(--cw-soft);
    color: var(--cw-muted);
    margin: 0;
    padding: 22px;
    text-align: center;
}

.cw-event-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    background:
        linear-gradient(135deg, rgba(0, 71, 171, 0.18), rgba(16, 21, 34, 0.06)),
        var(--cw-soft);
}

@media (max-width: 960px) {
    .cw-event-featured-card,
    .cw-events-filters {
        grid-template-columns: 1fr 1fr;
    }

    .cw-event-image {
        min-height: 280px;
    }

    .cw-event-content {
        padding: 32px;
    }

    .cw-events-search-field,
    .cw-events-clear {
        grid-column: span 2;
    }

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

@media (max-width: 680px) {
    .cw-events {
        padding: 34px 16px;
    }

    .cw-event-featured-card,
    .cw-events-filters,
    .cw-events-grid {
        grid-template-columns: 1fr;
    }

    .cw-event-image {
        min-height: 230px;
    }

    .cw-event-content {
        padding: 26px 22px 28px;
    }

    .cw-event-content h3 {
        font-size: 30px;
    }

    .cw-events-search-field,
    .cw-events-clear {
        grid-column: auto;
    }

    .cw-events-clear {
        justify-self: start;
    }

}
