/**
 * FAQ Accordion Widget
 * From: .faq in training.html
 * Prefix: .nw-faq-
 */

.nw-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.nw-faq-accordion .nw-faq__item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
}

.nw-faq-accordion .nw-faq__item:hover {
  border-color: rgba(17, 181, 228, 0.3);
}

.nw-faq-accordion .nw-faq__item.nw-faq__item--active {
  border-color: rgba(17, 181, 228, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.nw-faq-accordion .nw-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 24px 24px;
  background: #ffffff !important;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.nw-faq-accordion .nw-faq__question:focus {
  outline: none;
  outline-offset: -2px;
}

.nw-faq-accordion .nw-faq__question-text {
  font-size: 18px;
  font-weight: 600;
  color: #0a0f1a;
  line-height: 1.4;
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* FAQ Badge */
.nw-faq-accordion .nw-faq__badge {
  display: inline-flex;
  align-items: center;
  background: #11B5E4;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.nw-faq-accordion .nw-faq__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 181, 228, 0.1);
  border-radius: 8px;
  color: #11B5E4;
  transition: all 0.3s ease;
}

.nw-faq-accordion .nw-faq__icon svg {
  width: 20px !important;
  height: 20px !important;
  display: block;
}

.nw-faq-accordion .nw-faq__item.nw-faq__item--active .nw-faq__icon {
  background: #11B5E4;
  color: #ffffff;
  transform: rotate(45deg);
}

.nw-faq-accordion .nw-faq__answer {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0 !important;
}

.nw-faq-accordion .nw-faq__item.nw-faq__item--active .nw-faq__answer {
  max-height: 2000px !important;
  opacity: 1 !important;
}


.nw-faq-accordion .nw-faq__answer-text {
  font-size: 16px;
  line-height: 1.6;
  color: #64625a;
  margin: 0;
}

.nw-faq-accordion .nw-faq__answer-text p {
  margin: 0 0 12px 0;
}

.nw-faq-accordion .nw-faq__answer-text p:last-child {
  margin-bottom: 0;
}

.nw-faq-accordion .nw-faq__answer-text {
  margin-bottom: 0;
}

.nw-faq-accordion .nw-faq__answer-text a {
  color: #11B5E4;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nw-faq-accordion .nw-faq__answer-text a:hover {
  color: #0891b2;
}

.nw-faq-accordion .nw-faq__answer-text strong,
.nw-faq-accordion .nw-faq__answer-text b {
  font-weight: 600;
  color: #0a0f1a;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nw-faq-accordion .nw-faq__question {
    padding: 20px;
    gap: 12px;
  }
  
  .nw-faq-accordion .nw-faq__question-text {
    font-size: 16px;
  }
  
  .nw-faq-accordion .nw-faq__icon {
    width: 28px;
    height: 28px;
  }
  
  .nw-faq-accordion .nw-faq__icon svg {
    width: 14px !important;
    height: 14px !important;
  }
  
  .nw-faq-accordion .nw-faq__answer-inner {
    padding:  20px 20px !important;
  }
  
  .nw-faq-accordion .nw-faq__answer-text {
    font-size: 15px;
  }
}
