:root {
  --footer-top-offset: 180px;
}

header
  + .elementor[data-elementor-post-type="page"]
  > .elementor-element:last-child,
header
  + main
  .elementor[data-elementor-post-type="page"]
  > .elementor-element:last-child {
  padding-block-end: calc(
    var(--padding-block-end, 5%) + var(--footer-top-offset)
  );
}

footer {
  margin-top: calc(var(--footer-top-offset) * -1) !important;
}

header:not(:has(.landing-header)) {
  position: sticky;
  /* fixed */
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.5s ease;
  z-index: 10001;

  &.hide {
    transform: translateY(-100%);
  }

  &.add-shadow {
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.2);
  }
}

header.sticky-header {
  position: sticky;
  top: 0;
  width: 100%;
}

.elementor-widget-button a.elementor-button {
  position: relative;
  overflow: hidden;

  > * {
    position: relative;
    z-index: 2;
  }

  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    transition: left 0.4s cubic-bezier(0.32, 0, 0.67, 0);
    background-image: linear-gradient(
      90deg,
      #00a79c 0%,
      #039c97 6%,
      #13697f 37%,
      #1e446f 64%,
      #252e64 86%,
      #282661 100%
    );
    z-index: 1;
  }

  .elementor-button-content-wrapper {
    align-items: center;

    .elementor-button-text {
      margin-right: 9px;
      line-height: 1.25;
    }

    .arrow-icon {
      position: absolute;
      top: 50%;
      left: 100%;
      display: inline-block;
      width: 8px;
      height: 1px;
      transition: width 0.3s ease;

      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: currentColor;
      }

      &::after {
        content: "";
        position: absolute;
        top: -2px;
        right: 0;
        width: 5px;
        height: 5px;
        border-top: 1px solid currentColor;
        border-right: 1px solid currentColor;
        transform: rotate(45deg);
      }
    }
  }

  &:hover {
    &:before {
      left: 0;
    }

    .elementor-button-content-wrapper .arrow-icon {
      width: 13px;
    }
  }
}

a.services-card {
  cursor: pointer;
  box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.2);

  &:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    transition: bottom 0.3s cubic-bezier(0.32, 0, 0.67, 0);
    width: 100%;
    height: 100%;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
  }

  &:before {
    content: "";
    position: absolute;
    top: auto;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: bottom 0.4s cubic-bezier(0.32, 0, 0.67, 0);
    background: linear-gradient(
      90deg,
      #00a79c 0%,
      #039c97 6%,
      #13697f 37%,
      #1e446f 64%,
      #252e64 86%,
      #282661 100%
    );
    opacity: 0.8;
    z-index: 1;
  }

  .arrowed-title {
    width: fit-content;

    .elementor-heading-title {
      display: inline;
    }

    .arrow-icon {
      position: absolute;
      top: 50%;
      left: 100%;
      display: inline-block;
      width: 18px;
      height: 2px;
      transition: width 0.5s ease;
      margin-left: 1rem;

      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #fff;
      }

      &::after {
        content: "";
        position: absolute;
        top: -5px;
        right: 0;
        width: 12px;
        height: 12px;
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
        transform: rotate(45deg);
      }
    }
  }

  .hidden-text {
    height: 0;
    transition: height 0.4s cubic-bezier(0.32, 0, 0.67, 0);
    overflow: hidden;

    p {
      margin: 0;
    }
  }

  &:hover {
    &:before {
      bottom: 0;
    }

    &::after {
      bottom: -100%;
    }

    .hidden-text {
      height: fit-content;
    }

    .arrowed-title .arrow-icon {
      width: 23px;
    }
  }
}

/* main {
  margin-top: 5rem;

  @media (max-width: 1220px) {
    margin-top: 8rem;
  }

  @media (max-width: 1024px) {
    margin-top: 5.625rem;
  }

  @media (max-width: 787px) {
    margin-top: 80px;
  }
} */

