/* ============================================
   THD TEAM CAROUSEL — COMPLETE CSS
   ============================================ */

.thd-acf-teams {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.thd-acf-teams .thd-acf-carousel {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 28px;
    position: relative;
    box-sizing: border-box;
}

.thd-acf-teams .thd-acf-carousel[hidden] {
    display: none !important;
}

.thd-acf-teams .thd-acf-carousel__wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: stretch;
    width: auto;
    min-width: 0;
    transform: translate3d(0, 0, 0);
    transition: transform 0.5s ease-in-out, height 0.35s ease;
    will-change: transform;
}

.thd-acf-teams .thd-acf-carousel__slide {
    flex: 0 0 calc((100% - 100px) / 3);
    min-width: calc((100% - 100px) / 3);
    position: relative;
}

.thd-acf-teams .thd-acf-carousel__card {
    width: 100%;
    height: auto;
    overflow: visible;
    border-radius: 16px;
    background: transparent;
    perspective: 1100px;
}

.thd-acf-teams .thd-acf-carousel__card-inner {
    position: relative;
    width: 100%;
    height: auto;

    transition: transform 0.65s cubic-bezier(.4, 0, .2, 1);
    transform-style: preserve-3d;
}

.thd-acf-teams .thd-acf-carousel__slide.is-flipped .thd-acf-carousel__card-inner {
    transform: rotateY(180deg);
}

