/* Page-specific styles for community/index.html */

.page-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 563px;
  padding: 320px 30px 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-hero--tall {
  padding: 440px 30px 40px;
}

.page-hero__banner {
  background: rgba(236, 32, 40, 0.82);
  padding: 18px 40px;
  text-align: center;
  max-width: 528px;
  width: 100%;
}

.page-hero__banner h1 {
  margin: 0;
  font-size: var(--font-size-h4);
  line-height: var(--line-height-h4);
  color: var(--color-white);
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

@media (max-width: 800px) {
  .page-hero {
    height: auto;
    padding: 60px 30px;
  }

  .page-hero--tall {
    padding: 60px 30px;
  }
}

/* Quote band */

.quote-band {
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
  padding: 50px 30px 60px;
}

.quote-band__icon {
  font-size: 40px;
  line-height: 1;
  margin: 0 0 10px;
  opacity: 0.6;
}

.quote-band blockquote {
  margin: 0;
}

.quote-band blockquote p {
  color: var(--color-white);
  font-size: var(--font-size-h5);
  line-height: var(--line-height-h5);
  font-style: italic;
  margin: 0 0 10px;
}

.quote-band cite {
  font-style: normal;
  font-size: var(--font-size-h5);
  line-height: var(--line-height-h5);
}

/* Navy heading bands between sections */

.band--navy {
  background: var(--color-navy);
  padding: 30px;
  text-align: center;
}

.band--navy h4 {
  margin: 0;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Split text/media sections */

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 60px 30px;
}

.split-section__text h3,
.split-section__text h4 {
  color: var(--color-black);
  font-weight: 400;
}

.split-section__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.media-caption {
  text-align: center;
  color: #999;
  font-size: var(--font-size-h6);
  line-height: var(--line-height-h6);
  margin: 8px 0 0;
}

@media (max-width: 800px) {
  .split-section {
    grid-template-columns: 1fr;
  }
}

/* Centered standalone intro paragraph (styled as a heading, matching the
   source markup's use of an h4 for body copy) */

.intro-text {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 30px 20px;
  text-align: center;
}

.intro-text h4 {
  margin: 0;
  color: var(--color-black);
  font-weight: 400;
}

/* Team member bios */

.team-section {
  padding: 50px 30px;
}

.team-member {
  margin-bottom: 40px;
}

.team-member h4 {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.team-member__photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.team-member__photos img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .team-member__photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-member__bio {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px 16px;
}

.team-member__bio summary {
  cursor: pointer;
  color: var(--color-red);
  font-weight: 700;
  list-style: none;
}

.team-member__bio summary::-webkit-details-marker {
  display: none;
}

.team-member__bio summary::before {
  content: "+ ";
}

.team-member__bio[open] summary::before {
  content: "\2212 ";
}

.team-member__bio p {
  margin: 12px 0 0;
  color: var(--color-gray-text);
}

/* Let's Connect */

.connect-section {
  padding: 60px 30px;
  text-align: center;
}

.connect-section h2 {
  margin-bottom: 20px;
}

.connect-section p {
  max-width: 700px;
  margin: 0 auto 30px;
  color: var(--color-gray-text);
  font-size: var(--font-size-h5);
  line-height: var(--line-height-h5);
}
