/* style/community-qna.css */
.page-community-qna {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
}

.page-community-qna__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-community-qna__hero {
  background-color: #0A2463; /* Main color */
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-community-qna__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 36, 99, 0.9), rgba(255, 215, 0, 0.2)); /* Gradient with main and aux color */
  z-index: 1;
}

.page-community-qna__hero .page-community-qna__container {
  position: relative;
  z-index: 2;
}

.page-community-qna__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  font-weight: bold;
}

.page-community-qna__hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-community-qna__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-community-qna__btn--primary {
  background-color: #FFD700; /* Auxiliary color */
  color: #0A2463; /* Main color for text */
}

.page-community-qna__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-community-qna__btn--secondary {
  background-color: #0A2463; /* Main color */
  color: #FFD700; /* Auxiliary color for text */
  border: 2px solid #FFD700;
}

.page-community-qna__btn--secondary:hover {
  background-color: #1a3a7c;
  transform: translateY(-2px);
}

/* FAQ Sections */
.page-community-qna__faq-sections {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-community-qna__section-title {
  font-size: 2.5em;
  color: #0A2463; /* Main color */
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-community-qna__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Auxiliary color */
  border-radius: 2px;
}

.page-community-qna__accordion {
  margin-top: 30px;
}

.page-community-qna__accordion-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-community-qna__accordion-header {
  font-size: 1.6em;
  color: #0A2463; /* Main color */
  padding: 20px 30px;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0f4f7; /* Lighter background for headers */
  border-bottom: 1px solid #e0e0e0;
}

.page-community-qna__accordion-header::after {
  content: '+';
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #FFD700;
}

.page-community-qna__accordion-item.active .page-community-qna__accordion-header::after {
  transform: rotate(45deg);
}

.page-community-qna__accordion-content {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-community-qna__accordion-item.active .page-community-qna__accordion-content {
  max-height: 1000px; /* Adjust as needed for content length */
  padding: 20px 30px;
}

.page-community-qna__question-answer {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #eee;
}

.page-community-qna__question-answer:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-community-qna__question-answer h4 {
  font-size: 1.25em;
  color: #0A2463; /* Main color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-community-qna__question-answer p {
  font-size: 1.05em;
  color: #555;
}

.page-community-qna__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-community-qna__image-wrapper {
  text-align: center;
  margin: 30px 0;
}

/* CTA Banner */
.page-community-qna__cta-banner {
  background-color: #0A2463; /* Main color */
  color: #FFFFFF;
  padding: 50px 30px;
  text-align: center;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-community-qna__cta-title {
  font-size: 2.2em;
  color: #FFD700; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-community-qna__cta-text {
  font-size: 1.15em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-community-qna__hero-title {
    font-size: 2.5em;
  }

  .page-community-qna__hero-subtitle,
  .page-community-qna__cta-text {
    font-size: 1em;
  }

  .page-community-qna__section-title {
    font-size: 2em;
  }

  .page-community-qna__accordion-header {
    font-size: 1.3em;
    padding: 15px 20px;
  }

  .page-community-qna__accordion-content {
    padding: 15px 20px;
  }

  .page-community-qna__question-answer h4 {
    font-size: 1.1em;
  }

  .page-community-qna__question-answer p {
    font-size: 0.95em;
  }

  .page-community-qna__btn {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-community-qna__cta-title {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .page-community-qna__hero {
    padding: 60px 0;
  }

  .page-community-qna__hero-title {
    font-size: 2em;
  }

  .page-community-qna__section-title {
    font-size: 1.8em;
  }

  .page-community-qna__accordion-header {
    font-size: 1.1em;
    padding: 12px 15px;
  }

  .page-community-qna__accordion-content {
    padding: 12px 15px;
  }

  .page-community-qna__question-answer h4 {
    font-size: 1em;
  }

  .page-community-qna__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-community-qna__cta-banner {
    padding: 40px 20px;
  }

  .page-community-qna__cta-title {
    font-size: 1.5em;
  }
}