.wth-faq-page {
  padding-top: 100px;
  background: linear-gradient(180deg, #d4d4d4, hsla(0, 0%, 100%, 0));
  margin-top: -100px;
}

@media (max-width: 1200px) {
  .wth-faq-page {
    padding-top: 200px;
    margin-top: -200px;
  }
}

@media (max-width: 900px) {
  .wth-faq-page {
    padding-top: 190px;
    margin-top: -190px;
  }
}

.wth-faq-hero {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 45px;
  padding-bottom: 40px;
  background-image: url(../img/icons/faq.svg);
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}

.wth-faq-hero-inner {
  margin: 0;
  display: flex;
  gap: 24px;
  width: 80%;
  align-items: center;
  justify-content: space-between;
}

.wth-faq-hero-text {
  flex: 1 1 auto;
  min-width: 0;
}

.wth-faq-search {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .wth-faq-hero-inner {
    flex-direction: column;
    width: calc(100% - 32px);
    gap: 16px;
  }

  .wth-faq-search {
    justify-content: stretch;
    width: 100%;
  }
}

.wth-faq-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  color: #0f172a;
}

.wth-faq-subtitle {
  margin: 10px 0 0;
  opacity: 0.95;
  color: #0f172a;
  font-size: 15px;
}

.wth-faq-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 14px;
  padding: 5px;
  width: 330px;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

@media (max-width: 900px) {
  .wth-faq-search-wrap {
    width: 100%;
  }
}

.wth-faq-search-input {
  width: 100%;
  height: 48px;
  padding-inline-start: 14px;
  padding-inline-end: 46px;
  border-radius: 10px;
  border: none !important;
  background: transparent;
  outline: none;
  font-size: 14px;
}

.wth-faq-search-wrap:focus-within {
  box-shadow: 0 0 0 4px rgba(66, 96, 255, 0.18);
  border-color: rgba(66, 96, 255, 0.55);
}

.wth-faq-search-icon {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.7);
  pointer-events: none;
}

.wth-faq-search-icon i {
  font-size: 20px;
}

.main_result_ajax_ask_search {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(2, 6, 23, 0.1);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
  padding: 12px;
}

.wth_close_fag_search_result {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.06);
  color: #0f172a;
  margin-bottom: 6px;
}

.result_post_search {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  font-size: 14px;
}

.result_post_search:hover {
  background: rgba(66, 96, 255, 0.08);
}

.wth_faq_search_not_found,
.wth_faq_search_empty {
  padding: 10px 12px;
  color: rgba(15, 23, 42, 0.8);
  font-size: 13px;
}

.wth-faq-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 28px 0px 60px;
}

.wth-faq-cats {
  padding-right: 15px;
}

@media (max-width: 1200px) {
  .wth-faq-container {
    max-width: 100%;
    padding: 24px 16px 50px;
  }
}

.wth-faq-cats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1200px) {
  .wth-faq-cats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .wth-faq-cats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .wth-faq-cats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .wth-faq-cats-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(138px, 1fr);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
  }

  .wth-faq-cats-grid::-webkit-scrollbar {
    display: none;
  }

  .wth-faq-cat-card {
    scroll-snap-align: start;
  }
}

.wth-faq-cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 20px;
  border-radius: 16px;
  background: var(--wth-faq-cat-bg, #fff);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.04);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

@media (max-width: 520px) {
  .wth-faq-cat-card {
    padding: 16px;
  }
}

.wth-faq-cat-card:hover {
  transform: translateY(-2px);
}

.wth-faq-cat-icon {
  font-size: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  color: var(--wth-faq-cat-color);
}


.wth-faq-cat-placeholder {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--wth-faq-cat-color, rgba(15, 23, 42, 0.7));
  font-size: 18px;
}

.wth-faq-cat-icon img {
  max-width: 27px;
  height: 100%;
  object-fit: cover;
}

.wth-faq-cat-name {
  font-weight: 600;
  font-size: 15px;
  color: #0b1022;
}

.wth-faq-cat-prefix {
  display: block;
  font-size: 12px;
  font-weight: 500;
  padding-top: 17px;
  color: #616161;
}

.wth-faq-featured {
  margin-top: 34px;
}

.wth-faq-question {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.wth-faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(2,6,23,0.06);
  position: relative;
  flex: 0 0 auto;
}

.wth-faq-icon:before,
.wth-faq-icon:after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  background: #0f172a;
  transform: translate(-50%, -50%);
}

.wth-faq-icon:after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.wth-faq-item.is-open .wth-faq-icon:after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.wth-faq-panel {
  padding: 0 16px 16px;
}

.wth-faq-panel-inner {
  padding-top: 4px;
  border-top: 1px solid rgba(2,6,23,0.06);
}

.wth-faq-excerpt {
  margin: 12px 0 10px;
  color: rgba(15, 23, 42, 0.85);
  font-size: 13px;
  line-height: 1.8;
}

