main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main section {
  position: relative;
  width: 100%;
}

#hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("/assets/imgs/detective-tool.jpg") no-repeat center/cover;
  display: flex;
  justify-content: flex-start;
  padding-top: 50%;
  flex-direction: column;
  padding-right: 40px;
  align-items: flex-end;
  text-align: right;
  position: relative;
}

#hero h2 {
  margin-top: 0.5rem;
}

#hero h3 {
  margin-top: 2rem;
}

#hero h4 {
  margin-top: 1rem;
}

#hero .success-progress {
  display: flex;
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  justify-content: center;
  gap: 50px;
}

#hero > div > div {
  color: var(--text-main);
  text-shadow: 1px 1px 2px rgba(255, 0, 0, 0.5);
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#hero .success-progress > div > div > span:first-child {
  display: inline-block;
  padding-right: 5px;
}

section:not(#hero) {
  padding: 20px;
}

#greeting {
  width: 100%;
  background: url("/assets/imgs/greeting-board.jpg") no-repeat center/cover;
}

#greeting > * {
  margin-top: 10px;
}

#greeting h2 {
  margin-top: 10px;
  color: var(--text-main);
}

#greeting h3 {
  width: fit-content;
  background-color: greenyellow;
}

#greeting p {
  margin-top: 20px;
}

.card-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.card {
  flex: 1 1 200px;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card img {
  display: block;
  width: 80px;
  height: 80px;
}

.card > * {
  text-align: center;
}

.cta {
  margin-top: 30px;
  text-align: center;
}

.cta a > span {
  font-size: 1.5rem;
}

.cta a {
  background: #007bff;
  color: var(--text-main);
  padding: 15px 50px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}
