#services {
  color: #fff;
  font-size: 10px;
  line-height: 1.4;
  margin-bottom: 4rem;
  align-items: center;
  justify-content: center;
}

.sub-title {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 40px;
  padding-bottom: 20px;
}

.sub-title span {
  color: #ff4d4d;
}

.service-container {
  padding: 70px 0px 0px 0px;
  align-items: center;
  justify-content: center;
}

/* ========================== */
/* ✅ Responsive grid layout  */
/* ========================== */
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 columns on desktop */
  gap: 25px;
  margin-top: 20px;
  justify-content: center;
  /* ✅ center the entire grid horizontally */
  justify-items: center;
  /* ✅ center cards within columns */
  align-items: stretch;
  width: fit-content;
  /* ✅ shrink grid to fit its columns */
  margin-left: auto;
  /* ✅ center horizontally */
  margin-right: auto;
}

.services-list div {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: transparent;
  padding: 20px 35px 10px 35px;
  border-radius: 20px;
  box-shadow: 1px 1px 25px rgba(255, 77, 77, 0.4),
    1px 1px 25px rgba(255, 77, 77, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  display: flex;
  /* ✅ enable flex layout */
  flex-direction: column;
  /* stack icon, text, button vertically */
  justify-content: space-between;
  /* ✅ push button to bottom */
  min-height: 250px;
}

.services-list div:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 0 25px #EFDF00;
}

.services-list div img {
  width: 45px;
  height: 45px;
  margin-bottom: 20px;
}

.services-list div h2 {
  color: #e0e0e0;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.4;
  flex-grow: 1;
  /* allows text block to expand as needed */
}

.services-list div a {
  text-decoration: none;
  font-size: 13px;
  margin-top: 10px;
  display: inline-block;
  align-self: center;
  /* center horizontally */
  margin-top: auto;
  /* ✅ keeps button at bottom */
}

/* Button */
.read {
  display: inline-block;
  padding: 12px 28px;
  background: #ff4d4d;
  border-radius: 40px;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.5px;
  text-decoration: none;
  font-weight: 600;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.read:hover {
  box-shadow: 0 0 10px #ff4d4d;
  /* transform: translateY(-1px); */
  transform: transform(-1px);
}

/* ========================== */
/* ✅ Responsive breakpoints  */
/* ========================== */

/* Tablets: 2 per row */
@media (max-width: 768px) {

  
  .services-list div {
    max-height: 170px;
    min-height: 170px;
    width: 100%;
    padding: 15px 10px 8px;
    box-shadow: 1px 1px 5px rgba(255, 77, 77, 0.6),
      1px 1px 5px rgba(255, 77, 77, 0.6);
    display: flex;
    /* ✅ enable flex layout */
    flex-direction: column;
    /* stack icon, text, button vertically */
    justify-content: space-between;
    /* ✅ push button to bottom */
  }


  .services-list div:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 15px #EFDF00;
  }

  .sub-title {
    font-size: 30px;
  }

  .services-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-items: center;
    padding: 0px 8px;
  }

  .services-list div img {
    width: 35px;
    height: 35px;
    margin-bottom: 10px;
  }


  .services-list div a {
    text-decoration: none;
    font-size: 11px;
    display: inline-block;
  }

  .services-list div h2 {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.3;
  }


  /* Button */
  .read {
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 18px;
    text-decoration: none;
    font-weight: 400;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }


  .read:hover {
    box-shadow: 0 0 5px #ff4d4d;
    transform: translateY(-2px);
  }

}