.roof_banner .slider-section {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  /*height: 770px;*/
  position: relative;
}
.roof_banner .slider-section:after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 14, 28, 0.6) 0%, rgba(49, 70, 87, 0) 80%);
    z-index: 1;
}
.roof_banner .slider-content h4 {
  width: 60%;
  font-size: 24px;
  line-height: 1.1;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roof_banner .slider-content h2 {
  width: 100%;
  font-size: 60px;
  line-height: 1.1;
  color: #ffffff;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  /*text-shadow: 2px 2px 2px var(--color-primary);*/
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-align: center;
}

.roof_banner .slider-content p {
  font-size: 26px;
    color: #ffffff;
    font-weight: 400;
    width: 100%;
    margin:50px 0 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    font-family: var(--title-font-family);
    text-align: center;
}

/* slider btn */

.roofing-btn.slider1 {
  margin: 0;
      width: 100%;
    text-align: center;
}

.roofing-btn.slider2 {
  margin-left: 14px;
}

.roofing-btn.slider2 a {
  background: #fff;
  color: #0f0f0f;
}

.roofing-btn.slider2 a:hover{
  color: #ffffff;
}

/* owl nav css */

.roof_banner .slider-section .owl-carousel .owl-dots.disabled,
.roof_banner .owl-carousel .owl-nav.disabled {
  display: block;
}

.roof_banner .owl-nav {
  position: absolute;
  bottom: 41%;
  right: 60px;
}

.roof_banner .owl-prev i {
  width: 62px;
  height: 62px;
  line-height: 62px;
  background: var(--color-primary);
  text-align: center;
  display: inline-block;
  border-radius: 50%;
  color: #ffffff;
  font-size: 24px;
  transition: .5s;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.roof_banner .owl-prev i:hover {
  color: var(--color-primary);
}

.roof_banner .owl-prev i::after {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  right: 0;
  bottom: 0;
  background: #ffffff;
  transform: scale(0);
  border-radius: 50%;
  z-index: -1;
  transition: .5s;
}

.roof_banner .owl-prev i:hover::after {
  transform: scale(1);
}

.roof_banner .owl-next i {
  width: 62px;
  height: 62px;
  line-height: 62px;
  background: #ffffff;
  text-align: center;
  display: inline-block;
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 24px;
  transition: .5s;
  position: relative;
  z-index: 1;
}

.roof_banner .owl-next i:hover {
  color: #ffffff;
}

.roof_banner .owl-next i::after {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  transform: scale(0);
  border-radius: 50%;
  z-index: -1;
  transition: .5s;
}

.roof_banner .owl-next i:hover::after {
  transform: scale(1);
}


@media (min-width: 992px) and (max-width: 1199px) {
  .roof_banner .slider-content h2 {
    font-size: 65px;
    width: 70%;
  }

  .roof_banner .slider-content h4,
  .roof_banner .slider-content p {
    width: 70%;
  }

  .roofing-btn {
    margin-left: 10px;
  }

  .roofing-btn a {
    font-size: 16px;
    padding: 12px 12px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .slider-list.owl-carousel.owl-loaded.owl-drag {
    display: inline-block;
  }

  .roof_banner .slider-section {
    height: 700px;
    display: block !important;
  }

  .roof_banner .slider-content {
    padding: 120px 0 0;
  }

  .roof_banner .slider-content h2 {
    width: 80%;
    font-size: 56px;
  }

  .roof_banner .slider-content h4 {
    width: 80%;
  }

  .roof_banner .slider-content p {
    width: 80%;
    margin: 29px 0 43px;
  }
}

@media only screen and (min-width: 600px) and (max-width: 767px) {
  .slider-list.owl-carousel.owl-loaded.owl-drag {
    display: inline-block;
  }

  .roof_banner .slider-section {
    height: 700px;
    display: block !important;
  }

  .roof_banner .slider-content {
    padding: 80px 0 0px;
  }

  .roof_banner .slider-content h2 {
    width: 85%;
    font-size: 50px;
  }

  .roof_banner .slider-content h4 {
    width: 85%;
  }

  .roof_banner .slider-content p {
    width: 85%;
    margin: 29px 0 43px;
  }

  /* owl nav css */

  .roof_banner .owl-nav {
    right: 8px;
  }

  .roof_banner .owl-prev i {
    width: 55px;
    height: 55px;
    line-height: 55px;
  }

  .roof_banner .owl-next i {
    width: 55px;
    height: 55px;
    line-height: 55px;
  }
}

@media only screen and (min-width: 480px) and (max-width: 599px) {
  .slider-list.owl-carousel.owl-loaded.owl-drag {
    display: inline-block;
  }

  .roof_banner .slider-section {
    height: 700px;
    display: block !important;
  }

  .roof_banner .slider-content {
    padding: 166px 0 0;
  }

  .roof_banner .slider-content h2 {
    width: 89%;
    font-size: 46px;
  }

  .roof_banner .slider-content h4 {
    width: 89%;
  }

  .roof_banner .slider-content p {
    width: 89%;
    margin: 29px 0 43px;
  }

  /* owl nav css */

  .roof_banner .owl-nav {
    right: 8px;
  }

  .roof_banner .owl-prev i {
    width: 50px;
    height: 50px;
    line-height: 50px;
  }

  .roof_banner .owl-next i {
    width: 50px;
    height: 50px;
    line-height: 50px;
  }
}

@media only screen and (max-width: 479px) {
  .slider-list.owl-carousel.owl-loaded.owl-drag {
    display: inline-block;
  }

  .roof_banner .slider-section {
    height: 600px;
    display: block !important;
  }

  .roof_banner .slider-content {
    padding: 110px 0 0;
  }

  .roof_banner .slider-content h2 {
    width: 100%;
    font-size: 28px;
  }

  .roof_banner .slider-content h4 {
    width: 100%;
    font-size: 21px;
    margin-bottom: 24px;
  }

  .roof_banner .slider-content p {
    width: 100%;
    margin: 22px 0 28px;
    font-size: 14px;
    line-height: 20px;
  }

  .roofing-btn.slider1 a,
  .roofing-btn.slider2 a {
    padding: 10px 10px;
    font-size: 14px;
  }

  /* owl nav css */

  .roof_banner .owl-nav {
    right: 50%;
    display: inline-flex;
    bottom: 25px;
    left: 38%;
    margin: auto;
  }

  .roof_banner .owl-prev i {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
  }

  .roof_banner .owl-next i {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    margin-left: 13px;
  }
}


@media screen and (max-width:1600px){

.roof_banner .slider-section {
    height: auto !important;
}
}



@media screen and (max-width:992px){
.roof_banner .slider-content {
    padding: 0;
}.roof_banner .slider-content p {
    margin: 5px 0;    font-size: 16px;  display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}.roof_banner .slider-content h2 {
    font-size: 34px;   display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}.roof_banner .slider-content h4 {
    margin-bottom: 10px;
}.roofing-btn a {
    font-size: 15px;
    padding: 10px;
}.roof_banner .slider-section {
    height: auto !important;
}.box1 {
    top: 30%;
    left: 10%;
}

}
@media screen and (max-width:768px){
.roof_banner .slider-content h2 {
    font-size: 24px;
}.roof_banner .slider-content p {
 font-size: 14px;
}.roofing-btn.slider1 a, .roofing-btn.slider2 a {
    padding: 5px;
    font-size: 12px;
}.roof_banner .slider-content p {
    margin: 2px 0;
}
}


@media(max-width:767px){
  .box1 {
    top: 20%;
    left: 0%;
}
}