/* FAQ Section Styles */
.faq-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  margin: 3rem 0;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #6f42c1, #e83e8c, #fd7e14);
  border-radius: 16px 16px 0 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #2c3e50;
  background: linear-gradient(135deg, #007bff, #6f42c1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #007bff;
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question:hover {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.faq-question:focus {
  outline: 2px solid #007bff;
  outline-offset: -2px;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
  flex: 1;
  padding-right: 1rem;
}

.faq-icon {
  font-size: 1rem;
  color: #007bff;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-question[aria-expanded='true'] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.faq-question[aria-expanded='true'] + .faq-answer {
  max-height: 200px;
  padding: 1.5rem 2rem;
}

.faq-answer p {
  margin: 0;
  color: #495057;
  line-height: 1.7;
  font-size: 1rem;
}

/* 키워드 강조 스타일 */
.faq-answer p strong,
.faq-question h3 strong {
  color: #007bff;
  font-weight: 600;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .faq-section {
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 12px;
  }

  .faq-container {
    padding: 0 1rem;
  }

  .faq-title {
    font-size: 2rem;
  }

  .faq-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .faq-question {
    padding: 1.25rem 1.5rem;
  }

  .faq-question h3 {
    font-size: 1.1rem;
    padding-right: 0.75rem;
  }

  .faq-question[aria-expanded='true'] + .faq-answer {
    padding: 1.25rem 1.5rem;
  }

  .faq-answer p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 2rem 0;
    margin: 1.5rem 0;
  }

  .faq-container {
    padding: 0 0.75rem;
  }

  .faq-title {
    font-size: 1.75rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  .faq-question[aria-expanded='true'] + .faq-answer {
    padding: 1rem 1.25rem;
    max-height: 250px;
  }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-question,
  .faq-answer,
  .faq-icon {
    transition: none;
  }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .faq-section {
    background: #ffffff;
    border: 2px solid #000000;
  }

  .faq-item {
    border: 2px solid #000000;
  }

  .faq-question h3 {
    color: #000000;
  }

  .faq-icon {
    color: #000000;
  }

  .faq-answer p {
    color: #000000;
  }
}

/* 다크 모드 지원 (향후 확장용) */
@media (prefers-color-scheme: dark) {
  .faq-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  }

  .faq-item {
    background: #34495e;
    border-color: #4a5568;
  }

  .faq-question h3 {
    color: #e2e8f0;
  }

  .faq-answer {
    background: #2d3748;
    border-color: #4a5568;
  }

  .faq-answer p {
    color: #cbd5e0;
  }

  .faq-title {
    color: #e2e8f0;
  }

  .faq-subtitle {
    color: #a0aec0;
  }
}