.thd-acf-teams .thd-acf-carousel__card-face {
    background: #fff;
    border: 1px solid #C8DFEF;
    border-radius: 20px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.thd-acf-teams .thd-acf-carousel__bio .bios-inner-heading:first-child {
    margin-top: 20px;
}

.thd-acf-teams .thd-acf-carousel__card-front {
    height: auto;
    padding: 24px 24px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.thd-acf-teams .thd-acf-carousel__card-back {
    position: absolute;
    inset: 0;
    display: block;
    transform: rotateY(180deg);
    padding: 0 24px 56px;
}

.thd-acf-teams .thd-acf-carousel__slide:not(.has-bio) .thd-acf-carousel__card-back {
    display: none;
}

.thd-acf-teams .thd-acf-carousel__card-image {
    position: relative;
}

.thd-acf-teams .thd-acf-carousel__image {
    width: 100%;
    height: 340px;
    display: block;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
}

.thd-acf-teams .thd-acf-carousel__badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #fff;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid #98C4E1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: capitalize;
    color: #245780;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.thd-acf-teams .thd-acf-carousel__badge--leadership {
    border: 1.2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(90deg, #0A709A 0%, #38BCF9 30%, #F09C2C 75%, #FF6D4E 100%) border-box;
}

.thd-acf-teams .thd-acf-carousel__badge-star {
    width: 14.72px;
    height: 14px;
    display: block;
    flex-shrink: 0;
}

.thd-acf-teams .thd-acf-carousel__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 0px 0;
    text-align: left;
    margin-bottom: 16px;
}

.thd-acf-teams .thd-acf-carousel__name {
    display: block;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #20405A;
}

.thd-acf-teams .thd-acf-carousel__title {
    font-size: 16px;
    line-height: 24px;
    color: #245780;
    margin: 0;
    font-weight: 500;
}

.thd-acf-teams .thd-acf-carousel__credentials-row {
    margin-top: auto;
    border-top: 1px solid #C8DFEF;
    padding-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.thd-acf-teams .thd-acf-carousel__credentials-left {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #16293B;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    white-space: nowrap;
    flex-shrink: 0;
}

.thd-acf-teams .thd-acf-carousel__credentials-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.thd-acf-teams .thd-acf-carousel__credentials-icon img {
    width: 17px;
    height: 17px;
}

.thd-acf-teams .thd-acf-carousel__credentials-btn {
    width: auto;
    border: 0;
    background-color: #245780;
    color: #fff;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    padding: 10px 16px;
    font-family: inherit;
    margin-left: auto;
    transition: background-color .3s ease;
    /* The button's own label always stays on one line and never shrinks;
       it's the row itself that wraps in the rare tight-space case, not
       this button's internal text. */
    white-space: nowrap;
    flex-shrink: 0;
}

.thd-acf-teams .thd-acf-carousel__credentials-btn span {
    white-space: nowrap;
}

.thd-acf-teams .thd-acf-carousel__credentials-btn:hover {
    background-color: #2C6FA1;
}

.thd-acf-teams .thd-acf-carousel__credentials-arrow {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.thd-acf-teams .thd-acf-carousel__credentials-arrow img {
    width: 19px;
    height: 10px;
    display: block;
    rotate: 45deg;
    flex-shrink: 0;
}

/* Option 4 */
.thd-acf-team-design-option4 .thd-acf-carousel__credentials-row {
    padding-top: 26px;
    justify-content: space-between;
    gap: 10px;
}

.thd-acf-team-design-option4 .thd-acf-carousel__slide.has-bio .thd-acf-carousel__credentials-row {
    padding-top: 16px;
}

.thd-acf-team-design-option4 .thd-acf-carousel__slide.has-bio .thd-acf-carousel__card-front {
    padding-bottom: 16px;
}

.thd-acf-team-design-option4 .thd-acf-carousel__slide:not(.has-bio) .thd-acf-carousel__card-front {
    padding-bottom: 22px;
}

/* Option 5 */
.thd-acf-team-design-option5 .thd-acf-carousel__credentials-row {
    border: 1px solid #C8DFEF;
    border-radius: 100px;
    padding: 12px 16px;
    background: transparent;
    transition: background-color .3s ease;
}

.thd-acf-team-design-option5 .thd-acf-carousel__slide.has-bio .thd-acf-carousel__credentials-row {
    background: #E1F4FD;
}

.thd-acf-team-design-option5 .thd-acf-carousel__slide.has-bio .thd-acf-carousel__credentials-row:hover {
    background: rgba(225, 244, 253, .5);
}

.thd-acf-team-design-option5 .thd-acf-carousel__credentials-btn {
    width: 100%;
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    color: #245780 !important;
    line-height: 24px;
    justify-content: space-between;
}

.thd-acf-team-design-option5 .thd-acf-carousel__credentials-icon-div {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.thd-acf-team-design-option5 .thd-acf-carousel__credentials-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: 12px;
}

.thd-acf-team-design-option5 .thd-acf-carousel__credentials-arrow img {
    width: 12px;
    height: 12px;
    rotate: 0deg;
}

/* Option 6 */
.thd-acf-team-design-option6 .thd-acf-carousel__card-front {
    padding-bottom: 0 !important;
}

.thd-acf-team-design-option6 .thd-acf-carousel__credentials-row {
    margin-left: -24px;
    margin-right: -24px;
    padding: 12px 16px 16px;
    justify-content: center;
}

.thd-acf-team-design-option6 .thd-acf-carousel__slide.has-bio .thd-acf-carousel__credentials-row {
    background: #E1F4FD;
    padding: 16px;
}

.thd-acf-team-design-option6 .thd-acf-carousel__credentials-btn {
    padding: 0 !important;
    margin: auto;
    gap: 4px;
    background: transparent !important;
    color: #245780 !important;
}

.thd-acf-team-design-option6 .thd-acf-carousel__credentials-arrow img {
    width: 16px;
    height: 13px;
}

/* Back card */
.thd-acf-teams .thd-acf-carousel__back-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0 12px;
    border-bottom: 1px solid #C8DFEF;
    background: #fff;
    position: relative;
    z-index: 5;
}

.thd-acf-teams .thd-acf-carousel__back-name {
    color: #20405A;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    max-width: calc(100% - 52px);
}

.thd-acf-teams .thd-acf-carousel__back-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    border: 1px solid #C8DFEF;
    background: #fff;
    cursor: pointer;
    padding: 0;
    transition: background-color .25s ease;
}

.thd-acf-teams .thd-acf-carousel__back-close:hover {
    background: #F2F8FC;
}

.thd-acf-teams .thd-acf-carousel__back-link {
    display: inline-flex;
    align-items: center;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #C8DFEF;
    border-radius: 0;
    background: transparent !important;
    color: #245780 !important;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    padding: 20px 0;
    cursor: pointer;
    font-family: inherit;
}

.thd-acf-teams .thd-acf-carousel__back-link img {
    width: 16px;
    height: 13px;
    margin-right: 8px;
}

.thd-acf-teams .thd-acf-carousel__bio-wrap {
    position: relative;
}

.thd-acf-teams .thd-acf-carousel__bio {
    position: relative;
    z-index: 1;
    height: 450px;
    overflow-y: auto;
    padding: 16px 0;
    font-size: 16px;
    line-height: 26px;
    color: #16293B;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    transform: translateZ(0);
}

.thd-acf-teams .thd-acf-carousel__bio::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.thd-acf-teams .thd-acf-carousel__card-back::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 56px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 70%);
    pointer-events: none;
    z-index: 4;
}

