.ache-events-archive {
    color: #34495e;
}

.ache-events-filter-bar {
    background: #fff;
    border: 1px solid #e6eaf0;
    margin-bottom: 26px;
    padding: 20px;
}

.ache-events-filter-bar label {
    color: #25364a;
    font-size: 13px;
    font-weight: 700;
}

.ache-events-filter-button {
    border: 0;
    cursor: pointer;
    margin-right: 14px;
}

.ache-events-reset {
    color: var(--ache-events-primary);
    font-weight: 700;
}

.ache-events-toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 14px;
}

.ache-events-count {
    color: #5e6b78;
    font-weight: 700;
}

.ache-events-view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 0 24px;
}

.ache-events-view-toggle a {
    border: 1px solid #d7dde5;
    color: #52616f;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 16px;
}

.ache-events-view-toggle a.active,
.ache-events-view-toggle a:hover {
    background: var(--ache-events-button-bg);
    color: var(--ache-events-button-text);
}

.ache-events-calendar-panel {
    background: #fff;
    border: 1px solid #e6eaf0;
    margin-bottom: 34px;
    padding: 20px;
    position: relative;
}

.ache-events-calendar-loading {
    background: rgba(255, 255, 255, 0.9);
    color: #25364a;
    font-weight: 800;
    padding: 10px 14px;
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 4;
}

.ache-events-calendar .fc .fc-toolbar-title,
.ache-events-calendar .fc-toolbar-title {
    color: #1f2d3d;
    font-size: 28px;
}

.ache-events-calendar .fc-button-primary {
    background: var(--ache-events-button-bg);
    border-color: var(--ache-events-button-bg);
    color: var(--ache-events-button-text);
}

.ache-events-calendar .fc-button-primary:disabled {
    opacity: 0.7;
}

.ache-events-calendar .fc-button-primary:not(:disabled).fc-button-active,
.ache-events-calendar .fc-button-primary:not(:disabled):active,
.ache-events-calendar .fc-button-primary:hover {
    background: #1f2d3d;
    border-color: #1f2d3d;
}

.ache-events-calendar .fc-event {
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.25;
    padding: 2px 4px;
}

.ache-events-layout-toggle a {
    border: 1px solid #d7dde5;
    color: #52616f;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-left: 6px;
    padding-top: 10px;
    width: 40px;
}

.ache-events-scope-toggle {
    display: inline-flex;
    gap: 8px;
}

.ache-events-scope-toggle a {
    border: 1px solid #d7dde5;
    color: #52616f;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 14px;
}

.ache-events-scope-toggle a.active,
.ache-events-scope-toggle a:hover {
    background: var(--ache-events-button-bg);
    color: var(--ache-events-button-text);
}

.ache-events-layout-toggle a.active,
.ache-events-layout-toggle a:hover {
    background: var(--ache-events-button-bg);
    color: var(--ache-events-button-text);
}

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

.ache-events-results-list {
    display: grid;
    gap: 22px;
}

.ache-event-card {
    background: #fff;
    border: 1px solid #e8edf3;
    display: flex;
    flex-direction: column;
}

.ache-events-results-list .ache-event-card {
    flex-direction: row;
}

.ache-event-card-image {
    background: #eef3f7;
    min-height: 210px;
    position: relative;
}

.ache-events-results-list .ache-event-card-image {
    flex: 0 0 260px;
    min-height: 190px;
}

.ache-event-card-image img,
.ache-event-placeholder {
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    width: 100%;
}

.ache-event-placeholder {
    align-items: center;
    color: var(--ache-events-primary);
    display: flex;
    font-size: 44px;
    justify-content: center;
}

.ache-event-date-badge {
    background: var(--ache-events-button-bg);
    bottom: 14px;
    color: var(--ache-events-button-text);
    left: 14px;
    min-width: 62px;
    padding: 8px 10px;
    position: absolute;
    text-align: center;
}

.ache-event-date-badge span,
.ache-event-date-badge strong {
    display: block;
    line-height: 1;
}

.ache-event-date-badge strong {
    font-size: 28px;
    margin-top: 4px;
}

.ache-event-card-body {
    padding: 24px;
}

.ache-event-card-body h3 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.ache-event-card-body h3 a {
    color: var(--ache-events-title-color);
}

.ache-event-meta {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
}

.ache-events-empty {
    background: #fff;
    border: 1px solid #e8edf3;
    padding: 52px 24px;
    text-align: center;
}

.ache-events-empty .fa {
    color: var(--ache-events-primary);
    font-size: 46px;
    margin-bottom: 14px;
}

