/* ==============================================
   christianrebuild.co.uk — Full Image Fixed
   Complete photo visible + clean separation below
============================================== */

.header {
  min-height: 1050px; /* Increased to fully contain the photo */
  background: linear-gradient(
      to bottom right,
      rgba(248, 181, 71, 0.8),
      rgba(248, 181, 71, 0.8)
    ),
    url("../images/header-background.jpg") center center no-repeat;
  background-size: cover;
  
  /* ✅ Critical settings */
  overflow: visible; /* Nothing clipped — full image shows */
  padding-bottom: 8rem; /* Internal room so bottom isn't cut */
  margin-bottom: 6rem; /* Clean gap before next section */
  position: relative;
  z-index: 1;
}

.header .slide {
  width: 70%;
  margin: 0 auto;
}

.navbar {
  transition: all 0.5s ease-in-out;
}

.invitation-bg {
  background: linear-gradient(
      to bottom right,
      rgba(0, 0, 0, 0.8),
      rgba(0, 0, 0, 0.8)
    ),
    url("../images/invitation-background.jpg") center center no-repeat;
  background-size: cover;
}

/* ✅ Push section below — zero overlap guarantee */
main > section:first-of-type,
.what-is-section {
  clear: both !important;
  position: relative !important;
  margin-top: 6rem !important;
  z-index: 5 !important;
}

/* Mobile */
@media (max-width: 992px) {
  .navbar {
    background: var(--bs-dark);
  }
  .header {
    height: 850px !important;
    min-height: 850px !important;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
  }
  main > section:first-of-type,
  .what-is-section {
    margin-top: 3rem !important;
  }
  .header .slide {
    width: 90%;
    margin: 0 auto;
  }
  .header .text-container p {
    width: 100% !important;
    font-size: 16px;
  }
  .register {
    padding: 40px 0 !important;
  }
  .register h2 {
    text-align: center;
  }
  .summary {
    margin-top: 0 !important;
    width: 90% !important;
  }
}

/* Large screens — matched to your photo height */
@media (min-width: 1200px) {
  .header {
    min-height: 1100px; /* Tall enough for full photo + arrows */
    height: auto;
    padding-bottom: 8rem;
    margin-bottom: 6rem;
  }
  main > section:first-of-type,
  .what-is-section {
    margin-top: 7rem !important;
  }
}