.thd-acf-teams .thd-acf-carousel__bio p {
    margin: 0 0 8px;
}

.thd-acf-teams .thd-acf-carousel__bio ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thd-acf-teams .thd-acf-carousel__bio li {
    position: relative;
    padding-left: 12px;
}

.thd-acf-teams .thd-acf-carousel__bio li::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    left: 0;
    top: 10px;
    border-radius: 50%;
    background: #0A8CBF;
}


.thd-acf-teams .thd-acf-carousel__bio .team-bios-intro {
    margin: 0 0 12px;
}

.thd-acf-teams .thd-acf-carousel__bio .bios-inner-heading {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: #20405A;
    margin: 20px 0 8px;
}

.thd-acf-teams .thd-acf-carousel__bio .feedback-list-items {
    margin-bottom: 8px;
}

.thd-acf-teams .thd-acf-carousel__bio .feedback-list-items li {
    font-weight: 500;
    color: #16293B;
    background-color: #E1F4FD;
    padding: 6px 16px 6px 36px;
    border-radius: 100px;
}


.thd-acf-teams .thd-acf-carousel__bio .feedback-list-items li::before {
    content: "";
    background-image: url("https://havendetoxnow.com/wp-content/uploads/2025/10/Logo-Bullet-Point.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-color: transparent;
    width: 18px;
    height: 11px;
    position: absolute;
    left: 14px;
    top: 50%;
    border-radius: 0;
    transform: translateY(-50%);
}
.thd-service-card__highlight-icon{
      position: relative;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 8px;
} 
.thd-service-card__highlight-icon span{
       position: relative;
    padding-left: 21px;
        display: block;
     font-size: 14px;
    line-height: 20px;
}
.thd-service-card__highlight-icon span::before{
   content: "";
    background-image: url("https://havendetoxnow.com/wp-content/uploads/2026/01/Blue-Check.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-color: transparent;
    width: 14px;
    height: 14px;
    position: absolute;
    left: 0px;
    top: 0;
    border-radius: 0;
       margin-top: 6px;
}
.thd-service-card__highlight-icon br{
   display: none;
}

/* Scrollbar/buttons */
.thd-acf-teams .thd-acf-carousel__sb {
    position: absolute;
    top: 8px;
    right: -12px;
    bottom: 8px;
    width: 4px;
    background: #EAF1F7;
    border-radius: 100px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 3;
}

.thd-acf-teams .thd-acf-carousel__slide.is-flipped.is-open .thd-acf-carousel__sb {
    opacity: 1;
}

.thd-acf-teams .thd-acf-carousel__sb-thumb {
    position: absolute;
    inset: 0 auto auto 0;
    width: 4px;
    height: 60px;
    background: #98C4E1;
    border-radius: 100px;
    will-change: transform;
}

.thd-acf-teams .thd-acf-carousel__scrollnav {
    position: absolute;
    right: 0;
    bottom: 12px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 5;
}

.thd-acf-teams .thd-acf-carousel__scrollbtn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    border: 1px solid #245780;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, opacity .2s ease;
}

.thd-acf-teams .thd-acf-carousel__scrollbtn:hover:not(:disabled) {
    background: #F2F8FC;
}

.thd-acf-teams .thd-acf-carousel__scrollbtn:disabled {
    border-color: #98C4E1;
    cursor: not-allowed;
}

.thd-acf-teams .thd-acf-carousel__scrollbtn:disabled svg path {
    stroke: #98C4E1 !important;
}

/* Main navigation */
.thd-acf-teams .thd-acf-carousel__nav {
    position: absolute;
    top: 278px;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    padding: 0;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    z-index: 10;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    color: transparent;
}

.thd-acf-teams .thd-acf-carousel__nav[hidden] {
    display: none !important;
}
.thd-acf-teams .thd-acf-carousel__nav--next {
    left: var(--thd-nav-next-x, calc(100% - 28px));
    right: auto;
    transform: translate(-50%, -50%);
    background-image: url("https://havendetoxnow.com/wp-content/uploads/2026/04/Button-right-slide.svg");
}

.thd-acf-teams .thd-acf-carousel__nav:focus,
.thd-acf-teams .thd-acf-carousel__nav:hover {
    background-color: transparent !important;
}

.thd-acf-teams .thd-acf-carousel__slide {
    height: auto;
}

.thd-acf-teams .thd-acf-carousel__card-front {
    height: auto;
    display: flex;
    flex-direction: column;
}

.thd-acf-teams .thd-acf-carousel__nav--next {
    margin-left: -2px;
}

//***** Responsive ******//

@media (max-width: 1320px) {
    .thd-acf-teams .thd-acf-carousel__slide {
        flex: 0 0 calc((100% - 60px) / 2);
        min-width: calc((100% - 60px) / 2);
    }
}

@media (min-width: 630px) and (max-width: 845px) {
.thd-acf-teams .thd-acf-carousel__slide {
        flex: 0 0 calc((110% - 0px) / 2) !important;
        min-width: calc((110% - 0px) / 2) !important;
    }
   
}

@media (min-width: 420px) and (max-width: 1024px) {
 .thd-acf-teams .thd-acf-carousel {
  margin-left: 2px !important; 
  }
}

@media (min-width: 730px) and (max-width:1024px) {

  .thd-acf-team-service .thd-acf-service-carousel--grid .thd-service-card--style-1{
        padding: 16px;
    }
    .thd-acf-team-service.thd-acf-team-layout-grid .thd-acf-service-carousel--team-member-service-style-1.thd-acf-service-carousel--grid .thd-acf-carousel__slide{
        width: 224px !important;
    min-width: 224px !important;
    max-width: 224px !important;
    }
  .thd-acf-team-service.thd-acf-team-layout-grid .thd-acf-service-carousel--team-member-service-style-1.thd-acf-service-carousel--grid .thd-acf-carousel__wrapper{
        justify-content: center !important;
    grid-template-columns: repeat(3, 224px) !important;
    align-items: start !important;
        gap: 8px !important;
    }
}

@media (max-width: 1024px) {
 
    .thd-acf-teams .thd-acf-carousel {
        padding-left: 0px;
        padding-right: 0px;
    }

     .thd-acf-teams .thd-acf-carousel__slide {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: calc((100% - 20px) / 2);
    }
    .thd-acf-teams .thd-acf-carousel__card-front {
        padding: 20px;
    }

    .thd-acf-team-design-option6 .thd-acf-carousel__credentials-row {
        margin-left: -20px;
        margin-right: -20px;
    }

    .thd-acf-teams .thd-acf-carousel__credentials-btn {
        font-size: 15px;
        padding: 10px 12px;
    }
      .thd-acf-teams .thd-acf-carousel__image {
        height: 300px;
    }
   
}

@media (max-width: 767px) {
   .thd-acf-teams .thd-acf-carousel__slide {
        flex: 0 0 calc((100% - 17px) / 2);
        min-width: calc((100% - 17px) / 2);
    }
    .thd-acf-teams .thd-acf-carousel__wrapper{
        gap:16px;
    }
  
    .thd-acf-teams .thd-acf-carousel__bio {
        height: 380px;
    }

    .thd-acf-teams .thd-acf-carousel__nav {
        width: 40px;
        height: 40px;
        top: 180px;
    }
     
}

@media (max-width: 630px) {
   

    .thd-acf-teams .thd-acf-carousel__slide {
        flex-basis: 90%;
        min-width: 90%;

    }
.thd-acf-teams .thd-acf-carousel__nav {
      
               top: 250px;
    }
   
}






@media (max-width: 420px) {
        .thd-acf-teams .thd-acf-carousel__credentials-btn {
        gap: 6px;
        font-size: 13px;
    }
  
 .thd-acf-teams .thd-acf-carousel__slide {
        flex-basis: 100%;
        min-width: 100%;

    }
.thd-acf-teams .thd-acf-carousel__credentials-left{
    font-size: 14px;
}
.thd-acf-teams .thd-acf-carousel__credentials-icon img {
    width: 15px;
    height: 15px;
}



}


@media (max-width: 390px) {
.thd-acf-teams .thd-acf-carousel__credentials-left{
    font-size: 13px;
}
 .thd-acf-team-design-option4 .thd-acf-carousel__credentials-row{
    gap:6px;
  }
  .thd-acf-teams .thd-acf-carousel__credentials-arrow img {
    width: 13px;
    height: 8px;
}
    .thd-acf-teams .thd-acf-carousel__credentials-btn {
        gap: 2px;
        font-size: 12px;
                padding: 8px 8px;
    }


}




/* ============================================
   STABILITY + LOCAL OVERFLOW FIX
   ============================================ */

.thd-acf-teams,
.thd-acf-teams * {
    box-sizing: border-box;
}

.thd-acf-teams .thd-acf-carousel {
    min-width: 0;
    overflow: hidden;
}

.thd-acf-teams .thd-acf-carousel__slide {
    min-width: 0;
    height: auto;
}

.thd-acf-teams .thd-acf-carousel__card,
.thd-acf-teams .thd-acf-carousel__card-inner,
.thd-acf-teams .thd-acf-carousel__card-front {
    height: 100%;
}

.thd-acf-teams .thd-acf-carousel__content {
    flex: 1 1 auto;
}

.thd-acf-teams .thd-acf-carousel {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
}

.thd-acf-teams .thd-acf-carousel.thd-carousel-ready {
    opacity: 1;
    visibility: visible;
}

.thd-acf-teams .thd-acf-carousel:not(.thd-carousel-ready) {
    pointer-events: none;
}

.thd-acf-teams .thd-acf-carousel.thd-carousel-ready {
    pointer-events: auto;
}

/* Restrict overflow only to an Elementor widget containing this carousel */
.elementor-widget-shortcode:has(.thd-acf-teams),
.elementor-widget-shortcode:has(.thd-acf-teams) > .elementor-widget-container {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}


/* ============================================
   MOBILE NATURAL CARD HEIGHT FIX
   ============================================ */
@media (max-width: 630px) {
    .thd-acf-teams .thd-acf-carousel__wrapper {
        align-items: flex-start;
    }

    .thd-acf-teams .thd-acf-carousel__slide,
    .thd-acf-teams .thd-acf-carousel__card,
    .thd-acf-teams .thd-acf-carousel__card-inner,
    .thd-acf-teams .thd-acf-carousel__card-front {
        height: auto !important;
        min-height: 0 !important;
    }

    .thd-acf-teams .thd-acf-carousel__content {
        flex: 0 0 auto;
    }

}

/* ============================================
   TEAM SERVICE DESIGNS — CLEAN, SINGLE SOURCE
   ============================================ */

.thd-acf-team-service,
.thd-acf-team-service * {
    box-sizing: border-box;
}

.thd-acf-team-service .thd-acf-service-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    overflow: hidden;
}

