/*
Theme Name: SNGH Modern
Theme URI: https://example.com/sngh-modern
Author: Custom Build
Author URI: https://example.com
Description: A clean, modern WordPress theme for SNGH — hero banner, quick-link cards, a ministries grid, recorded messages list, and a contact-rich footer. Built to plug into your existing menu and pages. Everything editable from Appearance > Customize.
Version: 2.16.6
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sngh-modern
Tags: one-column, custom-menu, custom-logo, featured-images, footer-widgets, theme-options, translation-ready
*/

/* -----------------------------------------------------------
   0. Variables — change these to restyle the whole site
----------------------------------------------------------- */
:root {
  --sn-teal: #0f3d3e;
  --sn-teal-dark: #0a2929;
  --sn-gold: #c08a3e;
  --sn-gold-light: #dcaa6a;
  --sn-cream: #f6f4ee;
  --sn-white: #ffffff;
  --sn-text: #2b2f2e;
  --sn-text-light: #667070;
  --sn-border: #e3e0d6;
  --sn-radius: 10px;
  --sn-max-width: 1180px;
  --sn-font-heading: Georgia, 'Times New Roman', serif;
  --sn-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* -----------------------------------------------------------
   1. Reset / base
----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sn-font-body);
  color: var(--sn-text);
  background: var(--sn-white);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sn-teal); text-decoration: none; }
a:hover { color: var(--sn-gold); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sn-font-heading);
  color: var(--sn-teal);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p { margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
table th, table td { border: 1px solid var(--sn-border); padding: 10px 14px; text-align: left; }
table th { background: var(--sn-cream); }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}
.container {
  max-width: var(--sn-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--sn-gold); color: var(--sn-white); border-color: var(--sn-gold); }
.btn-primary:hover { background: var(--sn-gold-light); border-color: var(--sn-gold-light); color: var(--sn-white); }
.btn-outline { background: transparent; color: var(--sn-white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--sn-white); }
.btn-outline-teal { background: transparent; color: var(--sn-teal); border-color: var(--sn-teal); }
.btn-outline-teal:hover { background: var(--sn-teal); color: var(--sn-white); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sn-gold);
  display: block;
  margin-bottom: 10px;
}
.section { padding: 80px 0; }
.section-cream { background: var(--sn-cream); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 32px; }

/* -----------------------------------------------------------
   2. Header / navigation
----------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 999; background: var(--sn-white); border-bottom: 1px solid var(--sn-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { max-height: 56px; width: auto; }
.site-title { font-family: var(--sn-font-heading); font-size: 22px; margin: 0; color: var(--sn-teal); }
.site-title a { color: var(--sn-teal); }

.main-navigation { display: flex; align-items: center; gap: 8px; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.main-navigation li { position: relative; }
.main-navigation > ul > li > a { display: block; padding: 12px 14px; font-weight: 600; font-size: 15px; color: var(--sn-teal); }
.main-navigation > ul > li > a:hover { color: var(--sn-gold); }
.main-navigation .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--sn-white); border: 1px solid var(--sn-border); border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08); min-width: 240px; padding: 8px 0;
}
.main-navigation li:hover > .sub-menu, .main-navigation li.focus > .sub-menu { display: block; }
.main-navigation .sub-menu li a { padding: 10px 18px; font-size: 14px; font-weight: 500; }
.main-navigation .menu-item-has-children > a::after { content: " \25BE"; font-size: 11px; }

.header-cta { display: none; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 2px solid var(--sn-teal); border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--sn-teal); margin: 4px 0; }

/* Homepage only: header floats transparently over the hero photo,
   then becomes a solid bar once the visitor scrolls past it. */
body.has-transparent-header .site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  z-index: 50;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
body.has-transparent-header .site-header .site-title a,
body.has-transparent-header .site-header .main-navigation > ul > li > a {
  color: var(--sn-white);
  transition: color 0.25s ease;
}
body.has-transparent-header .site-header .main-navigation > ul > li > a:hover { color: var(--sn-gold-light); }
body.has-transparent-header .site-header .menu-toggle { border-color: rgba(255,255,255,0.85); }
body.has-transparent-header .site-header .menu-toggle span { background: var(--sn-white); }

body.has-transparent-header .site-header.is-scrolled {
  position: fixed;
  background: var(--sn-white);
  border-bottom: 1px solid var(--sn-border);
  box-shadow: 0 4px 16px rgba(15,45,45,0.08);
}
body.has-transparent-header .site-header.is-scrolled .site-title a,
body.has-transparent-header .site-header.is-scrolled .main-navigation > ul > li > a {
  color: var(--sn-teal);
}
body.has-transparent-header .site-header.is-scrolled .menu-toggle { border-color: var(--sn-teal); }
body.has-transparent-header .site-header.is-scrolled .menu-toggle span { background: var(--sn-teal); }

