.wef-faq-lead,
.we-lead:has(.wef-faq-lead-title) {
  margin-top: clamp(1rem, 3vw, 2.75rem);
  padding: 0 clamp(2rem, 5vw, 4rem);
}


.wef-faq-nav-section {
  margin: calc(var(--we-gapx2) * -1) auto var(--we-gap);
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 30;
}

body.admin-bar .wef-faq-nav-section {
  top: 32px;
}

.wef-faq-nav-section > .elementor-container,
.wef-faq-nav-section > .e-con-inner {
  background: var(--we-white);
  box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.16);
  min-height: 0;
  padding: 0;
}

.wef-faq-nav-section .elementor-widget-html {
  width: 100%;
}

.wef-faq-nav-section > .e-con-inner > .e-con {
  min-height: 0;
  padding: 0;
}

.wef-faq-subnav {
  align-items: stretch;
  display: flex;
  justify-content: space-between;
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
}

.wef-faq-subnav a {
  color: var(--we-core-brown);
  display: block;
  font-size: clamp(0.66rem, 0.42rem + 0.42vw, 0.86rem);
  line-height: 1.1;
  padding: 0.75rem clamp(0.6rem, 1.25vw, 1rem);
  text-align: center;
  text-decoration: none;
}

.wef-faq-subnav a:hover,
.wef-faq-subnav a:focus-visible {
  color: var(--we-theme-core-colour);
}

.wef-faq-card {
  margin-bottom: var(--we-gapx2);
  padding:0;
  scroll-margin-top: 7rem;
}

.wef-faq-card > .elementor-container,
.wef-faq-card > .e-con-inner {
  background: var(--we-white);
  box-shadow: 0.35rem 0.55rem 0 rgba(0, 0, 0, 0.1);
  min-height: 0;
  padding: 0;
}

.wef-faq-section-title .elementor-heading-title {
  color: var(--we-core-brown);
}

.wef-faq-toggle .elementor-toggle {
  border: 0;
}

.wef-faq-toggle .elementor-toggle-item {
  border: 0;
}

.wef-faq-toggle .elementor-tab-title {
  align-items: center;
  border: 0;
  border-bottom: 2px dotted var(--we-theme-accent-colour-2) !important;
  display: flex;
  gap: var(--we-gap);
  justify-content: space-between;
  padding: 1.15rem 2.25rem 1.15rem 0;
  position: relative;
}

.wef-faq-toggle .elementor-toggle-title {
  color: var(--we-core-brown);
  flex: 1 1 auto;
  text-align: left;
  text-decoration: none;
}

.wef-faq-toggle .elementor-toggle-icon {
  display: none !important;
}

.wef-faq-toggle .elementor-tab-title::after {
  align-items: center;
  background: var(--we-white);
  border: 1px solid rgba(75, 75, 75, 0.22);
  border-radius: 50%;
  color: var(--we-core-brown);
  content: "+";
  display: inline-flex;
  height: 1.45rem;
  justify-content: center;
  margin-left: auto;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.45rem;
}

.wef-faq-toggle .elementor-tab-title.elementor-active::after {
  content: "-";
}

.wef-faq-toggle .elementor-tab-content {
  border: 0;
  color: var(--we-black);
  padding: 1rem 0 1.4rem;
}

.wef-faq-toggle .elementor-tab-content p:last-child {
  margin-bottom: 0;
}

/* Dynamic FAQ post loop. */
.wef-faq-list,
.wef-faq-item {
  border: 0;
}

.wef-faq-item {
  border-bottom: 2px dotted var(--we-theme-accent-colour-2);
}

.wef-faq-question {
  font-size: clamp(1.15rem, 1rem + 0.45vw, 1.5rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 !important;
}

.wef-faq-question button {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  color: var(--we-core-brown) !important;
  cursor: pointer;
  display: flex;
  font-family: var(--e-global-typography-primary-font-family), sans-serif;
  font-size: inherit;
  font-weight: inherit;
  gap: var(--we-gap);
  justify-content: space-between;
  line-height: inherit;
  min-height: 0;
  overflow-wrap: anywhere;
  padding: 0.85rem 2.25rem 0.85rem 0 !important;
  position: relative;
  text-align: left;
  white-space: normal;
  word-break: normal;
  width: 100%;
}

.wef-faq-question button:hover,
.wef-faq-question button:focus,
.wef-faq-question button:focus-visible,
.wef-faq-question button[aria-expanded="true"] {
  background: transparent !important;
  color: var(--we-core-brown) !important;
}

.wef-faq-question button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.wef-faq-question button::after {
  align-items: center;
  background: var(--we-white);
  border: 1px solid rgba(75, 75, 75, 0.22);
  border-radius: 50%;
  color: var(--we-core-brown);
  content: "+";
  display: inline-flex;
  flex: 0 0 auto;
  height: 1.45rem;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.45rem;
}

.wef-faq-question button[aria-expanded="true"]::after {
  content: "-";
}

.wef-faq-answer {
  color: var(--we-black);
  padding: 0.25rem 0 1rem;
}

.wef-faq-answer > :first-child {
  margin-top: 0;
}

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

html {
  scroll-behavior: smooth;
}

@media (max-width: 767px) {
  .wef-faq-lead,
  .we-lead:has(.wef-faq-lead-title) {
    padding: 0 var(--we-gap);
  }

  .wef-faq-lead > .elementor-container,
  .wef-faq-lead > .e-con-inner,
  .we-lead:has(.wef-faq-lead-title) > .e-con-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 2.5rem var(--we-gapx2) 10rem;
  }

  .wef-faq-lead .elementor-column,
  .wef-faq-lead > .e-con-inner > .e-con {
    width: 100%;
  }

  .wef-faq-tree--left {
    --tree-right: 13rem;
  }

  .wef-faq-tree--middle {
    --tree-right: 8rem;
  }

  .wef-faq-tree--right {
    --tree-right: 3rem;
  }

  .wef-faq-mark--three {
    right: 18rem;
  }

  .wef-faq-lead-art-widget {
    min-height: 10rem;
    position: absolute !important;
    inset: auto 0 0 auto;
    width: min(100%, 24rem);
  }

  .wef-faq-subnav a {
    font-size: 0.62rem;
    padding: 0.65rem 0.55rem;
  }

  body.admin-bar .wef-faq-nav-section {
    top: 46px;
  }

  .wef-faq-card > .elementor-container,
  .wef-faq-card > .e-con-inner {
    padding: 1.5rem;
  }

  .wef-faq-card {
    padding: 0 var(--we-gap);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .wef-faq-lead {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 12rem;
  }

  .wef-faq-lead > .e-con:first-child,
  .wef-faq-lead > .e-con:last-child {
    flex-basis: auto;
    width: 100%;
  }

  .wef-faq-lead-art-widget {
    bottom: 0;
    max-width: 24rem;
    position: absolute !important;
    right: 0;
    width: 48%;
  }
}