.accordion-new-style {
  .e-con:has(details[open]) {
    border-bottom: 0px solid transparent;
  }

  .e-n-accordion {
    .e-n-accordion-item {
      .e-con-full {
        /* .faq-content { */
        padding: 0 1.75rem 1.75rem !important;

        p {
          margin: 0 0 1rem 0;

          &:last-child {
            margin-bottom: 0;
          }
        }

        /* } */
      }

      .e-n-accordion-item-title {
        justify-content: space-between;
        transition: color 0.2s ease-in-out;
        border: none;

        &:hover {
          color: #00a79d;
        }
      }

      .e-n-accordion-item-title-icon {
        transition: transform 0.3s ease;

        &:hover {
          color: #2b3990;
        }
      }

      .e-con-full {
        border: none;
      }
    }
  }
}

.elementor-button-wrapper {
  margin-top: 3.6975rem !important;
}

.elementor-button {
  position: relative;
  overflow: hidden;

  > * {
    position: relative;
    z-index: 2;
  }

  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    transition: left 0.4s cubic-bezier(0.32, 0, 0.67, 0);
    background-image: linear-gradient(
      90deg,
      #00a79c 0%,
      #039c97 6%,
      #13697f 37%,
      #1e446f 64%,
      #252e64 86%,
      #282661 100%
    );
    z-index: 1;
  }

  .elementor-button-content-wrapper {
    align-items: center;

    .elementor-button-text {
      margin-right: 9px;
      line-height: 1.25;
    }

    .elementor-button-icon {
      position: absolute;
      top: 50%;
      left: 100%;
      display: inline-block;
      width: 8px;
      height: 1px;
      transition: width 0.3s ease;

      .fa-long-arrow-right {
        display: none;
      }

      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: currentColor;
      }

      &::after {
        content: "";
        position: absolute;
        top: -1.9px;
        right: 0;
        width: 5px;
        height: 5px;
        border-top: 1px solid currentColor;
        border-right: 1px solid currentColor;
        transform: rotate(45deg);
      }
    }
  }

  &:hover {
    &:before {
      left: 0;
    }

    .elementor-button-content-wrapper .elementor-button-icon {
      width: 13px;
    }
  }
}

.who-we-are-carousel {
  .elementor-swiper-button {
    position: relative;
    overflow: hidden;

    > * {
      position: relative;
      z-index: 2;
    }

    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 100%;
      width: 100%;
      height: 100%;
      transition: all 0.4s cubic-bezier(0.32, 0, 0.67, 0);
      background-image: linear-gradient(
        90deg,
        #00a79c 0%,
        #039c97 6%,
        #13697f 37%,
        #1e446f 64%,
        #252e64 86%,
        #282661 100%
      );
      z-index: 1;
    }

    &:hover {
      &:before {
        left: 0;
      }
    }

    &.elementor-swiper-button-prev {
      &:before {
        transform: rotateZ(180deg);
        left: auto;
        right: 100%;
      }

      &:hover {
        &:before {
          left: auto;
          right: 0;
        }
      }
    }
  }
}

