/* ===== THEME (mapped to your logo) ===== */
:root{
  --brand-navy:#10171B;   /* deep near-black */
  --brand-ink:#0C1114;    /* darker slab */
  --brand-teal:#4FBFC3;   /* teal (CTA) */
  --brand-green:#6CC24A;  /* accent green */
  --brand-gray:#7A7A6E;   /* neutral gray */
  --text:#23313B;
  --text-on-dark:#C7D3DA;
  --white:#fff;
  --offwhite:#F6F7F8;
  --card:#fff;
  --shadow: 0 10px 30px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
  --radius:14px;
}

/* ===== RESET / BASICS ===== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  font:16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background:#fff;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none;margin:0;padding:0}
.container{width:min(1200px, 92%);margin-inline:auto}
.center{text-align:center}
.mt-32{margin-top:2rem}
.copy-lg{font-size:18px;color:#3b4953}

/* ===== A11Y ===== */
.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;background:#000;color:#fff;padding:.5rem .75rem;border-radius:8px}

/* ===== HEADER ===== */
.site-header{
  background:var(--brand-navy);
  position:sticky;top:0;z-index:40;
  box-shadow:0 1px 0 rgba(255,255,255,.05);
}
.site-header.shrink{box-shadow:0 4px 18px rgba(0,0,0,.25)}
.site-header .container{display:flex;align-items:center;gap:24px;min-height:72px}
.brand{display:flex;align-items:center;gap:12px;color:#fff}
.brand-mark{width:44px;height:44px;object-fit:contain}
.brand-text{display:flex;flex-direction:column;line-height:.9}
.brand-top{font:700 24px/1 Poppins, sans-serif;letter-spacing:.02em}
.brand-bottom{font:600 16px/1 Poppins, sans-serif;letter-spacing:.38em}

@media (max-width: 700px) {
  .brand-top {
    font-size: 1.1rem;
  }
  .brand-bottom {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
  }
}
@media (max-width: 400px) {
  .brand-top {
    font-size: 0.85rem;
  }
  .brand-bottom {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }
}

.nav{margin-left:auto;display:flex;align-items:center;gap:24px}
.nav-list{display:flex;gap:22px}
.nav a{color:#cfe0ec;font-weight:600}
.nav a:hover{color:#fff}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:.85rem 1.25rem;font:600 15px/1 Poppins, sans-serif;cursor:pointer;transition:.2s ease;white-space:nowrap}
.btn-small{padding:.55rem .9rem;font-size:14px}
.btn-outline{color:var(--brand-teal);border:2px solid var(--brand-teal);background:transparent}
.btn-outline:hover{background:rgba(79,191,195,.12)}
.btn-teal{background:var(--brand-teal);color:#0d1b21}
.btn-teal:hover{filter:brightness(.95)}
.nav-toggle{display:none;flex-direction:column;gap:5px;width:44px;height:44px;border:0;background:transparent;color:#fff;margin-left:auto}
.nav-toggle span{display:block;height:2px;background:#fff;border-radius:2px}

/* ===== NAV MOBILE ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  margin-left: auto;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 28px;
  background: #fff;
  border-radius: 2px;
  margin: 3px 0;
  transition: all 0.2s;
}
@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--brand-navy);
    padding: 14px 4vw;
    border-top: 1px solid rgba(255,255,255,.08);
    display: none;
    flex-direction: column;
    gap: 18px;
    width: 100vw;
    z-index: 100;
  }
  .nav.open {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    gap: 14px;
  }
  .nav-toggle {
    display: flex;
  }
  .site-header .container {
    min-height: 64px;
  }
  .nav a {
    font-size: 1.1rem;
    color: #fff;
    padding: 0.7rem 0;
    text-align: left;
  }
}
@media (max-width: 600px) {
  .nav a {
    font-size: 0.98rem;
  }
}
@media (max-width: 400px) {
  .nav a {
    font-size: 0.85rem;
  }
}

/* ===== HERO ===== */
.hero{position:relative;min-height:64vh;background:#0e1419;color:#fff;display:grid;align-items:end}
.hero-media{position:absolute;inset:0;overflow:hidden}
.hero-video{width:100%;height:100%;object-fit:cover;filter:brightness(.55)}
.hero-content{position:relative;padding:18vh 0 8vh}
.display-xxl{font:800 clamp(36px,6vw,72px)/1.08 Poppins, sans-serif;letter-spacing:-.02em}

/* slabs */
.slab{padding:72px 0}
.slab-light{background:var(--white)}
.slab-offwhite{background:var(--offwhite)}
.slab-navy{background:var(--brand-navy)}
.slab-ink{background:var(--brand-ink)}
.text-white{color:#fff}
.text-faded{color:var(--text-on-dark)}

/* headings / helpers */
.display-xl{font:800 clamp(32px,5vw,56px)/1.06 Poppins, sans-serif}
.display-lg{font:800 clamp(28px,4vw,44px)/1.06 Poppins, sans-serif}
.lead{font:600 18px/1.5 Poppins, sans-serif}
.eyebrow{font:700 14px/1 Poppins, sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#6b7a86;margin:0 0 12px}
.eyebrow-green{color:var(--brand-green)}

/* split (join us) */
.split{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center}
.card{padding:28px;border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow)}
.hero-slim{padding:80px 0}
.hero-slim-inner{display:grid;justify-items:center;gap:22px}
.cta-row{display:flex;gap:14px;flex-wrap:wrap}

/* Watch embeds (minimal flex-row) */
.watch-embeds{
  display:flex;
  flex-direction:row;
  gap:18px;
  align-items:stretch;
  justify-content:flex-start;
  overflow-x:auto; /* allow horizontal scroll on narrow viewports */
  margin-top:28px;
}
.embed-card{
  flex:1 1 600px; /* doubled base so embeds scale larger horizontally and vertically */
  min-width:560px; /* doubled sensible minimum */
  display:flex;
  flex-direction:column;
}
.embed-title{margin:0;font:700 18px/1 Poppins, sans-serif}
.embed-1080p{position:relative;width:100%;padding-top:56.25%;overflow:hidden;border-radius:0;background:#000}
.embed-1080p iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* At medium widths make two columns where possible */
@media (max-width:1000px){
  .embed-card{flex:1 1 45%;min-width:40%;}
}
/* On small screens stack to single column */
@media (max-width:700px){
  .embed-card{flex:1 1 100%;min-width:100%;}
  .watch-embeds{flex-wrap:wrap;overflow-x:visible}
}

/* Top 3 cards */
.cards3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:28px}
.event-card{background:var(--card);border-radius:18px;box-shadow:var(--shadow);overflow:hidden;display:grid}
.event-media{position:relative}
.event-media img{width:100%;height:220px;object-fit:cover}
.pill{position:absolute;top:12px;left:12px;background:var(--brand-teal);color:#0d1b21;border-radius:18px;padding:.25rem .55rem;font:800 12px/1 Poppins, sans-serif}
.event-body{padding:18px 20px}
.event-body h3{margin:.25rem 0 .35rem;font:700 20px/1.25 Poppins, sans-serif}

/* Next steps */
.split-steps{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.steps{display:grid;gap:28px;margin:0;padding:0;border-left:3px solid color-mix(in srgb, var(--brand-green) 50%, transparent)}
.steps li{background:#fff;border-radius:16px;padding:18px 22px;box-shadow:var(--shadow);position:relative}
.steps .num{position:absolute;left:-46px;top:18px;color:var(--brand-green);font:800 22px/1 Poppins, sans-serif}

/* Community tiles */
.community-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:28px}
.tile{position:relative;border-radius:6px;overflow:hidden;outline:1.5px solid color-mix(in srgb, var(--brand-green) 70%, transparent)}
.tile img{height:440px;width:100%;object-fit:cover;filter:saturate(.95) contrast(1.05)}
.tile figcaption{position:absolute;left:0;right:0;bottom:16px;display:flex;justify-content:center}
.btn-small{font-size:13px;border-radius:8px;padding:.6rem .9rem}

/* Community buttons */
.community-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* About split */
.split-about .container{display:grid;grid-template-columns:1.15fr .85fr;gap:36px;align-items:center}
.about-media img{border-radius:6px}
.about-copy p{max-width:54ch}

/* Give */
.slab-light.center .container{display:grid;gap:14px;justify-items:center}

/* Map band + footer */
.map-band img{width:100%;height:420px;object-fit:cover;filter:grayscale(.1) brightness(.96) contrast(.95)}
.site-footer{background:#0f1417;color:#e5ecf1;position:relative}
.footer-grid{display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr;gap:44px;padding:52px 0}
.footer-brand .sv-badge{
  width:76px;height:76px;border-radius:10px;background:#1b2328;display:grid;place-items:center;
  font:800 38px/1 Poppins, sans-serif;border:1px solid color-mix(in srgb, var(--brand-green) 60%, transparent);margin-bottom:10px
}
.footer-col h4{color:var(--brand-green);margin:0 0 10px;font:800 16px/1 Poppins, sans-serif;letter-spacing:.08em}
.link-list li + li{margin-top:.35rem}
.contact-list li{display:flex;gap:10px;margin:.5rem 0}
.socials{display:flex;gap:12px;margin-top:8px}
.social{width:40px;height:40px;border-radius:50%;display:inline-block;background:var(--brand-teal)}
.social:hover{filter:brightness(.9)}
.to-top{
  position:fixed;right:18px;bottom:18px;border:0;border-radius:50%;width:46px;height:46px;
  background:var(--brand-teal);color:#0d1b21;font-size:20px;box-shadow:var(--shadow);cursor:pointer;display:none
}
.to-top.show{display:block}

/* Add this to your CSS file */
.service-cards-container {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Adjust spacing as needed */
}

#calendar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tile-link {
  display: block;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.tile-link img {
  display: block;
  width: 100%;
  height: auto;
}
.tile-link figcaption {
  pointer-events: none; /* So the whole tile is clickable, not just the button */
}

/* Split section */
.split-section .split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.split-section .split-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-section .split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) {
  .split-section .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split-section .split-img {
    margin-bottom: 1.5rem;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px){
  .split, .split-steps, .split-about .container{grid-template-columns:1fr}
  .cards3{grid-template-columns:repeat(2,1fr)}
  .community-tiles{grid-template-columns:repeat(2,1fr)}
  .hero{min-height:58vh}
}
@media (max-width: 700px){
  .cards3, .community-tiles{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .nav{position:fixed;inset:72px 0 auto 0;background:var(--brand-navy);padding:14px 4vw;border-top:1px solid rgba(255,255,255,.08);display:none;flex-direction:column;gap:18px}
  .nav.open{display:flex}
  .nav-list{flex-direction:column;gap:14px}
  .nav-toggle{display:flex}
  .site-header .container{min-height:64px}
}
@media (max-width: 520px){
  .footer-grid{grid-template-columns:1fr}
}

/* 3x2 button grid container */
.button-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.2rem 0 0 0;
  padding: 0 1.2rem 1.2rem 1.2rem;
}
.button-grid .community-btn {
  background: var(--brand-teal);
  color: #0d1b21;
  border: none;
  border-radius: 10px;
  padding: 1.1rem 0;
  font: 600 16px/1 Poppins, sans-serif;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  width: 100%;
  min-width: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.button-grid .community-btn:hover {
  filter: brightness(0.95);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
@media (max-width: 900px) {
  .button-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .button-grid {
    grid-template-columns: 1fr;
    padding: 0 0.5rem 0.5rem 0.5rem;
  }
}

.btn-lg {
  font-size: 1.35rem;
  padding: 1.2rem 2.2rem;
  border-radius: 14px;
  font-weight: 700;
  margin: 0 0.5rem 1.2rem 0.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.about-nav-btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 0;
  width: 100%;
}
.slab-navy .text-white, .slab-navy .copy-lg {
  color: #fff;
}

.btn-about-nav {
  background: rgba(0,0,0,0);
  color: #222;
  font-size: 2.2rem;
  padding: 2.5rem 0;
  border-radius: 18px;
  font-weight: 700;
  margin: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 3px solid #000;
  width: 100%;
  max-width: 350px;
  display: block;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}
.btn-about-nav:hover, .btn-about-nav:focus {
  background: rgba(0,0,0,0.5);
  color: #fff;
}
.about-btns-section {
  padding: 32px 0 16px 0;
}
@media (max-width: 1100px) {
  .about-nav-btns {
    flex-direction: column;
    gap: 1.2rem;
  }
  .btn-about-nav {
    max-width: 100%;
    font-size: 1.2rem;
    padding: 1.2rem 0;
  }
}
@media (max-width: 700px) {
  .btn-about-nav {
    font-size: 1.2rem;
    padding: 1.2rem 0;
    max-width: 100%;
  }
  .about-nav-btns {
    gap: 1.2rem;
  }
}

.beliefs-divider {
  border: 0;
  border-top: 2px solid #fff;
  margin: 2.5rem 0 2.5rem 0;
  width: 100%;
  opacity: 0.7;
}

.staff-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.staff-widget {
  display: flex;
  align-items: stretch;
  gap: 2.5rem;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px 0 rgba(27,35,40,0.07);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.staff-widget-left {
  flex-direction: row;
}

.staff-widget-right {
  flex-direction: row-reverse;
}

.staff-img-wrap {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #6CC24A;
  background: #e6e9ed;
  box-shadow: 0 2px 8px 0 rgba(27,35,40,0.10);
}

.staff-info {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 700px) {
  .staff-widget, .staff-widget-left, .staff-widget-right {
    flex-direction: column !important;
    text-align: center;
    padding: 1.5rem 0.5rem;
    gap: 1.5rem;
    width: 100%;
  }
  .staff-img-wrap {
    margin-bottom: 0.5rem;
  }
}

.calendar-embeds {
  position: relative;
}
.planning-center-calendar-desktop {
  display: block;
  margin: 2rem auto;
  max-width: 700px;
  width: 90%;
  height: 400px;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  background: #fff;
}
.planning-center-calendar-mobile {
  display: none;
}
@media (max-width: 600px) {
  .planning-center-calendar-desktop {
    display: none;
  }
  .planning-center-calendar-mobile {
    display: block;
    margin: 2rem auto;
    width: 100vw;
    max-width: 100vw;
    height: 340px;
    border-radius: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    background: #fff;
  }
}

#maincalendar {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#maincalendar iframe {
  max-width: 100%;
  width: 800px;
  min-width: 320px;
  height: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
@media (max-width: 900px) {
  #maincalendar iframe {
    width: 98vw;
    min-width: 0;
    height: 500px;
  }
}
@media (max-width: 600px) {
  #maincalendar iframe {
    width: 100vw;
    height: 400px;
  }
}

/* Custom Calendar Styles - scoped to .custom-calendar-wrapper */
.custom-calendar-wrapper {
  position: relative;
  width: 900px;
  height: 500px;
  margin: 100px auto;
  background-color: lightgray;
  font-family: 'Kanit', sans-serif;
}
.custom-calendar-base {
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 500px;
  border-radius: 0 20px 20px 0;
  background-color: white;
  color: black;
  z-index: 2;
}
.custom-calendar-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 500px;
  border-radius: 20px 0 0 20px;
  background-color: #2ECC71;
  color: white;
  z-index: 3;
}
.custom-year {
  color: #E8E8E8;
  font-size: 30px;
  float: right;
  position: relative;
  right: 75px;
  top: 20px;
  font-weight: bold;
}
.custom-triangle-left {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-right: 10px solid #E8E8E8;
  border-bottom: 5px solid transparent;
  float: right;
  position: relative;
  right: 90px;
  top: 36px;
}
.custom-triangle-right {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-left: 10px solid #E8E8E8;
  border-bottom: 5px solid transparent;
  float: right;
  position: relative;
  left: 20px;
  top: 36px;
}
.custom-triangle-left:hover{
  border-right: 10px solid #2ECC71;
}
.custom-triangle-right:hover{
  border-left: 10px solid #2ECC71;
}
.custom-month-color {
  color: #27AE60;
}
.custom-month-hover:hover{
  color:#27e879 !important;
}
.custom-months {
  color: #AAAAAA;
  position: relative;
  left: 350px;
  top: 90px;
  word-spacing: 10px;
}
.custom-month-line {
  border-color: #E8E8E8;
  position: relative;
  top: 85px;
  width: 57%;
  left: 178px;
}
.custom-days {
  color: #AAAAAA;
  position: relative;
  font-size: 18px;
  left: 355px;
  top: 80px;
  word-spacing: 35px;
  font-weight: 600;
}
.custom-num-dates {
  float: right;
  position: relative;
  top: 110px;
  right: 50px;
  z-index: 1;
}
.custom-first-week {
  margin-bottom: 25px;
  word-spacing: 55px;
}
.custom-second-week {
  margin-bottom: 25px;
  word-spacing: 53px;
}
.custom-third-week {
  margin-bottom: 25px;
  word-spacing: 58px;
}
.custom-fourth-week {
  margin-bottom: 25px;
  word-spacing: 58px;
}
.custom-fifth-week {
  margin-bottom: 25px;
  word-spacing: 56px;
}
.custom-sixth-week {
  margin-bottom: 25px;
  word-spacing: 55px;
}
.custom-active-day {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #2ECC71;
  position: relative;
  top: 295px;
  left: 661px;
}
.custom-white {
  color: white;
}
.custom-event-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #2980B9;
  position: relative;
  top: 304px;
  left: 695px;
}
.custom-two {
  position: relative;
  top: 168px;
  left: 535px;
}
.custom-grey {
  color: #AAAAB1;
}
.custom-hamburger {
  position: relative;
  top: 25px;
  left: 25px;
}
.custom-burger-line:hover, .custom-hamburger:hover{
  background-color:#27e879 !important;
}
.custom-burger-line {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 15%;
  margin-bottom: 3px;
}
.custom-num-date {
  font-size: 150px;
  width: 50%;
  margin: 0 auto;
  font-weight: 700;
}
.custom-day {
  width: 50%;
  margin: 0px auto;
  font-size: 30px;
  position: relative;
  bottom: 60px;
}
.custom-current-events {
  font-size: 15px;
  position: relative;
  margin-left: 25px;
  bottom: 30px;
}
.custom-posts {
  text-decoration: underline dotted;
}
.custom-posts:hover{
  color:#27e879 !important;
}
.custom-create-event {
  font-size: 18px;
  position: relative;
  margin-top: 30px;
  margin-left: 25px;
}
.custom-event-line {
  width: 90%;
}
.custom-add-event {
  width: 20px;
  height: 20px;
  padding: 0px;
  border-radius: 50%;
  border: solid white 2px;
  position: relative;
  bottom: 42px;
  left: 260px;
}
.custom-add {
  font-size: 25px;
  position: relative;
  left: 4px;
  bottom: 10px;
}
.custom-add:hover, .custom-create-event:hover, .custom-add-event:hover{
  color:#27e879 !important;
  border-color: #27e879 !important;
}
