/* Begevet Team widget */
.begevet-team,
.begevet-team *,
.begevet-team *::before,
.begevet-team *::after {
    box-sizing: border-box;
}

.begevet-team {
    width: 100%;
    margin: 0;
    padding: 0;
    background: none;
}

.begevet-team .begevet-team__title {
    margin: 0 0 12px;
    padding: 0;
    font-size: clamp(30px, 3.8vw, 44px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: normal;
    text-transform: none;
    color: #9FB59C;
}

.begevet-team .begevet-team__description {
    max-width: 72ch;
    margin: 0 0 28px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: #676C73;
    text-wrap: pretty;
}

.begevet-team__filter {
    display: flex;
    gap: 6px;
    margin: 0 0 28px;
    padding: 0 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.begevet-team__filter::-webkit-scrollbar {
    display: none;
}

.begevet-widget.begevet-team .begevet-team__tab {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    -webkit-appearance: none;
    appearance: none;
    height: auto;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 8px 14px;
    border: 1.5px solid #DFE3E8;
    border-radius: 999px;
    outline: none;
    background: #FFFFFF;
    box-shadow: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    color: #50545D;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.begevet-widget.begevet-team .begevet-team__tab:hover,
.begevet-widget.begevet-team .begevet-team__tab:focus,
.begevet-widget.begevet-team .begevet-team__tab:active {
    border-color: #9FB59C;
    background: #FFFFFF;
    color: #50545D;
}

.begevet-widget.begevet-team .begevet-team__tab.is-active,
.begevet-widget.begevet-team .begevet-team__tab.is-active:hover,
.begevet-widget.begevet-team .begevet-team__tab.is-active:focus,
.begevet-widget.begevet-team .begevet-team__tab.is-active:active {
    border-color: #9FB59C;
    background: #9FB59C;
    color: #FFFFFF;
}

.begevet-widget.begevet-team .begevet-team__tab:focus-visible {
    outline: 2px solid #9FB59C;
    outline-offset: 2px;
}

.begevet-team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.begevet-team__card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 14px rgba(80, 84, 93, 0.08);
    color: #50545D;
    transition: box-shadow 0.15s ease;
}

.begevet-team__card[hidden] {
    display: none;
}

.begevet-team__card:hover {
    box-shadow: 0 6px 22px rgba(80, 84, 93, 0.16);
}

.begevet-team .begevet-team__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 8px;
}

.begevet-team__media {
    display: grid;
    place-items: center;
    padding: 28px 18px 0;
}

.begevet-team__photo {
    position: relative;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    background: #E6EEE4;
    box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 5.5px #DCE6DA;
}

.begevet-team .begevet-team__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}

.begevet-team__body {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 18px;
    text-align: center;
}

.begevet-team .begevet-team__name {
    margin: 0;
    padding: 0;
    font-size: 17.5px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
    color: #50545D;
}

.begevet-team .begevet-team__role {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: #7A7F86;
}

.begevet-team__clinics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 12px;
}

.begevet-team .begevet-team__clinic {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid transparent;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    color: #7A7F86;
}

.begevet-team a.begevet-team__clinic:hover {
    border-bottom-color: #9FB59C;
    color: #9FB59C;
}

.begevet-team .begevet-team__pin {
    flex-shrink: 0;
}

.begevet-team .begevet-team__more {
    margin-top: auto;
    padding-top: 8px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    color: #6F9070;
}

.begevet-team__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.begevet-team .begevet-team__bar-title {
    margin: 0;
    padding: 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
    color: #50545D;
}

.begevet-team a.begevet-team__bar-link {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    color: #6F9070;
}

.begevet-team a.begevet-team__bar-link:hover {
    text-decoration: underline;
    color: #6F9070;
}

@media (max-width: 767px) {
    .begevet-team .begevet-team__bar-title {
        font-size: 22px;
    }

    .begevet-team .begevet-team__description {
        margin-bottom: 22px;
    }

    .begevet-team__filter {
        margin-bottom: 22px;
    }

    .begevet-team__grid {
        grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    }
}