/* Footer Form */
.footer_form {
  #dvFastForms .ff-required-mark {
    color: #fff !important;
    font-size: 12px;
  }
  .ff-group-row {
    row-gap: 1.5rem !important;

    .ff-label-col {
      margin-bottom: 7px;

      label {
        font-size: 0.625rem;

        line-height: 1.4;
        text-transform: uppercase;
        letter-spacing: 2px;

        b {
          font-weight: 500 !important;
        }
      }
    }

    .ff-field-col {
      input {
        color: #ffffff;
        background-color: transparent;
        border-radius: 5px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        cursor: pointer;

        &:hover {
          border: 1px solid #00a79d;
        }

        &:focus-visible {
          outline: none;
          box-shadow: none;
          border: 1px solid #00a79d;
        }
      }
    }
  }

  .ff-select-to-checkbox-list {
    .ff-checkbox-li {
      span {
        flex: none;
        margin-right: 7px;
        position: relative;
        padding: 0;
        width: 1.25rem;
        height: 1.25rem;
        background: none;
        background-color: transparent;
        border-radius: 5px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        cursor: pointer;

        &:hover {
          border: 1px solid #00a79d;
        }

        &.ff-ext-selected {
          &::before {
            content: "";
            top: 50%;
            z-index: 10;
            position: absolute;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 8px;
            height: 8px;
            background-color: #00a79d;
            border-radius: 100%;
          }
        }
      }

      label {
        padding: 0 !important;
      }
    }
  }

  .ff-select-type {
    color: #ffffff;
    background-color: transparent;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2300cbb4" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 17px;

    &:hover {
      border: 1px solid #00a79d;
    }

    &:focus-visible {
      outline: none;
      box-shadow: none;
    }

    option {
      color: #565555;
    }
  }

  textarea {
    color: #ffffff !important;
    background-color: transparent !important;
    border-radius: 5px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    cursor: pointer !important;
    font-size: 16px !important;
    height: 7rem;

    &::placeholder {
      color: #ffffff !important;
    }

    &:hover {
      border: 1px solid #00a79d !important;
    }

    &:focus-visible {
      outline: none;
      box-shadow: none;
      border: 1px solid #00a79d !important;
    }
  }

  input[type="checkbox"].ff-checkbox {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    width: 1.25rem !important;
    height: 1.25rem !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px !important;
    background-color: transparent !important;

    display: inline-grid !important;
    place-content: center !important;
    cursor: pointer !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
  }
  input[type="checkbox"].ff-checkbox::before {
    content: "" !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: #00cbb4 !important;
    transform: scale(0) !important;
    transition: transform 120ms ease-in-out !important;
  }

  input[type="checkbox"].ff-checkbox:checked::before {
    transform: scale(1) !important;
  }

  .ff-select-to-radiobtn-list {
    margin: 2rem auto 0;
    .ff-radio-li {
      span {
        margin-right: 7px;
        position: relative;
        padding: 0;
        width: 1.25rem;
        height: 1.25rem;
        background: none;
        background-color: transparent;
        border-radius: 5px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        cursor: pointer;

        &:hover {
          border: 1px solid #00a79d;
        }

        &.ff-ext-selected {
          &::before {
            content: "";
            top: 50%;
            z-index: 10;
            position: absolute;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 8px;
            height: 8px;
            background-color: #00a79d;
            border-radius: 100%;
          }
        }
      }

      label {
        padding: 0;
        line-height: 1.2;
      }

      &:last-child {
        margin: 0;
      }
    }
  }
  .ff-col-1.ff-label-col:has(#lblFSGFRadioButton592) {
    display: block;
    text-align: center;
    width: 93%;
    margin: 0 auto;

    @media (max-width: 768px) {
      width: 100%;
    }

    .ff-required-mark {
      display: none;
    }
  }

  label#lblFSGFRadioButton592 {
    b {
      font-size: 11px;
    }
    i {
      font-weight: 300;
      font-size: 11px;
      line-height: 1.5;
      letter-spacing: 0;
      text-transform: none;
      display: block;
      a {
        font-weight: 300;
        font-size: 11px;
        color: #fff;
        text-decoration: underline;

        &:hover {
          color: #00a79c;
        }
      }
    }
  }

  .ff-submit-btn .footnoteDiv {
    display: none;
  }
  .btn-wrapper {
    position: relative;
    overflow: hidden;
    width: fit-content;
    margin: 2rem auto 0;
    color: #fff;
    background-color: #00a79d;
    border-radius: 3.5rem;

    > * {
      position: relative;
      z-index: 2;
    }

    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 100%;
      width: 100%;
      height: 100%;
      transition: left 0.4s cubic-bezier(0.32, 0, 0.67, 0);
      background-image: linear-gradient(
        90deg,
        #00a79c 0%,
        #039c97 6%,
        #13697f 37%,
        #1e446f 64%,
        #252e64 86%,
        #282661 100%
      );
      z-index: 1;
    }

    .arrow-icon {
      position: absolute;
      top: 50%;
      left: 72%;
      display: inline-block;
      width: 8px;
      height: 1px;
      transition: width 0.3s ease;

      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: currentColor;
      }

      &::after {
        content: "";
        position: absolute;
        top: -1.9px;
        right: 0;
        width: 5px;
        height: 5px;
        border-top: 1px solid currentColor;
        border-right: 1px solid currentColor;
        transform: rotate(45deg);
      }
    }

    &:hover {
      &:before {
        left: 0;
      }

      .arrow-icon {
        width: 13px;
      }
    }
  }
  .ff-btn-submit {
    display: block !important;
    width: fit-content !important;
    margin: 0 auto !important;
    padding: 10px 39px 10px 20px !important;
    transition: all 0.5s ease-in;
    background-color: transparent !important;
  }

  #dvFastForms .btnDiv input {
    margin: 0 auto !important;
  }

  .ff-label > #lblLeadReturning_Patient__c {
    margin: 0 !important;
  }
}

