.chr_search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.chr_search-container > div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.chr_search-container input[type="text"],
.chr_search-container input[type="date"] {
    padding: 10px 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 120px;
}

.chr_search-container input[type="text"] {
    min-width: 220px;
}

.chr_search-container input[type="text"]:focus,
.chr_search-container input[type="date"]:focus {
    border-color: var(--theme-secondary, #FF5722);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.18);
}

.chr_search-container label {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.65);
    white-space: nowrap;
}

.chr_search-container button {
    cursor: pointer;
    padding: 10px 30px;
    background: var(--theme-primary, #D32F2F);
    color: var(--theme-accent, #fff);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.chr_search-container button:hover {
    background: var(--theme-secondary, #FF5722);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.chr_search-container button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.chr_article {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border: 1px solid #dcdcdc;
    padding: 20px;
    border-radius: 5px;
}

.chr_article img {
    width: 60px;
    height: auto;
    border-radius: 5px;
    flex-shrink: 0;
}

.chr_thumbnail {
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.chr_thumbnail:hover {
    opacity: 0.85;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
    .chr_article {
        flex-direction: column;
        gap: 12px;
    }

    .chr_article img {
        width: 100%;
        max-height: 220px;
        object-fit: cover;
    }
}

.chr_article-info h3 {
    margin-top: 0;
}

/* Pagination Container */
#pagination,
#pagination-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Paginationsbutton */
#pagination button,
#pagination-bottom button {
    background: rgba(255, 255, 255, 0.75);
    color: #333;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    min-width: 38px;
}

#pagination button:hover,
#pagination-bottom button:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--theme-primary, #D32F2F);
    transform: translateY(-1px);
}

#pagination button.chr_active,
#pagination-bottom button.chr_active {
    background: var(--theme-primary, #D32F2F);
    color: var(--theme-accent, white);
    border-color: var(--theme-primary, #D32F2F);
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

#pagination span,
#pagination-bottom span {
    padding: 7px 6px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
}

/* ------------------------------------------------------------------ */
/* PDF Viewer Overlay                                                   */
/* ------------------------------------------------------------------ */

.chr_pdf_overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.chr_pdf_overlay.chr_pdf_overlay--open {
    display: flex;
}

.chr_pdf_container {
    position: relative;
    width: 92vw;
    height: 88vh;
    max-width: 1200px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    animation: chrPdfSlideIn 0.25s ease;
}

@keyframes chrPdfSlideIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.chr_pdf_close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.chr_pdf_close:hover {
    background: rgba(0, 0, 0, 0.88);
    transform: scale(1.1);
}

.chr_pdf_frame {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}

@media (max-width: 600px) {
    .chr_pdf_container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
}
