/* County Practice page */
.county-practice-hero {
  .infoh1 {
    padding-right: 2rem;
  }

  .info-banner-inner {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    height: auto;
    @media only screen and (min-width: 1024px) {
      min-height: 240px;
    }
  }
}

.county-practice-page {
  .leadership-grid {
    .attorney-name {
      background-color: var(--sub-color);
      color: var(--primary-color);
    }

    .listing {
      color: var(--text-color);

      .pro-feat-video .large-shrink {
        display: none;
      }

      .links-wrapper {
        justify-content: flex-start;
      }

      .favorite-icon,
      .compare-icon {
        display: block;
        margin-top: 2px;
        margin-bottom: 0;
        line-height: 1;
      }

      .compare-tools {
        margin-top: 0.5rem;
      }
    }
  }

  .city-links {
    margin-bottom: 1rem;
  }
}

.county-practice-page .atty-card {
  transform: none;

  .logo-box {
    position: relative;
  }

  .update_pages_logo {
    width: 100%;
  }

  .attorney-portrait {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    max-width: 170px !important;
  }

  &::after {
    top: 0;
    right: 0;
    left: -15px;
  }

  .pf-nav {
    flex-flow: column;
    gap: 5px;
  }

  .pf-nav-link {
    width: 100%;
    padding-left: 2.5rem;
    --icon-size: 1em;
    --icon-color: currentColor;
    border: none;
    border-left: 6px solid transparent;
    padding-top: 12px;
    padding-bottom: 12px;

    &::before {
      left: 1rem;
      top: 50%;
    }

    &.active {
      border-left-color: var(--primary-color);
    }
  }

  .pf-nav-title {
    font-family: var(--serif-font);
  }

  .sidebar-native-ad {
    &::before {
      content: 'Sponsored';
      display: block;
      text-align: right;
      font-size: 0.75rem;
      text-transform: uppercase;
      margin-bottom: 0.5rem;
      line-height: 1;
      padding-right: 1rem;
      color: var(--text-color);
    }
  }
}

.county-practice-hero-ad {
  position: relative;
  // margin-right: 2rem;

  &:empty {
    display: none;
  }

  &::after {
    content: 'Sponsored';
    position: absolute;
    right: 10px;
    top: 10px;
    text-transform: uppercase;
    color: #fff;
    z-index: 2;
    line-height: 1;
    font-size: 0.75rem;
  }

  /* Hide Sponsored label when only the Create Ad control is shown. */
  &:has(.native-ad-slot--create)::after {
    display: none;
  }
}

.featured-firm-logo .attorney-portrait {
  width: 170px !important;
  max-width: none;
  max-height: none;
  margin-right: 0;
  padding: 0;

  @media only screen and (max-width: 1200px) {
    width: 120px !important;
  }
}

.featured-law-firm {
  --grid-col-gap: 1rem;

  .profile-card-grid {
    margin-top: 0.5rem;
  }

  .result-contact-btns {
    margin-top: 1rem;

    @media only screen and (max-width: 640px) {
      justify-content: space-between;
    }
  }

  .card-btn {
    @media only screen and (max-width: 640px) {
      padding-left: 0.5em;
      padding-right: 0.5em;
    }
  }

  .law-firm-people-column {
    @media only screen and (max-width: 640px) {
      margin-top: 1rem;
    }
  }

}

.featured-firm-info {
  color: var(--text-color);
}

.law-firm-people-link {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  color: var(--text-color);

  &[href]:hover {
    text-decoration: none;

    .law-firm-people-link-name {
      text-decoration: underline;
      color: var(--red);
    }
  }
}

.law-firm-people-link-img-wrapper {
  margin-right: 0.875rem;

  @media only screen and (max-width: 640px) {
    margin-right: 0.5rem;
  }
}

.law-firm-people-link-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--photo-size, 114px);
  height: var(--photo-size, 114px);
  max-width: var(--photo-size, 114px);
  max-height: var(--photo-size, 114px);
  border: 5px solid #F7F0D4;
  border-radius: 50%;
  overflow: hidden;

  @media only screen and (max-width: 640px) {
    border-width: 3px;
  }

  img {
    width: 100%;
  }
}

.law-firm-people-link-name {
  font-weight: 700;
}