.t888-list-events {
    color: #17366f;
    font-family: var(--font-family);
}

.t888-list-events.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.t888-event-related {
    background: #EAF3FF;
    margin-top: 75px;
    padding: 68px 0 46px;
}

.t888-event-single-intro {
    color: #253653;
    font-size: 28px;
    line-height: 42px;
    margin: 28px auto;
    max-width: 1028px;
    text-align: center;
}

.t888-event-single-intro p {
    margin: 0;
    text-align: center;
}

.t888-event-related__heading {
    color: #17366f;
    font-family: var(--font-dinroundot);
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    margin: 0 0 24px;
}

.t888-event-related__grid {
    display: grid;
    gap: 18px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.t888-event-related-card {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(23, 54, 111, 0.08);
    border-radius: 14px;
    display: grid;
    gap: 18px;
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 150px;
    padding: 16px;
}

.t888-event-related-card__thumb {
    aspect-ratio: 180 / 118;
    border-radius: 10px;
    display: block;
    overflow: hidden;
}

.t888-event-related-card__thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.t888-event-related-card__title {
    color: #17366f;
    font-family: var(--font-dinroundot);
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    margin: 0 0 8px;
}

.t888-event-related-card__title a {
    color: inherit;
    text-decoration: none;
}

.t888-event-related-card__excerpt {
    color: #50607D;
    font-size: 16px;
    line-height: 25px;
    margin: 0 0 10px;
}

.t888-event-related-card__tag {
    background: #FFF6D8;
    border-radius: 999px;
    color: #8F6A00;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    padding: 5px 10px;
}

.t888-events-highlight {
    background: #FFF8F1;
    border: 1px solid #F0E1C7;
    border-radius: 36px;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(280px, 0.7fr) minmax(420px, 1.35fr);
    overflow: hidden;
    padding: 30px;
}

.t888-events-highlight__tag,
.t888-events-card__tag {
    background: #FFECCC;
    border-radius: 999px;
    color: #8B6400;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    padding: 10px 14px;
}

.t888-events-highlight__title {
    font-family: var(--font-dinroundot);
    font-size: 38px;
    font-weight: 700;
    line-height: 48px;
    margin: 18px 0;
    color: #17346F;
}

.t888-events-highlight__title a,
.t888-events-card__title a,
.t888-events-card__foot a {
    color: inherit;
    text-decoration: none;
}

.t888-events-highlight__excerpt {
    color: #4F5F7D;
    font-size: 18px;
    line-height: 28px;
    margin: 0 0 18px;
}

.t888-events-highlight__chips {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.t888-events-highlight__chips span {
    align-self: flex-start;
    background: #fff;
    border-radius: 999px;
    color: #21428F;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
}

.t888-events-highlight__media {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
}

.t888-events-highlight__image {
    aspect-ratio: 435 / 250;
    border-radius: 12px;
    display: block;
    overflow: hidden;
}

.t888-events-highlight__image img,
.t888-events-card__thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.t888-events-list-heading {
    color: #17366f;
    font-family: var(--font-dinroundot);
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    margin: 24px 0;
}

.t888-events-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.t888-events-card {
    align-items: stretch;
    background: #fff;
    border: 1px solid #DEE5F5;
    border-radius: 26px;
    display: grid;
    gap: 24px;
    grid-template-columns: 236px minmax(0, 1fr);
    padding: 24px;
}

.t888-events-card__thumb {
    aspect-ratio: 236 / 160;
    border-radius: 20px;
    overflow: hidden;
}

.t888-events-card__title {
    font-family: var(--font-dinroundot);
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    margin: 0 0 12px;
    color: #17346F;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t888-events-card__excerpt {
    color: #50607D;
    font-size: 16px;
    line-height: 25px;
    margin: 0 0 15px;
        -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t888-events-card__foot {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.t888-events-card__tag {
    font-size: 13px;
    line-height: 16px;
    padding: 10px 14px;
}

.t888-events-card__foot a {
    color: #17366f;
    font-size: 12px;
    font-weight: 700;
}

.t888-events-pagination {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.t888-events-page {
    align-items: center;
    background: #fff;
    border: 1px solid #163A84;
    border-radius: 50%;
    color: #163A84;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    font-weight: 400;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 44px;
}

.t888-events-page.is-active,
.t888-events-page:hover {
    background: #163A84;
    border-color: #163A84;
    color: #fff;
}

.t888-events-empty {
    color: #4e5f80;
    margin: 0;
}

@media (max-width: 991px) {
    .t888-events-highlight {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .t888-events-highlight__title {
        font-size: 34px;
    }

    .t888-events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .t888-events-highlight {
        padding: 18px;
    }

    .t888-events-highlight__title {
        font-size: 28px;
    }

    .t888-events-card {
        grid-template-columns: 1fr;
    }

    .t888-events-card__thumb {
        aspect-ratio: 16 / 9;
    }
}

.t888-event-detail {
    background: #fff;
    color: #17366f;
    font-family: var(--font-family);
}

.t888-event-detail__hero {
    background-position: center;
    background-size: cover;
    min-height: 320px;
    width: 100%;
}

.t888-event-detail__body {
    background: #fff;
    padding: 44px 16px 72px;
}

.t888-event-detail__inner {
    margin: 0 auto;
}

.t888-event-detail__breadcrumb {
    align-items: center;
    color: #60708f;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
    justify-content: center;
    margin-bottom: 26px;
}

.t888-event-detail__breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.t888-event-detail__header {
    margin: 0 auto 74px;
    text-align: center;
}

.t888-event-detail__header h1 {
    color: #17346F;
    font-family: var(--font-dinroundot);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 39px;
    text-transform: uppercase;
}

.t888-event-detail__header p {
    color: #435372;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.t888-event-detail__gallery {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto 48px;
}

.t888-event-detail__item {
    aspect-ratio: 693 / 420;
    border-radius: 32px;
    display: block;
    overflow: hidden;
    position: relative;
}

.t888-event-detail__item img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.t888-event-detail__item--video::before {
    background: rgba(0, 0, 0, 0.28);
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
}

.t888-event-detail__item--video span {
    align-items: center;
    background: #e90380;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    left: 50%;
    padding: 10px 18px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 2;
}

.t888-event-detail__content {
    color: #2A3956;
    font-size: 28px;
    line-height: 42px;
    margin: 0 auto;
    max-width: 980px;
}

.t888-event-detail__content:empty {
    display: none;
}

.t888-event-detail__load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: -16px;
}

.t888-event-detail__load-more {
    background: #e90380;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    padding: 12px 20px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.t888-event-detail__load-more:hover {
    transform: translateY(-1px);
}

.t888-event-detail__load-more.is-loading {
    cursor: wait;
    opacity: 0.65;
}
.wp-block-list{
    margin-top: -20px;
    color: #2A3956;
}
@media (max-width: 767px) {
    .t888-event-related {
        padding: 34px 0 40px;
    }

    .t888-event-related__grid {
        grid-template-columns: 1fr;
    }

    .t888-event-related-card {
        grid-template-columns: 128px minmax(0, 1fr);
        padding: 12px;
    }

    .t888-event-related-card__title {
        font-size: 16px;
        line-height: 22px;
    }

    .t888-event-detail__hero {
        min-height: 220px;
    }

    .t888-event-detail__header h1 {
        font-size: 26px;
    }

    .t888-event-detail__gallery {
        grid-template-columns: 1fr;
    }
}
@media (max-width:480px) {
    .t888-event-single-intro {
        font-size: 18px;
        line-height: 28px;
        margin: 18px auto;
    }
    .t888-event-related-card{
        display: flex;
        flex-direction: column;
    }
    .t888-event-related-card__thumb{
        width: 100%;
    }
    .t888-event-related-card__body{
        width: 100%;
    }
}