.wth-faq-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wetheme-secondary-color, #4260ff);
  text-decoration: none;
}

.wth-faq-view:hover {
  text-decoration: underline;
}

.wth-faq-detail {
  background: #fff;
  border: 1px solid rgba(2,6,23,0.08);
  border-radius: 18px;
  padding: 18px;
}

.wth-faq-back {
  display: inline-block;
  margin-bottom: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--wetheme-secondary-color, #4260ff);
}

.wth-faq-detail-title {
  margin: 0 0 10px;
  font-size: 22px;
}

.wth-faq-detail-content {
  color: rgba(15,23,42,0.9);
  line-height: 1.9;
}

.wth-faq-empty {
  padding: 14px;
  background: rgba(2,6,23,0.03);
  border-radius: 14px;
  border: 1px dashed rgba(2,6,23,0.12);
  color: rgba(15,23,42,0.75);
}

@media (max-width: 900px) {
  .wth-faq-icon {
    width: 20px;
    height: 20px;
    border-radius: 7px;
  }

  .wth-faq-icon:before,
  .wth-faq-icon:after {
    width: 9px;
  }

  .wth-faq-view {
    font-size: 12px;
  }

  .wth-faq-detail {
    border-radius: 16px;
    padding: 16px;
  }

  .wth-faq-detail-title {
    font-size: 20px;
  }

  .wth-faq-empty {
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .wth-faq-featured {
    margin-top: 24px;
  }
}

.wth-faq-section-title {
  margin: 0 0 14px;
  font-size: 20px;
  color: #0f172a;
}

@media (max-width: 900px) {
  .wth-faq-section-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
}

.wth-faq-accordion {
  display: grid;
  gap: 9px;
}

.wth-faq-item {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  overflow: hidden;
}

.wth-faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px 16px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: right;
}

@media (max-width: 520px) {
  .wth-faq-title {
    font-size: 28px;
  }

  .wth-faq-subtitle {
    font-size: 14px;
  }

  .wth-faq-toggle {
    padding: 12px 14px;
  }

  .wth-faq-question {
    font-size: 14px;
  }

  .wth-faq-panel {
    padding: 0 14px 14px;
  }
}

@media (max-width: 480px) {
  .wth-faq-container {
    padding: 24px 0px 50px;
  }
  
  .wth-faq-page {
    padding-top: 170px;
    margin-top: -170px;
  }

  .wth-faq-hero {
    padding-top: 15px;
    padding-bottom: 20px;
  }

  .wth-faq-hero-inner {
    width: calc(100% - 24px);
  }

  .wth-faq-search {
    width: 77%;
  }

  .wth-faq-title {
    font-size: 24px;
  }

  .wth-faq-subtitle {
    font-size: 13px;
  }

  .wth-faq-search-input {
    height: 37px;
    padding-inline-end: 42px;
    font-size: 13px !important;
  }

  .wth-faq-search-icon {
    width: 32px;
    height: 32px;
    inset-inline-end: 10px;
  }

  .wth-faq-search-icon i {
    font-size: 18px;
  }

  .wth-faq-cat-card {
    padding: 14px;
    border-radius: 11px;
    margin-top: 3px;
  }

  .wth-faq-cat-name {
    font-size: 11px;
  }

  .wth-faq-cat-prefix {
    font-size: 11px;
    padding-top: 14px;
  }

  .wth-faq-toggle {
    padding: 11px 12px;
  }

  .wth-faq-panel {
    padding: 0 12px 12px;
  }

  .wth-faq-featured {
    margin-top: 25px;
    padding: 15px;
  }

  .wth-faq-section-title {
    font-size: 17px;
    margin: 15px;
  }

  .wth-faq-item {
    border-radius: 14px;
  }

  .wth-faq-accordion {
    gap: 8px;
    margin: 15px;
  }

  .wth-faq-question {
    line-height: 1.7;
    font-size: 11px;
    font-weight: 500;
    word-break: break-word;
  }

  .wth-faq-excerpt {
    font-size: 12px;
    line-height: 1.85;
  }

  .wth-faq-view {
    flex-wrap: wrap;
    word-break: break-word;
  }

  .wth-faq-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
  }

  .wth-faq-icon:before,
  .wth-faq-icon:after {
    width: 8px;
  }

  .wth-faq-excerpt {
    margin: 10px 0 8px;
  }

  .wth-faq-view {
    font-size: 12px;
  }

  .wth-faq-detail {
    border-radius: 14px;
    padding: 14px;
    margin: 15px;
  }

  .wth-faq-back {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
  }

  .wth-faq-detail-title {
    font-size: 14px;
    line-height: 1.8;
  }

  .wth-faq-detail-content {
    font-size: 12px;
  }

  .wth-faq-empty {
    padding: 12px;
    border-radius: 12px;
  }
}