.ache-events-load-more {
    margin-top: 34px;
    text-align: center;
}

.ache-events-fallback {
    margin-top: 28px;
}

.ache-events-fallback h3 {
    color: #1f2d3d;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 16px;
}

.ache-event-detail {
    background: #fff;
    border: 1px solid #e8edf3;
    padding: 34px;
}

.ache-event-detail-header {
    margin-bottom: 28px;
}

.ache-event-detail-kicker {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ache-event-detail-kicker span,
.ache-event-detail-kicker strong {
    background: #eef5fa;
    color: var(--ache-events-primary, #005b96);
    font-size: 12px;
    font-weight: 800;
    padding: 7px 10px;
    text-transform: uppercase;
}

.ache-event-detail h1 {
    color: #1f2d3d;
    font-size: 38px;
    line-height: 1.2;
}

.ache-event-detail-meta {
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-weight: 700;
}

.ache-event-detail-image {
    margin-bottom: 28px;
}

.ache-event-detail-image img {
    height: auto;
    width: 100%;
}

.ache-event-detail-body h2,
.ache-event-detail-card h3 {
    color: #1f2d3d;
    font-size: 24px;
    margin-bottom: 18px;
}

.ache-event-detail-card {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    padding: 24px;
}

.ache-event-detail-card dt {
    color: #25364a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ache-event-detail-card dd {
    color: #4b5c6b;
    margin-bottom: 16px;
}

.ache-event-register {
    display: block;
    margin-bottom: 14px;
    text-align: center;
}

.ache-event-back-link {
    color: var(--ache-events-primary, #005b96);
    display: inline-block;
    font-weight: 800;
}

.ache-events-admin {
    margin: 40px 0 70px;
}

.ache-events-admin-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 26px;
}

.ache-events-admin-header h1 {
    color: #1f2d3d;
    font-size: 34px;
    margin-bottom: 6px;
}

.ache-events-admin-header p {
    color: #64748b;
    margin-bottom: 0;
}

.ache-events-admin-card {
    background: #fff;
    border: 1px solid #e8edf3;
    margin-bottom: 28px;
    padding: 24px;
}

.ache-events-admin-card-editing {
    border-left: 4px solid var(--ache-events-primary, #005b96);
}

.ache-events-admin-card h2 {
    color: #1f2d3d;
    font-size: 24px;
    margin-bottom: 20px;
}

.ache-events-admin-card label {
    color: #25364a;
    font-size: 13px;
    font-weight: 800;
}

.ache-events-admin button,
.ache-events-admin .boxed-btn3-white-2,
.ache-events-admin-action,
.ache-events-admin-inline button,
.ache-events-admin-image-drop,
.ache-events-admin-remove-image-button,
.ache-events-reset,
.ache-event-back-link {
    transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
        border-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 160ms cubic-bezier(0.23, 1, 0.32, 1),
        color 160ms cubic-bezier(0.23, 1, 0.32, 1),
        transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.ache-events-admin button:active,
.ache-events-admin .boxed-btn3-white-2:active,
.ache-events-admin-action:active,
.ache-events-admin-inline button:active,
.ache-events-admin-image-drop:active,
.ache-events-admin-remove-image-button:active,
.ache-events-reset:active,
.ache-event-back-link:active {
    transform: scale(0.97);
}

.ache-events-admin input:focus,
.ache-events-admin select:focus,
.ache-events-admin textarea:focus,
.ache-events-admin summary:focus,
.ache-events-admin-image-drop:focus-within,
.ache-events-admin-remove-image input:focus + .ache-events-admin-remove-image-button {
    border-color: var(--ache-events-primary, #005b96);
    box-shadow: 0 0 0 3px rgba(0, 91, 150, 0.14);
    outline: 0;
}

.ache-events-admin-section {
    border-top: 1px solid #e8edf3;
    padding: 28px 0 8px;
}

.ache-events-admin-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.ache-events-admin-section-heading {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ache-events-admin-section-heading h3 {
    color: #1f2d3d;
    font-size: 18px;
    margin-bottom: 0;
}

.ache-events-admin-section-heading span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.ache-events-admin-advanced {
    margin-bottom: 16px;
}

.ache-events-admin-advanced summary {
    color: var(--ache-events-primary, #005b96);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
    padding: 2px 0;
}

.ache-events-admin-image-drop {
    align-items: center;
    border: 2px dashed #cbd6e2;
    color: #25364a;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    margin-bottom: 8px;
    min-height: 132px;
    padding: 20px;
    text-align: center;
}

.ache-events-admin-image-drop:hover {
    border-color: var(--ache-events-primary, #005b96);
    box-shadow: 0 8px 22px rgba(31, 45, 61, 0.08);
}

.ache-events-admin-image-drop-icon {
    color: var(--ache-events-primary, #005b96);
    font-size: 30px;
}

.ache-events-admin-image-drop small,
.ache-events-admin-image-selected {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.ache-events-admin-savebar {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e8edf3;
    bottom: 0;
    display: flex;
    gap: 14px;
    margin: 24px -24px -24px;
    padding: 16px 24px;
    position: sticky;
    z-index: 5;
}

.ache-events-admin-save-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.ache-events-admin-save-status {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.ache-events-admin-button-spinner {
    animation: ache-events-admin-spin 700ms linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border-top-color: #fff;
    display: inline-block;
    height: 14px;
    margin-right: 8px;
    vertical-align: -2px;
    width: 14px;
}

@keyframes ache-events-admin-spin {
    to {
        transform: rotate(360deg);
    }
}

.ache-events-admin-login {
    margin: 0 auto;
    max-width: 420px;
}

.ache-events-admin-recurrence {
    padding-bottom: 18px;
}

.ache-events-admin-subpanel {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    margin-bottom: 20px;
    padding: 18px;
}

.ache-events-admin-subpanel-heading {
    align-items: baseline;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ache-events-admin-subpanel-heading h3 {
    color: #1f2d3d;
    font-size: 18px;
    margin-bottom: 0;
}

.ache-events-admin-subpanel-heading span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.ache-events-admin-recurrence h3 {
    color: #1f2d3d;
    font-size: 18px;
    margin-bottom: 14px;
}

.ache-events-admin-list-header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.ache-events-admin-search {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(140px, 1fr) 140px auto;
}

.ache-events-admin-table td {
    color: #4b5c6b;
    vertical-align: middle;
}

.ache-events-admin-table td strong {
    color: #1f2d3d;
}

.ache-events-admin-status {
    background: #eef5fa;
    color: var(--ache-events-primary, #005b96);
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 9px;
    text-transform: uppercase;
}

.ache-events-admin-status-draft {
    background: #fff7e0;
    color: #8a5a00;
}

.ache-events-admin-status-published {
    background: #e7f6ed;
    color: #16703a;
}

.ache-events-admin-status-archived {
    background: #eef1f4;
    color: #667085;
}

.ache-events-admin-action,
.ache-events-admin-inline button {
    background: none;
    border: 0;
    color: var(--ache-events-primary, #005b96);
    cursor: pointer;
    font-weight: 800;
    padding: 0;
}

.ache-events-admin-inline .ache-events-admin-danger {
    color: #b42318;
}

.ache-events-admin-inline .ache-events-admin-danger:hover {
    color: #8f1a12;
}

.ache-events-admin-inline {
    display: inline-block;
    margin-left: 12px;
}

.ache-events-admin-image-preview {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    margin-top: 10px;
    max-width: 320px;
    padding: 8px;
}

.ache-events-admin-image-preview img {
    display: block;
    height: auto;
    width: 100%;
}

.ache-events-admin-image-preview span {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

.ache-events-admin-remove-image {
    border-top: 1px solid #e8edf3;
    margin-top: 8px;
    padding-top: 8px;
}

.ache-events-admin-remove-image-button {
    border: 1px solid #d7dde5;
    color: #9b1c1c;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
    padding: 7px 10px;
}

.ache-events-admin-remove-image input:checked + .ache-events-admin-remove-image-button,
.ache-events-admin-remove-image-button:hover {
    background: #fff1f1;
    border-color: #f0b6b6;
}

@media (prefers-reduced-motion: reduce) {
    .ache-events-admin *,
    .ache-events-admin *::before,
    .ache-events-admin *::after {
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
    }
}

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

    .ache-events-admin-list-header,
    .ache-events-admin-header {
        display: block;
    }

    .ache-events-admin-search {
        grid-template-columns: 1fr;
        margin-bottom: 16px;
    }
}

@media (max-width: 767px) {
    .ache-events-results-list .ache-event-card {
        display: block;
    }

    .ache-events-toolbar {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }

    .ache-events-results-grid {
        grid-template-columns: 1fr;
    }

    .ache-events-layout-toggle {
        margin-top: 14px;
    }

    .ache-events-calendar-panel {
        padding: 12px;
    }

    .ache-events-calendar .fc-header-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .ache-events-calendar .fc-toolbar-title {
        font-size: 22px;
    }
}
