/*
 * Metro Medical Services Inc. — coordinated related-resource links.
 * Presentation only; existing links and page content are unchanged.
 * Scoped to the existing resource, SEO, and FAQ recommendation blocks.
 */

.mmh-resource-detail-page .mmh-resource-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #d8e5da;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7f1e6 0%, #edf4ee 100%);
}

.mmh-resource-detail-page .mmh-resource-related > strong {
  grid-column: 1 / -1;
  display: block;
  margin: 0 0 6px;
  color: #173528;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.25;
}

.mmh-resource-detail-page .mmh-resource-related > a,
.mmh-seo-related li > a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid #cedfd2;
  border-radius: 12px;
  background: #fff;
  color: #24533e;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mmh-resource-detail-page .mmh-resource-related > a::after {
  content: "\2192";
  flex: none;
  color: #2f6b4f;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.mmh-seo-related {
  border: 1px solid #d5e3d7;
  border-radius: 18px;
  background: #edf4ee;
  padding: clamp(20px, 3vw, 30px);
}

.mmh-seo-related h2 {
  margin: 0 0 20px;
}

.mmh-seo-related ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mmh-seo-related li {
  min-width: 0;
  margin: 0;
}

.mmh-seo-related li > a {
  width: 100%;
  height: 100%;
  padding: 14px 16px;
  text-decoration: none;
}

.mmh-seo-related li > a span[aria-hidden="true"] {
  flex: none;
  font-size: 21px;
  transition: transform .2s ease;
}

.mmh-resource-detail-page .mmh-resource-related > a:hover,
.mmh-seo-related li > a:hover,
.mmh-faq-related > a:hover {
  color: #173528;
  background: #f0f8f1;
  border-color: #2f6b4f;
  box-shadow: 0 8px 18px rgba(23, 53, 40, .12);
  transform: translateY(-2px);
}

.mmh-seo-related li > a:hover span[aria-hidden="true"] {
  transform: translateX(3px);
}

.mmh-resource-detail-page .mmh-resource-related > a:focus-visible,
.mmh-seo-related li > a:focus-visible,
.mmh-faq-related > a:focus-visible {
  outline: 3px solid #d69a32;
  outline-offset: 3px;
  background: #f0f8f1;
  border-color: #24533e;
}

/* The FAQ recommendation is a compact companion to the larger cards. */
.mmh-faq-related {
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px solid #d8e5da;
  border-left: 4px solid #2f6b4f;
  border-radius: 12px;
  background: #f7f1e6;
  font-size: 0; /* Hide the old decorative dot separators between links. */
}

.mmh-faq-related > strong {
  display: block;
  margin: 0 0 12px;
  color: #173528;
  font-size: 20px;
  line-height: 1.35;
}

.mmh-faq-related > a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  margin: 0 9px 9px 0;
  padding: 9px 14px;
  border: 1px solid #cedfd2;
  border-radius: 10px;
  background: #fff;
  color: #24533e;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: normal;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

@media (max-width: 900px) {
  .mmh-seo-related ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .mmh-resource-detail-page .mmh-resource-related,
  .mmh-seo-related ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .mmh-resource-detail-page .mmh-resource-related {
    margin-top: 30px;
    padding: 20px 16px;
  }

  .mmh-resource-detail-page .mmh-resource-related > a,
  .mmh-seo-related li > a {
    min-height: 54px;
    padding: 12px 14px;
    font-size: 15px;
  }

  .mmh-seo-related {
    padding: 21px 16px;
  }

  .mmh-seo-related li + li {
    margin-top: 0;
  }

  .mmh-faq-related {
    padding: 18px 16px;
  }

  .mmh-faq-related > a {
    margin-bottom: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mmh-resource-detail-page .mmh-resource-related > a,
  .mmh-seo-related li > a,
  .mmh-seo-related li > a span[aria-hidden="true"],
  .mmh-faq-related > a {
    transition: none;
  }

  .mmh-resource-detail-page .mmh-resource-related > a:hover,
  .mmh-seo-related li > a:hover,
  .mmh-faq-related > a:hover,
  .mmh-seo-related li > a:hover span[aria-hidden="true"] {
    transform: none;
  }
}