.thd-acf-team-service .thd-acf-carousel__wrapper {
    min-width: 0;
}

.thd-acf-team-service .thd-acf-carousel__slide {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
}

.thd-acf-team-service .thd-service-card {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box;
    background: #fff;
    overflow: hidden;
}

.thd-acf-team-service .thd-service-card__name {
    margin: 0;
    color: #20405A;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
}

.thd-acf-team-service .thd-service-card__title {
    margin: 4px 0 0;
    color: #16293B;
    font-size: 13px;
    line-height: 20px;
    font-weight: 400;
}

.thd-acf-team-service .thd-service-card__description > :first-child,
.thd-acf-team-service .thd-service-card__highlight-text > :first-child {
    margin-top: 0;
}

.thd-acf-team-service .thd-service-card__description > :last-child,
.thd-acf-team-service .thd-service-card__highlight-text > :last-child {
    margin-bottom: 0;
}

/* ---------- Service Style 1:  ---------- */
.thd-acf-team-service
.thd-acf-service-carousel--team-member-service-style-1 {
    --thd-service-card-width: 248px;
    --thd-service-gap: 12px;
}

.thd-acf-team-service
.thd-acf-service-carousel--team-member-service-style-1
.thd-acf-carousel__slide {
    width: var(--thd-service-card-width) !important;
    min-width: var(--thd-service-card-width) !important;
    max-width: var(--thd-service-card-width) !important;
}

