.homepage-row {
  margin: 0.25em auto;
  padding: 0.25em 1em;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.homepage-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;

  text-align: center;
}

.homepage-feature-cell {
  margin: 0.25em 0 0 0;
  height: auto;
  width: 45%;
}

.homepage-news-event-group {
  padding: 0.25em;
  margin: 0.25em 0 0 0;
  min-width: 55%;
  max-width: 55%;
  gap: 0.5em;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.homepage-events-cell {
  width: 100%;
}

.homepage-news-cell {
  width: 100%;
}

@media (max-width: 1200px) {
  .homepage-row {
    flex-direction: column;
    justify-content: center;
  }
  .homepage-feature-cell {
    width: 100%;
  }

  .homepage-news-event-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .homepage-news-cell {
    width: 100%;
  }
  .homepage-events-cell {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .homepage-news-event-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }
}

/* 1. Page wrapper - flex row to center */
.page {
  display: flex;
  flex-direction: row; /* explicit row */

  justify-content: center;
  align-items: flex-start;
  height: auto;
}

/* 2. The centered block */
.block {
  display: flex;
  flex-wrap: wrap; /* allows title to be 100% */

  background: white;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.title-text {
  font-size: 2em;

  line-height: 1em;
  text-align: center;
  color: red;
  padding: 0.5em;
  width: 100%;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.quoted-text {
  font-style: italic;
  font-weight: bold;
}

.underline {
  text-decoration: underline;
}

.left {
  flex: 1 0 40%; /* two equal columns */
  padding: 1em;
  box-sizing: border-box;
  min-height: 300px;
  background: #ffffff;
  order: 2; /* desktop order */
}

.right {
  flex: 1 0 60%; /* two equal columns */
  padding: 1em;
  box-sizing: border-box;
  min-height: 300px;
  background: #ffffff;
  order: 3; /* desktop order */
}

.title {
  order: 1;
}

/* 3. Mobile breakpoint - below 1200px */
@media (max-width: 1200px) {
  .block {
    width: 100%; /* full width of display (minus the 1em margins from max-width) */
  }

  .left,
  .right {
    flex: 0 0 100%; /* stack */
  }

  /* Re-order: Title -> Right -> Left */
  .right {
    order: 2;
  }
  .left {
    order: 3;
  }

  .title-text {
    width: 100%;
    padding: 0.5em;
    text-align: center;
    line-height: 1em;
    font-size: 1.2em;
    color: red;

    border: 2px solid red;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    text-align: center;
  }
}

/* 3. Mobile breakpoint - below 700px */
@media (max-width: 700px) {
  .block {
    width: 100%; /* full width of display (minus the 1em margins from max-width) */
  }

  .left,
  .right {
    flex: 0 0 100%; /* stack */
  }

  /* Re-order: Title -> Right -> Left */
  .right {
    order: 2;
  }
  .left {
    order: 3;
  }

  .title-text {
    width: 100%;
    font-size: 1.2em;
    text-align: center;
    line-height: 1em;
    color: red;
    padding: 0.6em;
    border: 2px solid red;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    text-align: center;
  }
}
