/* RESET STYLES & HELPER CLASSES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
  --level-1: #8dccad;
  --level-2: #f5cc7f;
  --level-3: #7b9fe0;
  --level-4: #f27c8d;
  --black: black;
}

/* * {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
} */

ol {
  list-style: none;
}

.org_chart_mobile {
  max-width: 1000px;
  padding: 0 10px;
  margin: 0 auto;
  
}

.rectangle {
  position: relative;
  color: #fff !important;
  text-align: center;
  padding: 20px;
  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);
}

.level-1::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}


/* LEVEL-2 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-2-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.level-2-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: var(--black);
}

/* .level-2-wrapper::after {
  display: none;
  content: "";
  position: absolute;
  left: 11px;
  bottom: -20px;
  width: calc(100% + 20px);
  height: 2px;
  background: var(--black);
} */

.level-2-wrapper li {
  position: relative;
}

.level-2-wrapper > li::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

.level-2 {
  width: 70%;
  margin: 0 auto 40px;
  background: var(--level-2);
}

.level-2::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 0px;
  background: var(--black);
}

.level-head::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 50px;
    background: var(--black);
  }

.level-2::after {
  display: none;
  content: "";
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-100%, -50%);
  width: 20px;
  height: 2px;
  background: var(--black);
}

.level-head::after{
    display: none;
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 0px !important;
    height: 2px;
    background: var(--black);
  }


/* LEVEL-3 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-3-wrapper {
  position: relative;
  /* display: grid; */
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 20px;
  width: 100%;
  margin: 0 auto;
}

/* .level-3-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: calc(25% - 5px);
  width: calc(50% + 10px);
  height: 2px;
  background: var(--black);
} */

/* .level-3-wrapper > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 2px;
  height: 20px;
  background: var(--black);
} */

.level-3 {
  margin-bottom: 20px;
  background: var(--level-3);
}


/* LEVEL-4 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-4-wrapper {
  position: relative;
  width: 100%;
  margin-left: auto;
}

.level-4-wrapper::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(100% + 20px);
  background: var(--black);
}

.director-wrapper::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(90% + 20px);
  background: var(--black);
}

.director-wrapper2::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(98.5% + 20px);
  background: var(--black);
}

.director-wrapper3::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(94.5% + 20px);
  background: var(--black);
}



.border-height::before{
    content: "";
    position: absolute;
    top: -51px;
    left: 11px;
    width: 2px;
    z-index: 0;
    /* height:60.2% !important; */
    height: calc(53% + 20px);
    background: var(--black);
  }

.level-4-wrapper li + li {
  margin-top: 20px;
}

.level-4 {
    width: 100%;
    font-weight: normal;
    background: var(--level-4);
}

.level-4::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-100%, -50%);
  width: 20px;
  height: 2px;
  background: var(--black);
}


/* LEVEL-5 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
  

.level-5-wrapper {
    position: relative;
    /* display: grid; */
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 20px;
    width: 100%;
    margin: 0 auto;
  }
 
  .level-5-wrapper::before {
    content: "";
    position: absolute;
    top: -51px;
    left: 11px;
    width: 2px;
    /* height: 77.4% !important; */
    height: calc(77.3% + 11px) !important;
    z-index: 0;
    /* height: calc(100% + 20px); */
    background: var(--black);
}

.level-5::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 20px;
    height: 2px;
    background: var(--black);
}
  
  .level-5 {
    margin-bottom: 20px;
    background: var(--level-3);
  }



/* MQ STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
  .rectangle {
    padding: 20px 10px;
    z-index: 1;
  }

  .level-1,
  .level-2 {
    width: 100%;
  }

  .level-1 {
    margin-bottom: 20px;
  }

  .level-1::before,
  .level-2-wrapper > li::before {
    display: none;
  }
  
  .level-2-wrapper,
  .level-2-wrapper::after,
  .level-2::after {
    display: block;
  }

  .level-2-wrapper {
    width: 100%;
    /* margin-left: 10%; */
  }

  .level-2-wrapper::before {
    left: 11px;
    width: 2px;
    height: calc(9.3% + 40px);
  }

  .level-2-wrapper > li:not(:first-child) {
    margin-top: 50px;
  }

.spacing_org_chart{
    margin-top:40px;
}


#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: #22adc7;
  color: #fff;
  z-index: 2;
}

