body {
  font-family: 'Segoe UI', sans-serif;
  background: #f8f9fa;
  margin: 0;
}

header {
  background: #0078d7;
  color: white;
  text-align: center;
  padding: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

main {
  padding: 20px;
  text-align: center;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 260px;
  padding: 15px;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.book-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 260px;
  padding: 15px;
}

.book-card img {
  width: 181px;
  height: 279px;
  object-fit: cover; /* keeps aspect ratio while filling the space */
  border-radius: 6px; /* optional: gives a nice rounded look */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* optional: makes cards pop */
}


footer {
  text-align: center;
  padding: 15px;
  background: #0078d7;
  color: white;
}

.admin-section {
  margin: 30px auto;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 95%;
  max-width: 900px;
}

.admin-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.admin-section th, .admin-section td {
  border: 1px solid #ddd;
  padding: 8px;
}

.admin-section th {
  background: #0078d7;
  color: white;
}

.thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

button, a.button {
  background: #0078d7;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover, a.button:hover {
  background: #005fa3;
}

.admin-form input {
  display: block;
  margin: 8px auto;
  width: 80%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.admin-form button {
  margin-top: 10px;
}

.hero {
  background: linear-gradient(to right, #0078d7, #00b4d8);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-text h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.featured {
  margin: 40px auto;
  text-align: center;
}

.card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover .card {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card h3 {
  margin: 10px 0 5px;
  color: #000000;
}

.card p {
  font-size: 0.95rem;
  color: #555;
}

