h1,
h2,
h3,
h5,
p,
li,
a {
  font-family: "Comfortaa", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

h1,
h2 {
  font-weight: 700;
}

h3 {
  font-weight: 400;
}

h1 {
  line-height: 1.2;
}

h2 {
  line-height: 1.3;
}

.header {
  background-color: rgba(45, 46, 139, 0.678);
}

.hero {
  background-image: url(./img/office_bg.jpeg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero__title {
  font-size: 2rem;
  color: #ffffff;

  background: linear-gradient(
    to right,
    rgba(30, 93, 155, 0) 0%,
    rgba(124, 126, 221, 1) 30%,
    rgba(30, 93, 155, 0) 130%
  );
  padding: 0.5rem 1rem;
}

.hero__subtitle {
  border-radius: 10%;
  background: linear-gradient(
    to right,
    rgba(30, 93, 155, 0) 0%,
    rgb(186, 207, 228) 10%,
    rgba(30, 93, 155, 0.6) 130%
  );
  padding: 0.3rem 0.8rem;
  margin-top: 0.5rem;
  font-size: 1.4rem;
}

.profession__title {
  text-align: center;
  font-size: 2.1rem;
  line-height: 1.15;
  color: #0f014dad;
  background-color: rgba(124, 126, 221, 0.678);
}

.card-text,
.list-group-item {
  font-size: 0.9rem;
}

.profession__title,
.advice__title {
  position: relative;
  margin-bottom: 2rem;
}

.profession__title::after {
  content: "";
  background-image: url(./img/emoji-with-monocle.png);
  height: 42px;
  width: 42px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 15px;
  position: absolute;
  bottom: 0;
  margin-left: 15px;
}

.advice__title::after {
  content: "";
  background-image: url(./img/emoji-with-wink.png);
  height: 40px;
  width: 40px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 15px;
  position: absolute;
  bottom: 0;
}

.icon {
  height: 150px;
  width: 150px;
  display: block;
  margin: 0 auto 10px auto;
}

.btn {
  background-color: rgba(45, 46, 139, 0.678);
  font-family: "Comfortaa", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background-color: #fff;
  color: inherit;
  font-weight: 900;
}

.card__advice {
  cursor: pointer;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.card .btn {
  width: 100%;
}

.card__advice:hover {
  background-color: rgba(45, 46, 139, 0.678);
  transition: background-color 0.5s ease, color 0.5s ease;
}

.card__advice:hover .card__text,
.card__advice:hover .card__title {
  color: #fff;
}

.card__link {
  text-decoration: none;
  color: inherit;
}

footer {
  background-color: #212529;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
}

.text {
  font-family: "Comfortaa", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

@media (max-width: 576px) {
  .profession__title::after {
    background-image: none;
  }
  .advice__title::after {
    background-image: none;
  }
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.5rem;
  }

  .profession__title {
    font-size: 2.1rem;
  }

  .card-text,
  .list-group-item {
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .hero__title {
    font-size: 56px;
  }
  .hero__subtitle {
    font-size: 1.5rem;
  }
  .profession__title {
    font-size: 42px;
  }

  .profession__title::after {
    height: 48px;
    width: 48px;
  }
  .card-text,
  .list-group-item {
    font-size: 1.1rem;
  }
}
