.card-section {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 3rem 2rem;
  box-sizing: border-box;
}

/* This is the new wrapper for the card and its description */
.card-container {
  font-family: 'puhui';
  font-weight: 300;
  width: 400px;
  margin-right: 25px;
  margin-left: 25px;
  display: flex;
  flex-direction: column;
}

/* The card now only contains the image and handles the hover effect */
.card {
  position: relative;
  border-radius: 50px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block; /* Changed from flex */
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Ensure the image respects the parent's border-radius */
  border-radius: 50px;
}

.card-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* The description is now styled to sit below the card */
.card-desc {
  margin-top: 1.5rem; /* Added margin to create space */
  padding: 0;
  font-size: 0.9rem;
  color: #444;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .card-section {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  /* Target the container for responsive width */
  .card-container {
    width: 90%;
    margin-right: 0;
    margin-left: 0;
  }
}

.btn {
  background-color: #f1ac00;
  text-align: center;
  color: black;
  padding: 0.3rem 2rem;
  border-radius: 50px;
position: absolute;
transform: translateY(-10px);
}

.btng {
  background-color: gray;
  text-align: center;
  color: white;
  padding: 0.3rem 2rem;
  border-radius: 50px;
position: absolute;
transform: translateY(-10px);
}