.page-team-new {
    display: block;
    position: relative;
    padding: 60px 20px;
}

.page-team-new .container {
    max-width: 1251px;
}

.page-team-new .team-description p {
    font-size: 18px !important;
}

.page-team-new .page-team-new-container {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.page-team-new .page-team-new-container:has(+ .is-collapsed) {
    margin-bottom: 0;
}

.page-team-new .page-team-new-container .team-filter {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-team-new .page-team-new-container .team-filter .team-filter-search-form {
    position: relative;
    display: flex;
}

.page-team-new .page-team-new-container .team-filter .team-filter-search-form .team-filter-search-input,
.page-team-new .page-team-new-container .team-filter .team-filter-search-form .team-filter-search-input:focus,
.page-team-new .page-team-new-container .team-filter .team-filter-search-form .team-filter-search-input:active {
    border-left: none;
    border-top: none;
    border-right: none;
    margin-right: 20px;
    position: relative;
    z-index: 1;
    padding: 5px 10px;
}

.page-team-new .page-team-new-container .team-filter .team-filter-search-form .team-filter-search-input:focus {
    outline: none;
}

.page-team-new .page-team-new-container .team-filter .team-filter-search-form .team-filter-search-input {
    border-color: rgba(27, 28, 28, 0.38);
    border-radius: 0 !important;
}

.page-team-new .page-team-new-container .team-filter .team-filter-search-form .team-filter-search-button {
    position: absolute;
    right: 13px;
    background: transparent;
    border: none;
    padding: 6px;
    z-index: 4;
    cursor: pointer;
}

.page-team-new .page-team-new-container .team-filter .team-filter-title-button {
    min-width: 174px;
    text-align: left;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background: #F2F2F2;
}

.page-team-new .page-team-new-container .team-filter .team-filter-title-button:hover {
    background: #E6F2FF;
}

.page-team-new .page-team-new-container .team-filter .team-filter-title-button:has(+ .active) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.team-filter-title-button svg path {
    fill: #404040;
}

.page-team-new .page-team-new-container h2 {
    display: block;
    color: #1B1C1C;
    font-family: 'Corporative', sans-serif !important;
    font-size: 30px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    margin-bottom: 0;
}

.page-team-new.page-team-new img {
    position: relative;
}

.page-team-new .team-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
}

.page-team-new .team-list.column-four-columns {
    justify-content: flex-start;
}

.page-team-new .team-list .team-list-item {
    display: block;
    width: 100%;
    max-width: 375px;
    border-radius: 40px 40px 20px 20px;
    background: #F8F8F8;
}

.page-team-new .team-list.column-four-columns .team-list-item {
    flex: 1 1 calc(50% - 20px);
    /* four columns */
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.team-description {
    margin-bottom: 50px;
}

.page-team-new .team-list .team-list-item .team-list-item-details .team-list-item-details-link svg {
    position: relative;
    top: 1px;
}

.clinical-filters-title.clinical-filters-desktop {
    display: none;
}

/* Responsive Clinical Filters */
.clinical-filters-desktop {
    display: block;
}

.clinical-filters-mobile {
    display: none;
}

.ctm-jmp-link.wp-block-button a {
    border-radius: 100px;
    background: rgba(51, 124, 228, 0.12);
    color: #000;
    color: #337CE4;
    font-family: "Source Sans 3";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding-left: 30px;
}

.ctm-jmp-link .wp-element-button:after {
    content: '';
    background: url('data:image/svg+xml,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.41259 0.754086L11.4959 4.83742C11.6022 4.94744 11.661 5.09479 11.6596 5.24774C11.6583 5.40069 11.597 5.54699 11.4888 5.65515C11.3807 5.7633 11.2344 5.82465 11.0814 5.82598C10.9285 5.82731 10.7811 5.76851 10.6711 5.66225L7.5835 2.57467V12.8332C7.5835 12.9879 7.52204 13.1363 7.41265 13.2456C7.30325 13.355 7.15488 13.4165 7.00017 13.4165C6.84546 13.4165 6.69709 13.355 6.58769 13.2456C6.47829 13.1363 6.41684 12.9879 6.41684 12.8332V2.57467L3.32925 5.66225C3.27544 5.71797 3.21107 5.76241 3.13991 5.79298C3.06874 5.82355 2.99219 5.83964 2.91474 5.84032C2.83728 5.84099 2.76047 5.82623 2.68878 5.7969C2.61709 5.76757 2.55196 5.72425 2.49719 5.66948C2.44242 5.61471 2.3991 5.54958 2.36977 5.47789C2.34044 5.4062 2.32568 5.32939 2.32636 5.25194C2.32703 5.17448 2.34312 5.09794 2.37369 5.02677C2.40427 4.9556 2.4487 4.89123 2.50442 4.83742L6.58775 0.754086C6.69714 0.644728 6.84549 0.583294 7.00017 0.583294C7.15485 0.583294 7.30319 0.644728 7.41259 0.754086Z" fill="%23337CE4"/></svg>');
    width: 15px;
    height: 22px;
    background-size: 100%;
    background-repeat: no-repeat;
    display: block;
    float: right;
    position: relative;
    top: 4px;
    margin-left: 5px;
}

.page-team-new>div.container:after {
    height: 1px;
    width: 100%;
    background: rgba(27, 28, 28, 0.40);
    position: absolute;
    content: '';
    bottom: -75px;
    left: 0;
    right: 0;
}

.page-team-new-section-three>div.container:after {
    content: none;
}

/* Mobile: Hide buttons, show dropdown */
@media (max-width: 1024px) {
    .clinical-filters {
        flex-wrap: wrap;
    }

    .clinical-filters-desktop {
        display: none;
    }

    .clinical-filters-mobile {
        display: block;
        max-width: 300px;
        width: 100%;
        border: 0;
        flex: 0 0 100%;
    }

    .clinical-filters-select {
        width: 100%;
        padding: 12px 15px 12px 0;
        font-size: 16px;
        border: 0 !important;
        border-radius: 0 !important;
        background-color: #fff;
        cursor: pointer;
        border-bottom: 1px solid #ddd !important;
        outline: none;
    }

    .page-team-new .team-list .team-list-item {
        width: calc(50% - 35px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .page-team-new .team-list.column-four-columns .team-list-item {
        flex: 1 1 calc(50% - 20px);
        /* four columns */
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .page-team-new .page-team-new-container .team-filter {
        margin-top: 0;
    }

    .page-team-new-container {
        flex-wrap: wrap;
    }

    .team-filter-title {
        max-width: 173px;
        width: 100%;
    }

    .page-team-new .page-team-new-container .team-filter {
        width: 100%;
    }

    .page-team-new .page-team-new-container .team-filter .team-filter-search-form .team-filter-search-input {
        width: 100%;
    }

    .team-filter-search,
    .page-team-new .page-team-new-container .team-filter .team-filter-search-form {
        width: 100%;
    }
}

@media(max-width: 767px) {
    .page-team-new .page-team-new-container h2 {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    .page-team-new .page-team-new-container .team-filter {
        flex: 1;
        margin-top: 10px;
    }

    .page-team-new .team-list .team-list-item {
        width: calc(50% - 35px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .page-team-new .page-team-new-container {
        flex-wrap: wrap;
    }

    .clinical-filters-mobile {
        max-width: 250px;
    }

    .page-team-new .team-list.column-four-columns {
        justify-content: center;
    }

    .clinical-filters-mobile {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }

    .clinical-filters {
        flex-wrap: wrap;
    }
}

@media(max-width:600px) {
    .page-team-new .team-list .team-list-item {
        width: 100%;
        border-radius: 40px 40px 20px 20px;
        background: #F8F8F8;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .page-team-new .team-list.column-four-columns .team-list-item {
        width: 100%;
        flex: 0 0 100%;
    }
}

@media(min-width:1025px) {
    .clinical-filters-title.clinical-filters-desktop {
        display: flex;
    }

    .page-team-new .team-list {
        justify-content: center;
    }

    .page-team-new .team-list .team-list-item {
        width: calc(50% - 35px);
    }

    .page-team-new .team-list.column-four-columns .team-list-item {
        width: calc(33.333% - 35px);
        flex: 0 0 calc(33.333% - 35px);
    }
}

@media(min-width:1200px) {
    .page-team-new .team-list {
        justify-content: space-between;
    }

    .page-team-new .team-list .team-list-item {
        width: calc(33.33% - 35px);
    }

    .page-team-new .team-list.column-four-columns .team-list-item {
        width: calc(25.7% - 35px);
        flex: 0 0 calc(25.7% - 35px);
        ;
    }
}

.page-team-new .team-list .team-list-item .team-list-item-img {
    width: 100%;
    height: 100%;
    border-radius: 40px 40px 100px 40px;
    overflow: hidden;
    position: relative;
    max-height: 380px;
    margin-bottom: 20px;
}

.page-team-new .team-list.column-four-columns .team-list-item .team-list-item-img {
    max-height: 296px;
}

.page-team-new .team-list .team-list-item .team-list-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-team-new .team-list .team-list-item .team-list-item-details {
    padding: 0 20px 30px;
}

.page-team-new .team-list .team-list-item .team-list-item-details h3 {
    color: #000;
    font-size: 20px !important;
    line-height: 1.3em !important;
    font-style: normal;
    font-weight: 600 !important;
    margin-bottom: 11px !important;
    font-family: 'Source Sans 3', sans-serif !important;
}

.page-team-new .team-list .team-list-item .team-list-item-details .team-list-item-details-position {
    color: #000;
    font-size: 18px !important;
    font-style: italic !important;
    font-weight: 400;
    line-height: 1.3em !important;
    margin-bottom: 11px;
    font-family: 'Source Sans 3', sans-serif !important;
}

.page-team-new .team-list .team-list-item .team-list-item-details .team-list-item-details-description {
    display: none;
}

.page-team-new .team-list .team-list-item .team-list-item-details .team-list-item-details-link {
    color: #337CE4;
    font-size: 18px !important;
    font-style: normal;
    font-weight: 600 !important;
    line-height: 1.3em !important;
    outline: none;
    text-decoration: none;
    position: relative;
    font-family: 'Source Sans 3', sans-serif !important;
}

.page-team-new .team-list .team-list-item .team-list-item-details .team-list-item-details-link::after {
    content: '';
    width: 0;
    transition: .3s;
}

.page-team-new .team-list .team-list-item .team-list-item-details .team-list-item-details-link:hover::after {
    height: 1px;
    width: 100%;
    position: absolute;
    bottom: 0;
    content: '';
    left: 0;
    background: #337CE4;
    transition: .3s;
}

.page-team-new-container.clinical-filter-container {
    display: block;
}

.clinical-filters {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    max-height: 10000px;
    opacity: 1;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    gap: 15px;
}

.clinical-filters.is-collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.2s ease;
}

/** Pop Up **/

#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

#custom-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    max-width: 900px;
    width: 90%;
    border-radius: 20px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

#custom-popup .custom-popup-content {
    display: flex;
    gap: 30px;
    padding: 40px;
}

#custom-popup .custom-popup-image-wrapper {
    flex: 0 0 280px;
    height: 280px;
    border-radius: 20px 20px 60px 20px;
    overflow: hidden;
    background: #F8F8F8;
}

#custom-popup .custom-popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#custom-popup .custom-popup-text {
    flex: 1;
    padding-right: 40px;
}

#custom-popup .custom-popup-name {
    color: #1B1C1C;
    font-size: 28px !important;
    line-height: 1.3em !important;
    font-style: normal;
    margin-bottom: 0 !important;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700 !important;
    letter-spacing: normal !important;
}

#custom-popup .custom-popup-position {
    color: #337CE4;
    font-size: 20px !important;
    font-style: italic !important;
    line-height: 1.4em !important;
    margin-bottom: 15px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600 !important;
    letter-spacing: normal !important;
}

#custom-popup .custom-popup-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
}

#custom-popup .custom-popup-clinic-locations,
#custom-popup .custom-popup-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#custom-popup .custom-popup-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px 2px;
    border-radius: 20px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    white-space: nowrap;
    transition: all 0.3s ease;
}

