#section3 {
  box-sizing: border-box; /* Includes padding and border in width/height calculations */
  max-width: 100%; /* Prevents width overflow */
  word-wrap: break-word; /* Breaks long words to fit within the div */
}

#section3 h1 {
  font-size: clamp(50px, 7.7vw + 1rem, 150px);
  margin: 0 0 1% 0;
  padding: 0;
  white-space: nowrap; /* Prevent wrapping */
  font-weight: 900;
}

#section3 h2 {
  font-size: clamp(5px, 0.8vw + 0.8rem, 25px);
}

#section3 .section-content {
  width: 80vw;
  text-align: center;
}

#section3 img {
  width: clamp(100px, 20vw, 300px);
  margin-bottom: 5%;
  border: 3px solid #0da105;
  align-self: center;
  margin-top: auto;
  margin-bottom: auto
}

#section3 p {
  font-size: clamp(5px, 0.45vw + 0.5rem, 18px);
  margin: 0;
  padding: 0 0 2% 0;
}

#section3 .box-container {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  justify-content: space-between; /* Add spacing between boxes */
  overflow-x: auto;
}

#section3 .box {
  background: rgba(29, 29, 29, 0.3);
  border: 3px solid #31f827;
  border-radius: 10px;
  padding: 10px;
  backdrop-filter: blur(10px);
  flex: 0 0 calc(33.33% - 10px); /* 33.33% width to fit 3 boxes per row */
  box-sizing: border-box;
  margin: 5px; /* Adds spacing around the boxes */
  max-width: 400px;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Remove margin on the first and last box, to disable micro scrolling */
#section3 .box31 {
  margin-left: 0;
}

#section3 .box35 {
  margin-right: 0;
}

@media (max-width: 900px) {
  #section3 .section-content {
    width: 95vw;
  }
}

@media (max-width: 450px) {
  #section3 .box {
    flex: 0 0 calc(50% - 10px); /* 50% width for two boxes per row */
  }
}

#section3 .box:hover {
  background-color: #0da105;
  transition: background-color 0.8s;
}

#section3 .box:hover p {
  color: white;
}