/* .sb-container {
  margin-inline: auto;
}
.sb-heading {
  font-size: 40px;
  margin: auto;
  display: flex;
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 16px;
}
.sb-divider {
  width: 56px;
  border-bottom: 1px solid black;
  height: 1px;
  color: transparent;
  border-top: 1px solid transparent;
  margin: auto;
}
.sb-list {
  padding-top: 50px;
  display: flex;
  gap: 24px;
/*
  .sb-card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border-radius: 5px; /* 5px rounded corners */
/*
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    img {
      border-radius: 5px 5px 0 0;
      max-width: 400px;
      display: block;
      margin: auto;
    }
  }

  /* Add rounded corners to the top left and the top right corner of the image */
/*} */

.sb-container {
  margin-inline: auto;
  max-width: 1200px;
  padding: 0 16px; /* padding for small screens */
}

.sb-heading {
  font-size: 40px;
  margin: auto;
  display: flex;
  justify-content: center;
  text-align: center;
  padding-top: 32px;
  padding-bottom: 16px;
}

.sb-divider {
  width: 56px;
  border-bottom: 1px solid black;
  height: 1px;
  border-top: none;
  margin: auto;
}

.sb-list {
  padding-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.sb-card {
  transition: transform 0.3s ease;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: white;
  flex: 1 1 calc(33.333% - 24px); /* 3 per row default */
  max-width: 400px;
}

.sb-card:hover {
  transform: translateY(-5px);
}

.sb-card img {
  border-radius: 16px;
  width: 100%;
  height: 250px; /* Fixed height for uniformity */
  object-fit: cover; /* Crop image to fill */
  display: block;
}

.sb-card-title {
  font-size: 18px;
  font-weight: 400;
  padding: 16px;
  text-align: center;
  white-space: nowrap;
}

/* ✅ Tablet (≤ 900px) → still 3 per row but smaller sizing */
@media (max-width: 900px) {
  .sb-heading {
    font-size: 32px;
  }

  .sb-divider {
    width: 40px; /* narrower */
  }

  .sb-card {
    max-width: 300px; /* smaller cards */
  }

  .sb-card-title {
    font-size: 15px;
    padding: 12px;
  }
}

/* ✅ Mobile (≤ 600px) → 1 per row */
@media (max-width: 600px) {
  .sb-heading {
    font-size: 26px;
  }

  .sb-divider {
    width: 30px; /* even smaller */
  }

  .sb-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .sb-card-title {
    font-size: 16px;
    padding: 10px;
  }
}

/* Custom range for wrapping text */
@media (min-width: 600px) and (max-width: 750px) {
  .sb-card-title {
    white-space: normal; /* Allow wrapping */
  }
}
.wp-block-myplugin-services-block.sb-container {
  padding-bottom: 104px;
}