.thd-acf-team-service .thd-service-card--style-1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    gap: 16px;
    border: 1px solid #C8DFEF;
    border-radius: 20px;
}

.thd-acf-team-service .thd-service-card--style-1 .thd-service-card__top {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.thd-acf-team-service .thd-service-card--style-1 .thd-service-card__thumb-wrap {
    width: 100%;
    max-width: 208px;
}

.thd-acf-team-service .thd-service-card--style-1 .thd-service-card__thumb {
    display: block;
    width: 100%;
    max-width: 208px;
    height: 200px;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
}

.thd-acf-team-service .thd-service-card--style-1 .thd-service-card__heading {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.thd-acf-team-service .thd-service-card--style-1 .thd-service-card__highlight {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid #C8DFEF;
    color: #245780;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
}

.thd-service-card__highlight-icon {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}



/* Grid: 1–5 cards stay on one centered row when space allows. */
.thd-acf-team-service
.thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1 {
    padding: 0 !important;
    overflow: visible !important;
}

.thd-acf-team-service
.thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1
.thd-acf-carousel__wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, var(--thd-service-card-width)) !important;
    justify-content: center !important;
    align-items: start !important;
    gap: var(--thd-service-gap) !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    transition: none !important;
}

.thd-acf-team-service
.thd-acf-service-carousel--grid
.thd-acf-carousel__nav {
    display: none !important;
}

