/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto+Slab:wght@400;700&display=swap');

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222;
  min-height: 100vh;
  /* Remove gradient or set to white for consistency */
  background: #fff;
}

#root, .site-wrapper {
  min-height: 100vh;
  background: #fff;
}

header.hero {
  background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  color: #fff;
  padding: 5rem 1rem 3rem 1rem;
  text-align: center;
  position: relative;
  min-height: 420px;
  box-shadow: 0 4px 32px #0003;
}

header.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, #003366cc 60%, #0055aacc 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 4px 24px #00336688;
  margin-bottom: 1.2rem;
}

.hero-content h1 {
  font-size: 2.7rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  font-family: 'Roboto Slab', serif;
}

.hero-content p {
  font-size: 1.3rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

nav {
  background: #fff;
  color: #003366;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.1rem 0 1.1rem 0;
  box-shadow: 0 2px 8px #00336622;
  font-size: 1.1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a {
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: #0055aa;
  border-bottom: 2px solid #0055aa;
}

main {
  background: #fff;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  min-height: 60vh;
  border-radius: 18px;
  box-shadow: 0 6px 32px #00336618;
  margin-top: -3.5rem;
  margin-bottom: 2rem;
  max-width: 900px;
  position: relative;
  z-index: 1;
  margin-left: auto;
  margin-right: auto;
}

.cta-section {
  background: linear-gradient(90deg, #003366 60%, #0055aa 100%);
  color: #fff;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2.5rem 0 2rem 0;
  box-shadow: 0 2px 16px #00336633;
}

.cta-section h2 {
  margin-top: 0;
  font-family: 'Roboto Slab', serif;
}

.cta-section a.button {
  background: #fff;
  color: #003366;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.5rem;
  margin-top: 1.2rem;
  display: inline-block;
  box-shadow: 0 2px 8px #00336622;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cta-section a.button:hover {
  background: #0055aa;
  color: #fff;
  transform: scale(1.06);
}

.quote-section {
  background: #f0f4f8;
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  margin: 2rem 0;
  text-align: center;
  font-style: italic;
  color: #003366;
  font-size: 1.2rem;
  box-shadow: 0 2px 12px #00336622;
}

.featured-books {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2.5rem 0 1.5rem 0;
}

.featured-book-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #00336622;
  padding: 1.2rem 1rem 1.5rem 1rem;
  width: 240px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 1.5rem;
  position: relative;
}

.featured-book-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px #00336622;
  padding: 12px;
  display: block;
}

.featured-book-card .badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #0055aa;
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: bold;
  box-shadow: 0 2px 8px #00336622;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: #003366;
  font-size: 2rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #0055aa;
}

footer {
  background: linear-gradient(90deg, #003366 60%, #0055aa 100%);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem 1.2rem 1rem;
  margin-top: 2rem;
  font-size: 1rem;
  letter-spacing: 1px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

footer .footer-links {
  margin-bottom: 1rem;
}

footer .footer-links a {
  color: #fff;
  margin: 0 1rem;
  text-decoration: underline;
  font-size: 1.05rem;
}

.author-gallery {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.author-gallery img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #003366;
  box-shadow: 0 2px 12px #00336622;
  transition: transform 0.2s;
  background: #f8fafc;
  padding: 6px;
}

.author-details-card {
  background: linear-gradient(120deg, #e0e7ff 0%, #f8fafc 100%);
  border-radius: 16px;
  box-shadow: 0 2px 12px #00336622;
  padding: 2rem 1.5rem;
  max-width: 420px;
  margin: 2rem auto 2.5rem auto;
  text-align: center;
}

.author-details-card h2 {
  color: #003366;
  font-family: 'Roboto Slab', serif;
  margin-bottom: 1.2rem;
}

.author-details-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  font-size: 1.08rem;
  text-align: left;
  max-width: 320px;
}

.author-details-list li {
  margin-bottom: 0.7rem;
  padding-left: 1.2rem;
  position: relative;
}

.author-details-list li::before {
  content: '\2022';
  color: #0055aa;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.author-details-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(120deg, #e0e7ff 0%, #f8fafc 100%);
  border-radius: 22px;
  box-shadow: 0 4px 24px #00336622;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  max-width: 600px;
  margin: 2.5rem auto 2.5rem auto;
  text-align: center;
  position: relative;
}

.author-details-profile .big-author-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #0055aa;
  box-shadow: 0 6px 32px #00336633;
  margin-bottom: 1.5rem;
  background: #f8fafc;
}

.author-details-profile h2 {
  color: #003366;
  font-family: 'Roboto Slab', serif;
  margin-bottom: 1.2rem;
  font-size: 2rem;
}

.author-details-table {
  width: 100%;
  max-width: 350px;
  margin: 1.5rem auto 0 auto;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  font-size: 1.08rem;
}

.author-details-table td {
  padding: 0.4rem 0.7rem;
  background: #fff;
  border-radius: 8px;
  color: #003366;
  font-weight: 500;
}

.author-details-table td:first-child {
  text-align: right;
  color: #0055aa;
  font-weight: bold;
  width: 45%;
}

.author-profile-flex {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 900px;
  margin: 2.5rem auto 2rem auto;
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 2px 12px #00336622;
  padding: 2rem;
}

.profile-main-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #0055aa;
  box-shadow: 0 6px 32px #00336633;
  background: #f8fafc;
}

.author-profile-flex .author-details-list {
  flex: 1;
}

.author-profile-flex .author-details-list h2 {
  color: #003366;
  font-family: 'Roboto Slab', serif;
  margin-bottom: 1.2rem;
  font-size: 2rem;
}

.author-profile-flex .author-details-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.08rem;
}

.author-profile-flex .author-details-list li {
  margin-bottom: 0.7rem;
  padding-left: 1.2rem;
  position: relative;
}

.author-profile-flex .author-details-list li::before {
  content: '\2022';
  color: #0055aa;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.author-gallery-large {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0;
}

.author-gallery-large img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #0055aa;
  box-shadow: 0 6px 32px #00336633;
  background: #f8fafc;
}

@media (max-width: 900px) {
  main { max-width: 98vw; }
  .featured-books { flex-direction: column; align-items: center; }
  .featured-book-card { width: 90vw; }
}

@media (max-width: 500px) {
  header.hero { min-height: 260px; padding: 2.5rem 0.5rem 1.5rem 0.5rem; }
  .hero-content h1 { font-size: 1.3rem; }
  nav { font-size: 0.95rem; gap: 1.2rem; }
  main { padding: 1.2rem 0.5rem; }
}
