/*
 * chai614 homepage theme
 *
 * Scoped to the `.chai614` body class (set in the application layout) and linked
 * only from villages/index (see content_for :head_css there) so these rules
 * never bleed onto other chai614 editable pages.
 *
 * Registered for precompile in config/initializers/assets.rb.
 */


div.editable_page:has(.home_page) {
  padding: 0;
}

.chai614 .home_page .banner {
  display: flex;
  background-color: #d7dcc8;
  object-fit: cover;
}

.chai614 .home_page .banner > img {
  max-width: 100%;
  height: auto;
}

.chai614 .home_page .three-col {
  background-color: #d7dcc8;
  color: #003e55;
  padding: 48px;
}

.chai614 .two-col {
  background-color: #d96531;
  color: #003e55;
  padding: 48px;
}

.chai614 .three-col .column {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.chai614 .column h2,
.chai614 .column h3,
.chai614 .column p {
  color: inherit;
  margin-top: 0;
}

.chai614 .home_page .intro {
  color: #003e55;
}

.chai614 .home_page .intro > .intro-heading {
  display: inline;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.625rem;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: -0.4px;
  text-transform: none;
  text-align: initial;
  color: inherit;
}

.chai614 .home_page .intro > p {
  display: inline;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: inherit;
}

.chai614 .home_page .intro > p:first-of-type {
  margin-top: 0;
}

.chai614 .home_page h3 {
  color: #fff;
  font-size: 2rem;
  letter-spacing: -0.3px;
  line-height: 1.4;
  margin-bottom: 0;
  text-transform: uppercase;
  text-align: center;
}

.chai614 .home_page h3 + p {
  margin-top: 0.5rem;
}

.chai614 .home_page .two-col p {
  font-size: 1.25rem;
  letter-spacing: -0.3px;
  line-height: 1.4;
}

.chai614 .home_page .column .image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  border: 0;
  box-shadow: 0 0 60px 0 rgba(198, 206, 175, 0.86);
}

.chai614 .home_page .column.video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  gap: 8px;
}

.chai614 .home_page .video-container > iframe {
  width: 100%;
  height: 100%;
}

.chai614 .button--block {
  display: block;
  font-size: 1.125rem;
  border: 1px solid #003e55;
  border-radius: 8px;
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: -3px 6px 10px 0 rgba(0, 62, 85, 0.65);
  transition: none;
}

.chai614 .button--block:focus-visible {
  outline: 2px dotted #fff;
  outline-offset: 1px;
}

.chai614 .button--block.button--secondary {
  background-color: #aeb98c;
  color: #003e55 !important;
}

.chai614 .button--block.button--secondary:hover {
  background-color: #aeb98c;
}

.chai614 .button--block + .button--block {
  margin-top: 20px; /* adds margin between buttons in stack */
}

.chai614 .home_page small {
  display: block;
  color: inherit;
  font-size: small;
}

.chai614 .events > .flyer-container .headline {
  margin: 0;
  padding: 8px;
  background-color: #003e55;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: -0.3px;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
}

.chai614 .events .social-info {
  padding: 0;
  border-top: 0;
}

.chai614 .events .social-info .intro {
  padding: 40px 24px 0 24px;
}

.chai614 .events .social-info .image-block {
  margin: 0;
}

@media screen and (min-width: 737px) {
  .chai614 .events {
    background-color: #67c8f0;
  }

  .chai614 .events > .flyer-container {
    width: auto;
    max-width: none;
    margin: 0 48px;
    padding: 0;
  }
}

@media screen and (min-width: 960px) {
  .chai614 .home_page > .two-col,
  .chai614 .home_page > .three-col {
    margin: 0;
    display: flex;
  }

  .chai614 .home_page .two-col {
    align-items: center;
    column-gap: 32px;
  }

  .chai614 .home_page .three-col {
    align-items: start;
  }

  .chai614 .three-col .column {
    align-items: start;
    margin-bottom: 0;
  }

  .chai614 .home_page .three-col .column--left {
    flex: 0 1 40%;
  }

  .chai614 .home_page .three-col .column--middle {
    flex: 1;
    padding-left: 32px;
  }

  .chai614 .home_page .three-col .column--right {
    flex: 0 0 200px;
    justify-content: end;
  }

  .chai614 .home_page .two-col .column {
    flex: 0 1 50%;
  }

  .chai614 .home_page .two-col .column--left {
    flex: 1;
  }

  .chai614 .home_page .two-col .column--right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-basis: 40%;
    padding-left: 32px;
  }

  .chai614 .events {
    padding-top: 48px;
  }
}
