/* Modern FAQ Styling */
.faq-container {
  max-width: 800px;
  margin: 0 auto 40px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.faq-item {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.faq-question {
  padding: 20px 25px;
  background-color: #f8f9fa;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #f1f3f5;
}

.faq-question h5 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  flex-grow: 1;
  line-height: 1.4;
}

.faq-question:after {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 20px;
  color: #1d74c0;
  transition: transform 0.3s ease;
  margin-left: 15px;
  flex-shrink: 0;
}

.faq-question.collapsed:after {
  transform: rotate(0deg);
}

.faq-question:not(.collapsed):after {
  transform: rotate(-180deg);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 16px;
  line-height: 1.6;
  color: #4a5568;
}

.faq-question:not(.collapsed) + .faq-answer {
  padding: 0 25px 20px;
  max-height: 2000px;
}

.faq-question:not(.collapsed) {
  background-color: #e9f5ff;
  border-left: 4px solid #1d74c0;
}

.faq-answer p {
  margin: 0 0 15px 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

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

.faq-answer li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 5px;
}

.faq-answer li:last-child {
  margin-bottom: 0;
}

/* Make checkmarks in lists stand out */
.faq-answer p:has(> strong:first-child) {
  position: relative;
  padding-left: 25px;
}

.faq-answer p:has(> strong:first-child):before {
  content: '✓';
  color: #1d74c0;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .faq-container {
    padding: 0 15px;
  }
  
  .faq-question {
    padding: 16px 20px;
  }
  
  .faq-question h5 {
    font-size: 18px;
  }
  
  .faq-answer {
    font-size: 15px;
  }
  
  .faq-question:not(.collapsed) + .faq-answer {
    padding: 0 20px 16px;
  }
}