/* Why Texas Center Slider */
.why-texas-center-slider {
  position: relative;

  .swiper-pagination {
    position: absolute !important;
    right: -8px !important;
    top: unset !important;
    left: unset !important;
    bottom: -2rem !important;
    @media (max-width: 1025px) {
      left: 50% !important;
      transform: translate(-50%, 100%) !important;
    }
  }

  .elementor-swiper-button-next {
    width: fit-content;
    height: 19px;
    font-size: unset !important;
    position: relative;

    svg {
      display: none;
    }

    &::after {
      font-weight: 600;
      content: "Next";
      font-size: 1rem;
      color: #fff;
      transition: color 0.3s ease-in-out;
    }

    &:before {
      content: "|";
      color: #ffffff;
      position: absolute;
      left: -12px;
      top: 0px;
    }

    &:hover::after {
      color: #00a79d;
    }
  }

  .elementor-swiper-button-prev {
    height: 19px;
    font-size: unset !important;

    svg {
      display: none;
    }

    &::after {
      content: "Previous";
      font-weight: 600;
      font-size: 1rem;
      color: #fff;
      transition: color 0.3s ease-in-out;
    }

    &:hover::after {
      color: #00a79d;
    }
  }

  .swiper-buttons-wrapper {
    position: absolute;
    top: unset !important;
    display: flex;
    gap: 20px;

    @media (max-width: 1025px) {
      justify-content: center;
      position: relative;
    }
  }
}

/* Reviews slider */

.reviews-slider {
  overflow: hidden;
}

.swiper-wrapper {
  align-items: center;
}

.videos-slider .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  cursor: pointer;
  width: 5.625rem;
  height: 5.625rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-direction: column;
  padding: 0;
  color: #fff;
  transition: all 0.4s ease-in-out;

  svg {
    width: 1rem;
    height: 1.3125rem;
    flex: none;
    transition: all 0.4s ease-in-out;
  }

  span {
    font-size: 0.875rem;
    line-height: 1.07;
    letter-spacing: 0.03em;
    color: currentColor;
    transition: all 0.4s ease-in-out;
  }

  &:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #00a79c;
  }
}

