  .book-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .author-container {
    flex-direction: column;
    align-items: center;
  }

  .author-image img {
    width: 150px;
  }
/* ================================
   INDEX PAGE STYLES
   ================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #111;
}

header .logo {
  font-size: 24px;
  font-weight: bold;
  font-family: 'Arial', sans-serif; /* or whatever font you're using in H1 */
  text-transform: uppercase;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
}

.hero {
  background-color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 80px 40px;
  flex-wrap: wrap;
  width: 100%;
}

.hero-text {
  flex: 1;
  max-width: 450px;
}

.hero-text .coming-soon {
  color: orange;
  margin-bottom: 10px;
  font-weight: bold;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero-text input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
}

.hero-text button {
  background-color: orange;
  border: none;
  padding: 10px 20px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

.hero-image {
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}



.intro {
  text-align: center;
  background-color: #111;
  padding: 60px 20px;
}

.intro h2 {
  color: orange;
  font-size: 20px;
  margin-bottom: 10px;
}

.intro h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.intro p {
  max-width: 600px;
  margin: 10px auto;
  line-height: 1.6;
}

.tagline {
  color: orange;
  font-weight: bold;
  margin-top: 20px;
}

.intro-buttons {
  margin-top: 30px;
}

.intro-buttons button {
  padding: 10px 20px;
  margin: 10px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

.orange {
  background-color: orange;
  color: black;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

button.orange {
  background-color: orange;
  color: #000;
}

button.white {
  background-color: white;
  color: #000;
}

button.pink {
  background-color: deeppink;
  color: white;
}

.books {
  background-color: #222;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.books h2 {
  font-size: 24px;
  margin-bottom: 40px;
}

.books h3 {
  color: orange;
  font-size: 18px;
  margin-bottom: 10px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.book img {
  max-width: 100%;
  border-radius: 5px;
}

.book p {
  margin: 10px 0;
  font-weight: bold;
}

.book button {
  background-color: orange;
  border: none;
  padding: 8px 16px;
  color: #000;
  border-radius: 20px;
  cursor: pointer;
}

.author {
  background-color: #111;
  color: white;
  padding: 60px 20px;
}

.author-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  gap: 40px;
}

.author-image img {
  width: 300px;
  border-radius: 10px;
}

.author-info {
  flex: 1;
}

.author-info h3 {
  color: white;
  font-size: 18px;
}

.author-info h2 {
  font-size: 28px;
  color: white;
}

.author-info .highlight {
  color: orange;
}

.author-info .mission {
  font-weight: bold;
  color: white;
  margin: 15px 0;
}

.subscribe {
  display: flex;
  justify-content: center;
  background-color: #222;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.subscribe h2 {
  margin-bottom: 20px;
}

.subscribe input {
  padding: 10px;
  width: 250px;
  border-radius: 5px;
  border: none;
  margin-right: 10px;
}

.subscribe button {
  padding: 10px 20px;
  background-color: orange;
  border: none;
  border-radius: 5px;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

.subscribe form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.subscribe form input {
  padding: 10px;
  width: 250px;
  border-radius: 5px;
  border: none;
}

.subscribe form button {
  padding: 10px 20px;
  background-color: orange;
  border: none;
  border-radius: 5px;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

.subscribe form {
  display: flex;
  justify-content: center;
}

.form-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.form-row input[type="email"] {
  padding: 10px;
  width: 250px;
  border-radius: 5px;
  border: none;
}

.form-row button {
  padding: 10px 20px;
  background-color: orange;
  border: none;
  border-radius: 5px;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.footer-nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-size: 14px;
}

.social {
  margin-top: 20px;
}

.social .icon {
  font-size: 24px;
  margin-top: 10px;
}

footer p {
  margin-top: 20px;
  font-size: 12px;
  color: #aaa;
}


/* ================================
   BOOKS PAGE STYLES
   ================================ */

.book-detail1 {
  background-color: #222;
  padding: 80px 20px;
  color: white;
}

.book-detail2 {
  background-color: #111;
  padding: 80px 20px;
  color: white;
}

.book-detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

.book-cover img {
  max-width: 100%;
  border-radius: 10px;
  width: 300px;
}

.book-info {
  flex: 1;
}

.book-info h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.book-info h3 {
  font-size: 18px;
  color: orange;
  margin-bottom: 20px;
}

.book-info p {
  line-height: 1.6;
  margin-bottom: 30px;
}

.amazon-button {
  background-color: orange;
  color: black;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.amazon-button:hover {
  background-color: #e69500;
}

/* ================================
   ABOUT PAGE STYLES
   ================================ */

.about-bio {
  background-color: #222;
  padding: 80px 20px;
  color: white;
}

.about-bio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

.about-bio-photo img {
  width: 180px;
  border-radius: 10px;
}


.about-bio {
  flex: 1;

}

.about-bio h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.about-bio h3 {
  font-size: 18px;
  color: orange;
  margin-bottom: 20px;
}

.about-bio p {
  line-height: 1.6;
  margin-bottom: 30px;
}


/* ================================
   CONTACT PAGE STYLES
   ================================ */

.contact-page-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: flex-start;
  border-radius: 12px;
}

/* Left: Forms */
.contact-left {
  flex: 1 1 600px;
  min-width: 320px;
}

/* Right: Image */
.contact-right {
  flex: 1 1 400px;
  min-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-right img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  max-width: 100%;
}

/* Make responsive */
@media (max-width: 768px) {
  .contact-page-layout {
    flex-direction: column;
    align-items: center;
  }

  .contact-left,
  .contact-right {
    width: 100%;
  }
}

/* Form styling */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 15px;
  font-family: inherit;
}

label {
  font-weight: bold;
  margin-top: 10px;
}

input,
textarea,
select {
  background-color: #1a1a1a;
  color: #ffffff;
  border: 1px solid #555;
  padding: 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}

textarea {
  resize: vertical;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  font-weight: bold;
  margin-bottom: 10px;
}

input[type="checkbox"] {
  margin-right: 8px;
}

details {
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 10px 15px;
}

summary {
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: orange;
}

summary::-webkit-details-marker {
  display: none;
}

/* Orange button */
button.orange {
  background-color: orange;
  color: black;
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s;
}

button.orange:hover {
  background-color: #ffa500;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: white;
  line-height: 1.4;
  font-weight: normal;
  margin: 0;
}

input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0;
}

.contact-wrapper {
  background-color: #222;
  padding: 60px 0;
  width: 100%;
}

/* ================================
   FOOTER SOCIAL ICONS STYLES
   ================================ */

footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.social-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

.social-label {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 6px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 24px;
  margin-top: 10px;
}

.social-icons a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: orange;
}


/* ================================
   SMALL RESOLUTION MEDIA STYLES
   ================================ */
@media (max-width: 768px) {
  /* HEADER FIXES */
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  header .logo {
    font-size: 18px;
    margin-bottom: 10px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
  }

  nav a {
    margin: 0 8px;
  }

/* === FIX: Restore book grid layout on index.html === */

  .book-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  /* AUTHOR IMAGE */
  .author-image img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  /* CONTACT IMAGE ADJUSTMENT */
  .contact-page-layout {
    flex-direction: column;
  }

  .contact-right {
    order: 2;
    margin-top: 20px;
  }

  .contact-left {
    order: 1;
  }

/* === FIX: Improve Books.html layout on mobile === */
@media (max-width: 768px) {
  .book-detail-container {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 20px;
  }

  .book-cover {
    flex: 0 0 120px;
  }

  .book-cover img {
    width: 100%;
    max-width: 100px;
    height: auto;
    border-radius: 8px;
  }

  .book-info {
    flex: 1;
  }

  .book-info h1 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .book-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .book-info p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .contact-page-layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
  }

  .contact-left {
    flex: 3;
    min-width: 50;
  }

  .contact-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100px;
  }

  .contact-right img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
  }
}


/* ================================
   NEWSLETTER-PROMO PAGE STYLES
   ================================ */


.download-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-links a.orange {
  background-color: orange;
  color: black;
  text-align: center;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}

.newsletter-promo {
  background-color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 80px 40px;
  flex-wrap: wrap;
  width: 100%;
}

.newsletter-promo-text {
  flex: 1;
  max-width: 450px;
}

.newsletter-promo-text .coming-soon {
  color: orange;
  margin-bottom: 10px;
  font-weight: bold;
}

.newsletter-promo-text h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.newsletter-promo-text input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
}

.newsletter-promo-text button {
  background-color: orange;
  border: none;
  padding: 10px 20px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

.newsletter-promo-image {
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.newsletter-promo-image img {
  max-width: 100%;
  height: auto;
}