/* RESET STYLES & HELPER CLASSES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
  --level-1: #8dccad;
  --level-2: #f5cc7f;
  --level-3: #7b9fe0;
  --level-4: #f27c8d;
  --black: black;
}


ul, ol {
    list-style: none; /* Remove default list markers */
    padding-left: 0; /* Remove any default padding */
}

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

ol {
  list-style: none;
}

.structure-container {
  max-width: 1000px;
  /* padding: 0 10px; */
  margin: 20px auto;
  position: relative;
  z-index: -1;
}

.structure-rectangle {
  position: relative;
  padding: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  text-align: center;
  color: #fff;
}
.company-structure-images {
    width: 300px;
    height: 323px;
    object-fit: cover;
    object-position: top;
    filter: grayscale(100%);
}
.exec-captions {
    background: #303642;
    width: 100%;
    height: 40px;
    margin: 0;
    color: #ffffff;
    align-items: center;
    display: flex;
    justify-content: center;
    /* text-align: center; */
    flex-direction: column;
}

/* LEVEL-1 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.structure-level-1 {
  width: 330px;
  margin: 0 auto 40px;
  background: #303642;
  font-size: 20px;
}

.structure-level-1::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 20px;
  background: #2ca65b;
}


/* LEVEL-2 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.structure-level-2-wrapper {
  position: relative;
  display: flex;
  grid-template-columns: repeat(4, 1fr);
  margin: auto;
  width: 100%;
}

.structure-level-2-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 11.5%;
  width: 74%;
  height: 4px;
  background: #2ca65b;
  margin: auto;
  display: flex;
}

.structure-level-2-wrapper::after {
  display: none;
  content: "";
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: calc(100% + 20px);
  height: 4px;
  /* background: #2ca65b; */
}

.structure-level-2-wrapper li {
  position: relative;
  margin: 0 auto;
  width: 100%;
  /* height: 134px; */
}

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

.structure-level-2 {
  /* width: 70%; */
  margin: 0 auto 40px;
  background: #2ca65b;
  min-width: 150px;
  max-width: 150px;
  height: 150px;
  align-items: center;
  display: flex;
  flex-direction: column;
  line-height: 18px;
  justify-content: space-between;
}

.structure-level-2::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 20px;
  background: #2ca65b;
}

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

.structure-level-2a {
  /* width: 70%; */
  margin: 0 auto 40px;
  background: #2ca65b;
  min-width: 150px;
  max-width: 150px;
  height: 150px;
  align-items: center;
  display: flex;
  flex-direction: column;
  line-height: 18px;
  justify-content: space-between;
  left: -8px;
}

.structure-level-2a::before {
  display: none;
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 20px;
  background: #2ca65b;
}

.structure-level-2a::after {
  
  content: "";
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-100%, -50%);
  width: 100px;
  height: 4px;
  background: #2ca65b;
}


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

.structure-level-3-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: calc(25% - 5px);
  width: calc(50% + 10px);
  height: 4px;
  background: #2ca65b;
}

.structure-level-3-wrapper > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 4px;
  height: 20px;
  background: #2ca65b;
}

.structure-level-3 {
  margin-bottom: 20px;
  background: #2ca65b;
  font-size: 11px;
  /* padding: 7px; */
  width: 95%;
  min-width: 92px;
  margin: 0 auto;
  line-height: 14px;
  max-width: 118px;
  height: 60px;
  display: flex;
  align-items: center;
  flex-direction: row;
}



/* LEVEL-3b STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.structure-level-3b-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 5px;
  width: 100%;
  margin: 0 auto;
  left: 0;
}

.structure-level-3b-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: calc(19% - 5px);
  width: calc(64% + 10px);
  height: 4px;
  background: #2ca65b;
  margin: auto;
}

.structure-level-3b-wrapper > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 54%;
  transform: translate(-50%, -100%);
  width: 4px;
  height: 20px;
  background: #2ca65b;
}

.structure-level-3b {
  margin-bottom: 20px;
  background: #2ca65b;
  font-size: 11px;
  /* padding: 7px; */
  width: 95%;
  min-width: 92px;
  margin: 0 auto;
  line-height: 14px;
  max-width: 118px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}



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