.reviews-slider .videos-slider-wrapper {
  position: relative;
  --gradient-color: #ffffff;

  @container style(--section-text-color: #FFFFFF) or style(--section-text-color: #fff) {
    --gradient-color: #2a2a71;
  }

  &:before,
  &:after {
    position: absolute;
    content: "";
    top: 50%;
    width: 5rem;
    height: 22rem;
    transform: translateY(-50%);
    z-index: 5;

    @media (max-width: 1025px) {
      content: none;
    }
  }

  &::before {
    left: 0;
    background: linear-gradient(
      -90deg,
      rgba(0, 0, 0, 0) 12.02%,
      var(--gradient-color) 88%
    );
  }

  &::after {
    right: 0;
    background: linear-gradient(
      -90deg,
      var(--gradient-color) 12%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}

.videos-slider {
  transform: translateX(-1.5rem);

  @media (max-width: 2250px) {
    transform: translateX(-3rem);
  }

  @media (max-width: 2150px) {
    transform: translateX(-4rem);
  }

  @media (max-width: 1960px) {
    transform: translateX(-4.5rem);
  }

  @media (max-width: 1650px) {
    transform: translateX(-6.5rem);
  }

  @media (max-width: 1440px) {
    transform: translateX(-8rem);
  }

  @media (max-width: 1280px) {
    transform: translateX(-9rem);
  }

  @media (max-width: 1025px) {
    transform: translateX(0);
  }

  .swiper-buttons-wrapper {
    width: 33.25rem;
    height: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 0;
    flex-direction: row-reverse;

    @media (max-width: 1024px) {
      width: 100%;
      padding: 0 16px;
    }

    .swiper-button {
      position: relative;
      width: 31px;
      height: 57px;
      background-color: #00a79c;
      left: auto;
      right: auto;
      position: relative;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.32, 0, 0.67, 0);
      transform: translateY(21%);

      &::after {
        font-size: 1rem;
        color: #fff;
        z-index: 2;
      }

      > * {
        position: relative;
        z-index: 2;
      }

      &:before {
        content: "";
        position: absolute;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100%;
        transition: all 0.4s cubic-bezier(0.32, 0, 0.67, 0);
        background-image: linear-gradient(
          90deg,
          #00a79c 0%,
          #039c97 6%,
          #13697f 37%,
          #1e446f 64%,
          #252e64 86%,
          #282661 100%
        );
        z-index: 1;
      }

      &:hover {
        height: 77px;
        transform: translateY(15%);

        &:before {
          left: 0;
        }
      }

      &.swiper-button-next {
        border-radius: 5px 0 0 5px;
      }

      &.swiper-button-prev {
        border-radius: 0 5px 5px 0;

        &:before {
          transform: rotateZ(180deg);
          left: auto;
          right: 100%;
        }

        &:hover {
          &:before {
            left: auto;
            right: 0;
          }
        }
      }
    }
  }
}

.videos-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;

  .play-button {
    opacity: 0;
  }

  .video-link {
    pointer-events: none;
    position: relative;
    display: block;
    width: 100%;
    height: 270px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.2);
    transition: width 0.4s ease-in-out;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }
}

body .fancybox__slide .f-button.is-close-btn,
body .fancybox__container .f-button {
  padding: 0 !important;
  background: transparent !important;
}

.videos-slider .swiper-slide-active {
  width: 532px !important;

  @media (max-width: 1024px) {
    width: 100% !important;
    height: auto;
    padding: 0 16px;
  }

  .video-link {
    width: 100%;
    height: 354px;
    opacity: 1;
    pointer-events: all;

    @media (max-width: 1024px) {
      height: auto;
    }
  }

  .play-button {
    opacity: 1;
  }
}

.text-content-slider {
  color: var(--section-text-color);
  max-width: 46rem;
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
  margin-top: 3.3rem;
  padding-bottom: 2rem;

  .swiper-wrapper {
    align-items: flex-start;
  }

  @media (max-width: 768px) {
    margin: 48px 16px 0;
  }

  .swiper-slide {
    &:before {
      content: "";
      display: block;
      width: 22rem;
      height: 1.25rem;
      background-image: url("../images/stars.svg");
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
      margin: 0 auto;
    }
  }

  .quote {
    color: currentColor;
    font-weight: 300;
    font-size: 1.875rem;
    line-height: 133%;

    @media (max-width: 768px) {
      font-size: 1.375rem;
    }
  }

  .patient-name {
    color: currentColor;
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    margin: 0;
  }

  .list-of-treatments {
    color: currentColor;
    margin-top: 0;
  }

  .swiper-pagination {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    transform: translate(0, 0);
    margin-top: 2rem;

    .swiper-pagination-bullet {
      width: 10px;
      height: 10px;
      border: 1px solid var(--section-text-color);
      background: transparent;

      &.swiper-pagination-bullet-active-main {
        opacity: 1;
      }

      &.swiper-pagination-bullet-active {
        background: #00a79c;
        border-color: #00a79c;
      }

      &.swiper-pagination-bullet-active-next,
      &.swiper-pagination-bullet-active-next-next,
      &.swiper-pagination-bullet-active-prev,
      &.swiper-pagination-bullet-active-prev-prev {
        transform: scale(1) !important;
        opacity: 1;
      }

      &:hover {
        background: var(--section-text-color);
      }
    }
  }
}

