.hero-mid {
  width: 100%;
  /* background: url(../images/blogdetails.png);
    background-position: center;
    background-size: cover; */
  height: 80vh;
}

.template-cover {
  width: 100%;
  height: 100%;
  position: relative;
}

.template-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.template-cover h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  color: #fff;
}

 
.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Three columns */
  grid-template-rows: repeat(2, 1fr);
  /* Two rows */
  gap: 0px;
  /* Spacing between images */
  max-width: 100%;
  margin: auto;
  margin-top: 30px;
  margin-bottom: 30px;
}

.image-gallery a {
  overflow: hidden;
  display: none;
  margin-bottom: 0;
}

.image-gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

/* Assign grid areas to each image based on their position */
.image-gallery a:nth-child(1) {
  grid-column: span 2;
  grid-row: span 3;
  /* Spanning two rows */
  height: 603px;
  display: block;
}

.image-gallery a:nth-child(2) {

  display: block;
  height: 201px;
}

.image-gallery a:nth-child(3) {
  display: block;
  height: 201px;
}

.image-gallery a:nth-child(4) {

  display: block;
  height: 201px;
}



/* Hover effect */
.image-gallery a:hover img {
  transform: scale(1.1);
}


.blog-details-main {
  padding: 2% 10%;
}

.blog-details-main span {
  position: relative;
  padding-left: 50px;
}

.blog-details-main span::before, .nas-blog h3::before {
  content: url("../images/horizontal.png");
  position: absolute;
  top: 25%;
  margin-left: -50px;
  transform: translateY(-50%);
}

.blog-details-main h1 {
  font-size: 45px;
  margin: 0;
  letter-spacing: 8px;
  font-weight: 500;
}

.blog-details-main h3 {
  font-weight: 500;
}

.blog-details-main img {
  width: 100%;
  object-fit: cover;

}

.blog-details-main ul li {
  margin: 2vh 0;
}

.blog-details-main ul {
  margin-left: -10px;
}

.blog-details-category {
  color: #222;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #222;
}

.blog-details-category span::before {
  display: none;
}

.blog-details-category span {
  text-transform: uppercase;
  padding: 0;
}

.blog-share {
  display: flex;
  align-items: center;
}

.blog-share img {
  margin: 0 5px;
  height: 25px;
  width: auto;
  padding: 5px;
}

.nas-blog h3 {
  font-weight: 500;
  text-align: left;
  position: relative;
  padding-left: 50px;
}

@media (max-width: 768px) {
  .hero-mid {
    width: 100%;
    background: url(../images/blogdetails.png);
    background-position: center;
    background-size: cover;
    height: 40vh;
  }

  .blog-details-main {
    padding: 2% 5%;
  }

  .blog-details-main span {
    position: relative;
    padding-left: 50px;
  }

  .blog-details-main h3 {
    margin: 0;
  }

  .blog-details-main h1 {
    font-size: 32px;
    margin: 0;
    letter-spacing: 4px;
    font-weight: 500;
  }

  .blog-details-main img {
    width: 100%;
    object-fit: cover;
  }

  .blog-details-main ul li {
    margin: 2vh 0;
  }

  .blog-details-main ul {
    margin-left: -10px;
  }

  .blog-details-category {
    color: #222;
    display: flex;
    align-items: center;
    margin-top: 5vh;
    justify-content: space-between;
    border-bottom: 1px solid #222;
  }

  .blog-details-category span::before {
    display: none;
  }

  .blog-details-category span {
    padding: 0;
  }

  .blog-share {
    display: flex;

    align-items: center;
  }

  .blog-share img {
    margin: 0 5px;
    height: 25px;
    width: auto;
    padding: 5px;
  }

  .nas-blog h3 {
    font-weight: 500;
    text-align: left;
    position: relative;
    padding-left: 50px;
  }

  .image-gallery a:nth-child(4) {
    display: none;
  }

    .image-gallery a:nth-child(1) {
    grid-row: span 2;
    height: 402px;
  }
}

.blog-details-image {
  width: 100%;
  height: 100%;
}

.blog-details-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}