/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;700&display=swap');

/* Define a new color palette using CSS variables for consistency */
:root {
  --primary-color: #3e8e41; /* A rich, earthy green */
  --secondary-color: #eef2e6; /* A soft, light green */
  --accent-color: #d85c27; /* A warm orange for highlights */
  --text-color: #2e2e2e; /* A deep, dark gray */
  --light-bg: #f8f5f0; /* A creamy off-white */
  --subtle-gray: #666;
}

/* Base styles */
body {
  font-family: 'Work Sans', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

/* Layout Containers */
header, section, footer {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

/* Header */
header {
  background: var(--secondary-color);
  text-align: center;
}

header h1 {
  font-size: 2.5rem; /* Slightly larger heading */
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

header p {
  font-size: 1.1rem;
  color: #555;
}

/* Navigation */
nav {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease; /* Smooth hover transition */
}

nav a:hover {
  color: #d4e8c5; /* A lighter shade on hover */
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color); /* Add a splash of color */
  padding-bottom: 0.5rem;
}

/* Blockquotes */
blockquote {
  font-style: italic;
  margin: 2rem 0;
  padding: 1rem 2rem;
  border-left: 4px solid var(--accent-color);
  background: #fff;
  color: #555;
}

/* Lists */
ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  background: #fff;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
}

/* Buttons */
.cta-button,
input[type="submit"] {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  margin: 1rem 0;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button,
input[type="submit"] {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  /* Updated line for centering */
  margin: 1rem auto;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

input,
textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fff;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Book Cover Image */
img.cover {
  max-width: 300px;
  height: auto;
  display: block;
  margin: 2rem auto; /* More spacing */
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  text-align: center;
  background: var(--secondary-color);
  padding: 1.5rem;
  font-size: 0.9rem;
  color: var(--subtle-gray);
  border-top: 1px solid #d4d4d4;
}

footer a {
  color: var(--subtle-gray);
  text-decoration: none;
  margin: 0 0.5rem;
}

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

/* Hero Image Styling - Add your new code here */
.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Centering Container */
.centered-button-container {
  text-align: center;
}

/* Reviewer Deal Section */
.reviewer-deal {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.reviewer-deal h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .reviewer-deal {
    flex-direction: row;
    justify-content: space-between;
  }
  .reviewer-deal > div {
    flex-basis: 48%;
  }
}

/* Checkbox styling */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.checkbox-container input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tagline {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
}

.hero-image-container {
  flex: 1;
  max-width: 400px;
}

@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    text-align: left;
  }
  .hero-content {
    align-items: flex-start;
  }
  .hero-image-container {
    margin-left: 2rem;
  }
}

/* Quote Section */
.quote-section {
  background-color: var(--secondary-color);
}

/* Author Summary Section */
.author-summary {
  text-align: center;
}

/* Download Section */
.download-section {
  text-align: center;
  padding: 2rem;
  background-color: var(--secondary-color);
}

/* Book Detail Section */
.book-detail {
  text-align: center;
}

.book-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 900px; /* Constrain the main container */
  margin-left: auto;
  margin-right: auto;
}

.book-cover {
  max-width: 350px; /* Slightly larger image */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.book-description {
  text-align: left;
}

.book-description h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

.book-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .book-info {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    align-items: flex-start;
  }
  .book-cover {
    margin-right: 2rem;
  }
  .book-description {
    max-width: 60%;
  }
  .book-cta {
    flex-direction: row;
  }
}

/* Centered Content for Book Page */
.centered-content {
  text-align: center;
  margin-top: 1.5rem;
}

.centered-content ul {
  list-style-position: inside;
  padding-left: 0;
}

/* Centered List for Book Page */
.centered-list {
  text-align: center;
}

.centered-list ul {
  list-style-position: inside;
  display: inline-block;
  text-align: left;
  max-width: 600px;
}

/* Key Features Section for Book Page */
.key-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.key-features ul {
  padding-left: 0;
  text-align: left;
  max-width: 600px;
}

/* New Section for Key Features */
.key-features-section {
  background-color: var(--secondary-color);
  padding: 3rem 2rem;
  text-align: center;
}

.key-features-section .section-title {
  margin-bottom: 2rem;
}

.key-features-section ul {
  list-style-type: none;
  padding: 0;
  display: inline-block;
  text-align: left;
  max-width: 600px;
}

.key-features-section li {
  background: transparent;
  box-shadow: none;
  padding: 0.5rem 0;
}

.book-cta-section {
  text-align: center;
  padding: 2rem;
}

.book-cta-section p {
  margin-top: 1rem;
  font-style: italic;
}

/* Contact Form Styling */
.contact-form-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form-container textarea {
  resize: vertical;
  min-height: 150px;
}

/* Resources Page Sections */
.resources-intro {
  text-align: center;
  padding: 2rem;
}

#resources {
  background-color: var(--secondary-color);
  padding: 3rem 2rem;
  text-align: center;
}

#resources h2 {
  margin-bottom: 1rem;
}

#resources p {
  margin-bottom: 2rem;
}

/* Reviewer Header */
.reviewer-header {
  text-align: center;
  padding: 2rem;
}

.reviewer-details {
  padding: 2rem;
  background-color: var(--secondary-color);
  text-align: center;
}

.reviewer-deal {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.reviewer-deal h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.reviewer-signup {
  padding: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .reviewer-deal {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .reviewer-deal > div {
    flex-basis: 48%;
  }
}

/* New Section for Key Features */
.key-features-section {
  background-color: var(--secondary-color);
  padding: 3rem 2rem;
  text-align: center;
}

.key-features-section .section-title {
  margin-bottom: 2rem;
}

.centered-content {
  display: inline-block;
  text-align: left;
  max-width: 600px;
}

.key-features-section ul {
  list-style-type: none;
  padding: 0;
}

.key-features-section li {
  background: transparent;
  box-shadow: none;
  padding: 0.5rem 0;
}

.book-cta-section {
  text-align: center;
  padding: 2rem;
}

.book-cta-section p {
  margin-top: 1rem;
  font-style: italic;
}

/* New styles for the about page content */
.about-content {
    display: flex;
    flex-direction: column; /* Stacks vertically on mobile by default */
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
    text-align: center;
}

.about-text {
    text-align: left;
}

.author-image {
    max-width: 250px;
    height: auto;
    border-radius: 50%; /* Makes the image a circle */
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row; /* Arranges horizontally on desktop */
        align-items: flex-start;
    }
}