.structure-level-4-wrapper::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -18px;
  width: 4px;
  height: calc(50% + 20px);
  background: #2ca65b;
}

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

.structure-level-4 {
  font-weight: bold;
  background: #2ca65b;
  font-size: 11px;
  line-height: 14px;
  position: relative;
  top: 14px;
  margin: 0 auto 40px;
  padding: 5px;
  width: 100px; */
}

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


/* --------------------- Responsive styles -----------------------*/


/* Extra Small Devices (phones) */
@media screen and (max-width:320px) {
  /* Your CSS styles for extra small devices here */
  .structure-level-2::after {
    display: none;
    content: "";
    position: absolute;
    top: 50%;
    left: 3%;
    transform: translate(-100%, -50%);
    width: 75px;
    height: 4px;
    background: #2ca65b;
}
.structure-rectangle {
    position: relative;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    text-align: center;
    color: #fff;
}
.structure-level-3-wrapper {
    position: relative;
    display: grid;
    grid-column-gap: 0px;
    width: 90%;
    left: 3px;
}
.structure-level-2-wrapper {
    width: 80%;
    margin-left: 10%;
}
.structure-level-1, .structure-level-2 {
    width: 94%;
    /* max-width: 291px; */
    left: -2px;
}

.structure-level-3b-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 5px;
    width: 100%;
    margin: 0 auto;
    /* left: -6px; */
}
.structure-level-3-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(23% - 0px);
    width: calc(50% + 0px);
    height: 4px;
    background: #2ca65b;
}
.structure-level-3b-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(19% - 5px);
    width: calc(68% + 10px);
    height: 4px;
    background: #2ca65b;
    margin: auto;
}
.structure-level-2-wrapper li {
    position: relative;
    margin: 0 auto;
    width: 100%;
    /* height: 134px; */
    left: -5px;
}
.structure-level-4-wrapper::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -17px;
    width: 4px;
    height: calc(50% + 20px);
    background: #2ca65b;
}
.structure-level-3b-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(17% - 5px);
    width: calc(65% + 10px);
    height: 4px;
    background: #2ca65b;
    margin: auto;
}
.structure-level-2-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -4.5%;
    width: 4px;
    height: 87%;
    background: #2ca65b;
    margin: auto;
    display: flex;
}
.structure-level-2a::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
    width: 69px;
    height: 4px;
    background: #2ca65b;
}
.structure-level-4::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translate(-100%, -50%);
    width: 20px;
    height: 4px;
    background: #2ca65b;
}






}

/* Extra Small Devices (phones) */
@media screen and (min-width: 321px) and (max-width: 376px) {
  /* Your CSS styles for extra small devices here */
.structure-level-2-wrapper li {
    position: relative;
    margin: 0 auto;
    width: 100%;
    /* height: 134px; */
    left: -5px;
}
.structure-level-3-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(24% - 5px);
    width: calc(49% + 10px);
    height: 4px;
    background: #2ca65b;
}
.structure-level-3b-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(17% - 5px);
    width: calc(65% + 10px);
    height: 4px;
    background: #2ca65b;
    margin: auto;
}
.structure-level-3b-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 5px;
    width: 100%;
    margin: 0 auto;
}

