/* Website Completion v54.2.2: reliable media and CTA contrast patch. */
:root{
  --wog-polish-navy:#061c3a;
  --wog-polish-navy-2:#0d315f;
  --wog-polish-gold:#e7ad18;
  --wog-polish-gold-dark:#8a6500;
  --wog-polish-ink:#10233f;
  --wog-polish-muted:#596a80;
  --wog-polish-line:#dfe6ef;
  --wog-polish-surface:#fff;
  --wog-polish-radius:18px;
  --wog-polish-shadow:0 12px 32px rgba(20,45,80,.08);
}

/* Reliable media: the fallback remains behind the real image and is revealed if it fails. */
.wog-card-media{
  position:relative;
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:
    radial-gradient(circle at 78% 18%,rgba(231,173,24,.34),transparent 34%),
    linear-gradient(135deg,var(--wog-polish-navy),var(--wog-polish-navy-2));
  color:#fff;
}
.wog-card-media__fallback{
  position:absolute;
  inset:auto;
  z-index:0;
  padding:.45rem .8rem;
  border:1px solid rgba(255,255,255,.45);
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:#fff;
}
.wog-card-media img{
  position:absolute;
  inset:0;
  z-index:1;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  object-fit:cover;
  transition:transform .25s ease,opacity .2s ease;
}

