* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Sora", sans-serif;
}
html {
  font-size: 62.5%;
}

a {
  text-decoration: none;
  color: rgb(255, 0, 0);
  display: block;
  font-size: 2rem;
}
h2 {
  font-size: 2.5rem;
  text-align: center;
  font-weight: 500;
  padding: 2rem;
  color: white;
}

/* .grid {
  display: grid;
  gap: 9rem;
} */

.Wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem; /* Add some padding around the Wrapper */
  background-image: url(image/bg.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
.Wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background-color: #0e0c0099;

  width: 100%;
  height: 100%;
  z-index: 1;
}
.container {
  max-width: 142rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  gap: 5rem; /* Reduced gap for a more compact layout */
  z-index: 3;
}
.main-box {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  -webkit-border-radius: 1rem;
  -moz-border-radius: 1rem;
  -ms-border-radius: 1rem;
  -o-border-radius: 1rem;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  background-color: crimson;
}
.box {
  /* background-color: red; */
  text-align: center;
}
.box img {
  width: 100%; /* Make image fill the container */
  height: auto; /* Keeps image aspect ratio */
  object-fit: cover; /* Prevents image stretching */
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.grid-three-cols {
  grid-template-columns: repeat(
    3,
    1fr
  ); /* Three columns layout for larger screens */
}

@media only screen and (max-width: 900px) {
  .grid-three-cols {
    grid-template-columns: 1fr 1fr; /* Two columns layout for medium screens */
  }
}

@media only screen and (max-width: 600px) {
  html {
    font-size: 40%;
  }
  .grid-three-cols {
    grid-template-columns: 1fr; /* One column layout for small screens */
  }
}
