
/* Hide the invisible checkbox control */
.aelms-course-faq-checkbox {
  display: none !important;
}

/* Make header label clickable */
.aelms-course-faq-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  color: var(--acadlix-text-primary);
}

/* Content initial collapsed state with smooth transition */
.aelms-course-faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

/* Icon rotation transition */
.aelms-course-faq-icon {
  transition: transform 0.3s ease;
}

/* Expand Content */
.aelms-course-faq-checkbox:checked+.aelms-course-faq-header+.aelms-course-faq-answer {
  max-height: 500px;
  /* Adjust if answers are extremely long */
  opacity: 1;
  /* padding: 8px 16px; */
}

/* Rotate Chevron Icon */
.aelms-course-faq-checkbox:checked+.aelms-course-faq-header .aelms-course-faq-icon {
  transform: rotate(180deg);
}