/* hero section css */
.help-title-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  @media (max-width: 449px) {
    gap: 24px;
  }
}

.search-size-large {
  max-width: 480px;
  @media (max-width: 768px) {
    max-width: 480px;
  }
}

.search-input-wrapper input[type="text"],
.search-input-wrapper input[type="email"],
.search-input-wrapper input[type="search"],
.search-input-wrapper input[type="password"],
.search-input-wrapper input[type="number"],
.search-input-wrapper input[type="tel"],
.search-input-wrapper input[type="url"] {
  padding: 9px 30px 9px 48px;
  border: 1px solid var(--light-stroke);
  background-color: var(--white);
  @media (max-width: 991px) {
    padding: 9px 30px 9px 40px;
  }
  @media (max-width: 449px) {
    padding: 7px 16px 7px 36px;
  }
}

.search-input-wrapper input::placeholder {
  color: var(--charcoal);
}

.search-input-wrapper input[type="text"]:focus,
.search-input-wrapper input[type="email"]:focus,
.search-input-wrapper input[type="search"]:focus,
.search-input-wrapper input[type="password"]:focus,
.search-input-wrapper input[type="number"]:focus,
.search-input-wrapper input[type="tel"]:focus,
.search-input-wrapper input[type="url"]:focus {
  background-color: var(--white);
}

.help-hero {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-bottom: 120px;
  @media (max-width: 991px) {
    padding-bottom: 90px;
  }
  @media (max-width: 449px) {
    padding-bottom: 80px;
  }
}

.help-hero .insights-detail-hero-top-section {
  width: 100%;
}

.help-hero .insights-detail-hero-top-content {
  width: 100%;
}

.search-size-large .search-icon svg {
  @media (max-width: 991px) {
    width: 16px;
    height: 16px;
  }
}

.search-size-large .search-icon {
  @media (max-width: 449px) {
    left: 12px;
  }
}

/* resources section css */

.help-resources-section {
  padding-bottom: 120px;
  @media (max-width: 991px) {
    padding-bottom: 90px;
  }
  @media (max-width: 449px) {
    padding-bottom: 80px;
  }
}

.help-resources-wrapper {
  display: flex;
  flex-direction: column;
  gap: 64px;
  @media (max-width: 991px) {
    gap: 40px;
  }
}

/* help data list section */
.help-data-list-section {
  padding-bottom: 120px;
  background-color: var(--white);
  @media (max-width: 991px) {
    padding-bottom: 90px;
  }
  @media (max-width: 449px) {
    padding-bottom: 80px;
  }
}

.help-data-list-section-wrapper {
  position: relative;
  display: flex;
  gap: 80px;
  @media (max-width: 991px) {
    gap: 40px;
    flex-direction: column;
  }
  @media (max-width: 449px) {
    gap: 32px;
  }
}

.help-data-list-section-left-content {
  position: sticky;
  top: 120px;
  height: 100%;
  max-width: 230px;
  width: 100%;
  @media (max-width: 991px) {
    position: unset;
    max-width: 100%;
  }
}

.help-data-list-section-right-content {
  width: 100%;
  max-width: 986px;
  @media (max-width: 991px) {
    max-width: 100%;
  }
}

.main-category {
  font: var(--heading-h6);
  color: var(--black);
  margin: 0;
}

.main-category:first-child {
  margin-top: 0;
}

.sub-categories-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--ivory);
  border-radius: 12px;
  padding: 32px;
  @media (max-width: 991px) {
    padding: 24px;
    border-radius: 8px;
    gap: 12px;
  }
  @media (max-width: 449px) {
    padding: 20px;
  }
}

.sub-categories-section-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sub-category {
  font: var(--heading-h8);
  color: var(--black);
  margin: 0;
}

.help-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-list li {
  list-style: none;
  color: var(--charcoal);
  font: var(--body-b1);
}

.help-list a {
  color: var(--charcoal);
  font: var(--body-b1);
  text-decoration: none;
  transition: color 0.3s ease;
}