/* -----------------------------------------------------------
   3. Hero
----------------------------------------------------------- */
.hero {
  position: relative; color: var(--sn-white); min-height: 520px; display: flex; align-items: center;
  background: linear-gradient(160deg, var(--sn-teal), var(--sn-teal-dark));
  background-size: cover; background-position: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,41,41,0.55), rgba(10,41,41,0.78)); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--sn-max-width); margin: 0 auto; padding: 90px 24px; }
.hero-inner.has-weekly {
  max-width: 1360px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 14px; color: var(--sn-gold-light); margin-bottom: 14px; display: block; }
.hero h1 { color: var(--sn-white); font-size: 46px; max-width: 720px; margin-bottom: 20px; }
.hero p { max-width: 560px; font-size: 18px; color: rgba(255,255,255,0.88); }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Weekly Activities widget — floats beside the hero heading, bigger and
   higher up the page than the old cards-row placement. */
.hero-weekly-card {
  background: rgba(255,255,255,0.68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--sn-text);
  border-radius: var(--sn-radius);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  padding: 40px 38px;
}
.hero-weekly-card h3 { color: var(--sn-teal); font-size: 23px; margin: 0 0 22px; }
.hero-weekly-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-weekly-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15,45,45,0.12);
}
.hero-weekly-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-weekly-list li:first-child { padding-top: 0; }
.hero-weekly-activities {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-weekly-activity { font-size: 16px; font-weight: 600; color: var(--sn-text); line-height: 1.35; }
.hero-weekly-day-time {
  font-size: 13px;
  font-weight: 500;
  color: var(--sn-text-light);
  white-space: nowrap;
  text-align: right;
  padding-top: 2px;
}
.hero-weekly-list li.is-recess .hero-weekly-activity,
.hero-weekly-list li.is-recess .hero-weekly-day-time {
  color: var(--sn-text-light);
  opacity: 0.65;
}
.hero-weekly-recess-note {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  color: var(--sn-gold);
  opacity: 1;
}

/* -----------------------------------------------------------
   4. Quick-link cards
----------------------------------------------------------- */
.cards-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  margin-top: -70px; position: relative; z-index: 3; padding: 0 24px;
  max-width: 1360px; margin-left: auto; margin-right: auto;
}
.info-card {
  display: block;
  background: var(--sn-white);
  border-radius: var(--sn-radius);
  box-shadow: 0 18px 40px rgba(15,45,45,0.14);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.2s ease;
}
.info-card:hover { transform: translateY(-4px); }
.info-card .icon { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: var(--sn-cream); display: flex; align-items: center; justify-content: center; color: var(--sn-gold); font-size: 22px; }
.info-card h3 { font-size: 19px; margin-bottom: 8px; }
.info-card p { color: var(--sn-text-light); font-size: 15px; margin-bottom: 14px; }
.info-card .card-link { font-weight: 600; color: var(--sn-gold); font-size: 14px; }

/* Photo variant — used when a background photo is set for a card */
.info-card.has-image {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  overflow: hidden;
  z-index: 3;
}
.info-card.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,41,41,0.15) 35%, rgba(10,41,41,0.82));
  z-index: 0;
}
.info-card.has-image h3,
.info-card.has-image p,
.info-card.has-image .card-link {
  position: relative;
  z-index: 1;
}
.info-card.has-image h3 { color: var(--sn-white); }
.info-card.has-image p { color: rgba(255,255,255,0.85); }
.info-card.has-image .card-link { color: var(--sn-gold-light); }
.info-card.has-image:hover { transform: translateY(-4px); }

/* -----------------------------------------------------------
   4b. Full-width photo slideshow
----------------------------------------------------------- */
.photo-slideshow {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 340px;
  max-height: 560px;
  overflow: hidden;
  margin: 64px 0 0;
}
.slideshow-track { position: relative; width: 100%; height: 100%; overflow: hidden; }
.photo-slideshow .slide {
  position: absolute;
  inset: 0;
  display: block;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1);
  transform-origin: center center;
  z-index: 1;
  animation: sn-kenburns 14s ease-in-out infinite alternate;
  will-change: transform;
}
.photo-slideshow .slide.active { opacity: 1; z-index: 2; }
/* Slight stagger per slide so all 5 don't breathe in perfect unison */
.photo-slideshow .slide:nth-child(2) { animation-delay: -3.5s; }
.photo-slideshow .slide:nth-child(3) { animation-delay: -7s; }
.photo-slideshow .slide:nth-child(4) { animation-delay: -10.5s; }
.photo-slideshow .slide:nth-child(5) { animation-delay: -1.5s; }
@keyframes sn-kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .photo-slideshow .slide { animation: none; }
}
.photo-slideshow .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,41,41,0) 55%, rgba(10,41,41,0.55));
}
.slide-caption {
  position: absolute;
  left: 40px;
  bottom: 34px;
  z-index: 2;
  color: var(--sn-white);
  font-family: var(--sn-font-heading);
  font-size: 26px;
  font-weight: 700;
  max-width: 70%;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(10,41,41,0.35);
  color: var(--sn-white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.slideshow-arrow:hover { background: rgba(10,41,41,0.6); }
.slideshow-prev { left: 20px; }
.slideshow-next { right: 20px; }
.slideshow-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.slideshow-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.35);
  padding: 0;
  cursor: pointer;
}
.slideshow-dot.active { background: var(--sn-white); }

