   /* Reset and basic styles */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
    }

    html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

    body {
      background-color: #f9f9f9;
      padding: 40px;
      display: flex;
      flex-direction: column;
      align-items: center;
      min-height: 100vh;
    }

    h1 {
      margin-bottom: 40px;
      color: #333;
      font-size: 2.5rem;
    }

    /* Container for cards */
    .card-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
      gap: 30px;
      width: 100%;
      max-width: 1000px;
    }

    /* Individual card */
    .card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  display: block;
  height: 200px;
}

.card-content {
  padding: 16px;
  text-align: center;
}

.card-content h2 {
  margin: 10px 0;
  font-size: 1.4rem;
}

.card-content button {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
}

.card-content button:hover {
  background: #0056b3;
}

/* Author section at the bottom */
.card-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.card-author img.author-img {
  width: 40px;          /* or 32px for smaller */
  height: 40px;
  border-radius: 50%;   /* makes it circular */
  object-fit: cover;    /* ensures the image doesn’t distort */
  flex-shrink: 0;       /* prevents shrinking in flex container */
}
