/* --- FAQ Page Styles --- */
.faq-layout {
    display: flex;
    flex-direction: column;
    gap: calc(1 * var(--card-section-spacing-desktop));
    margin-top: calc(6 * var(--spacing-unit));
}

.faq-nav-container {
    flex-shrink: 0;
}

.faq-nav {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: var(--spacing-unit);
    padding-bottom: 12px;
}

.faq-nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 16px;
    font-weight: 600;
    white-space: wrap;
     border: 1px solid var(--main-card-border);
    border-radius: 8px;
    background-color: var(--bg-color);
}

.faq-nav-link:hover {
    background-color: var(--button-hover-color);
    color: var(--button-text-hover-active);
}

.faq-nav-link.active {
    background-color: var(--button-bg);
    color: var(--button-text-color);
    border: 1px solid var(--main-card-border);
}

.faq-content {
    flex-grow: 1;
}

.faq-category {
    display: none;
 }

.faq-category.active {
    display: block;
}

.faq-item {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--main-card-border); /* Add a border for visual separation */
    border-radius: 8px; /* Add border-radius for modern look */
}

.faq-question {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
     align-items: center;
    text-align: left;
    background: var(--card-bg);
    cursor: pointer;
    padding: 16px; /* Add padding to the button itself */
    border-bottom: 1px solid var(--card-border);
    border: none;
    color: var(--text-color); /* Use the text color variable */
}

/* Updated rule to target the SVG's path for color */
.faq-question svg path {
    color: var(--bg-color);
    transition: fill 0.3s ease;
    background-color: var(--bg-color);
 }

.faq-question svg {
    width: 24px;
    height: 24px;
        color: var(--faq-icon-color);
        border-radius: 24px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    border-top: 1px solid var(--card-border);
}

.faq-answer p {
    margin: 16px;
    padding-top: 8px; /* Add padding to the paragraph */
    color: var(--text-color);
 }
.faq-answer a {
    display: inline;
    word-break: break-word; /* prevents long URLs from stretching */
    padding: 0;
    margin: 0;
    color: var(--link-color);
}
 
.faq-item.open .faq-answer {
max-height: 1000px;    text-decoration: none;
}

/* Updated rule for icon rotation */
.faq-item.open svg {
    transform: rotate(180deg);
}

/* Responsive Layout for FAQ Page */
@media (min-width: 768px) {
    .faq-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
    .faq-nav-container {
        width: 240px;
    }
    .faq-nav {
        flex-direction: column;
        position: sticky;
        top: 104px;
    }
 
}

@media (min-width: 268px)  {  
 .faq-nav-link {
        max-height: 80px;
        overflow-y: auto;
        min-width: 120px;
        font-size: 14px;
    }
}




.accordion {
  max-width: 600px;
  margin: 2rem auto;
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
  width: 100%;
  background: var(--bg-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.accordion-header:hover {
  background: #f9f9f9;
}
 
.accordion-content {
  display: none;
  padding: 1rem 2rem;
  background: #fafafa;
  font-size: 0.95rem;
  line-height: 1.5;
}

.accordion-item.active .accordion-content {
  display: block;
}

.accordion-item.active .icon {
  transform: rotate(180deg); /* rotates caret-down into caret-up */
}