/* -----------------------------------------------------------
   4b. Upcoming Events — horizontally slidable, clickable cards
----------------------------------------------------------- */
.events-slider-wrap { position: relative; }
.events-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.events-slider::-webkit-scrollbar { display: none; }
.event-slide {
  display: block;
  flex: 0 0 280px;
  scroll-snap-align: start;
  border: 1px solid var(--sn-border);
  border-radius: var(--sn-radius);
  overflow: hidden;
  background: var(--sn-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15,45,45,0.14);
  border-color: transparent;
}
.event-slide .event-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--sn-cream); }
.event-slide .event-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.event-slide .event-body { padding: 18px 18px 20px; }
.event-slide .event-date {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--sn-gold); margin-bottom: 8px; display: block;
}
.event-slide h3 { font-size: 16.5px; margin-bottom: 6px; color: var(--sn-teal); }
.event-slide p { font-size: 13.5px; color: var(--sn-text-light); margin: 0; }
.slider-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--sn-border);
  background: var(--sn-white);
  color: var(--sn-teal);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15,45,45,0.12);
  z-index: 4;
}
.slider-arrow:hover { background: var(--sn-teal); color: var(--sn-white); border-color: var(--sn-teal); }
.slider-prev { left: -14px; }
.slider-next { right: -14px; }

/* -----------------------------------------------------------
   4b2. Moving photo strip — continuous right-to-left scroll
----------------------------------------------------------- */
.photo-marquee {
  width: 100%;
  overflow: hidden;
  background: var(--sn-cream);
  padding: 36px 0;
}
.photo-marquee-track {
  display: flex;
  width: max-content;
  animation: sn-marquee 34s linear infinite;
}
.photo-marquee:hover .photo-marquee-track { animation-play-state: paused; }
.photo-marquee-track img {
  height: 180px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--sn-radius);
  margin-right: 18px;
}
@keyframes sn-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .photo-marquee-track { animation: none; overflow-x: auto; }
}

/* -----------------------------------------------------------
   4c. The Lord's Supper — two-column panel (text left, photo right)
----------------------------------------------------------- */
.lords-supper-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--sn-cream);
  border-radius: var(--sn-radius);
  overflow: hidden;
}
.lords-supper-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 60px;
}
.lords-supper-body h2 { font-size: 32px; margin-bottom: 14px; }
.lords-supper-body p { margin-bottom: 4px; }
.lords-supper-icon {
  width: 100%;
  min-height: 340px;
  background: var(--sn-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--sn-gold);
}
.lords-supper-photo { width: 100%; min-height: 340px; }
.lords-supper-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lords-supper-time {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--sn-teal);
  color: var(--sn-white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  width: fit-content;
}
.lords-supper-cta { margin-top: 18px; }

/* -----------------------------------------------------------
   5. Ministries grid
----------------------------------------------------------- */
.ministry-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.ministry-card {
  position: relative; border-radius: var(--sn-radius); overflow: hidden; min-height: 190px;
  display: flex; align-items: flex-end; background: var(--sn-teal);
  background-size: cover; background-position: center; color: var(--sn-white);
}
.ministry-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,41,41,0) 30%, rgba(10,41,41,0.88)); }
.ministry-card span { position: relative; z-index: 2; padding: 16px; font-weight: 700; font-size: 15.5px; font-family: var(--sn-font-heading); line-height: 1.3; }

/* -----------------------------------------------------------
   6. Recorded messages
----------------------------------------------------------- */
.messages-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.messages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.message-card { background: var(--sn-white); border: 1px solid var(--sn-border); border-radius: var(--sn-radius); overflow: hidden; }
.message-card .message-thumb { aspect-ratio: 16/9; background: var(--sn-teal); overflow: hidden; }
.message-card .message-thumb img { width: 100%; height: 100%; object-fit: cover; }
.message-card .message-body { padding: 18px 20px; }
.message-card h3 { font-size: 17px; margin-bottom: 6px; }
.message-card .message-date { font-size: 13px; color: var(--sn-text-light); }
.no-content { text-align: center; padding: 40px; border: 1px dashed var(--sn-border); border-radius: var(--sn-radius); color: var(--sn-text-light); }
.section-foot { text-align: center; margin-top: 40px; }

