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

body {
  font-family: sans-serif;
}

/* header style */
.header {
  width: 100%;
  display: flex;
  justify-content: center;
}

.inner-header {
  max-width: 64rem;
  width: 100%;
  display: flex;
  padding: 20px 10px;
  justify-content: space-between;
  border-bottom: 2px solid #007adf;
  margin-bottom: 25px;
}

.inner-header p {
  text-transform: capitalize;
  color: transparent;
  background: linear-gradient(to right, #007adf, #4facfe);
  -webkit-background-clip: text;
}

/* main section that contains all cards */
main {
  max-width: 64rem;
  width: 100%;
  text-align: center;
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: center;
}

main > h1 {
  margin: 20px;
  margin-bottom: 40px;
}

/* card style */
.card {
  display: grid;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
}

/* left side of card */
.left {
  overflow: hidden;
  display: flex;

  justify-content: center;
}

.image {
  background-size: cover;
  width: 100%;
  background-position: center center;
  align-items: center;
}

/* right side of card */
.right {
  background-image: linear-gradient(45deg, #007adf, #4facfe);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.right a {
  color: #fff;
  text-decoration: none;
}

.right .description {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 14px;
  height: 70%;
  margin-bottom: 10px;
}

.right .number {
  font-size: 20px;
  color: #eee;
  margin-bottom: 10px;
}

.right button {
  padding: 8px 25px;
  border-radius: 100px;
  border: none;
  background-color: #eee;
}

.right button:hover {
  background-color: #fff;
  cursor: pointer;
  padding: 8px 29px;
  transition: all 0.3s;
}

/* media queries */
@media screen and (max-width: 1030px) {
  main {
    grid-template-columns: 1fr 1fr;
    max-width: 700px;
  }
  .inner-header {
    max-width: 700px;
  }
}

@media screen and (max-width: 720px) {
  main {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .inner-header {
    max-width: 360px;
  }
}
