/* FAQ Page Styles */

.faq-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.faq-header {
  margin-bottom: 48px;
}

.faq-header h1 {
  margin: 0 0 16px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.faq-header p {
  margin: 0;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Accordion styles */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.2s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item:hover {
  background-color: #f9f9f9;
}

/* Question button */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  transition: all 0.2s ease;
}

.faq-question:hover {
  color: #1f6feb;
}

.faq-question[aria-expanded="true"] {
  background-color: #f5f5f5;
  color: #1f6feb;
}

.faq-question:focus {
  outline: 2px solid #1f6feb;
  outline-offset: -2px;
}

/* Toggle icon */
.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.3s ease;
  color: #1f6feb;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

/* Answer content */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fafafa;
  padding: 0 24px;
}

.faq-answer[aria-hidden="false"] {
  padding: 20px 24px;
}

.faq-answer p {
  margin: 0;
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-answer ul,
.faq-answer ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #555;
  line-height: 1.7;
}

.faq-answer li {
  margin: 8px 0;
}

.faq-answer a {
  color: #1f6feb;
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .faq-container {
    margin: 32px auto;
  }

  .faq-header h1 {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }

  .faq-header p {
    font-size: 1rem;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 18px;
  }

  .faq-answer[aria-hidden="false"] {
    padding: 16px 18px;
  }

  .faq-answer p,
  .faq-answer ul,
  .faq-answer ol {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .faq-container {
    padding: 0 16px;
    margin: 24px auto;
  }

  .faq-header h1 {
    font-size: 1.5rem;
  }

  .faq-question {
    padding: 14px 14px;
    font-size: 0.9rem;
  }

  .faq-answer {
    padding: 0 14px;
  }

  .faq-answer[aria-hidden="false"] {
    padding: 14px 14px;
  }

  .faq-icon {
    width: 20px;
    height: 20px;
  }
}

/* Print styles */
@media print {
  .faq-question {
    cursor: text;
  }

  .faq-item:hover {
    background-color: transparent;
  }

  .faq-question[aria-expanded="false"] + .faq-answer {
    display: block;
    max-height: none;
    padding: 20px 24px;
  }
}
