.pdf-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 12px;
    position: relative;
    height: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: 0.3s ease;
    border-bottom: 5px solid #c35a00;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.pdf-card:hover {
    transform: translateY(-4px);
    padding-right: 35px;   /* icon space */
}

.pdf-title {
    color: #ff0000;
    font-weight: 600;
    font-size: 15px;
    word-break: break-word;
}

.pdf-icon {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 34px;
    color: rgba(255, 0, 0, 0.15);
}

/* ===== PDF POPUP OVERLAY ===== */
#pdfPopup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    /* default hidden */
    z-index: 9999;

    align-items: center;
    justify-content: center;
    padding: 10px;
    /* mobile spacing */
}

/* INNER BOX */
#pdfPopup .popup-box {
    width: 90%;
    max-width: 1200px;
    height: 90%;
    background: #000;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
}

/* TOP BAR */
.pdf-topbar {
    background: #111;
    color: #fff;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

/* TITLE */
#popupTitle {
    font-size: 14px;
    font-weight: 600;
    color: #ffcc00;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CLOSE BUTTON */
#closePdf {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* PDF FRAME */
#pdfPopup iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: #000;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {

    #pdfPopup .popup-box {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .pdf-topbar {
        min-height: 48px;
        padding: 0 10px;
    }

    #popupTitle {
        font-size: 13px;
    }

    #closePdf {
        font-size: 22px;
    }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {

    #popupTitle {
        font-size: 12px;
    }

    #closePdf {
        font-size: 20px;
    }
}
