body{
  font-family: 'PT Sans', sans-serif;
}

/* Hero Section */
#hero{
  width: 100%;
  height: 50vh;
  background-image: url('/assets/img/hero.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: brightness(70%);
}

/* Homepage Card */
#homepage .card{
  transition: box-shadow .5s ease;
}

#homepage .card:hover{
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

#homepage .card:hover .card-header img{
  transform: scale(1.1);
  filter: brightness(80%);
}

#homepage .card .card-body a{
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0);
  transition : text-decoration-color 0.2s ease;
  color: #000;
}

#homepage .card .card-body a:hover{
  text-decoration-color: rgba(0,0,0,1);
}

#homepage .card .card-header{
  padding: 0;
  overflow: hidden;
  height: 200px;
  width: 100%;
}

#homepage .card .card-header img{
  object-fit: cover;
  object-position: center;
  height: 100%;
  width: 100%;
  transition: all 0.5s ease;
}

#homepage .card .card-body p{
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines to show */
          line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 0.5rem;
}

/* To Top Button */
#toTopBtn.fade:not(.show){
  pointer-events: none;
}

#toTopBtn{
  position: fixed;
  bottom: 0;
  right: 0;
  margin: 2rem;
}

#toTopBtn .btn{
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 20px;
}

#credit{
  padding: .5rem .7rem;
  margin: .5rem;
  position: fixed;
  bottom: 0;
  background-color: rgba(255,255,255,.7);
}

#credit > div{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
}

#credit > div::after{
  content: attr(data-author); ;
  font-size: .8rem;
  font-weight: 600;
  display: block;
}