body { 
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  color: #2e2e2e;
  background-color: #f5f8f5;
}

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

html,
body {
  overflow-x: hidden;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.75rem;
  background-color: #3F8285;
  color: white;
}

header img {
  height: 75px;
  width: auto;
}

@media (max-width: 640px) {
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
  }

  header img {
    height: 70px;
    width: auto;
    display: block;
  }

  nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.15rem;
  }

  nav a {
    margin: 0;
    padding: 0.1rem 0;
    line-height: 1.2;
    font-size: 0.95rem;
  }
}

nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

.container-md { max-width: 800px; margin: 3rem auto; }
.container-lg { max-width: 1150px; margin: 3rem auto; }
.text-center { text-align: center; }
.pad-15pct { padding-left: 15%; padding-right: 15%; }

main section { padding: 0; max-width: 800px; margin: auto; }
section {
  margin: 1.5rem 0 3rem;
  background-color: #e4f4f5;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

img { max-width: 100%; height: auto; }
h1 img, h2 img, h3 img, p img { display: inline; vertical-align: middle; }

footer {
  background-color: #e4f4f5;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

.footer-contact { margin-top: 0.5rem; }

.footer-icon {
  display: inline-block;
  width: 45px;
  height: 45px;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.footer-icon:hover { opacity: 1; filter: brightness(0.8) sepia(0.2) hue-rotate(-10deg) saturate(1.5); }
.footer-icon.email { background-image: url('images/email.png'); }
.footer-icon.linkedin { background-image: url('images/linkedin.png'); }

header h1 { color: white; }
h1, h2, h3 { color: #3F8285; }
.button {
  background-color: #3F8285;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.button:hover { background-color: #7f997f; box-shadow: 0 4px 8px rgba(0,0,0,0.15); }

.profile {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}

.profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
}

.profile-card {
  flex: 1 1 45%;
  max-width: 45%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.profile-card img {
  max-width: 60%;
  height: 325px;
  width: auto;
  max-width: none;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 1rem;
  display: block;
}

.profile-card h3,
.profile-card p {
  flex-grow: 1;
}

@media (max-width: 640px) {
  .profiles {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .profile-card {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    text-align: left;
  }
  .profile-card img {
    max-width: 70%;
    margin-left: 0;
  }
}

.sidepicture-section {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}
.sidepicture-section.reverse { flex-direction: row-reverse; }
.sidepicture-image {
  width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 6rem;
}
.sidepicture-text { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.sidepicture-text p { margin: 0.5rem 0; }
.sidepicture-text li { margin-left: 1.5rem; }

@media (max-width: 900px) {
  .sidepicture-section, .sidepicture-section.reverse {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  .sidepicture-text { text-align: left; }
  .sidepicture-text li { margin-left: 0; text-align: left; }
  .sidepicture-image { width: 90%; height: auto; margin-top: 1rem; }
  .sidepicture-heading, .sidepicture-heading.align-right { text-align: left; }
}

.section-image { display: block; margin: 1rem auto 0; width: 100%; }
@media (min-width: 900px) { .section-image { width: 50%; } }

.testimonials-image {
  width: 500px;
  height: 450px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  display: block;
  margin: 1rem auto 0.5rem;
}

@media (max-width: 900px) {
  .testimonials-image {
    width: calc(90% - 1rem);
    height: auto;
  }
}

@media (min-width: 768px) {
  section.container-lg.text-center {
    padding-inline: 8rem !important;
    max-width: 1150px !important;
  }
}
