.latest-events {
    max-width: var(--wide-width);
    padding-top: 2em;
    padding-bottom: 3em;

}
.latest-events h2>p {
    margin:0;
    padding:0;
}

h2.latest-events-title {
    margin-bottom: 32px;
    text-align: center;
}
.latest-events .custom-content-with-media-content-buttons {
    margin-top: 20px;
    justify-self: left;
    width: fit-content;
}



.latest-events-columns {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.latest-events-col {
    flex: 1 1 50%;
    min-width: 0;
}

/* Left column – posts list */
.latest-events-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 65px;
}

.latest-events-list-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 24px;
}

.latest-events-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.latest-events-post-link {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.latest-events-post-thumbnail {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.latest-events-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-events-post-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.latest-events-post-date {
    font-size: 14px;
    /*opacity: 0.6;*/
    font-weight: 500;
    color: var(--title-color);
    text-transform: uppercase;
}

.latest-events-post-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
}

/* Right column – PDF viewer */
.latest-events-pdf-viewer {
    width: 100%;
}

.latest-events-pdf-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.latest-events-pdf-nav button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: #0f352e;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.latest-events-pdf-nav button:disabled {
    opacity: 0.4;
    cursor: default;
}

.latest-events-pdf-nav button svg {
    width: 16px;
    height: 16px;
}

.latest-events-pdf-page-info {
    font-size: 13px;
}

.latest-events-pdf-download {
    margin-top: 12px;
}

.latest-events-pdf-download a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #0f352e;
    text-decoration: none;
}

.latest-events-pdf-download a svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .latest-events-columns {
        flex-direction: column;
    }

    .latest-events-col {
        flex: 1 1 100%;
    }
}

.custom-posts-archive-with-filter-filters-group-title {
    width: unset;
}