#custom-popup .custom-popup-pill-location {
    background: rgba(51, 124, 228, 0.12);
    color: #337CE4;
    border: 1px solid rgba(51, 124, 228, 0.3);
}

#custom-popup .custom-popup-pill-city {
    background: rgba(64, 134, 92, 0.12);
    color: #40865C;
    border: 1px solid rgba(64, 134, 92, 0.3);
}

#custom-popup .custom-popup-pill-location:hover {
    background: rgba(51, 124, 228, 0.2);
    border-color: #337CE4;
}

#custom-popup .custom-popup-pill-city:hover {
    background: rgba(64, 134, 92, 0.2);
    border-color: #40865C;
}

#custom-popup .custom-popup-description {
    color: #404040;
    font-size: 18px !important;
    font-style: normal !important;
    line-height: 1.6em !important;
    margin-bottom: 0;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    margin-top: 20px;
}

/* Style bio content HTML elements */
#custom-popup .custom-popup-description p {
    margin-bottom: 15px;
    color: #404040;
    font-size: 18px !important;
    line-height: 1.6em !important;
}

#custom-popup .custom-popup-description p:last-child {
    margin-bottom: 0;
}

#custom-popup .custom-popup-description h2,
#custom-popup .custom-popup-description h3,
#custom-popup .custom-popup-description h4 {
    color: #1B1C1C;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700 !important;
    margin-top: 20px;
    margin-bottom: 12px;
}

