@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100&subset=latin,latin-ext);

body, input, textarea, select, button {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  hyphens: auto;
}

*{
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
  font-family: 'Roboto', sans-serif;
}

.cf:before,
.cf:after {
    content: " ";
    display: table;
}

.cf:after {
    clear: both;
}

.cf {
    *zoom: 1;
}

body{
  background: url("../img/giresun-img-1.jpg");
}

.content{
  width: 100%;
  max-width: 1142px;
  margin: 0 auto;
  padding: 0 20px;
}

.content>h1 {
  color: #F6F6F6;
  display: block;
  width: 100%;
  text-align: center;
  margin: 5% 0 5% 0;
  font-weight: 700;
  letter-spacing: 2px;
}

.content>h1>span {
  font-weight: 100;
  display: block;
  margin-top: 1%;
  letter-spacing: 0px;
  font-size: 30px;
}

a:focus{
  outline: 1px solid #D3D3D3;
}

@media all and (max-width: 767px){
  .content{
    padding: 0 20px;
  } 
}

ul{
  padding: 0;
  margin: 0;
  list-style: none;   
}

ul a{
  display: block;
  background: #09b1ba;
  text-align: center;
  overflow: hidden;
  font-size: 0.8em;
  text-decoration: none;
  font-weight: bold;
  color: #f6f6f6;
  height: 70px;
  margin-bottom: -26px;
  box-shadow: 4px 4px 9px -4px rgba(0,0,0,0.4);
  -webkit-transition: all linear .1s;
  -moz-transition: all linear .1s;
  transition: all linear .1s;
  line-height: 1.6em;
}

@media all and (max-width: 767px){
  ul a{
    font-size: 1em;
  }
}

ul a span{
  top: 50%;
  margin-top: -0.7em;
  display: block;
}

.administration > li > a{
  margin-bottom: 25px;
}

.director > li > a{
  width: 50%;
  margin: 0 auto 0px auto;
  font-size: 1.3em;
  line-height: 1.6em;
}

.director > li > a:hover{
  background: #ed9553;
  color: #f6f6f6;
}

.subdirector:after{
  content: "";
  display: block;
  width: 0;
  height: 60px;
  background: red;
  border-left: 1px solid #09B1BA;
  left: 50%;
  position: relative;
}

.subdirector,
.departments{
  position: absolute;
  width: 100%;
}

.subdirector > li:first-child,
.departments > li:first-child{  
  width: 18.59894921190893%;
  height: 64px;
  margin: 0 auto 20px auto;   
  padding-top: 25px;
  z-index: 1; 
}

.subdirector > li:first-child{
  float: right;
  right: 27.2%;
}

.departments > li:first-child{  
  float: left;
  left: 27.2%;
}

.subdirector > li:first-child a,
.departments > li:first-child a{
  width: 100%;
}

.subdirector > li:first-child a{  
  left: 25px;
}

@media all and (max-width: 767px){
  .subdirector > li:first-child,
  .departments > li:first-child{
    width: 40%; 
  }

  .subdirector > li:first-child{
    right: 10%;
    margin-right: 2px;
  }

  .subdirector:after{
    left: 49.8%;
  }

  .departments > li:first-child{
    left: 10%;
    margin-left: 2px;
  }
}

.departments > li:first-child a{
  right: 25px;
}

.department:first-child,
.departments li:nth-child(2){
  margin-left: 0;
  clear: left;  
}

/* DEPARTMENTS:AFTER - YATAY ÇİZGİLER */
.departments:after{
  content: "";
  display: block;
  position: absolute;
  height: 23px;
  border-top: 1px solid #09B1BA;
  border-right: 1px solid #09B1BA;
  border-left: 1px solid #09B1BA;
  top: 60px;

  /* JS bunları px olarak set edecek; set edilmezse güvenli varsayılanlar */
  left: var(--line-left, 0px);
  width: var(--line-width, 100%);
}



/* 4 NODE İÇİN */
.departments.departments-4:after {
  left: 43.2%;
  width: 98.4%;
}

/* 5 NODE İÇİN */
.departments.departments-5:after {
  left: 56.3%;
  width: 43.7%;
}

@media all and (max-width: 767px){
  .departments:after{
    border-right: none;
    left: 0;
    width: 49.8%;
  }  
}

@media all and (min-width: 768px){
  .department:first-child:before {
    display: none;
  }
   .department:last-child:before{
    border:none;
  }
}

/* DEPARTMENT GENIŞLIK VE MARGIN - NODE SAYISINA GÖRE */

/* 3 NODE DURUMU */
.departments.departments-3 .department {
  width: 26%;
  margin-left: 5.5%;
}

/* 5 NODE DURUMU */
.departments.departments-5 .department {
  width: 16%;
  margin-left: 2%;
}

.department:before{
  content: "";
  display: block;
  position: absolute;
  width: 0;
  height: 24px;
  border-left: 1px solid #09B1BA;
  z-index: 1;
  top: -24px;
  left: 51%;
  margin-left: -4px;
}

.department{
  border-left: 1px solid #09B1BA;
  width: 18.59894921190893%;
  float: left;
  margin-left: 8%;
  margin-bottom: 60px;
}

.lt-ie8 .department{
  width: 18.25%;
}

@media all and (max-width: 767px){
  .department{
    float: none;
    width: 100%;
    margin-left: 0;
  }

  .department:before{
    content: "";
    display: block;
    position: absolute;
    width: 0;
    height: 60px;
    border-left: 1px solid #09B1BA;
    z-index: 1;
    top: -60px;
    left: 0.5%;
    margin-left: -4px;
  }

  .department:nth-child(2):before{
    display: none;
  }
}

.department > a{
  margin: 0 0 -26px -1px;
  z-index: 1;
}

.department > a:hover{  
}

.department > ul{
  margin-top: 0px;
  margin-bottom: 0px;
}

.department li{ 
  padding-left: 25px;
  border-bottom: 1px solid #09B1BA;
  height: 80px; 
}

.department li a{
  background: #E2E2E2;
  top: 48px;  
  position: absolute;
  color: #068a92;
  z-index: 1;
  width: 90%;
  height: 60px;
  vertical-align: middle;
  right: -1px;
}

.department li a:hover{
  box-shadow: 8px 8px 9px -4px rgba(0,0,0,0.1);
  background: #ed9553;
  color: #f6f6f6;
}
