/* Varaibles - config */
/* SCSS*/

.org-chart {
  display: block;
  clear: both;
  margin-bottom: 0px;
  position: relative;
  /**
  * For IE 6/7 only
  * Include this rule to trigger hasLayout and contain floats.
  */
  /* Box colors */
  /* 1 column */
  /* 2 column */
  /* 3 column */
  /* DEPARTMENTS COLUMNs */
}
.org-chart.cf:before, .org-chart.cf:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}
.org-chart.cf:after {
  clear: both;
}
.org-chart.cf {
  *zoom: 1;
}
.org-chart ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.org-chart ul li {
  position: relative;
}

.org-chart .lvl-b {
  background: green;
  color: #92D4A8;
}
.org-chart .board {
  width: 70%;
  margin: 0 auto;
  display: block;
  position: relative;
}
.org-chart .board:before {
  content: "";
  display: block;
  position: absolute;
  height: 600px;
  width: 0px;
  border-left: 2px solid #D8D8D8;
  margin-left: 49%;
  top: 15px;
}
.org-chart ul.columnOne {
  height: 90px;
  position: relative;
  width: 100%;
  display: block;
  clear: both;
}
.org-chart ul.columnOne li {
  width: 30%;
  margin: 0px auto;
  top: 20px;
}
.org-chart ul.columnTwo {
  position: relative;
  width: 100%;
  display: block;
  height: 90px;
  clear: both;
}
.org-chart ul.columnTwo li:first-child {
  width: 30%;
  float: left;
}
.org-chart ul.columnTwo li {
  width: 30%;
  float: right;
}
.org-chart ul.columnTwo:before {
  content: "";
  display: block;
  position: relative;
  width: 80%;
  height: 10px;
  border-top: 2px solid #D8D8D8;
  margin: 0 auto;
  top: 40px;
}
.org-chart ul.columnThree {
  position: relative;
  width: 100%;
  display: block;
  clear: both;
}
.org-chart ul.columnThree li:first-child {
  width: 30%;
  float: left;
  margin-left: 0;
}
.org-chart ul.columnThree li {
  width: 30%;
  margin-left: 5%;
  float: left;
}
.org-chart ul.columnThree li:last-child {
  width: 30%;
  float: right;
  margin-left: 0;
}
.org-chart ul.columnThree:before {
  content: "";
  display: block;
  position: relative;
  width: 80%;
  height: 10px;
  border-top: 2px solid #D8D8D8;
  margin: 0 auto;
  top: 40px;
}
.org-chart .head{
	position: relative;
}
.org-chart .head::after{
	content: "";
	 display: block;
	 width: 2px;
	 height: 1rem;
	 background-color: #D8D8D8;
	 bottom: 0rem;
	 left: 50%;
	 position: absolute;
}
.org-chart .departments {
  width: 100%;
  display: flex;
  clear: both;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}
.org-chart .department:before {
 content: "";
  display: block;
  width: 100%;
  height: 0.5rem;
  border-top: 2px solid #D8D8D8;
  margin: 0 auto;
  top: -0.5rem;
  position: absolute;
  z-index: -1;
}
.org-chart .department:first-child:before{
	width: 50%;
	right: 0;
}
.org-chart .department:last-child:before{
	width: 50%;
	left: 0;
}
.org-chart .department {

}
.org-chart .department:after {
  content: "";
  position: absolute;
  display: block;
  width: 10px;
  height: 0.5rem;
  border-left: 2px solid #D8D8D8;
  left: 50%;
  top: -0.5rem;
}
/* .org-chart .department:first-child:after {
  display: none;
}
.org-chart .department:last-child:after {
  display: none;
} */
.org-chart .department.central {
  background: #F5EEC9;
}
.org-chart .department.central:after {
  display: none;
}

.org-chart .department li {
  padding-left: 25px;
  height: 80px;
}

.org-chart .department .sections {
  margin-top: -20px;
}

/* MEDIA QUERIES */
@media all and (max-width: 991px) {
  .org-chart .board {
    margin: 0px;
    width: 100%;
  }
  .org-chart .department {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-bottom: 40px;
  }
  .org-chart .department:before {
    content: "";
    display: block;
    position: absolute;
    width: 15px;
    height: 60px;
    border-left: 2px solid #D8D8D8;
    z-index: 1;
    top: -45px;
    left: 0%;
  }
  .org-chart .department:after {
    display: none;
  }
  .org-chart .department:first-child:before {
    display: none;
  }
}
/*--------- TO BE REMOVED FROM YOUR CSS --*/
/* this is just to display the behaviour of responsive on codepen */
.responsive-content {
  width: 767px;
  margin: 0px auto;
}
.responsive-content .org-chart .board {
  margin: 0px;
  width: 100%;
}
.responsive-content .org-chart .departments:before {
  border: none;
}
.responsive-content .org-chart .department {
  float: none;
  width: 100%;
  margin-left: 0;
  background: #F5EEC9;
  margin-bottom: 40px;
}
.responsive-content .org-chart .department:before {
  content: "";
  display: block;
  position: absolute;
  width: 15px;
  height: 60px;
  border-left: 2px solid #D8D8D8;
  z-index: 1;
  top: -45px;
  left: 0%;
  margin-left: -2px;
}
.responsive-content .org-chart .department:after {
  display: none;
}
.responsive-content .org-chart .department:first-child:before {
  display: none;
}
