/* -- What We Do Best */
.what-we-do-best {
  text-align: center;
}
.what-we-do-left {
  position: relative;
  width: 34.75%;
}
.what-we-do-best-left::before {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #ef59a1;
  opacity: 0.15;
}
.what-we-do-right {
  width: 65.25%;
}
.what-we-do-block {
  background-color: #f8f9fa;
  border-right: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
  position: relative;
  display: inline-block;
  width: 100%;
}
.what-we-do-block::after,
.what-we-do-block > img,
.what-we-do-block-content i img,
.what-we-do-block-content h5,
.what-we-do-block p {
  -webkit-transition: all 1s ease 0s;
  -moz-transition: all 1s ease 0s;
  -o-transition: all 1s ease 0s;
  transition: all 1s ease 0s;
}
.what-we-do-block::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #ef59a1;
  opacity: 0;
  border-color: transparent;
}
.what-we-do-block > img {
  opacity: 0;
  position: relative;
}
.what-we-do-block:hover::after {
  opacity: 0.8;
}
.what-we-do-block:hover img {
  opacity: 1;
}
.what-we-do-block-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  -webkit-transform: translate(0%, -50%);
  -moz-transform: translate(0%, -50%);
  -ms-transform: translate(0%, -50%);
  transform: translate(0%, -50%);
  z-index: 1;
  padding: 0 10px;
}
.what-we-do-block-content i {
  display: block;
  margin: 0 auto 10px;
  z-index: 1;
  width: 40px;
  height: 37px;
  overflow: hidden;
  position: relative;
}
.what-we-do-block-content i img {
  position: relative;
  top: 0;
}
.what-we-do-block:hover i img {
  top: -37px;
}
.what-we-do-block-content h5 {
  display: inline-block;
  width: 100%;
  font-size: 13px;
  color: #2a2a2a;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 0;
  z-index: 1;
  position: relative;
}
.what-we-do-block p,
.what-we-do-title .what-we-do-block p,
.what-we-do-title .what-we-do-block:hover p {
  color: #999;
  position: relative;
}
.what-we-do-block:hover h5,
.what-we-do-block:hover p {
  color: #fff;
  z-index: 1;
}
/* -- Title */
.what-we-do-title .what-we-do-block:hover::after {
  display: none;
}
.what-we-do-title .what-we-do-block {
  background-color: #fff;
}
.what-we-do-title .what-we-do-block h3 {
  color: #222;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ## Responsive */
/* -- min-width: 992 to max-width: 1200 */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
  /* -- What We Do Best */
  .what-we-do-title .what-we-do-block h3 {
    font-size: 14px;
  }
  .what-we-do-block-content i,
  .what-we-do-block-content h5 {
    margin-bottom: 5px;
  }
  .what-we-do-block p {
    line-height: 15px;
    font-size: 12px;
  }

  /* -- Department Section */
  .we-are-best {
    padding-left: 30px;
    padding-right: 30px;
  }
  .we-are-best .section-header > p {
    padding-right: 10px;
  }
  .we-are-best-block {
    margin-top: 30px;
  }
  .departments {
    padding-right: 30px;
    padding-bottom: 120px;
  }
  .departments .section-header,
  .departments .panel-group {
    padding-left: 30px;
  }
  .we-are-best-content p {
    padding-right: 14px;
  }
  .departments-bg img {
    padding-bottom: 55px;
  }
}

/* -- min-width: 768 to max-width: 991 */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  /* -- Department Section */
  .we-are-best {
    padding-left: 25px;
  }
  .we-are-best .section-header > p {
    padding-right: 10px;
  }
  .departments {
    padding-right: 25px;
  }
  .departments .section-header,
  .departments .panel-group {
    padding-left: 25px;
  }
  .we-are-best-content p {
    padding-right: 14px;
  }
  .departments-bg img {
    padding-bottom: 130px;
  }
}

/* -- max-width: 767 */
@media (max-width: 767px) {
  .section-header > p {
    padding-right: 15px;
  }
  /* -- What We Do Best */
  .what-we-do-title {
    width: 100%;
  }
  .what-we-do-block-content i,
  .what-we-do-block-content h5 {
    margin-bottom: 5px;
  }
  .what-we-do-block p {
    line-height: 15px;
    font-size: 12px;
  }

  /* -- Department Section */
  .we-are-best {
    padding-left: 20px;
    padding-right: 20px;
  }
  .we-are-best .section-header > p {
    padding-right: 20px;
  }
  .departments {
    padding-right: 20px;
  }
  .departments .section-header,
  .departments .panel-group {
    padding-left: 20px;
  }
  .we-are-best-content p {
    padding-right: 14px;
  }
  .departments-bg img {
    padding-bottom: 130px;
  }
  .departments .panel-img > img {
    max-width: 100px;
  }
  .departments {
    margin-bottom: 100px;
  }
  .departments .panel-body {
    padding-left: 130px;
    padding-right: 0;
  }
  .departments .section-header h3 {
    font-size: 17px;
  }
}

/* -- max-width: 767 */
@media (max-width: 479px) {
  /* -- What We Do Best */
  .what-we-do-right .col-xs-6 {
    width: 100%;
  }
}

/* -- max-width: 991 */
@media (max-width: 991px) {
  /* -- Service Section */
  .service {
    margin-bottom: 30px;
  }

  /* -- What We Do Best */
  .what-we-do-left,
  .what-we-do-right {
    width: 100%;
  }

  /* -- Latest News */
  .latest-news article {
    max-width: 553px;
    margin: 45px auto 0;
    float: none;
  }
  .latest-news article:nth-child(2n + 1) {
    margin-left: auto;
  }
  .latest-news article:nth-child(2n) {
    right: 0;
  }

  /* -- Blog Post */
  .comment-section .media-content .comment-content {
    padding-right: 0;
  }
}
