/*
  Custom CSS - Service Card Layout (Tong Road Pharmacy)
  Clean vertical cards, bold titles, centred icons, light blue Select button
*/

/* =============================================
   SERVICE CARD - VERTICAL LAYOUT
   ============================================= */

/* Card: vertical column */
.service-step .service-item {
  flex-direction: column !important;
  align-items: stretch !important;
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 6px !important;
}

/* Icon banner at top - light blue tint, fixed height, properly centred */
.service-step .service-item .preloader {
  width: 100% !important;
  height: 90px !important;
  min-height: 90px !important;
  max-height: 90px !important;
  padding-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  background: #f4f7fb !important;
}

/* Anchor inside preloader - fill and centre */
.service-step .service-item .preloader > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

/* default.img wrapper */
.service-step .service-item .preloader .default.img {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  position: static !important;
}

/* Icon size */
.service-step .service-item .preloader .default.img svg,
.service-step .service-item .preloader .default.img img {
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
}

/* Content body */
.service-step .service-item .one-line {
  flex-direction: column !important;
  flex: 1 !important;
  width: 100% !important;
  padding: 12px 14px 0 14px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.service-step .service-item .content {
  flex: 1 !important;
  flex-direction: column !important;
  width: 100% !important;
}

/* Title: bold + slightly larger - targets ALL title variants */
.service-step .service-item .title,
.service-step .service-item .cap.title {
  font-size: 1.05em !important;
  font-weight: 700 !important;
  min-height: auto !important;
  margin-bottom: 5px !important;
  color: #3a3a4a !important;
  line-height: 1.35 !important;
}

.service-step .service-item .title a,
.service-step .service-item .cap.title a {
  font-size: inherit !important;
  font-weight: 700 !important;
  color: #3a3a4a !important;
  text-decoration: none !important;
}

/* Duration bar */
.service-step .service-item .info-bar.bar-service {
  padding: 4px 0 !important;
  font-size: 0.85em !important;
  width: 100% !important;
}

/* Button bar - full width, contained inside card */
.service-step .service-item .btn-bar {
  width: 100% !important;
  margin-left: 0 !important;
  margin-top: 10px !important;
  flex-direction: column !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
  padding: 0 14px 14px 14px !important;
}

/* Select button - light blue */
.service-step .service-item .btn-round-mask {
  width: 100% !important;
  min-width: unset !important;
  min-height: unset !important;
  position: static !important;
}

.service-step .service-item .btn-round-mask a.btn.select {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  box-sizing: border-box !important;
  background-color: #3d8bcd !important;
  color: #ffffff !important;
  border-color: #3d8bcd !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
}

.service-step .service-item .btn-round-mask a.btn.select:hover {
  background-color: #2f72b0 !important;
  border-color: #2f72b0 !important;
}

/* Read more link below button */
.service-step .service-item .wrap-read-more {
  width: 100% !important;
  text-align: center !important;
  margin-top: 6px !important;
  font-size: 0.85em !important;
}

/* 3 cards per row on desktop */
@media (min-width: 768px) {
  .service-step .service-item {
    width: 33.333% !important;
  }
}

/* =============================================
   OTHER RULES
   ============================================= */

/* Hide duration from events step */
#events p.duration,
#events div.duration {
  display: none !important;
}