/* Carousel: exactly 3 compact cards on desktop and no extra blank height. */
.thd-acf-team-service
.thd-acf-service-carousel--carousel.thd-acf-service-carousel--team-member-service-style-1 {
    width: 100% !important;
    max-width: 824px !important;
    margin-inline: auto !important;
    padding: 20px 24px !important;
    overflow: hidden !important;
}

.thd-acf-team-service
.thd-acf-service-carousel--carousel.thd-acf-service-carousel--team-member-service-style-1
.thd-acf-carousel__wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: var(--thd-service-gap) !important;
    width: max-content !important;
    height: auto !important;
}

.thd-acf-team-service
.thd-acf-service-carousel--carousel.thd-acf-service-carousel--team-member-service-style-1
.thd-acf-carousel__slide {
    flex: 0 0 var(--thd-service-card-width) !important;
}

.thd-acf-team-service
.thd-acf-service-carousel--carousel.thd-acf-service-carousel--team-member-service-style-1
.thd-service-card {
    height: auto !important;
    min-height: 0 !important;
}

.thd-acf-team-service
.thd-acf-service-carousel--carousel.thd-acf-service-carousel--team-member-service-style-1
.thd-acf-carousel__nav {
    width: 36px !important;
    height: 36px !important;
}

/* ---------- Service Style 2: responsive + equal height ---------- */
.thd-acf-team-service
.thd-acf-service-carousel--team-member-service-style-2 {
    width: 100%;
    max-width: 100%;
}

