/* PDF Grid Layout */
.pdf-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap:20px;
    align-items: center;
    height: 100%;
}

/* PDF Item */
.pdf-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: -webkit-fill-available;
    max-height: max-content;
    height: 100%;
    background-color: white;
    border-radius: 8px;
     overflow: hidden;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pdf-item-inner {
    
   
   
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pdf-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Thumbnail */
.pdf-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.pdf-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pdf-item:hover .pdf-thumbnail img {
    transform: scale(1.05);
}

.pdf-placeholder {
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-placeholder .dashicons {
    font-size: 64px;
    width: auto;
    height: auto;
    color: #d1d5db;
}

/* Content */
.pdf-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Categories */
.pdf-categories {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Title */
.pdf-title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.4;
}

.pdf-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pdf-title a:hover {
    color: #3b82f6;
}

/* Meta */
.pdf-meta {
    margin-bottom: 15px;
    font-size: 12px;
    color: #6b7280;
}

/* Button */
.pdf-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #054F7C;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: auto;
}

.pdf-download:hover {
    background: #D92830;
    color: white;
    transform: translateY(-1px);
}

.pdf-download .dashicons {
    margin-right: 6px;
}
