@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Poppins:wght@600&display=swap');

/* Root section for your cards */
.posh-services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1180px;
  margin: 48px auto 0 auto;
  padding: 0 18px;
}

/* Card core */
.posh-service-card {
  background: #fff;
  border-radius: 17px;
  border: 1px solid #E4E4E4;
  box-shadow: 0 4px 24px 0 rgba(44,62,80,0.06);
  width: 100%;
  min-width: 0;
  max-width: 375px;
  min-height: 220px;
  padding: 22px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.16s;
}

.posh-service-card:hover {
  box-shadow: 0 12px 32px 0 rgba(44,62,80,0.14);
}

/* Top: Title/Image row */
.posh-card-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

/* Title block */
.posh-service-title-wrap {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.posh-service-title {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 15.3px;
  line-height: 22px;
  color: #1C1C1C;
  margin: 0 0 6px 0;
  max-height: 45px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* Hide subtitle */
.posh-service-subtitle {
  display: none;
}

/* Service Image */
.posh-service-image {
  width: 120px;
  height: 98px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid #2B3186;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.posh-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Description */
.posh-service-description {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #999;
  line-height: 16px;
  margin: 0 0 10px 0;
  min-height: 30px;
  max-width: 220px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* Footer row */
.posh-service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 8px;
  width: 100%;
}

/* Price */
.posh-service-price {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1C1C1C;
  margin: 0;
  line-height: 24px;
  letter-spacing: 0;
  flex-shrink: 0;
}

/* Actions */
.posh-service-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.posh-btn-cart {
  display: none !important;
}

.posh-btn-primary {
  background: #2B3186;
  color: #fff;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 15px;
  border: none;
  border-radius: 6px;
  height: 29px;
  min-width: 88px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.14s;
  text-decoration: none !important;
  box-shadow: none;
}

.posh-btn-primary:hover,
.posh-btn-primary:focus {
  background: #20245e;
  color: #fff;
}

/* --- FINAL RESPONSIVE OVERRIDES --- */

/* Tablet */
@media (max-width: 1100px) {
  .posh-services-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    max-width: 100% !important;
    padding: 0 2vw !important;
  }
  .posh-service-card {
    max-width: 100% !important;
    min-height: 180px !important;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .posh-services-cards {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 100% !important;
    padding: 0 12px !important;
  }

  .posh-service-card {
    width: 100% !important;
    max-width: 368px;
    min-height: 228px;
    padding: 22px 22px 18px 22px !important;
    margin: 0 auto;
  }

  .posh-service-image {
    width: 120px;
    height: 98px;
  }

  .posh-service-title { font-size: 15px; }
  .posh-service-description { font-size: 12px; }
  .posh-service-price { font-size: 22px; }
  .posh-btn-primary {
    font-size: 10.5px;
    height: 28.5px;
    padding: 0 12px;
    border-radius: 6px;
  }
}
