.card-img-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(228, 0, 123, 0.5);
  color: white;
  text-align: center;
  padding: 10px 0;
}

.card-title {
  font-weight: 600;
}

.btn-primary {
  background-color: #e4007b !important;
  border: 0 !important;
}

.btn-secondary {
  border: 0 !important;
}

.bookNow {
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 0;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  color: #fff !important;
  background-color: #e4007b;
  border: 1px solid #e4007b;
  box-sizing: border-box;
  transition: background-color 0.25s ease, color 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.bookNow:hover {
  background-color: #fff;
  color: #e4007b !important;
}

.bookNow i {
  font-size: 0.7rem;
  line-height: 1;
}

.service-detail-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.service-detail-dismiss {
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  color: #6c757d;
  background-color: transparent;
  border: 1px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
  line-height: 1.2;
  transition: color 0.25s, background-color 0.25s;
}

.service-detail-dismiss:hover {
  color: #262626;
  background-color: #f3f3f3;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-body {
  flex: 1;
  overflow: hidden;
}

.card-text {
  position: relative;
}

.description-container {
  position: relative;
}

.card-footer {
  margin-top: auto;
}

.card-footer-actions {
  gap: 0.75rem;
  min-height: 2rem;
}

.read-more {
  width: fit-content;
  cursor: pointer;
  color: #d9609f !important;
  font-size: 14px;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: color 0.3s;
}

.read-more:hover {
  color: #e4007b !important;
}

.service-detail-image-wrap {
  position: relative;
  width: 100%;
}

.service-detail-image {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.service-detail-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(38, 38, 38, 0.7);
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(2px);
  transition: background-color 0.25s, color 0.25s;
}

.service-detail-close i {
  display: block;
  line-height: 1;
  width: 1em;
  height: 1em;
  font-size: inherit;
}

.service-detail-close:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #e4007b;
}

#serviceDetailModal.modal.fade .modal-dialog {
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform: translate(0, 12px) scale(0.98);
  opacity: 0;
}

#serviceDetailModal.modal.show .modal-dialog {
  transform: none;
  opacity: 1;
}

#serviceDetailModal.modal.fade {
  transition: opacity 0.3s ease;
}

.service-detail-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #262626;
  margin: 0;
}

@media (max-width: 767.98px) {
  #serviceDetailModal .modal-dialog {
    max-height: 80dvh;
    margin: 1rem;
    width: auto;
    max-width: calc(100% - 2rem);
  }

  #serviceDetailModal .modal-dialog-scrollable {
    height: auto;
  }

  #serviceDetailModal .modal-content {
    max-height: 80dvh;
  }

  .service-detail-image {
    max-height: 180px;
  }
}

#services-list h2 {
  font-size: 20px !important;
  letter-spacing: 1px;
}

.duration-block {
  background-color: rgba(217, 96, 159, 0.06);
  color: #d9609f;
  letter-spacing: 0.5px;
  font-weight: 500;
  border: 1px solid rgba(217, 96, 159, 0.12);
}

.custom-scroll {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.custom-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.custom-scroll:hover {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.custom-scroll::-webkit-scrollbar {
  height: 6px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-track {
  background-color: transparent;
}
