body.cer-plugin-page {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Target the theme's ancestor containers without changing the plugin layout. */
body.cer-plugin-page .cer-theme-shell,
body.cer-plugin-page :where(div, main, article, section):has(.cer-site) {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  float: none !important;
}

body.cer-plugin-page :is(.skip-link, .skip-to-content, .skip-link-wrap, .wp-block-template-skip-link):not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.cer-plugin-page > header,
body.cer-plugin-page > footer,
body.cer-plugin-page .site-header,
body.cer-plugin-page .site-footer,
body.cer-plugin-page #masthead,
body.cer-plugin-page #colophon,
body.cer-plugin-page header.wp-block-template-part,
body.cer-plugin-page footer.wp-block-template-part,
body.cer-plugin-page .entry-header,
body.cer-plugin-page .page-header,
body.cer-plugin-page .wp-block-post-title {
  display: none !important;
}

.cer-site,
.cer-site * {
  box-sizing: border-box;
}

.cer-site {
  --navy: #062b1d;
  --navy-2: #031a11;
  --gold: #d2a12c;
  --gold-2: #f0be46;
  --ink: #1b2922;
  --muted: #606963;
  --line: #e1e8e3;
  --panel: #fff;
  --content-width: min(1420px, calc(100% - 56px));
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  overflow: clip;
}

.cer-site a {
  color: inherit;
  text-decoration: none;
}

.cer-css-diagnostic {
  display: none !important;
}

.cer-site .cer-hp-field {
  display: none !important;
}

.cer-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  overflow: visible;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(10, 48, 34, .06);
}

.cer-header-inner {
  position: relative;
  overflow: visible;
  width: var(--content-width);
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.cer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  font: 700 22px/1.15 Arial, Helvetica, sans-serif;
  min-width: 0;
  white-space: normal;
}

.cer-site .cer-brand {
  color: var(--navy);
}

.cer-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
}

.cer-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  color: var(--navy);
}

.cer-nav a {
  padding: 22px 0 18px;
  border-bottom: 3px solid transparent;
}

.cer-nav a.is-active {
  border-color: var(--gold);
}

.cer-toggle {
  position: relative;
  z-index: 10002;
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.cer-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  flex: 0 0 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}

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

.cer-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.cer-site :is(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.cer-hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--navy);
}

.cer-slide,
.cer-mini-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity .55s ease;
}

.cer-slide.is-active,
.cer-mini-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.cer-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.18) contrast(1.08);
  opacity: .9;
  transform: scale(1.09);
}

.cer-hero-stage {
  position: relative;
  z-index: 2;
  width: min(1068px, 42vw);
  min-width: 900px;
  height: 100%;
  background-color: var(--navy-2);
  filter: saturate(1.2) contrast(1.08) brightness(1.04);
}

.cer-hero-stage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.cer-slide {
  display: grid;
  place-items: stretch center;
}

.cer-wrap {
  width: var(--content-width);
  margin: 0 auto;
}

.cer-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 520px;
  gap: 28px;
  padding: 30px 0 26px;
}

.cer-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 26px rgba(10, 48, 34, .08);
}

.cer-card-pad {
  padding: 28px;
}

.cer-title {
  margin: 0 0 17px;
  font: 700 28px/1.1 Georgia, serif;
  color: var(--navy);
}

.cer-title::after {
  content: "";
  width: 50px;
  height: 2px;
  display: block;
  margin-top: 12px;
  background: var(--gold);
}

.cer-who p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #293b30;
  font-size: 16px;
  line-height: 1.6;
}

.cer-mini {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--navy);
}

.cer-mini-slide img,
.cer-image-band img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cer-media-section {
  margin-top: 26px;
}

.cer-section-heading {
  margin: 0 0 14px;
  font: 700 24px/1.1 Georgia, serif;
  color: var(--navy);
}

.cer-image-band {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.cer-image-band img {
  height: auto;
  filter: saturate(1.12) contrast(1.06);
}

.cer-sidebar {
  display: grid;
  align-content: start;
  gap: 26px;
}

.cer-video video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.cer-event-box {
  width: 100%;
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  background: #f5f8f6;
  color: var(--ink);
  text-align: left;
}

.cer-search {
  display: flex;
  gap: 8px;
}

.cer-search input {
  min-width: 0;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ccd8d0;
}

.cer-search button {
  width: 44px;
  border: 0;
  color: #fff;
  background: var(--navy);
}

.cer-cta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 10px 0 26px;
}

.cer-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
}

