/* Home page — the glue between the public template's sections (main.css) and the
   TEMPLATEprivate cards (template.css, events.css, groups.css). Brand: black / gold. */

/* ── Hero ─────────────────────────────────────────────────────── */

/* The template's 46px under the intro is for a lone button; the counts line follows here.
   Kept narrower than the heading so it never runs onto the black corner shape. */
.sl-home-hero .hero__text {
  max-width: 520px;
  margin-bottom: 18px;
}

/* The corner shape (727px tall) shows from 1667px wide; make the hero tall enough to hold
   all of it, rather than its overflow:hidden cutting it off above the next section. */
@media (min-width: 1667px) {
  .sl-home-hero {
    min-height: 727px;
  }
}

.sl-home-hero__counts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 34px;
  color: #5f5f6b;
  font-size: 1rem;
  font-weight: 600;
}

.sl-home-hero__counts a {
  color: #0d0d0d;
  text-decoration: none;
  border-bottom: 2px solid #fbca5c;
}

.sl-home-hero__counts a:hover,
.sl-home-hero__counts a:focus-visible {
  color: #b57a00;
}

.sl-home-hero__counts strong {
  font-weight: 800;
}

.sl-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* The sign-up card: the template's sidebar widget, lifted off the hero */
.sl-home-join {
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(13, 13, 13, 0.08);
}

.sl-home-join .btn {
  border-radius: 10px;
}

.sl-home-join__lead {
  margin: 0 0 26px;
  color: #5f5f6b;
  font-size: 0.95rem;
  line-height: 1.55;
}

.sl-home-join .sidebarContacts {
  gap: 26px;
}

.sl-home-join .sidebarContacts__input {
  font-size: 1rem; /* 16px: phones don't zoom into the field */
  color: #0d0d0d;
  background: transparent;
  border-bottom-color: #e5e1d8;
}

.sl-home-join .sidebarContacts__input:focus {
  outline: none;
  border-bottom-color: #fbca5c;
}

.sl-home-join__small {
  margin: 22px 0 0;
  color: #7c7e98;
  font-size: 0.85rem;
}

.sl-home-join__small a {
  color: #b57a00;
  font-weight: 700;
}

/* Phones: keep the whole card — fields and button — on the first screen */
@media (max-width: 991px) {
  .sl-home-hero__counts {
    margin-bottom: 12px;
  }

  .sl-home-join {
    padding: 22px 20px;
  }

  .sl-home-join__lead {
    margin-bottom: 16px;
  }

  .sl-home-join .sidebarContacts {
    gap: 20px;
  }
}

/* ── What's coming up ─────────────────────────────────────────── */

.sl-home-sub {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ecebe5;
}

.sl-home-sub__title {
  margin: 0;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.sl-home-sub__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0d0d0d;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sl-home-sub__more:hover,
.sl-home-sub__more:focus-visible {
  color: #b57a00;
}

/* Three cards a row — the template's grid-4-4-4 and 16px gap; two on a tablet, one on a phone */
.sl-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.sl-home-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

@media (max-width: 1199px) {
  .sl-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sl-home-grid,
  .sl-home-grid--two {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sl-home-empty {
  margin: 0 0 44px;
  padding: 22px 24px;
  border: 1px dashed #d9d4c7;
  background: #fffdf8;
  color: #5f5f6b;
}

.sl-home-empty a {
  color: #b57a00;
  font-weight: 700;
}

/* ── Churches taking part ─────────────────────────────────────── */

.sl-home-churches__text {
  color: #5f5f6b;
  margin-bottom: 16px;
}

.sl-home-churches .btn {
  margin-top: 10px;
}

/* The leader's photo in the card's round avatar */
.sl-church-card__photo {
  background-size: cover;
  background-position: center;
}

/* ── Verse of the day ─────────────────────────────────────────── */

.sl-home-verse .reviewblock__author__image {
  width: 96px;
  height: 96px;
  object-fit: contain;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(13, 13, 13, 0.08);
}

.sl-home-verse__quiz {
  margin: 26px 0 0;
  color: #5f5f6b;
  font-size: 0.95rem;
}

.sl-home-verse__quiz a {
  color: #b57a00;
  font-weight: 700;
}

/* ── Closing band ─────────────────────────────────────────────── */

/* The template's world map is 1380px tall and was sized for the feature boxes that
   used to sit here; keep it inside the band instead of hanging under the footer. */
.sl-home-band {
  position: relative;
  overflow: hidden;
}

.sl-home-band .featureArea__map img {
  max-height: 100%;
  width: auto;
}
