.tgb-faq-page {
  --tgb-navy: #1b1464;
  --tgb-blue: #0099d6;
  --tgb-orange: #f26522;
  --tgb-red: #ed1c24;
  --tgb-ink: #202338;
  --tgb-muted: #667085;
  --tgb-line: #e7edf5;
  --tgb-soft-blue: #eaf7fc;
  --tgb-soft-orange: #fff3eb;
  --tgb-soft-navy: #f1f0fb;
  --tgb-soft-red: #fff0f1;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.2rem) 1rem clamp(2.5rem, 5vw, 4rem);
  color: var(--tgb-ink);
}

body.tgb-faq-active main > :not(#tgb-faq) {
  display: none !important;
}

.tgb-faq-page,
.tgb-faq-page * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.tgb-faq-page[data-lang="ur"] {
  font-family: "Noto Nastaliq Urdu", "Tajawal", serif;
}

.tgb-faq-back {
  display: inline-flex;
  align-items: center;
  color: var(--tgb-blue);
  font-weight: 800;
  margin-bottom: 1.25rem;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.tgb-faq-back:hover {
  color: var(--tgb-navy);
  transform: translateX(-2px);
}

.tgb-faq-page[dir="rtl"] .tgb-faq-back:hover {
  transform: translateX(2px);
}

.tgb-faq-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 153, 214, 0.16);
  border-radius: 8px;
  padding: clamp(1.35rem, 3vw, 2.45rem);
  background:
    linear-gradient(135deg, rgba(0, 153, 214, 0.11), rgba(242, 101, 34, 0.08)),
    #ffffff;
  box-shadow: 0 18px 45px rgba(27, 20, 100, 0.08);
}

.tgb-faq-hero::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--tgb-blue), var(--tgb-orange), var(--tgb-red));
}

