/* ===== Samples Section ===== */
#samples {
  background: linear-gradient(135deg, #f8f9fa, #eef2f7);
}

#samples h2 {
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 8px;
  text-align: center;
}

#samples h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #007bff;
  border-radius: 2px;
}

/* ===== Card Styling ===== */
.sample-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sample-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.sample-card img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sample-card:hover img {
  transform: scale(1.05);
}

/* ===== Card Content ===== */
.sample-card .card-body {
  padding: 20px;
}

.sample-card .card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

/* ===== Buttons ===== */
.sample-card .btn {
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  color: white;
}

.sample-card .btn-success {
  background: #28a745;
  border: none;
}

.sample-card .btn-success:hover {
  background: #1c7c31;
  transform: scale(1.05);
}

/* ===== Responsive tweaks ===== */
@media (max-width: 576px) {
  .sample-card img {
    height: 180px;
  }
  
  .sample-card .card-title {
    font-size: 16px;
  }
}
/* Default button container (desktop) */
.sample-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Keep title above buttons */
.sample-card .card-title {
  margin-bottom: 16px;
}

/* Button wrapper for spacing */
.sample-card .btn {
  margin: 5px 0;
  width: 140px; /* consistent width */
}

/* 📱 Responsive fixes */
@media (min-width: 600px) and (max-width: 1000px) {
  .sample-card .card-body {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sample-card .card-title {
    flex: 0 0 100%;
    text-align: center;
    margin-bottom: 12px;
  }

  .sample-card .btn {
    margin: 6px;
    width: auto; /* buttons resize naturally */
    min-width: 110px;
  }
}
