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

.zc-event-card {
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(20, 20, 20, 0.05);
}

.zc-event-card:hover {
    border-color: #c8c8c8;
    box-shadow: 0 7px 20px rgba(20, 20, 20, 0.08);
}

.zc-event-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ededed;
}

.zc-event-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.zc-event-card:hover .zc-event-image img {
    transform: scale(1.02);
}

.zc-event-article {
    max-width: 780px;
    margin: 24px 0 34px;
}

.zc-event-featured {
    max-width: 960px;
    margin: 20px 0 28px;
}

.zc-event-featured img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
}

.zc-event-copy {
    color: #292929;
    font-size: 18px;
    line-height: 1.72;
}

.zc-event-copy p {
    margin: 0 0 18px;
}

.zc-event-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 28px 0 18px;
    border-top: 3px solid var(--zc-accent, #9f1f2d);
    border-bottom: 1px solid #dedede;
    background: #f7f7f7;
}

.zc-event-details > div {
    padding: 15px 18px;
    border-bottom: 1px solid #dedede;
}

.zc-event-details > div:nth-child(odd) {
    border-right: 1px solid #dedede;
}

.zc-event-details dt {
    margin: 0 0 4px;
    color: #686868;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zc-event-details dd {
    margin: 0;
    color: #202020;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .zc-events-list,
    .zc-event-details {
        grid-template-columns: 1fr;
    }

    .zc-event-copy {
        font-size: 16px;
    }

    .zc-event-details > div:nth-child(odd) {
        border-right: 0;
    }

    .zc-event-details > div:last-child {
        border-bottom: 0;
    }
}

.zc-public-events {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0 48px;
}

.zc-public-event {
    overflow: hidden;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #fff;
}

.zc-public-event-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}

.zc-public-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zc-public-event-body {
    padding: 16px;
}

.zc-public-event-body time {
    color: var(--zc-accent, #9f1f2d);
    font-size: 12px;
    font-weight: 800;
}

.zc-public-event-body h2 {
    margin: 7px 0;
    font-size: 21px;
    line-height: 1.22;
}

.zc-public-event-body h2 a {
    color: #202020;
    text-decoration: none;
}

.zc-public-event-body p {
    color: #5d5d5d;
    font-size: 14px;
    line-height: 1.55;
}

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

@media (max-width: 640px) {
    .zc-public-events {
        grid-template-columns: 1fr;
    }
}

/* Publiczne kalendarium: układ zgodny z portalem macierzystym. */
.zcs-events-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, .92fr);
    gap: 38px;
    align-items: start;
    margin: 28px 0 52px;
}

.zcs-events-layout .zc-public-events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    margin: 0;
}

.zcs-events-layout .zc-public-event {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.zcs-events-layout .zc-public-event-image {
    aspect-ratio: 16 / 10;
}

.zcs-events-layout .zc-public-event-body {
    padding: 14px 0 8px;
}

.zcs-events-layout .zc-public-event-body h2 {
    margin: 8px 0 10px;
    font-size: 23px;
    line-height: 1.24;
}

.zcs-events-layout .zc-public-event-body p {
    margin: 0 0 13px;
    color: #555;
    font-size: 15px;
    line-height: 1.58;
}

.zcs-events-layout .zc-more {
    color: var(--zc-accent, #173b67);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.zc-public-event-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #eef3f8;
    color: var(--zc-accent, #173b67);
    text-decoration: none;
}

.zc-public-event-placeholder span {
    font-size: 50px;
    font-weight: 800;
    line-height: 1;
}

.zc-public-event-placeholder small {
    margin-top: 7px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.zcs-events-sidebar {
    position: sticky;
    top: 32px;
}

.zcs-sidebar-ad {
    display: block;
    margin: 0 0 30px;
    color: #777;
    font-size: 10px;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.zcs-sidebar-ad span {
    display: block;
    margin: 0 0 6px;
}

.zcs-sidebar-ad img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

.zcs-events-sidebar section {
    margin-bottom: 34px;
}

.zcs-events-sidebar h2 {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--zc-accent, #173b67);
    color: #202020;
    font-size: 21px;
}

.zcs-latest-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 0 0 13px;
    margin: 0 0 13px;
    border-bottom: 1px solid #e2e2e2;
    color: #242424;
    text-decoration: none;
}

.zcs-latest-item > span,
.zcs-latest-item img {
    display: block;
    width: 76px;
    height: 60px;
    object-fit: cover;
}

.zcs-latest-item b {
    font-size: 14px;
    line-height: 1.35;
}

.zcs-latest-item small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 11px;
    font-weight: 600;
}

.zcs-events-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.zcs-events-sidebar li {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #e7e7e7;
    color: #777;
}

.zcs-events-sidebar li a {
    color: #303030;
    text-decoration: none;
}

@media (max-width: 900px) {
    .zcs-events-layout { grid-template-columns: 1fr; gap: 28px; }
    .zcs-events-sidebar { position: static; }
}

@media (max-width: 640px) {
    .zcs-events-layout .zc-public-events { grid-template-columns: 1fr; }
}
