.churches-public {
  background: #f6f7fa;
  color: #172435;
}
.church-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: #15232e;
  color: #fff;
}
.church-header > img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 13px;
}
.church-header strong,
.church-header small {
  display: block;
}
.church-header strong {
  font-size: 15px;
}
.church-header small {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
}
.church-main {
  max-width: 850px;
  margin: auto;
  padding: 26px 22px 50px;
}
.church-main h1 {
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.12;
  margin: 8px 0 14px;
  letter-spacing: -0.03em;
}
.church-main h2 {
  font-size: 21px;
  margin: 30px 0 18px;
}
.church-eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #487480;
  font-weight: 750;
}
.church-search {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 25px 0;
}
.church-search label {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #627282;
}
.church-search input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid #d9e0e6;
  background: #fff;
  color: #172435;
  margin-top: 7px;
  font: inherit;
  font-size: 15px;
}
.church-search button {
  width: auto !important;
}
.church-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 16px;
}
.church-tile {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.church-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 26%;
  box-shadow: 0 8px 18px #0f23331f;
  margin-bottom: 7px;
}
.church-tile strong {
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.church-tile span {
  font-size: 12px;
  color: #687780;
}
.church-tile small {
  font-size: 11px;
  color: #667983;
  line-height: 1.3;
}
.church-mother-link {
  display: block;
  text-align: center;
  color: #285d84;
  margin: 32px 0 0;
}
.church-hero {
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: end;
  border-radius: 24px;
  overflow: hidden;
  background: #152f38;
  color: #fff;
}
.church-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.church-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #091825ed);
}
.church-hero > div {
  position: relative;
  z-index: 1;
  padding: 25px;
}
.church-hero p {
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0;
}
.church-description {
  white-space: pre-wrap;
  line-height: 1.6;
  margin: 22px 0;
}
.church-actions {
  display: flex;
  gap: 12px;
}
.church-actions button {
  flex: 1;
}
.church-actions svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.church-posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.church-post {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #dfe6eb;
  color: #fff;
  aspect-ratio: 4/5;
  min-width: 0;
}
.church-post > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.church-post > span:last-child {
  position: absolute;
  inset: auto 0 0;
  padding: 35px 14px 16px;
  background: linear-gradient(transparent, #071520dd);
}
.church-post strong,
.church-post small {
  display: block;
}
.church-post strong {
  font-size: 15px;
}
.church-post small {
  font-size: 11px;
  margin-top: 5px;
}
.church-play {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 3px #000);
}
.church-video-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  background: #244351;
}
.church-video-placeholder svg {
  width: 40px;
  height: 40px;
}
.church-manager-grid {
  display: grid;
  gap: 16px;
}
.church-manager-card {
  padding: 18px;
  border: 1px solid #dfe4eb;
  border-radius: 18px;
  background: white;
  display: flex;
  gap: 16px;
  align-items: center;
}
.church-manager-card img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 18px;
}
.church-manager-card > div {
  flex: 1;
  min-width: 0;
}
.church-manager-card strong,
.church-manager-card small {
  display: block;
}
.church-manager-card small {
  margin-top: 5px;
  color: #627182;
}
.church-manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.church-manager-actions button {
  font: inherit;
  font-size: 12px;
  border: 1px solid #dbe1e7;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f4f7fa;
  color: #24476a;
}
.church-form-photo {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 16px;
}
.ufy-church-home-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.ufy-church-home-app .ufy-phone-app-label {
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ufy-church-home-place,
.ufy-church-home-pastor {
  font-size: 9px !important;
  color: inherit;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}
.ufy-phone-app-icon-churches {
  background: url("/assets/apps/adventist.png") center/cover;
}
.adv-filter {
  flex-wrap: wrap;
}
.adv-zone-filter {
  min-width: 130px;
}
.church-admin-note {
  padding: 14px;
  border-radius: 14px;
  background: #eef5fa;
  color: #31536a;
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 450px) {
  .church-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }
  .church-main {
    padding: 22px 18px 40px;
  }
  .church-hero {
    min-height: 260px;
  }
  .church-header {
    padding: 14px;
  }
  .church-manager-card {
    padding: 14px;
    gap: 12px;
  }
  .church-actions {
    flex-wrap: wrap;
  }
  .church-main .adv-primary,
  .church-main .adv-secondary {
    font-size: 14px;
  }
}
