@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-display: swap;
  src: url(fonts/Lato-Regular.woff2) format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-display: swap;
  src: url(fonts/Quicksand.woff2) format('woff2');
}

:root {
  --color-1: #fce3c7;
  --color-2: #f0f2f6;
  --color-3: #eeac8f;
  --color-4: #618cab;
  --color-5: #00577a;
  --color-6: #fef7ee;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-dark: #242a39;
  --font-primary: 'Lato';
  --font-secondary: 'Quicksand';
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  background-color: var(--color-2);
  color: var(--color-black);
}

b, strong {
    font-weight: bolder;
}

main {
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

h1, h2, h3, h4, h5, h6 {
  line-height: normal;
  margin: 1em 0;
}

h3 {
    font-size: 1.5em;
}

h1, h2, h3, h4, h5, h6,
.header, .footer, .navbar {
  font-family: var(--font-primary);
}

p {
  font-family: var(--font-secondary);
}

section {
    min-width: 100%;
}

.max-600 {
    max-width: 600px;
    min-width: 0;
}

.max-1200 {
    max-width: calc(min(100vw - 2em, 1200px));
    min-width: 0;
}

.blue {
    background-color: var(--color-5);
    color: var(--color-white);
}
.white {
    color: var(--color-dark);
    margin-left: 1em;
    margin-right: 1em;
}

.section {
  padding: 2em 0 2em;
}

/* TODO: add margin-left and right 1em to some direct children of .section */

.see-products-btn-div {
  text-align: center;
}

header {
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  @media (min-height: 1000px) {
    position: sticky;
  }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
  padding: 0.5em 2em 0.5em calc(min(4em, 5vw));
  margin: 0;
}

.logo img,
.footer-logo img {
  height: 35px;
  width: auto;
  display: block;
}

.language-link img {
  height: 20px;
  width: auto;
  display: block;
}

.line-under-card-indicator {
  height: 1px;
  background: var(--color-5);
  margin-top: 1.5em;
}

.nav-links {
  display: flex;
  gap: 1.5em;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
  white-space: nowrap;
  .empty-menu-link {
      flex: auto;
      @media (max-width: 760px) {
	  display: none;
      }
  }
  @media (max-width: 760px) {
    flex-wrap: wrap;
    gap: 0;
    justify-content: flex-start;
  }
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.5em;
  &.active-page {
    text-decoration: underline;
    cursor: pointer;
  }
}

.nav-links > li > a {
  color: var(--color-dark);
  border-radius: 8px;
}
.nav-links > li.dropdown > a {
  color: var(--color-dark);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.nav-links > li > a:hover {
  background: var(--color-1);
  transition: background 0.3s;
}

.dropdown:hover {
  background-color: var(--color-1);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  transition: background-color 0.3s;
}

.dropdown-indicator {
  width: 1.2em;
  height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-1);
  border-radius: 50%;
  img {
    width: 1em;
    height: auto;
    display: block;
  }
  @media (max-width: 760px) {
    display: none;
  }
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 2.5em;
  left: 0;
  background: var(--color-1);
  list-style: none;
  min-width: 142px;
  z-index: 100;
  padding: 0 0 0 0;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.dropdown:hover .dropdown-menu {
  display: block;
  a {
    cursor: pointer;
  }
  @media (max-width: 760px) {
    display: none;
  }
}

.dropdown-menu li {
  a:hover {
    background: var(--color-3);
    color: var(--color-black);
    transition: background 0.3s, color 0.3s;
    border-radius: 0;
  }
  &:first-child a, &:first-child a:hover {
    border-top-right-radius: 8px;
  }
  &:last-child a, &:last-child a:hover {
    border-top-right-radius: 0px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
}

.promo-container {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    @media (max-width: 800px) {
	flex-direction: column;
	align-items: start;
    }
}

.promo-content {
  @media (max-width: 670px) {
    padding-right: 5em;
    margin-bottom: 1em;
  }
  margin-left: calc(max(4em, 6vw));
  margin-right: auto;
  max-width: calc(min(80vw, 720px));
  padding-right: 2em;
  .btn {
    margin-top: 1em;
  }
  h2 {
    font-size: 1.8em;
    color: var(--color-5);
  }
}

.promo-image {
  display: flex;
  margin-left: calc(max(25vw - 150px, 1em));
  min-width: 300px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
}


.wave-section {
  background: var(--color-1);
  max-width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
  clip-path: polygon(100% 100.00%, 0% 100.00%, 0% 12.24%, 1% 11.80%, 2% 11.33%, 3% 10.84%, 4% 10.33%,
  5% 9.79%, 6% 9.26%, 7% 8.71%, 8% 8.14%, 9% 7.58%, 10% 7.03%, 11% 6.47%, 12% 5.91%,
  13% 5.37%, 14% 4.83%, 15% 4.31%, 16% 3.80%, 17% 3.32%, 18% 2.87%, 19% 2.44%,
  20% 2.03%, 21% 1.66%, 22% 1.32%, 23% 1.02%, 24% 0.76%, 25% 0.52%, 26% 0.33%,
  27% 0.18%, 28% 0.07%, 29% 0.00%, 30% -0.03%, 31% 0.00%, 32% 0.05%, 33% 0.15%,
  34% 0.30%, 35% 0.48%, 36% 0.70%, 37% 0.96%, 38% 1.26%, 39% 1.59%, 40% 1.96%,
  41% 2.36%, 42% 2.79%, 43% 3.24%, 44% 3.72%, 45% 4.22%, 46% 4.74%, 47% 5.26%,
  48% 5.81%, 49% 6.36%, 50% 6.92%, 51% 7.49%, 52% 8.05%, 53% 8.61%, 54% 9.16%,
  55% 9.70%, 56% 10.23%, 57% 10.74%, 58% 11.23%, 59% 11.72%, 60% 12.15%, 61% 12.58%,
  62% 12.98%, 63% 13.34%, 64% 13.67%, 65% 13.95%, 66% 14.22%, 67% 14.43%, 68% 14.61%,
  69% 14.75%, 70% 14.85%, 71% 14.89%, 72% 14.90%, 73% 14.87%, 74% 14.81%, 75% 14.68%,
  76% 14.53%, 77% 14.32%, 78% 14.09%, 79% 13.82%, 80% 13.51%, 81% 13.17%, 82% 12.79%,
  83% 12.39%, 84% 11.95%, 85% 11.48%, 86% 11.00%, 87% 10.49%, 88% 9.97%, 89% 9.44%,
  90% 8.89%, 91% 8.34%, 92% 7.77%, 93% 7.21%, 94% 6.65%, 95% 6.10%, 96% 5.55%,
  97% 5.01%, 98% 4.48%, 99% 3.97%, 100% 3.49%);
  @media (max-width: 800px) {
    clip-path:polygon(100% 100%, 0% 100% , 0.00% 5.65%, 1.43% 5.64%, 2.86% 5.62%, 4.29% 5.59%, 5.71% 5.55%, 7.14% 5.49%,
    8.57% 5.42%, 10.00% 5.33%, 11.43% 5.24%, 12.86% 5.13%, 14.29% 5.01%, 15.71% 4.89%, 17.14% 4.75%, 18.57% 4.61%,
    20.00% 4.45%, 21.43% 4.29%, 22.86% 4.13%, 24.29% 3.96%, 25.71% 3.78%, 27.14% 3.60%, 28.57% 3.42%, 30.00% 3.23%,
    31.43% 3.05%, 32.86% 2.86%, 34.29% 2.68%, 35.71% 2.50%, 37.14% 2.32%, 38.57% 2.14%, 40.00% 1.97%, 41.43% 1.81%,
    42.86% 1.65%, 44.29% 1.50%, 45.71% 1.36%, 47.14% 1.22%, 48.57% 1.10%, 50.00% 0.98%, 51.43% 0.88%, 52.86% 0.79%,
    54.29% 0.71%, 55.71% 0.64%, 57.14% 0.58%, 58.57% 0.54%, 60.00% 0.51%, 61.43% 0.50%, 62.86% 0.49%, 64.29% 0.50%,
    65.71% 0.52%, 67.14% 0.56%, 68.57% 0.61%, 70.00% 0.67%, 71.43% 0.75%, 72.86% 0.83%, 74.29% 0.93%, 75.71% 1.04%,
    77.14% 1.16%, 78.57% 1.29%, 80.00% 1.43%, 81.43% 1.57%, 82.86% 1.73%, 84.29% 1.89%, 85.71% 2.06%, 87.14% 2.23%,
    88.57% 2.41%, 90.00% 2.59%, 91.43% 2.77%, 92.86% 2.96%, 94.29% 3.14%, 95.71% 3.33%, 97.14% 3.51%, 98.57% 3.69%,
    100.00% 3.87%);
  }

}

.hero {
  background: url('images/front_image.avif') left bottom/cover no-repeat;
  background-position-x: calc(min(100vw - 375px - 400px, 0px));
  background-position-y: calc(-375px + min((1700px - 100vw) * 0.5, 0px));
  min-height: 400px;
  padding: 0 0 2em;
}

.hero-content {
  color: var(--color-white);
  margin: 8em 2em 8em 4em;
  max-width: min(600px, 80vw);
  h1 {
      font-size: 2.5em;
      text-shadow: 0 0 2px var(--color-black),
                  0 0 2px var(--color-black),
                  0 0 2px var(--color-black),
                  0 0 2px var(--color-black),
                  0 0 2px var(--color-black);
  }
  p {
      backdrop-filter: blur(5px);
      border-radius: 10px;
      font-size: 1.2em;
      margin: 0 0 2em 0;
      inset: 0;
      mask: linear-gradient(transparent, black 15px, black calc(100% - 15px), transparent);
      padding: 0.5em 0;
      text-shadow: 0 0 3px var(--color-black),
		   0 0 3px var(--color-black),
		   0 0 3px var(--color-black),
                   0 0 3px var(--color-black),
                   0 0 3px var(--color-black);
  }
}

.intro-text {
  max-width: 800px;
}

.into-text p,
.product-card p {
  margin: 0.5em 0 2.5em 0;
  font-size: 0.9em;
}

.benefit-item p {
  margin: 0;
  font-size: 1.05em;
}

.staff-card p {
  margin: 0.2em 0;
}

.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.btn-primary {
  background: var(--color-5);
  color: var(--color-white);
}

.blue .btn-primary {
    background-color: var(--color-1);
    color: var(--color-black);
    &:hover {
	background-color: var(--color-3);
    }
}

.btn-secondary {
  background: var(--color-1);
  color: var(--color-black);
}

.btn:hover {
  background: var(--color-3);
  color: var(--color-black);
  transition: background 0.3s, border 0.3s;
}

h2 {
    font-size: 2.5em;
    color: var(--color-5);
}
.blue h2 {
    color: var(--color-white);
}

.product-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em 2em;

  @media (max-width: 760px) {
    grid-template-columns: repeat(1, 1fr);
  }
}

.product-feature-item {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.product-feature-item p {
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
}

.logos-frontpage {
  margin: 0 1em 0;
  padding-bottom: 3em; /* Actual padding is 4em, img itself has a padding of 1em */
  max-width: 1200px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 2em;
}

.logos-frontpage img {
  max-height: 50px;
  max-width: 280px;
  padding: 0 0 1em 0;
}

.logos img {
  max-height: 50px;
  padding: 0 0 1em 0;
}

.workers-testimonial-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin: 1em 0;
}

.workers-testimonial-circle img {
  width: 100%;
  object-fit: cover;
}


.nyckeltal {
  background: url('images/nyckeltal.avif') center/cover no-repeat;
  color: var(--color-white);
  text-align: center;
  margin-top: 4em;
  padding-bottom: 2em;
}

.nyckeltal h2 {
  color: var(--color-white)
}

.nyckeltal-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3em;
  margin: 0 1em 2em;
}

.nyckeltal-number {
  font-size: 3em;
  font-weight: bold;
}

.nyckeltal-label {
  font-size: 1.5em;
  opacity: 0.90;
}

.nyckeltal-item {
  min-width: 120px;
}

.work {
  align-items: flex-start;
  justify-content: space-around;
  gap: 2em;
}

.work-text {
  max-width: 500px;
  margin: 0 1em;
}

.work-images-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: space-around;
  max-width: calc(600px + 1.5em);
  img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
  }
}