/* -----------------------------------------------------------
   7. CTA banner
----------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--sn-teal), var(--sn-teal-dark)); color: var(--sn-white);
  border-radius: var(--sn-radius); padding: 56px 40px; display: flex; align-items: center;
  justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-banner h2 { color: var(--sn-white); margin-bottom: 8px; font-size: 27px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin: 0; }

/* -----------------------------------------------------------
   8. Footer
----------------------------------------------------------- */
.site-footer { background: var(--sn-teal-dark); color: rgba(255,255,255,0.75); padding: 70px 0 30px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px; }
.site-footer h4 { color: var(--sn-white); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,0.72); font-size: 14.5px; }
.site-footer a:hover { color: var(--sn-gold-light); }
.footer-about { flex: 1 1 320px; max-width: 420px; }
.footer-about .site-title { color: var(--sn-white); }
.footer-address { margin-bottom: 14px; }
.footer-map { margin-bottom: 18px; border-radius: var(--sn-radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.15); }
.footer-map iframe { display: block; filter: grayscale(15%) contrast(1.05); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.footer-notes { flex: 0 1 220px; }
.footer-links { flex: 0 0 auto; margin-left: auto; text-align: right; }
.footer-links ul, .footer-links li { list-style: none; margin: 0 0 10px; padding: 0; }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* -----------------------------------------------------------
   9. Generic page / blog content
----------------------------------------------------------- */
.page-header-simple { background: var(--sn-cream); padding: 60px 0; text-align: center; border-bottom: 1px solid var(--sn-border); }
.page-header-simple h1 { font-size: 34px; margin: 0; }
.page-header-simple .eyebrow { justify-content: center; }

/* Photo banner header — used by "Photo Banner Page" and "Ministry Detail Page" templates */
.page-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  color: var(--sn-white);
  background-color: var(--sn-teal-dark);
  background-size: cover;
  background-position: center;
}
.page-banner-small { min-height: 240px; }
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,41,41,0.35), rgba(10,41,41,0.78));
}
.page-banner-inner {
  position: relative;
  z-index: 2;
  max-width: var(--sn-max-width);
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
  width: 100%;
}
.page-banner h1 { color: var(--sn-white); font-size: 38px; margin: 0; }
.eyebrow-on-dark { color: var(--sn-gold-light); }

/* When a page has a featured image, its banner extends up behind the
   transparent floating header (same treatment as the homepage hero) —
   give the title extra clearance so it never sits under the nav. */
body.has-transparent-header .page-banner { min-height: 380px; }
body.has-transparent-header .page-banner-small { min-height: 300px; }
body.has-transparent-header .page-banner-inner { padding-top: 118px; }

.ministry-back-link { max-width: 780px; margin: 40px auto 0; }

/* Let alignfull blocks placed in ordinary page content break out to the
   full browser width — used by the "Full-Width Photo + Description Row"
   pattern below, and any other alignfull block. Page templates render
   the_content() directly inside .entry-content, itself inside .container,
   so that's the parent we need to break out of. */
.entry-content > .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Full-Width Photo + Description Row pattern — edge-to-edge photo and
   description sitting side by side in the same row, for use on any page. */
/* WordPress's block "layout" support adds its own generated classes
   (is-layout-flex, wp-container-core-columns-is-layout-XXXX) with a
   two-class selector (.wp-block-columns.is-layout-flex { display:flex }),
   which otherwise beats a plain single-class override on specificity
   alone. !important guarantees our grid layout wins here regardless. */
.sn-pattern-full-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: stretch !important;
  gap: 0 !important;
}
.sn-pattern-full-row.sn-pattern-row-contained {
  max-width: 900px;
  margin: 32px auto;
  border-radius: var(--sn-radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15,45,45,0.10);
}
.sn-pattern-full-row-media {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  margin: 0;
}
.sn-pattern-full-row-media figure {
  position: absolute;
  inset: 0;
  margin: 0 !important;
}
.sn-pattern-full-row-media img {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  margin: 0 !important;
}
/* Inside the block editor only: undo the absolute positioning above so the
   Image block stays a normal, clickable element — Gutenberg needs it to
   occupy real space in the layout for you to select and replace it. The
   editor canvas doesn't need to look pixel-perfect here, just usable; the
   live site (rule above) is what visitors actually see. */
.editor-styles-wrapper .sn-pattern-full-row-media {
  position: static;
  overflow: visible;
  display: block;
}
.editor-styles-wrapper .sn-pattern-full-row-media figure { position: static; }
.editor-styles-wrapper .sn-pattern-full-row-media img {
  position: static !important;
  height: auto !important;
}
.sn-pattern-full-row-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 64px 64px;
  background: var(--sn-cream);
}
.sn-pattern-full-row-text h2 { font-size: 32px; margin-bottom: 14px; }
@media (max-width: 900px) {
  .sn-pattern-full-row { grid-template-columns: 1fr !important; }
  .sn-pattern-full-row-media { min-height: 260px; }
  .sn-pattern-full-row-text { padding: 40px 28px; text-align: center; align-items: center; }
}

/* Event Details List pattern (date, location, sync to calendar) */
.sn-pattern-event-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}
.sn-event-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--sn-text-light);
}
.sn-event-detail-row svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--sn-text-light); }
.sn-event-detail-link a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sn-teal);
  font-weight: 600;
  text-decoration: none;
}
.sn-event-detail-link a svg { color: var(--sn-teal); }
.sn-event-detail-link a:hover { color: var(--sn-gold); }
.sn-event-detail-link a:hover svg { color: var(--sn-gold); }

