* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #0018A8;
  color: #222;
}

/* Page Header */

.books-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 40px 30px 25px 30px;
  background: #0018A8;
  color: white;
  min-height: 260px;
}

/* Books Header Text - Left Side */

.books-header-text {
  order: 1;
  width: 50%;
  margin-top: 45px;
  margin-left: 0;
  text-align: left;
}

.books-header h1 {
  font-family: Georgia, serif;
  font-size: 42px;
  color: yellow;
  margin-bottom: 10px;
  text-align: left;
}

.books-header p {
  font-size: 17px;
  text-align: left;
  line-height: 1.5;
}

/* Author Area - Right Side */

.author-header {
  order: 2;
  width: 220px;
  text-align: center;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 0;
  margin-top: -25px;
}

.author-header img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 80px 5px auto;
}

.author-name,
.author-designer,
.author-brand {
  transform: translateX(20px);
  text-align: center;
}

.author-designer {
  color: yellow;
  font-size: 14px;
  margin-bottom: 2px;
  text-align: center;
}

.author-brand {
  color: yellow;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
}

/* Books Header Text */

.books-header-text {
  width: 50%;
  margin-top: 45px;
  margin-left: 0;
  text-align: left;
}

.books-header h1 {
  font-family: Georgia, serif;
  font-size: 42px;
  color: yellow;
  margin-bottom: 10px;
  text-align: left;
}

.books-header p {
  font-size: 17px;
  text-align: left;
  line-height: 1.5;
}

/* Top Navigation Menu */

.books-nav {
  text-align: center;
  padding: 0;
  margin-top: 25px;
  margin-bottom: 10px;
}

.books-nav a {
  color: yellow;
  text-decoration: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  font-size: 14px;
  margin: 0 12px;
  transition: 0.4s ease-in-out;
}

.books-nav a:hover {
  color: white;
}

.books-nav a.active {
  color: white;
}

/* Main Container */

.books-container {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
}

/* Individual Book */

.book-card {
  background: white;
  margin-bottom: 40px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Images */

.book-gallery {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 15px;
}

.book-gallery img {
  width: 180px;
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

/* Book Information */

.book-info {
  text-align: center;
  padding: 20px 10px 5px;
}

.book-info h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  margin-bottom: 12px;
}

.book-info h3 {
  font-family: Georgia, serif;
  font-size: 20px;
  margin-bottom: 15px;
  color: #555;
}

.book-info p {
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.7;
  color: #555;
}

/* Button */

.book-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #111;
  color: yellow;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: 0.3s;
}

.book-btn:hover {
  background: yellow;
  color: #111;
}

/* Footer */

footer.copy {
  width: 100%;
  color: white;
  text-align: center;
  padding: 25px 0;
}

.footer-nav {
  margin: 15px 0;
}

.footer-nav a {
  color: yellow;
  text-decoration: none;
  font-weight: bold;
}

.footer-nav a:hover {
  color: white;
}

.footer-nav span {
  color: white;
  margin: 0 5px;
}

.author-statement {
  margin-top: 10px;
}

/* Mobile */

@media (max-width: 600px) {

  .books-header {
    padding: 30px 15px;
    min-height: 220px;
  }

.author-header {
  width: 130px;
  margin-left: auto;
  margin-right: 0;
  margin-top: -15px;
}

  .author-header img {
    width: 90px;
    height: 90px;
  }

  .author-name {
    font-size: 16px;
  }

  .author-designer {
    font-size: 13px;
  }

  .author-brand {
    font-size: 14px;
  }

  .books-header-text {
    width: 50%;
    margin-top: 25px;
    margin-left: 0;
  }

  .books-header h1 {
    font-size: 28px;
  }

  .books-header p {
    font-size: 14px;
  }

  .books-nav {
    line-height: 2;
  }

  .books-nav a {
    margin: 0 6px;
  }

  .books-container {
    width: 94%;
    margin: 25px auto;
  }

  .book-card {
    padding: 15px;
  }

  .book-gallery img {
    width: 140px;
    height: 200px;
  }

  .book-info h2 {
    font-size: 24px;
  }

  .book-info p {
    font-size: 15px;
  }
}