body {
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}
a{
  text-decoration: none;
}
main{
  padding: 0 24px;
}

.main-title {
  margin-top: 24px;
  margin-bottom: 24px;
  text-align: left;
}

main .intro{
  margin-bottom: 24px;
  font-size: 1.2rem;
  color: #555;
}

#ranking {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item-link {
  display: block;
  width: 100%;
  color: inherit;
}
.item-link:hover,
.item-link:focus {
  text-decoration: none;
  outline: none;
}

.item-link:hover .item img{
  transform: scale(1.1);

}

/* Optional: make sure cursor is pointer everywhere on the item */
.item-link .item {
  cursor: pointer;
}

/* If you want keyboard accessibility highlight on focus */
.item-link:focus .item {
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.5);
}
.item {
  display: flex;
  width: 100%;
  padding: 20px;
  gap: 20px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #00aaff;
}

.item:hover .ranking-badge {
  background-color: #ff5722;
}

.ranking-badge {
  flex-shrink: 0;
  background-color: #00aaff;
  color: white;
  font-weight: bold;
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.item img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-content h2 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  color: #333;
}

.short-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.8em;
  line-height: 1.6;
  margin-bottom: 10px;
  transition: max-height 0.3s ease;
  color: #555;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .item {
    flex-direction: column;
    align-items: center;
  }

  .item img {
    width: 100%;
    height: auto;
  }

  .ranking-badge {
    position: static;
    margin-bottom: 10px;
  }


}