/*====================styling for template====================*/

.template {
  height: 400px;
  width: 100%;
  margin-top: -20px;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-header {
  margin-top: 4px;
  height: 400px;
  width: auto;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(31, 30, 30, 0.5),
    rgba(31, 30, 30, 0.8),
    rgba(31, 30, 30, 1)
  );
}
.hero-header h1 {
  color: white;
  font-weight: 600;
  font-size: 40px;
  font-family: montserrat;;
  margin-top: 90px;
}
.hero-header h2 {
  color: white;
  font-size: 30px;
  font-weight: 300;
}
@media only screen and (max-width: 768px) {
  .template {
    height: 300px;
  }

  .hero-header h1 {
    font-size: 30px;
    margin-top: 60px;
  }
  .hero-header h2 {
    font-size: 18px;
  }
}
/*====================styling for topics===================*/

.blog-topics {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 20px;
}
.topics-det {
  height: 70px;
  width: 200px;
  border-radius: 10px;
  margin: 10px;
  background: linear-gradient(180deg, red, black);
}
.topics-det h1 {
  color: white;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  margin-top: 10%;
}
.topics-det:hover {
  background: linear-gradient(180deg, black, red);
}
@media only screen and (max-width: 768px) {
  .blog-topics {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .topics-det {
    height: 30px;
    width: 62px;
    border-radius: 2px;
    margin: 2px;
  }
  .topics-det h1 {
    font-size: 10px;
    margin-top: 10%;
  }
}
/*====================styling for trending blog====================*/
.trending-head h1 {
  text-align: center;
  color: red;
  font-size: 35px;
  font-weight: bold;
  margin-top: 60px;
}
.trending-head hr {
  height: 2px;
  width: 80%;
  margin-left: 10%;
  margin-top: 1px;
  align-self: center;
  color: black;
}
.carousel-inner {
  height: 50vh;
}
.carousel-inner img {
  width: 50%;
  height: 50vh;
}
.carousel-caption h5 {
  margin-right: -550px;
  font-size: 40px;
  font-weight: bold;
  color: black;
}
.carousel-caption h4 {
  color: black;
  font-size: 20px;
  font-weight: lighter;
  margin-right: -550px;
}
.carousel-caption h1 {
  opacity: 0;
  font-size: 1px;
}
.btn {
  margin-right: -550px;
}
@media only screen and (max-width: 768px) {
  .trending-head h1 {
    font-size: 25px;
    margin-top: 30px;
  }
  .carousel-inner img {
    width: 100%;
  }
  .carousel-caption {
    width: auto;
    height: auto;
    background: rgba(31, 30, 30, 0.4);
  }
  .carousel-caption h5 {
    margin-right: 8px;
    margin-top: 50px;
    font-size: 25px;
    color: white;
  }
  .carousel-caption h4 {
    margin-right: 8px;
    font-size: 17px;
    color: white;
  }
  .carousel-caption h1 {
    font-size: 0px;
  }
  .btn {
    margin-right: 8px;
  }
}
/*====================styling for other blogs====================*/

.all-blogs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 50px;
  margin-top: 50px;
  justify-content: center;
}
.all-blogs-inner {
  height: 400px;
  width: 18%;
  margin: 10px;
  background: rgba(31, 30, 30, 0.2);
  border-radius: 20px;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}
.all-blogs-inner img {
  height: 60%;
  width: 100%;
  border-radius: 50%;
  transition: 0.5s;
}
.all-blogs-inner:hover img {
  border-radius: 0px;
}
.all-blogs-det h1 {
  font-size: 20px;
  text-align: center;
}
.all-blogs-det h2 {
  font-size: 15px;
  font-weight: 350;
  text-align: center;
  margin: 10px;
}
.all-blogs-det {
  margin-top: -50px;
}
.all-blogs-det button{
  font-size: 15px;
  line-height: 35px;
  text-decoration: none;
  color: white;
  background: black;
  height: auto;
  width: 110px;
  border-radius: 5px;
  margin-left: 65px;
}
@media only screen and (max-width: 768px) {
  .all-blogs {
    margin-bottom: 25px;
    margin-top: 25px;
  }
  .all-blogs-inner {
    height: auto;
    width: 100%;
    margin: 5px;
    background: none;
    border-radius: 10px;
    display: flex;
    background: rgba(31, 30, 30, 0.2);
  }
  .all-blogs-inner img {
    height: 140px;
    width: 140px;
    border-radius: 50%;
    margin-bottom: 1px;
  }
  .all-blogs-inner:hover img {
    border-radius: 0px;
    height: 140px;
    width: 140px;
  }
  .all-blogs-det h1 {
    margin-left: 10px;
  }
  .all-blogs-det h2 {
    margin-left: 10px;
  }
  .all-blogs-det {
    margin-top: 0px;
  }
  .all-blogs-det button{
    font-size: 15px;
    line-height: 25px;
    width: 100px;
    margin-left: 50px;
  }
}


/*====================styling for single blog details===================*/

.blog-details h1{
  font-size: 30px;
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
}
.blog-details img{
  width: 100%;
  height: 70vh;
}
.blog-details p{
  margin-top: 20px;
  width: 90%;
  margin-left: 5%;
}
.share-blog{
  display: flex;
  justify-content: center;
}
.share-blog h2{
  font-size: 15px;
  transform: translateY(7px);
}
.share-blog i{
  font-size: 18px;
  margin: 8px;
}
.share-blog i:hover{
  color: red;
}
.blog-det-image {
  display: flex;
  justify-content: center;
  width: 100%;
}
.blog-det-image img{
  width: 35%;
  height: 250px;
  margin: 20px;
}
@media only screen and (max-width: 768px) {
  .blog-details img{
    height: 35vh;
    margin-top: -10px;
  }
  .blog-details h1{
    font-size: 20px;
  }
  .blog-det-image img{
    width: 45%;
    height: 180px;
    margin: 5px;
  }
  
}


/*related products in blog page*/
.blog-products{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}
.blog-product-card{
  height: 300px;
  width: 200px;
  border-radius: 10px;
  margin: 10px;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}
.blog-product-card img{
  height: 65%;
  width: 100%;
  border-radius: 10px 10px 0px 0px;
}
.blog-product-card h1{
  font-size: 18px;
  color: black;
  font-weight: 400;
  text-align: left;
  margin: 10px;
}
.blog-product-card h2{
  color: red;
  font-size: 20px;
  margin: 10px;
}
@media only screen and (max-width: 768px) {
  .blog-product-card{
    height: 250px;
    width: 140px;
    margin: 5px;
  }
}