/* Shared styles for all pages */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #4f46e5;
  padding: 1rem 2rem;
  color: white;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 600;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  text-decoration: underline;
}

.hero {
  background: url('https://images.unsplash.com/photo-1524985069026-dd778a71c7b4') center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: white;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  background: #4338ca;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #3730a3;
}

.section {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: auto;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.book-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
}

.book-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.book-card .info {
  padding: 1rem;
}

footer {
  text-align: center;
  background: #1f2937;
  color: white;
  padding: 2rem 1rem;
}

.page-header {
  text-align: center;
  padding: 3rem 1rem;
  background: #f3f4f6;
}

.contact-form {
  max-width: 600px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.contact-form button {
  cursor: pointer;
}
