/*
 * Worxogo FAQ Accordion Widget CSS
 *
 * Elementor FAQ Accordion Widget Styles
 */

/* ===== FAQ SECTION ===== */
.faq-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.faq-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-header {
  text-align: center;
}

.faq-title {
  font-family: "Albert Sans", sans-serif;
  font-size: 48px;
  line-height: 110%;
  font-weight: 700;
  color: #4000a9;
  margin: 0;
  letter-spacing: -0.02em;
}

.faq-accordion {
  display: grid;
  gap: 20px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.faq-accordion.faq-columns-1 {
  grid-template-columns: 1fr;
}

.faq-accordion.faq-columns-2 {
  grid-template-columns: 1fr 1fr;
}

.faq-item {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.3s ease;
  overflow: hidden;
  border-top: 1px solid rgba(229, 231, 235, 0.3);
  border-bottom: 1px solid rgba(229, 231, 235, 0.3);
}

.faq-item:last-child {
  border-bottom: 1px solid #e5e7eb;
}

.faq-accordion.faq-columns-2 .faq-item:nth-child(odd):last-child,
.faq-accordion.faq-columns-2 .faq-item:nth-child(even):nth-last-child(2) {
  border-bottom: 1px solid #e5e7eb;
}

.faq-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  cursor: pointer !important;
  transition: all 0.3s ease;
  background: transparent;
  position: relative;
  z-index: 10;
}

.faq-item-header:hover {
  background: transparent;
}

.faq-question {
  font-family: "Albert Sans", sans-serif;
  font-size: 16px !important;
  line-height: 140%;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  flex: 1;
  text-align: left;
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

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

.faq-icon {
  width: 12px;
  height: 8px;
  fill: #6b7280;
  transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
  fill: #6b7280;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  background: transparent;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 500px;
  padding: 0 32px 24px 32px;
  opacity: 1;
}

.faq-answer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-answer p {
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 150%;
  color: #4b5563;
  margin: 0;
}

.faq-answer p strong {
  color: #1f2937;
  font-weight: 600;
}

.faq-answer ul {
  margin: 0;
  padding-left: 20px;
}

.faq-answer li {
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 150%;
  color: #4b5563;
  margin-bottom: 8px;
}

.faq-answer li strong {
  color: #1f2937;
  font-weight: 600;
}

.faq-answer ul ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

.faq-answer ul ul li {
  margin-bottom: 4px;
}

/* FAQ Responsive Design */
@media (max-width: 1024px) {
  .faq-accordion.faq-columns-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .faq-title {
    font-size: 36px;
  }

  .faq-container {
    gap: 30px;
  }

  .faq-item-header {
    padding: 20px 24px;
  }

  .faq-question {
    font-size: 16px;
  }

  .faq-item.active .faq-content {
    padding: 0 24px 20px 24px !important;
  }

  .faq-answer p,
  .faq-answer li {
    font-size: 14px;
  }

  .faq-toggle {
    width: 28px;
    height: 28px;
  }

  .faq-icon {
    width: 10px;
    height: 7px;
  }
}

@media (max-width: 576px) {
  .faq-title {
    font-size: 28px;
  }

  .faq-container {
    gap: 20px;
  }

  .faq-item-header {
    padding: 16px 20px;
  }

  .faq-question {
    font-size: 15px;
  }

  .faq-item.active .faq-content {
    padding: 0 20px 16px 20px !important;
  }

  .faq-answer p,
  .faq-answer li {
    font-size: 13px;
  }

  .faq-toggle {
    width: 24px;
    height: 24px;
  }

  .faq-icon {
    width: 8px;
    height: 6px;
  }
}

/* Animation for scroll effect */
.faq-section.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-section.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}
