.scua-events-page {
    padding: 72px 0 90px;
    background: #f4f6ff;
}

.scua-events-intro {
    padding: 10px 0 38px;
    text-align: center;
}

.scua-events-eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 14px;
    border: 1px solid rgba(64, 94, 190, 0.14);
    border-radius: 999px;
    background: #fff;
    color: #4964b4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.scua-events-intro h1 {
    margin: 0;
    color: #17264a;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.scua-events-intro p {
    max-width: 620px;
    margin: 16px auto 26px;
    color: #68738d;
    font-size: 17px;
    line-height: 1.7;
}

.scua-events-nav {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(32, 50, 91, 0.1);
    border-radius: 12px;
    background: #fff;
}

.scua-events-nav a {
    padding: 10px 18px;
    border-radius: 8px;
    color: #4f5e7b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.scua-events-nav a.is-active {
    background: #eaf0ff;
    color: #2456c6;
}

.scua-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.scua-events-grid--centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.scua-events-grid--centered .scua-event-card {
    flex: 0 0 calc((100% - 48px) / 3);
}

.scua-event-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(32, 50, 91, 0.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(32, 50, 91, 0.07);
}

.scua-event-poster {
    display: flex;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #e9edf8;
}

.scua-event-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scua-event-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
}

.scua-event-date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: #315ed0;
    font-size: 13px;
    font-weight: 700;
}

.scua-event-card h2 {
    margin: 0 0 10px;
    color: #17264a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.scua-event-location {
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
    color: #68738d;
    font-size: 14px;
    line-height: 1.5;
}

.scua-event-location i {
    margin-top: 3px;
    color: #4964b4;
}

.scua-event-prices {
    margin-bottom: 18px;
    padding: 4px 14px;
    border: 1px solid #edf0f8;
    border-radius: 10px;
    background: #f8faff;
}

.scua-event-price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding: 10px 0;
    color: #52617d;
    font-size: 14px;
    line-height: 1.4;
}

.scua-event-price-row + .scua-event-price-row {
    border-top: 1px solid #e5eaf5;
}

.scua-event-price-row strong {
    color: #17264a;
    text-align: right;
}

.scua-event-price-row small {
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: 600;
}

.scua-event-price-row .is-open {
    color: #16815e;
}

.scua-event-price-row .is-closed {
    color: #8a5761;
}

.scua-event-description {
    color: #59657d;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.scua-event-description + .scua-event-description {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf0f8;
}

.scua-event-description-label {
    display: block;
    margin-bottom: 8px;
    color: #344363;
}

.scua-event-description-content p,
.scua-event-description-content ul,
.scua-event-description-content ol,
.scua-event-description-content blockquote {
    margin: 0 0 14px;
    font-size: inherit;
    line-height: inherit;
}

.scua-event-description-content ul,
.scua-event-description-content ol {
    padding-left: 22px;
}

.scua-event-description-content ul {
    list-style: disc;
}

.scua-event-description-content ol {
    list-style: decimal;
}

.scua-event-description-content li {
    margin-bottom: 4px;
    font-size: inherit;
    line-height: inherit;
}

.scua-event-description-content h1,
.scua-event-description-content h2,
.scua-event-description-content h3,
.scua-event-description-content h4,
.scua-event-description-content h5,
.scua-event-description-content h6 {
    margin: 0 0 10px;
    color: #17264a;
    font-size: 16px;
    line-height: 1.4;
}

.scua-event-description-content a {
    color: #245bd2;
    text-decoration: underline;
}

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

.scua-event-description-preview {
    margin-bottom: 18px;
}

.scua-event-description-preview p {
    display: -webkit-box;
    max-height: 6.8em;
    margin: 0 0 8px;
    overflow: hidden;
    color: #59657d;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.scua-event-read-more {
    padding: 0;
    border: 0;
    background: transparent;
    color: #315ed0;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.scua-event-read-more:hover {
    color: #1946a9;
}

.scua-event-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 16px;
}

.scua-event-modal .modal-header {
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid #edf0f8;
}

.scua-event-modal .modal-title {
    margin: 0;
    color: #17264a;
    font-size: 20px;
    line-height: 1.4;
}

.scua-event-modal .modal-body {
    padding: 24px;
}

.scua-event-modal .scua-event-description:last-child {
    margin-bottom: 0;
}

.scua-event-register {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 9px;
    background: #245bd2;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.scua-event-register:hover,
.scua-event-register:focus-visible {
    background: #1946a9;
    color: #fff;
}

.scua-event-register.is-disabled {
    background: #edf0f5;
    color: #747e90;
}

.scua-events-empty {
    padding: 64px 24px;
    border: 1px dashed rgba(32, 50, 91, 0.2);
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.scua-events-empty-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #eaf0ff;
    color: #315ed0;
    font-size: 26px;
}

.scua-events-empty h2 {
    margin: 0 0 10px;
    color: #17264a;
    font-size: 22px;
}

.scua-events-empty p {
    margin: 0;
    color: #68738d;
}

.scua-events-page .pagination {
    gap: 7px;
    margin-top: 42px;
}

.scua-events-page .pagination .page-link {
    min-width: 42px;
    margin: 0;
    border: 1px solid rgba(32, 50, 91, 0.12);
    border-radius: 9px;
    background: #fff;
    color: #344363;
    text-align: center;
}

.scua-events-page .pagination .page-item.active .page-link {
    border-color: #245bd2;
    background: #245bd2;
    color: #fff;
}

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

    .scua-events-grid--centered .scua-event-card {
        flex-basis: calc((100% - 24px) / 2);
    }
}

@media (max-width: 767px) {
    .scua-events-page {
        padding: 48px 0 64px;
    }

    .scua-events-intro {
        padding: 4px 0 28px;
    }

    .scua-events-intro p {
        font-size: 15px;
    }

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

    .scua-events-grid--centered .scua-event-card {
        flex-basis: 100%;
    }

    .scua-event-body {
        padding: 20px;
    }
}
