.hero-section {
    height: 100vh;
  }
  
  .hero-mid {
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10vh;
  }
  
  .hero-mid h1,
  .hero-mid h3 {
    color: #fff;
    margin: 0;
    font-weight: 500;
    letter-spacing: 18px;
    text-transform: uppercase;
  }
  .hero-mid h3 {
    font-size: 18px;
    letter-spacing: 10px;

  }
  .template {
    padding: 0 5%;
    margin-bottom: 10vh;
  }
  .template h2 {
    font-size: 45px;
    font-weight: 500;
  }

  @media (max-width: 1600px) 
  {
    .hero-mid h3 {
      font-size: 16px;
  
    }

    .template h2 {
      font-size: 40px;
    }
  }
  @media (max-width: 1400px) 
  {
    .hero-mid h3 {
      font-size: 14px;
  
    }

    .template h2 {
      font-size: 36px;
    }
  }
  @media (max-width: 1200px) 
  {
    .hero-mid h3 {
      font-size: 12px;
  
    }

    .template h2 {
      font-size: 34px;
    }
  }
  

  .template h3 {
    font-weight: 500;
  }

  .template a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #222;
    font-weight: 500;
  }

  .template a img {
    margin-right: 10px;
  }
  .template  ul li {
    margin: 3vh 0;
  }
  .template  ul  {
    margin-left: -2vh;
  }

  #back {
    display: inline-flex;
    align-items: center;
    position: relative;
    font-size: 24px; /* Adjust font size as needed */
}

@media (max-width: 1600px) 
{
  #back {
    font-size: 22px;
}
}
@media (max-width: 1400px) 
{
  #back {
    font-size: 18px;
}
}
@media (max-width: 1200px) 
{
  #back {
    font-size: 16px;
}
}


#back::before {
    content: url('../images/arrowleft.png');
    display: inline-block;
    margin-right: 8px; /* Adjust spacing between the image and text */
    vertical-align: middle;
}

.gallery {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gallery a {
  display: block;
  width: calc(20% - 4px); /* Adjust based on gutter space */
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.gallery a:hover img {
  transform: scale(1.05);
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Three columns */
  grid-template-rows: repeat(2, 1fr); /* Two rows */
  gap: 10px; /* Spacing between images */
  max-width: 100%;
  margin: auto;
}

.image-gallery a {
  overflow: hidden;
  display: block;
}

.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: 1 / 2;
  grid-row: 1 / 3; /* Spanning two rows */
}

.image-gallery a:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.image-gallery a:nth-child(3) {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.image-gallery a:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.image-gallery a:nth-child(5) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

/* Hover effect */
.image-gallery a:hover img {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    height: 80vh;
  }
  
  .hero-mid {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10vh;
  }
  
  .hero-mid h1,
  .hero-mid h3 {
    color: #fff;
    margin: 0;
    font-weight: 500;
    letter-spacing: 18px;
    text-transform: uppercase;
  }
  .hero-mid h3 {
    font-size: 18px;
    letter-spacing: 10px;

  }
  .template {
    padding: 0 5%;
    margin-bottom: 10vh;
  }
  .template h2 {
    font-size: 35px;
    font-weight: 500;
    letter-spacing: 4px;
  }

  .template h3 {
    font-weight: 500;
  }

  .template a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #222;
    font-weight: 500;
  }
  .template h4 {
    font-size: 18px !important;
  }

  .template a img {
    margin-right: 10px;
  }
  .template  ul li {
    margin: 3vh 0;
  }
  .template  ul  {
    margin-left: -2vh;
  }
  .image-gallery {
      grid-template-rows: auto;
  }
  #pdf {
    scale: 0.7;
  }

}

.template-cover{
    width: 100%;
    height: 755px;
    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;
}