@charset "UTF-8";

/* =========================================================
   RESET + GLOBAL SAFETY
   ========================================================= */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Smooth scroll is fine */
html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Media safety, prevents overflow */
img, video {
  max-width: 100%;
  height: auto;
}

/* =========================================================
   BODY
   ========================================================= */
body.lighthouse-page {
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: none;
}

/* =========================================================
   HERO
   ========================================================= */
.hero-header {
  position: relative;
  width: 100%;
  height: auto;
  background: none;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-hotspot {
  position: absolute;
  left: 130px;
  top: 77%;
  width: 320px;
  height: 80px;
  background: transparent;
  display: block;
}

/* =========================================================
   BACKGROUND BELOW HERO
   ========================================================= */
.below-hero {
  background-image: url("../images/background.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
  margin-top: -12px;
}

/* =========================================================
   CONTENT WRAPPER
   ========================================================= */
.content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;

  /* Critical: contain weird media/flex overflow */
  overflow: hidden;
}

/* =========================================================
   TEXT PANEL
   ========================================================= */
.text-panel {
  background: rgba(236, 245, 234, 0.95);
  border: 1px solid #d6e4d2;
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  margin-top: 0;

  /* Critical: keep video/images from escaping */
  overflow: hidden;
}

/* Clear floats inside text panel */
.text-panel::after {
  content: "";
  display: block;
  clear: both;
}

.text-panel h2 {
  font-size: 22px;
  margin: 14px 0;
}

.text-panel p {
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.text-panel ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.text-panel ul li::marker {
  font-size: 1.25em;
}

.text-panel ul li {
  font-size: 18.5px;
  margin-bottom: 8px;
}

/* =========================================================
   WRAPPED IMAGE (desktop)
   ========================================================= */
.wrap-image {
  float: left;
  width: 40%;
  max-width: 320px;
  margin: 0 20px 10px 0;
  display: block;
}

/* =========================================================
   FULL WIDTH MEDIA (use for ChurchEvents.png etc.)
   Add class="full-width-media" to that <img>
   ========================================================= */
.full-width-media {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin: 10px 0 14px 0;
}

/* =========================================================
   COMMUNITY VIDEO
   ========================================================= */
.community-video {
  margin: 24px auto;
  width: 100%;
  max-width: 720px;

  /* Critical for Safari + ensures containment */
  overflow: hidden;
  border-radius: 6px;
}

.community-video video {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   PILLARS
   ========================================================= */
.pillars {
  margin-top: 18px;
}

.pillar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 18px 0;

  /* Prevent any flex child overflow weirdness */
  min-width: 0;
}

.pillar-img {
  width: 180px;
  max-width: 35%;
  height: auto;
  display: block;
  border-radius: 6px;
  flex: 0 0 auto;
}

.pillar-body {
  min-width: 0;
}

.pillar-body h3 {
  margin: 0 0 8px 0;
}

.pillar-body ul {
  margin: 0 0 8px 18px;
  padding: 0;
}

.pillar-body p {
  margin: 0;
}

/* =========================================================
   FORM
   ========================================================= */
.interest-form {
  background: #ffffff;
  border-radius: 6px;
  padding: 20px;
  margin-top: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.interest-form label {
  display: block;
  margin-bottom: 14px;
  font-weight: bold;
}

.interest-form input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.interest-form button {
  margin-top: 12px;
  padding: 12px 18px;
  background: #2d6a4f;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.interest-form button:hover {
  background: #23533c;
}

/* =========================================================
   CONSULTANT CARDS
   ========================================================= */
.consultant-card {
  background: rgba(236, 245, 234, 0.95);
  border: 1px solid #d6e4d2;
  border-radius: 8px;
  padding: 26px;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  text-align: center;

  /* Helps prevent child overflow */
  overflow: hidden;
}

.consultant-box img {
  width: 260px;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.consultant-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: nowrap;
  min-width: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer-logo {
  text-align: center;
  padding: 10px 0;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   MOBILE OVERRIDES (single consolidated media query)
   ========================================================= */
@media (max-width: 767px) {

  /* Content padding */
  .content-wrap {
    padding: 16px;
  }

  /* Hero adjustments */
  .hero-hotspot {
    left: 5%;
    width: 90%;
  }

  /* Wrapped image becomes full-width */
  .wrap-image {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 14px 0;
  }

  /* Video stays inside, full width */
  .community-video {
    max-width: 100%;
    margin: 16px 0;
  }

  /* Pillars stack: image on top, copy beneath */
  .pillar {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .pillar-img {
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px 0;
  }

  /* Consultant cards stack */
  .consultant-row {
    flex-wrap: wrap;
    gap: 18px;
  }
}