.structure-level-2::after {
    display: none;
    content: "";
    position: absolute;
    top: 50%;
    left: 1%;
    transform: translate(-100%, -50%);
    width: 100px;
    height: 4px;
    background: #2ca65b;
}
.structure-level-2-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -4.5%;
    width: 4px;
    height: 87%;
    background: #2ca65b;
    margin: auto;
    display: flex;
}
.structure-level-4-wrapper::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -4px;
    width: 4px;
    height: calc(50% + 20px);
    background: #2ca65b;
}
.structure-level-2a {
    /* width: 70%; */
    margin: 0 auto 40px;
    background: #2ca65b;
    min-width: 150px;
    max-width: 150px;
    height: 150px;
    align-items: center;
    display: flex;
    flex-direction: column;
    line-height: 18px;
    justify-content: space-between;
    left: -5px;
}
.structure-level-2a::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 1%;
    transform: translate(-100%, -50%);
    width: 100px;
    height: 4px;
    background: #2ca65b;
}
.structure-level-3b-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 5px;
    width: 100%;
    margin: 0 auto;
}



}

/* Small Devices (portrait tablets and large phones) */

@media screen and (min-width: 377px) and (max-width: 426px) {
  /* Your CSS styles for extra small devices here */
.structure-level-2-wrapper li {
    position: relative;
    margin: 0 auto;
    width: 100%;
    /* height: 134px; */
    left: -5px;
}
.structure-level-3-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(24% - 5px);
    width: calc(49% + 10px);
    height: 4px;
    background: #2ca65b;
}
.structure-level-3b-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(17% - 5px);
    width: calc(65% + 10px);
    height: 4px;
    background: #2ca65b;
    margin: auto;
}
.structure-level-3b-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 5px;
    width: 100%;
    margin: 0 auto;
}
.structure-level-2 {
    /* width: 70%; */
    margin: 0 auto 40px;
    background: #2ca65b;
    min-width: 150px;
    max-width: 150px;
    height: 150px;
    align-items: center;
    display: flex;
    flex-direction: column;
    line-height: 18px;
    justify-content: space-between;
    left: -7px;
}
.structure-level-2::after {
    display: none;
    content: "";
    position: absolute;
    top: 50%;
    left: 1%;
    transform: translate(-100%, -50%);
    width: 100px;
    height: 4px;
    background: #2ca65b;
}
.structure-level-2-wrapper::before {
    left: -2px;
    width: 4px;
    height: calc(86% + 12px);
}

.structure-level-4-wrapper::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 5px;
    width: 4px;
    height: calc(50% + 20px);
    background: #2ca65b;
}
.structure-level-2a {
    /* width: 70%; */
    margin: 0 auto 40px;
    background: #2ca65b;
    min-width: 150px;
    max-width: 150px;
    height: 150px;
    align-items: center;
    display: flex;
    flex-direction: column;
    line-height: 18px;
    justify-content: space-between;
    left: -13px;
}
.structure-level-2a::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 1%;
    transform: translate(-100%, -50%);
    width: 100px;
    height: 4px;
    background: #2ca65b;
}
.structure-level-3b-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 5px;
    width: 100%;
    margin: 0 auto;
    left: -7px;
}
.structure-level-2-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 4px;
    height: 87%;
    background: #2ca65b;
    margin: auto;
    display: flex;
}


}





/* Small Devices (portrait tablets and large phones) */

@media screen and (min-width: 427px) and (max-width: 769px) {
  /* Your CSS styles for extra small devices here */
.structure-level-2-wrapper li {
    position: relative;
    margin: 0 auto;
    width: 100%;
    /* height: 134px; */
    left: -5px;
}
.structure-level-3-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(24.5% - 5px);
    width: calc(50% + 7px);
    height: 4px;
    background: #2ca65b;
}
.structure-level-3b-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(18% - 7px);
    width: calc(65% + 16px);
    height: 4px;
    background: #2ca65b;
    margin: auto;
}
.structure-level-3b-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 5px;
    width: 100%;
    margin: 0 auto;
}
.structure-level-2 {
    /* width: 70%; */
    margin: 0 auto 40px;
    background: #2ca65b;
    min-width: 150px;
    max-width: 150px;
    height: 150px;
    align-items: center;
    display: flex;
    flex-direction: column;
    line-height: 18px;
    justify-content: space-between;
    left: -7px;
}
.structure-level-2::after {
    display: none;
    content: "";
    position: absolute;
    top: 50%;
    left: 1%;
    transform: translate(-100%, -50%);
    width: 237px;
    height: 4px;
    background: #2ca65b;
}
.structure-level-2-wrapper::before {
    left: -2px;
    width: 4px;
    height: calc(86% + 12px);
}

