/* === SERVICE CARDS (Centered & Equal Width) === */

/* Parent row: center cards */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Individual service card */
.wp-block-group.has-quinary-border-color {
  background: #2c2c2c;
  border: 1px solid #555;
  border-radius: 12px;
  padding: 30px 20px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);

  flex: 0 1 300px;   /* default: 3 cards per row if space */
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hover */
.wp-block-group.has-quinary-border-color:hover {
  background: #383838;
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Images inside cards */
.wp-block-group.has-quinary-border-color img {
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s ease-in-out;
  max-width: 100%;
  height: auto;
}
.wp-block-group.has-quinary-border-color:hover img {
  transform: scale(1.05);
}

/* Headings */
.wp-block-group.has-quinary-border-color h3 {
  color: #fff;
  font-size: 20px;
  margin: 15px 0 10px;
  text-align: center;
}

/* Paragraph */
.wp-block-group.has-quinary-border-color p {
  color: #ddd;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  text-align: center;
  flex-grow: 1;
}

/* Buttons */
.wp-block-group.has-quinary-border-color .wp-block-button__link {
  background: #f9b234;
  color: #000;
  font-weight: 600;
  padding: 10px 20px;
  
  transition: all 0.3s ease;
  text-transform: uppercase;
  text-align: center;
}
.wp-block-group.has-quinary-border-color .wp-block-button__link:hover {
  background: #ffcc4d;
  color: #111;
}

/* === Responsive Fix for Service Cards === */

/* Tablets (769px–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .wp-block-group.has-quinary-border-color {
    flex: 0 1 50%;   /* two per row */
    max-width: 300px;
    margin: 10px;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .wp-block-group.has-quinary-border-color {
    flex: 0 1 100%;  /* full width */
    max-width: 400px;
    margin: 10px auto; /* centered */
  }
}

