.events-page {
    min-height: 100%;
    background: #fff;
    color: #4d5965;
}

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

.events-page .section-events {
    padding: 34px 0 64px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
}

.events-page--public .section-events {
    padding: 30px 20px 55px;
    background: #f3f5f7;
}

.events-public-breadcrumbs {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
}

.events-public-breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: fit-content;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    box-shadow: none;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    line-height: 1.2;
    list-style: none;
}

.events-public-breadcrumbs li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: rgba(255, 255, 255, .8);
}

.events-public-breadcrumbs li:first-child {
    padding-left: 16px;
}

.events-public-breadcrumbs li:last-child {
    padding-right: 16px;
}

.events-public-breadcrumbs li + li::before {
    padding: 0 12px;
    color: rgba(255, 255, 255, .48);
    content: "\203a";
}

.events-public-breadcrumbs a {
    color: #fff;
    font-weight: 650;
    text-decoration: none;
}

.events-public-breadcrumbs a:hover,
.events-public-breadcrumbs a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.events-public-breadcrumbs .active {
    color: rgba(255, 255, 255, .82);
    font-weight: 700;
}

.events-public-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding: 24px 26px;
    color: #fff;
    background: linear-gradient(135deg, #3d5d76 0%, #29475f 100%);
    border-radius: 9px;
    box-shadow: 0 6px 18px rgba(38, 65, 86, .14);
}

.events-public-header-copy {
    min-width: 0;
}

.events-public-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    font-size: 21px;
}

.events-page .events-public-header h1 {
    margin: 0 0 5px;
    color: #fff;
    font-family: inherit;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}

.events-public-header p {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    line-height: 1.5;
}

.events-shell {
    width: calc(100% - 30px);
    max-width: 1300px;
    margin: 0 auto;
}

.events-filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    margin-right: 14px;
    border-radius: 50%;
    background: #eef4fc;
    color: #4178be;
    font-size: 22px;
}

.events-page .events-filter-header p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.events-filter-card {
    overflow: hidden;
    border: 1px solid #dfe4e8;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(47, 64, 80, .06);
}

.events-page--public .events-filter-card {
    overflow: visible;
    border-top: 3px solid #1ab394;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(47, 64, 80, .055);
}

.events-filter-header {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #e7eaec;
    background: #f9fafb;
}

.events-page--public .events-filter-header {
    align-items: flex-start;
    gap: 10px;
    padding: 16px 19px 13px;
    background: #fff;
}

.events-page--public .events-filter-icon {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    margin: 2px 0 0;
    color: #1ab394;
    background: transparent;
    font-size: 16px;
}

.events-page--public .events-filter-header h2 {
    margin-bottom: 2px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.events-page--public .events-filter-header p {
    color: #84909b;
    font-size: 11px;
}

.events-filter-heading {
    min-width: 0;
}

.events-filter-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.events-filter-actions--public {
    justify-content: flex-start;
    width: 100%;
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid #edf0f2;
}

.events-filter-actions--public .events-view-toggle {
    width: 280px;
    height: 34px;
}

.events-filter-actions--public .events-clear-filters {
    height: 34px;
    padding: 6px 12px;
    border-color: #d6dce2;
    background: #fff;
    color: #4f79b5;
    font-size: 12px;
}

.events-filter-actions--public .events-clear-filters:hover,
.events-filter-actions--public .events-clear-filters:focus {
    border-color: #5b8fd9;
    background: #eef4fc;
    color: #4f79b5;
}

.events-filter-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    font-size: 18px;
}

.events-page .events-filter-header h2 {
    margin: 0 0 2px;
    color: #2f4050;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.events-page .section-events .events-filter-form {
    display: block;
    padding: 20px;
    margin: 0;
}

.events-filter-selects {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
}

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

.events-filter-field {
    min-width: 0;
}

.events-page .events-clear-filters {
    flex: 0 0 auto;
    height: 38px;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid #5b8fd9;
    border-radius: 4px;
    background: #5b8fd9;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.events-page .events-clear-filters[hidden] {
    display: none;
}

.events-page .events-clear-filters:hover,
.events-page .events-clear-filters:focus {
    border-color: #477cc7;
    background: #477cc7;
    color: #fff;
    outline: 0;
}

.events-clear-filters .fa {
    margin-right: 5px;
}

