.profile {
  width: 100%;
  display: grid;
  grid-template-columns: 40% 1fr;
  padding-left: 3.5rem;
  padding-right: 3.5rem;
  border-radius: 4px;
}

.profile .left {
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-bottom-left-radius: 4px;
}

.profile .left img {
  height: 65vmin;
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 4px;
}

.profile .left .author {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-left: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.social-icons {
  margin-top: 0.5rem;
  display: flex;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
  justify-content: center;
}

.profile .left a {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  padding: 0.5rem;
  background-color: var(--blue);
  border-radius: 4px;
  display: grid;
  place-items: center;
  width: fit-content;
  height: fit-content;
}

.profile .left a:hover {
  background-color: var(--blue-hover);
}

.profile .left a i {
  font-size: 1.2rem;
  color: var(--bg);
}

.favourite-quote {
  font-size: 0.8rem;
  padding: 1.5rem;
  margin: 1rem;
  background-color: var(--bg);
  position: relative;
  border-radius: 4px;
}

.favourite-quote:after {
  content: "\f10d";
  font-family: fontAwesome;
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  color: var(--blue-hover);
}
.favourite-quote::before {
  content: "\f10e";
  font-family: fontAwesome;
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  color: var(--blue-hover);
}

.profile .right {
  width: 100%;
  height: 100%;
  background-color: var(--blue);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.profile .right p {
  max-height: 100%;
  width: 100%;
  overflow-y: auto;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.italic-txt{
  font-style: italic;
  font-weight: bold;
}

.cert{
  align-self: center;
  height: 5rem;
}

@media screen and (max-width: 800px) {
  .profile {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
  }

  .profile .left img {
    height: 65vmin;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
  }

  .profile .left {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }

  .profile .right {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
  }

  .cert{
    height: 10rem;
  }
}

@media screen and (max-width: 700px) {
  .profile {
    
    padding-left: 2.5rem;
    padding-right: 2.5rem;

  }

  .cert{
    width: 70%;
    height: 80%;
  }
}

@media screen and (max-width: 450px) {
  .profile {
    
    padding-left: 0.5rem;
    padding-right: 0.5rem;

  }

  .cert{
    width: 100%;
    height: 70%;
  }
}

@media screen and (max-width: 350px) {

  .profile .left .author {
    font-size: 0.9rem;
  }

  .cert{
    width: 100%;
    height: 80%;
  }

}