/* =========================================================
   NEWSPAPER SECTION
========================================================= */

.newspaper-section {
    width: 100%;
    margin-top: 20px;
}

.newspaper-heading {
    margin-bottom: 20px;
}

.newspaper-heading h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: #111;
}

.newspaper-heading p {
    margin: 5px 0 0;
    font-size: 16px;
    color: #777;
}


/* =========================================================
   GRID
========================================================= */

.newspaper-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   CARD
========================================================= */

.newspaper-card {
    background: #fff;

    border-radius: 18px;

    padding: 18px;

    cursor: pointer;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.newspaper-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.14);
}


/* =========================================================
   PDF PREVIEW
========================================================= */

.newspaper-preview {
    width: 100%;

    height: 480px;

    background: #f4f4f4;

    border-radius: 10px;

    overflow: hidden;

    display: flex;

    align-items: flex-start;

    justify-content: center;
}

.newspaper-preview canvas {
    display: block;

    width: 100%;

    height: auto;

    background: #fff;
}


/* =========================================================
   NAME + DATE SAME LINE
========================================================= */

.newspaper-info {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-top: 14px;

    white-space: nowrap;
}

.newspaper-name {
    font-size: 17px;

    font-weight: 800;

    color: #111;

    overflow: hidden;

    text-overflow: ellipsis;
}

.newspaper-date {
    font-size: 13px;

    color: #777;

    flex-shrink: 0;
}


/* =========================================================
   LOADING
========================================================= */

.newspaper-loading {
    width: 100%;

    padding: 40px;

    background: #fff;

    border-radius: 15px;

    text-align: center;

    color: #777;

    font-size: 17px;
}


/* =========================================================
   EMPTY
========================================================= */

.newspaper-empty {
    width: 100%;

    padding: 40px;

    background: #fff;

    border-radius: 15px;

    text-align: center;

    color: #777;
}


/* =========================================================
   ERROR
========================================================= */

.newspaper-error {
    width: 100%;

    padding: 40px;

    background: #fff;

    border-radius: 15px;

    text-align: center;

    color: #d90416;

    font-size: 17px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .newspaper-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 650px) {

    .newspaper-grid {
        grid-template-columns: 1fr;
    }

    .newspaper-preview {
        height: auto;

        max-height: 600px;
    }

    .newspaper-info {
        justify-content: flex-start;
    }

}