/* Homepage native Featured Agents only. No directory, profile or payment rules. */
body.hprc-home-agents .hprc-home-featured-agents {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
body.hprc-home-agents .hprc-home-featured-agents > .row.pb40 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 24px 16px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 40px;
}
/* Bootstrap clearfix pseudo-elements must not become additional grid cells. */
body.hprc-home-agents .hprc-home-featured-agents > .row.pb40::before,
body.hprc-home-agents .hprc-home-featured-agents > .row.pb40::after {
    display: none;
    content: none;
}
body.hprc-home-agents .hprc-home-featured-agents > .row.pb40 > [class*="col-"] {
    box-sizing: border-box;
    display: flex;
    float: none;
    clear: none;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    left: auto;
    right: auto;
}
body.hprc-home-agents .hprc-home-featured-agents > .row.pb40 > [class*="col-"] > .agent {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 26px 20px 24px;
    border: 1px solid #e5eded;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 44, 59, .045);
    text-align: center;
    /* Avoid clipping keyboard focus outlines or profile/social link controls. */
    overflow: visible;
}
body.hprc-home-agents .hprc-home-featured-agents .agent > .agent-avatar {
    box-sizing: border-box;
    display: block;
    position: relative;
    flex: 0 0 auto;
    align-self: center;
    width: 170px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: 0;
    border-radius: 50%;
    overflow: hidden;
}
body.hprc-home-agents .hprc-home-featured-agents .agent > .agent-avatar > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
}
body.hprc-home-agents .hprc-home-featured-agents .agent-avatar > .ring {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}
body.hprc-home-agents .hprc-home-featured-agents .agent > .agent-name {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 18px 0 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.hprc-home-agents .hprc-home-featured-agents .agent > .reviewRating {
    box-sizing: border-box;
    max-width: 100%;
    margin: 10px 0 0;
    padding: 0;
    line-height: 1.5;
}
body.hprc-home-agents .hprc-home-featured-agents .agent > .agent-contact {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: auto 0 0;
    padding: 20px 0 0;
}
body.hprc-home-agents .hprc-home-featured-agents .agent-contact > a {
    flex: 0 0 auto;
    margin: 0;
}
body.hprc-home-agents .hprc-home-featured-agents .agent > .agent-avatar:focus,
body.hprc-home-agents .hprc-home-featured-agents .agent-contact > a:focus {
    /* The supplied Bootstrap file globally clears link outlines with !important. */
    outline: 2px solid #137f7c !important;
    outline-offset: 3px;
}
@media (min-width: 768px) {
    body.hprc-home-agents .hprc-home-featured-agents > .row.pb40 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }
    body.hprc-home-agents .hprc-home-agents-cols-1 > .row.pb40 {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (min-width: 992px) {
    body.hprc-home-agents .hprc-home-featured-agents > .row.pb40 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px 24px;
    }
    body.hprc-home-agents .hprc-home-agents-cols-3 > .row.pb40 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    body.hprc-home-agents .hprc-home-agents-cols-2 > .row.pb40 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.hprc-home-agents .hprc-home-agents-cols-1 > .row.pb40 {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 767px) {
    body.hprc-home-agents .hprc-home-featured-agents > .row.pb40 > [class*="col-"] > .agent {
        padding: 24px 18px;
        border-radius: 16px;
    }
    body.hprc-home-agents .hprc-home-featured-agents .agent > .agent-avatar {
        width: 150px;
    }
}