.events-page .section-events .events-filter-field label,
.events-page .events-filter-label {
    display: block;
    max-width: none;
    flex: none;
    margin: 0 0 6px;
    color: #5d6670;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.events-page .section-events .events-filter-field select,
.events-page .section-events .events-filter-field input {
    display: block;
    width: 100% !important;
    height: 42px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #d6dce2;
    border-radius: 4px;
    background: #fff;
    color: #3f4954;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
}

.events-page .section-events .events-filter-field select {
    padding-right: 34px;
    background-image: linear-gradient(45deg, transparent 50%, #7c8791 50%), linear-gradient(135deg, #7c8791 50%, transparent 50%);
    background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    appearance: none;
    -webkit-appearance: none;
}

.events-page .section-events .events-filter-field select:focus,
.events-page .section-events .events-filter-field input:focus {
    border-color: #5b8fd9;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(91, 143, 217, .13);
}

.events-search-control {
    position: relative;
}

.events-page .events-search-control input {
    padding-right: 43px;
}

.events-search-control-icon {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    border-left: 1px solid #e2e6ea;
    color: #5b8fd9;
    pointer-events: none;
}

.events-view-toggle {
    display: flex;
    width: 230px;
    height: 38px;
    overflow: hidden;
    border: 1px solid #5b8fd9;
    border-radius: 4px;
}

.events-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 50%;
    min-width: 0;
    margin: 0;
    padding: 7px 8px;
    border: 0;
    border-right: 1px solid #5b8fd9;
    background: #fff;
    color: #4f79b5;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.events-view-button:last-child {
    border-right: 0;
}

.events-view-button.is-active {
    background: #5b8fd9;
    color: #fff;
}

.events-view-button:focus {
    position: relative;
    z-index: 1;
    outline: 2px solid rgba(91, 143, 217, .35);
    outline-offset: -2px;
}

.events-page .section-events .events-view-panel {
    margin-top: 22px;
}

.events-loading {
    padding: 30px;
    border: 1px solid #dfe4e8;
    border-radius: 6px;
    background: #fff;
    color: #65717d;
    text-align: center;
}

.events-loading .fa {
    margin-right: 6px;
    color: #5b8fd9;
}

.events-month-navigation {
    position: sticky;
    top: 0;
    z-index: 5;
    margin-bottom: 18px;
    padding: 10px;
    border: 1px solid #dfe4e8;
    border-radius: 6px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 2px 8px rgba(47, 64, 80, .06);
}

.events-page #event-list-header {
    display: flex;
    width: 100%;
    margin-top: 0;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.events-month-button {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #d8dee5;
    border-radius: 4px;
    background: #fff;
    color: #77818b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.events-month-button.has-events {
    border-color: #8fb0df;
    background: #f3f7fc;
    color: #3f6fae;
}

.events-month-button.has-events:hover,
.events-month-button.has-events:focus {
    border-color: #5b8fd9;
    background: #5b8fd9;
    color: #fff;
    outline: 0;
}

.events-month-button.no-events {
    cursor: default;
    opacity: .62;
}

.events-month-select {
    display: none;
}

.events-month-section {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid #e7eaec;
    scroll-margin-top: 80px;
}

.events-month-section:first-child {
    padding-top: 8px;
}

.events-month-section:last-child {
    border-bottom: 0;
}

.events-page .events-month-title h2 {
    margin: 0 0 5px;
    color: #2f4050;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.events-month-title span {
    color: #8a939c;
    font-size: 12px;
}

.event-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 92px;
    margin-bottom: 10px;
    padding: 16px 44px 16px 17px;
    border: 1px solid #dfe4e8;
    border-left: 3px solid #1ab394;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.event-card:last-child {
    margin-bottom: 0;
}

.event-card:hover {
    border-color: #b9c8d8;
    border-left-color: #1ab394;
    box-shadow: 0 3px 12px rgba(47, 64, 80, .09);
    transform: translateY(-1px);
}

.event-card-date {
    display: flex;
    align-items: center;
    flex: 0 0 185px;
    margin-right: 18px;
    color: #65717d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.event-card-date .fa {
    margin-right: 8px;
    color: #5b8fd9;
    font-size: 16px;
}

.events-page .event-date {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    font-size: inherit;
    white-space: normal;
}

.event-card-content {
    min-width: 0;
}

.events-page .event-card-content h3 {
    margin: 0 0 7px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.events-page .event-title {
    display: inline;
    margin: 0;
    padding: 0;
    color: #2f4050;
    font-size: inherit;
    font-weight: inherit;
}

.events-page .event-title::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 5px;
}

.events-page .event-title:hover,
.events-page .event-title:focus {
    color: #337ab7;
    text-decoration: underline;
}

.events-page .event-title:focus {
    outline: 0;
}

.events-page .event-title:focus::after {
    outline: 3px solid rgba(51, 122, 183, .45);
    outline-offset: -3px;
}

.event-card:hover .event-title {
    color: #337ab7;
    text-decoration: underline;
}

.events-page .event-location {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    color: #75808b;
    font-size: 13px;
}

.events-page .event-host {
    display: flex;
    align-items: center;
    margin: 5px 0 0;
    padding: 0;
    color: #75808b;
    font-size: 12px;
}

.events-page .event-host .fa {
    margin-right: 7px;
    color: #5b8fd9;
}

.events-page .event-host-name {
    color: #526a88;
    font-weight: 600;
}

.events-page .event-location .fa {
    margin: 3px 7px 0 1px;
    color: #e26b61;
}

.events-page .event-map-link {
    position: relative;
    z-index: 2;
    flex-grow: 0;
    color: #5f7898;
}

.event-state::before {
    content: "\00b7";
    margin: 0 7px;
    color: #a4adb5;
}