.tgb-faq-kicker {
  color: var(--tgb-blue);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.tgb-faq-page[dir="rtl"] .tgb-faq-kicker {
  text-transform: none;
}

.tgb-faq-title {
  color: var(--tgb-navy);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  max-width: 760px;
  margin: 0;
}

.tgb-faq-page[dir="rtl"] .tgb-faq-title {
  line-height: 1.35;
}

.tgb-faq-note {
  max-width: 920px;
  color: #465064;
  font-size: 1rem;
  line-height: 1.8;
  margin: 1rem 0 0;
}

.tgb-faq-note strong {
  color: var(--tgb-navy);
}

.tgb-faq-tools {
  margin: 1.15rem 0;
  border: 1px solid var(--tgb-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(27, 20, 100, 0.05);
  padding: 0.95rem;
}

.tgb-faq-search {
  display: grid;
  gap: 0.5rem;
}

.tgb-faq-search-label {
  color: var(--tgb-navy);
  font-size: 0.9rem;
  font-weight: 850;
}

.tgb-faq-search-input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(0, 153, 214, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: var(--tgb-ink);
  font: inherit;
  font-size: 1rem;
  outline: none;
  padding: 0.75rem 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.tgb-faq-search-input:focus {
  border-color: var(--tgb-blue);
  box-shadow: 0 0 0 4px rgba(0, 153, 214, 0.12);
}

.tgb-faq-count {
  color: var(--tgb-muted);
  font-size: 0.9rem;
  font-weight: 800;
  margin-top: 0.75rem;
}

.tgb-faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.tgb-faq-chip {
  min-height: 2.35rem;
  border: 1px solid rgba(27, 20, 100, 0.11);
  border-radius: 999px;
  background: #f7fbfe;
  color: var(--tgb-navy);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.5rem 0.85rem;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tgb-faq-chip:hover,
.tgb-faq-chip.is-active {
  border-color: var(--tgb-blue);
  background: var(--tgb-blue);
  color: #ffffff;
}

.tgb-faq-chip:focus-visible,
.tgb-faq-question:focus-visible,
.tgb-faq-back:focus-visible,
.tgb-faq-inline-link:focus-visible {
  outline: 3px solid rgba(0, 153, 214, 0.28);
  outline-offset: 3px;
}

.tgb-faq-list {
  display: grid;
  gap: 1rem;
}

.tgb-faq-section {
  scroll-margin-top: 6rem;
}

.tgb-faq-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--tgb-navy);
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.35;
  margin: 1.35rem 0 0.75rem;
}

.tgb-faq-section-title::before {
  content: "";
  flex: 0 0 0.7rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--tgb-blue);
  box-shadow: 0 0 0 5px rgba(0, 153, 214, 0.12);
}

.tgb-faq-item {
  margin-top: 0.55rem;
}

.tgb-faq-question {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 4.1rem;
  border: 1px solid rgba(27, 20, 100, 0.08);
  border-radius: 8px;
  color: var(--tgb-navy);
  cursor: pointer;
  font: inherit;
  padding: 0.9rem 1rem;
  text-align: start;
  box-shadow: 0 10px 22px rgba(27, 20, 100, 0.08);
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.tgb-faq-question:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(27, 20, 100, 0.11);
}

.tgb-faq-question-color-0 {
  background: linear-gradient(135deg, #e7f8fe, #d9f1fb);
  border-color: rgba(0, 153, 214, 0.22);
}

.tgb-faq-question-color-1 {
  background: linear-gradient(135deg, #fff4ed, #ffe7d9);
  border-color: rgba(242, 101, 34, 0.2);
}

.tgb-faq-question-color-2 {
  background: linear-gradient(135deg, #f4f2ff, #e8e5fb);
  border-color: rgba(27, 20, 100, 0.14);
}

.tgb-faq-question-color-3 {
  background: linear-gradient(135deg, #fff2f3, #ffe2e5);
  border-color: rgba(237, 28, 36, 0.15);
}

.tgb-faq-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  min-height: 2.15rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--tgb-navy);
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

.tgb-faq-question-text {
  min-width: 0;
  color: var(--tgb-navy);
  font-size: clamp(0.96rem, 1.6vw, 1.08rem);
  font-weight: 850;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tgb-faq-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--tgb-navy);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.tgb-faq-panel {
  margin-top: 0.45rem;
}

.tgb-faq-answer {
  border: 1px solid var(--tgb-line);
  border-radius: 8px;
  padding: clamp(0.95rem, 2vw, 1.25rem);
  box-shadow: 0 10px 24px rgba(27, 20, 100, 0.06);
}

.tgb-faq-answer-color-0 {
  background: var(--tgb-soft-blue);
  border-color: rgba(0, 153, 214, 0.16);
}

.tgb-faq-answer-color-1 {
  background: var(--tgb-soft-orange);
  border-color: rgba(242, 101, 34, 0.18);
}

.tgb-faq-answer-color-2 {
  background: var(--tgb-soft-navy);
  border-color: rgba(27, 20, 100, 0.13);
}

.tgb-faq-answer-color-3 {
  background: var(--tgb-soft-red);
  border-color: rgba(237, 28, 36, 0.14);
}

.tgb-faq-answer-label {
  display: inline-flex;
  color: var(--tgb-navy);
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.tgb-faq-answer-text {
  color: #3f4656;
  font-size: 1rem;
  line-height: 1.86;
  margin: 0;
  overflow-wrap: anywhere;
}

.tgb-faq-page[data-lang="ur"] .tgb-faq-answer-text,
.tgb-faq-page[data-lang="ur"] .tgb-faq-question-text,
.tgb-faq-page[data-lang="ur"] .tgb-faq-note {
  line-height: 2.15;
}

.tgb-faq-inline-link {
  color: var(--tgb-blue);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.tgb-faq-inline-link:hover {
  color: var(--tgb-navy);
}

.tgb-faq-empty {
  border: 1px dashed rgba(0, 153, 214, 0.35);
  border-radius: 8px;
  background: #f7fbfe;
  color: var(--tgb-navy);
  font-weight: 800;
  line-height: 1.7;
  margin-top: 1rem;
  padding: 1rem;
}

@media (max-width: 720px) {
  .tgb-faq-page {
    padding-inline: 0.9rem;
  }

  .tgb-faq-title {
    font-size: 1.35rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .tgb-faq-page[dir="rtl"] .tgb-faq-title {
    line-height: 1.45;
  }

  .tgb-faq-note {
    font-size: 0.96rem;
  }

  .tgb-faq-question {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 0.85rem;
  }

  .tgb-faq-number {
    justify-self: start;
  }

  .tgb-faq-page[dir="rtl"] .tgb-faq-number {
    justify-self: end;
  }

  .tgb-faq-question-text {
    font-size: 0.96rem;
  }

  .tgb-faq-toggle-icon {
    width: 1.85rem;
    height: 1.85rem;
  }

  .tgb-faq-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
  }

  .tgb-faq-chip {
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .tgb-faq-hero,
  .tgb-faq-tools,
  .tgb-faq-answer {
    padding-inline: 0.85rem;
  }
}

@media (max-width: 360px) {
  .tgb-faq-question {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tgb-faq-number {
    grid-column: 1 / -1;
  }
}
