.author-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  max-width: 800px; /* Set a max-width to avoid stretching too much */
  margin: 20px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 90%;
  transition: all 0.3s ease;
}

.author-box img {
  border-radius: 50%;
  margin-right: 15px;
  width: 80px; /* Use fixed values for larger screens */
  height: 80px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.author-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.author-info h2 {
  margin: 0;
  font-size: 1.5rem; /* Use rem for scalable yet controlled font size */
  color: #333;
  text-align: left;
  font-weight: bold;
}

.author-info p {
  margin: 5px 0 0;
  font-size: 1rem; /* Use rem for readability and scalability */
  color: #666;
  text-align: left;
  line-height: 1.5;
}

.author-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.author-box:hover img {
  transform: scale(1.1);
}

/* Responsive adjustments for medium screens */
@media (max-width: 1024px) {
  .author-box img {
    width: 70px; /* Adjust for medium screens */
    height: 70px;
  }

  .author-info h2 {
    font-size: 1.4rem;
  }

  .author-info p {
    font-size: 0.9rem;
  }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .author-box {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .author-box img {
    margin-bottom: 15px;
    width: 20vw;
    height: 20vw;
    max-width: 70px; /* Limit the max size */
    max-height: 70px;
  }

  .author-info h2 {
    font-size: 1.6rem; /* Set rem for scalability */
  }

  .author-info p {
    font-size: 1.2rem;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .author-box img {
    width: 25vw;
    height: 25vw;
    max-width: 60px; /* Limit size even more */
    max-height: 60px;
  }

  .author-info h2 {
    font-size: 1.2rem;
  }

  .author-info p {
    font-size: 1rem;
  }
}