





/* Overall layout for the Communities page */
.communities-page {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: #222;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* Main page heading: "Explore Waterloo Region" */
.communities-page h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* Subheading: "Your Guide to Everything K-W" */
.communities-page h2:first-of-type {
  font-size: 1.3rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Standard section headings (Kitchener, Waterloo, etc.) */
.communities-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

/* Optional smaller headings (like “What Buyers Love” etc. if you add them) */
.communities-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

/* Intro paragraphs */
.communities-page p {
  margin: 0 0 0.9rem;
}

/* Container cards for each community block */
.communities-page .community-block {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Make first community block sit a bit closer to the intro text */
.communities-page .community-block:first-of-type {
  margin-top: 1.25rem;
}

/* Lists (if you add bullet points later) */
.communities-page ul {
  margin: 0.25rem 0 1rem 1.3rem;
  padding: 0;
}

.communities-page li {
  margin: 0.15rem 0;
}

/* Neighbourhood links (Kitchener, Doon, Laurelwood, etc.) */
.communities-page a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.communities-page a:hover,
.communities-page a:focus {
  text-decoration: underline;
}

/* Optional: style neighbourhood “tags” if you wrap them like <a class="neighbourhood-tag"> */
.communities-page .neighbourhood-tag {
  display: inline-block;
  margin: 0.15rem 0.4rem 0.15rem 0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #f5f7fb;
  border: 1px solid #dde2f0;
  font-size: 0.9rem;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .communities-page {
    padding: 1.5rem 0.9rem 2.5rem;
  }

  .communities-page h1 {
    font-size: 1.8rem;
  }

  .communities-page h2 {
    font-size: 1.35rem;
  }

  .communities-page .community-block {
    padding: 1.1rem 1.2rem;
  }
}