/* FAQ accordions that expand on click - interactive version */
.faq-container {
  max-width: 800px;
  margin: 40px auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.faq-container:not(:has(.faq-question)) {
  opacity: 0.5; /* Fall back for browsers that don't support :has */
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #1e3c72;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  position: relative;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(145deg, #f8f9fa, #f1f3f5);
}

.faq-question.active {
  background: linear-gradient(145deg, #f1f3f5, #e9ecef);
}

.heading-faq {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1b1f;
  flex: 1;
  padding-right: 20px;
}

.faq-plus {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
  color: #ffffff;
  border-radius: 50%;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-question.active .faq-plus {
  transform: rotate(45deg);
  background: linear-gradient(90deg, #16305a 0%, #1e3c72 100%);
}

.faq-answer {
  max-height: 0;
  padding: 0 25px;
  overflow: hidden;
  background-color: #ffffff;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer.active {
  max-height: 500px;
  padding: 5px 25px 25px;
}

.paragraph-light {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Animation effect for answer expansion */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer.animated {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .faq-container {
    padding: 0 15px;
  }
  
  .heading-faq {
    font-size: 16px;
  }
  
  .faq-question {
    padding: 15px 20px;
  }
  
  .faq-answer {
    padding: 0 20px;
  }
  
  .faq-answer.active {
    padding: 5px 20px 20px;
  }
  
  .paragraph-light {
    font-size: 14px;
  }
}

/* Focus states for accessibility */
.faq-question:focus {
  outline: 2px solid #1e3c72;
  box-shadow: 0 0 0 2px rgba(30, 60, 114, 0.2);
}

.faq-question:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
