.page-community-hub {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
  padding-bottom: 50px; /* Adjust as needed for footer */
}

.page-community-hub__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  background-color: #0A0A0A; /* Background */
  border-bottom: 1px solid #3A2A12; /* Border */
}

.page-community-hub__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for hero image container */
  margin-bottom: 30px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-community-hub__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.page-community-hub__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-community-hub__main-title {
  color: #F2C14E; /* Main Color */
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.page-community-hub__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #E5E5E5;
}

.page-community-hub__cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-community-hub__cta-button {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button */
  color: #111111;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-community-hub__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
}

.page-community-hub__secondary-button {
  background-color: transparent;
  border: 2px solid #F2C14E; /* Main Color */
  color: #F2C14E; /* Main Color */
}

.page-community-hub__secondary-button:hover {
  background-color: #F2C14E; /* Main Color */
  color: #0A0A0A;
  transform: translateY(-2px);
}

.page-community-hub__announcements-section,
.page-community-hub__forum-section,
.page-community-hub__member-spotlight-section,
.page-community-hub__guidelines-faq-section,
.page-community-hub__download-section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid #3A2A12; /* Border */
}

.page-community-hub__announcements-section:last-of-type,
.page-community-hub__forum-section:last-of-type,
.page-community-hub__member-spotlight-section:last-of-type,
.page-community-hub__guidelines-faq-section:last-of-type,
.page-community-hub__download-section:last-of-type {
  border-bottom: none;
}

.page-community-hub__section-title {
  color: #FFD36B; /* Auxiliary Color */
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-community-hub__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #E5E5E5;
  font-size: 1.05rem;
}

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

.page-community-hub__announcement-card {
  background-color: #111111; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease-in-out;
}

.page-community-hub__announcement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.page-community-hub__card-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-community-hub__announcement-card h3,
.page-community-hub__announcement-card p {
  padding: 0 20px;
}

.page-community-hub__card-title {
  font-size: 1.3rem;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-community-hub__card-title a {
  color: #F2C14E; /* Main Color */
  text-decoration: none;
}

.page-community-hub__card-title a:hover {
  text-decoration: underline;
}

.page-community-hub__card-meta {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 15px;
}

.page-community-hub__card-excerpt {
  font-size: 1rem;
  color: #E5E5E5;
  margin-bottom: 20px;
}

.page-community-hub__read-more-link {
  display: inline-block;
  color: #FFD36B; /* Auxiliary Color */
  text-decoration: none;
  font-weight: bold;
  padding: 0 20px 20px 20px;
}

.page-community-hub__read-more-link:hover {
  text-decoration: underline;
}

.page-community-hub__button-wrapper {
  text-align: center;
  margin-top: 30px;
}

.page-community-hub__forum-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.page-community-hub__category-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-community-hub__category-card:hover {
  background-color: #1A1A1A;
  border-color: #F2C14E; /* Main Color */
}

.page-community-hub__category-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.page-community-hub__category-title a {
  color: #FFD36B; /* Auxiliary Color */
  text-decoration: none;
}

.page-community-hub__category-title a:hover {
  text-decoration: underline;
}

.page-community-hub__category-description {
  color: #E5E5E5;
  font-size: 0.95rem;
}

.page-community-hub__member-spotlight-section {
  text-align: center;
}

.page-community-hub__spotlight-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.page-community-hub__spotlight-card {
  background-color: #111111; /* Card BG */
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 350px;
  text-align: center;
  border: 1px solid #3A2A12; /* Border */
}

.page-community-hub__spotlight-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #F2C14E; /* Main Color */
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.6); /* Glow */
}

.page-community-hub__spotlight-name {
  font-size: 1.5rem;
  color: #F2C14E; /* Main Color */
  margin-bottom: 10px;
}

.page-community-hub__spotlight-bio {
  color: #E5E5E5;
  margin-bottom: 20px;
  font-size: 1rem;
}

.page-community-hub__guidelines-faq-section {
  padding-bottom: 60px;
}

.page-community-hub__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 20px 30px;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

.page-community-hub__faq-item:hover {
  border-color: #FFD36B; /* Auxiliary Color */
}

.page-community-hub__faq-question {
  font-size: 1.25rem;
  color: #FFD36B; /* Auxiliary Color */
  margin-bottom: 10px;
}

.page-community-hub__faq-answer {
  color: #E5E5E5;
  font-size: 1rem;
}

.page-community-hub__download-section {
  text-align: center;
  padding-bottom: 80px;
}

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

.page-community-hub__download-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button */
  color: #111111;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page-community-hub__download-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .page-community-hub__hero-content {
    padding: 0 15px;
  }

  .page-community-hub__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-community-hub__description {
    font-size: 0.95rem;
  }

  .page-community-hub__cta-group {
    flex-direction: column;
    align-items: center;
  }

  .page-community-hub__cta-button,
  .page-community-hub__secondary-button,
  .page-community-hub__download-button {
    width: 80%;
    max-width: 300px;
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .page-community-hub__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .page-community-hub__section-description {
    font-size: 0.9rem;
  }

  .page-community-hub__announcements-grid,
  .page-community-hub__forum-categories {
    grid-template-columns: 1fr;
  }

  .page-community-hub__spotlight-cards {
    flex-direction: column;
    align-items: center;
  }

  .page-community-hub__spotlight-card {
    max-width: 90%;
  }

  /* Mobile content image constraint */
  .page-community-hub__announcements-section img,
  .page-community-hub__forum-section img,
  .page-community-hub__member-spotlight-section img,
  .page-community-hub__guidelines-faq-section img,
  .page-community-hub__download-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Re-apply min-width for mobile, if it was unset */
    min-height: 200px;
  }
}

/* Ensure all img elements within .page-community-hub are at least 200x200px and responsive on mobile */
.page-community-hub img {
  min-width: 200px; /* Minimum width requirement */
  min-height: 200px; /* Minimum height requirement */
}

@media (max-width: 768px) {
  .page-community-hub img {
    max-width: 100%;
    height: auto;
    /* For mobile, if the image's original aspect ratio makes it smaller than 200px in one dimension, */
    /* it should still scale down while respecting the minimum. Here, we prioritize max-width: 100% */
    /* to prevent overflow, but ensure the image itself is not a small icon. */
    /* The min-width/height are primarily for the *generated* image dimensions, not necessarily display. */
    /* Display will be handled by max-width:100% and auto height. */
  }
}