.page-community-forum {
  color: #ffffff; /* Body background is dark, so use light text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #0d0d0d; /* Slightly lighter than black for better contrast with pure black elements */
}

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

/* Top spacing for fixed header */
.page-community-forum__intro-section {
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #336699, #1a334d); /* Dark blue gradient */
  text-align: center;
}

.page-community-forum__main-title {
  font-size: 42px;
  font-weight: bold;
  color: #FFCC00; /* Gold for main title */
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-community-forum__description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-community-forum__description strong {
  color: #FFCC00;
}

.page-community-forum__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-community-forum__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-community-forum__cta-button--primary {
  background: #FFCC00; /* Gold primary button */
  color: #333333;
}

.page-community-forum__cta-button--primary:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-community-forum__cta-button--secondary {
  background: #336699; /* Deep blue secondary button */
  color: #ffffff;
  border: 2px solid #FFCC00;
}

.page-community-forum__cta-button--secondary:hover {
  background: #2a527a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-community-forum__intro-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-community-forum__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: #FFCC00; /* Gold for section titles */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-community-forum__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #e0e0e0;
}

/* Forum Section */
.page-community-forum__forum-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Darker background for contrast */
}

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

.page-community-forum__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white card for dark background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

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

.page-community-forum__card-image {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-community-forum__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFCC00;
}

.page-community-forum__card-link {
  color: #FFCC00;
  text-decoration: none;
}

.page-community-forum__card-link:hover {
  text-decoration: underline;
  color: #e6b800;
}

.page-community-forum__card-text {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 25px;
}

.page-community-forum__button {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-community-forum__button--read-more {
  background: #336699;
  color: #ffffff;
}

.page-community-forum__button--read-more:hover {
  background: #2a527a;
  transform: translateY(-1px);
}

/* News & Events Section */
.page-community-forum__news-events-section {
  padding: 60px 0;
  background-color: #0d0d0d;
}

.page-community-forum__news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.page-community-forum__news-item {
  display: flex;
  flex-direction: row;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-community-forum__news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.page-community-forum__news-image {
  width: 300px; /* Fixed width for desktop */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  flex-shrink: 0;
}

.page-community-forum__news-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-community-forum__news-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFCC00;
}

.page-community-forum__news-link {
  color: #FFCC00;
  text-decoration: none;
}

.page-community-forum__news-link:hover {
  text-decoration: underline;
  color: #e6b800;
}

.page-community-forum__news-meta {
  font-size: 14px;
  color: #aaaaaa;
  margin-bottom: 10px;
}

.page-community-forum__news-excerpt {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-community-forum__view-all {
  text-align: center;
  margin-top: 20px;
}

.page-community-forum__button--view-all {
  background: #FFCC00;
  color: #333333;
  padding: 12px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-community-forum__button--view-all:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-community-forum__promotions-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-community-forum__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-community-forum__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-community-forum__promo-image {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-community-forum__promo-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFCC00;
}

.page-community-forum__promo-link {
  color: #FFCC00;
  text-decoration: none;
}

.page-community-forum__promo-link:hover {
  text-decoration: underline;
  color: #e6b800;
}

.page-community-forum__promo-text {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 25px;
}

.page-community-forum__button--view-promo {
  background: #FFCC00;
  color: #333333;
  padding: 12px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-community-forum__button--view-promo:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

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

.page-community-forum__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-community-forum__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-community-forum__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #e0e0e0;
}

.page-community-forum__faq-item.active .page-community-forum__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter for answer background */
  border-radius: 0 0 5px 5px;
}

.page-community-forum__faq-answer p {
  margin-bottom: 0;
}

.page-community-forum__faq-answer a {
  color: #FFCC00;
  text-decoration: underline;
}

.page-community-forum__faq-answer a:hover {
  color: #e6b800;
}

.page-community-forum__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #336699; /* Deep blue for question background */
  border: 1px solid #2a527a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-community-forum__faq-question:hover {
  background: #2a527a;
  border-color: #1f3e5c;
}

.page-community-forum__faq-question:active {
  background: #1f3e5c;
}

.page-community-forum__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-community-forum__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFCC00; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-community-forum__faq-item.active .page-community-forum__faq-toggle {
  color: #e6b800;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-community-forum__main-title {
    font-size: 38px;
  }
  .page-community-forum__section-title {
    font-size: 32px;
  }
  .page-community-forum__news-image {
    width: 250px;
    height: 180px;
  }
  .page-community-forum__news-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-community-forum__intro-section {
    padding-top: 140px; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }
  .page-community-forum__main-title {
    font-size: 32px;
  }
  .page-community-forum__description {
    font-size: 16px;
  }
  .page-community-forum__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-community-forum__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-community-forum__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-community-forum__section-description {
    font-size: 15px;
    margin-bottom: 40px;
  }
  .page-community-forum__grid {
    grid-template-columns: 1fr;
  }
  .page-community-forum__card {
    padding: 25px;
  }
  .page-community-forum__card-image {
    height: 200px;
  }
  .page-community-forum__card-title {
    font-size: 20px;
  }
  .page-community-forum__news-item {
    flex-direction: column;
  }
  .page-community-forum__news-image {
    width: 100%;
    height: 220px;
    border-radius: 10px 10px 0 0;
  }
  .page-community-forum__news-content {
    padding: 20px;
  }
  .page-community-forum__news-title {
    font-size: 18px;
  }
  .page-community-forum__news-excerpt {
    font-size: 15px;
  }
  .page-community-forum__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-community-forum__promo-card {
    padding: 25px;
  }
  .page-community-forum__promo-image {
    height: 200px;
  }
  .page-community-forum__promo-title {
    font-size: 20px;
  }
  .page-community-forum__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-community-forum__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-community-forum__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-community-forum__faq-answer {
    padding: 0 15px;
  }
  .page-community-forum__faq-item.active .page-community-forum__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-community-forum__main-title {
    font-size: 28px;
  }
  .page-community-forum__section-title {
    font-size: 24px;
  }
  .page-community-forum__cta-button {
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-community-forum__card-image {
    height: 180px;
  }
  .page-community-forum__news-image {
    height: 180px;
  }
  .page-community-forum__promo-image {
    height: 180px;
  }
  .page-community-forum__faq-question h3 {
    font-size: 14px;
  }
}