/* List Style */

.new-list-style {
  ul {
    list-style: none;
    padding: 0;
    margin: 0;

    li {
      position: relative;
      padding-left: 1.75rem;

      &:not(:last-child) {
        margin-bottom: 0.938rem;
      }

      &::before {
        content: "";
        position: absolute;
        top: 2px;
        left: 0;
        width: 1.125rem;
        height: 1.125rem;
        border-radius: 50%;
        background-color: #00a79d;
        background-image: url("../images/list-icon.svg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 0.563rem;
      }
    }
  }
}

/* Meet the doctors section */
.meet-the-doctors {
  max-width: 80rem;
  padding: 0 1rem;
  margin: 0 auto;
  position: relative;

  .doctors-names-container {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    margin: 0 7rem;
    position: relative;

    @media (max-width: 1150px) {
      margin: 0 3rem 0 0;
    }

    @media (max-width: 769px) {
      height: 5rem;
      margin: 0;
    }

    .info-wrapper {
      text-align: center;
      line-height: 1.33;
      color: #fff;

      span {
        color: #fff;
      }

      a {
        font-size: 15px;
      }

      @media (max-width: 769px) {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: fit-content;
        min-height: 3.75rem;
      }

      .title-wrapper {
        min-width: 11.6rem;
        position: relative;
        min-height: 3.75rem;
        display: flex;
        flex-direction: column;
        justify-content: center;

        &:after {
          content: "";
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          border-radius: 5px;
          width: 14.25rem;
          height: 5rem;
          border: 1px solid #00a79d;
          background: rgba(243, 247, 255, 0.2);
          opacity: 0;
          transition: opacity 0.4s ease;

          @media (max-width: 1025px) {
            width: 12.5rem;
          }

          @media (max-width: 769px) {
            width: 14rem;
            max-width: 100%;
          }
        }

        @media (max-width: 1025px) {
          width: 11rem;
        }

        @media (max-width: 769px) {
          width: 14rem;
        }

        @media (max-width: 769px) {
          opacity: 0;
          margin: 0 auto;
        }
      }

      .title-wrapper.active {
        opacity: 1;
        z-index: 10;

        &:after {
          opacity: 1;
        }
      }

      &:nth-child(even) {
        margin-top: 6rem;

        @media (max-width: 769px) {
          margin-top: 0;
        }
      }

      .title {
        font-size: 15px;
        line-height: 1.33;
        font-weight: 700;
        color: #fff;
        margin: 0;
        z-index: 5;

        @media (max-width: 920px) {
          font-size: 14px;
        }
      }

      span {
        z-index: 5;
        font-weight: 300;
      }

      &:not(:first-child) .title-wrapper {
        margin-left: -28px;

        @media (max-width: 769px) {
          margin: 0 auto;
        }
      }
    }
  }

  .doctors-images-container {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    margin: 5rem 1.5rem 0;
    height: 24.5rem;
    overflow: hidden;

    @media (max-width: 1150px) {
      margin: 5rem 0 0;
    }

    @media (max-width: 1025px) {
      height: 20rem;
    }

    @media (max-width: 920px) {
      height: 17rem;
    }

    @media (max-width: 769px) {
      height: 12rem;
      margin: 4rem 0 0;
    }

    @media (max-width: 575px) {
      height: 9rem;
      margin: 5rem -1rem 0;
    }

    .image-wrapper {
      a {
        cursor:
          url("../images/custom-cursor.svg") 40 40,
          pointer;
        display: block;
        width: 15rem;
        height: 25.5rem;
        position: relative;
        z-index: var(--image-z-index);

        @media (max-width: 1025px) {
          width: 13rem;
          height: 21rem;
        }

        @media (max-width: 920px) {
          width: 11rem;
          height: 18rem;
        }

        @media (max-width: 769px) {
          width: 8rem;
          height: 13rem;
          margin: 1rem 0rem 0rem -0rem !important;
        }

        @media (max-width: 575px) {
          width: 6rem;
          height: 11rem;
        }

        @media (max-width: 425px) {
          width: 5rem;
        }

        img {
          width: 100%;
          height: 100%;
          object-fit: contain;
        }
      }

      &:not(:first-child):not(:last-child) a {
        margin-left: -40px;

        @media (max-width: 769px) {
          margin-left: -20px !important;
        }
      }

      &:last-child {
        position: relative;

        a {
          position: absolute;
          top: 0;
          right: 0;
        }
      }

      &.center-doctor {
        a {
          width: 16rem;

          @media (max-width: 1025px) {
            width: 14rem;
          }

          @media (max-width: 920px) {
            width: 12rem;
          }

          @media (max-width: 769px) {
            width: 8rem;
            margin: 0 !important;
          }

          @media (max-width: 575px) {
            width: 7rem;
          }

          @media (max-width: 575px) {
            width: 5.5rem;
          }
        }
      }
    }
  }
}

.meet-the-doctors .doctors-images-container {
  position: relative;

  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #292569 28.67%, #282262 71.42%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 5;

    @media (max-width: 769px) {
      opacity: 0.5;
    }
  }
}