.help-list a .nav-link-icon {
  transform: rotate(0deg) translateX(0) translateY(0);
  -webkit-transform: rotate(0deg) translateX(0) translateY(0);
  transition:
    transform 0.3s ease-in-out,
    stroke 0.3s ease-in-out;
  will-change: transform;
  width: 20px;
  height: 20px;
  path {
    stroke: var(--charcoal);
    transition: stroke 0.3s ease-in-out;
  }
  @media (max-width: 991px) {
    width: 16px;
    height: 16px;
  }
}

.help-list li a:hover {
  color: var(--deep-violet);
  .nav-link-icon {
    transform: rotate(-45deg);
    path {
      stroke: var(--deep-violet);
    }
  }
}

.help-list li a span {
  margin-left: 12px;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  position: relative;
  top: 3px;
  @media (max-width: 991px) {
    margin-left: 8px;
  }
}

.help-data-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
  @media (max-width: 449px) {
    gap: 12px;
    padding-bottom: 32px;
  }
}

.help-data-list:last-child {
  padding-bottom: 0;
}

.help-meta {
  font: var(--body-b1);
  color: var(--charcoal);
}

.help-detail-wrapper {
  padding-bottom: 120px;
  @media (max-width: 991px) {
    padding-bottom: 90px;
  }
  @media (max-width: 449px) {
    padding-bottom: 80px;
  }
}

.help-detail-wrapper {
  .wp-block-table:first-child {
    margin-top: 0;
  }
  .wp-block-table:last-child {
    margin-bottom: 0;
  }
  .wp-block-table {
    margin: 16px 0 48px;
    @media (max-width: 991px) {
      margin: 16px 0 40px;
    }
    @media (max-width: 767px) {
      margin: 16px -24px 40px;
      padding: 0 24px;
    }
    @media (max-width: 449px) {
      margin: 16px -20px 40px;
      padding: 0 20px;
    }
  }
}

.help-detail-wrapper {
  table {
    margin: 0;
    width: 100%;
    border-collapse: separate;
    border: none;
    table-layout: unset !important;
  }

  th {
    background-color: var(--ivory);
    td:first-child {
      border-top-left-radius: 12px;
    }
  }
  th:last-child {
    border-top-right-radius: 12px;
    border-right: 1px solid var(--soft-grey) !important;
  }
  th:first-child {
    border-top-left-radius: 12px;
  }
  th {
    padding: 12px 24px;
    font: var(--button);
    border-top: 1px solid var(--soft-grey) !important;
    border-left: 1px solid var(--soft-grey) !important;
    border-bottom: none !important;
    border-right: none;
    color: var(--black);
    text-align: left !important;
    word-break: unset !important;
  }

  tr:last-child {
    td:first-child {
      border-bottom-left-radius: 12px;
    }
    td:last-child {
      border-bottom-right-radius: 12px;
    }
  }

  tr td {
    font: var(--body-b2);
    color: var(--black);
    padding: 16px 24px;
    border-left: 1px solid var(--soft-grey) !important;
    border-bottom: 1px solid var(--soft-grey) !important;
    border-right: none !important;
    border-top: none !important;
    word-break: unset !important;
    text-align: left !important;
  }

  tr td:first-child {
    font: var(--heading-h8);
    color: var(--deep-violet);
    strong {
      font: var(--heading-h8);
      color: var(--deep-violet);
    }
  }

  tr td:last-child {
    border-right: 1px solid var(--soft-grey) !important;
  }

  tr:first-child {
    background-color: var(--white);
    td:first-child {
      border-top-left-radius: 0;
    }
    td:last-child {
      border-top-right-radius: 0;
    }
    td {
      padding: 16px 24px;
      font: var(--body-b2);
      color: var(--black);
      border-top: 1px solid var(--soft-grey) !important;
    }
    td:first-child {
      color: var(--deep-violet);
      font: var(--heading-h8);
    }
  }
}
