/* Community page styles - Fixed for cream background */
#community {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.community__header {
  width: 100%;
}

.community__groups {
  width: 100%;
}

.community__guidelines {
  width: 100%;
}

.community__events {
  width: 100%;
}

/* Use same title style as home page */
.community__header--title,
.community__groups--title,
.community__guidelines--title,
.community__events--title {
  width: max-content;
  font-size: 16px;
  color: var(--orange-secondary);
  margin-bottom: 0;
}

/* Use same content style as home page */
.community__header--content,
.community__groups--content,
.community__guidelines--content,
.community__events--content {
  font-size: 12px;
  color: var(--black);
  line-height: 1.6;
  margin-top: 10px;
}

.community__groups--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.community__group--card {
  background: var(--white);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  border: 1px solid var(--orange-secondary);
  transition: transform 0.3s ease;
}

.community__group--icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--orange-secondary);
}

.community__group--name {
  color: var(--black);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.community__group--description {
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.5;
  font-size: 11px;
}

.community__group--stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 10px;
  color: var(--orange-secondary);
  font-weight: 500;
}

.community__group--join {
  display: inline-block;
  background: var(--orange-secondary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.community__group--join:hover {
  background: var(--red-dark);
  transform: scale(1.02);
}

.community__guidelines--list {
  margin-left: 15px;
  margin-top: 10px;
  list-style-type: disc;
}

.community__guidelines--list li {
  margin-bottom: 5px;
  font-size: 12px;
  line-height: 1.5;
}

.community__events--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.community__event--card {
  background: var(--white);
  border-radius: 6px;
  padding: 15px;
  border-left: 4px solid var(--orange-secondary);
  border: 1px solid var(--orange-secondary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.community__event--name {
  color: var(--orange-secondary);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.community__event--description {
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 11px;
}

.community__event--time {
  color: var(--red-dark);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
}

/* Responsive design */
@media only screen and (max-width: 600px) {
  .community__header--title,
  .community__groups--title,
  .community__guidelines--title,
  .community__events--title {
    font-size: 14px;
  }

  .community__groups--grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .community__group--card {
    padding: 12px;
  }

  .community__group--name {
    font-size: 13px;
  }

  .community__group--description {
    font-size: 10px;
  }

  .community__events--grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