.flex-center {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.testimonial-section {
    margin: 0 1em 3em;
    gap: 1em;
    align-items: normal;
    flex-direction: row;
    flex-wrap: nowrap;
    @media (max-width: 700px) {
	flex-direction: column;
    }
}

.testimonial-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.testimonial-box img {
  max-width: 200px;
  height: auto;
}

.testimonial-text {
  font-size: 1.2em;
  font-style: italic;
  color: var(--color-black);
  margin-bottom: 1em;
  text-align: center;
  padding-top: 0;
}

.testimonial-author {
  font-weight: bold;
  margin: 0;
}

.testimonial-prev,
.testimonial-next {
  border: none;
  cursor: pointer;
  font-size: 6em;
  background: none;
  color: var(--color-5);
  padding: 0;
  margin: 0 5px;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  color: var(--color-4);
}

.testimonials-carousel-section {
  background: var(--color-3);
  border-radius: 12px;
  flex-wrap: nowrap;
  margin: 0 2em;
  min-width: 0;
  ul {
    display: flex;
    align-items: center;
    margin: 20px 0;
    max-width: calc(min(90%, 75vw));
    padding: 0;
    list-style: none;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  li {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }
}

.testimonials-carousel-section + .contact-us {
    margin-top: 5em;
}

.contact-us h3 {
    margin-left: 1rem;
    margin-right: 1rem;
}

.customer-testimonial-card {
  background: var(--color-1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex: 1 0 0%;
  p {
      padding: 1em;
  }
  img {
      max-width: 200px;
      height: auto;
      padding-bottom: 2em;
  }
}

footer {
  align-items: start;
  background: var(--color-2);
  color: var(--color-5);
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  padding: 2em;
}

.footer-info a,
.footer-links a {
  color: var(--color-5);
  text-decoration: none;
}

.footer-info a:hover,
.footer-links a:hover {
  text-decoration: underline;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0.5em 0;
}

.footer-social a img {
  width: 30px;
  opacity: 0.8;
  transition: opacity 0.3s;
  margin-top: 1.25em;
}

.footer-logo {
    margin-top: 1em;
}

.footer-social a img:hover {
  opacity: 1;
}

.footer-line {
  margin: 2em 0;
  width: 100%;
  border-top: 2px solid var(--color-4);
}

.page-intro {
  margin: 2em 1rem 1.5em;
  justify-content: space-between;
  align-items: center;
}

.intro-heading h1 {
  color: var(--color-5);
  font-size: 2.2em;
  margin: 0 0 .2em 0;
}

.intro-heading h2 {
  color: var(--color-3);
  font-size: 1.2em;
  margin: 0 0 .5em 0;
}

.intro-heading h3 {
  color: var(--color-5);
  margin: 0;
  padding: 0 0 1em 0;
}

.intro-text {
  color: var(--color-dark);
}

@media (min-width: 900px) {
  .intro-text .intro-heading {
    flex: 1;
  }
}

.intro-image-banner img {
    border-radius: 12px;
    width:100%;
}

.grid {
  display: grid;
  gap: 1em;
  grid-template-columns: 1fr;
  margin: 2em 0 2em;
  @media (min-width: 700px) {
      grid-template-columns: 1fr 1fr;
  }
}

.product-grid {
  margin: 2em 0 3em;
}

.why-neotide-grid {
  margin: 0 0 2em;
}

.why-neotide-card {
  background: var(--color-3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  position: relative;
  text-align: center;
  align-items: center;
  padding-bottom: 2em;
}

.why-neotide-card h3 {
  color: var(--color-black);
}

.why-neotide-card p {
  margin: 0 .5em .5em 1em;
}

.hur-vi-jobbar-card {
  background: var(--color-1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  text-align: center;
}

.hur-vi-jobbar-card h3 {
  color: var(--color-black);
  margin-top: 2em;
}

.hur-vi-jobbar-card p {
  margin: 0 1em .5em 1em;
}

.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color-2);
  margin-top: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  img {
    width: 80%;
  }
}

.product-card {
  background: var(--color-1);
  padding: 2em;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  & > a {
      text-decoration: none;
  }
  h3 {
      color: var(--color-black);
  }
}

.product-pretitle {
  display: flex;
  justify-content: center;
  p {
      font-size: 1.8em;
      font-weight: bold;
      color: var(--color-5);
      margin: auto auto auto 0;
  }
  div {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      overflow: hidden;
      background-color: var(--color-6);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 1.5em;
      padding: 5px;
      img {
	  width: 100%;
      }
  }
}

.card-indicator {
  background: var(--color-5);
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-90deg);
  transition: transform 0.3s;
}

.card-indicator img {
  width: 1.8em;
  height: auto;
  display: block;
}

.card-link:hover .card-indicator {
  transform: rotate(-90deg) scale(1.1);
}

.card-link {
  position: absolute;
  bottom: 3em;
  right: 2em;
  text-decoration: none;
}

.product-header {
  color: var(--color-dark);
  text-align: center;
  max-width: 600px;
  margin: 0 1em 2em;
  p {
      text-align: center;
  }
}

.product-features-box {
  background-color: var(--color-1);
  border-radius: 12px;
  margin: 0 1em;
  max-width: 1400px;
  min-width: 500px;
  padding: 0 1em 4em;
  @media (max-width: 760px) {
    min-width: 0;
  }
}

.product-features-box h2 {
  text-align: center;
  padding: 1em 0 1em 0;
  font-size: 1.5em;
}

.product-section-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5em;
  background: var(--color-white);
  box-sizing: border-box;
}

.product-image-circle {
    display: flex;
    justify-content: center;
    min-width: 100%;
    img {
	width: 280px;
	height: 280px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
}

.product-text {
    flex: 1 1 60%;
    justify-content: left;
    margin: 0 1em;
    h2 {
	color: var(--color-black);
	font-size: 1.2em;
	margin-bottom: .5em;
    }
    h3 {
	color: var(--color-5);
	font-size: 1.6em;
	margin-bottom: 0.5em;
    }
    p, ul {
	color: var(--color-dark);
	font-size: 1.1em;
	font-family: var(--font-secondary);
	margin: 0 0 2em;
    }
    ul {
	list-style: none;
	padding-left: 0;
	margin-top: 1em;
	li {
	    position: relative;
	    padding-left: 1.5em;
	    margin-bottom: 0.5em;
	}
	li::before {
	    content: "›";
	    color: var(--color-3);
	    position: absolute;
	    left: 0;
	    font-weight: bold;
	}
    }
}

.product-gallery {
  background: var(--color-white);
  padding: 5em 1em 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5em;
}

.product-gallery img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.benefits-section {
  padding: 1em 0 4em 0;
  display: flex;
  flex-direction: column;
  margin: 0 1em;
  p {
      font-weight: bold;
  }
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em 2em;
  @media (max-width: 720px) {
    grid-template-columns: repeat(1, 1fr);
  }
  .check-icon {
    background-color: var(--color-1);
  }
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.check-icon {
  background-color: var(--color-3);
  color: var(--color-black);
  font-weight: bold;
  font-size: 1.2em;
  width: 2em;
  height: 2em;
  display: inline-flex;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 36px;
}

.support-section {
  background: var(--color-1);
  padding: 3em 0;
  text-align: center;
  flex-direction: column;
  h2 {
      font-size: 2em;
      color: var(--color-black);
      font-weight: 400;
  }
}
.support-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2em;
}

.support-column {
  flex: 1 1 30%;
  h3 {
      margin-bottom: 0.2em;
      color: var(--color-black);
      font-weight: lighter;
  }
  a {
      display: block;
      margin-bottom: 1em;
      color: var(--color-5);
      text-decoration: none;
  }
}

.staff-section {
  color: var(--color-dark);
  margin: 2em 1em 0;
  padding: 0 1em 2em;
  text-align: center;
}

.staff-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5em;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 3em;
}

.staff-card {
  flex: 0 1 calc(33.333% - 2em);
  text-align: center;
}

.staff-card-circle-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin: auto;
  box-shadow: 2px 4px 8px var(--color-4);
}

