/* PDF Gallery Grid */
.pgm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Card Styling */
.pgm-pdf-card {
    border: 2px dashed #d6c0a5;
    /* Beige/Tan dashed border */
    border-radius: 20px;
    padding: 15px;
    background-color: #fdfbf7;
    /* Very light beige background */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: transform 0.2s ease;
}

.pgm-pdf-card:hover {
    transform: translateY(-2px);
}

.pgm-card-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    /* Inner radius for image */
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pgm-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
    /* Typical document aspect ratio */
}

.pgm-card-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #8b7355;
    /* Brownish text color from image */
    margin-bottom: 15px;
    line-height: 1.3;
    text-align: center;
}

.pgm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.pgm-pdf-badge {
    background-color: #e6dace;
    color: #8b7355;
    font-size: 0.75em;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.pgm-download-btn {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pgm-download-btn:hover {
    color: #333;
}