/*
 * 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 {
    float: left;
    width: 100%;
    margin-bottom: 15px;
}

/* Row / columns */
.team-style-two > ul.jobsearch-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    padding: 0;
    list-style: none;
}
.team-style-two > ul.jobsearch-row:before,
.team-style-two > ul.jobsearch-row:after {
    display: none; /* clearfix pseudo-elements would become flex items */
}
.team-style-two > ul.jobsearch-row > li {
    float: none;
    display: flex;
    flex-direction: column;
    width: 25%;
    margin: 0 0 30px;
    padding: 0 15px;
    list-style: none;
}

/* Card */
.team-style-two figure {
    flex: 1 1 auto;
    float: none;
    width: 100%;
    margin: 0;
    padding: 24px 22px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #ececec;
    position: relative;
}
.team-style-two .jobsearch-candidate-grid-thumb {
    display: inline-block;
    width: 124px;
    height: 124px;
    margin-bottom: 8px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    background: #f2f2f2;
}
.team-style-two .jobsearch-candidate-grid-thumb img {
    display: block;
    float: none;
    width: 124px;
    height: 124px;
    max-width: none;
    object-fit: cover;
    border-radius: 50%;
}
/* No photo uploaded: hide the broken-image icon, keep the grey circle */
.team-style-two .jobsearch-candidate-grid-thumb img[src=""],
.team-style-two .jobsearch-candidate-grid-thumb img:not([src]) {
    visibility: hidden;
}

.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.25 !important;
}
.team-style-two figure figcaption h2 a {
    color: #333333;
}
.team-style-two figure figcaption p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.3;
    color: #999999;
}

/* Social bar, pinned to the bottom of every card */
.team-style-two .jobsearch-social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: auto 0 0;
    padding: 10px;
    list-style: none;
    text-align: center;
    background-color: #fcfcfc;
    border: 1px solid #ececec;
    border-top: none;
}
.team-style-two .jobsearch-social-icons li {
    display: inline-flex;
    margin: 0;
    list-style: none;
    font-size: 24px;
    line-height: 1;
}
.team-style-two .jobsearch-social-icons li a {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 990px) {
    .team-style-two > ul.jobsearch-row > li { width: 50%; }
}
@media (max-width: 480px) {
    .team-style-two > ul.jobsearch-row > li { width: 100%; }
}
