* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  font-family: "Space Grotesk", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 90rem;
}

.item {
  border: 1px solid rgba(128, 128, 128, 0.446);
  padding: 40px 30px;
  width: 100%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.icon {
  color: #99776c;
  font-size: 3rem;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.item h3 {
  padding-bottom: 10px;
  transition: all 0.4s ease;
}

.item p {
  font-size: 14px;
  transition: all 0.4s ease;
}

.item:hover {
  background-image: linear-gradient(
      to top,
      rgba(0, 0, 0, 1),
      rgba(166, 124, 109, 0.8)
    ),
    url("https://cdn.thuvienphapluat.vn/uploads/tintuc/2023/03/11/hinh-thuc-hanh-nghe-cua-luat-su.png");
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.item:hover .icon {
  opacity: 0;
  transform: translateY(-40px);
}
.item:hover h3,
.item:hover p {
  transform: translateY(-70px);
}

.learn-more {
  opacity: 0;
  position: absolute;
  top: 90%;
  transition: all 0.4s ease;
  font-size: 12px;
}

.learn-more i {
  margin-left: 6px;
  border: 0.1px solid #fff;
  border-radius: 50%;
  padding: 4px;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

i:hover {
  background: white;
  color: black;
}

.item:hover .learn-more {
  opacity: 1;
  transform: translateY(-70px);
}
