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;
}

.section-heading {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0; /* remove vertical margins */
  padding: 20px 0;
}

.section-heading::before,
.section-heading::after {
  content: "";
  flex: 1;
  border-top: 0px solid #122983;
}

.section-heading span {
  padding: 0 20px;
  font-size: 25px;
  font-weight: bold;
  color: #122983;
  white-space: nowrap;
}

.expertise-hero {
  background: url('../images/bg-expertise.avif') no-repeat center center/cover;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-overlay {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 30px 40px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  max-width: 100%;
  width: 100%;
}

.expertise-overlay h1 {
  font-size: 28px;
  color: #122983;
  font-weight: bold;
}

.expertise-overlay p {
  font-size: 18px;
  color: #002244;
}

.expertise-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  margin: 0;
}

.expertise-block.normal {
  flex-direction: row;
  margin: 0;
}

.expertise-block.reversed {
  flex-direction: row-reverse;
  margin: 0;
}

.expertise-image,
.expertise-text {
  flex: 1;
  margin: 0;
}

.expertise-image {
  text-align: center;
  margin: 0;
}

.expertise-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.expertise-text {
  padding: 20px;
}

.expertise-text h2 {
  font-size: 22px;
  color: #122983;
  margin-bottom: 15px;
}

.expertise-text .summary,
.summary {
  font-size: 20px;
  text-align: center;
  font-weight: bold;
  margin-left: 0%;
  color: #122983;
  margin-bottom: 10px;
}

.expertise-text p {
  font-weight: normal;
  font-size: 18px;
  margin-left: 8%;
  color: #002244;
  line-height: 1.6;
}

.contact-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  background-color: #122983;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 20px;
  text-decoration: none;
}

.header-line {
  height: 2.4px;
  width: 100%;
  background-color: #122983;
  margin: 0;
}

/* .desktop-only { display: block; } */
.mobile-only { display: none; }

@media screen and (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }

  .mobile-overlay {
    position: relative;
  }

  .expertise-hero-mobile {
    text-align: center;
    margin-bottom: 20px;
    overflow-x: hidden;
  }

  .mobile-image-wrapper {
    position: relative;
  }

  .expertise-image {
    border-bottom: 2.4px solid #122983;
    border-top: 2.4px solid #122983;
  }

  .mobile-image-wrapper img {
    width: 100%;
    height: 300px;
    display: block;
    border-bottom: 2.4px solid #122983;
  }

  .mobile-heading-overlay {
    position: absolute;
    bottom: 40%;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    color: #122983;
    font-weight: bold;
    font-size: 25px;
    padding: 35px 40px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .mobile-subtext {
    font-size: 20px;
    color: #000;
    margin-top: 40px;
    margin-bottom: 40px;
    margin-left: 10%;
    margin-right: 15%;
    padding: 8 15px;
  }

  .mobile-heading {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 25px 35px;
    font-size: 18px;
    font-weight: bold;
    color: #122983;
    margin-bottom: 25%;
    margin-left: -7%;
  }

  .mobile-line {
    border: none;
    height: 2.4px;
    background-color: #122983;
    width: 40%;
    margin: 15px auto;
  }

  .expertise-text {
    padding: 15px 10px;
    text-align: left;
  }

  .expertise-text p {
    font-size: 18px;
    line-height: 1.5;
    /* margin: 8px 0; */
    margin-left: 15%;
  }

  .expertise-text .summary {
    font-size: 25px;
    font-weight: bold;
    margin-left: 10%;
    margin-right: 10%;
    color: #122983;
  }

  .contact-link {
    display: block;
    width: 85%;
    margin: 15px auto;
    font-size: 16px;
    text-align: center;
  }
}