/*
 * Careerfy "Our Team" grid (style2 / .team-style-two)
 * Self-contained: works with or without the WP JobSearch plugin.
 * Flex layout = equal-height cards, real columns, no inline-block gap hack.
 */

.team-style-two,
.team-style-two * {
    box-sizing: border-box;
}

.team-style-two {
    width: 100%;
    margin-bottom: 15px;
}

/* Row */
.jobsearch-candidate-grid.team-style-two > ul.jobsearch-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    padding: 0;
    list-style: none;
}
.jobsearch-candidate-grid.team-style-two > ul.jobsearch-row:before,
.jobsearch-candidate-grid.team-style-two > ul.jobsearch-row:after {
    display: none;
    content: none;
}

/* Columns: 4 desktop */
.jobsearch-candidate-grid.team-style-two > ul.jobsearch-row > li {
    display: flex;
    flex-direction: column;
    float: none;
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
    margin: 0 0 30px 0;
    padding: 0 15px;
    list-style: none;
    vertical-align: top;
}

/* Card */
.team-style-two figure {
    flex: 1 1 auto;
    float: none;
    width: 100%;
    margin: 0;
    padding: 24px 22px;
    text-align: center;
    position: relative;
    background-color: #ffffff;
    border: 1px solid #ececec;
}

/* Photo */
.team-style-two .jobsearch-candidate-grid-thumb {
    display: inline-block;
    width: 124px;
    height: 124px;
    margin-bottom: 8px;
    position: relative;
    border-radius: 100%;
    overflow: hidden;
    background-color: #e6e6e6;
}
.team-style-two .jobsearch-candidate-grid-thumb img {
    display: block;
    float: none;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 100%;
}
/* Missing photo: show the grey circle, not a broken-image icon */
.team-style-two .jobsearch-candidate-grid-thumb img[src=""],
.team-style-two .jobsearch-candidate-grid-thumb img:not([src]) {
    visibility: hidden;
}

/* Caption */
.team-style-two figure figcaption {
    float: none;
    width: 100%;
    line-height: 1;
}
.team-style-two figure figcaption h2 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.2 !important;
}
.team-style-two figure figcaption h2 a {
    text-decoration: none;
}
.team-style-two figure figcaption p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.3;
    color: #999999;
}
.team-style-two figure figcaption span {
    font-size: 12px;
    line-height: 1.3;
    color: #999999;
}

/* Social bar, sits at the bottom of each card */
.team-style-two ul.jobsearch-social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 10px;
    text-align: center;
    background-color: #fcfcfc;
    border: 1px solid #ececec;
    border-top: none;
}
.team-style-two ul.jobsearch-social-icons li {
    display: inline-flex;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 24px;
    line-height: 1;
}
.team-style-two ul.jobsearch-social-icons li a {
    text-decoration: none;
}
.team-style-two ul.jobsearch-social-icons li a.jobsearch-facebook-logo { color: #375d93; }
.team-style-two ul.jobsearch-social-icons li a.jobsearch-instagram-logo { color: #a57b00; }
.team-style-two ul.jobsearch-social-icons li a.jobsearch-twitter-logo { color: #43afe9; }
.team-style-two ul.jobsearch-social-icons li a.jobsearch-linkedin-button { color: #007eb3; }

/* Tablet: 2 columns */
@media (max-width: 990px) {
    .jobsearch-candidate-grid.team-style-two > ul.jobsearch-row > li {
        flex-basis: 50%;
        width: 50%;
        max-width: 50%;
    }
}

/* Phone: 1 column */
@media (max-width: 480px) {
    .jobsearch-candidate-grid.team-style-two > ul.jobsearch-row > li {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
    }
}