.event-state {
    color: #65717d;
    font-weight: 600;
}

.events-page .event-map-link:hover,
.events-page .event-map-link:focus {
    color: #337ab7;
}

.event-card-arrow {
    position: absolute;
    top: 50%;
    right: 17px;
    color: #a4adb5;
    pointer-events: none;
    transform: translateY(-50%);
}

.events-empty-month {
    margin: 4px 0 0;
    padding: 17px;
    border: 1px dashed #d8dee5;
    border-radius: 5px;
    background: #fafbfc;
    color: #8a939c;
    font-size: 13px;
}

.events-no-results {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 28px;
    border: 1px dashed #cad5df;
    border-radius: 7px;
    background: #fff;
    color: #65717d;
}

.events-no-results-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #eef4fc;
    color: #5b8fd9;
    font-size: 19px;
}

.events-page .events-no-results h2 {
    margin: 0 0 3px;
    color: #2f4050;
    font-family: inherit;
    font-size: 18px;
    font-weight: 650;
}

.events-page .events-no-results p {
    margin: 0;
    color: #7b8792;
    font-size: 13px;
}

.events-page #event-list-table {
    width: 100%;
    margin: 0;
    overflow: visible;
}

.events-calendar-card {
    padding: 20px;
    border: 1px solid #dfe4e8;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(47, 64, 80, .06);
}

.events-page .fc-toolbar h2 {
    color: #2f4050;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
}

.events-page .fc-state-default {
    border-color: #d6dce2;
    background: #fff;
    background-image: none;
    box-shadow: none;
    color: #4f79b5;
    text-shadow: none;
}

.events-page .fc-state-active,
.events-page .fc-state-down {
    border-color: #5b8fd9;
    background: #5b8fd9;
    color: #fff;
}

.events-page .fc-event {
    padding: 2px 4px;
    border: 0;
    border-radius: 3px;
    font-size: 12px;
}

.events-page .fc-day-header {
    padding: 8px 4px;
    background: #f6f7f8;
    color: #5d6670;
}

.events-to-top {
    position: fixed;
    right: 24px;
    bottom: 78px;
    z-index: 99;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #5b8fd9;
    box-shadow: 0 3px 12px rgba(47, 64, 80, .2);
    color: #fff;
    cursor: pointer;
}

.events-to-top:hover,
.events-to-top:focus {
    background: #477cc7;
    outline: 0;
}

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

    .events-filter-primary .events-filter-field--search {
        grid-column: 1 / -1;
    }

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

    .events-month-section {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 18px;
    }

    .event-card {
        display: block;
    }

    .event-card-date {
        margin: 0 0 8px;
    }
}

@media (max-width: 767px) {
    .events-page .section-events,
    .events-page--public .section-events {
        padding: 24px 0 42px;
    }

    .events-shell {
        width: calc(100% - 24px);
    }

    .events-public-breadcrumbs {
        flex-basis: 100%;
        justify-content: flex-start;
        order: 3;
        margin: 5px 0 0 66px;
    }

    .events-public-breadcrumbs ol {
        border-radius: 12px;
    }

    .events-public-header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 14px;
        padding: 20px;
    }

    .events-public-header-copy {
        flex: 1 1 calc(100% - 66px);
    }

    .events-page .events-public-header h1 {
        font-size: 23px;
        line-height: 1.2;
    }

    .events-filter-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .events-filter-actions {
        width: 100%;
        margin: 14px 0 0 56px;
    }

    .events-filter-actions--public {
        align-items: stretch;
        flex-direction: column;
        margin-left: 0;
    }

    .events-filter-actions--public .events-view-toggle,
    .events-filter-actions--public .events-clear-filters {
        width: 100%;
    }

    .events-page .section-events .events-filter-form {
        padding: 16px;
    }

    .events-filter-selects,
    .events-filter-primary {
        display: block;
    }

    .events-view-toggle {
        flex: 1 1 auto;
        width: auto;
    }

    .events-filter-field {
        margin-bottom: 14px;
    }

    .events-filter-field:last-child {
        margin-bottom: 0;
    }

    .events-month-navigation {
        position: static;
    }

    .events-page #event-list-header {
        display: none;
    }

    .events-month-select {
        display: block;
    }

    .events-page .events-month-select label {
        display: block;
        margin-bottom: 6px;
        color: #5d6670;
        font-size: 13px;
        font-weight: 600;
    }

    .events-month-select select {
        width: 100%;
        height: 40px;
        padding: 7px 10px;
        border: 1px solid #d6dce2;
        border-radius: 4px;
        background: #fff;
    }

    .events-month-section {
        display: block;
        padding: 18px 0;
        scroll-margin-top: 15px;
    }

    .events-month-title {
        margin-bottom: 12px;
    }

    .event-card {
        padding: 14px 36px 14px 14px;
    }

    .events-calendar-card {
        padding: 10px;
        overflow-x: auto;
    }

    .events-page #calendar {
        min-width: 680px;
    }

    .events-to-top {
        right: 14px;
        bottom: 68px;
    }
}
