/* =========================================================
   OUR HISTORY SECTION
========================================================= */

.our_history_section {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: visible;
  background: #0799d5;
  display: flex;
  align-items: center;
  clip-path: polygon(0 15%, 50% 0, 100% 15%, 100% 100%, 0 100%);
}

/* =========================================================
   BACKGROUND IMAGE
========================================================= */

.our_history_section .our_history_background {
  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(rgba(0, 157, 218, 0.86), rgba(0, 157, 218, 0.86)),
    url("/assets/images/nutricos_banner/banner_03.png");

  background-size: cover;

  background-position: center;

  z-index: 0;
}

/* =========================================================
   ANGLED YELLOW TOP BORDER
========================================================= */

/* .our_history_section::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;

  height: 130px;

  background: #ffd000;

    clip-path: polygon(0 15%,
            50% 0,
            100% 15%,
            100% 100%,
            0 100%);

  z-index: 2;
} */

/* =========================================================
   BLUE INNER SHAPE
========================================================= */

.our_history_section::after {
  content: "";

  position: absolute;

  top: 6px;
  left: 0;

  width: 100%;

  height: 130px;

  background: transparent;

  border: none;

  clip-path: polygon(0 95%, 50% 4%, 100% 95%, 100% 100%, 0 100%);

  z-index: 2;

  pointer-events: none;
}

/* =========================================================
   CONTAINER
========================================================= */

.our_history_section .our_history_container {
  position: relative;

  z-index: 3;

  /* padding-top: 115px; */

  /* padding-bottom: 55px; */
}

/* =========================================================
   CONTENT
========================================================= */

.our_history_section .our_history_content {
  width: 100%;

  max-width: 1120px;

  margin: 0 auto;

  color: #ffffff;
}

/* =========================================================
   HEADING
========================================================= */

.our_history_section .our_history_heading {
  text-align: center;

  margin-bottom: 30px;
}

.our_history_section .our_history_heading h2 {
  position: relative;

  display: inline-block;

  margin: 0;

  padding-bottom: 8px;

  color: #ffffff;

  font-size: 40px;

  font-weight: 700;

  line-height: 1.1;
}

/* =========================================================
   YELLOW HEADING UNDERLINE
========================================================= */

.our_history_section .our_history_heading h2::after {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  bottom: 0;
  height: 5px;
  background: #eba06f;
  border-radius: 50%;
  transform: rotate(-1deg);
}

/* =========================================================
   TEXT
========================================================= */

.our_history_section .our_history_text {
  width: 100%;
}

.our_history_section .our_history_text p {
  margin: 0 0 14px;

  color: #ffffff;

  font-size: 17px;

  line-height: 1.48;

  font-weight: 400;
}

.our_history_section .our_history_text strong {
  font-weight: 700;
}

/* =========================================================
   HIGHLIGHTED WORDS
========================================================= */

.our_history_section .history_highlight {
  color: #ff9e5f;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1400px) {
  .our_history_section {
    min-height: 590px;
  }

  .our_history_section .our_history_container {
    max-width: 1200px;

    /* padding-top: 120px; */
  }

  .our_history_section .our_history_text p {
    font-size: 17px;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 991px) {
  .our_history_section {
    min-height: auto;
  }

  .our_history_section::before {
    height: 105px;
  }

  .our_history_section .our_history_container {
    padding-top: 95px;

    /* padding-bottom: 50px; */
  }

  .our_history_section .our_history_heading {
    margin-bottom: 25px;
  }

  .our_history_section .our_history_heading h2 {
    font-size: 34px;
  }

  .our_history_section .our_history_text p {
    font-size: 15px;

    line-height: 1.5;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (min-width: 481px) and (max-width: 767px) {
  .our_history_section {
    min-height: auto;
    clip-path: polygon(0 10%, 50% 0, 100% 10%, 100% 100%, 0 100%);
    padding-top: 30px;
  }

  .our_history_section .our_history_background {
    background-position: center;
  }

  .our_history_section::before {
    height: 75px;

    clip-path: polygon(0 92%, 50% 0, 100% 92%, 100% 100%, 0 100%);
  }

  .our_history_section .our_history_container {
    /* padding-top: 75px;

    padding-left: 20px;
    padding-right: 20px;

    padding-bottom: 40px; */
  }

  .our_history_section .our_history_heading {
    margin-bottom: 22px;
  }

  .our_history_section .our_history_heading h2 {
    font-size: 28px;

    padding-bottom: 7px;
  }

  .our_history_section .our_history_heading h2::after {
    height: 4px;
  }

  .our_history_section .our_history_text p {
    font-size: 15px;

    line-height: 1.55;

    margin-bottom: 15px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (min-width: 0px) and (max-width: 480px) {
  .our_history_section::before {
    height: 60px;
  }

  .our_history_section .our_history_container {
    /* padding-top: 62px; */

    /* padding-bottom: 35px; */
  }

  .our_history_section .our_history_heading h2 {
    font-size: 25px;
  }

  .our_history_section .our_history_text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .our_history_section {
    clip-path: polygon(0 5%, 50% 0, 100% 5%, 100% 100%, 0 100%);
    padding-top: 30px;
  }
}
