/* Book Children List Styles */

.book-children-list {
  margin: 0rem 0;
  padding: 2rem;
  padding-top: 1.2rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.book-children-list h2 {
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #60a5fa;
  color: #334155;
  font-size: 1.5rem;
  font-weight: 600;
}

.book-children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.book-child-item {
  background: white;
  padding: 1.25rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
  position: relative;
}

.book-child-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #0066cc;
  transform: translateY(-2px);
  cursor: pointer;
}

.book-child-item h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
}

.book-child-item h3 a {
  color: #4695f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Make the link cover the entire box */
.book-child-item h3 a::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.book-child-item h3 a:hover {
  color: #004499;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .book-children-grid {
    grid-template-columns: 1fr;
  }
  
  .book-children-list {
    padding: 1.5rem;
  }
}