.pdf-download-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 2rem 0;
}

.pdf-grid-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  transition: .3s;
  text-align: center;
  padding: 0;
  background: linear-gradient(135deg, rgba(209, 197, 169, 0.2) 0%, rgba(209, 197, 169, 0.19) 88%);
  box-shadow: 0 2px 12px rgba(0,0,0,0.20);
}

.pdf-grid-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  border-bottom: none;
  background: transparent;
}

.pdf-thumb-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.pdf-thumb {
  width: 100%;
  object-fit: cover;
  border-radius: 0;
  max-width: 100%;
  transition: opacity 0.25s cubic-bezier(.25,.8,.25,1);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  z-index: 1;
}

.pdf-thumb.main-thumb {
  position: relative;
  z-index: 1;
  opacity: 1;
}

.pdf-thumb.hover-thumb {
  opacity: 0;
  z-index: 2;
}

.pdf-grid-card:hover .hover-thumb,
.pdf-grid-card:focus-within .hover-thumb {
  opacity: 1;
}

.pdf-grid-card:hover .main-thumb,
.pdf-grid-card:focus-within .main-thumb {
  opacity: 0;
}

.pdf-grid-card h4 {
  margin: 1rem 1rem 1rem;
  font-size: 1.15rem;
}

.pdf-grid-card p {
  color: #444;
  font-size: 0.96rem;
  margin-bottom: 0;
}
.pdf-grid-card a.button {
    background: transparent;
}
