/**
 * FAQ Page — scoped to .ta-faq-page
 * Desktop: sticky topics + normal page scroll (no pin padding / no double scrollport).
 * Mobile: horizontal topics + page scroll.
 */

.ta-faq-page {
  font-family: "Poppins", sans-serif;
  color: #111;
  background: #fff;
}

/* ===== Hero ===== */
.ta-faq-hero {
  padding: 72px 0 40px;
  text-align: center;
}

.ta-faq-hero__title {
  margin: 0 0 16px;
  font-size: clamp(24px, 4vw, 45px);
  font-weight: 400;
  line-height: 1.2;
  color: rgba(0, 0, 0, 1);
}

.ta-faq-hero__desc {
  margin: 0 auto 32px;
  max-width: 972px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.6);
}

.ta-faq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: rgba(255, 255, 255, 1);
  border: 1px solid transparent;
}

.ta-faq-btn--dark {
  background: #111;
  color: #fff !important;
}

.ta-faq-btn--dark:hover {
  border-color: rgba(0, 0, 0, 1);
  background: rgba(211, 177, 237, 0.16);
  color: rgba(0, 0, 0, 1) !important;
}

.ta-faq-btn--gradient {
  background: linear-gradient(90.68deg, #E752AD -11.47%, #AA43F5 100%);
  color: #fff !important;
  min-width: 180px;
}

/* ===== Trusted logos — homepage .ta-hero-divider / .ta-hero-marquee ===== */
.ta-faq-page .ta-faq-trusted {
  padding: 8px 0 56px;
  width: 100%;
  overflow: hidden;
}

.ta-faq-page .ta-faq-trusted .ta-hero-divider {
  margin-top: 40px;
  margin-bottom: 34px;
}

/* ===== Main grid =====
   Desktop: fixed-height panel. Left stays put, right .ta-faq-content scrolls.
   No JS padding-bottom (avoids blank space). */
.ta-faq-main {
  padding: 0 0 72px;
}

.ta-faq-main__grid {
  display: grid;
  grid-template-columns: minmax(315px, 315px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  height: calc(100vh - 120px);
  min-height: 480px;
}

/* Left topics — fixed in the panel */
.ta-faq-topics {
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
}

.ta-faq-topics__inner {
  border: 1px solid rgba(228, 226, 227, 1);
  background: linear-gradient(180deg, #FCFBF9 0%, #F6EBFF 100%);
  border-radius: 20px;
  padding: 0px;
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ta-faq-topics__inner::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.ta-faq-topics__label {
  margin: 0 0 8px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #7f3fe0;
  padding: 16px;
  border-bottom: 1px solid rgba(228, 226, 227, 1);
  border-radius: 20px 20px 0 0;
}

.ta-faq-topics__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ta-faq-topics__link {
  display: block;
  padding: 14px 16px;
  border-radius: 0px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(0, 0, 0, 1);
  text-decoration: none;
  transition: none;
}

.ta-faq-topics__link:hover {
  background: rgba(127, 63, 224, 0.08);
  color: #111;
  text-decoration: none;
}

.ta-faq-topics__link.is-active {
  background: linear-gradient(270deg, rgba(151, 61, 217, 0) 0%, #973DD9 100%);
  color: #fff;
}

/* Right content — only this column scrolls (scrollbar hidden) */
.ta-faq-content {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.ta-faq-content::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.ta-faq-section + .ta-faq-section {
  margin-top: 24px;
}

.ta-faq-section {
  padding: 24px;
  border-radius: 32px;
  background: rgba(252, 251, 249, 1);
}

.ta-faq-stats + .ta-faq-section {
  margin-top: 24px;
}

.ta-faq-section__title {
  margin: 0 0 22px;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(0, 0, 0, 1);
}

.ta-faq-accordion {
  border-top: 0;
}

.ta-faq-item {
  border-bottom: 0;
  border-radius: 20px;
}

.ta-faq-item.is-open {
  background:rgba(255, 255, 255, 1);
  border-bottom: 0;
}

.ta-faq-item.is-open + .ta-faq-item,
.ta-faq-item + .ta-faq-item.is-open {
  border-top-color: transparent;
}

.ta-faq-item__trigger {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.ta-faq-item.is-open .ta-faq-item__trigger {
  padding: 16px 24px 12px;
}

.ta-faq-item__question {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(0, 0, 0, 1);
}

.ta-faq-item__icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  background: transparent;
  transition: border-color 0.2s ease;
}

.ta-faq-item__icon::before {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-right: 1px solid rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ta-faq-item.is-open .ta-faq-item__icon {
  border-color: #b988db;
  background: transparent;
}

.ta-faq-item.is-open .ta-faq-item__icon::before {
  top: 57%;
  border-color: #7f3fe0;
  transform: translate(-50%, -50%) rotate(225deg);
}

.ta-faq-item__panel {
  overflow: hidden;
}

.ta-faq-item__answer {
  padding: 0 24px 28px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.6);
}

.ta-faq-item__answer a {
  color: inherit;
  text-decoration: underline;
}

.ta-faq-item__answer ul,
.ta-faq-item__answer ol {
  margin: 10px 0 0;
  padding-left: 20px;
  list-style: inherit;
}

.ta-faq-item__answer li + li {
  margin-top: 6px;
}

/* ===== Stats auto-scroll (no counter JS) ===== */
.ta-faq-stats {
  overflow: hidden;
  margin-top: 24px;
  padding: 20px 0;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 10%, rgba(89, 42, 134, 0.75) 0, rgba(89, 42, 134, 0) 32%),
    radial-gradient(circle at 88% 86%, rgba(96, 22, 78, 0.7) 0, rgba(96, 22, 78, 0) 34%),
    linear-gradient(115deg, #120c2b 0%, #1b1237 44%, #08061a 100%);
}

.ta-faq-stats__marquee {
  overflow: hidden;
  width: 100%;
}

.ta-faq-stats__track {
  display: flex;
  width: max-content;
  animation: ta-faq-stats-scroll 40s linear infinite;
}

.ta-faq-stats__group {
  display: flex;
  flex-shrink: 0;
}

.ta-faq-stats__item {
  flex: 0 0 auto;
  width: 220px;
  min-height: 112px;
  padding: 16px 24px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.ta-faq-stats__item strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.ta-faq-stats__item p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

@keyframes ta-faq-stats-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ta-faq-stats__track {
    animation: none;
  }
}

/* ===== CTA ===== */
.ta-faq-cta {
  padding: 80px 0;
  text-align: center;
  background:
    radial-gradient(
      ellipse 58% 110% at 20% 50%,
      rgba(87, 50, 134, 0.68) 0%,
      rgba(53, 31, 88, 0.42) 42%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 48% 105% at 108% 105%,
      rgba(103, 31, 76, 0.52) 0%,
      rgba(57, 24, 64, 0.3) 46%,
      transparent 78%
    ),
    linear-gradient(
      100deg,
      #2d1c49 0%,
      #21143a 34%,
      #18102d 68%,
      #100a1f 100%
    );
}

.ta-faq-cta__eyebrow {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(176, 69, 255, 1);
}

.ta-faq-cta__title {
  margin: 0 0 36px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.45;
  color: #fff;
}

.ta-faq-cta__title span {
  display: block;
}

.ta-faq-cta .ta-faq-btn--gradient {
  min-width: 220px;
  min-height: 36px;
  padding: 9px 24px;
  border-radius: 8px;
}

/* ===== Responsive ===== */
@media (min-width: 992px) and (max-width: 1199px) {
  .ta-faq-main__grid {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
  }

  .ta-faq-topics__link {
    padding: 12px 14px;
    font-size: 13px;
  }

  .ta-faq-section {
    padding: 22px;
    border-radius: 24px;
  }

  .ta-faq-section__title {
    font-size: 28px;
  }

  .ta-faq-item__trigger {
    padding: 20px;
  }

  .ta-faq-item.is-open .ta-faq-item__trigger {
    padding: 16px 20px 10px;
  }

  .ta-faq-item__question {
    font-size: 16px;
  }

  .ta-faq-item__answer {
    padding: 0 20px 24px;
  }
}

@media (max-width: 991px) {
  .ta-faq-page {
    overflow-x: clip;
  }

  .ta-faq-hero {
    padding: 56px 0 32px;
  }

  .ta-faq-hero__title {
    font-size: clamp(30px, 5vw, 40px);
  }

  .ta-faq-page .ta-faq-trusted {
    padding-bottom: 40px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .ta-faq-page .ta-faq-trusted .ta-hero-divider {
    margin-top: 28px;
    margin-bottom: 26px;
  }

  .ta-faq-main {
    padding-bottom: 56px;
    max-width: 100%;
    overflow-x: clip;
  }

  .ta-faq-main__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    height: auto;
    min-height: 0;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Keep topics inside viewport; only chips row scrolls */
  .ta-faq-topics {
    position: sticky;
    top: 72px;
    z-index: 20;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .ta-faq-topics__inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    padding: 9px;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(252, 251, 249, 0.97);
    box-shadow: 0 8px 24px rgba(18, 12, 43, 0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
  }

  .ta-faq-topics__label {
    display: none;
  }

  .ta-faq-topics__nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .ta-faq-topics__nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .ta-faq-topics__nav ul::-webkit-scrollbar {
    display: none;
  }

  .ta-faq-topics__nav li {
    flex: 0 0 auto;
    max-width: none;
  }

  .ta-faq-topics__nav li + li {
    margin-top: 0;
  }

  .ta-faq-topics__link {
    display: inline-block;
    max-width: none;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .ta-faq-topics__link.is-active {
    background: linear-gradient(90deg, #973dd9 0%, #7667ec 100%);
  }

  .ta-faq-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    overscroll-behavior: auto;
  }

  .ta-faq-section,
  .ta-faq-stats {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .ta-faq-item__question,
  .ta-faq-item__answer,
  .ta-faq-section__title {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .ta-faq-section {
    padding: 24px;
    border-radius: 24px;
  }

  .ta-faq-section__title {
    margin-bottom: 14px;
    font-size: 26px;
  }

  .ta-faq-item__trigger {
    padding: 19px 12px;
  }

  .ta-faq-item.is-open .ta-faq-item__trigger {
    padding: 16px 12px 10px;
  }

  .ta-faq-item__question {
    font-size: 16px;
  }

  .ta-faq-item__answer {
    padding: 0 12px 22px;
  }
}

@media (max-width: 767px) {

  .ta-faq-hero {
    padding: 44px 0 24px;
  }

  .ta-faq-hero__title {
    margin-bottom: 12px;
    font-size: clamp(28px, 8vw, 36px);
  }

  .ta-faq-hero__desc {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.65;
  }

  .ta-faq-topics {
    top: 64px;
  }

  .ta-faq-section,
  .ta-faq-stats {
    border-radius: 16px;
  }

  .ta-faq-section {
    padding: 20px 16px;
  }

  .ta-faq-section + .ta-faq-section,
  .ta-faq-stats + .ta-faq-section {
    margin-top: 16px;
  }

  .ta-faq-section__title {
    margin-bottom: 10px;
    font-size: 22px;
  }

  .ta-faq-item__trigger {
    gap: 12px;
    padding: 16px 2px;
  }

  .ta-faq-item.is-open .ta-faq-item__trigger {
    padding: 14px 2px 8px;
  }

  .ta-faq-item__question {
    font-size: 15px;
    line-height: 1.5;
  }

  .ta-faq-item__icon {
    width: 20px;
    height: 20px;
  }

  .ta-faq-item__answer {
    padding: 0 2px 18px;
    font-size: 14px;
    line-height: 1.65;
  }

  .ta-faq-stats {
    margin-top: 16px;
    padding: 16px 0;
  }

  .ta-faq-stats__item {
    width: 200px;
    min-height: 104px;
    padding: 14px 18px;
  }

  .ta-faq-stats__item strong {
    margin-bottom: 7px;
    font-size: 28px;
  }

  .ta-faq-stats__item p {
    font-size: 12px;
  }

  .ta-faq-cta {
    padding: 56px 0;
  }

  .ta-faq-cta__eyebrow {
    font-size: 13px;
  }

  .ta-faq-cta__title {
    margin-bottom: 28px;
    font-size: 20px;
  }

  .ta-faq-cta .ta-faq-btn--gradient {
    width: min(100%, 260px);
    min-width: 0;
  }
}

@media (max-width: 479px) {

  .ta-faq-hero {
    padding-top: 36px;
  }

  .ta-faq-topics__inner {
    padding: 7px;
  }

  .ta-faq-topics__link {
    padding: 8px 11px;
    font-size: 11px;
  }

  .ta-faq-section__title {
    font-size: 20px;
  }

  .ta-faq-item__question {
    font-size: 14px;
  }

  .ta-faq-cta__title span + span {
    margin-top: 4px;
  }
}
/*    FAQ TOPICS: SMALL DESKTOP / LAPTOP HEIGHT FIX */
@media (min-width: 992px) and (max-height: 800px) {
  .ta-faq-main__grid {
    height: calc(100vh - 104px);
    min-height: 0;
  }

  .ta-faq-topics__label {
    padding: 14px;
    font-size: 13px;
    line-height: 1.25;
  }

  .ta-faq-topics__link {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.25;
  }
}


/* Smaller laptop screens: 1366 × 768 and similar */
@media (min-width: 992px) and (max-height: 700px) {

  .ta-faq-main__grid {
    height: calc(100vh - 96px);
  }

  .ta-faq-topics__label {
    padding: 12px 14px;
    font-size: 13px;
  }

  .ta-faq-topics__link {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.2;
  }
}
