/* style/home.css */
.page-home {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-home__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-home__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-home__section-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-home__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1em;
  text-align: center;
}

.page-home__button--primary {
  background-color: #000000; /* Primary action button */
  color: #FFFFFF; /* White text for primary button */
  border: 2px solid #000000;
}

.page-home__button--primary:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-home__button--secondary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for secondary button */
  border: 2px solid #FCBC45;
}

.page-home__button--secondary:hover {
  background-color: #e0a538;
  border-color: #e0a538;
}

/* Hero Section */
.page-home__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-color: #FFFFFF; /* Match body background */
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-home__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-top: 40px;
}

.page-home__hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-home__hero-title {
  font-size: 3.5em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.page-home__hero-description {
  font-size: 1.3em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-home__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* About Section */
.page-home__about-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.page-home__about-image-wrapper {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-home__about-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Features Section */
.page-home__features-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-home__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-home__feature-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-home__feature-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 400px; /* Max width for image within card */
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-home__feature-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-home__feature-title a {
  color: #000000;
  text-decoration: none;
}

.page-home__feature-title a:hover {
  text-decoration: underline;
  color: #FCBC45;
}

.page-home__feature-description {
  font-size: 1em;
  color: #555555;
}

/* CTA Section */
.page-home__cta-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  text-align: center;
}

.page-home__cta-section .page-home__section-title {
  color: #FFFFFF;
}

.page-home__cta-section .page-home__section-text {
  color: #f0f0f0;
}

.page-home__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-home__cta-actions .page-home__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-home__cta-actions .page-home__button--primary:hover {
  background-color: #e0a538;
  border-color: #e0a538;
}

.page-home__cta-actions .page-home__button--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-home__cta-actions .page-home__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* Latest Reviews Section */
.page-home__latest-reviews-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-home__reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-home__review-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home__review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-home__review-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-home__review-card-content {
  padding: 25px;
}

.page-home__review-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
}

.page-home__review-title a {
  color: #000000;
  text-decoration: none;
}

.page-home__review-title a:hover {
  text-decoration: underline;
  color: #FCBC45;
}

.page-home__review-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-home__review-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-home__read-more {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-home__read-more:hover {
  color: #e0a538;
  text-decoration: underline;
}

.page-home__view-all-button {
  text-align: center;
  margin-top: 50px;
}

/* Why Choose Us Section */
.page-home__why-choose-us-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-home__why-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-home__why-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-home__why-item-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-home__why-item-description {
  font-size: 1em;
  color: #555555;
}

/* Testimonials Section */
.page-home__testimonials-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background */
  color: #FFFFFF;
  text-align: center;
}

.page-home__testimonials-section .page-home__section-title {
  color: #FFFFFF;
}

.page-home__testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-home__testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-home__testimonial-text {
  font-size: 1.1em;
  font-style: italic;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-home__testimonial-author {
  font-weight: bold;
  color: #FCBC45;
}

/* FAQ Section */
.page-home__faq-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-home__faq-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.page-home__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-home__faq-answer {
  font-size: 1em;
  color: #555555;
}

/* Get Started Section */
.page-home__get-started-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  text-align: center;
}

.page-home__get-started-section .page-home__section-title {
  color: #FFFFFF;
}

.page-home__get-started-section .page-home__section-text {
  color: #f0f0f0;
}

.page-home__get-started-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-home__get-started-actions .page-home__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-home__get-started-actions .page-home__button--primary:hover {
  background-color: #e0a538;
  border-color: #e0a538;
}

.page-home__get-started-actions .page-home__button--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-home__get-started-actions .page-home__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-home__hero-title {
    font-size: 3em;
  }

  .page-home__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-home {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

  .page-home__hero-section {
    padding: 60px 15px;
  }

  .page-home__hero-title {
    font-size: 2.5em;
  }

  .page-home__hero-description {
    font-size: 1.1em;
  }

  .page-home__hero-actions,
  .page-home__cta-actions,
  .page-home__get-started-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-home__button {
    width: 100%;
    max-width: 300px; /* Constrain button width on small screens */
    margin: 0 auto;
  }

  .page-home__section-title {
    font-size: 1.8em;
  }

  .page-home__features-grid,
  .page-home__reviews-grid,
  .page-home__why-list,
  .page-home__testimonials-grid {
    grid-template-columns: 1fr;
  }

  .page-home__review-image {
    height: 200px;
  }

  /* Ensure content images do not overflow */
  .page-home__hero-image,
  .page-home__about-image,
  .page-home__feature-icon,
  .page-home__review-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }
}

@media (max-width: 480px) {
  .page-home__hero-title {
    font-size: 2em;
  }

  .page-home__section-title {
    font-size: 1.5em;
  }

  .page-home__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

/* Ensure all images within .page-home meet minimum size requirements */
.page-home img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

/* For content images, enforce minimum size */
.page-home__hero-image,
.page-home__about-image,
.page-home__feature-icon,
.page-home__review-image {
    min-width: 200px;
    min-height: 200px;
    width: 100%; /* Ensure they are responsive within their containers */
    height: auto;
}