/* SERVICES */
.services{
  font-family: 'Poppins';
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
  padding: 50px 0px;
}

/* Card */
.card{
  position: relative;
  overflow: hidden;
  background:white;
  border-radius:12px;
  padding:0; /* header + body split */
  box-shadow:0 5px 15px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

/* Image Header (replaces ::before & shine) */
.card .card-header{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;        /* ✅ 3:2 ratio */
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

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

/* Overlay for readability */
.card .card-header::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.6));
  z-index: 1;
}

/* Title on image (same position feel as bar) */
.card h3{
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  text-align: left;
}

/* Content Body */
.card .card-body{
  padding: 12px;
}

/* Push content spacing similar to your bar version */
.card p,
.card ul {
  margin-top: 16px;
  font-size: 14px;
}

.card ul{
  line-height:1.8;
  text-align: left;
  padding: 0 20px;
}

.card:hover .card-header img{
  transform: scale(1.06);
  transition: 0.4s ease;
}

.card a{
  display:inline-block;
  color:orangered;
  text-decoration:none;
  margin-top: 10px; 
  margin-bottom: 20px;
  font-weight: 450;
  font-family: 'Poppins';
}

/* Hover Lift Effect */
.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

/* Tablet: 2 cards per row */
@media (max-width: 992px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px 10px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card p,
  .card ul {
    font-size: 13px;
  }
}

/* Mobile: 1 card per row */
@media (max-width: 576px) {
  .services {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 30px 6px;
  }

  .card {
    border-radius: 10px;
  }

  .card .card-header {
    border-radius: 10px 10px 0 0;
  }

  .card h3 {
    font-size: 17px;
    left: 12px;
    right: 12px;
    bottom: 10px;
  }

  .card .card-body {
    padding: 10px;
  }

  .card ul {
    padding: 0 12px;
  }
}