#custom-popup .custom-popup-description h2 {
    font-size: 24px !important;
}

#custom-popup .custom-popup-description h3 {
    font-size: 22px !important;
}

#custom-popup .custom-popup-description h4 {
    font-size: 20px !important;
}

#custom-popup .custom-popup-description ul,
#custom-popup .custom-popup-description ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

#custom-popup .custom-popup-description li {
    margin-bottom: 8px;
    color: #404040;
    font-size: 18px !important;
    line-height: 1.6em !important;
}

#custom-popup .custom-popup-description a {
    color: #337CE4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

#custom-popup .custom-popup-description a:hover {
    text-decoration: underline;
}

#custom-popup .custom-popup-description strong,
#custom-popup .custom-popup-description b {
    font-weight: 700 !important;
}

#custom-popup .custom-popup-description em,
#custom-popup .custom-popup-description i {
    font-style: italic !important;
}

.custom-popup-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #F8F8F8;
    border: none;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #404040;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.custom-popup-close-button:hover {
    background: #337CE4;
    color: #fff;
    transform: rotate(90deg);
}

/* Responsive styles for popup */
@media (max-width: 768px) {
    #custom-popup {
        max-width: 95%;
        width: 95%;
    }

    #custom-popup .custom-popup-content {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }

    #custom-popup .custom-popup-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    #custom-popup .custom-popup-text {
        padding-right: 0;
    }

    #custom-popup .custom-popup-name {
        font-size: 24px !important;
    }

    #custom-popup .custom-popup-position {
        font-size: 18px !important;
    }

    #custom-popup .custom-popup-pills {
        gap: 8px;
        margin-bottom: 15px;
    }

    #custom-popup .custom-popup-pill {
        font-size: 13px !important;
        padding: 5px 12px;
    }

    #custom-popup .custom-popup-description {
        font-size: 16px !important;
    }

    #custom-popup .custom-popup-description p,
    #custom-popup .custom-popup-description li {
        font-size: 16px !important;
    }

    #custom-popup .custom-popup-description h2 {
        font-size: 22px !important;
    }

    #custom-popup .custom-popup-description h3 {
        font-size: 20px !important;
    }

    #custom-popup .custom-popup-description h4 {
        font-size: 18px !important;
    }

    .custom-popup-close-button {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    #custom-popup .custom-popup-content {
        padding: 20px 15px;
    }

    #custom-popup .custom-popup-image-wrapper {
        max-width: 100%;
        height: 240px;
    }

    #custom-popup .custom-popup-pill {
        font-size: 12px !important;
        padding: 4px 10px;
    }

    #custom-popup .custom-popup-description p,
    #custom-popup .custom-popup-description li {
        font-size: 15px !important;
    }

    #custom-popup .custom-popup-description h2 {
        font-size: 20px !important;
    }

    #custom-popup .custom-popup-description h3 {
        font-size: 18px !important;
    }

    #custom-popup .custom-popup-description h4 {
        font-size: 16px !important;
    }
}

