.page-community-forum {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
}

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

.page-community-forum__hero-section {
  background-color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-community-forum__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-community-forum__hero-title {
  font-size: 3.2em;
  color: #000000;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-community-forum__hero-description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-community-forum__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  font-size: 1.05em;
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-community-forum__button--register {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-community-forum__button--register:hover {
  background-color: #e0a53d;
  border-color: #e0a53d;
}

.page-community-forum__button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-community-forum__button--learn-more:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-community-forum__hero-image {
  width: 100%;
  max-width: 1000px; /* Limit image width for better presentation */
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
  min-width: 200px;
  min-height: 200px;
}

.page-community-forum__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-community-forum__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-community-forum__featured-topics-section,
.page-community-forum__how-to-join-section,
.page-community-forum__leaderboard-section,
.page-community-forum__faq-section,
.page-community-forum__cta-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-community-forum__featured-topics-section {
  background-color: #FFFFFF;
}

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

.page-community-forum__topic-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-community-forum__topic-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-community-forum__topic-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-community-forum__topic-card-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-community-forum__topic-card-title a {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s ease;
}

.page-community-forum__topic-card-title a:hover {
  color: #FCBC45;
}

.page-community-forum__topic-card-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-community-forum__topic-card-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-community-forum__read-more {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-community-forum__read-more:hover {
  color: #e0a53d;
}

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

.page-community-forum__button--view-all {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-community-forum__button--view-all:hover {
  background-color: #333333;
  border-color: #333333;
}

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

.page-community-forum__step-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-community-forum__step-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-community-forum__button--step {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 12px 25px;
  font-size: 1em;
  width: fit-content;
  margin: 0 auto;
}

.page-community-forum__button--step:hover {
  background-color: #e0a53d;
  border-color: #e0a53d;
}

.page-community-forum__leaderboard-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

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

.page-community-forum__leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 500px;
}

.page-community-forum__leaderboard-item {
  background-color: #FFFFFF;
  border: 1px solid #eee;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-community-forum__leaderboard-item span {
  font-weight: bold;
  color: #000000;
}

.page-community-forum__faq-items {
  margin-top: 40px;
}

.page-community-forum__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.page-community-forum__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-community-forum__faq-answer {
  font-size: 1em;
  color: #555555;
  line-height: 1.8;
}

.page-community-forum__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

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

.page-community-forum__cta-section .page-community-forum__section-description {
  color: #f0f0f0;
}

.page-community-forum__button--cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 30px;
}

.page-community-forum__button--cta:hover {
  background-color: #e0a53d;
  border-color: #e0a53d;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .page-community-forum__hero-section {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
    padding: 100px 40px;
  }

  .page-community-forum__hero-container {
    max-width: 50%;
    margin: 0;
  }

  .page-community-forum__hero-image {
    max-width: 45%;
    margin-top: 0;
  }

  .page-community-forum__hero-title {
    font-size: 4em;
  }

  .page-community-forum__leaderboard-content {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .page-community-forum__leaderboard-image {
    max-width: 45%;
  }

  .page-community-forum__leaderboard-list {
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .page-community-forum__hero-title {
    font-size: 2.5em;
  }

  .page-community-forum__hero-description {
    font-size: 1em;
  }

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

  .page-community-forum__button {
    width: 100%;
    min-width: unset;
  }

  .page-community-forum__hero-actions {
    flex-direction: column;
  }

  .page-community-forum__topic-card-image,
  .page-community-forum__leaderboard-image,
  .page-community-forum__hero-image {
    max-width: 100%;
    height: auto;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-community-forum__topic-card-image,
  .page-community-forum__leaderboard-image,
  .page-community-forum__hero-image,
  .page-community-forum__container img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-community-forum__hero-title {
    font-size: 2em;
  }

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

  .page-community-forum__topic-card-title {
    font-size: 1.3em;
  }

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

  .page-community-forum__faq-question {
    font-size: 1.2em;
  }
}