.cer-tour-title {
  display: grid;
  place-items: center;
  min-height: 28px;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.cer-marquee {
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.cer-logo-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  min-height: 118px;
  padding: 12px 0;
  animation: cer-logo-scroll 42s linear infinite;
}

.cer-ministry-logo {
  width: 108px;
  height: 78px;
  object-fit: contain;
}

@keyframes cer-logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cer-footer {
  color: #fff;
  background: var(--navy-2);
}

.cer-footer-grid {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  grid-template-areas: "identity menu ministry" "address menu ministry";
  gap: 18px 54px;
  padding: 42px 0 30px;
}

.cer-footer-identity { grid-area: identity; }
.cer-footer-address { grid-area: address; }
.cer-footer-menu { grid-area: menu; }
.cer-footer-ministry { grid-area: ministry; }

.cer-footer-grid > section {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cer-footer h3 {
  margin: 0 0 14px;
  color: var(--gold-2);
  font-size: 16px;
}

.cer-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cer-footer li {
  margin: 0 0 8px;
}

.cer-footer a,
.cer-footer p,
.cer-footer span,
.cer-footer li,
.cer-address {
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
}

.cer-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-weight: 800;
  flex-wrap: wrap;
}

.cer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.cer-social a,
.cer-chat {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.cer-copy {
  padding: 14px 20px;
  color: rgba(255, 255, 255, .76);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  text-align: center;
}

.cer-contact-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cer-contact-widget span {
  padding: 7px 12px;
  color: var(--navy);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .15);
  font-size: 12px;
}

.cer-about-hero {
  background-color: var(--navy);
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 44px 20px;
  color: #fff;
  text-align: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cer-about-hero h1 {
  margin: 0;
  color: #fff;
  font: 800 66px/1 Arial, Helvetica, sans-serif;
}

.cer-about-page,
.cer-contact-page,
.cer-cells-page {
  width: var(--content-width);
  margin: 0 auto;
  padding: 30px 0 34px;
}

.cer-about-intro,
.cer-faith-head,
.cer-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.cer-about-photo {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  background: var(--navy);
}

.cer-about-photo img,
.cer-cell-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cer-about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
}

.cer-about-photo.vision::after {
  background: rgba(18, 75, 53, .25);
}

.cer-about-photo.faith::after {
  background: rgba(18, 75, 53, .25);
}

.cer-contact-form,
.cer-prayer-form,
.cer-cell-form {
  display: grid;
  gap: 14px;
}

.cer-contact-details {
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.cer-contact-details p {
  margin: 0;
}

.cer-contact-details .cer-contact-methods {
  margin-top: 20px;
}

.cer-contact-details strong {
  font-weight: 700;
}

.cer-contact-form-title {
  margin: 36px 0 24px;
  color: var(--navy);
  font: 700 24px/1.3 Arial, Helvetica, sans-serif;
}

.cer-contact-alert {
  margin: 0 0 20px;
}

.cer-site .cer-salvation-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 12px 22px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  color: #fff;
  background: var(--navy);
  font: 700 16px/1.4 Arial, Helvetica, sans-serif;
  text-align: center;
  cursor: pointer;
}

.cer-site .cer-salvation-download:hover {
  background: var(--navy-2);
}

.cer-contact-form input,
.cer-contact-form textarea,
.cer-prayer-form input,
.cer-prayer-form textarea,
.cer-cell-form input,
.cer-cell-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #ccd8d0;
}

.cer-contact-form textarea,
.cer-prayer-form textarea,
.cer-cell-form textarea {
  min-height: 120px;
}

.cer-contact-form button,
.cer-form-submit {
  min-height: 44px;
  border: 0;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
}

.cer-contact-map iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
}

.cer-cells-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cer-cell-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.cer-cell-image {
  min-height: 180px;
  background: var(--navy);
}

.cer-cell-body {
  padding: 18px;
}

.cer-cell-read {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  color: #fff;
  background: var(--navy);
}

.cer-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(8, 25, 17, .65);
}

.cer-modal.is-open {
  display: grid;
}

.cer-modal-panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  color: var(--ink);
}

.cer-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: #fff;
  background: var(--navy);
}

.cer-modal-head h2 {
  margin: 0;
}

.cer-modal-close {
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 28px;
}

.cer-modal .cer-prayer-form,
.cer-modal .cer-cell-form,
.cer-salvation-body {
  padding: 22px;
}

@media (max-width: 980px) {
  .cer-site {
    --content-width: min(100% - 32px, 760px);
  }

  .cer-toggle {
    display: flex;
  }

  .cer-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: #fff;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    box-shadow: 0 16px 28px rgba(10, 48, 34, .14);
  }

  .cer-nav.is-open {
    display: flex;
  }

  .cer-nav a {
    padding: 14px 0;
  }

  .cer-hero {
    height: 360px;
  }

  .cer-hero-stage {
    width: 100%;
    min-width: 0;
  }

  .cer-content-grid,
  .cer-about-intro,
  .cer-faith-head,
  .cer-contact-grid {
    grid-template-columns: 1fr;
  }

  .cer-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "identity address" "menu ministry";
    gap: 28px 20px;
    align-items: start;
  }

  .cer-cells-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .cer-copy {
    padding-bottom: 64px;
  }

  .cer-header-inner {
    gap: 12px;
    padding: 8px 0;
  }

  .cer-brand {
    font-size: 17px;
    gap: 8px;
  }

  .cer-logo {
    width: 36px;
    height: 36px;
  }

  .cer-hero {
    height: 260px;
  }

  .cer-card-pad {
    padding: 20px;
  }

  .cer-cta,
  .cer-cells-grid {
    grid-template-columns: 1fr;
  }

  .cer-about-hero h1 {
    font-size: 42px;
  }
}
