/* assets/css/frontend.css */
.faq-container {
  background: #f8f8f8;
}

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

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  background: #f8f8f8;
  border: none;
  text-align: left;
  transition: background-color 0.3s ease;
}

.accordion-button:hover {
  background-color: #f8f8f8;
}

.accordion-button span:first-child {
  flex: 1;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.icon i {
  font-size: 14px;
  color: #666;
  transition: transform 0.3s ease;
}

.accordion-item.active .icon i {
  transform: rotate(90deg);
}

.accordion-content {
  overflow: hidden;
  transition: height 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
  background: #f8f8f8;
  height: 0px;
  margin: 0px;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  /* Height, margin, and opacity will be set by JavaScript */
  background: #f8f8f8;
}

.accordion-content p {
  padding: 20px 25px;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

/* Remove the JavaScript since you have your own */

.accordion-item.active .accordion-button {
  background-color: #f8f8f8;
}

/* Alternative design using + and - instead of chevron */
.accordion-button::before {
  content: "+";
  font-size: 20px;
  font-weight: bold;
  color: #666;
  margin-right: 15px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-item.active .accordion-button::before {
  content: "−";
}

/* Hide the chevron icon and use + - instead */
.icon {
  display: none;
}
