.header-section {
  position: relative; /* Ensure the section is the reference point for the absolute positioning */
  width: 100%;
  height: 120vh; /* Adjust this height as needed */
  overflow: hidden; /* Hide any overflow */
}

.header-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75%;
  object-fit: cover; /* Cover the entire section while maintaining the aspect ratio */
  z-index: -1; /* Ensure the image is behind the text */
  filter: grayscale(30%); /* Apply grayscale filter to the image */
}



.header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.header-section h1,
.header-section h4 {
  color: white;
  position: relative;
  z-index: 2;
  margin: 0.5rem 0;
  text-align: center;
  font-size: 8vh;
  align-items: center;
  padding-top: 10%;
}

.header-section h2 {
  color: white;
  position: relative;
  z-index: 2;
  margin: 0.5rem 0;
  text-align: center;
  font-size: 4vh;
}

.tutorial-header {
  color: #045484;
}

.tutorial-header hr {
  width: 200px;
  height: 2px;
  background-color: #045484;
  border: none;
  margin: 0.5em auto;
}

.tutorial-link {
  text-decoration: none;
  color: inherit;
}

.tutorial-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 6.5vw;
  justify-content: center;
  
}

.tutorial-block {
  width: 140px;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 5px solid #045484;
  box-sizing: border-box;
}

.tutorial-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutorial-title {
  width: 100%;
  height: 13vh;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding: 5px;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.tutorial-title:hover {
  background-color: #045484;
}

.rotate {
  animation: rotation 8s infinite linear;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

/* Styles for smaller screens */
@media (max-width: 768px) {
  .header-section {
    height: 50vh;
  }
  
  .header-image img {
    margin: 0;
    padding: 0;
  }

  .header-section h1,
  .header-section h4 {
    font-size: 4vh;
  }

  .header-section h2 {
    font-size: 2.5vh;
  }
}