.structure-level-4-wrapper::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 48px;
    width: 4px;
    height: calc(50% + 20px);
    background: #2ca65b;
}
.structure-level-2a {
    /* width: 70%; */
    margin: 0 auto 40px;
    background: #2ca65b;
    min-width: 150px;
    max-width: 150px;
    height: 150px;
    align-items: center;
    display: flex;
    flex-direction: column;
    line-height: 18px;
    justify-content: space-between;
    left: -13px;
}
.structure-level-2a::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 1%;
    transform: translate(-100%, -50%);
    width: 234px;
    height: 4px;
    background: #2ca65b;
}
.structure-level-3b-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 5px;
    width: 100%;
    margin: 0 auto;
    left: -11px;
}
.structure-level-2-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -4.5%;
    width: 4px;
    height: 87%;
    background: #2ca65b;
    margin: auto;
    display: flex;
}


}


/* Medium Devices (landscape tablets) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  /* Your CSS styles for medium devices here */
}

/* Large Devices (laptops and desktops) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  /* Your CSS styles for large devices here */
}





/* Extra Large Devices (large laptops and desktops) */
@media screen and (min-width: 1024px) {
  /* Your CSS styles for extra large devices here */
  
  .structure-level-2-wrapper li {
    position: relative;
    margin: 0 auto;
    width: 100%;
    /* height: 134px; */
    left: -5px;
}
.structure-level-3-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(24.5% - 5px);
    width: calc(50% + 4px);
    height: 4px;
    background: #2ca65b;
}
.structure-level-3b-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: calc(18% - 7px);
    width: calc(65% + 10px);
    height: 4px;
    background: #2ca65b;
    margin: auto;
}
.structure-level-3b-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 5px;
    width: 100%;
    margin: 0 auto;
}
.structure-level-2 {
    /* width: 70%; */
    margin: 0 auto 40px;
    background: #2ca65b;
    min-width: 150px;
    max-width: 150px;
    height: 150px;
    align-items: center;
    display: flex;
    flex-direction: column;
    line-height: 18px;
    justify-content: space-between;
    left: -7px;
}
.structure-level-2::after {
    display: none;
    content: "";
    position: absolute;
    top: 50%;
    left: 1%;
    transform: translate(-100%, -50%);
    width: 285px;
    height: 4px;
    background: #2ca65b;
}
.structure-level-2-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 11.5%;
    width: 73.5%;
    height: 4px;
    background: #2ca65b;
    margin: auto;
    display: flex;
}
.structure-level-4-wrapper::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -20px;
    width: 4px;
    height: calc(50% + 20px);
    background: #2ca65b;
}
.structure-level-2a {
    /* width: 70%; */
    margin: 0 auto 40px;
    background: #2ca65b;
    min-width: 150px;
    max-width: 150px;
    height: 150px;
    align-items: center;
    display: flex;
    flex-direction: column;
    line-height: 18px;
    justify-content: space-between;
    left: -13px;
}
.structure-level-2a::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 1%;
    transform: translate(-100%, -50%);
    width: 285px;
    height: 4px;
    background: transparent;
}
.structure-level-3b-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 5px;
    width: 100%;
    margin: 0 auto;
    left: 6px;
}


}






/* MQ STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 769px) {
  .rectangle {
    padding: 20px 10px;
  }

  .structure-level-1,
  .structure-level-2 {
    width: 91%;
    /* max-width: 291px; */
  }

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

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

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



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



}
