/* RESET STYLES & HELPER CLASSES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
  --level-1: #ffffff;
  --level-2: #ffffff;
  --level-3: #ffffff;
  --level-4: #ffffff;
  --gray: black;
}
@media screen and (min-width: 1501px) {
  .org-chart .desktop_orgChart{
    padding: 0 160px !important;
  }
}
@media screen and (max-width: 1500px) {
  .org-chart .desktop_orgChart{
    padding: 0 120px !important;
  }
}
@media screen and (max-width: 1400px) {
  .org-chart .desktop_orgChart{
    padding: 0 80px !important;
  }
}
@media screen and (max-width: 1300px) {
  .org-chart .desktop_orgChart{
    padding: 0 60px !important;
  }
}
@media screen and (max-width: 1300px) {
  .org-chart .desktop_orgChart{
    padding: 0 40px !important;
  }
}
@media screen and (max-width: 1200px) {
  .org-chart .desktop_orgChart{
    padding: 0 20px !important;
  }
}
@media screen and (max-width: 1100px) {
  .org-chart .desktop_orgChart{
    padding: 0 !important;
  }
  .desktop_orgChart .right .level-2{
    width: 115%;
  }
}

.desktop_orgChart{
  transform: scale(0.8);
}

div.h5{
  white-space: nowrap;
}

.org-chart ol {
  list-style: none;
  padding-left: 0;
}

.rectangle {
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.photo{
  background-color: #E2E2E2;
  width: 100%;
}

.photo img{
  width: 100%;
  height: auto;
}

.desc{
  padding:20px 10px;
}

.desc div{
  margin: 0 !important;
}

.open{
  font-size: 2em;
  text-align: right;
}

.none::before{
  background: transparent !important;
}

.accordion .ac-item.ac-active .ac-title:before{
  content: "\ea12" !important;
}

/* LEVEL-1 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-1 {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 40px;
  background: var(--level-1);
}

.level-1::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 20px;
  background: var(--gray);
}
.desktop_orgChart .level-1::before{
  height: 47px;
}

/* LEVEL-2 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-2-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 70% 30%;
}

.level-2-wrapper li.left::after,
.level-2-wrapper li.right::after {
  content: "";
  position: absolute;
  top: -20px;
  width: 50%;
  height: 3px;
  background: var(--gray);
}
.level-2-wrapper li.left::after{
  left: 50%;
}
.level-2-wrapper li.right::after{
  left: 0;
}

.level-2-wrapper::after {
  display: none;
  content: "";
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: calc(100% + 20px);
  height: 3px;
  background: var(--gray);
}

.level-2-wrapper li {
  position: relative;
}
.desktop_orgChart .level-2-wrapper li {
  height: 744.44px;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.desktop_orgChart .level-2-wrapper .right{
  padding-left: 14%;
  padding-right: 11%;
}
.desktop_orgChart .level-2-wrapper .right .ac-title div.h5{
  height: 155px;
}
.level-2-wrapper > li::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--gray);
}
.desktop_orgChart .left::before {
  height: 20px;
}
.desktop_orgChart .right{
  padding-top: 346.5px;
}
.desktop_orgChart .right::before {
  bottom: 54%;
  height: 362px;
}

.level-2 {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 40px;
  background: var(--level-2);
}

.level-2::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 20px;
  background: var(--gray);
}
.desktop_orgChart .level-2::before {
  height: 47px;
}

.level-2::after {
  display: none;
  content: "";
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-100%, -50%);
  width: 20px;
  height: 3px;
  background: var(--gray);
}


/* LEVEL-3 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-3-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 20px;
  width: 100%;
  margin: 0 auto;
}

.level-3-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: calc(16.5% - 5px);
  width: calc(67.5% + 7px);
  height: 3px;
  background: var(--gray);
}

.level-3-wrapper::before{
  width: 0;
}

.left-3::after,
.middle-3::after,
.right-3::after{
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: calc(100%);
  height: 3px;
  background: var(--gray);
}
.left-3::after{
  left: 50%;
}
.right-3::after{
  left: -50%;
}

.level-3-wrapper > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 3px;
  height: 20px;
  background: var(--gray);
}

.level-3 {
  width: 100%;
  max-width: 300px;
  margin-bottom: 20px;
  background: var(--level-3);
}
.desktop_orgChart  p{
  text-align: center;
  margin-top: 10px;
}


/* 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: 3px;
  height: calc(100% + 20px);
  background: var(--gray);
}

.level-4-wrapper li + li {
  margin-top: 20px;
}

.level-4 {
  font-weight: normal;
  background: var(--level-4);
}

.level-4::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-100%, -50%);
  width: 20px;
  height: 3px;
  background: var(--gray);
}


/* mobile verson
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 992px) {
  .mobile_orgChart{
    background-color: white;
  }
  h2.page-heading{
    margin-bottom: 70px !important;
  }
  .mobile_orgChart{
    margin-bottom: 100px;
  }
  .mobile_orgChart .level-1{
    margin-bottom: 134px;
  }
  .Bonnie_close,
  .Wing_close{
    position: absolute !important;
    top: -115px;
    width: 50%;
    right: -10%;
  }
  .Bonnie_close .ac-title div:not(.photo),
  .Wing_close .ac-title div:not(.photo){
    display: none !important;
  }
  .Bonnie_close .ac-title .ac-content,
  .Wing_close .ac-title .ac-content{
    opacity: 0 !important;
  }
  .Bonnie_close .photo>img,
  .Wing_close .photo>img{
    width: 100%;
    height: auto;
  }
  .level-1::before {
    height: 0;
  }
  .level-2-wrapper >.Wing_close::before{
    transform: rotate(90deg) !important;
    left: 30px;
    height: 120%;
    bottom: 0%;
  }
  .Bonnie_close,
  .Wing_close{
    position: absolute !important;
    top: -115px;
    width: 50%;
    right: -10%;
  }
  .Bonnie_close{
    left: -10%;
    z-index: 2;
  }
 .Bonnie_close::before{
    left: 0% !important;
  }
  .Bonnie_close .level-2::before{
    width: 0;
  }
  .Wing_open{
    height: 300px;
  }
  .Wing_open .level-2{
    width: 70%;
  }
  .Wing_open::after{
    content: "";
    position: absolute;
    top: -23%;
    left: 35%;
    transform: translateX(-50%);
    width: 30%;
    height: 3px;
    z-index: 1;
    background: var(--gray);
  }
  @media screen and (max-width: 992px){
    .level-2-wrapper >.Wing_close::before{
      height: 164%;
      top: -42%;
    }
  }
  @media screen and (max-width: 600px){
    .Wing_open::after{
      top: -26%;
    }
    .level-2-wrapper >.Wing_close::before{
      height: 161%;
      top: -48%;
    }
  }
  @media screen and (max-width: 480px){
    .Wing_open::after{
      top: -29%;
    }
    .level-2-wrapper >.Wing_close::before{
      height: 162%;
    }
  }
  @media screen and (max-width: 400px){
    .Wing_open::after{
      top: -33%;
    }
    .level-2-wrapper >.Wing_close::before{
      height: 161%;
    }
  }
  .Bonnie_close .left-3::after,
  .Bonnie_close .middle-3::after,
  .Bonnie_close .right-3::after{
    height: 0px;
  }

  .level-2-wrapper::before {
    display: none;
  }
  .mobile_orgChart .default_level3 .rectangle {
    box-shadow: none;
  }
  .accordion .ac-item .ac-content {
    font-size: 12px;
  }
  .level-2-wrapper > li::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 134px;
    background: var(--gray);
  }
  .level-2-wrapper {
    position: relative;
    display: block;
  }
  .thumb_img>img{
    width: 100%;
    height: auto;
  }
  .desc {
    padding: 0 !important;
  }
  .accordion .ac-item .ac-title {
    margin-right: 0 !important;
  }
  .accordion .ac-item .ac-title:before {
    content: "" !important;
  }
  .accordion .ac-item.ac-active .ac-title:before {
    content: "" !important;
  }
  .ac-content>.photo{
    margin-bottom: 10px !important;
  }
  .accordion .ac-item .ac-title {
    padding-right: 0px !important;
  }
  .ac-title div{
    font-size: 1rem;
  }
  .level-1, .level-2{
    transition: all 300ms;
  }
  .level-1{
    width: 70%;
  }
  .level-2{
    width: 35%;
  }
  ol.carousel{
    grid-template-columns: repeat(1, 1fr);
  }
  ol.carousel .flickity-viewport{
    min-height: 350px !important;
  }
  ol.carousel .polo-carousel-item {
    display: flex;
    justify-content: center;
  }
  ol.carousel li.left-3,
  ol.carousel li.middle-3,
  ol.carousel li.right-3{
    display: flex;
    justify-content: center;
    width: 65%;
  }
  .level-3-wrapper img {
    width: 100%;
  }
  .level-2-wrapper .carousel::before {
    content: "";
    position: absolute;
    width: 3px;
    height: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
  .moblie_level2>li{
    padding-left: 0 7% !important;
  }
  .flickity-button.next,
  .flickity-button.previous{
    top: 45%;
  }
  .expand_level3,
  .default_level3{
    transition: all 300ms;
  }
  .default_level3 li{
    display: flex;
    align-items: center;
  }
  .default_level3 li::before{
    height: 0;
  }
  .mobile_orgChart .default_level3{
    transition: all 300ms;
    padding: 0px 15%;
  }
}

/* for responsive o-chart */



/* FOOTER
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.page-footer {
  position: fixed;
  right: 0;
  bottom: 20px;
  display: flex;
  align-items: center;
  padding: 5px;
}

.page-footer a {
  margin-left: 4px;
}
