/* Union Baptist Website Sections: section styles carried over from the original design. */
/* ===== Homepage hero — centered, professional layout (photo + purple tint kept) ===== */
.hero-photo-v2{
  position:relative;color:#fff;overflow:hidden;
  min-height:88vh;display:flex;align-items:center;padding:0;
}
.hero-photo-v2 .hero-bg{
  position:absolute;inset:0;background-size:cover;background-position:72% center;background-repeat:no-repeat;
}
.hero-photo-v2 .hero-scrim{
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 46%, rgba(36,17,58,.66) 0%, rgba(36,17,58,.40) 60%, rgba(36,17,58,.12) 100%),
    linear-gradient(180deg, rgba(36,17,58,.55) 0%, rgba(45,20,74,.22) 40%, rgba(24,10,40,.70) 100%);
}
.hero-photo-v2 .container{position:relative;z-index:2;max-width:1160px;width:100%;margin:0 auto;padding:0 28px}
.hero-copy-v2{max-width:980px;margin:0 auto;padding:96px 0 72px;text-align:center}

.hero-eyebrow-row{display:flex;justify-content:center;align-items:center;gap:.6rem;margin-bottom:1.2rem}
.hero-eyebrow-row .dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}
.hero-copy-v2 .eyebrow{margin:0;color:var(--accent);letter-spacing:.14em}

.hero-copy-v2 h1{
  color:#fff;text-shadow:0 2px 24px rgba(0,0,0,.4);
  font-size:clamp(2.4rem,5vw,3.9rem);line-height:1.1;margin:0 auto 1.2rem;max-width:18ch;
}
.hero-copy-v2 h1::after{
  content:"";display:block;width:64px;height:3px;border-radius:2px;background:var(--accent);margin:1.5rem auto 0;
}
.hero-copy-v2 .sub{
  max-width:56ch;margin:0 auto 2.2rem;font-size:1.15rem;line-height:1.7;color:#F7EDDD;text-shadow:0 1px 12px rgba(0,0,0,.35);
}

.hero-actions-v2{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap;margin:0 0 2.4rem}

.hero-stats-row{
  display:flex;justify-content:center;align-items:stretch;flex-wrap:wrap;
  max-width:640px;margin:0 auto;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:18px;
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);overflow:hidden;
}
.hero-stat{flex:1 1 0;display:flex;flex-direction:column;align-items:center;padding:1.1rem 1.2rem;min-width:140px}
.hero-stat + .hero-stat{border-left:1px solid rgba(255,255,255,.16)}
.hero-stat b{font-family:var(--font-display);font-size:2rem;font-weight:800;color:#fff;line-height:1}
.hero-stat span{font-size:.74rem;color:#D9C4E8;text-transform:uppercase;letter-spacing:.08em;margin-top:.45rem}

.hero-info-strip{
  display:flex;justify-content:center;flex-wrap:wrap;gap:.7rem;margin:1.8rem auto 0;padding:0;border:0;max-width:1000px;
}
.hero-info-item{
  display:flex;align-items:center;gap:.6rem;
  background:rgba(20,8,32,.38);border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:.6rem 1.15rem;
}
.hero-info-item svg{width:17px;height:17px;color:var(--accent);flex:0 0 17px}
.hero-info-item span{font-size:.88rem;color:#F0E4F5;line-height:1.4}
.hero-info-item strong{display:block;color:#fff;font-size:.92rem}

@media (max-width:820px){
  .hero-photo-v2{min-height:auto}
  .hero-photo-v2 .hero-bg{background-position:62% center}
  .hero-photo-v2 .hero-scrim{
    background:linear-gradient(180deg,rgba(36,17,58,.90) 0%,rgba(45,20,74,.86) 55%,rgba(55,20,96,.82) 100%);
  }
  .hero-photo-v2 .container{padding:0 20px}
  .hero-copy-v2{padding:64px 0 52px}
  .hero-copy-v2 .sub{font-size:1.05rem}
  .hero-actions-v2{margin-bottom:2rem}
  .hero-stat{min-width:0;padding:.9rem .6rem}
  .hero-stat b{font-size:1.5rem}
  .hero-info-item{border-radius:14px;width:100%;justify-content:center}
  .hero-info-strip{gap:.6rem}
}
/* ===== Homepage events — matching events page design ===== */
.ev-featured{background:linear-gradient(180deg,var(--brand) 0%,var(--brand-dark) 100%);border-radius:20px;padding:2.4rem 2.6rem;color:#fff;display:flex;gap:2rem;align-items:center;box-shadow:var(--shadow)}
@media (max-width:760px){.ev-featured{flex-direction:column;text-align:center;padding:2rem 1.6rem}}
.ev-featured-date{flex:0 0 auto;background:rgba(255,255,255,.14);border-radius:16px;padding:1.2rem 1.6rem;text-align:center;min-width:110px}
.ev-featured-date .day{font-family:var(--font-display);font-size:2.6rem;font-weight:800;line-height:1}
.ev-featured-date .mon{text-transform:uppercase;letter-spacing:.08em;font-size:.82rem;color:var(--accent);font-weight:700;margin-top:.3rem}
.ev-featured-body{flex:1}
.ev-featured-meta{display:flex;flex-wrap:wrap;gap:1.4rem;margin-top:1.1rem}
.ev-featured-meta span{display:flex;align-items:center;gap:.5rem;color:#f2ecfb;font-size:.92rem;font-weight:600}
.ev-featured-meta svg{width:17px;height:17px;color:var(--accent)}
.ev-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.3rem;margin-top:1.4rem}
.ev-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:1.5rem 1.6rem;box-shadow:var(--shadow-sm);display:flex;gap:1.1rem;transition:transform .18s ease,box-shadow .18s ease}
.ev-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.ev-date-tile{flex:0 0 64px;width:64px;height:64px;border-radius:13px;background:var(--bg-alt);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.ev-date-tile .day{font-family:var(--font-display);font-weight:800;font-size:1.5rem;color:var(--brand);line-height:1}
.ev-date-tile .mon{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:700;margin-top:.15rem}
.ev-card-body{flex:1;min-width:0}
.ev-badge{display:inline-block;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:.25rem .65rem;border-radius:999px;margin-bottom:.55rem}
.ev-card h4{margin:0 0 .4rem;font-size:1.08rem;color:var(--fg);font-family:var(--font-body);font-weight:700}
.ev-card p.desc{color:var(--muted);font-size:.9rem;margin:0 0 .7rem;line-height:1.5}
.ev-card-meta{display:flex;flex-direction:column;gap:.35rem}
.ev-card-meta span{display:flex;align-items:center;gap:.5rem;color:var(--muted);font-size:.86rem}
.ev-card-meta svg{width:15px;height:15px;flex:0 0 15px;color:var(--brand-soft)}
/* ===== Homepage polish: Our Ministries carousel + Recent Sermons ===== */
.ubcx-home-ministries .carousel-heading{align-items:flex-end;margin-bottom:2.2rem}
.ubcx-home-ministries .carousel-heading h2{margin:0;font-size:clamp(2rem,3.4vw,2.6rem)}
.ubcx-home-ministries .carousel-actions{gap:1.4rem}
.ubcx-home-ministries .carousel-arrow{width:46px;height:46px;box-shadow:var(--shadow-sm)}
.ubcx-home-ministries .carousel-viewport{padding:.5rem .25rem 1.5rem}
.ubcx-home-ministries .carousel-track{gap:22px}
.ubcx-home-ministries .carousel-card{width:calc((min(calc(var(--container) - 48px), calc(100vw - 48px)) - 66px) / 4);min-width:260px;display:flex;flex-direction:column;color:inherit;text-decoration:none;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow-sm);background:var(--card)}
.ubcx-home-ministries .carousel-card:hover{box-shadow:var(--shadow)}
.ubcx-home-ministries .carousel-card img,
.ubcx-home-ministries .hm-ph{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
.ubcx-home-ministries .hm-ph{display:grid;place-items:center;background:linear-gradient(135deg,var(--brand) 0%,var(--brand-soft) 100%);color:#fff}
.ubcx-home-ministries .hm-ph svg{width:52px;height:52px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ubcx-home-ministries .card-body{padding:1.25rem 1.4rem 1.35rem;gap:.55rem}
.ubcx-home-ministries .card-title{font-size:1.2rem;line-height:1.3;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.ubcx-home-ministries .hm-excerpt{margin:0;color:var(--muted);font-size:.95rem;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:4.65em}
.ubcx-home-ministries .card-link{margin-top:auto;padding-top:.9rem;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:.9rem;color:var(--brand)}
.ubcx-home-ministries .carousel-card:hover .card-link{color:var(--accent-dark)}
@media (max-width:1050px){.ubcx-home-ministries .carousel-card{width:calc((100vw - 92px) / 3)}}
@media (max-width:760px){.ubcx-home-ministries .carousel-heading{align-items:flex-start;flex-direction:column}.ubcx-home-ministries .carousel-card{width:calc((100vw - 70px) / 2);min-width:240px}}
@media (max-width:520px){.ubcx-home-ministries .carousel-card{width:calc(100vw - 88px);min-width:0}.ubcx-home-ministries .carousel-heading h2{font-size:2rem}}

.ubcx-home-sermons .hp-serm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:1.4rem;margin-top:2.2rem}
.ubcx-home-sermons .hp-serm-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--border);border-top:4px solid var(--accent);border-radius:18px;padding:1.5rem 1.6rem 1.4rem;box-shadow:var(--shadow-sm);transition:transform .2s ease,box-shadow .2s ease}
.ubcx-home-sermons .hp-serm-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.ubcx-home-sermons .hp-serm-top{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:1.1rem}
.ubcx-home-sermons .hp-serm-date{flex:0 0 64px;width:64px;height:64px;border-radius:14px;background:var(--brand);display:flex;flex-direction:column;align-items:center;justify-content:center}
.ubcx-home-sermons .hp-serm-date .day{font-family:var(--font-display);font-weight:800;font-size:1.5rem;line-height:1;color:#fff}
.ubcx-home-sermons .hp-serm-date .mon{font-size:.66rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:#e7c95e;margin-top:.2rem}
.ubcx-home-sermons .hp-serm-badge{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;padding:.3rem .75rem;border-radius:999px;background:var(--bg-alt);color:var(--brand);max-width:62%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ubcx-home-sermons .hp-serm-title{margin:0 0 .55rem;font-size:1.12rem;line-height:1.35;color:var(--brand);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.ubcx-home-sermons .hp-serm-meta{display:flex;align-items:center;gap:.4rem;color:var(--muted);font-size:.9rem;min-height:1.4em;margin-bottom:1.2rem}
.ubcx-home-sermons .hp-serm-meta svg{width:14px;height:14px;flex:0 0 14px;color:var(--brand-soft)}
.ubcx-home-sermons .hp-serm-action{margin-top:auto;padding-top:1rem;border-top:1px solid var(--border)}
.ubcx-home-sermons .hp-serm-action a{display:inline-flex;align-items:center;gap:.45rem;font-size:.92rem;font-weight:700;color:var(--brand);text-decoration:none}
.ubcx-home-sermons .hp-serm-action a:hover{color:var(--accent-dark);text-decoration:underline}
.ubcx-home-sermons .hp-serm-action svg{width:14px;height:14px}

/* ===== About page redesign ===== */

/* Intro split */
.about-intro{display:grid;grid-template-columns:1fr 1fr;gap:3.5rem;align-items:center}
@media(max-width:820px){.about-intro{grid-template-columns:1fr;gap:2rem}}
.about-intro-img{border-radius:20px;overflow:hidden;box-shadow:var(--shadow)}
.about-intro-img img{width:100%;height:380px;object-fit:cover;display:block}
.about-intro-img .img-ph{width:100%;height:380px;background:var(--bg-alt);border-radius:20px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:.9rem}
.about-pillars{display:flex;flex-direction:column;gap:.85rem;margin-top:1.6rem}
.about-pillar{display:flex;align-items:flex-start;gap:.9rem;background:var(--bg-alt);border-radius:12px;padding:.9rem 1.1rem;border:1px solid var(--border)}
.about-pillar-icon{width:38px;height:38px;border-radius:10px;background:rgba(75,34,117,.1);display:flex;align-items:center;justify-content:center;flex:0 0 38px}
.about-pillar-icon svg{width:18px;height:18px;color:var(--brand)}
.about-pillar strong{display:block;color:var(--fg);font-weight:700;font-size:.95rem;margin-bottom:.2rem}
.about-pillar span{color:var(--muted);font-size:.85rem;line-height:1.45}

/* Stats strip */
.about-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem;margin-top:2.4rem}
@media(max-width:600px){.about-stats{grid-template-columns:1fr 1fr}}
.about-stat{text-align:center;background:rgba(75,34,117,.07);border:1px solid rgba(75,34,117,.15);border-radius:14px;padding:1.4rem 1rem}
.about-stat .n{font-family:var(--font-display);font-size:2.2rem;font-weight:800;color:var(--brand);line-height:1}
.about-stat .l{font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600;margin-top:.35rem}

/* Explore "Get to know us" feature cards */
.about-feature-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.1rem;margin-top:2rem}
.about-feat-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:1.5rem 1.4rem;text-decoration:none;display:block;transition:transform .18s,box-shadow .18s;position:relative;overflow:hidden}
.about-feat-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.about-feat-card .feat-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:1rem}
.about-feat-card .feat-icon svg{width:22px;height:22px}
.about-feat-card h3{font-size:1.05rem;font-weight:700;color:var(--fg);margin:0 0 .45rem;font-family:var(--font-body)}
.about-feat-card p{color:var(--muted);font-size:.875rem;margin:0 0 1.1rem;line-height:1.5}
.about-feat-card .feat-link{font-size:.82rem;font-weight:700;color:var(--brand);display:inline-flex;align-items:center;gap:.3rem}
.about-feat-card .feat-link svg{width:13px;height:13px;transition:transform .15s}
.about-feat-card:hover .feat-link svg{transform:translateX(3px)}

/* Learn more image cards */
.about-learn-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.4rem;margin-top:2rem}
.about-learn-card{border-radius:18px;overflow:hidden;border:1px solid var(--border);background:var(--card);box-shadow:var(--shadow-sm);text-decoration:none;display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s}
.about-learn-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.about-learn-img{height:190px;overflow:hidden;background:linear-gradient(145deg,var(--brand) 0%,var(--brand-dark) 100%);position:relative;display:flex;align-items:center;justify-content:center}
.about-learn-img.has-image{background:#eee}
.about-learn-img img{width:100%;height:100%;object-fit:cover;display:block}
.about-learn-img.has-image img{opacity:1;mix-blend-mode:normal}
.about-learn-img .learn-icon-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.5rem}
.about-learn-img .learn-icon-overlay svg{width:40px;height:40px;color:rgba(255,255,255,.85)}
.about-learn-img .learn-icon-overlay span{color:#fff;font-size:.78rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;text-shadow:0 1px 4px rgba(0,0,0,.75)}
.about-learn-body{padding:1.2rem 1.3rem;flex:1;display:flex;flex-direction:column}
.about-learn-body h3{font-size:1.05rem;font-weight:700;color:var(--fg);margin:0 0 .4rem;font-family:var(--font-body)}
.about-learn-body p{color:var(--muted);font-size:.85rem;margin:0 0 auto;line-height:1.5;padding-bottom:.9rem}
.about-learn-cta{display:inline-flex;align-items:center;gap:.35rem;font-size:.82rem;font-weight:700;color:var(--brand)}
.about-learn-cta svg{width:13px;height:13px;transition:transform .15s}
.about-learn-card:hover .about-learn-cta svg{transform:translateX(3px)}
/* ===== Ministries page redesign ===== */
.min-search-bar{max-width:520px;margin:0 auto 2.6rem;position:relative}
.min-search-bar svg{position:absolute;left:1.1rem;top:50%;transform:translateY(-50%);width:19px;height:19px;color:var(--muted)}
.min-search-bar input{width:100%;padding:.95rem 1.2rem .95rem 3rem;border:1.5px solid var(--border);border-radius:999px;font-size:1rem;font-family:inherit;box-sizing:border-box;background:var(--card);box-shadow:var(--shadow-sm);transition:border-color .15s ease,box-shadow .15s ease}
.min-search-bar input:focus{outline:none;border-color:var(--brand-soft);box-shadow:0 0 0 4px rgba(75,34,117,.12)}
.min-count{text-align:center;color:var(--muted);font-size:.88rem;margin:-1.8rem 0 2.2rem}

.min-featured-heading{font-family:var(--font-display);color:var(--brand);font-size:1.3rem;font-weight:700;margin:0 0 1.2rem}
.min-featured-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.4rem;margin-bottom:3rem}

.min-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.2rem}
.min-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:1.5rem 1.5rem 1.6rem;box-shadow:var(--shadow-sm);transition:transform .18s ease,box-shadow .18s ease;text-decoration:none;display:block}
.min-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);text-decoration:none}
.min-icon-badge{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:1rem}
.min-icon-badge svg{width:26px;height:26px}
.min-card h4{margin:0 0 .3rem;font-size:1.08rem;color:var(--fg);font-family:var(--font-body);font-weight:700}
.min-card .min-leader{font-size:.78rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-weight:700;margin-bottom:.5rem;display:block}
.min-card p.desc{color:var(--muted);font-size:.88rem;margin:0 0 .8rem;line-height:1.5}
.min-card .card-link{font-weight:700;color:var(--brand);font-size:.9rem}

