:root {
  --navy-950: #071a33;
  --navy-900: #0b2443;
  --navy-800: #102f57;
  --blue-700: #1f5fba;
  --blue-600: #2875dc;
  --blue-500: #4c8ff0;
  --blue-100: #eaf2ff;
  --sky-50: #f5f8fd;
  --cream: #f7f2e8;
  --gold: #c7a36a;
  --ink: #13233a;
  --muted: #68758a;
  --line: #e1e6ee;
  --white: #fff;
  --max: 1220px;
  --header-height: 88px;
  --shadow-soft: 0 24px 70px rgba(13, 43, 79, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  font-family: Pretendard, "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.section {
  padding: 120px 24px;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: height 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.site-header.scrolled {
  height: 76px;
  border-color: rgba(19, 35, 58, 0.08);
  box-shadow: 0 9px 30px rgba(15, 35, 62, 0.08);
}

.header-inner {
  width: min(calc(100% - 48px), 1370px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand::before {
  content: "";
  width: 252px;
  height: 53px;
  display: block;
  background: transparent url("assets/logos-baptist-logo-horizontal-final.png?v=20260926-user3") center 49% / 140% auto no-repeat;
}

.brand-logo {
  width: 0;
  height: 0;
  display: none;
  overflow: visible;
}

.brand-logo-book,
.brand-logo-cross {
  fill: none;
  stroke: var(--navy-900);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-logo-cross {
  stroke: var(--blue-600);
  stroke-width: 2.2;
}

.brand-logo-word {
  fill: var(--navy-900);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 1.15px;
}

.brand-logo-name {
  fill: #6f7d90;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 5.8px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  height: 100%;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--blue-700);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after,
.has-dropdown.open > .nav-link::after {
  transform: scaleX(1);
}

.nav-trigger svg {
  width: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.2s;
}

.has-dropdown.open .nav-trigger svg {
  transform: rotate(180deg);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--blue-700);
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 19px rgba(31, 95, 186, 0.25);
  transition: transform 0.2s, background 0.2s;
}

.header-cta:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
}

.account-link {
  min-height: 38px;
  margin-left: 7px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  color: #536176;
  background: #f1f4f8;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.account-link:hover {
  color: var(--blue-700);
  background: #eaf2fc;
  border-color: #c8dcf5;
}

.account-link.signed-in {
  gap: 7px;
  color: #174f8a;
  background: #eaf3fe;
  border-color: #c8dcf5;
}

.account-link.signed-in::before,
.portal-header-link.signed-in::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: #23a36d;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(35, 163, 109, 0.12);
}

.dropdown {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  min-width: 220px;
  padding: 16px;
  display: flex;
  visibility: hidden;
  opacity: 0;
  background: var(--white);
  border: 1px solid rgba(19, 35, 58, 0.08);
  border-radius: 14px;
  box-shadow: 0 25px 70px rgba(10, 31, 57, 0.18);
  transform: translate(-50%, 12px);
  transition: opacity 0.18s, transform 0.18s;
}

.has-dropdown.open .dropdown {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.dropdown-wide {
  width: 590px;
  padding: 0;
  overflow: hidden;
}

.dropdown-compact {
  width: 230px;
}

.dropdown-right {
  left: auto;
  right: 0;
  transform: translateY(12px);
}

.has-dropdown.open .dropdown-right {
  transform: translateY(0);
}

.dropdown-heading {
  width: 210px;
  padding: 29px;
  color: var(--white);
  background: linear-gradient(150deg, #164c8d, #0a2445);
}

.dropdown-heading.ministry-heading {
  background: linear-gradient(150deg, #4270bd, #1c3e72);
}

.dropdown-heading span,
.dropdown-heading strong {
  display: block;
}

.dropdown-heading span {
  margin-bottom: 16px;
  color: #8ebcf7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.dropdown-heading strong {
  font-size: 21px;
  line-height: 1.45;
}

.dropdown-links {
  flex: 1;
  display: grid;
  gap: 4px;
}

.dropdown-links.two-columns {
  grid-template-columns: 1fr 1fr;
  padding: 20px 22px;
}

.dropdown-links a {
  padding: 9px 12px;
  color: #465369;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
}

.dropdown-links a:hover,
.dropdown-links a:focus-visible {
  padding-left: 16px;
  color: var(--blue-700);
  background: var(--blue-100);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  height: clamp(750px, 84vh, 860px);
  min-height: 700px;
  margin-top: var(--header-height);
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("assets/logos-church-hero.png") 66% center / cover no-repeat;
  transform: scale(1.015);
  animation: hero-drift 16s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 20, 40, 0.94) 0%, rgba(5, 25, 50, 0.84) 35%, rgba(8, 32, 61, 0.2) 65%, rgba(8, 25, 45, 0.12) 100%),
    linear-gradient(0deg, rgba(4, 15, 31, 0.32), transparent 45%);
}

@keyframes hero-drift {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-0.7%, -0.3%, 0); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--max));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 24px;
}

.hero-slides {
  position: relative;
  width: min(760px, 70%);
  min-height: 340px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s;
}

.hero-slide.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.eyebrow.light {
  color: #80b6ff;
}

.hero h1 {
  margin: 0;
  font-size: clamp(43px, 4.5vw, 69px);
  line-height: 1.22;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero h1 em,
.welcome h2 em {
  color: #72aaf3;
  font-style: normal;
}

.hero-description {
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.button {
  min-height: 54px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s, color 0.2s, border-color 0.2s, background 0.2s;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 12px 30px rgba(18, 83, 181, 0.35);
}

.button-primary:hover {
  background: #1d64c9;
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(7px);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.15);
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 54px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.hero-arrow {
  width: 43px;
  height: 43px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.hero-arrow:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.15);
}

.hero-arrow svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.hero-dots button.active {
  width: 26px;
  background: var(--white);
}

.quick-links {
  position: relative;
  z-index: 5;
  margin-top: -32px;
  padding: 0 24px;
}

.quick-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.quick-item {
  min-height: 112px;
  padding: 25px 28px;
  display: flex;
  align-items: center;
  gap: 17px;
  border-right: 1px solid var(--line);
  transition: color 0.2s, background 0.2s;
}

.quick-item:last-child {
  border-right: 0;
}

.quick-item:hover {
  color: var(--blue-700);
  background: var(--sky-50);
}

.quick-icon {
  width: 47px;
  height: 47px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 13px;
}

.quick-icon svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-item > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.quick-item strong {
  font-size: 18px;
}

.quick-item small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.quick-item b {
  margin-left: auto;
  color: #98a5b6;
  font-weight: 400;
}

.welcome {
  padding-top: 145px;
  padding-bottom: 82px;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 95px;
  align-items: center;
}

.welcome-heading {
  margin-bottom: 58px;
}

.welcome-heading h2 {
  max-width: 1120px;
}

.welcome h2,
.section-heading h2,
.newcomer h2,
.small-section-title h2,
.resource-inner h2 {
  margin: 0;
  font-size: clamp(35px, 3.4vw, 48px);
  line-height: 1.35;
  letter-spacing: -0.05em;
}

.welcome h2 em {
  color: var(--blue-700);
}

.welcome-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 30px 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.95;
}

.welcome-message strong {
  color: var(--ink);
  font-weight: 800;
}

.welcome-copy > .welcome-message {
  margin-top: 0;
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  padding-bottom: 5px;
  color: var(--ink);
  border-bottom: 1px solid #a8b1be;
  font-size: 15px;
  font-weight: 800;
  transition: color 0.2s, gap 0.2s;
}

.text-link:hover {
  gap: 32px;
  color: var(--blue-700);
}

.worship-card {
  position: relative;
  overflow: hidden;
  padding: 42px 47px;
  color: var(--white);
  background: linear-gradient(145deg, #143963, #081b35 70%);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(10, 35, 67, 0.23);
}

.worship-card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 240px;
  height: 240px;
  border: 55px solid rgba(87, 143, 220, 0.12);
  border-radius: 50%;
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8ebcf7;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.worship-card h3 {
  position: relative;
  z-index: 1;
  margin: 24px 0 30px;
  font-size: 31px;
  line-height: 1.45;
  letter-spacing: -0.045em;
}

.worship-times {
  position: relative;
  z-index: 1;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.worship-times div {
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 16px;
}

.worship-times dt {
  color: rgba(255, 255, 255, 0.7);
}

.worship-times dd {
  margin: 0;
  font-weight: 800;
}

.worship-place {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
}

.worship-place svg {
  width: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: #80b6ff;
  stroke-width: 1.7;
}

.core-values {
  padding-top: 78px;
  padding-bottom: 84px;
  color: var(--ink);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.values-eyebrow {
  margin: 0 0 36px;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px;
}

.value-card {
  text-align: center;
}

.value-icon {
  width: 156px;
  height: 156px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: #525b68;
  background: #f4f6f8;
  border-radius: 50%;
  box-shadow: 20px 22px 28px rgba(19, 35, 58, 0.11);
}

.value-icon svg {
  width: 66px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  margin: 32px 0 8px;
  color: #12549c;
  font-size: 27px;
  letter-spacing: -0.045em;
}

.value-card > strong {
  display: block;
  color: #202938;
  font-size: 17px;
}

.value-card > p {
  max-width: 320px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.welcome-values {
  position: relative;
  min-height: 510px;
  padding: 37px 42px;
  overflow: hidden;
  background: linear-gradient(145deg, #f7f9fc, #eef4fb);
  border: 1px solid #e0e8f2;
  border-radius: 20px;
}

.welcome-values::after {
  content: "";
  position: absolute;
  top: -105px;
  right: -95px;
  width: 250px;
  height: 250px;
  border: 58px solid rgba(40, 117, 220, 0.055);
  border-radius: 50%;
}

.welcome-values-diagram {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  height: 342px;
  margin: 18px auto 0;
}

.welcome-values-intro { position: relative; z-index: 1; margin-top: 10px; }
.welcome-values-intro strong { display: block; color: #14243b; font-size: 18px; letter-spacing: -0.04em; }
.welcome-values-intro span { display: block; margin-top: 2px; color: #8290a3; font-size: 12px; }

.value-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-connectors .connector-love { stroke: rgba(38, 111, 205, 0.35); }
.value-connectors .connector-grow { stroke: rgba(44, 139, 112, 0.38); }
.value-connectors .connector-serve { stroke: rgba(224, 154, 47, 0.38); }

.welcome-values-list {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.welcome-values-list li {
  position: absolute;
  top: 0;
  width: 31%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.welcome-values-list li:nth-child(1) { left: 0; }
.welcome-values-list li:nth-child(2) { left: 50%; transform: translateX(-50%); }
.welcome-values-list li:nth-child(3) { right: 0; }

.value-origin-word { display: flex; align-items: baseline; justify-content: center; color: #a4adba; font-family: "Avenir Next", Arial, sans-serif; font-size: 17px; font-weight: 800; letter-spacing: 0.09em; line-height: 1; }
.value-origin-word mark { padding: 0; color: #2168c2; background: none; }
.value-grow .value-origin-word mark { color: #2c8b70; }
.value-serve .value-origin-word mark { color: #d99429; }

.welcome-value-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(19, 60, 110, 0.09);
}

.welcome-value-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome-values-list li > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-values-list strong {
  font-size: 14px;
  letter-spacing: -0.03em;
}

.welcome-values-list small {
  margin-top: 0;
  color: var(--muted);
  font-size: 11px;
}

.value-grow .welcome-value-icon { color: #2c8b70; }
.value-serve .welcome-value-icon { color: #d99429; }

.logos-name-result { position: absolute; left: 50%; bottom: 0; width: min(100%, 270px); min-height: 112px; padding: 14px 20px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.92); border: 1px solid #dce6f2; border-radius: 20px; box-shadow: 0 18px 38px rgba(20, 61, 108, .12); transform: translateX(-50%); }
.logos-name-result > span { color: #8a97a9; font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.logos-name-result strong { margin: 2px 0 0; display: flex; font-family: "Avenir Next", Arial, sans-serif; font-size: 41px; line-height: 1; letter-spacing: -.055em; }
.logos-name-result em { font-style: normal; }
.logos-name-result .result-love { color: #2168c2; }
.logos-name-result .result-grow { color: #2c8b70; }
.logos-name-result .result-serve { color: #d99429; }
.logos-name-result small { margin-top: 5px; color: #6680a0; font-size: 8px; font-weight: 850; letter-spacing: .17em; }

.worship-wide {
  position: relative;
  min-height: 230px;
  padding: 42px 24px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #143963, #081b35 72%);
}

.worship-wide::after {
  content: "";
  position: absolute;
  top: -135px;
  right: -80px;
  width: 330px;
  height: 330px;
  border: 72px solid rgba(87, 143, 220, 0.1);
  border-radius: 50%;
}

.worship-wide-copy,
.worship-wide-info {
  position: relative;
  z-index: 1;
}

.worship-wide-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1.52fr);
  gap: 50px;
  align-items: center;
}

.worship-wide h3 {
  margin: 17px 0 0;
  font-size: 31px;
  line-height: 1.42;
  letter-spacing: -0.045em;
}

.worship-wide .worship-times {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 12px;
  border-top: 0;
}

.worship-wide .worship-times div {
  min-height: 78px;
  padding: 8px 24px;
  display: block;
  border-bottom: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.worship-wide .worship-times dt {
  margin-bottom: 7px;
  font-size: 14px;
}

.worship-wide .worship-times dd {
  font-size: 20px;
}

.worship-wide .worship-place {
  margin: 21px 0 0 22px;
}

.vision {
  background: var(--sky-50);
}

.section-heading.centered {
  text-align: center;
}

.section-heading.centered > p:last-child {
  margin: 14px auto 0;
  color: var(--muted);
}

.vision-grid {
  margin-top: 55px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.vision-card {
  position: relative;
  min-height: 400px;
  padding: 39px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e4e9f0;
  border-radius: 15px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.vision-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
}

.vision-card.featured {
  color: var(--white);
  background: linear-gradient(145deg, #235fae, #0f315d);
  border-color: transparent;
}

.vision-number {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #edf1f6;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.featured .vision-number {
  color: rgba(255, 255, 255, 0.1);
}

.vision-icon {
  width: 63px;
  height: 63px;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 16px;
}

.featured .vision-icon {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}

.vision-icon svg {
  width: 33px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-kicker {
  margin: 25px 0 5px;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.featured .card-kicker {
  color: #9dc6ff;
}

.vision-card h3 {
  margin: 0 0 13px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.vision-card > p:not(.card-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.featured > p:not(.card-kicker) {
  color: rgba(255, 255, 255, 0.68);
}

.vision-card > a {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.featured > a {
  color: var(--white);
}

.newcomer {
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(115deg, #0a2342, #17497f);
}

.newcomer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle at 2px 2px, #fff 1px, transparent 0);
  background-size: 24px 24px;
}

.newcomer-inner {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.newcomer-copy {
  position: relative;
  z-index: 2;
  padding: 75px 0;
}

.newcomer-copy > p:not(.eyebrow) {
  margin: 22px 0 24px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.9;
}

.newcomer-contact {
  width: min(100%, 570px);
  margin: 0 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.newcomer-contact > div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.newcomer-contact dt {
  color: #8fc1ff;
  font-size: 13px;
  font-weight: 850;
}

.newcomer-contact dd {
  margin: 0;
  color: var(--white);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.65;
}

.newcomer-actions {
  display: flex;
  align-items: center;
  gap: 27px;
}

.newcomer-text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 15px;
  font-weight: 800;
}

.button-white {
  color: var(--navy-900);
  background: var(--white);
}

.play-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.play-link span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding-left: 2px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 9px;
}

.newcomer-graphic {
  position: relative;
  align-self: stretch;
}

.newcomer-graphic svg {
  position: absolute;
  right: -80px;
  bottom: -1px;
  width: min(620px, 56vw);
  height: auto;
}

.heart-halo {
  position: absolute;
  top: 54px;
  right: 37px;
  width: 190px;
  height: 170px;
}

.heart-halo::before,
.heart-halo::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 96px;
  height: 154px;
  background: rgba(255, 220, 160, 0.14);
  border-radius: 96px 96px 0 0;
}

.heart-halo::before {
  left: 95px;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.heart-halo::after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

.hill-back { fill: #315f8e; }
.hill-front { fill: #123962; }
.church-body { fill: #eaf0f5; }
.church-roof { fill: #adc5dc; }
.church-tower { fill: #eaf0f5; }
.church-cross { fill: #f4bd66; }
.church-door { fill: #244f79; }
.church-window { fill: #78a9d4; }
.path { fill: #d4aa70; }
.trees circle { fill: #7293a5; }
.trees path { fill: #38566a; }

/* Contact illustration: build the scene from the ground up as it enters view. */
.newcomer-graphic svg > *,
.newcomer-graphic .trees {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.newcomer-graphic:not(.visible) .heart-halo,
.newcomer-graphic:not(.visible) .hill-back,
.newcomer-graphic:not(.visible) .hill-front,
.newcomer-graphic:not(.visible) .path,
.newcomer-graphic:not(.visible) .trees,
.newcomer-graphic:not(.visible) .church-body,
.newcomer-graphic:not(.visible) .church-door,
.newcomer-graphic:not(.visible) .church-window,
.newcomer-graphic:not(.visible) .church-roof,
.newcomer-graphic:not(.visible) .church-tower,
.newcomer-graphic:not(.visible) .church-cross {
  opacity: 0;
  transform: translateY(86px) scale(0.97);
}

.newcomer-graphic.visible .hill-back,
.newcomer-graphic.visible .hill-front,
.newcomer-graphic.visible .path,
.newcomer-graphic.visible .trees,
.newcomer-graphic.visible .church-body,
.newcomer-graphic.visible .church-door,
.newcomer-graphic.visible .church-window,
.newcomer-graphic.visible .church-roof,
.newcomer-graphic.visible .church-tower,
.newcomer-graphic.visible .church-cross,
.newcomer-graphic.visible .heart-halo {
  animation: contact-shape-rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.newcomer-graphic.visible .hill-back { animation-delay: 0.08s; }
.newcomer-graphic.visible .hill-front { animation-delay: 0.18s; }
.newcomer-graphic.visible .path { animation-delay: 0.3s; }
.newcomer-graphic.visible .trees { animation-delay: 0.42s; }
.newcomer-graphic.visible .church-body { animation-delay: 0.54s; }
.newcomer-graphic.visible .church-door,
.newcomer-graphic.visible .church-window { animation-delay: 0.64s; }
.newcomer-graphic.visible .church-roof { animation-delay: 0.74s; }
.newcomer-graphic.visible .church-tower { animation-delay: 0.84s; }
.newcomer-graphic.visible .church-cross { animation-delay: 0.94s; }
.newcomer-graphic.visible .heart-halo {
  animation-name: contact-heart-rise;
  animation-duration: 1.15s;
  animation-delay: 1.04s;
}

@keyframes contact-shape-rise {
  0% {
    opacity: 0;
    transform: translateY(86px) scale(0.97);
  }
  68% {
    opacity: 1;
    transform: translateY(-3px) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes contact-heart-rise {
  0% {
    opacity: 0;
    transform: translateY(118px) scale(0.72);
  }
  72% {
    opacity: 1;
    transform: translateY(-7px) scale(1.035);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.split-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.ministry-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: repeat(2, 245px);
  gap: 18px;
}

.ministry-card {
  position: relative;
  padding: 33px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 15px;
  isolation: isolate;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ministry-card::before,
.ministry-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.ministry-card::before {
  width: 230px;
  height: 230px;
  top: -90px;
  right: -70px;
  border: 45px solid rgba(255, 255, 255, 0.08);
}

.ministry-card::after {
  width: 100px;
  height: 100px;
  top: 45px;
  right: 70px;
  background: rgba(255, 255, 255, 0.08);
}

.ministry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(16, 47, 87, 0.18);
}

.ministry-card.children {
  grid-row: 1 / 3;
  background: linear-gradient(160deg, #3976c4, #163f75);
}

.ministry-card.young { background: linear-gradient(145deg, #886a55, #3b435c); }
.ministry-card.worship-team { background: linear-gradient(145deg, #667da4, #283f64); }
.ministry-card.mission { background: linear-gradient(145deg, #416c71, #1d3d4b); }

.ministry-tag {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ministry-card h3 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.ministry-card p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.ministry-card b {
  position: absolute;
  right: 27px;
  bottom: 28px;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-weight: 400;
}

.media {
  color: var(--ink);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.message-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.24fr 0.8fr;
  gap: 30px;
}

.message-main {
  overflow: hidden;
  color: var(--white);
  background: #102a4c;
  border-radius: 16px;
}

.message-art {
  position: relative;
  height: 380px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 25%, rgba(89, 151, 231, 0.5), transparent 18%),
    linear-gradient(135deg, #1f588c, #091b35 70%);
}

.message-art::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: linear-gradient(transparent 95%, #fff 95%), linear-gradient(90deg, transparent 95%, #fff 95%);
  background-size: 35px 35px;
}

.message-main .message-art { height: auto; aspect-ratio: 16 / 9; }
.message-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #091b35; opacity: 0; }
.has-video-cover .message-cover { opacity: 1; }
.has-video-cover .verse-art, .has-video-cover::after { display: none; }
.has-video-cover .message-series { color: #fff; background: rgba(9, 27, 53, .75); }
.message-main .verse-art b { max-width: 75%; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

.message-series {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 28px;
  padding: 7px 12px;
  color: #bed7fb;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.verse-art {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verse-art > span {
  position: absolute;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(95px, 12vw, 160px);
  font-weight: 950;
  letter-spacing: -0.08em;
}

.verse-art i {
  width: 1px;
  height: 115px;
  margin-right: 27px;
  background: #6ca4ea;
}

.verse-art b {
  font-size: 35px;
  line-height: 1.43;
  letter-spacing: -0.045em;
}

.play-button {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 25px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: var(--navy-900);
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
}

.message-main:hover .play-button {
  transform: scale(1.08);
}

.play-button svg {
  width: 25px;
  fill: currentColor;
}

.message-copy {
  padding: 25px 29px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.message-copy p {
  margin: 0 0 5px;
  color: #83a6d3;
  font-size: 13px;
  font-weight: 750;
}

.message-copy h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.message-copy > span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 14px;
}

.message-list {
  display: flex;
  flex-direction: column;
}

.message-list a {
  flex: 1;
  padding: 18px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.message-list a:first-child { padding-top: 0; }
.message-list a:last-child { padding-bottom: 0; border-bottom: 0; }

.mini-thumb {
  width: 132px;
  height: 93px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.thumb-one { background: linear-gradient(145deg, #385c90, #182d4a); }
.thumb-two { background: linear-gradient(145deg, #7a604c, #2d3545); }
.thumb-three { background: linear-gradient(145deg, #367074, #18364a); }

.mini-thumb i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding-left: 2px;
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
}

.message-list a > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.message-list small {
  color: #77a6e1;
  font-size: 12px;
  font-weight: 800;
}

.message-list strong {
  margin: 5px 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-list em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 70px;
}
.news-layout > * { min-width: 0; }
.scroll-tabs-hint { margin: 8px 0 16px; color: #52647a; font-size: 13px; line-height: 1.5; }
.scroll-tabs-hint[hidden], a[data-unavailable-social][hidden] { display: none !important; }

.small-section-title {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.small-section-title .eyebrow {
  margin-bottom: 6px;
}

.small-section-title h2 {
  font-size: 31px;
}

.small-section-title > a {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 50%;
  font-size: 23px;
  font-weight: 300;
}

.notice-list {
  border-top: 2px solid var(--ink);
}

.notice-list a {
  min-height: 64px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #465369;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.notice-list a:hover span {
  color: var(--blue-700);
}

.notice-list b {
  margin-right: 8px;
  padding: 4px 7px;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 4px;
  font-size: 10px;
}

.notice-list time {
  color: #9aa4b2;
  font-size: 13px;
  white-space: nowrap;
}

.event-column {
  display: flex;
  flex-direction: column;
}

.event-card {
  position: relative;
  min-height: 115px;
  padding: 18px 62px 18px 18px;
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 23px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.event-card + .event-card {
  margin-top: 12px;
}

.event-date {
  align-self: stretch;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 9px;
  text-align: center;
}

.event-date small,
.event-date span {
  font-size: 11px;
  font-weight: 800;
}

.event-date strong {
  grid-row: 1 / 3;
  grid-column: 2;
  font-size: 31px;
  line-height: 1;
}

.event-card h3 {
  margin: 2px 0 3px;
  font-size: 18px;
}

.event-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.event-label {
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
}

.event-arrow {
  position: absolute;
  right: 22px;
  color: #9aa4b2;
}

.resource-strip {
  padding: 72px 24px;
  color: var(--white);
  background: linear-gradient(120deg, #174d88, #0a284c);
}

.resource-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 70px;
}

.resource-inner h2 {
  font-size: 31px;
}

.resource-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.resource-links a {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 750;
  transition: background 0.2s;
}

.resource-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.resource-links span {
  color: #8ebcf7;
}

.button-navy {
  color: var(--white);
  background: var(--navy-900);
}

.site-footer {
  padding: 68px 24px 0;
  color: rgba(255, 255, 255, 0.58);
  background: var(--navy-950);
}

.footer-top {
  display: block;
}

.footer-brand {
  padding-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand.inverse .brand-logo-book {
  stroke: var(--white);
}

.brand.inverse .brand-logo-cross {
  stroke: #83b4f1;
}

.brand.inverse .brand-logo-word {
  fill: var(--white);
}

.brand.inverse .brand-logo-name {
  fill: rgba(255, 255, 255, 0.48);
}

.brand.inverse::before,
.portal-footer .brand::before {
  background-image: url("assets/logos-baptist-logo-horizontal-final.png?v=20260926-user3");
}

.social-links {
  display: flex;
  gap: 8px;
}

.footer-brand .social-links {
  margin-top: 0;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #a9bad0;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.social-links svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links .social-icon-dot,
.social-links .social-icon-fill {
  fill: currentColor;
  stroke: none;
}

.footer-links {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-content: start;
  gap: 30px;
}

.footer-links h3 {
  margin: 0 0 22px;
  color: var(--white);
  font-size: 16px;
  font-weight: 750;
}

.footer-links a {
  margin: 10px 0;
  display: block;
  font-size: 15px;
  line-height: 1.55;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  min-height: 100px;
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-legal .footer-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.footer-legal .footer-admin-link:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .75);
}
.footer-legal .footer-admin-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.account-site-footer { padding-top: 0; }
.account-site-footer .footer-bottom { margin-top: 0; border-top: 0; }

.footer-legal span {
  color: rgba(255, 255, 255, 0.44);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.footer-legal .footer-contact-item {
  color: var(--white);
  font-weight: 750;
}

.footer-bottom > p {
  margin: 0;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.back-to-top {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  color: var(--white);
  background: var(--navy-900);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(9, 32, 61, 0.25);
  transform: translateY(10px);
  cursor: pointer;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.back-to-top.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.subpage-local-nav {
  padding: 44px 24px;
  background: #f7f8fa;
}

.subpage-local-nav-inner {
  width: min(100%, 1250px);
  min-height: 88px;
  margin: 0 auto;
  padding: 11px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 3px;
  background: var(--white);
  border: 1px solid #edf0f4;
  border-radius: 24px;
  box-shadow: 0 16px 45px rgba(18, 44, 76, 0.1);
}

.subpage-local-nav a {
  min-width: 0;
  min-height: 64px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  color: #1f2b3d;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 790;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.subpage-local-nav a:hover {
  color: var(--blue-700);
  background: #f1f5fa;
}

.subpage-local-nav a.active {
  color: var(--white);
  background: var(--blue-700);
  box-shadow: 0 9px 22px rgba(31, 95, 186, 0.2);
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1120px) {
  .desktop-nav { gap: 0; }
  .nav-link { padding: 0 11px; font-size: 14px; }
  .nav-link::after { left: 12px; right: 12px; }
  .header-cta { margin-left: 5px; padding: 10px 14px; }
  .brand::before { width: 220px; height: 46px; }
  .quick-item { padding: 22px 18px; }
  .quick-item b { display: none; }
  .welcome-grid { gap: 55px; }
  .welcome-values { padding-right: 34px; padding-left: 34px; }
  .worship-wide-inner { gap: 38px; }
  .values-grid { gap: 38px; }
  .value-icon { width: 142px; height: 142px; }
  .footer-links { gap: 24px; }
}

@media (max-width: 900px) {
  :root { --header-height: 74px; }
  .site-header.scrolled { height: 68px; }
  .header-inner { width: min(calc(100% - 32px), 1370px); }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: min(410px, 100%);
    padding: 18px 28px 40px;
    display: block;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    background: var(--white);
    box-shadow: -20px 30px 60px rgba(10, 31, 57, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s, visibility 0.3s;
  }
  .site-header.scrolled .mobile-nav { top: 68px; }
  .mobile-nav.open { visibility: visible; opacity: 1; transform: translateX(0); }
  .mobile-nav > a,
  .mobile-nav summary {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::after { content: "+"; color: var(--blue-700); font-size: 22px; font-weight: 400; }
  .mobile-nav details[open] summary::after { content: "−"; }
  .mobile-submenu { padding: 10px 0; display: grid; grid-template-columns: 1fr 1fr; }
  .mobile-submenu a { padding: 9px 8px; color: var(--muted); font-size: 15px; }
  .mobile-nav .mobile-giving { justify-content: center; min-height: 50px; margin-top: 22px; color: var(--white); background: var(--blue-700); border: 0; border-radius: 8px; font-size: 15px; }
  .mobile-nav .mobile-account-link { justify-content: center; min-height: 50px; margin-top: 22px; color: var(--white); background: var(--navy-900); border: 0; border-radius: 8px; font-size: 15px; }
  .hero { height: 730px; min-height: 0; }
  .hero-slides { width: 85%; }
  .hero-controls { bottom: 45px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-heading { text-align: center; }
  .welcome-copy { text-align: center; }
  .welcome-copy > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .worship-card { width: min(100%, 600px); margin: 0 auto; }
  .welcome-values { width: min(100%, 600px); margin: 0 auto; }
  .worship-wide-inner { grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr); gap: 30px; }
  .worship-wide .worship-times { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .worship-wide .worship-times div { padding-right: 14px; padding-left: 14px; }
  .values-grid { gap: 24px; }
  .value-card h3 { font-size: 24px; }
  .vision-grid { grid-template-columns: 1fr; }
  .vision-card { min-height: 330px; }
  .newcomer-inner { grid-template-columns: 1fr 0.75fr; }
  .newcomer-graphic svg { width: 530px; right: -250px; }
  .ministry-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 245px); }
  .ministry-card.children { grid-row: auto; }
  .message-grid { grid-template-columns: 1fr; }
  .news-layout { gap: 40px; }
  .resource-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 32px; }

  .subpage-local-nav {
    padding: 36px 0;
    overflow: hidden;
  }

  .subpage-local-nav-inner {
    width: calc(100% - 40px);
    min-height: 72px;
    margin: 0 20px;
    padding: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    border-radius: 20px;
    scrollbar-width: none;
  }

  .subpage-local-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .subpage-local-nav a {
    min-height: 54px;
    padding: 0 20px;
    flex: 0 0 auto;
    border-radius: 13px;
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  .section { padding: 90px 20px; }
  .brand::before { width: 194px; height: 41px; }
  .hero { height: 700px; margin-top: var(--header-height); }
  .hero-media { background-position: 70% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4, 20, 40, 0.92), rgba(5, 25, 50, 0.62) 100%), linear-gradient(0deg, rgba(4, 15, 31, 0.35), transparent); }
  .hero-inner { width: calc(100% - 40px); padding-top: 0; }
  .hero-slides { width: 100%; min-height: 340px; }
  .hero h1 { font-size: clamp(38px, 10vw, 52px); }
  .hero-description { font-size: 17px; }
  .hero-description br { display: none; }
  .hero-actions { align-items: stretch; }
  .button { padding: 0 18px; }
  .hero-controls { left: 0; right: auto; bottom: 32px; }
  .quick-links { margin-top: 0; padding: 0; }
  .quick-grid { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; }
  .quick-item { min-height: 100px; padding: 20px 17px; }
  .quick-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-item:last-child { border-bottom: 0; }
  .quick-icon { width: 42px; height: 42px; }
  .quick-item small { font-size: 13px; }
  .welcome { padding-top: 95px; padding-bottom: 64px; }
  .welcome-heading { margin-bottom: 46px; }
  .welcome-values { min-height: 0; padding: 32px 26px; }
  .welcome-values h3 { font-size: 27px; }
  .worship-wide {
    min-height: 0;
    padding: 34px 20px;
  }
  .worship-wide-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .worship-wide-copy .card-topline { max-width: 220px; }
  .worship-wide h3 { font-size: clamp(20px, 5.4vw, 28px); white-space: nowrap; }
  .worship-wide h3 br { display: none; }
  .worship-wide .worship-times { grid-template-columns: 1fr; border-top: 1px solid rgba(255, 255, 255, 0.15); }
  .worship-wide .worship-times div {
    min-height: 0;
    padding: 14px 0;
    display: flex;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .worship-wide .worship-times dt { margin-bottom: 0; }
  .worship-wide .worship-times dd { font-size: 16px; }
  .worship-wide .worship-place { margin: 18px 0 0; }
  .core-values { padding: 56px 20px; }
  .values-eyebrow { margin-bottom: 22px; }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .value-card {
    min-height: 142px;
    padding: 22px 0;
    display: grid;
    grid-template-columns: 92px 1fr;
    column-gap: 22px;
    align-content: center;
    text-align: left;
    border-bottom: 1px solid var(--line);
  }
  .value-card:last-child { border-bottom: 0; }
  .value-icon { width: 86px; height: 86px; grid-column: 1; grid-row: 1 / 4; }
  .value-icon svg { width: 39px; }
  .value-card h3 { margin: 0 0 1px; grid-column: 2; font-size: 21px; }
  .value-card > strong { grid-column: 2; font-size: 14px; }
  .value-card > p { max-width: none; margin: 8px 0 0; grid-column: 2; font-size: 14px; line-height: 1.65; }
  .welcome h2,
  .section-heading h2,
  .newcomer h2 { font-size: 34px; }
  .worship-card { padding: 34px 28px; }
  .vision-grid { margin-top: 38px; }
  .newcomer { padding: 0 20px; }
  .newcomer-inner { min-height: 640px; display: block; }
  .newcomer-copy { padding: 80px 0 280px; text-align: center; }
  .newcomer-actions { justify-content: center; flex-wrap: wrap; }
  .newcomer-graphic { position: absolute; inset: auto 0 0; height: 300px; }
  .newcomer-graphic svg { width: 500px; right: 50%; transform: translateX(50%); }
  .heart-halo { top: 30px; right: 18px; width: 166px; height: 148px; }
  .heart-halo::before,
  .heart-halo::after { width: 84px; height: 134px; border-radius: 84px 84px 0 0; }
  .heart-halo::before { left: 83px; }
  .split-heading { display: block; }
  .split-heading > p { margin-top: 15px; }
  .ministry-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .ministry-card { min-height: 230px; }
  .message-art { height: 310px; }
  .verse-art b { font-size: 28px; }
  .message-copy { display: block; }
  .message-copy > span { display: block; margin-top: 8px; }
  .message-list a { padding: 17px 0; }
  .mini-thumb { width: 112px; height: 79px; }
  .news-layout { grid-template-columns: 1fr; }
  .resource-strip { padding: 65px 20px; }
  .resource-links { grid-template-columns: 1fr; }
  .site-footer { padding: 65px 20px 0; }
  .footer-brand { padding-bottom: 26px; }
  .footer-links { margin-top: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .footer-bottom { min-height: 120px; margin-top: 45px; padding: 25px 0; flex-direction: column; justify-content: center; gap: 12px; text-align: center; }
  .footer-legal { justify-content: center; }
  .footer-bottom > p { flex: initial; }
}

@media (max-width: 520px) {
  .welcome-values {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .welcome-values-intro strong { font-size: 17px; }

  .welcome-values-diagram {
    width: 100%;
    height: 422px;
    margin-top: 22px;
  }

  .value-connectors {
    left: 45px;
    top: 57px;
    width: 2px;
    height: 254px;
    background: linear-gradient(#83b5ee, #70b99f 50%, #efbc67);
    border-radius: 999px;
  }

  .value-connectors path { display: none; }

  .welcome-values-list {
    display: grid;
    grid-template-rows: repeat(3, 92px);
    gap: 11px;
  }

  .welcome-values-list li,
  .welcome-values-list li:nth-child(1),
  .welcome-values-list li:nth-child(2),
  .welcome-values-list li:nth-child(3) {
    position: relative;
    inset: auto;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 63px 58px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    text-align: left;
    transform: none;
  }

  .value-origin-word {
    justify-content: flex-start;
    font-size: 15px;
    letter-spacing: .05em;
  }

  .welcome-value-icon {
    width: 50px;
    height: 50px;
  }

  .welcome-value-icon svg { width: 23px; }

  .welcome-values-list li > span:last-child { align-items: flex-start; }
  .welcome-values-list strong { font-size: 14px; }
  .welcome-values-list small { font-size: 10px; }

  .logos-name-result {
    bottom: 0;
    width: calc(100% - 10px);
    min-height: 100px;
  }

  .logos-name-result strong { font-size: 37px; }
}

@media (max-width: 440px) {
  .brand::before { width: 178px; height: 38px; }
  .hero { height: 670px; }
  .hero h1 { font-size: 36px; }
  .hero-actions { flex-direction: column; width: 220px; }
  .hero-controls { display: none; }
  .quick-item { gap: 10px; padding: 17px 11px; }
  .quick-item strong { font-size: 16px; }
  .quick-item small { display: block; }
  .welcome h2,
  .section-heading h2,
  .newcomer h2 { font-size: 31px; }
  .newcomer-copy > p:not(.eyebrow) br { display: none; }
  .play-link { width: 100%; justify-content: center; }
  .message-art { height: 250px; }
  .verse-art b { font-size: 23px; }
  .message-copy h3 { font-size: 19px; }
  .mini-thumb { width: 91px; height: 66px; }
  .message-list strong { font-size: 16px; }
  .newcomer-contact > div { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; text-align: left; }
  .newcomer-contact dd { font-size: 14px; overflow-wrap: anywhere; }
  .welcome-values { padding: 29px 22px; }
  .welcome-values h3 { font-size: 24px; }
  .worship-wide { padding: 30px 20px; }
  .worship-wide h3 { font-size: 25px; }
  .value-card { grid-template-columns: 80px 1fr; column-gap: 17px; }
  .value-icon { width: 76px; height: 76px; }
  .value-card h3 { font-size: 19px; }
  .newcomer-actions .button,
  .newcomer-text-link { width: 100%; justify-content: center; }
  .event-card { padding-right: 42px; grid-template-columns: 72px 1fr; gap: 14px; }
  .event-date strong { font-size: 26px; }
  .event-arrow { right: 14px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .newcomer-graphic .heart-halo,
  .newcomer-graphic svg > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
:where(.message-grid)[hidden] { display: none !important; }