/* Full-Width Photo Feature pattern (heading + text + buttons) */
.sn-pattern-feature-photo {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  margin: 0;
}
.sn-pattern-feature-photo > .wp-block-group__inner-container {
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
}
.sn-pattern-feature-photo-bg {
  position: absolute;
  inset: 0;
  margin: 0 !important;
  z-index: 0;
}
.sn-pattern-feature-photo-bg img {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  margin: 0 !important;
}
.sn-pattern-feature-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10,41,41,0.75), rgba(10,41,41,0.55));
}
.sn-pattern-feature-photo-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 80px 24px;
  margin-left: max(24px, calc((100% - var(--sn-max-width)) / 2));
}
.sn-pattern-feature-photo-content h2 { color: var(--sn-white); font-size: 42px; margin: 0 0 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.sn-pattern-feature-photo-content p {
  color: var(--sn-white);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.sn-pattern-feature-photo-content .wp-block-buttons { margin-top: 28px; }
.sn-pattern-feature-btn-solid .wp-block-button__link {
  background: var(--sn-gold);
  color: var(--sn-white);
  border-radius: 999px;
  font-weight: 600;
  padding: 14px 30px;
}
.sn-pattern-feature-btn-solid .wp-block-button__link:hover { background: var(--sn-gold-light); }
.sn-pattern-feature-btn-outline .wp-block-button__link {
  background: transparent;
  color: var(--sn-white);
  border: 2px solid var(--sn-white);
  border-radius: 999px;
  font-weight: 600;
  padding: 12px 28px;
}
.sn-pattern-feature-btn-outline .wp-block-button__link:hover { background: rgba(255,255,255,0.15); }
/* Inside the block editor only: undo the absolute positioning so the
   background Image block stays a normal, clickable element you can
   select and replace — same reasoning as the other full-width photo
   patterns in this theme. */
.editor-styles-wrapper .sn-pattern-feature-photo-bg {
  position: static;
}
.editor-styles-wrapper .sn-pattern-feature-photo-bg img {
  position: static !important;
  height: auto !important;
}
@media (max-width: 782px) {
  .sn-pattern-feature-photo { min-height: 420px; }
  .sn-pattern-feature-photo-content { padding: 60px 24px; }
  .sn-pattern-feature-photo-content h2 { font-size: 30px; }
}

/* Recorded Messages Table pattern (Google Drive links) */
.sn-messages-row-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sn-messages-row-controls-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--sn-text-light);
  margin-right: 4px;
}
.sn-messages-row-btn {
  background: var(--sn-cream);
  border: 1px solid rgba(15,45,45,0.15);
  color: var(--sn-teal);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.sn-messages-row-btn:hover { background: rgba(15,45,45,0.08); }
.sn-messages-row-btn.is-active { background: var(--sn-teal); color: var(--sn-white); border-color: var(--sn-teal); }
.sn-messages-row-btn.is-active:hover { background: var(--sn-teal); }
.sn-pattern-messages-table {
  max-height: 480px;
  overflow-y: auto;
  border-radius: var(--sn-radius);
  border: 1px solid rgba(15,45,45,0.1);
}
.sn-pattern-messages-table table { width: 100%; border-collapse: collapse; margin: 0; }
.sn-pattern-messages-table th,
.sn-pattern-messages-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(15,45,45,0.1); }
.sn-pattern-messages-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--sn-teal);
  color: var(--sn-white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sn-pattern-messages-table tbody tr:nth-child(even) { background: var(--sn-cream); }
.sn-pattern-messages-table td a {
  display: inline-block;
  background: var(--sn-teal);
  color: var(--sn-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.sn-pattern-messages-table td a:hover { background: var(--sn-gold); }
@media (max-width: 600px) {
  .sn-pattern-messages-table th,
  .sn-pattern-messages-table td { padding: 10px 8px; font-size: 14px; }
}

/* PDF Document Viewer + Download Button pattern */
.sn-pattern-pdf-viewer { margin: 40px 0; text-align: center; }
.sn-pdf-frame {
  width: 100%;
  height: 800px;
  border: 1px solid rgba(15,45,45,0.15);
  border-radius: var(--sn-radius);
  margin-bottom: 24px;
  display: block;
}
.sn-pattern-pdf-download .wp-block-button__link {
  background: var(--sn-teal);
  color: var(--sn-white);
  border-radius: 999px;
  font-weight: 600;
  padding: 12px 30px;
}
.sn-pattern-pdf-download .wp-block-button__link:hover { background: var(--sn-gold); color: var(--sn-white); }
@media (max-width: 600px) {
  .sn-pdf-frame { height: 480px; }
}

/* Coming Soon (empty page placeholder) pattern */
.sn-pattern-coming-soon {
  text-align: center;
  max-width: 560px;
  margin: 60px auto;
  padding: 20px;
}
.sn-coming-soon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--sn-cream);
  color: var(--sn-teal);
  margin-bottom: 24px;
}
.sn-coming-soon-icon svg { width: 38px; height: 38px; }
.sn-pattern-coming-soon h2 { font-size: 32px; margin: 0 0 14px; }
.sn-pattern-coming-soon > p { color: var(--sn-text-light); margin: 0 0 28px; font-size: 16px; }
.sn-pattern-coming-soon .wp-block-buttons { justify-content: center; }
.sn-pattern-coming-soon-button .wp-block-button__link {
  background: var(--sn-teal);
  color: var(--sn-white);
  border-radius: 999px;
  font-weight: 600;
  padding: 12px 30px;
}
.sn-pattern-coming-soon-button .wp-block-button__link:hover { background: var(--sn-gold); color: var(--sn-white); }

/* Contact Icons pattern (address, email, phone — no map) */
.sn-pattern-contact-icons { margin: 40px 0; }
.sn-pattern-contact-icon-item { text-align: center; padding: 0 20px; }
.sn-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sn-teal);
  color: var(--sn-white);
  margin-bottom: 16px;
}
.sn-contact-icon svg { width: 26px; height: 26px; }
.sn-pattern-contact-icon-label {
  color: var(--sn-teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px !important;
}
.sn-pattern-contact-icon-value { margin: 0 !important; }
.sn-pattern-contact-icon-value a { color: var(--sn-text); text-decoration: underline; }
.sn-pattern-contact-icon-value a:hover { color: var(--sn-gold); }
@media (max-width: 782px) {
  .sn-pattern-contact-icon-item { margin-bottom: 32px; }
  .sn-pattern-contact-icon-item:last-child { margin-bottom: 0; }
}

/* Contact Info + Google Map pattern */
.sn-pattern-contact {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin: 0;
}
.sn-pattern-contact-map {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  margin: 0;
}
.sn-pattern-contact-map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
}
.editor-styles-wrapper .sn-pattern-contact-map {
  position: static;
  overflow: visible;
  min-height: 0;
}
.editor-styles-wrapper .sn-pattern-contact-map iframe {
  position: static;
  height: 380px;
}
.sn-pattern-contact-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 48px;
  background: var(--sn-cream);
}
.sn-pattern-contact-info h3 { margin: 0 0 24px; }
.sn-pattern-contact-item { margin: 0 0 22px !important; }
.sn-pattern-contact-item:last-child { margin-bottom: 0 !important; }
.sn-pattern-contact-item strong {
  display: block;
  color: var(--sn-teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sn-pattern-contact-item a { color: var(--sn-text); text-decoration: underline; }
.sn-pattern-contact-item a:hover { color: var(--sn-gold); }
@media (max-width: 900px) {
  .sn-pattern-contact { grid-template-columns: 1fr !important; }
  .sn-pattern-contact-map { min-height: 280px; }
  .sn-pattern-contact-info { padding: 36px 28px; text-align: center; }
}

/* News / Announcement Card pattern */
.sn-pattern-news {
  background: var(--sn-white);
  border-left: 4px solid var(--sn-teal);
  border-radius: var(--sn-radius);
  padding: 32px 36px;
  margin: 32px 0 !important;
  box-shadow: 0 8px 24px rgba(15,45,45,0.08);
}
.sn-pattern-news-badge {
  display: inline-block;
  background: var(--sn-gold);
  color: var(--sn-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0 0 14px !important;
}
.sn-pattern-news h3 { margin: 0 0 10px; font-size: 24px; }
.sn-pattern-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 18px;
}
.sn-news-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sn-teal);
}
.sn-news-meta-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.sn-pattern-news > p { margin: 0 0 20px; }
.sn-pattern-news-button .wp-block-button__link {
  background: var(--sn-teal);
  color: var(--sn-white);
  border-radius: 999px;
  font-weight: 600;
  padding: 12px 26px;
}
.sn-pattern-news-button .wp-block-button__link:hover { background: var(--sn-gold); color: var(--sn-white); }

