body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background-color: #ffffff;
  color: #222;
}

.team-header {
  text-align: center;
  background-color: #006d77;
  padding: 50px 20px;
  border-bottom: 4px solid #bbcf32;
}

.team-header h1 {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 10px;
}

.team-header p {
  font-size: 18px;
  color: #e0f7f5;
  margin-top: 0;
}

.books-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* still 3 per row */
  gap: 40px; /* increase gap */
}

.book-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s;
}

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

.book-card img {
  width: 100%;
  aspect-ratio: 2 / 3; /* Keeps consistent proportions, scales with width */
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.book-card h3 {
  font-size: 18px;
  margin-top: 15px;
  color: #333;
}

.book-card p a {
  color: #006d77;
  text-decoration: none;
  font-weight: 600;
}

.back-link {
  text-align: center;
  margin: 50px 0;
}

.back-link a {
  color: #006d77;
  font-weight: 600;
  text-decoration: none;
}

.team-footer {
  text-align: center;
  padding: 20px;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
  font-size: 14px;
}

@media (max-width: 900px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .book-grid {
    grid-template-columns: 1fr;
  }
}

h4 {
  font-size: 16px;
  font-weight: 500;
  color: #555;
  margin-top: -10px;
}

.book-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 15px 0;
}

.book-links a {
  text-decoration: none;
  background-color: #006d77;
  color: white;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s;
  text-align: center;
}

.book-links a:hover {
  background-color: #005760;
}

.book-description {
  font-size: 14px;
  color: #444;
  text-align: left;
  line-height: 1.6;
}

