.hcec-calendar-wrap,
.hcec-event-list,
.hcec-home-events,
.hcec-message,
.hcec-modal {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: 500;
}

.hcec-calendar-wrap *,
.hcec-event-list *,
.hcec-home-events *,
.hcec-message *,
.hcec-modal * {
    box-sizing: border-box;
}

.hcec-calendar-wrap strong,
.hcec-calendar-wrap b,
.hcec-event-list strong,
.hcec-event-list b,
.hcec-home-events strong,
.hcec-home-events b,
.hcec-message strong,
.hcec-message b,
.hcec-modal strong,
.hcec-modal b {
    font-weight: 500;
}

.hcec-calendar-wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.hcec-calendar-wrap__title {
    margin: 0 0 16px;
    color: #8b6ced;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
}

.hcec-calendar {
    min-height: 0;
}

.hcec-calendar-wrap .fc {
    color: #1c1b22;
    font-family: Arial, sans-serif;
}

.hcec-calendar-wrap .fc .fc-toolbar.fc-header-toolbar {
    flex-direction: column !important;
    gap: 0;
    margin-bottom: 0 !important;
}

.hcec-calendar-wrap .fc .fc-toolbar-title {
    color: #8b6ced;
    font-size: 16px !important;
    font-weight: 500;
    line-height: 1.3;
}

.hcec-calendar-wrap .fc .fc-toolbar-chunk {
    margin-left: -2.1em !important;
}

.hcec-calendar-wrap .fc .fc-button-group {
    margin-bottom: 0.75em !important;
}

.hcec-calendar-wrap .fc .fc-button-primary {
    border-color: #8b6ced !important;
    background: #8b6ced !important;
    color: #fff !important;
    font: inherit;
    box-shadow: none !important;
    outline: 0 !important;
}

.hcec-calendar-wrap .fc .fc-button-primary:not(:disabled):hover,
.hcec-calendar-wrap .fc .fc-button-primary:not(:disabled):focus,
.hcec-calendar-wrap .fc .fc-button-primary:not(:disabled):active,
.hcec-calendar-wrap .fc .fc-button-primary:not(:disabled).fc-button-active {
    border-color: #7157ce !important;
    background: #7157ce !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.hcec-calendar-wrap .fc .fc-button:focus,
.hcec-calendar-wrap .fc .fc-button:active,
.hcec-calendar-wrap .fc .fc-button:focus-visible {
    box-shadow: none !important;
    outline: 0 !important;
}

.hcec-calendar-wrap .fc .fc-daygrid-day-top {
    display: unset !important;
}

.hcec-calendar-wrap .fc .fc-daygrid-event {
    border-radius: 6px;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 12px;
}

.hcec-calendar-wrap .fc .fc-event {
    cursor: pointer;
}

.hcec-calendar-wrap .fc .fc-event-time {
    display: none !important;
}

.hcec-calendar-wrap button.fc-dayGridMonth-button.fc-button.fc-button-primary.fc-button-active,
.hcec-calendar-wrap button.fc-timeGridWeek-button.fc-button.fc-button-primary,
.hcec-calendar-wrap button.fc-timeGridDay-button.fc-button.fc-button-primary,
.hcec-calendar-wrap button.fc-today-button.fc-button.fc-button-primary {
    display: none !important;
}

.hcec-calendar-wrap .fc th,
.hcec-calendar-wrap .fc td,
.hcec-calendar-wrap .fc table,
.hcec-calendar-wrap .fc .fc-daygrid-day-frame {
    border: none !important;
}

.hcec-calendar-wrap .fc th {
    text-align: unset !important;
}

.hcec-calendar-wrap .fc-scroller {
    overflow: unset !important;
}

.hcec-calendar-wrap table tbody > tr:nth-child(odd) > td,
.hcec-calendar-wrap table tbody > tr:nth-child(odd) > th {
    background-color: transparent !important;
}

#humanity-calendar .fc-daygrid-day-top,
#humanity-calendar .fc-col-header-cell {
    font-family: Arial, sans-serif;
    font-weight: 500 !important;
}

.hcec-calendar-wrap a,
.hcec-calendar-wrap a:visited,
.hcec-calendar-wrap a:hover,
.hcec-calendar-wrap a:focus,
.hcec-calendar-wrap a:active,
.hcec-event-list a,
.hcec-event-list a:visited,
.hcec-event-list a:hover,
.hcec-event-list a:focus,
.hcec-event-list a:active,
.hcec-home-events a,
.hcec-home-events a:visited,
.hcec-home-events a:hover,
.hcec-home-events a:focus,
.hcec-home-events a:active,
.hcec-modal a,
.hcec-modal a:visited,
.hcec-modal a:hover,
.hcec-modal a:focus,
.hcec-modal a:active {
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.hcec-event-list {
    display: grid;
    gap: 16px;
    width: 100%;
}

.hcec-event-card {
    width: 100%;
    border-radius: 8px;
    background: #8277b5;
    color: #fff;
    padding: 24px 28px;
    overflow-wrap: anywhere;
}

.hcec-event-card__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
    margin-bottom: 14px;
}

.hcec-event-card__date,
.hcec-event-card__time,
.hcec-event-card__detail {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.45;
}

.hcec-event-card__time {
    justify-content: flex-start;
    white-space: normal;
}

.hcec-icon {
    flex: 0 0 auto;
    margin-top: 2px;
    color: currentColor;
}

.hcec-event-card__title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
}

.hcec-event-card__description {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.65;
}

