.section-gray {
  background: #f0f0f0;
}

.section {
  padding: 70px 0;
}

.section-dark, .section-image {
  background: #232323;
  background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #585858), color-stop(100%, #232323));
  background: -webkit-radial-gradient(center, ellipse cover, #585858 0%, #232323 100%);
  background: -webkit-radial-gradient(center ellipse, #585858 0%, #232323 100%);
  background: radial-gradient(ellipse at center, #585858 0%, #232323 100%);
  background-color: #343434;
  background-size: 200% 240%;
  background-size: 550% 450%;
}

.section-dark,
.section-image {
  .hestia-title,
  .title,
  .card-plain .card-title,
  .card-plain .icon i,
  .card-plain [class*="text-"],
  .card-plain ul li b {
    color: #fff;
  }
}

.section-dark,
.section-image {
  .description,
  .card-plain .card-description,
  .card-plain .icon {
    color: #eaeaea;
  }
}

.section-dark,
.section-image {
  .card-plain .category {
    color: rgba(255, 255, 255, 0.5);
  }

}

.section-image {
  position: relative;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  &:after {
    display: block;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    content: "";
  }

  .container {
    position: relative;
    z-index: 2;
  }
}

.section, .section-image {
  background-position: center center;
  background-size: cover;
}

.hestia-features, .features, .products, .hestia-work, .hestia-testimonials, .hestia-blogs, .subscribe-line {
  padding: 65px 0 70px;
}

.wrapper{
  &.classic-blog, &.no-content{
    .title-in-content{
      margin-top: 0;
      margin-bottom: 15px;
    }
    .hestia-blogs{
      padding-top: 40px;
      @media (max-width: 768px) {
        padding-top: 30px;
      }
    }
    .section{
      padding-top: 40px;
      @media (max-width: 768px) {
        padding-top: 30px;
      }
    }
    .before-shop-main{
      margin-top: 0;
      padding-top: 40px;
      @media (max-width: 768px) {
        padding-top: 30px;
      }
    }
  }
}

.image-in-page-wrapper{
  margin-bottom: 20px;
}

.image-in-page{
  margin-bottom: 30px;
}

.about,
.hestia-about {
  padding: 65px 0 30px;
}

.team,
.hestia-team {
  padding: 65px 0 20px;
}

.testimonials,
.hestia-testimonials {
  padding: 65px 0 40px;
}

.contactus {
  padding: 90px 0 70px;
}

.pricing {
  padding: 100px 0 70px;
}

/* Shop section on any page, even when using a shortcode to display the section */
/* Style card-product to be same as WooCommerce archive when less than 3 products per row */
.hestia-shop-content {
  .shop-item.col-ms-6.col-sm-6 {

    text-align: center;

    .card-product {

      width: auto;

      .card-image {
        > a > img {
          max-width: 230px;
        }
      }

      .content {
        max-width: 230px;
        margin-left: auto;
        margin-right: auto;
      }
    }
  }
}

/* White background on shop section when the second layout for card-product is enabled */
body.product-card-style-plain .hestia-shop {
  background-color: #ffffff;
}

@media( min-width: 992px ) {
  // Align items in sections to center.
  .home {
    .hestia-features, .hestia-work, .hestia-team, .hestia-testimonials, #blog.hestia-blogs, .hestia-clients-bar {
      .row {
        text-align: center;
      }
    }
    .feature-box,
    .hestia-work .col-md-4,
    .hestia-testimonials .col-md-4,
    .hestia-work .col-md-6,
    .hestia-team .col-sm-6,
    #blog.hestia-blogs .hestia-blog-item,
    .hestia-clients-bar .col-md-3 {
      display: inline-block;
      float: none !important;
      margin-right: -4px;
      margin-left: -4px;
      vertical-align: top;
    }

    .hestia-blog-item {
      text-align: left;
    }
  }
}
@media( min-width: 768px ) {
  .home {
    section.products .col-md-3.shop-item {
      display: inline-block;
      float: none !important;
      margin-right: -3px;
      margin-left: -2px;
    }
    section.products .row {
      text-align: center;
    }
  }
}
@media( min-width: 480px ) {
  // Align items in sections to center.
  .home {
    .hestia-features,
    .hestia-work,
    .hestia-team,
    .hestia-testimonials,
    #blog.hestia-blogs,
    .hestia-clients-bar {
      .row {
        text-align: center;
      }
    }

    .feature-box,
    .hestia-work .portfolio-item,
    .hestia-testimonials .col-sm-6,
    .hestia-team .col-sm-6,
    #blog.hestia-blogs .hestia-blog-item,
    .hestia-clients-bar .col-md-3 {
      display: inline-block;
      float: none !important;
      margin-right: -4px;
      margin-left: -4px;
      vertical-align: top;
    }
  }
}
@media ( min-width: 481px ) and ( max-width: 991px ) {
  .hestia-shop-content .shop-item.col-sm-6.col-ms-6 {
    text-align: right;
  }
  .hestia-shop-content .shop-item.col-sm-6.col-ms-6:nth-of-type(2n) {
    text-align: left;
  }
}