/* pbw-services.css */

/* Boxed shell */
.pbw-services-box {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: 24px auto;
  padding: 0 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Card container */
.pbw-sv-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,.06);
  padding: 18px;
}

/* Header */
.pbw-sv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pbw-sv-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.pbw-sv-subtitle {
  margin: 6px 0 0 0;
  color: rgba(0,0,0,.62);
  font-size: 13px;
}

/* Search */
.pbw-sv-search {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 14px 0 16px 0;
}

.pbw-sv-search input {
  width: 100%;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  background: #fafafa;
}

.pbw-sv-search input:focus {
  background: #fff;
  border-color: rgba(0,0,0,.22);
}

.pbw-sv-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(0,0,0,.05);
  color: rgba(0,0,0,.75);
  user-select: none;
  white-space: nowrap;
}

/* 3 coloane reale (mereu 3) + gap consistent */
.pbw-sv-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pbw-sv-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Specialty block */
.pbw-sv-spec {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;

  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px;
  margin: 0;
}

.pbw-sv-spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 12px;
  margin: -12px -12px 10px -12px; /* ca sa se intinda pana in marginile cardului */

  border-radius: 14px 14px 12px 12px;

  background: linear-gradient(90deg, #471A57 0%, #842E92 100%);
}

/* Numele specialitatii alb + putin mai mare */
.pbw-sv-spec-name {
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* Dot-ul specialitatii: mai mare, alb contur, umplere cu culoarea specialitatii */
.pbw-sv-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;

  background: rgba(255,255,255,.35); /* fallback */
  border: 2px solid #fff;

  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  flex: 0 0 auto;
}

.pbw-sv-spec-empty {
  color: rgba(0,0,0,.55);
  font-size: 13px;
  padding: 8px 0 4px 0;
}

/* Service rows */
.pbw-sv-item {
  border-top: 1px dashed rgba(0,0,0,.10);
  padding: 10px 0;
}

.pbw-sv-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.pbw-sv-item-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px 0;

  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.pbw-sv-item-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.pbw-sv-doctors {
  color: rgba(0,0,0,.75);
  font-size: 13px;
  line-height: 1.3;
}

.pbw-sv-price {
  font-weight: 800;
  font-size: 13px;
  color: rgba(0,0,0,.85);
  background: rgba(0,0,0,.05);
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.pbw-sv-muted {
  color: rgba(0,0,0,.55);
}

.pbw-sv-msg {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(0,0,0,.65);
}

.pbw-sv-error {
  background: #fff5f5;
  border: 1px solid rgba(210, 50, 50, .22);
  color: rgba(150, 30, 30, .95);
  padding: 10px 12px;
  border-radius: 12px;
}

.pbw-sv-doctors-content {
  margin-top: 4px;
}

.pbw-sv-doctor-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pbw-sv-doctor-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: rgba(0,0,0,.85);
  line-height: 1.35;
}

.pbw-sv-doctor-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(0,0,0,.55);
}

.pbw-sv-more-btn{
  width:100%;
  border:0;
  border-radius:10px;
  padding:12px 14px;
  cursor:pointer;
  font-weight:900;
  color:#fff;
  background:#471A57;
  transition: transform .06s ease, opacity .15s ease;
}
.pbw-sv-more-btn:hover{ opacity:.95; background:#842E92; }
.pbw-sv-more-btn:active{ transform: translateY(1px); }

/* ===== Reduce margins/padding on tablet & mobile ===== */
@media (max-width: 1024px) {
  .pbw-services-box {
    margin: 12px auto;      /* mai mic sus/jos */
    padding: 0 10px;        /* mai mic stânga/dreapta */
  }
}

@media (max-width: 768px) {
  .pbw-services-box {
    margin: 8px auto;
    padding: 0 8px;
  }

  .pbw-sv-card {
    padding: 14px;
  }
}

@media (max-width: 520px) {
  .pbw-services-box {
    margin: 0 auto;         /* fără spațiu sus/jos */
    padding: 0 6px;         /* aproape full width */
  }

  .pbw-sv-card {
    padding: 12px;
    border-radius: 12px;    /* recomand să NU fie 0, arată mai clean */
    box-shadow: none;
  }
  
  .pbw-sv-spec-head {
    margin: -12px -10px 10px -10px;
  }
}

/* ===== FORCE grid responsive (important) ===== */
@media (max-width: 1024px) {
  .pbw-sv-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .pbw-sv-columns {
    grid-template-columns: 1fr !important;
  }

  .pbw-sv-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pbw-sv-pill {
    width: 100%;
    justify-content: center;
  }
}