.page-community-forum {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f5f5f5;
}

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

.page-community-forum h1, .page-community-forum h2, .page-community-forum h3 {
  color: #8B0000; /* Dark Red */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-community-forum h1 {
  font-size: 2.8em;
  text-align: center;
  color: #FFD700; /* Gold */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-community-forum h2 {
  font-size: 2.2em;
  text-align: center;
  padding-top: 40px;
  margin-bottom: 30px;
}

.page-community-forum h3 {
  font-size: 1.6em;
}

.page-community-forum p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-community-forum a {
  color: #8B0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-community-forum a:hover {
  color: #FFD700;
}

.page-community-forum .cta-button {
  display: inline-block;
  background: #FFD700; /* Gold */
  color: #8B0000; /* Dark Red */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: all 0.3s ease;
  border: 2px solid #FFD700;
}

.page-community-forum .cta-button:hover {
  background: #8B0000; /* Dark Red */
  color: #FFD700; /* Gold */
  border-color: #FFD700;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-community-forum .hero-forum-section {
  position: relative;
  width: 100%;
  padding: 60px 0;
  background: linear-gradient(135deg, #FFD700, #8B0000);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-community-forum .hero-forum-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.page-community-forum .hero-forum-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-community-forum .hero-forum-content {
  padding: 0 20px;
}

.page-community-forum .hero-forum-content h1 {
  color: #ffffff;
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.page-community-forum .hero-forum-content p {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

/* Category Grid */
.page-community-forum .forum-categories {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-community-forum .category-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-community-forum .category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-community-forum .category-card .category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-community-forum .category-card h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #8B0000;
}

.page-community-forum .category-card h3 .category-link {
  color: #8B0000;
}

.page-community-forum .category-card p {
  font-size: 1em;
  color: #555555;
}

/* Why Join Section */
.page-community-forum .why-join-forum {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-community-forum .why-join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-community-forum .why-join-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-community-forum .why-join-item:hover {
  transform: translateY(-5px);
}

.page-community-forum .why-join-item .why-join-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-community-forum .why-join-item h3 {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-community-forum .why-join-item p {
  font-size: 1em;
  color: #555555;
}

/* Guidelines Section */
.page-community-forum .forum-guidelines {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-community-forum .forum-guidelines ol {
  list-style: decimal;
  margin-left: 20px;
  padding-left: 0;
  font-size: 1.1em;
  color: #333333;
}

.page-community-forum .forum-guidelines ol li {
  margin-bottom: 10px;
}

.page-community-forum .forum-guidelines ol li strong {
  color: #8B0000;
}

/* Latest Discussions Section */
.page-community-forum .latest-discussions {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-community-forum .discussion-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-top: 40px;
}

.page-community-forum .discussion-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  padding: 20px;
  transition: box-shadow 0.3s ease;
}

.page-community-forum .discussion-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-community-forum .discussion-item .discussion-image {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-community-forum .discussion-item .discussion-content h3 {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-community-forum .discussion-item .discussion-content h3 .discussion-link {
  color: #8B0000;
}

.page-community-forum .discussion-item .discussion-content p {
  font-size: 1em;
  color: #555555;
  margin-bottom: 10px;
}

.page-community-forum .discussion-item .discussion-meta {
  font-size: 0.9em;
  color: #777777;
}

.page-community-forum .view-all-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  background: #FFD700;
  color: #8B0000;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid #FFD700;
}

.page-community-forum .view-all-button:hover {
  background: #8B0000;
  color: #FFD700;
  border-color: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.page-community-forum .faq-list {
  margin-top: 40px;
}

.page-community-forum .faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-community-forum .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fdfdfd;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-community-forum .faq-question:hover {
  background: #f5f5f5;
}

.page-community-forum .faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: #333333;
}

.page-community-forum .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-community-forum .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: #8B0000;
}

.page-community-forum .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #fff;
  color: #555555;
}

.page-community-forum .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 25px;
  border-top: 1px solid #eee;
}

.page-community-forum .faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-community-forum .hero-forum-content h1 {
    font-size: 3em;
  }
  .page-community-forum .hero-forum-content p {
    font-size: 1.2em;
  }
  .page-community-forum h2 {
    font-size: 2em;
  }
  .page-community-forum h3 {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-community-forum .hero-forum-section {
    padding: 40px 0;
  }
  .page-community-forum .hero-forum-content h1 {
    font-size: 2.5em;
  }
  .page-community-forum .hero-forum-content p {
    font-size: 1.1em;
  }
  .page-community-forum .cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-community-forum .category-grid, .page-community-forum .why-join-grid {
    grid-template-columns: 1fr;
  }
  .page-community-forum .discussion-item {
    flex-direction: column;
    text-align: center;
  }
  .page-community-forum .discussion-item .discussion-image {
    width: 100%;
    height: 180px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-community-forum .discussion-item .discussion-content h3 {
    font-size: 1.2em;
  }
  .page-community-forum .faq-question {
    padding: 15px 20px;
  }
  .page-community-forum .faq-question h3 {
    font-size: 1.1em;
  }
  .page-community-forum .faq-toggle {
    font-size: 20px;
  }
  .page-community-forum .faq-answer {
    padding: 0 20px;
  }
  .page-community-forum .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-community-forum .hero-forum-content h1 {
    font-size: 2em;
  }
  .page-community-forum .hero-forum-content p {
    font-size: 1em;
  }
  .page-community-forum h2 {
    font-size: 1.8em;
  }
  .page-community-forum .category-card h3 {
    font-size: 1.6em;
  }
  .page-community-forum .why-join-item h3 {
    font-size: 1.3em;
  }
}