.min-empty{grid-column:1/-1;text-align:center;padding:3rem 1rem;color:var(--muted)}
.min-empty svg{width:44px;height:44px;color:var(--border);margin-bottom:1rem}
/* ===== Events page redesign ===== */
.ev-featured{background:linear-gradient(180deg,var(--brand) 0%,var(--brand-dark) 100%);border-radius:20px;padding:2.4rem 2.6rem;color:#fff;display:flex;gap:2rem;align-items:center;margin-bottom:2.6rem;box-shadow:var(--shadow)}
@media (max-width:760px){.ev-featured{flex-direction:column;text-align:center;padding:2rem 1.6rem}}
.ev-featured-date{flex:0 0 auto;background:rgba(255,255,255,.14);border-radius:16px;padding:1.2rem 1.6rem;text-align:center;min-width:110px}
.ev-featured-date .day{font-family:var(--font-display);font-size:2.6rem;font-weight:800;line-height:1}
.ev-featured-date .mon{text-transform:uppercase;letter-spacing:.08em;font-size:.82rem;color:var(--accent);font-weight:700;margin-top:.3rem}
.ev-featured-body{flex:1}
.ev-featured .eyebrow{color:var(--accent)}
.ev-featured h2{color:#fff;margin-bottom:.5rem}
.ev-featured p{color:#e7d9f5;margin-bottom:0}
.ev-featured-meta{display:flex;flex-wrap:wrap;gap:1.4rem;margin-top:1.1rem}
.ev-featured-meta span{display:flex;align-items:center;gap:.5rem;color:#f2ecfb;font-size:.92rem;font-weight:600}
.ev-featured-meta svg{width:17px;height:17px;color:var(--accent)}

.ev-month-heading{font-family:var(--font-display);color:var(--brand);font-size:1.35rem;font-weight:700;margin:2.2rem 0 1.2rem;padding-bottom:.6rem;border-bottom:2px solid var(--border)}
.ev-month-heading:first-of-type{margin-top:0}

.ev-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.3rem}
.ev-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:1.5rem 1.6rem;box-shadow:var(--shadow-sm);display:flex;gap:1.1rem;transition:transform .18s ease,box-shadow .18s ease}
.ev-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.ev-date-tile{flex:0 0 64px;width:64px;height:64px;border-radius:13px;background:var(--bg-alt);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.ev-date-tile .day{font-family:var(--font-display);font-weight:800;font-size:1.5rem;color:var(--brand);line-height:1}
.ev-date-tile .mon{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:700;margin-top:.15rem}
.ev-card-body{flex:1;min-width:0}
.ev-badge{display:inline-block;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:.25rem .65rem;border-radius:999px;margin-bottom:.55rem}
.ev-card h4{margin:0 0 .4rem;font-size:1.08rem;color:var(--fg);font-family:var(--font-body);font-weight:700}
.ev-card p.desc{color:var(--muted);font-size:.9rem;margin:0 0 .7rem;line-height:1.5}
.ev-card-meta{display:flex;flex-direction:column;gap:.35rem}
.ev-card-meta span{display:flex;align-items:center;gap:.5rem;color:var(--muted);font-size:.86rem}
.ev-card-meta svg{width:15px;height:15px;flex:0 0 15px;color:var(--brand-soft)}

.ev-empty{text-align:center;padding:3.5rem 1rem;color:var(--muted)}
.ev-empty svg{width:48px;height:48px;color:var(--border);margin-bottom:1rem}
/* ===== Sermons page redesign ===== */

/* Featured sermon spotlight */
.serm-featured{background:linear-gradient(145deg,var(--brand) 0%,var(--brand-dark) 100%);border-radius:20px;padding:2.6rem 2.8rem;color:#fff;display:flex;gap:2.4rem;align-items:center;margin-bottom:2.8rem;box-shadow:var(--shadow);position:relative;overflow:hidden}
.serm-featured::before{content:'';position:absolute;right:-40px;top:-40px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.05);pointer-events:none}
@media(max-width:780px){.serm-featured{flex-direction:column;text-align:center;padding:2rem 1.6rem;gap:1.6rem}}
.serm-feat-date{flex:0 0 auto;background:rgba(255,255,255,.14);border-radius:16px;padding:1.4rem 1.8rem;text-align:center;min-width:108px}
.serm-feat-date .day{font-family:var(--font-display);font-size:2.8rem;font-weight:800;line-height:1;color:#fff}
.serm-feat-date .mon{text-transform:uppercase;letter-spacing:.1em;font-size:.78rem;color:var(--accent);font-weight:700;margin-top:.3rem}
.serm-feat-date .yr{font-size:.75rem;color:rgba(255,255,255,.55);margin-top:.15rem}
.serm-feat-body{flex:1}
.serm-feat-body .eyebrow{color:var(--accent);letter-spacing:.12em}
.serm-feat-body h2{color:#fff;margin:.4rem 0 .6rem;font-size:1.6rem;line-height:1.25}
.serm-feat-body p{color:#e7d9f5;margin:0 0 1.1rem;line-height:1.6}
.serm-feat-meta{display:flex;flex-wrap:wrap;gap:1.2rem;margin-bottom:1.4rem}
.serm-feat-meta span{display:flex;align-items:center;gap:.45rem;font-size:.9rem;font-weight:600;color:#f0e8fb}
.serm-feat-meta svg{width:16px;height:16px;color:var(--accent)}
.serm-feat-actions{display:flex;flex-wrap:wrap;gap:.75rem}
.serm-feat-actions a{display:inline-flex;align-items:center;gap:.45rem;padding:.6rem 1.3rem;border-radius:99px;font-weight:700;font-size:.88rem;text-decoration:none;transition:opacity .15s,transform .15s}
.serm-feat-actions a:hover{opacity:.88;transform:translateY(-1px)}
.serm-feat-actions .btn-watch{background:var(--accent);color:#241A00}
.serm-feat-actions .btn-notes{background:rgba(255,255,255,.18);color:#fff;border:1px solid rgba(255,255,255,.3)}
.serm-feat-actions svg{width:15px;height:15px}

/* Live stream bar */
.live-bar{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;background:var(--bg-alt);border-radius:14px;padding:1.1rem 1.4rem;margin-bottom:2.2rem;border:1px solid var(--border)}
.live-bar .live-label{font-weight:700;color:var(--fg);font-size:.95rem;flex:1}
.live-bar .live-label small{display:block;color:var(--muted);font-weight:400;font-size:.82rem;margin-top:.15rem}
.live-bar-btns{display:flex;gap:.7rem;flex-wrap:wrap}

/* Year heading */
.serm-year-heading{font-family:var(--font-display);color:var(--brand);font-size:1.3rem;font-weight:700;margin:2.4rem 0 1.2rem;padding-bottom:.55rem;border-bottom:2px solid var(--border);display:flex;align-items:center;gap:.6rem}
.serm-year-heading svg{width:18px;height:18px;color:var(--accent)}

/* Sermon card grid */
.serm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:1.2rem}
.serm-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:1.4rem 1.5rem;box-shadow:var(--shadow-sm);display:flex;gap:1rem;transition:transform .18s,box-shadow .18s}
.serm-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}

/* Date tile */
.serm-date-tile{flex:0 0 60px;width:60px;height:60px;border-radius:12px;background:var(--bg-alt);display:flex;flex-direction:column;align-items:center;justify-content:center}
.serm-date-tile .day{font-family:var(--font-display);font-weight:800;font-size:1.45rem;color:var(--brand);line-height:1}
.serm-date-tile .mon{font-size:.65rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700;margin-top:.12rem}

/* Card body */
.serm-card-body{flex:1;min-width:0}
.serm-series-badge{display:inline-block;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:.22rem .6rem;border-radius:999px;margin-bottom:.5rem}
.serm-card-body h4{margin:0 0 .35rem;font-size:1rem;font-weight:700;color:var(--fg);font-family:var(--font-body);line-height:1.35}
.serm-card-body .serm-desc{color:var(--muted);font-size:.84rem;margin:0 0 .65rem;line-height:1.45}
.serm-card-meta{display:flex;flex-direction:column;gap:.28rem;margin-bottom:.75rem}
.serm-card-meta span{display:flex;align-items:center;gap:.4rem;color:var(--muted);font-size:.82rem}
.serm-card-meta svg{width:13px;height:13px;flex:0 0 13px;color:var(--brand-soft)}
.serm-card-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.serm-card-actions a{display:inline-flex;align-items:center;gap:.3rem;font-size:.8rem;font-weight:700;color:var(--brand);text-decoration:none;padding:.3rem .7rem;border-radius:8px;border:1.5px solid var(--border);transition:background .15s,border-color .15s}
.serm-card-actions a:hover{background:rgba(75,34,117,.08);border-color:var(--brand-soft)}
.serm-card-actions svg{width:12px;height:12px}

/* Empty state */
.serm-empty{text-align:center;padding:3rem 1rem;color:var(--muted)}
.serm-empty svg{width:48px;height:48px;color:var(--border);margin-bottom:1rem}

/* Stats bar above archive */
.serm-stats{display:flex;flex-wrap:wrap;gap:2.4rem;margin-bottom:2rem;padding:1.2rem 1.6rem;background:var(--card);border-radius:14px;border:1px solid var(--border);box-shadow:var(--shadow-sm)}
.serm-stat{text-align:center}
.serm-stat .n{font-family:var(--font-display);font-size:1.8rem;font-weight:800;color:var(--brand);line-height:1}
.serm-stat .l{font-size:.8rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-weight:600;margin-top:.2rem}

/* ===== Text & Image section (white, e.g. "Welcome") — refined layout ===== */
.elementor-widget-ubcx-split .section:not(.brand):not(.tint){padding:104px 0}
.elementor-widget-ubcx-split .split{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(40px,6vw,96px);align-items:center}
.elementor-widget-ubcx-split .split > div:first-child{max-width:560px}
.elementor-widget-ubcx-split .split .eyebrow{display:flex;align-items:center;gap:.7rem;margin-bottom:1rem;color:var(--accent);letter-spacing:.16em}
.elementor-widget-ubcx-split .split .eyebrow::before{content:"";width:30px;height:2px;border-radius:2px;background:var(--accent);flex:0 0 30px}
.elementor-widget-ubcx-split .split h2{font-size:clamp(2.1rem,3.6vw,2.9rem);line-height:1.14;margin:0 0 1.1rem;color:var(--brand)}
.elementor-widget-ubcx-split .split .lead{font-size:1.2rem;line-height:1.6;color:var(--brand);opacity:.82;margin:0 0 1.4rem;max-width:none;font-weight:500}
.elementor-widget-ubcx-split .split > div:first-child > p:not(.lead){font-size:1.04rem;line-height:1.8;color:var(--fg);margin:0 0 1rem;max-width:60ch}
.elementor-widget-ubcx-split .split .hero-actions{justify-content:flex-start;margin-top:1.8rem !important}
.elementor-widget-ubcx-split .split .hero-actions .btn{padding:.95rem 1.8rem;border-radius:999px;font-weight:700;box-shadow:0 10px 24px rgba(184,134,11,.22)}
/* Photo: fixed 4:3 frame with a gold offset panel behind it */
.elementor-widget-ubcx-split .split > div:last-child{position:relative;padding:0 18px 18px 0}
.elementor-widget-ubcx-split .split > div:last-child::before{
  content:"";position:absolute;right:0;bottom:0;width:72%;height:78%;border-radius:22px;background:var(--accent);opacity:.9;z-index:0;
}
.elementor-widget-ubcx-split .split > div:last-child img{
  position:relative;z-index:1;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:22px;
  box-shadow:0 26px 60px rgba(36,17,58,.22);border:6px solid #fff;
}
@media (max-width:820px){
  .elementor-widget-ubcx-split .section:not(.brand):not(.tint){padding:64px 0}
  .elementor-widget-ubcx-split .split{gap:44px}
  .elementor-widget-ubcx-split .split > div:first-child{max-width:none}
  .elementor-widget-ubcx-split .split > div:last-child{padding:0 12px 12px 0}
  .elementor-widget-ubcx-split .split > div:last-child img{border-width:4px;border-radius:18px}
  .elementor-widget-ubcx-split .split > div:last-child::before{border-radius:18px}
}

/* ===== Contact page — professional two-column layout ===== */
.ubcx-contact .cp-band{background:linear-gradient(135deg,var(--brand-dark,#2e1450) 0%,var(--brand,#4b2275) 100%);color:#fff;text-align:center;padding:96px 0 88px;position:relative;overflow:hidden}
.ubcx-contact .cp-band::after{content:"";position:absolute;inset:auto -10% -60% auto;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(231,201,94,.18),transparent 65%);pointer-events:none}
.ubcx-contact .cp-band .container{position:relative;z-index:1}
.ubcx-contact .cp-band .eyebrow{color:#e7c95e;letter-spacing:.18em}
.ubcx-contact .cp-band h1{color:#fff;font-size:clamp(2.6rem,5.4vw,3.8rem);margin:0;line-height:1.1}
.ubcx-contact .cp-main{padding:96px 0}
.ubcx-contact .cp-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(40px,5vw,80px);align-items:start}
.ubcx-contact .cp-info .eyebrow{color:var(--accent,#B8860B);letter-spacing:.16em}
.ubcx-contact .cp-info h2{font-size:clamp(2rem,3.2vw,2.6rem);line-height:1.15;color:var(--brand,#4b2275);margin:0 0 1rem}
.ubcx-contact .cp-lead{font-size:1.1rem;line-height:1.75;color:var(--fg,#2b2233);opacity:.85;margin:0 0 2rem;max-width:44ch}
.ubcx-contact .cp-items{list-style:none;margin:0 0 2rem;padding:0;display:grid;gap:.9rem}
.ubcx-contact .cp-item{display:flex;gap:1rem;align-items:center;background:#fff;border:1px solid var(--border,#e9e2d6);border-radius:16px;padding:1rem 1.2rem;box-shadow:0 4px 14px rgba(36,17,58,.05)}
.ubcx-contact .cp-ico{width:44px;height:44px;border-radius:12px;background:rgba(75,34,117,.08);color:var(--brand,#4b2275);display:flex;align-items:center;justify-content:center;flex:0 0 44px}
.ubcx-contact .cp-ico svg{width:20px;height:20px}
.ubcx-contact .cp-item b{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.09em;color:var(--muted,#6b6276);margin-bottom:.15rem;font-weight:700}
.ubcx-contact .cp-item span,.ubcx-contact .cp-item a{color:var(--fg,#2b2233);font-size:1rem;line-height:1.45;font-weight:600;text-decoration:none}
.ubcx-contact .cp-item a:hover{color:var(--brand,#4b2275);text-decoration:underline}
.ubcx-contact .cp-info .btn{margin-top:.6rem}
.ubcx-contact .cp-form{background:#fff;border:1px solid var(--border,#e9e2d6);border-radius:24px;padding:clamp(28px,3.6vw,44px);box-shadow:0 24px 60px rgba(36,17,58,.10)}
.ubcx-contact .cp-form h2{font-size:1.75rem;color:var(--brand,#4b2275);margin:0 0 1.4rem;line-height:1.2}
.ubcx-contact .cp-form .ubc-public-form{max-width:none;margin:0}
.ubcx-contact .cp-map{background:var(--bg-alt,#F3EEF8);padding:96px 0;text-align:left}
.ubcx-contact .cp-map .eyebrow{color:var(--accent,#B8860B);letter-spacing:.16em}
.ubcx-contact .cp-map h2{font-size:clamp(2rem,3.2vw,2.6rem);color:var(--brand,#4b2275);margin:0 0 .5rem;line-height:1.15}
.ubcx-contact .cp-addr{font-size:1.05rem;color:var(--muted,#6b6276);margin:0}
.ubcx-contact .cp-frame{margin-top:2rem;border-radius:24px;overflow:hidden;border:6px solid #fff;box-shadow:0 24px 60px rgba(36,17,58,.14);height:440px;background:#eee}
.ubcx-contact .cp-frame iframe{width:100%;height:100%;border:0;display:block}
@media (max-width:900px){
  .ubcx-contact .cp-grid{grid-template-columns:1fr;gap:44px}
  .ubcx-contact .cp-lead{max-width:none}
}
@media (max-width:820px){
  .ubcx-contact .cp-band{padding:72px 0 64px}
  .ubcx-contact .cp-main,.ubcx-contact .cp-map{padding:64px 0}
  .ubcx-contact .cp-form{border-radius:18px;padding:24px}
  .ubcx-contact .cp-frame{height:320px;border-width:4px;border-radius:18px}
}

/* Contact page: remove the extra box around the form and balance headings */
.ubcx-contact .cp-form form{background:none;border:0;box-shadow:none;padding:0;border-radius:0;max-width:none;margin:0}
.ubcx-contact .cp-info h2,.ubcx-contact .cp-map h2,.ubcx-contact .cp-band h1{text-wrap:balance}

/* ===== Sermons page & single sermon — redesigned ===== */
.ubcx-sermons .sm-hero{background:linear-gradient(135deg,var(--brand-dark,#2e1450) 0%,var(--brand,#4b2275) 100%);background-size:cover;background-position:center;color:#fff;text-align:center;padding:104px 0 92px;position:relative}
.ubcx-sermons .sm-hero .container{position:relative;z-index:1}
.ubcx-sermons .sm-hero .eyebrow{color:#e7c95e;letter-spacing:.18em}
.ubcx-sermons .sm-hero h1{color:#fff;font-size:clamp(2.5rem,5.2vw,3.7rem);margin:0 auto;line-height:1.1;max-width:20ch}
.ubcx-sermons .sm-hero-text{max-width:60ch;margin:1.2rem auto 0;font-size:1.12rem;line-height:1.7;color:#EFE4F6}
.ubcx-sermons .sm-wrap{padding:88px 0 104px;background:var(--bg,#FBF8F3)}
.ubcx-sermons .sm-feature{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);background:#fff;border:1px solid var(--border,#e9e2d6);border-radius:26px;overflow:hidden;box-shadow:0 24px 60px rgba(36,17,58,.10);margin-bottom:56px}
.ubcx-sermons .sm-feature .sm-media{display:block;min-height:320px;height:100%}
.ubcx-sermons .sm-feature .sm-media img{width:100%;height:100%;object-fit:cover;display:block;min-height:320px}
.ubcx-sermons .sm-feature-body{padding:clamp(28px,4vw,52px)}
.ubcx-sermons .sm-label{display:inline-block;font-size:.74rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#8a6a10;background:rgba(184,134,11,.12);padding:.35rem .8rem;border-radius:999px;margin-bottom:1rem}
.ubcx-sermons .sm-feature h2{font-size:clamp(1.9rem,3vw,2.5rem);line-height:1.18;margin:0 0 .9rem;color:var(--brand,#4b2275)}
.ubcx-sermons .sm-feature h2 a,.ubcx-sermons .sm-card h3 a{color:inherit;text-decoration:none}
.ubcx-sermons .sm-feature h2 a:hover,.ubcx-sermons .sm-card h3 a:hover{text-decoration:underline}
.ubcx-sermons .sm-feature .sm-excerpt{font-size:1.02rem;line-height:1.75;color:var(--fg,#2b2233);opacity:.85;margin:1rem 0 0}
.ubcx-sermons .sm-feature .sm-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.6rem}
.ubcx-sermons .sm-meta{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-bottom:.6rem}
.ubcx-sermons .sm-date{font-size:.82rem;font-weight:700;color:var(--accent,#B8860B);letter-spacing:.04em;text-transform:uppercase}
.ubcx-sermons .sm-series{font-size:.76rem;font-weight:700;color:var(--brand,#4b2275);background:rgba(75,34,117,.08);padding:.2rem .65rem;border-radius:999px}
.ubcx-sermons .sm-by{font-size:.95rem;font-weight:600;color:var(--fg,#2b2233);margin:.2rem 0 0}
.ubcx-sermons .sm-scripture{font-size:.9rem;color:var(--muted,#6b6276);margin:.2rem 0 0;font-style:italic}
.ubcx-sermons .sm-chips{display:flex;flex-wrap:wrap;gap:.6rem;margin:0 0 40px}
.ubcx-sermons .sm-chip{display:inline-block;padding:.5rem 1.05rem;border-radius:999px;border:1px solid var(--border,#e0d6ea);background:#fff;color:var(--brand,#4b2275);font-size:.9rem;font-weight:600;text-decoration:none;transition:background .15s,color .15s}
.ubcx-sermons .sm-chip:hover{background:rgba(75,34,117,.08)}
.ubcx-sermons .sm-chip.is-active{background:var(--brand,#4b2275);border-color:var(--brand,#4b2275);color:#fff}
.ubcx-sermons .sm-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap;margin-bottom:28px}
.ubcx-sermons .sm-head h2{margin:0;font-size:clamp(1.8rem,3vw,2.3rem);color:var(--brand,#4b2275)}
.ubcx-sermons .sm-count{font-size:.92rem;color:var(--muted,#6b6276)}
.ubcx-sermons .sm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:26px}
.ubcx-sermons .sm-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--border,#e9e2d6);border-radius:20px;overflow:hidden;box-shadow:0 6px 18px rgba(36,17,58,.06);transition:transform .18s,box-shadow .18s}
.ubcx-sermons .sm-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(36,17,58,.13)}
.ubcx-sermons .sm-card .sm-media{display:block;aspect-ratio:16/9;overflow:hidden;background:#EFE8F6}
.ubcx-sermons .sm-card .sm-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}
.ubcx-sermons .sm-card:hover .sm-media img{transform:scale(1.04)}
.ubcx-sermons .sm-media-blank{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;background:linear-gradient(135deg,var(--brand,#4b2275),var(--brand-dark,#2e1450));color:#e7c95e;padding:1rem;text-align:center}
.ubcx-sermons .sm-media-blank svg{width:40px;height:40px}
.ubcx-sermons .sm-media-blank span{color:#fff;font-size:.9rem;font-weight:600}
.ubcx-sermons .sm-card-body{padding:1.4rem 1.5rem 1.5rem;display:flex;flex-direction:column;flex:1}
.ubcx-sermons .sm-card h3{font-size:1.28rem;line-height:1.3;margin:0 0 .5rem;color:var(--brand,#4b2275)}
.ubcx-sermons .sm-card .sm-excerpt{font-size:.95rem;line-height:1.65;color:var(--fg,#2b2233);opacity:.82;margin:.7rem 0 0}
.ubcx-sermons .sm-card-foot{margin-top:auto;padding-top:1.2rem;display:flex;justify-content:space-between;align-items:center;gap:.6rem;flex-wrap:wrap}
.ubcx-sermons .sm-more{font-weight:700;color:var(--brand,#4b2275);text-decoration:none;font-size:.95rem}
.ubcx-sermons .sm-more:hover{text-decoration:underline}
.ubcx-sermons .sm-badges{display:flex;gap:.4rem}
.ubcx-sermons .sm-badge{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#8a6a10;background:rgba(184,134,11,.12);padding:.2rem .55rem;border-radius:999px}
.ubcx-sermons .sm-empty{color:var(--muted,#6b6276);font-size:1.02rem;padding:2rem 0}
.ubcx-sermons .sm-pagination{margin-top:48px}
.ubcx-sermons .sm-pagination ul{display:flex;flex-wrap:wrap;justify-content:center;gap:.45rem;list-style:none;padding:0;margin:0}
.ubcx-sermons .sm-pagination li a,.ubcx-sermons .sm-pagination li span{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 .9rem;border-radius:999px;border:1px solid var(--border,#e0d6ea);background:#fff;color:var(--brand,#4b2275);font-weight:600;text-decoration:none}
.ubcx-sermons .sm-pagination li .current{background:var(--brand,#4b2275);color:#fff;border-color:var(--brand,#4b2275)}
@media (max-width:900px){.ubcx-sermons .sm-feature{grid-template-columns:1fr}.ubcx-sermons .sm-feature .sm-media,.ubcx-sermons .sm-feature .sm-media img{min-height:0;aspect-ratio:16/9}}
@media (max-width:820px){.ubcx-sermons .sm-hero{padding:72px 0 64px}.ubcx-sermons .sm-wrap{padding:64px 0 80px}.ubcx-sermons .sm-grid{grid-template-columns:1fr}}

/* Single sermon */
.ubc-sermon-single .ubc-sm-hero{background:linear-gradient(135deg,var(--brand-dark,#2e1450) 0%,var(--brand,#4b2275) 100%);color:#fff;padding:88px 0 76px;text-align:center}
.ubc-sermon-single .ubc-sm-hero .eyebrow{color:#e7c95e;letter-spacing:.18em}
.ubc-sermon-single .ubc-sm-hero h1{color:#fff;font-size:clamp(2.2rem,4.6vw,3.3rem);line-height:1.15;max-width:22ch;margin:0 auto}
.ubc-sermon-single .ubc-sm-facts{display:flex;justify-content:center;flex-wrap:wrap;gap:.6rem;margin-top:1.4rem;list-style:none;padding:0}
.ubc-sermon-single .ubc-sm-facts li{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:.4rem 1rem;font-size:.92rem;color:#F4ECFA}
.ubc-sermon-single .ubc-sm-wrap{padding:72px 0 40px;background:var(--bg,#FBF8F3)}
.ubc-sermon-single .ubc-sm-inner{max-width:820px;margin:0 auto}
.ubc-sermon-single .ubc-sm-video{position:relative;aspect-ratio:16/9;border-radius:22px;overflow:hidden;box-shadow:0 24px 60px rgba(36,17,58,.18);background:#120a1d;margin:-120px 0 40px}
.ubc-sermon-single .ubc-sm-video iframe,.ubc-sermon-single .ubc-sm-video video{position:absolute;inset:0;width:100%;height:100%;border:0}
.ubc-sermon-single .ubc-sm-image{border-radius:22px;overflow:hidden;box-shadow:0 24px 60px rgba(36,17,58,.18);margin:-120px 0 40px}
.ubc-sermon-single .ubc-sm-image img{width:100%;display:block}
.ubc-sermon-single .ubc-sm-scripture{border-left:4px solid var(--accent,#B8860B);background:#fff;border-radius:0 16px 16px 0;padding:1.2rem 1.5rem;margin:0 0 2rem;box-shadow:0 4px 16px rgba(36,17,58,.06)}
.ubc-sermon-single .ubc-sm-scripture small{display:block;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--accent,#B8860B);margin-bottom:.25rem}
.ubc-sermon-single .ubc-sm-scripture p{margin:0;font-size:1.08rem;font-weight:600;color:var(--brand,#4b2275)}
.ubc-sermon-single .ubc-sm-body{font-size:1.08rem;line-height:1.85;color:var(--fg,#2b2233)}
.ubc-sermon-single .ubc-sm-body p{margin:0 0 1.2rem}
.ubc-sermon-single .ubc-sm-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin:2.4rem 0 0}
.ubc-sermon-single .ubc-sm-nav{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:3.2rem;padding-top:2rem;border-top:1px solid var(--border,#e9e2d6)}
.ubc-sermon-single .ubc-sm-nav a{color:var(--brand,#4b2275);font-weight:700;text-decoration:none;font-size:.98rem}
.ubc-sermon-single .ubc-sm-nav a:hover{text-decoration:underline}
.ubc-sermon-single .ubc-sm-nav .all{color:var(--muted,#6b6276);font-weight:600}
@media (max-width:820px){.ubc-sermon-single .ubc-sm-hero{padding:64px 0 56px}.ubc-sermon-single .ubc-sm-video,.ubc-sermon-single .ubc-sm-image{margin-top:-60px}}

/* Placeholder boxes for sermons without a photo: centered, branded background */
.ubcx-sermons .sm-card .sm-media.sm-media-blank,
.ubcx-sermons .sm-feature .sm-media.sm-media-blank{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6rem;background:linear-gradient(135deg,var(--brand,#4b2275),var(--brand-dark,#2e1450));color:#e7c95e;text-align:center;padding:1.2rem}
.ubcx-sermons .sm-card .sm-media.sm-media-blank span,
.ubcx-sermons .sm-feature .sm-media.sm-media-blank span{color:#fff;font-size:.95rem;font-weight:600;max-width:90%}
.ubcx-sermons .sm-media-blank svg{width:40px;height:40px}

/* ===== Events page & single event — redesigned (scoped to .ubcx-events / .ubc-ev-single) ===== */
.ubcx-events .evp-hero{background:linear-gradient(135deg,var(--brand-dark,#2e1450) 0%,var(--brand,#4b2275) 100%);background-size:cover;background-position:center;color:#fff;text-align:center;padding:104px 0 92px;position:relative}
.ubcx-events .evp-hero .container{position:relative;z-index:1}
.ubcx-events .evp-hero .eyebrow{color:#e7c95e;letter-spacing:.18em}
.ubcx-events .evp-hero h1{color:#fff;font-size:clamp(2.5rem,5.2vw,3.7rem);margin:0 auto;line-height:1.1;max-width:20ch}
.ubcx-events .evp-hero-text{max-width:60ch;margin:1.2rem auto 0;font-size:1.12rem;line-height:1.7;color:#EFE4F6}
.ubcx-events .evp-wrap{padding:88px 0 104px;background:var(--bg,#FBF8F3)}

/* Next-event spotlight */
.ubcx-events .evp-feat{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2.4rem;align-items:center;background:linear-gradient(145deg,var(--brand,#4b2275) 0%,var(--brand-dark,#2e1450) 100%);color:#fff;border-radius:26px;padding:clamp(28px,4vw,52px);box-shadow:0 24px 60px rgba(36,17,58,.18);margin-bottom:56px;position:relative;overflow:hidden}
.ubcx-events .evp-feat::before{content:'';position:absolute;right:-60px;top:-60px;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.05);pointer-events:none}
.ubcx-events .evp-feat-date{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);border-radius:20px;padding:1.4rem 1.9rem;text-align:center;min-width:128px;position:relative}
.ubcx-events .evp-feat-date .day{font-family:var(--font-display,Georgia,serif);font-size:3.1rem;font-weight:800;line-height:1;color:#fff}
.ubcx-events .evp-feat-date .mon{text-transform:uppercase;letter-spacing:.12em;font-size:.8rem;color:#e7c95e;font-weight:800;margin-top:.35rem}
.ubcx-events .evp-feat-date .yr{font-size:.76rem;color:rgba(255,255,255,.6);margin-top:.2rem}
.ubcx-events .evp-feat-body{position:relative;min-width:0}
.ubcx-events .evp-next{display:inline-block;font-size:.74rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#1f1333;background:#e7c95e;padding:.35rem .8rem;border-radius:999px;margin-bottom:.9rem}
.ubcx-events .evp-feat h2{font-size:clamp(1.9rem,3vw,2.5rem);line-height:1.18;margin:0 0 .8rem;color:#fff}
.ubcx-events .evp-feat h2 a{color:inherit;text-decoration:none}
.ubcx-events .evp-feat h2 a:hover{text-decoration:underline}
.ubcx-events .evp-feat .evp-desc{color:#e7d9f5;font-size:1.02rem;line-height:1.7;margin:0 0 1.1rem}
.ubcx-events .evp-feat .evp-facts span{color:#f2ecfb}
.ubcx-events .evp-feat .evp-facts svg{color:#e7c95e}
.ubcx-events .evp-feat .evp-actions{margin-top:1.5rem}
.ubcx-events .evp-feat .btn-primary{background:#e7c95e;color:#1f1333;border-color:#e7c95e}

/* Facts row (time / place) */
.ubcx-events .evp-facts{display:flex;flex-wrap:wrap;gap:.5rem 1.3rem}
.ubcx-events .evp-facts span{display:inline-flex;align-items:center;gap:.45rem;font-size:.92rem;font-weight:600;color:var(--muted,#6b6276)}
.ubcx-events .evp-facts svg{width:17px;height:17px;flex:0 0 17px;color:var(--brand,#4b2275)}

/* Category filter */
.ubcx-events .evp-chips{display:flex;flex-wrap:wrap;gap:.6rem;margin:0 0 40px}
.ubcx-events .evp-chip{display:inline-block;padding:.5rem 1.05rem;border-radius:999px;border:1px solid var(--border,#e0d6ea);background:#fff;color:var(--brand,#4b2275);font-size:.9rem;font-weight:600;text-decoration:none;transition:background .15s ease,color .15s ease}
.ubcx-events .evp-chip:hover{background:rgba(75,34,117,.06)}
.ubcx-events .evp-chip.is-active{background:var(--brand,#4b2275);border-color:var(--brand,#4b2275);color:#fff}

.ubcx-events .evp-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap;margin-bottom:8px}
.ubcx-events .evp-head h2{font-size:clamp(1.6rem,2.6vw,2.1rem);margin:0;color:var(--fg,#2b2233)}
.ubcx-events .evp-count{font-size:.9rem;color:var(--muted,#6b6276)}

/* Month headings */
.ubcx-events .evp-month{font-family:var(--font-display,Georgia,serif);color:var(--brand,#4b2275);font-size:1.3rem;font-weight:700;margin:2.4rem 0 1.2rem;padding-bottom:.6rem;border-bottom:2px solid var(--border,#e9e2d6)}

/* Event cards */
.ubcx-events .evp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.4rem}
.ubcx-events .evp-card{display:flex;gap:1.2rem;background:#fff;border:1px solid var(--border,#e9e2d6);border-radius:18px;padding:1.6rem 1.6rem 1.5rem;box-shadow:0 10px 28px rgba(36,17,58,.06);transition:transform .18s ease,box-shadow .18s ease}
.ubcx-events .evp-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(36,17,58,.11)}
.ubcx-events .evp-tile{flex:0 0 66px;width:66px;height:66px;border-radius:14px;background:rgba(75,34,117,.07);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.ubcx-events .evp-tile .day{font-family:var(--font-display,Georgia,serif);font-weight:800;font-size:1.55rem;color:var(--brand,#4b2275);line-height:1}
.ubcx-events .evp-tile .mon{font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#6b6276);font-weight:700;margin-top:.2rem}
.ubcx-events .evp-card-body{flex:1;min-width:0;display:flex;flex-direction:column}
.ubcx-events .evp-badge{align-self:flex-start;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#8a6a10;background:rgba(184,134,11,.12);padding:.25rem .7rem;border-radius:999px;margin-bottom:.6rem}
.ubcx-events .evp-card h3{font-size:1.12rem;line-height:1.3;margin:0 0 .5rem;color:var(--fg,#2b2233);font-family:var(--font-body,inherit);font-weight:700}
.ubcx-events .evp-card h3 a{color:inherit;text-decoration:none}
.ubcx-events .evp-card h3 a:hover{text-decoration:underline}
.ubcx-events .evp-card .evp-facts{flex-direction:column;gap:.3rem;margin-bottom:.6rem}
.ubcx-events .evp-desc{font-size:.92rem;line-height:1.6;color:var(--fg,#2b2233);opacity:.8;margin:0 0 .8rem}
.ubcx-events .evp-more{margin-top:auto;font-size:.92rem;font-weight:700;color:var(--brand,#4b2275);text-decoration:none}
.ubcx-events .evp-more:hover{text-decoration:underline}

.ubcx-events .evp-empty{text-align:center;padding:3.5rem 1rem;color:var(--muted,#6b6276);background:#fff;border:1px dashed var(--border,#e0d6ea);border-radius:18px;font-size:1.02rem}

@media (max-width:820px){
  .ubcx-events .evp-hero{padding:76px 0 68px}
  .ubcx-events .evp-feat{grid-template-columns:1fr;text-align:center;gap:1.6rem}
  .ubcx-events .evp-feat .evp-facts{justify-content:center}
  .ubcx-events .evp-feat-date{justify-self:center}
  .ubcx-events .evp-wrap{padding:64px 0 80px}
}

/* ---- Single event page ---- */
.ubc-ev-single .ubc-ev-hero{background:linear-gradient(135deg,var(--brand-dark,#2e1450) 0%,var(--brand,#4b2275) 100%);color:#fff;padding:88px 0 76px;text-align:center}
.ubc-ev-single .ubc-ev-hero .eyebrow{color:#e7c95e;letter-spacing:.18em}
.ubc-ev-single .ubc-ev-hero h1{color:#fff;font-size:clamp(2.2rem,4.6vw,3.3rem);line-height:1.15;max-width:22ch;margin:0 auto}
.ubc-ev-single .ubc-ev-facts{display:flex;justify-content:center;flex-wrap:wrap;gap:.6rem;margin:1.4rem 0 0;list-style:none;padding:0}
.ubc-ev-single .ubc-ev-facts li{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:.4rem 1rem;font-size:.92rem;color:#F4ECFA}
.ubc-ev-single .ubc-ev-wrap{padding:72px 0 88px;background:var(--bg,#FBF8F3)}
.ubc-ev-single .ubc-ev-inner{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:48px;align-items:start}
.ubc-ev-single .ubc-ev-image{margin:0 0 28px;border-radius:20px;overflow:hidden;box-shadow:0 18px 44px rgba(36,17,58,.12)}
.ubc-ev-single .ubc-ev-image img{width:100%;height:auto;display:block}
.ubc-ev-single .ubc-ev-body{font-size:1.06rem;line-height:1.8;color:var(--fg,#2b2233)}
.ubc-ev-single .ubc-ev-body p:first-child{margin-top:0}
.ubc-ev-single .ubc-ev-side{background:#fff;border:1px solid var(--border,#e9e2d6);border-radius:20px;padding:30px 30px 32px;box-shadow:0 12px 32px rgba(36,17,58,.07);position:sticky;top:110px}
.ubc-ev-single .ubc-ev-side h2{font-size:1.35rem;margin:0 0 1.1rem;color:var(--brand,#4b2275)}
.ubc-ev-single .ubc-ev-side dl{margin:0 0 1.4rem}
.ubc-ev-single .ubc-ev-side dt{font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--accent,#B8860B);margin-top:1rem}
.ubc-ev-single .ubc-ev-side dt:first-child{margin-top:0}
.ubc-ev-single .ubc-ev-side dd{margin:.25rem 0 0;font-size:1rem;color:var(--fg,#2b2233);font-weight:600;line-height:1.5}
.ubc-ev-single .ubc-ev-side .btn{display:block;text-align:center;margin-top:.7rem}
.ubc-ev-single .ubc-ev-nav{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:3.2rem;padding-top:2rem;border-top:1px solid var(--border,#e9e2d6)}
.ubc-ev-single .ubc-ev-nav a{color:var(--brand,#4b2275);font-weight:700;text-decoration:none;font-size:.98rem}
.ubc-ev-single .ubc-ev-nav a:hover{text-decoration:underline}
.ubc-ev-single .ubc-ev-nav .all{color:var(--muted,#6b6276);font-weight:600}
@media (max-width:860px){
  .ubc-ev-single .ubc-ev-inner{grid-template-columns:1fr;gap:36px}
  .ubc-ev-single .ubc-ev-side{position:static}
  .ubc-ev-single .ubc-ev-hero{padding:64px 0 56px}
}

/* ===== Ministries page & single ministry — redesigned (scoped to .ubcx-ministries / .ubc-min-single) ===== */
.ubcx-ministries .mnp-hero{background:linear-gradient(135deg,var(--brand-dark,#2e1450) 0%,var(--brand,#4b2275) 100%);background-size:cover;background-position:center;color:#fff;text-align:center;padding:104px 0 92px}
.ubcx-ministries .mnp-hero .container{position:relative;z-index:1}
.ubcx-ministries .mnp-hero .eyebrow{color:#e7c95e;letter-spacing:.18em}
.ubcx-ministries .mnp-hero h1{color:#fff;font-size:clamp(2.5rem,5.2vw,3.7rem);margin:0 auto;line-height:1.1;max-width:20ch}
.ubcx-ministries .mnp-hero-text{max-width:60ch;margin:1.2rem auto 0;font-size:1.12rem;line-height:1.7;color:#EFE4F6}
.ubcx-ministries .mnp-wrap{padding:76px 0 104px;background:var(--bg,#FBF8F3)}

/* Search */
.ubcx-ministries .mnp-search{position:relative;max-width:540px;margin:0 auto 1.1rem}
.ubcx-ministries .mnp-search svg{position:absolute;left:1.1rem;top:50%;transform:translateY(-50%);width:19px;height:19px;color:var(--muted,#6b6276);pointer-events:none}
.ubcx-ministries .mnp-search input{width:100%;padding:.95rem 1.2rem .95rem 3rem;border:1.5px solid var(--border,#e0d6ea);border-radius:999px;font-size:1rem;font-family:inherit;box-sizing:border-box;background:#fff;box-shadow:0 6px 18px rgba(36,17,58,.06);transition:border-color .15s ease,box-shadow .15s ease}
.ubcx-ministries .mnp-search input:focus{outline:none;border-color:var(--brand-soft,#7a4fb0);box-shadow:0 0 0 4px rgba(75,34,117,.12)}
.ubcx-ministries .mnp-count{text-align:center;color:var(--muted,#6b6276);font-size:.9rem;margin:0 0 2.6rem}
.ubcx-ministries .mnp-count a{color:var(--brand,#4b2275);font-weight:700}

.ubcx-ministries .mnp-h2{font-family:var(--font-display,Georgia,serif);color:var(--brand,#4b2275);font-size:clamp(1.5rem,2.4vw,1.9rem);font-weight:700;margin:0 0 1.3rem}
.ubcx-ministries .mnp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:1.3rem;margin-bottom:3rem}
.ubcx-ministries .mnp-grid-featured{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.ubcx-ministries .mnp-grid-featured .mnp-card{border-color:rgba(184,134,11,.35);background:linear-gradient(180deg,#fffdf6 0%,#fff 60%)}

/* Ministry card */
.ubcx-ministries .mnp-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--border,#e9e2d6);border-radius:18px;padding:1.7rem 1.6rem 1.5rem;box-shadow:0 10px 28px rgba(36,17,58,.06);transition:transform .18s ease,box-shadow .18s ease}
.ubcx-ministries .mnp-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(36,17,58,.11)}
.ubcx-ministries .mnp-badge{width:54px;height:54px;border-radius:15px;background:rgba(75,34,117,.08);color:var(--brand,#4b2275);display:flex;align-items:center;justify-content:center;margin-bottom:1.1rem}
.ubcx-ministries .mnp-badge svg{width:26px;height:26px}
.ubcx-ministries .mnp-card h3{font-size:1.14rem;line-height:1.3;margin:0 0 .4rem;color:var(--fg,#2b2233);font-family:var(--font-body,inherit);font-weight:700}
.ubcx-ministries .mnp-card h3 a{color:inherit;text-decoration:none}
.ubcx-ministries .mnp-card h3 a:hover{text-decoration:underline}
.ubcx-ministries .mnp-leader{display:block;font-size:.76rem;color:#8a6a10;text-transform:uppercase;letter-spacing:.06em;font-weight:800;margin-bottom:.5rem}
.ubcx-ministries .mnp-meets{font-size:.88rem;color:var(--muted,#6b6276);font-weight:600;margin:0 0 .6rem}
.ubcx-ministries .mnp-desc{font-size:.92rem;line-height:1.6;color:var(--fg,#2b2233);opacity:.82;margin:0 0 .9rem}
.ubcx-ministries .mnp-more{margin-top:auto;font-size:.92rem;font-weight:700;color:var(--brand,#4b2275);text-decoration:none}
.ubcx-ministries .mnp-more:hover{text-decoration:underline}

.ubcx-ministries .mnp-empty{text-align:center;padding:3.5rem 1rem;color:var(--muted,#6b6276);background:#fff;border:1px dashed var(--border,#e0d6ea);border-radius:18px;font-size:1.02rem}
.ubcx-ministries .mnp-empty a{color:var(--brand,#4b2275);font-weight:700}

@media (max-width:820px){
  .ubcx-ministries .mnp-hero{padding:76px 0 68px}
  .ubcx-ministries .mnp-wrap{padding:56px 0 80px}
}

/* ---- Single ministry page ---- */
.ubc-min-single .ubc-min-hero{background:linear-gradient(135deg,var(--brand-dark,#2e1450) 0%,var(--brand,#4b2275) 100%);color:#fff;padding:88px 0 76px;text-align:center}
.ubc-min-single .ubc-min-hero .eyebrow{color:#e7c95e;letter-spacing:.18em}
.ubc-min-single .ubc-min-badge{width:70px;height:70px;border-radius:20px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);color:#fff;display:inline-flex;align-items:center;justify-content:center;margin-bottom:1.1rem}
.ubc-min-single .ubc-min-badge svg{width:34px;height:34px}
.ubc-min-single .ubc-min-hero h1{color:#fff;font-size:clamp(2.2rem,4.6vw,3.3rem);line-height:1.15;max-width:22ch;margin:0 auto}
.ubc-min-single .ubc-min-lead{max-width:62ch;margin:1.2rem auto 0;font-size:1.12rem;line-height:1.7;color:#EFE4F6}
.ubc-min-single .ubc-min-wrap{padding:72px 0 88px;background:var(--bg,#FBF8F3)}
.ubc-min-single .ubc-min-inner{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:48px;align-items:start}
.ubc-min-single .ubc-min-image{margin:0 0 28px;border-radius:20px;overflow:hidden;box-shadow:0 18px 44px rgba(36,17,58,.12)}
.ubc-min-single .ubc-min-image img{width:100%;height:auto;display:block}
.ubc-min-single .ubc-min-body{font-size:1.06rem;line-height:1.8;color:var(--fg,#2b2233)}
.ubc-min-single .ubc-min-body p:first-child{margin-top:0}
.ubc-min-single .ubc-min-side{background:#fff;border:1px solid var(--border,#e9e2d6);border-radius:20px;padding:30px 30px 32px;box-shadow:0 12px 32px rgba(36,17,58,.07);position:sticky;top:110px}
.ubc-min-single .ubc-min-side h2{font-size:1.35rem;margin:0 0 1.1rem;color:var(--brand,#4b2275)}
.ubc-min-single .ubc-min-side dl{margin:0 0 1.4rem}
.ubc-min-single .ubc-min-side dt{font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--accent,#B8860B);margin-top:1rem}
.ubc-min-single .ubc-min-side dt:first-child{margin-top:0}
.ubc-min-single .ubc-min-side dd{margin:.25rem 0 0;font-size:1rem;color:var(--fg,#2b2233);font-weight:600;line-height:1.5}
.ubc-min-single .ubc-min-side .btn{display:block;text-align:center;margin-top:.7rem}
.ubc-min-single .ubc-min-nav{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:3.2rem;padding-top:2rem;border-top:1px solid var(--border,#e9e2d6)}
.ubc-min-single .ubc-min-nav a{color:var(--brand,#4b2275);font-weight:700;text-decoration:none;font-size:.98rem}
.ubc-min-single .ubc-min-nav a:hover{text-decoration:underline}
.ubc-min-single .ubc-min-nav .all{color:var(--muted,#6b6276);font-weight:600}
@media (max-width:860px){
  .ubc-min-single .ubc-min-inner{grid-template-columns:1fr;gap:36px}
  .ubc-min-single .ubc-min-side{position:static}
  .ubc-min-single .ubc-min-hero{padding:64px 0 56px}
}

/* ===== Membership page — redesigned (scoped to .ubcx-membership) ===== */
.ubcx-membership .mbp-hero{background:linear-gradient(135deg,var(--brand-dark,#2e1450) 0%,var(--brand,#4b2275) 100%);color:#fff;text-align:center;padding:96px 0 84px}
.ubcx-membership .mbp-hero .eyebrow{color:#e7c95e;letter-spacing:.18em}
.ubcx-membership .mbp-hero h1{color:#fff;font-size:clamp(2.5rem,5.2vw,3.7rem);margin:0 auto;line-height:1.1}
.ubcx-membership .mbp-wrap{padding:80px 0 0;background:var(--bg,#FBF8F3)}
.ubcx-membership .mbp-wrap-top{padding-bottom:104px}
.ubcx-membership .mbp-narrow{max-width:860px}
.ubcx-membership h2{font-family:var(--font-display,Georgia,serif);color:var(--brand,#4b2275);font-size:clamp(1.6rem,2.8vw,2.2rem);line-height:1.2;margin:0 0 1rem;text-wrap:balance}
.ubcx-membership .mbp-intro{font-size:1.06rem;line-height:1.75;color:var(--fg,#2b2233);margin:0 0 1.6rem}
.ubcx-membership .mbp-prose{font-size:1.06rem;line-height:1.8;color:var(--fg,#2b2233)}
.ubcx-membership .mbp-prose p{margin:0 0 1rem}
.ubcx-membership .mbp-prose p:last-child{margin-bottom:0}

/* Welcome box */
.ubcx-membership .mbp-welcome{background:#fff;border:1px solid var(--border,#e9e2d6);border-left:5px solid var(--accent,#B8860B);border-radius:20px;padding:clamp(28px,4vw,44px);box-shadow:0 14px 36px rgba(36,17,58,.07);margin-bottom:64px}
.ubcx-membership .mbp-welcome h2{margin-bottom:.9rem}

/* New member steps */
.ubcx-membership .mbp-steps{margin-bottom:12px}
.ubcx-membership .mbp-checks{list-style:none;padding:0;margin:0 0 2.2rem;display:grid;gap:1rem}
.ubcx-membership .mbp-checks li{display:flex;gap:1rem;align-items:flex-start;background:#fff;border:1px solid var(--border,#e9e2d6);border-radius:16px;padding:1.2rem 1.4rem;box-shadow:0 6px 18px rgba(36,17,58,.05);font-size:1.02rem;line-height:1.7;color:var(--fg,#2b2233)}
.ubcx-membership .mbp-checks p{margin:0}
.ubcx-membership .mbp-check{flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:var(--brand,#4b2275);color:#fff;display:flex;align-items:center;justify-content:center;margin-top:.1rem}
.ubcx-membership .mbp-check svg{width:18px;height:18px}
.ubcx-membership .mbp-scripture{margin:2.6rem 0 0;padding:1.8rem 2rem;border-radius:18px;background:rgba(75,34,117,.06);text-align:center}
.ubcx-membership .mbp-scripture blockquote{margin:0;font-family:var(--font-display,Georgia,serif);font-style:italic;font-size:1.2rem;line-height:1.6;color:var(--brand,#4b2275)}
.ubcx-membership .mbp-scripture figcaption{margin-top:.8rem;font-size:.9rem;font-weight:700;color:#8a6a10;letter-spacing:.04em}

/* Expectations band */
.ubcx-membership .mbp-expect{background:linear-gradient(180deg,#f3ecfa 0%,#faf7fd 100%);padding:88px 0 96px;margin-top:80px}
.ubcx-membership .mbp-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.3rem;margin:2.2rem 0 0}
.ubcx-membership .mbp-card{background:#fff;border:1px solid var(--border,#e9e2d6);border-radius:18px;padding:1.7rem 1.6rem;box-shadow:0 10px 26px rgba(36,17,58,.06);border-top:4px solid var(--brand,#4b2275)}
.ubcx-membership .mbp-card h3{font-size:1.1rem;line-height:1.3;margin:0 0 .6rem;color:var(--fg,#2b2233);font-family:var(--font-body,inherit);font-weight:800}
.ubcx-membership .mbp-card p{margin:0;font-size:.95rem;line-height:1.7;color:var(--fg,#2b2233);opacity:.88}
.ubcx-membership .mbp-outro{margin:2.4rem 0 0;font-size:1.08rem;line-height:1.8;color:var(--brand,#4b2275);font-weight:600;text-align:center;font-family:var(--font-display,Georgia,serif);font-style:italic}

/* Next step */
.ubcx-membership .mbp-next{text-align:center}
.ubcx-membership .mbp-next .mbp-prose{max-width:680px;margin:0 auto}
.ubcx-membership .mbp-actions{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center;margin:2rem 0 0}

/* Handbook */
.ubcx-membership .mbp-handbook{background:var(--brand,#4b2275);color:#EFE4F6;border-radius:24px;padding:clamp(32px,5vw,56px);text-align:center;box-shadow:0 24px 60px rgba(36,17,58,.18);position:relative;overflow:hidden}
.ubcx-membership .mbp-handbook::before{content:'';position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.05);pointer-events:none}
.ubcx-membership .mbp-handbook h2{color:#fff;margin-bottom:.9rem}
.ubcx-membership .mbp-handbook p{position:relative;max-width:620px;margin:0 auto 1rem;line-height:1.7}
.ubcx-membership .mbp-handbook .btn-primary{background:#e7c95e;color:#1f1333;border-color:#e7c95e}
.ubcx-membership .mbp-pastor{font-size:.98rem;margin-top:1.4rem!important}
.ubcx-membership .mbp-pastor a{color:#e7c95e;font-weight:700}

@media (max-width:820px){
  .ubcx-membership .mbp-hero{padding:72px 0 64px}
  .ubcx-membership .mbp-wrap{padding-top:56px}
  .ubcx-membership .mbp-welcome{margin-bottom:48px}
  .ubcx-membership .mbp-expect{padding:64px 0 72px;margin-top:64px}
}

/* ===== Our Faith page — redesigned (scoped to .ubcx-ourfaith) ===== */
.ubcx-ourfaith .ofp-hero{background:linear-gradient(135deg,var(--brand-dark,#2e1450) 0%,var(--brand,#4b2275) 100%);color:#fff;text-align:center;padding:96px 0 80px}
.ubcx-ourfaith .ofp-hero .eyebrow{color:#e7c95e;letter-spacing:.18em}
.ubcx-ourfaith .ofp-hero h1{color:#fff;font-size:clamp(2.5rem,5.2vw,3.7rem);margin:0 auto;line-height:1.1}
.ubcx-ourfaith .ofp-wrap{padding:80px 0 104px;background:var(--bg,#FBF8F3)}
.ubcx-ourfaith .ofp-narrow{max-width:880px}
.ubcx-ourfaith .ofp-lead{font-size:1.14rem;line-height:1.8;color:var(--fg,#2b2233);text-align:center;max-width:720px;margin:0 auto 2.2rem}

/* Topic links */
.ubcx-ourfaith .ofp-topics{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;margin:0 0 3.2rem}
.ubcx-ourfaith .ofp-topic{display:inline-block;padding:.5rem 1.05rem;border-radius:999px;border:1px solid var(--border,#e0d6ea);background:#fff;color:var(--brand,#4b2275);font-size:.9rem;font-weight:700;text-decoration:none;transition:background .15s ease,color .15s ease}
.ubcx-ourfaith .ofp-topic:hover{background:var(--brand,#4b2275);border-color:var(--brand,#4b2275);color:#fff}

/* Section cards */
.ubcx-ourfaith .ofp-sec{background:#fff;border:1px solid var(--border,#e9e2d6);border-radius:20px;padding:clamp(26px,3.6vw,42px) clamp(24px,3.6vw,44px);box-shadow:0 12px 30px rgba(36,17,58,.06);margin-bottom:1.6rem;scroll-margin-top:110px}
.ubcx-ourfaith .ofp-sec>h2{font-family:var(--font-display,Georgia,serif);color:var(--brand,#4b2275);font-size:clamp(1.6rem,2.6vw,2.05rem);line-height:1.2;margin:0 0 1rem;padding-bottom:.9rem;border-bottom:2px solid rgba(184,134,11,.25)}
.ubcx-ourfaith .ofp-body{font-size:1.03rem;line-height:1.85;color:var(--fg,#2b2233)}
.ubcx-ourfaith .ofp-body p{margin:0 0 1rem}
.ubcx-ourfaith .ofp-body p:last-child{margin-bottom:0}
.ubcx-ourfaith .ofp-body h3{font-family:var(--font-display,Georgia,serif);color:var(--brand,#4b2275);font-size:1.22rem;line-height:1.3;margin:1.7rem 0 .7rem}
.ubcx-ourfaith .ofp-body strong{color:var(--brand-dark,#2e1450)}
.ubcx-ourfaith .ofp-body ul{list-style:none;padding:0;margin:0 0 1.1rem;display:grid;gap:.55rem}
.ubcx-ourfaith .ofp-body li{position:relative;padding:.7rem 1rem .7rem 2.7rem;background:#faf7fd;border:1px solid #efe8f7;border-radius:12px;line-height:1.65}
.ubcx-ourfaith .ofp-body li::before{content:'';position:absolute;left:1rem;top:1.05rem;width:12px;height:7px;border-left:2.5px solid var(--accent,#B8860B);border-bottom:2.5px solid var(--accent,#B8860B);transform:rotate(-45deg)}
.ubcx-ourfaith .ofp-body blockquote{margin:1.4rem 0;padding:1.1rem 1.4rem;border-left:4px solid var(--accent,#B8860B);background:rgba(75,34,117,.05);border-radius:0 14px 14px 0;font-family:var(--font-display,Georgia,serif);font-style:italic;color:var(--brand,#4b2275);line-height:1.7}
.ubcx-ourfaith .ofp-body blockquote p{margin:0}
.ubcx-ourfaith .ofp-body a{color:var(--brand,#4b2275);font-weight:700}
.ubcx-ourfaith .ofp-actions{text-align:center;margin:2.6rem 0 0}

@media (max-width:820px){
  .ubcx-ourfaith .ofp-hero{padding:72px 0 64px}
  .ubcx-ourfaith .ofp-wrap{padding:56px 0 80px}
  .ubcx-ourfaith .ofp-sec{border-radius:16px}
}

/* ===== About page — redesigned (scoped to .ubcx-about) ===== */
.ubcx-about .abt-hero{background:linear-gradient(135deg,var(--brand-dark,#2e1450) 0%,var(--brand,#4b2275) 100%);color:#fff;text-align:center;padding:104px 0 92px}
.ubcx-about .abt-hero .eyebrow{color:#e7c95e;letter-spacing:.18em}
.ubcx-about .abt-hero h1{color:#fff;font-size:clamp(2.5rem,5.2vw,3.7rem);margin:0 auto;line-height:1.1;max-width:22ch}
.ubcx-about .abt-hero-sub{max-width:58ch;margin:1.2rem auto 0;font-size:1.12rem;line-height:1.7;color:#EFE4F6}
.ubcx-about .abt-wrap{padding:88px 0 96px;background:var(--bg,#FBF8F3)}
.ubcx-about .eyebrow{display:inline-block;font-size:.76rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#8a6a10;margin-bottom:.6rem}
.ubcx-about h2{font-family:var(--font-display,Georgia,serif);color:var(--brand,#4b2275);font-size:clamp(1.8rem,3vw,2.4rem);line-height:1.2;margin:0 0 1rem;text-wrap:balance}
.ubcx-about .abt-lead{font-size:1.15rem;font-weight:700;color:var(--brand-dark,#2e1450);margin:0 0 1rem}

/* Story */
.ubcx-about .abt-intro{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:56px;align-items:center}
.ubcx-about .abt-intro-text p{font-size:1.04rem;line-height:1.8;color:var(--fg,#2b2233);margin:0 0 1rem}
.ubcx-about .abt-intro-img{border-radius:24px;overflow:hidden;box-shadow:0 24px 60px rgba(36,17,58,.16)}
.ubcx-about .abt-intro-img img{width:100%;height:100%;min-height:380px;object-fit:cover;display:block}
.ubcx-about .abt-pillars{display:grid;gap:.9rem;margin:2rem 0 0}
.ubcx-about .abt-pillar{display:flex;gap:1rem;align-items:flex-start;background:#fff;border:1px solid var(--border,#e9e2d6);border-radius:16px;padding:1.1rem 1.25rem;box-shadow:0 6px 18px rgba(36,17,58,.05)}
.ubcx-about .abt-pillar-icon{flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:rgba(75,34,117,.08);color:var(--brand,#4b2275);display:flex;align-items:center;justify-content:center}
.ubcx-about .abt-pillar-icon svg{width:22px;height:22px}
.ubcx-about .abt-pillar strong{display:block;color:var(--fg,#2b2233);font-size:1rem;margin-bottom:.2rem}
.ubcx-about .abt-pillar span{display:block;font-size:.93rem;line-height:1.6;color:var(--muted,#6b6276)}
.ubcx-about .abt-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin:1.8rem 0 0}
.ubcx-about .abt-stat{background:var(--brand,#4b2275);color:#fff;border-radius:16px;padding:1.2rem .8rem;text-align:center}
.ubcx-about .abt-stat .n{font-family:var(--font-display,Georgia,serif);font-size:2rem;font-weight:800;line-height:1;color:#e7c95e}
.ubcx-about .abt-stat .l{font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;font-weight:700;margin-top:.45rem;color:#EFE4F6}

/* Explore */
.ubcx-about .abt-tint{background:linear-gradient(180deg,#f3ecfa 0%,#faf7fd 100%);padding:96px 0}
.ubcx-about .abt-tint>.container{text-align:center}
.ubcx-about .abt-section-lead{max-width:640px;margin:0 auto 2.8rem;font-size:1.06rem;line-height:1.75;color:var(--muted,#6b6276)}
.ubcx-about .abt-feat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.3rem;text-align:left}
.ubcx-about .abt-feat{display:flex;flex-direction:column;background:#fff;border:1px solid var(--border,#e9e2d6);border-radius:20px;padding:1.9rem 1.7rem 1.6rem;box-shadow:0 10px 28px rgba(36,17,58,.06);text-decoration:none;color:inherit;transition:transform .18s ease,box-shadow .18s ease}
.ubcx-about .abt-feat:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(36,17,58,.11)}
.ubcx-about .abt-feat-icon{width:54px;height:54px;border-radius:15px;background:var(--brand,#4b2275);color:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:1.1rem}
.ubcx-about .abt-feat-icon svg{width:26px;height:26px}
.ubcx-about .abt-feat h3{font-size:1.14rem;margin:0 0 .5rem;color:var(--fg,#2b2233);font-family:var(--font-body,inherit);font-weight:800}
.ubcx-about .abt-feat p{font-size:.94rem;line-height:1.65;color:var(--muted,#6b6276);margin:0 0 1rem}
.ubcx-about .abt-feat-link{margin-top:auto;font-size:.92rem;font-weight:800;color:var(--brand,#4b2275)}

/* Learn more cards */
.ubcx-about .abt-wrap>.container>.eyebrow,.ubcx-about .abt-wrap>.container>h2,.ubcx-about .abt-wrap>.container>.abt-section-lead{text-align:center}
.ubcx-about .abt-wrap>.container>h2{margin-bottom:.6rem}
.ubcx-about .abt-learn-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:1.4rem;margin-top:2.6rem}
.ubcx-about .abt-learn{display:flex;flex-direction:column;background:#fff;border:1px solid var(--border,#e9e2d6);border-radius:20px;overflow:hidden;box-shadow:0 12px 30px rgba(36,17,58,.07);text-decoration:none;color:inherit;transition:transform .18s ease,box-shadow .18s ease}
.ubcx-about .abt-learn:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(36,17,58,.13)}
.ubcx-about .abt-learn-img{position:relative;height:200px;background:linear-gradient(135deg,var(--brand,#4b2275) 0%,var(--brand-dark,#2e1450) 100%)}
.ubcx-about .abt-learn-img img{width:100%;height:100%;object-fit:cover;display:block}
.ubcx-about .abt-learn-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,8,35,.05) 0%,rgba(20,8,35,.72) 100%);display:flex;flex-direction:column;justify-content:flex-end;padding:1.1rem 1.25rem;color:#fff;font-weight:800;font-size:1.05rem}
.ubcx-about .abt-learn-icon{position:absolute;top:1.1rem;left:1.1rem;width:44px;height:44px;border-radius:13px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center}
.ubcx-about .abt-learn-icon svg{width:22px;height:22px}
.ubcx-about .abt-learn-body{padding:1.3rem 1.4rem 1.5rem;display:flex;flex-direction:column;flex:1}
.ubcx-about .abt-learn-body h3{font-size:1.1rem;margin:0 0 .45rem;color:var(--fg,#2b2233);font-family:var(--font-body,inherit);font-weight:800}
.ubcx-about .abt-learn-body p{font-size:.93rem;line-height:1.65;color:var(--muted,#6b6276);margin:0 0 .9rem}
.ubcx-about .abt-learn-cta{margin-top:auto;font-size:.92rem;font-weight:800;color:var(--brand,#4b2275)}

@media (max-width:900px){
  .ubcx-about .abt-intro{grid-template-columns:1fr;gap:40px}
  .ubcx-about .abt-intro-img img{min-height:280px}
}
@media (max-width:820px){
  .ubcx-about .abt-hero{padding:76px 0 68px}
  .ubcx-about .abt-wrap{padding:60px 0 72px}
  .ubcx-about .abt-tint{padding:68px 0}
}

/* ===== Brand-section paragraph contrast ===== */
.section.brand p{color:#EADBC4 !important}
.section.brand .card p{color:var(--fg) !important}

/* ===== Member login: wider card ===== */
.section:has(.ubc-member-access) > .container.ubcx-form{max-width:1100px !important}
@media (max-width:1180px){.section:has(.ubc-member-access) > .container.ubcx-form{max-width:calc(100% - 48px) !important}}
