.hero-heading {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  /* Base font-size for desktop: */
  font-size: 2rem;
}


#services{
  display: grid;
    grid-template-columns: repeat(3, 1fr);
    /*grid-auto-rows: 14.0625vw;*/
    grid-auto-flow: dense;
    gap: 10px;
    position:  relative;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

/* 3) Card customization */
.card-custom {
  background-color: #e7ffff;   /* always white */
  border: none;
  border-radius: 1rem;         /* round corners */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-text{
  font-size: small;
}

.card-custom .card-img-top {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  height: 200px;       /* fixed height for all viewports */
  object-fit: cover;   /* crop/center the image */
  width: 100%;
}

.card-custom:hover{
  transform: scale(1.05) translateZ(0);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.25), 0 8px 16px rgba(255, 255, 255, 0.1); /*0 12px 24px rgba(0, 0, 0, 0.2);*/

}


.card-custom h5,
.card-custom p,
.card-custom .fw-bold {
  color: #212529;
}

@media (max-width: 768px) {
  #services{
    grid-template-columns: 1fr 1fr;
        /*grid-auto-rows: 28.125vw*/
  }
}
/* 7) Adjust card body padding on smaller screens */
@media (max-width: 480px) {
  .card-custom .card-body {
    padding: 1rem;
  }
  #services{
  grid-template-columns: 1fr;
        /*grid-auto-rows: 56.25vw;*/
  }
}
