/**
 * v1.1.6.8 — Industry Associations member cards (About Us).
 *
 * HTML + base styles live in the About Us page content (Custom HTML /
 * Elementor HTML with an embedded <style>), not in this child theme.
 * Live markup may include wpautop <br> and a bare URL text node inside
 * .rstq-assoc-meta (not a nested <span>). This sheet only adds a mobile
 * layout override. Properties the page stylesheet already sets use
 * !important so these rules win despite that <style> appearing later in
 * the document body. Desktop (≥768) is untouched.
 */

@media (max-width: 767px) {
  .rstq-assoc-badges-about {
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  .rstq-assoc-badges-about .rstq-assoc-row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .rstq-assoc-badges-about .rstq-assoc-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 14px !important;
    gap: 10px !important;
    overflow: hidden !important;
  }

  .rstq-assoc-badges-about .rstq-assoc-card img {
    display: block !important;
    margin: 0 auto !important;
    max-height: 48px !important;
    max-width: 140px !important;
    width: auto !important;
    height: auto !important;
    flex-shrink: 0 !important;
  }

  .rstq-assoc-badges-about .rstq-assoc-meta {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
  }

  .rstq-assoc-badges-about .rstq-assoc-meta strong,
  .rstq-assoc-badges-about .rstq-assoc-meta span {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
  }
}
