html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Spinnaker', sans-serif;
  margin: 0;
  padding: 0;
  color: #002244;
  background: #ffffff;
  overflow-x: hidden;
}

.join-hero {
  background: url('../images/nous-hero.png') no-repeat center center/cover;
  height: 400px;
  display: flex;
  align-items: center;
}

.join-hero h1 {
  font-size: 32px;
  margin-left: 10%;
  color: #ffffff;
  text-align: left;
  font-weight: bold;
}

.header-line {
  height: 2.4px;
  width: 100%;
  background-color: #122983;
  margin: 0; /* no gap */
}

.join-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0; /* remove any outer gap */
}

.join-block.normal {
  flex-direction: row;
}

.join-block.reversed {
  flex-direction: row-reverse;
}

.join-image,
.join-text {
  flex: 1;
  margin: 0;
  padding: 0;
}

.join-image img {
  width: 100%;
  max-height: 433px;
  height: auto;
  margin: 0;
  padding: 0;
  display: block; /* remove image bottom gap */
}

.join-text h2 {
  font-size: 30px;
  color: #122983;
  margin: 0 20% 8px 20%;
}

.join-text p {
  font-size: 20px;
  margin: 0 10%;
  color: #002244;
  text-align: left;
  line-height: 1.6;
}

.join-block.center-text {
  flex-direction: column;
  text-align: center;
}

.join-block.center-text .join-text {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.join-block.center-text .join-text h2 {
  color: #122983;
  font-size: 30px;
  margin-bottom: 15px;
}

.join-block.center-text .join-text p {
  font-size: 20px;
  color: #002244;
  line-height: 1.6;
  margin: 0 0 10px;
}

.mobile-only { display: none; }


@media screen and (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }

  body {
    overflow-x: hidden;
  }

  /* Mobile Hero */
  .join-hero-mobile .mobile-image-wrapper {
    position: relative;
  }

  .join-hero-mobile img {
    width: 100%;
    height: 300px;
    display: block;
    border-bottom: 2.4px solid #122983;
  }

  .mobile-heading-overlay {
    position: absolute;
    bottom: 40%;
    width: 100%;
    text-align: center;
    background: rgba(255,255,255,0.8);
    color: #122983;
    font-size: 18px;
    font-weight: bold;
    padding: 25px 36px;
    margin-left: -7%;
  }

  /* Mobile Sections */
  .join-block-mobile {
    text-align: center;
    margin-bottom: 10%;
    /* padding: 20px 15px; */
  }

  .join-block-mobile img.full-width-img {
    width: 100%;
    height: 300px;
    display: block;
    margin: 0;
    border-bottom: 2.4px solid #122983;
    border-top: 2.4px solid #122983;
  }

  .join-block-mobile h2 {
    font-size: 25px;
    color: #122983;
    margin-left: 15%;
    margin-right: 15%;
    margin-top: 10%;
  }

  .join-block-mobile p {
    font-size: 20px;
    color: #002244;
    margin: 10px 0;
    line-height: 1.5;
    text-align: left;
    margin-left: 10%;
    margin-right: 10%;
  }

  .full-width-img {
    width: 100%;
    display: block;
    margin: 0;
  }

  .vous{
    color: #ffffff;
    background: #000000;
    border-top: 2.4px solid #122983;
    margin-bottom: -20px;

  }

  .vous h2 {
    font-size: 25px;
    text-align: center;
    color: #ffffff;
    margin-left: 15%;
    margin-right: 15%;
  }

  .vous p {
    font-size: 20px;
    color: #ffffff;
    margin-left: 20%;
    margin-right: 12%;
    line-height: 1.5;
  }

  .mission-button {
    display: inline-block;
    /* margin: 20px 0; */
    padding: 10px 25px;
    margin-left: 32%;
    background-color: #122983;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    margin-bottom: 50px;
  }

  
  .mobile-line {
    border: none;
    height: 2.4px;
    background-color: #122983;
    width: 40%;
    margin: 15px auto;
  }
}