/* Unified article-card behaviour on existing public destinations. */
.wog-jesus-destination__articles article,
.wog-bbf__articles article{
  height:100%;
  overflow:hidden;
  border:1px solid var(--wog-polish-line);
  border-radius:var(--wog-polish-radius);
  background:var(--wog-polish-surface);
  box-shadow:var(--wog-polish-shadow);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.wog-jesus-destination__articles article>a,
.wog-bbf__articles article>a{
  display:flex!important;
  flex-direction:column;
  height:100%;
  color:inherit;
  text-decoration:none;
}
.wog-card-body{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:22px!important;
}
.wog-card-body h3{margin:.45rem 0 .65rem!important;line-height:1.22}
.wog-card-body p{margin:0 0 1.15rem;line-height:1.68;color:var(--wog-polish-muted)}
.wog-card-body>span:last-child{margin-top:auto;font-weight:800;color:var(--wog-polish-gold-dark)}
.wog-jesus-destination__articles article:hover,
.wog-bbf__articles article:hover{
  transform:translateY(-4px);
  border-color:rgba(212,166,42,.55);
  box-shadow:0 20px 42px rgba(20,45,80,.14);
}
.wog-jesus-destination__articles article:hover .wog-card-media img,
.wog-bbf__articles article:hover .wog-card-media img{transform:scale(1.025)}

/* Consistent section rhythm without altering established layouts. */
.wog-jesus-destination__section,
.wog-bbf__section{scroll-margin-top:110px}
.wog-jesus-destination__heading,
.wog-bbf__section-head{margin-bottom:clamp(28px,4vw,44px)}

/* CTA and button contrast safeguards, including dark public callout sections. */
.wog-jesus-destination a.is-primary,
.wog-bbf__actions a:first-child,
.wog-bbf__ask a,
.wog-bbf a[class*="primary"],
[class*="wog-"] a[class*="primary"]{
  background:var(--wog-polish-gold)!important;
  border-color:var(--wog-polish-gold)!important;
  color:var(--wog-polish-navy)!important;
  text-shadow:none!important;
}
.wog-jesus-destination__actions a,
.wog-jesus-destination__cta a,
.wog-bbf__actions a,
.wog-bbf__ask a,
.wog-bbf__continue a{
  min-height:46px;
  transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease;
}
.wog-jesus-destination__actions a:hover,
.wog-jesus-destination__cta a:hover,
.wog-bbf__actions a:hover,
.wog-bbf__ask a:hover,
.wog-bbf__continue a:hover{transform:translateY(-2px)}

/* Visible keyboard focus and comfortable touch targets. */
.wog-jesus-destination a:focus-visible,
.wog-bbf a:focus-visible{
  outline:3px solid var(--wog-polish-gold)!important;
  outline-offset:4px;
  border-radius:8px;
}

@media(max-width:782px){
  .wog-card-body{padding:19px!important}
  .wog-jesus-destination__section,.wog-bbf__section{padding-top:clamp(42px,9vw,64px);padding-bottom:clamp(42px,9vw,64px)}
}
@media(max-width:620px){
  .wog-jesus-destination__actions a,
  .wog-jesus-destination__cta a,
  .wog-bbf__actions a{width:100%;min-height:48px}
}
@media(prefers-reduced-motion:reduce){
  .wog-card-media img,
  .wog-jesus-destination__articles article,
  .wog-bbf__articles article,
  .wog-jesus-destination__actions a,
  .wog-jesus-destination__cta a,
  .wog-bbf__actions a,
  .wog-bbf__ask a,
  .wog-bbf__continue a{transition:none!important}
}


/* v54.2.1: ensure Creation and other primary WordPress/GeneratePress buttons remain readable. */
.wp-block-button__link[href*="/creation/"],
.gb-button[href*="/creation/"],
a.button[href*="/creation/"],
a.wp-element-button[href*="/creation/"],
.wog-bbf__section a[href*="/creation/"][class*="button"],
.wog-bbf__section a[href*="/creation/"][class*="cta"]{
  background:var(--wog-polish-gold)!important;
  border-color:var(--wog-polish-gold)!important;
  color:var(--wog-polish-navy)!important;
  -webkit-text-fill-color:var(--wog-polish-navy)!important;
  text-shadow:none!important;
  opacity:1!important;
}
.wp-block-button__link[href*="/creation/"]:hover,
.gb-button[href*="/creation/"]:hover,
a.button[href*="/creation/"]:hover,
a.wp-element-button[href*="/creation/"]:hover{
  background:#f2bf31!important;
  color:var(--wog-polish-navy)!important;
  -webkit-text-fill-color:var(--wog-polish-navy)!important;
}


/* v54.2.2: runtime-safe image fallback for legacy/custom Genesis card markup. */
.wog-media-fallback-active{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  min-height:180px;
  overflow:hidden;
  background:
    radial-gradient(circle at 78% 18%,rgba(231,173,24,.34),transparent 34%),
    linear-gradient(135deg,var(--wog-polish-navy),var(--wog-polish-navy-2))!important;
}
.wog-runtime-media-fallback{
  display:inline-flex;
  position:relative;
  z-index:2;
  align-items:center;
  justify-content:center;
  padding:.52rem .9rem;
  border:1px solid rgba(255,255,255,.5);
  border-radius:999px;
  color:#fff!important;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.11em;
  line-height:1;
  text-transform:uppercase;
}

/* Exact CTA repair, independent of the page builder's classes or nested spans. */
.wog-force-primary-cta,
.wog-force-primary-cta:link,
.wog-force-primary-cta:visited,
.wog-force-primary-cta:hover,
.wog-force-primary-cta:focus{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:var(--wog-polish-gold)!important;
  border:2px solid var(--wog-polish-gold)!important;
  color:var(--wog-polish-navy)!important;
  -webkit-text-fill-color:var(--wog-polish-navy)!important;
  opacity:1!important;
  text-shadow:none!important;
  font-weight:800!important;
}
.wog-force-primary-cta *,
.wog-force-primary-cta__text{
  color:var(--wog-polish-navy)!important;
  -webkit-text-fill-color:var(--wog-polish-navy)!important;
  opacity:1!important;
  text-shadow:none!important;
}
.wog-force-primary-cta:hover,
.wog-force-primary-cta:focus-visible{
  background:#f2bf31!important;
  border-color:#f2bf31!important;
  box-shadow:0 10px 24px rgba(0,0,0,.18)!important;
}