.staff-card-circle-img img {
  width: 100%;
  object-fit: cover;
}

.staff-card h3 {
  color: var(--color-dark);
  margin: 0.5em 0 0.2em;
}

.staff-card a {
  display: inline-block;
  margin-top: 0.3em;
  font-weight: bold;
  color: var(--color-5);
  text-decoration: underline;
}

@media (max-width: 992px) {
  .staff-card {
    flex: 0 1 calc(50% - 2em);
  }
}

@media (max-width: 600px) {
  .staff-card {
    flex: 0 1 100%;
  }
}

.timeline-section {
  background-color: var(--color-5);
  color: var(--color-white);
  flex-direction: column;
  margin-top: 3em;
}

.timeline-section h2 {
    color: var(--color-1);
}

.timeline {
  padding: 0;
  position: relative;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--color-3);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-container {
  padding: 0 40px 10px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid var(--color-3);
  top: 0;
  border-radius: 50%;
  z-index: 1;
}

.timeline-left {
  left: -80px;
}

.timeline-right {
  left: 50%;
}

.timeline-right::after {
  left: -16px;
}

.timeline-content {
  padding: 0;
}

.timeline-content h3 {
    color: var(--color-1);
    padding-top: 4px;
}

.timeline-content img {
  width: 250px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
}

@media screen and (max-width: 800px) {
  .timeline::after {
    left: 31px;
    max-width: 40%;
  }

  .timeline-container {
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-container::before {
    left: 60px;
    border: medium solid var(--color-1);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--color-1) transparent transparent;
  }

  .timeline-content img {
    width: 150px;
    height: auto;
  }

  .timeline-left::before {
    right: unset;
    left: 60px;
  }

  .timeline-left::after, .timeline-right::after {
    left: 15px;
  }

  .timeline-left, .timeline-right {
    left: 0;
    width: 60%;
  }

  .timeline {
    margin-left: 20vw;
  }
}