.hcec-event-card__description p {
    margin: 0 0 10px;
}

.hcec-event-card__description p:last-child {
    margin-bottom: 0;
}

.hcec-event-card a,
.hcec-modal a {
    color: inherit;
    font-weight: 500;
    text-decoration: none;
}

.hcec-event-card__detail + .hcec-event-card__detail {
    margin-top: 8px;
}

.hcec-link-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    line-height: inherit !important;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: none !important;
}

.hcec-link-button:hover,
.hcec-link-button:focus,
.hcec-link-button:active {
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    outline-color: currentColor;
    text-decoration: none !important;
    box-shadow: none !important;
}

.hcec-message {
    width: 100%;
    border: 1px solid rgba(139, 108, 237, 0.22);
    border-radius: 8px;
    background: #f6f3ff;
    color: #3d335f;
    font-size: 15px;
    line-height: 1.5;
    margin: 16px 0;
    padding: 14px 16px;
    text-align: center;
}

.hcec-modal-open {
    overflow: hidden;
}

.hcec-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    padding: 24px;
}

.hcec-modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hcec-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 30, 0.58);
}

.hcec-modal__dialog {
    position: relative;
    width: min(100%, 620px);
    max-height: min(90vh, 760px);
    overflow: auto;
    border-radius: 8px;
    background: #fff;
    color: #1c1b22;
    box-shadow: 0 22px 60px rgba(20, 18, 30, 0.28);
}

.hcec-modal__header,
.hcec-modal__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
}

.hcec-modal__header {
    justify-content: space-between;
    border-bottom: 1px solid #eceaf4;
}

.hcec-modal__footer {
    justify-content: flex-end;
    border-top: 1px solid #eceaf4;
}

.hcec-modal__title {
    margin: 0;
    color: #1c1b22;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
}

.hcec-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #f1eefb;
    color: #4a3f6f;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.hcec-modal__body {
    padding: 22px;
    font-size: 15px;
    line-height: 1.65;
}

.hcec-modal__description {
    margin-bottom: 18px;
}

.hcec-modal__details {
    display: grid;
    gap: 8px;
    margin: 0;
}

.hcec-modal__details div {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 6px;
}

.hcec-modal__details dt {
    color: #1c1b22;
    font-weight: 500;
}

.hcec-modal__details dd {
    font-weight: 600;
    margin: 0;
}

.hcec-modal__details dd a,
.hcec-modal__details dd a:visited,
.hcec-modal__details dd a:hover,
.hcec-modal__details dd a:focus,
.hcec-modal__details dd a:active {
    color: #8b6ced !important;
    font-weight: 600;
}

.hcec-button {
    border: 0;
    border-radius: 8px;
    background: #8b6ced;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    line-height: 1;
    padding: 12px 16px;
}

.hcec-button:hover,
.hcec-button:focus {
    background: #7157ce;
}

.hcec-home-events {
    display: grid;
    gap: 14px;
    width: 100%;
}

.hcec-home-event {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 14px;
}

.hcec-home-event__date {
    display: grid;
    gap: 8px;
    align-content: center;
    min-height: 72px;
    background: #8277b5;
    color: #fff;
    padding: 8px;
    text-align: center;
}

.hcec-home-event__day {
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    padding-bottom: 8px;
}

.hcec-home-event__month {
    font-size: 13px;
    line-height: 1.2;
}

.hcec-home-event__content {
    min-width: 0;
}

.hcec-home-event__meta {
    color: #4f4961;
    font-size: 13px;
    line-height: 1.45;
}

.hcec-home-event__title {
    margin: 3px 0 6px;
    color: #1c1b22;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.hcec-home-event__description {
    color: #363142;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.hcec-home-event__description p {
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) and (max-width: 1200px) {
    div#humanity-calendar {
        height: 470px !important;
    }
}

@media (max-width: 768px) {
    .hcec-calendar-wrap {
        padding: 0 12px;
    }

    .hcec-event-card {
        padding: 22px;
    }

    .hcec-event-card__meta {
        grid-template-columns: 1fr;
    }

    .hcec-event-card__time {
        justify-content: flex-start;
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .hcec-calendar-wrap__title {
        font-size: 16px;
    }

    .hcec-calendar-wrap .fc .fc-button {
        padding: 6px 8px;
        font-size: 12px;
    }

    .hcec-event-card {
        padding: 18px;
    }

    .hcec-modal {
        padding: 12px;
    }

    .hcec-modal__header,
    .hcec-modal__footer,
    .hcec-modal__body {
        padding: 16px;
    }

    .hcec-modal__details div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .hcec-home-event {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 12px;
    }

    .hcec-home-event__date {
        min-height: 68px;
    }

    .hcec-home-event__day {
        font-size: 22px;
    }
}

@media (max-width: 440px) {
    div#humanity-calendar {
        height: 440px !important;
    }

    .hcec-event-card {
        padding: 2em !important;
    }

    .hcec-calendar-wrap .fc-toolbar-chunk {
        margin-left: 1.4em !important;
    }
}

@media (max-width: 394px) {
    .hcec-calendar-wrap__title {
        font-size: 16px !important;
    }

    .hcec-calendar-wrap .fc-header-toolbar.fc-toolbar.fc-toolbar-ltr {
        margin-left: 1em !important;
    }

    .hcec-calendar-wrap .fc .fc-button {
        padding: 5px 7px;
        font-size: 11px;
    }

    .hcec-event-card {
        padding: 16px;
    }
}