/* Event / Programme Card pattern */
.sn-pattern-event {
  display: grid !important;
  grid-template-columns: 110px 1fr !important;
  align-items: start !important;
  gap: 24px !important;
  background: var(--sn-cream);
  border-left: 4px solid var(--sn-gold);
  border-radius: var(--sn-radius);
  padding: 28px 32px;
  margin: 32px 0 !important;
  box-shadow: 0 8px 24px rgba(15,45,45,0.08);
}
.sn-pattern-event-date {
  background: var(--sn-teal);
  border-radius: var(--sn-radius);
  color: var(--sn-white);
  text-align: center;
  padding: 16px 8px;
  margin: 0;
}
.sn-pattern-event-day {
  font-family: var(--sn-font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 4px !important;
}
.sn-pattern-event-month {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 !important;
}
.sn-pattern-event-content { margin: 0; }
.sn-pattern-event-content h3 { margin: 0 0 8px; font-size: 24px; }
.sn-pattern-event-meta {
  color: var(--sn-teal);
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 12px !important;
}
@media (max-width: 600px) {
  .sn-pattern-event { grid-template-columns: 1fr !important; padding: 24px; }
  .sn-pattern-event-date {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    padding: 10px;
  }
  .sn-pattern-event-content { text-align: center; }
}

/* Full-Width Photo Strip pattern — 4 edge-to-edge photos, uniform height,
   spanning the full browser width. Uses the same robust technique as the
   Full-Width Photo + Description Row: fixed-height grid track + absolutely
   positioned photos on the live site (immune to each photo's own aspect
   ratio), reset back to normal flow inside the block editor so each photo
   stays a clickable, replaceable Image block. */
.sn-pattern-photo-strip {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-template-rows: 300px !important;
  gap: 0 !important;
  margin: 0;
}
.sn-pattern-photo-strip-item {
  position: relative;
  overflow: hidden;
  margin: 0;
}
.sn-pattern-photo-strip-item figure {
  position: absolute;
  inset: 0;
  margin: 0 !important;
}
.sn-pattern-photo-strip-item img {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  margin: 0 !important;
}
.editor-styles-wrapper .sn-pattern-photo-strip-item {
  position: static;
  overflow: visible;
}
.editor-styles-wrapper .sn-pattern-photo-strip-item figure { position: static; }
.editor-styles-wrapper .sn-pattern-photo-strip-item img {
  position: static !important;
  height: auto !important;
}
@media (max-width: 900px) {
  .sn-pattern-photo-strip { grid-template-columns: repeat(2, 1fr) !important; grid-template-rows: repeat(2, 220px) !important; }
}
@media (max-width: 480px) {
  .sn-pattern-photo-strip { grid-template-columns: 1fr !important; grid-template-rows: repeat(4, 220px) !important; }
  .hero-weekly-list li { grid-template-columns: 1fr; gap: 4px; }
  .hero-weekly-day-time { text-align: left; }
}

/* Follow Us / social icons pattern */
.sn-pattern-social-heading {
  font-family: var(--sn-font-heading);
  color: var(--sn-teal);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sn-pattern-social {
  justify-content: center;
  gap: 14px;
  margin: 8px auto 40px;
}
.sn-pattern-social .wp-social-link {
  background: var(--sn-teal);
  transition: background-color 0.2s ease;
}
.sn-pattern-social .wp-social-link:hover,
.sn-pattern-social .wp-social-link:focus {
  background: var(--sn-gold);
}
.sn-pattern-social .wp-social-link svg { fill: var(--sn-white); }

/* Lord's Supper page — banner time pill + standfirst intro */
.lords-supper-time-on-banner { margin-top: 18px; }
.lords-supper-time-simple { margin-top: 16px; display: inline-block; }
.standfirst {
  max-width: 780px;
  margin: 0 auto 36px;
  padding-left: 22px;
  border-left: 3px solid var(--sn-gold);
  font-family: var(--sn-font-heading);
  font-size: 20px;
  font-style: italic;
  color: var(--sn-text);
  line-height: 1.55;
}

.content-area { padding: 70px 0; }
.entry-content { max-width: 780px; margin: 0 auto; }
.entry-content img { border-radius: var(--sn-radius); margin: 20px 0; }
.entry-content h2 { margin-top: 1.4em; }
.entry-meta { text-align: center; color: var(--sn-text-light); font-size: 14px; margin-bottom: 20px; }
.post-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.post-list article { border-bottom: 1px solid var(--sn-border); padding-bottom: 40px; }
.post-list h2 { font-size: 26px; margin-bottom: 8px; }
.pagination { text-align: center; margin-top: 50px; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; margin: 0 4px; border: 1px solid var(--sn-border); border-radius: 6px; font-size: 14px; }
.pagination .current { background: var(--sn-teal); color: var(--sn-white); border-color: var(--sn-teal); }
.search-form { display: flex; gap: 8px; max-width: 780px; margin: 0 auto 40px; }
.search-form input[type="search"] { flex: 1; padding: 12px 16px; border: 1px solid var(--sn-border); border-radius: 6px; font-size: 15px; }
.comment-list { list-style: none; padding: 0; max-width: 780px; margin: 40px auto; }
.comment-list .comment { border-bottom: 1px solid var(--sn-border); padding: 20px 0; }
.widget { margin-bottom: 36px; }
.widget h2, .widget-title { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }

/* Ministries landing page template */
.ministries-landing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.ministries-landing-grid .info-card { text-align: left; }

/* -----------------------------------------------------------
   9b. Block patterns (inserted via the block editor "Patterns" tab)
----------------------------------------------------------- */

/* Photo + text split (used by both "photo left" and "photo right" patterns) */
.sn-pattern-split { align-items: center; gap: 40px; margin: 40px 0; }
.sn-pattern-split-media img { border-radius: var(--sn-radius); display: block; width: 100%; height: auto; }
.sn-pattern-split-text h2 { font-size: 28px; }
.sn-pattern-split-text .wp-block-buttons { margin-top: 8px; }
.sn-pattern-split-text .wp-block-button__link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  background: var(--sn-gold);
  color: var(--sn-white);
}
.sn-pattern-split-text .wp-block-button__link:hover { background: var(--sn-gold-light); color: var(--sn-white); }

/* Highlighted scripture / quote */
blockquote.sn-pattern-quote {
  margin: 40px 0;
  padding: 8px 0 8px 26px;
  border-left: 3px solid var(--sn-gold);
  border-top: none;
}
blockquote.sn-pattern-quote p {
  font-family: var(--sn-font-heading);
  font-size: 22px;
  font-style: italic;
  color: var(--sn-teal);
  line-height: 1.5;
}
blockquote.sn-pattern-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--sn-text-light);
}