.clinical-filters-title-button {
    color: #404040;
    font-family: "Source Sans 3";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    background: none;
    border: none;
    padding-left: 5px;
    padding-right: 5px;
    border-bottom: 2px solid transparent;
    position: relative;
}

.clinical-filters-title {
    display: flex;
    gap: 15px;
}

.clinical-filters-title-button:hover {
    border-bottom: 2px solid #337ce4;
    border-radius: 0;
    cursor: pointer;
}

.clinical-filters-title-button.active:after,
.clinical-filters-title-button:hover:after {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #337ce4;
    position: absolute;
    bottom: -9px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.clinical-filters-title-button.active {
    border-bottom: 2px solid #337ce4;
    border-radius: 0;
}

.clinical-filters-title-button.active {
    border-bottom: 2px solid #337ce4;
    border-radius: 0;
    color: #337CE4;
}

@media(min-width: 768px) {
    .page-team-new .page-team-new h2 {
        font-size: 35px;
        position: relative;
    }
}

@media(min-width: 1024px) {
    .page-team-new {
        display: block;
        position: relative;
        padding: 75px 0;
    }

    .page-team-new .page-team-new-container h2 {
        font-size: 44px;

    }
}

.team-filter-title {
    position: relative;
}

.team-filter-dropdown {
	display: none;
	width: 100%;
	position: absolute;
	top: 100%;
	left: 0;
	background: #F2F2F2;
	border-radius: 4px;
	z-index: 10;
}

.team-filter-dropdown.active {
    display: block;
}

.team-filter-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

.team-filter-dropdown-item:hover,
.team-filter-dropdown-item.active {
    background: #E6F2FF;
    color: #337CE4;
}

/* Accordion Styles */

.accordion-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

h2.accordion-toggle:hover {
    color: #337CE4;
}

.accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    position: relative;
}


.accordion-icon .dashicons{
    position: relative;
    top: 17px;
    left: -14px;
    font-size: 30px;
    height: 30px;
    width: 30px;
}

/* Default state (collapsed) - show plus icon */
.accordion-icon .icon-minus {
    display: none;
}

.accordion-icon .icon-plus {
    display: block;
}

/* Open state - show minus icon */
.accordion-icon.open .icon-minus {
    display: block;
}

.accordion-icon.open .icon-plus {
    display: none;
}

.accordion-content {
    overflow: hidden;
    max-height: 10000px;
    opacity: 1;
    transition: max-height 0.5s ease, opacity 0.3s ease;
}

.accordion-content.is-collapsed {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.2s ease;
}