.faq-nav {
  z-index: 1000;
  background: #fff;
  padding: 12px;
  border: 1px solid #000;
  border-radius: 8px;
}
.faq-nav ul, .faq-nav ul li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 !important;
  padding: 0;
}

.faq-nav p {
  margin: 0;
  padding-bottom: 14px;
}

.faq-nav ul li {
  list-style: none !important;
  margin-bottom: 8px;
  font-size: 20px;
}
.faq-nav a {
  text-decoration: none;
  color: black;
}

.faq-nav a:hover {
  color: #23A455;
  text-decoration: none;
}

.faq-nav a.active {
  font-weight: bold;
  text-decoration: none;
  color: #23A455;
}

.faq-dropdown {
  display: none;
}

.faq-dropdown p {
  padding: 0;
}

.faq-nav-toggle-icon {
    color: #23A455;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    margin-right: 8px;
}



/* Mobile styles */
@media screen and (max-width: 768px) {
  .faq-nav {
    border: none;
    border-radius: 0;
    padding: 0;
    position: relative;
  }

  .faq-dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #000;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    width: 100%;
  }

  .faq-dropdown.active {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .faq-dropdown.active .faq-nav-toggle-icon {
    transform: rotate(-90deg); /* Right to down */
  }

  .faq-nav ul {
    display: none;
    position: absolute;
    background-color: #fff;
    left: 0px;
    right: 0px;
    z-index: 500;
  }

  .faq-nav ul.active {
    display: flex !important;
    border-left: 1px solid;
    border-right: 1px solid;
    border-bottom: 1px solid;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    gap: 12px;
    padding: 12px;
  }
}