
:root {
    --level-1: #e8c663;
    --level-2: #f5cc7f;
    --level-3: #15aecd;
    --level-4: #1476b7;
    --black: #1476b7;
  }

  * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }


  ol {
    list-style: none;
  }
  ol, ul{
      padding-left: 0px;
  }

  /* body {
    margin: 50px 0 100px;
    text-align: center;
    font-family: "Inter", sans-serif;
  } */

  .container {
    /* max-width: 1000px; */
    padding: 0 10px;
    margin: 0 auto;
  }

  .rectangle {
    position: relative;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  }


  /* LEVEL-1 STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .level-1 {
    width: 50%;
    margin: 0 auto 40px;
    background: var(--level-1);
    color: #000000;
    /* border: 1px solid #333; */
    text-align: center;
  }

  .level-1::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 55px;
    background: var(--black);
  }

  .level-1-1 {
    width: 45%;
    margin: 0 auto 40px;
    background: var(--level-1);
    color: #000000;
    /* border: 1px solid #333; */
    text-align: center;
  }

  .level-1-1::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 55px;
    background: var(--black);
  }


  /* LEVEL-2 STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .level-2-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  .level-2-1-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    top: -63px;
  }

  .level-2-wrapper::before{
    content: "";
    position: absolute;
    top: -20px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--black);
  }

  .level-2-1-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 16.7%;
    width: 66.7%;
    height: 2px;
    background: var(--black);
  }

  .level-2-wrapper::after, .level-2-1-wrapper::after {
    display: none;
    content: "";
    position: absolute;
    left: -20px;
    bottom: -20px;
    width: calc(100% + 20px);
    height: 2px;
    background: var(--black);
  }

  .level-2-wrapper li, .level-2-1-wrapper li {
    position: relative;
    padding-right: 10px;
  }

  .level-2-wrapper > li::before, .level-2-1-wrapper > li::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: var(--black);
  }

  .level-2 {
    width: 35%;
    margin: 0 auto 40px;
    background: var(--level-2);
    text-align: center;
  }

  .level-2::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 192px;
    background: var(--black);
  }

  .level-2::after {
    display: none;
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 20px;
    height: 180px;
    background: var(--black);
  }

  .level-left {
    position: relative;
    right: 330px;
    width: 22%;
    margin: 0 auto 40px;
    background: #1476b7;
    text-align: center;
    font-size: 1.2rem;
    padding: 12px;
    color: #ffffff;
  }

  .level-left::before {
    content: "";
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(25px, -50%);
    width: 306px;
    height: 2px;
    background: repeating-linear-gradient(to right,var(--black) 0,var(--black) 10px,transparent 10px,transparent 12px);
    background-size:100% 2px;
    background-repeat:
    no-repeat;
  }

  .level-left::after {
    display: none;
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 20px;
    height: 2px;
    background: var(--black);
  }


  /* LEVEL-3 STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .level-3-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 20px;
    width: 90%;
    margin: 0 auto;
    top: -63px;
  }

  .level-3-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--black);
  }

  .level-3-wrapper::after {
    display: none;
    content: "";
    position: absolute;
    left: -20px;
    bottom: -20px;
    width: calc(100% + 20px);
    height: 2px;
    background: var(--black);
  }

  .level-3-wrapper > li::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: var(--black);
  }

  .level-3 {
    margin-bottom: 20px;
    background: var(--level-3);
    min-height: 105px;
    color: #fff;
    text-align: center;
  }


  /* LEVEL-4 STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .level-4-wrapper {
    position: relative;
    width: 80%;
    margin-left: auto;
  }

  .level-4-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 2px;
    height: calc(100% + 20px);
    background: var(--black);
  }

  .level-4-wrapper li{
    padding-right:0;
  }

  .level-4-wrapper li + li {
    margin-top: 20px;
  }

  .level-4 {
    font-weight: normal;
    background: var(--level-4);
    color: #fff;
    text-align: center;
  }

  .level-4-wrapper p{
    font-size: 1rem !important;
    text-align: center;
  }

  .level-4::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 20px;
    height: 2px;
    background: var(--black);
  }


  .level-2-left {
    position: relative;
    right: 330px;
    width: 22%;
    margin: 0 auto 40px;
    background: #1476b7;
    text-align: center;
    font-size: 1.2rem;
    padding: 12px;
    color: #ffffff;
  }

  .level-2-left::before {
    content: "";
    position: absolute;
    top: 44%;
    left: 91%;
    transform: translate(25px, -50%);
    width: 190px;
    height: 2px;
    background: repeating-linear-gradient(to right,var(--black) 0,var(--black) 10px,transparent 10px,transparent 12px);
    background-size:100% 2px;
    background-repeat:
    no-repeat;
  }

  .level-2-right {
    position: relative;
    left: 330px;
    width: 22%;
    margin: 0 auto 40px;
    background: #ba921a;
    text-align: center;
    font-size: 1.2rem;
    padding: 12px;
    color: #ffffff;
    bottom: 90px;
  }

  .level-2-right::before {
    content: "";
    position: absolute;
    top: 65%;
    left: -76%;
    transform: translate(25px, -50%);
    width: 190px;
    height: 2px;
    background: var(--black);
    background-size:100% 2px;
    background-repeat:
    no-repeat;
  }
  .level-2-right::after {
    display: none;
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 20px;
    height: 2px;
    background: var(--black);
  }
.lv-3{
    font-size: 1.4rem;
    margin: auto;
    align-self: center;
}
  /* MQ STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  @media screen and (min-width: 1200px) and (max-width:1390px) {
    .level-2-left::before{
        width: 205px;
    }
    .level-2-right::before{
        left: -233px;
        width: 208px;
    }
    .level-2-1-wrapper{
        top: -95px;
    }

  }

  @media screen and (min-width: 701px) and (max-width:1199px) {
    .level-2::before{
        height: 202px;
    }
    .level-1-1{
        width: 90%;
    }
    .level-2{
        width: 80%;
    }
    .level-2-left{
        right: 152px;
        width: 200px;
    }
    .level-2-left::before{
        width: 44px;
    }
    .level-2-right{
        left: 150px;
        width: 200px;
    }
    .level-2-right::before{
        left: -75px;
        width: 51px;
    }

  }

  @media screen and (max-width: 700px) {
    .level-2::before{
        height: 230px;
    }
    .rectangle {
      padding: 20px 10px;
    }

    .level-1, .level-2, .level-1-1 {
      width: 100%;
    }

    .level-left {
        width: 30%;
        right: 108px;
    }

    .level-left::before{
        width: 84px;
    }

    .level-2-left {
        width: 40%;
        right: 25%;
    }

    .level-2-left::before{
        width: 16px;
    }

    .level-2-right {
        width: 40%;
        left: 25%;
    }

    .level-2-right::before{
        width: 27px;
        left: -48px;
    }

    .level-1 {
      margin-bottom: 20px;
    }

    .level-1::before,
    .level-2-wrapper > li::before, .level-2-1-wrapper > li::before {
      display: none;
    }

    .level-2-wrapper, .level-2-wrapper::after, .level-2-1-wrapper, .level-2-1-wrapper::after {
      display: block;
    }

    .level-2-wrapper, .level-2-1-wrapper {
      width: 90%;
      margin-left: 10%;
    }

    .level-2-wrapper::before, .level-2-1-wrapper::before {
      left: -20px;
      width: 2px;
      height: calc(100% + 40px);
    }

    .level-2-wrapper > li:not(:first-child), .level-2-1-wrapper > li:not(:first-child) {
      margin-top: 50px;
    }
}