/* Quick facts / info box */
.sn-pattern-infobox {
  background: var(--sn-cream);
  border-radius: var(--sn-radius);
  padding: 30px 34px;
  margin: 40px 0;
}
.sn-pattern-infobox h3 { font-size: 18px; margin-bottom: 12px; }
.sn-pattern-infobox ul { margin: 0; padding-left: 20px; }
.sn-pattern-infobox li { margin-bottom: 6px; }

/* Call-to-action banner (matches homepage CTA banner) */
.sn-pattern-cta {
  background: linear-gradient(135deg, var(--sn-teal), var(--sn-teal-dark));
  color: var(--sn-white);
  border-radius: var(--sn-radius);
  padding: 50px 44px;
  text-align: center;
  margin: 40px 0;
}
.sn-pattern-cta h2 { color: var(--sn-white); }
.sn-pattern-cta p { color: rgba(255,255,255,0.82); }
.sn-pattern-cta .wp-block-buttons { justify-content: center; margin-top: 8px; }
.sn-pattern-cta .wp-block-button__link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  background: var(--sn-gold);
  color: var(--sn-white);
}
.sn-pattern-cta .wp-block-button__link:hover { background: var(--sn-gold-light); color: var(--sn-white); }

/* Duty roster table */
.sn-pattern-table { margin: 40px 0; }

