/* FAQ accordion, used on career-accelerators.html (paired with /app/shared/faq/faq.js) */
.faq-section {
    padding: 4rem 1rem;
    /* Themakleur, geen vaste hex: met een hardgecodeerde lichte tint werd dit
       in donkere modus een licht blok met lichte tekst erop — onleesbaar. */
    background-color: var(--light-light-gray);
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
}

.faq-container {
    max-width: 800px; /* Constrain width for readability */
    margin: 0 auto;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden; /* Ensures child borders don't poke out */
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none; /* Remove border from the last item */
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--light-light-gray);
}

.faq-arrow {
    flex-shrink: 0; /* Prevents the icon from shrinking */
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--dark_gray);
    font-size: 1rem;
    line-height: 1.7;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Active state for accordion item */
.faq-item.active .faq-question {
    color: var(--primary-color); /* Change color on active */
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust if your answers are longer */
}

@media (max-width: 670px) {
  /* Remove the side padding on the section itself */
  .faq-section {
    padding: 4rem 0;   /* top/bottom only, no left/right */
  }

  /* Make the container full-width and flush with the edges */
  .faq-container {
    width: 100%;
    max-width: 100%;
    margin: 0;              /* kills centering */
    border-radius: 0;       /* square corners */
    border-left: none;      /* no left border */
    border-right: none;     /* no right border */
  }

  .faq-title {
    font-size: 2rem;

    }

   .container {
    padding: 0;
  }
}