@media only screen and (max-width: 820px) and (min-width: 769px) {
  .level-2-wrapper::before {
    left: 11px;
    width: 2px;
    height: calc(9.55% + 40px);
}

.level-5-wrapper::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  /* height: 77.4% !important; */
  height: calc(77.4% + 11px) !important;
  z-index: 0;
  background: var(--black);
}

.director-wrapper2::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(98.5% + 20px);
  background: var(--black);
}

.border-height::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  /* height: 60.2% !important; */
  height: calc(54.7% + 20px);
  background: var(--black);
}
.director-wrapper3::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(91% + 20px);
  background: var(--black);
}
.director-wrapper4::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(93% + 20px);
  background: var(--black);
}

}


@media only screen and (max-width: 540px) {
  .level-2-wrapper::before {
    left: 11px;
    width: 2px;
    height: calc(8.87% + 40px);
}

.level-5-wrapper::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  /* height: 77.4% !important; */
  height: calc(76.3% + 11px) !important;
  z-index: 0;
  height: calc(100% + 20px);
  background: var(--black);
}

.director-wrapper2::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(98.5% + 20px);
  background: var(--black);
}

.border-height::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  /* height: 60.2% !important; */
  height: calc(50.9% + 20px);
  background: var(--black);
}
.director-wrapper3::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(86% + 20px);
  background: var(--black);
}
.director-wrapper4::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(91.2% + 20px);
  background: var(--black);
}

}

@media only screen and (max-width: 414px) {
  .level-2-wrapper::before {
    left: 11px;
    width: 2px;
    height: calc(7.6% + 40px);
}

.level-5-wrapper::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  /* height: 77.4% !important; */
  height: calc(75.7% + 11px) !important;
  z-index: 0;
  height: calc(100% + 20px);
  background: var(--black);
}

.director-wrapper2::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(98.9% + 20px);
  background: var(--black);
}

.border-height::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  /* height: 60.2% !important; */
  height: calc(50.9% + 20px);
  background: var(--black);
}
.director-wrapper3::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(86% + 20px);
  background: var(--black);
}
.director-wrapper4::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(92.6% + 20px);
  background: var(--black);
}

}

@media only screen and (max-width: 390px) {
  .level-2-wrapper::before {
    left: 11px;
    width: 2px;
    height: calc(7.05% + 40px);
}

.level-5-wrapper::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  /* height: 77.4% !important; */
  height: calc(74.85% + 11px) !important;
  z-index: 0;
  background: var(--black);
}

.director-wrapper2::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(98.9% + 20px);
  background: var(--black);
}

.border-height::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  /* height: 60.2% !important; */
  height: calc(51.9% + 20px);
  background: var(--black);
}
.director-wrapper3::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(84.5% + 20px);
  background: var(--black);
}
.director-wrapper4::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(91% + 20px);
  background: var(--black);
}

}


@media only screen and (max-width: 375px) {
  .level-2-wrapper::before {
    left: 11px;
    width: 2px;
    height: calc(6.9% + 40px);
}

.level-5-wrapper::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  /* height: 77.4% !important; */
  height: calc(74.5% + 11px) !important;
  z-index: 0;
  height: calc(100% + 20px);
  background: var(--black);
}

.director-wrapper2::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(98.9% + 20px);
  background: var(--black);
}

.border-height::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  /* height: 60.2% !important; */
  height: calc(49.7% + 20px);
  background: var(--black);
}
.director-wrapper3::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(84.5% + 20px);
  background: var(--black);
}
.director-wrapper4::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(92% + 20px);
  background: var(--black);
}

}

@media only screen and (max-width: 360px) {
  .level-2-wrapper::before {
    left: 11px;
    width: 2px;
    height: calc(6.9% + 40px);
}

.level-5-wrapper::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  /* height: 77.4% !important; */
  height: calc(74.5% + 11px) !important;
  z-index: 0;
  height: calc(100% + 20px);
  background: var(--black);
}

.director-wrapper2::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(98.9% + 20px);
  background: var(--black);
}

.border-height::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  /* height: 60.2% !important; */
  height: calc(49.7% + 20px);
  background: var(--black);
}
.director-wrapper3::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(84.5% + 20px);
  background: var(--black);
}
.director-wrapper4::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 11px;
  width: 2px;
  z-index: 0;
  height: calc(92% + 20px);
  background: var(--black);
}

}