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

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

.page-community-forum__section-title {
  color: #003366;
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-community-forum__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFCC00;
  border-radius: 2px;
}

.page-community-forum__section-description {
  text-align: center;
  font-size: 1.1em;
  color: #555;
  margin-bottom: 60px;
}

.page-community-forum__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.page-community-forum__btn--primary {
  background-color: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

.page-community-forum__btn--primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
  color: #002244;
}

.page-community-forum__btn--secondary {
  background-color: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-community-forum__btn--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
}

.page-community-forum__btn--outline {
  background-color: transparent;
  color: #003366;
  border: 1px solid #003366;
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-community-forum__btn--outline:hover {
  background-color: #003366;
  color: #fff;
}

.page-community-forum__btn--lg {
  padding: 15px 35px;
  font-size: 1.1em;
}

/* Hero Section */
.page-community-forum__hero {
  background: linear-gradient(135deg, #003366 0%, #004488 100%);
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-community-forum__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFCC00;
}

.page-community-forum__hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-community-forum__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* About Section */
.page-community-forum__about {
  padding: 80px 0;
  background-color: #fff;
}

.page-community-forum__about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-community-forum__about-text {
  flex: 1;
  font-size: 1.1em;
  color: #444;
}

.page-community-forum__about-text p {
  margin-bottom: 15px;
}

.page-community-forum__about-image {
  flex: 1;
  text-align: center;
}

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

/* Features Section */
.page-community-forum__features {
  padding: 80px 0;
  background-color: #f0f4f7;
}

.page-community-forum__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-community-forum__feature-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-community-forum__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-community-forum__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.page-community-forum__feature-item h3 {
  color: #003366;
  font-size: 1.4em;
  margin-bottom: 15px;
}

.page-community-forum__feature-item p {
  color: #666;
  font-size: 0.95em;
}

/* Forum Sections */
.page-community-forum__forum-sections {
  padding: 80px 0;
  background-color: #fff;
}

.page-community-forum__section-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-community-forum__section-item {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-community-forum__section-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-community-forum__section-item-title {
  font-size: 1.5em;
  color: #003366;
  margin-bottom: 15px;
}

.page-community-forum__section-item-title a {
  color: #003366;
  text-decoration: none;
}

.page-community-forum__section-item-title a:hover {
  color: #FFCC00;
}

.page-community-forum__section-item-description {
  color: #555;
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* CTA Section */
.page-community-forum__cta-section {
  background: linear-gradient(135deg, #003366, #004488);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.page-community-forum__cta-section .page-community-forum__section-title {
  color: #FFCC00;
}

.page-community-forum__cta-section .page-community-forum__section-title::after {
  background-color: #fff;
}

.page-community-forum__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-community-forum__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Testimonial Section */
.page-community-forum__testimonial-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.page-community-forum__testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-community-forum__testimonial-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-community-forum__testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #FFCC00;
}

.page-community-forum__testimonial-text {
  font-style: italic;
  color: #444;
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-community-forum__testimonial-author {
  font-weight: bold;
  color: #003366;
}

/* FAQ Section */
.page-community-forum__faq-section {
  padding: 80px 0;
  background-color: #fff;
}

.page-community-forum__faq-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-community-forum__faq-item {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-community-forum__faq-question {
  color: #003366;
  font-size: 1.25em;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-community-forum__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #FFCC00;
  transition: transform 0.3s ease;
}

.page-community-forum__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-community-forum__faq-answer {
  color: #555;
  font-size: 1em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding-top: 0;
}

.page-community-forum__faq-answer.active {
  max-height: 200px; /* Adjust as needed */
  padding-top: 15px;
}

/* Contact CTA */
.page-community-forum__contact-cta {
  background-color: #003366;
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.page-community-forum__contact-cta .page-community-forum__section-title {
  color: #FFCC00;
}

.page-community-forum__contact-cta .page-community-forum__section-title::after {
  background-color: #fff;
}

.page-community-forum__contact-cta .page-community-forum__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-community-forum__hero-title {
    font-size: 3em;
  }
  .page-community-forum__hero-subtitle {
    font-size: 1.3em;
  }
  .page-community-forum__about-content {
    flex-direction: column;
  }
  .page-community-forum__section-title {
    font-size: 2em;
  }
  .page-community-forum__features-grid,
  .page-community-forum__section-list,
  .page-community-forum__testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-community-forum__hero {
    padding: 80px 0;
  }
  .page-community-forum__hero-title {
    font-size: 2.5em;
  }
  .page-community-forum__hero-subtitle {
    font-size: 1.1em;
  }
  .page-community-forum__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-community-forum__btn--lg {
    width: 80%;
    margin: 0 auto;
  }
  .page-community-forum__section-title {
    font-size: 1.8em;
  }
  .page-community-forum__section-description {
    font-size: 1em;
  }
  .page-community-forum__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-community-forum__hero-title {
    font-size: 2em;
  }
  .page-community-forum__hero-subtitle {
    font-size: 1em;
  }
  .page-community-forum__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-community-forum__btn--lg {
    width: 90%;
  }
  .page-community-forum__section-title {
    font-size: 1.5em;
  }
  .page-community-forum__feature-item,
  .page-community-forum__section-item,
  .page-community-forum__testimonial-card,
  .page-community-forum__faq-item {
    padding: 20px;
  }
  .page-community-forum__faq-question {
    font-size: 1.1em;
  }
}