/* ========== BASE (MOBILE FIRST) ========== */

body {
  margin-bottom: 500px;
}

h1,
h2,
h3 {
  line-height: 1.2rem;
}

h1 {
  margin-top: 4rem; /* reduced for mobile */
}

h2 {
  margin-top: 0.5rem;
}

h3 {
  font-size: 1.3rem;
  /* margin-bottom: 40px; */
  font-weight: 600;
  margin-bottom: 1.1rem;
  font-family: "Roboto Serif", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  max-width: 42ch;
}

h4 {
  font-size: 1.2rem;
  margin: 20px 0;
  font-weight: 600;
}

p {
  margin-bottom: 10px;
  line-height: 1.2rem;
}

ul {
  list-style-type: disc !important;
  padding-left: 20px !important;
  margin-bottom: 10px;
}

li {
  font-family: "Roboto Serif", serif;
  font-weight: 400;
  font-size: 1rem;
}

ul ul {
  list-style-type: circle !important;
}

ul ul ul {
  list-style-type: square !important;
}

.mar-top {
  margin-top: 2.5rem;
}

.margin-wrapper {
  padding: 1.5rem; /* smaller for mobile */
}

/* Layout defaults for mobile */
.flow-row {
  display: flex;
  flex-direction: column;
  /* gap: 20px; */
}

.flow-row div {
  min-width: 0;
  width: 100%;
}

.flow-row div p a {
  overflow-wrap: break-word;
  word-break: break-word;
}

.italics {
  font-style: italic;
  margin: 5px;
}

.flex-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 50px 0;
}

.text-side {
  flex: 1 1 auto;
}

.image-side {
  display: flex;
}

.image-side img {
  max-width: 100%;
  padding-right: 0;
}

.char-limit-half {
  max-width: 75ch;
}

.text-side h4 {
  display: inline;
}

@media (min-width: 768px) {
  h1,
  h2,
  h3 {
    line-height: 1.5rem;
    margin-top: 1.2rem;
  }
  .center-text {
    align-items: center;
  }
  .mar-top-desk {
    margin-top: 1.5rem;
  }
  .flow-row {
    flex-direction: column;
    gap: 20px;
  }
  .img-container {
    /* max-width: 100vw; */
    /* margin: 0 1.4rem; */
  }
  .img-container .flow-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }
  .img-container .flow-row img {
    width: calc(33.3%);
    margin: 0;
    object-fit: cover;
  }
  .img-container .flow-row img {
    width: calc(33.3%);
    margin: 0;
    object-fit: cover;
  }
  .img-container .halfsplit img {
    width: calc(50%);
    margin: 0;
    object-fit: cover;
  }
  .feature_video {
    max-width: 700px;
  }

  .flow-row div {
    width: 600px;
  }

  .text-side {
    flex: 1 1 300px;
    align-content: center;
  }

  .margin-wrapper {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .flow-row {
    flex-direction: row;
    gap: 30px;
  }

  .flow-row div {
    width: 720px;
  }

  .flex-container {
    flex-direction: row;
    align-items: center;
    padding: 100px 0;
  }

  .image-side img {
    max-width: 800px;
    padding-right: 100px;
  }

  h1 {
    margin-top: 10.5rem;
  }
}