.meet-the-doctors .doctors-images-container:hover::after,
.meet-the-doctors .doctors-images-container:has(.image-margin.active)::after {
  opacity: 0.5;
}

.meet-the-doctors .doctors-images-container .image-wrapper:has(a.active) {
  @media (max-width: 769px) {
    z-index: 10 !important;
  }
}

.meet-the-doctors .image-wrapper {
  position: relative;
  z-index: var(--image-z-index, 1);
  transition: z-index 0.4s step-start;
}

.meet-the-doctors .image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.meet-the-doctors .doctors-images-container .image-wrapper:hover,
.meet-the-doctors
  .doctors-images-container
  .image-wrapper:has(.image-margin.active) {
  z-index: 10 !important;
}

@media (max-width: 769px) {
  .meet-the-doctors svg {
    display: none;
  }
}

/* FAQ section */
.elementor-element {
  .faq-section {
    &::before {
      content: "";
      position: absolute;
      z-index: 9;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 0.5);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease;
    }
  }

  .faq-section.loading {
    position: relative;
    pointer-events: none;

    &::before {
      opacity: 1;
      visibility: visible;
    }
  }
  .faq-section__filters {
    margin-bottom: 57px;
  }
  .faq-section__terms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .faq-section__term-button {
    font-size: 16px;
    line-height: 24px;
    color: #282262;
    text-align: center;
    padding: 8px 20px;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .faq-section__term-button.active,
  .faq-section__term-button:hover {
    background: #ddefff;
    color: #282661;
  }

  .faq-section__posts {
    max-width: 925px;
    width: 100%;
    margin: 0 auto;
  }

  .faq-section__item {
    border-bottom: 1px solid #ddefff;
    transition: background 0.3s ease;
    border-radius: 5px;
  }

  .faq-section__item.active {
    background: #ddefff;
  }

  .faq-section__item.active .faq-section__icon {
    transform: rotate(180deg);
  }

  .faq-section__item.active .faq-section__answer {
    grid-template-rows: 1fr;
  }

  .faq-section__item.active .faq-section__answer-inner {
    padding-bottom: 28px;
  }

  .faq-section__question h3 {
    margin: 0;
  }

  .faq-section__toggler {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    background: transparent;
    padding: 30px;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 26px;
    line-height: 32px;
    color: #2b3990;
    text-align: initial;
  }

  .faq-section__toggler:hover,
  .faq-section__toggler:focus {
    background: #ddefff;
    color: #00a79d;
  }

  .faq-section__icon {
    flex: 0 0 40px;
    height: 40px;
    transition: transform 0.3s ease;
  }

  .faq-section__icon svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .faq-section__answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.3s ease;
  }

  .faq-section__answer p {
    margin: 0;
    margin-bottom: 16px;
  }

  .faq-section__answer p:last-child {
    margin-bottom: 0;
  }

  .faq-section__answer-inner {
    min-height: 0;
    padding: 0 28px;
    transition: padding 0.3s ease;
  }

  .faq-section__load-more-wrapper {
    text-align: center;
    margin-top: 60px;
  }
}