.thd-acf-team-service
.thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2 {
    padding: 0 !important;
    overflow: visible !important;
}

.thd-acf-team-service
.thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
.thd-acf-carousel__wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    transition: none !important;
}

.thd-acf-team-service
.thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
.thd-acf-carousel__slide {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
}

.thd-acf-team-service .thd-service-card--style-2 {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 12px;
}

.thd-acf-team-service .thd-service-card--style-2 .thd-service-card__image-wrap {
    width: 100%;
    padding: 20px 20px 0;
    background: #fff;
}

.thd-acf-team-service .thd-service-card--style-2 .thd-service-card__image {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    background-color: #F0F0F0;
}

.thd-acf-team-service .thd-service-card--style-2 .thd-service-card__content {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px;
}

.thd-acf-team-service .thd-service-card--style-2 .thd-service-card__name {
    font-size: 24px;
    line-height: 130%;
}

.thd-acf-team-service .thd-service-card--style-2 .thd-service-card__title {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
}

.thd-acf-team-service .thd-service-card--style-2 .thd-service-card__description {
    margin-top: 20px;
    color: #1A1A1A;
    font-size: 16px;
    line-height: 26px;
}

/* Tablet: one full-width horizontal card per row. */
@media (min-width: 630px) and (max-width: 1024px) {
    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-acf-carousel__wrapper {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-service-card--style-2 {
        flex-direction: row !important;
        align-items: stretch !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-service-card__image-wrap {
             flex: 0 0 40%;
        width: 40%;
        max-width: 240px;
        padding: 20px 0 20px 20px;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-service-card__image {
    width: 100%;
        height: 240px;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-service-card__content {
        min-width: 0;
        justify-content: flex-start;
    }
}


@media (max-width: 730px) {
      .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1
    .thd-acf-carousel__wrapper {
        justify-content: start !important;
    }
}
/* Mobile: one full-width vertical card per row. */
@media (max-width: 630px) {
    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2,
    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-acf-carousel__wrapper,
    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-acf-carousel__slide,
    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-service-card--style-2 {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-acf-carousel__wrapper {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-service-card--style-2 {
        flex-direction: column !important;
        height: auto !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-service-card__image-wrap {
        width: 100%;
        max-width: 100%;
        padding: 16px 16px 0;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-service-card__image {
        width: 100%;
        height: 100%;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-service-card__name {
        font-size: 20px;
        line-height: 30px;
    }
        .thd-acf-team-service .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2 .thd-service-card__content {
        padding-top: 24px;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-service-card__title {
        margin-top: 4px;
        line-height: 26px;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-2
    .thd-service-card__description {
        margin-top: 16px;
    }
}

/* ---------- Stable arrows / local overflow ---------- */
.thd-acf-teams .thd-acf-carousel {
    --thd-nav-prev-x: 28px;
    --thd-nav-next-x: calc(100% - 28px);
    min-width: 0;
    overflow: hidden;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.thd-acf-teams .thd-acf-carousel__nav {
    display: block;
    top: var(--thd-nav-y, 50%) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.thd-acf-teams .thd-acf-carousel__nav--prev {
    left: var(--thd-nav-prev-x) !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    background-image: url("https://havendetoxnow.com/wp-content/uploads/2026/04/Button-left-slide.svg");
}

.thd-acf-teams .thd-acf-carousel__nav--next {
    left: var(--thd-nav-next-x) !important;
    right: auto !important;
    margin-left: -2px;
    transform: translate(-50%, -50%) !important;
    background-image: url("https://havendetoxnow.com/wp-content/uploads/2026/04/Button-right-slide.svg");
}

.thd-acf-teams .thd-acf-carousel__nav[hidden] {
    display: none !important;
}

.thd-acf-teams .thd-acf-carousel__wrapper {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.thd-acf-teams .thd-acf-carousel__slide,
.thd-acf-teams .thd-acf-carousel__card,
.thd-acf-teams .thd-acf-carousel__card-inner {
    transform: translateZ(0);
}

/* Location carousel only: fuller mobile card width. */
@media (max-width: 630px) {
    .thd-acf-teams:not(.thd-acf-team-service) .thd-acf-carousel {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .thd-acf-teams:not(.thd-acf-team-service) .thd-acf-carousel__slide {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .thd-acf-teams:not(.thd-acf-team-service) .thd-acf-carousel__nav--prev {
        left: 20px !important;
        right: auto !important;
    }

    .thd-acf-teams:not(.thd-acf-team-service) .thd-acf-carousel__nav--next {
        left: auto !important;
        right: 20px !important;
        margin-left: 0 !important;
        transform: translate(50%, -50%) !important;
    }
  
}




/* ---------- Responsive service layouts ---------- */
@media (max-width: 1024px) {
    .thd-acf-teams .thd-acf-carousel {
        --thd-nav-prev-x: 24px;
        --thd-nav-next-x: calc(100% - 24px);
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--carousel.thd-acf-service-carousel--team-member-service-style-1 {
         width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 630px) {
    /* Service grid becomes one full-width card per row. */
    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1 {
        width: 100% !important;
        max-width: 100% !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1
    .thd-acf-carousel__wrapper {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        gap: 20px !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1
    .thd-acf-carousel__slide,
    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1
    .thd-service-card--style-1 {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1
    .thd-service-card__thumb-wrap,
    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1
    .thd-service-card__thumb {
        width: 100% !important;
        max-width: 100% !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1
    .thd-service-card__thumb {
        height: 300px !important;
    }

    /* Service carousel becomes one fluid card. */
    .thd-acf-team-service
    .thd-acf-service-carousel--carousel.thd-acf-service-carousel--team-member-service-style-1 {
        --thd-service-card-width: calc(100vw - 64px);
        max-width: 100% !important;
        padding: 16px 0px !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--carousel.thd-acf-service-carousel--team-member-service-style-1
    .thd-acf-carousel__slide {
        width: var(--thd-service-card-width) !important;
        min-width: var(--thd-service-card-width) !important;
        max-width: var(--thd-service-card-width) !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--carousel.thd-acf-service-carousel--team-member-service-style-1
    .thd-service-card__thumb-wrap,
    .thd-acf-team-service
    .thd-acf-service-carousel--carousel.thd-acf-service-carousel--team-member-service-style-1
    .thd-service-card__thumb {
        max-width: 100% !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--carousel.thd-acf-service-carousel--team-member-service-style-1
    .thd-service-card__thumb {
        height: auto !important;
        aspect-ratio: 208 / 200;
    }

}

/* GRID ONLY — equal cards and dynamically aligned highlight divider.
   Desktop/tablet only; mobile keeps each card's natural height. */
@media (min-width: 631px) {
    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1
    .thd-acf-carousel__wrapper {
        align-items: stretch !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1
    .thd-acf-carousel__slide {
        display: flex !important;
        height: auto !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1
    .thd-service-card--style-1 {
        display: grid !important;
        grid-template-rows: 1fr var(--thd-highlight-height, auto) !important;
        width: 100% !important;
        height: 100% !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1
    .thd-service-card__top {
        min-height: 0 !important;
    }

    .thd-acf-team-service
    .thd-acf-service-carousel--grid.thd-acf-service-carousel--team-member-service-style-1
    .thd-service-card__highlight {
        display: block !important;
        height: var(--thd-highlight-height, auto) !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        flex: none !important;
        box-sizing: border-box !important;
    }
}
