.faq-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.faq-sidebar {
    /* padding: 1rem; */
    /* background: #c4d4e6; */
}

.faq-categories h2,
.faq-sidebar h2,
.faq-sidebar h4 {
    padding: 1rem 1rem 1rem 0;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #444444;
}

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

.faq-categories li {
    margin-bottom: 0rem;
}

.faq-categories a,
.category-item > a,
.faq-post-item a,
.parent-taxonomy-list a,
.child-taxonomy-list a {
    font-size: 0.95rem;
    display: block;
    padding: 0.75rem 1rem;
    color: var(--e-global-color-secondary);
    text-decoration: none;
    transition: background-color 0.2s;
}

.faq-categories a:hover,
.category-item > a:hover,
.faq-post-item a:hover,
.parent-taxonomy-list a:hover,
.child-taxonomy-list a:hover {
    background-color: #e0e0e0;
}

/* .faq-categories li.active a {
    background-color: #007bff;
    color: white;
} */

.faqs-accordion {
    max-width: 100%;
    margin: 0;
}

.faq-item {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    text-align: left;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    background-color: #ffffff;
    border: 1px solid #c4d4e6;
    margin-bottom: 0.5rem;
}

.faq-question:hover{
  border: 1px solid var(--e-global-color-secondary,#003087);
}

.faq-icon {
    width: 12px;
    height: 12px;
    position: relative;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-right: 6px;
}

.faq-icon::before,
.faq-icon::after {
    display: none;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(-135deg);
    margin-top: 6px;
}

.faq-answer {
    padding: 0 1rem 1rem;
}

.faq-answer[hidden] {
    display: none;
}

/* Responsive layout */
@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr;
    }
    
    .faq-sidebar {
        margin-bottom: 2rem;
    }
}

/* Update sidebar styles */
.faq-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 1rem;
    background-color: #f0f0f0;
}

.category-item > a {
    display: block;
    padding: 0.75rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    border: 1px solid #ebebeb;
}

.category-item.active > a {
    background-color: #c4d4e6;
    color: var(--e-global-color-secondary);
}

.category-item.active{
  border-left: 5px solid var(--e-global-color-secondary,#003087);
}

.category-item.active > a:hover {
    background-color: #e0e0e0;
}

.faq-post-list {
    list-style: none;
    padding-left: 1rem;
    margin: 0.5rem 0;
    background-color: #ffffff;
}

.faq-post-item {
    margin: 0 0 0.5rem 0;
    border: 1px solid #ebebeb;
}

.faq-post-item a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--e-global-color-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    
}

.faq-post-item.active a {
    font-weight: bold;
    border-left: 5px solid var(--e-global-color-secondary);
}

.faq-post-item a:hover {
    background-color: #e0e0e0;
}

.entry-header{
  text-align: left;
  color: var(--e-global-color-primary,#009639);
}

.taxonomy-title{
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--e-global-color-secondary,#003087);
}

.faq-category-content{
  h1{
    color: #474747;
  }
  h2{
    color: var(--e-global-color-secondary,#003087);
  }
  .related-faqs-title{
    color: var(--e-global-color-secondary,#003087);
  }
  h4{
    color: var(--e-global-color-primary,#009639);
  }

  .taxonomy-list,
  .posts-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
  }

  .taxonomy-list li,
  .posts-list li {
    margin-bottom: 0.5rem;
    border: 1px solid #ebebeb;
    background-color: #f0f0f0;
  }

  .taxonomy-list a,
  .posts-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s;
  }

  .taxonomy-list a:hover,
  .posts-list a:hover {
    background-color: #e0e0e0;
  }

  /* Style for child posts sections */
  .taxonomy-posts {
    margin: 2rem 0;
  }

  /* Add spacing between sections */
  .tax-list-title,
  .related-faqs-title {
    margin: 2rem 0 1rem;
  }

  /* Style for the primary posts section */
  .primary-posts {
    margin-top: 2rem;
  }

  /* Style for child term sections */
  .child-posts {
    margin: 1.5rem 0;
    
    h4 {
      margin-bottom: 1rem;
    }
  }
}

.category-item.active > a,
.faq-post-item.active a,
.parent-taxonomy-list li.active > a,
.child-taxonomy-list li.active > a {
    font-weight: bold;
    background-color: #c4d4e6;
}

.faq-post-item:last-child,
.category-item:last-child {
    margin-bottom: 0;
}

/* Update the last FAQ question to remove bottom margin */
.faq-item:last-child .faq-question {
    margin-bottom: 0;
}