@media only screen and (max-width: 1025px) {
  .elementor-element {
    .faq-section__terms {
      gap: 10px;
    }

    .faq-section__filters {
      margin-bottom: 32px;
    }

    .faq-section__toggler {
      font-size: 20px;
      padding: 16px;
    }

    .faq-section__icon {
      flex: 0 0 28px;
      height: 28px;
    }

    .faq-section__item.active .faq-section__answer-inner {
      padding-bottom: 16px;
    }

    .faq-section__answer-inner {
      padding: 0 16px;
    }
  }
}

/* Hide custom mobile dropdown on desktop */
.faq-custom-select.faq-section__terms--mobile {
  display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .faq-section__terms.faq-section__terms--desktop {
    display: none;
  }

  .faq-custom-select.faq-section__terms--mobile {
    display: block;
  }

  .faq-custom-select {
    position: relative;
    width: 100%;
    user-select: none;
  }

  .faq-custom-select__trigger {
    width: 100%;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #cfd1d3;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    line-height: 1.5;
    color: #282262;
  }

  .faq-custom-select__arrow {
    transition: transform 0.2s ease;
    font-size: 22px;
  }

  .faq-custom-select.is-open .faq-custom-select__arrow {
    transform: rotate(180deg);
  }

  .faq-custom-select__options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 10;
    max-height: 250px;
    overflow-y: auto;
    color: #282262;
  }

  .faq-custom-select.is-open .faq-custom-select__options {
    display: block;
  }

  .faq-custom-select__option {
    padding: 12px 16px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .faq-custom-select__option:hover,
  .faq-custom-select__option.active {
    background-color: #ddefff;
  }
}

/* Target mobile devices (Adjust the max-width if your mobile breakpoint is different) */
@media (max-width: 1024px) {
  /* Make the main menu wrapper the anchor for the absolute positioning */
  .e-n-menu-heading {
    position: relative !important;
  }

  /* Remove relative positioning from individual list items so the submenu spans full width */
  .e-n-menu-item {
    position: static !important;
  }

  /* Target the submenu wrapper directly */
  .e-n-menu-item .e-n-menu-content {
    display: flex !important; /* Overrides Elementor's default display: none */
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    height: 100vh;

    /* Change this to match your actual menu background color */
    background-color: #ffffff;

    /* The Drilldown Animation Initial State */
    transform: translateX(100%);
    transition:
      transform 0.35s ease-in-out,
      visibility 0.35s;
    visibility: hidden;
  }

  /* The Active State (When Elementor adds .e-active) */
  .e-n-menu-item .e-n-menu-content.e-active {
    transform: translateX(0); /* Slides it in */
    visibility: visible;
  }
}

/* Blog*/

.blog-dropdown-filter.elementor-widget-taxonomy-filter .e-filter {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;

  &::before {
    content: "Filter by:";
    display: inline-block;
    color: #282262;
  }

  @media (max-width: 767px) {
    justify-content: center;
  }
}

.tax-dropdown-btn {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  color: #282262;
  font-weight: 500;
}

.tax-btn-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.tax-dropdown-btn.is-open .tax-btn-arrow {
  transform: rotate(180deg);
}

.tax-dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  margin-top: 5px;
  max-height: 280px;
  overflow-y: auto;
  grid-auto-flow: column;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(6, 1fr);

  @media (max-width: 767px) {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

.tax-dropdown-list.is-visible {
  display: grid;
}

.blog-dropdown-filter.elementor-widget-taxonomy-filter .e-filter-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
  background: transparent;
  border: none;
  color: #1a1a4b;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin: 0;
  border-radius: 0;
}

.blog-dropdown-filter.elementor-widget-taxonomy-filter .e-filter-item:hover,
.blog-dropdown-filter.elementor-widget-taxonomy-filter
  .e-filter-item[aria-pressed="true"] {
  background-color: #e2f0fc;
  color: #1a1a4b;
}
