.pad-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-items: center;
}

/* Each card wrapper */
.pad-card {
  position: relative;
  width: 355px;
  height: 355px;
  overflow: hidden;
  cursor: pointer;
  background: #f8f8f8;
}

/* FRONT IMAGE */
.pad-card-front {
  position: relative;
  width: 100%;
  height: 100%;
}

.pad-card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0px;
}

/* FRONT TITLE (overlayed text centered on top of image) */
.pad-card-front h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  font-size: 1.7rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  margin: 0;
  z-index: 2;
  font-weight: 800;
}

/* BACK OVERLAY (appears on hover) */
.pad-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.97);
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.pad-card:hover .pad-card-back {
  opacity: 1;
  visibility: visible;
}

.pad-card:hover .pad-card-front h3 {
  opacity: 0;
}

/* BACK CONTENT */
.pad-card-back h3 {
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 1.2em;
}

.pad-card-back p {
  margin-bottom: 15px;
  font-size: 1em;
  line-height: 1.7;
  font-weight: 800;
}

.pad-card-btn {
  background: #ffe232;
  color: #333;
  text-transform: uppercase;
  border-radius: 18px;
  padding: 8px 16px;
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
}

@media (max-width: 768px) {
  .pad-card {
    width: 100%;
    height: auto;
  }
}
