/* Service link list — improved layout */
.service-link-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 24px;
  padding: 0;
  background: none;
}

.service-link-list::before {
  content: "Explore at iCare";
  flex: 0 0 100%;
  display: flex;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #64748B;
  padding-bottom: 7px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 1px;
}

.service-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-height: 42px;
  padding: 8px 12px 8px 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 7px;
  color: #1A2F4E;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1.3;
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  justify-content: flex-start;
}

/* Chevron fallback for links without a custom icon */
.service-link-list a::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007F7F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Hide chevron when a custom icon image is present */
.service-link-list a:has(.service-icon)::before {
  display: none;
}

.service-link-list a::after {
  content: none !important;
}

/* Custom icon image styling */
.service-link-list a .service-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex: 0 0 24px;
  object-fit: contain;
  object-position: center;
  display: block;
  align-self: center;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.64;
  transition: opacity 0.18s ease;
}

.service-link-list a:hover .service-icon {
  opacity: 0.86;
}

.service-link-list a:hover {
  border-color: #007F7F;
  background: #E6F7F7;
  color: #006767;
}