/* Photo row */
.sn-pattern-photo-row { margin: 40px 0; }
.sn-pattern-photo-row img { border-radius: var(--sn-radius); }

/* -----------------------------------------------------------
   10. Responsive
----------------------------------------------------------- */
@media (max-width: 980px) {
  .ministry-grid { grid-template-columns: repeat(2, 1fr); }
  .ministries-landing-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cards-row, .messages-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-inner.has-weekly { grid-template-columns: 1fr; gap: 36px; }
  .hero-weekly-card { padding: 30px 28px; }
  .event-slide { flex-basis: 240px; }
  .photo-slideshow { height: 46vh; min-height: 260px; margin-top: 40px; }
  .slide-caption { font-size: 21px; max-width: 85%; left: 24px; bottom: 24px; }
  .lords-supper-band { grid-template-columns: 1fr; }
  .lords-supper-body { padding: 34px 28px; text-align: center; align-items: center; }
  .lords-supper-time { margin-left: auto; margin-right: auto; }
  .lords-supper-icon, .lords-supper-photo { min-height: 220px; }
  .photo-marquee-track img { height: 120px; margin-right: 12px; }
  .page-banner { min-height: 240px; }
  .page-banner h1 { font-size: 28px; }
  body.has-transparent-header .page-banner,
  body.has-transparent-header .page-banner-small { min-height: 300px; }
  body.has-transparent-header .page-banner-inner { padding-top: 96px; }
}
@media (max-width: 560px) {
  .slider-arrow { display: none; } /* touch swipe handles it on small screens */
  .slideshow-arrow { width: 38px; height: 38px; font-size: 20px; }
}
@media (max-width: 780px) {
  .header-cta { display: flex; }
  .menu-toggle { display: inline-flex; flex-direction: column; align-items: flex-end; }
  .main-navigation {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--sn-white); border-bottom: 1px solid var(--sn-border);
    flex-direction: column; padding: 10px 24px 20px; max-height: 75vh; overflow-y: auto;
  }
  .main-navigation.is-open { display: flex; }
  .main-navigation ul { flex-direction: column; width: 100%; }
  .main-navigation > ul > li { width: 100%; }
  .main-navigation .sub-menu { position: static; box-shadow: none; border: none; padding-left: 14px; display: none; }
  .main-navigation li.focus > .sub-menu { display: block; }
  .header-inner { position: relative; }

  /* The mobile dropdown panel always has a solid white background, on every
     page, regardless of header state — force its text dark whenever it's
     open so it can never end up invisible (white text on a white panel).
     !important is used deliberately here: this is the one place a page's
     header-state text-color rules must never be allowed to win once the
     panel is open. */
  .main-navigation.is-open > ul > li > a,
  .main-navigation.is-open .sub-menu a {
    color: var(--sn-teal) !important;
  }
  .main-navigation.is-open > ul > li > a:hover,
  .main-navigation.is-open .sub-menu a:hover {
    color: var(--sn-gold) !important;
  }
  .footer-links { margin-left: 0; text-align: left; flex-basis: 100%; }
  .footer-notes { flex-basis: 100%; }
  .cta-banner { flex-direction: column; text-align: center; }
  .ministry-grid, .ministries-landing-grid { grid-template-columns: 1fr; }
}
