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

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

.page-home__section-title {
  font-size: 2.5em;
  color: #007bff; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-home__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-home__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #0d0d0d; /* Dark background for hero */
}

.page-home__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.page-home__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7; /* Slightly dim the image for text readability */
}

.page-home__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff; /* White text on dark hero background */
  z-index: 10;
  padding: 20px;
  max-width: 90%;
}

.page-home__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffc107; /* Secondary color for hero title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-home__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-home__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
}

.page-home__button--primary {
  background-color: #007bff; /* Primary color for main buttons */
  color: #ffffff;
  border: 2px solid #007bff;
}

.page-home__button--primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

.page-home__button--secondary {
  background-color: transparent;
  color: #ffc107; /* Secondary color for secondary buttons */
  border: 2px solid #ffc107;
}

.page-home__button--secondary:hover {
  background-color: #ffc107;
  color: #333333;
  transform: translateY(-2px);
}

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

.page-home__button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-home__button--link {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
}

.page-home__button--link:hover {
  text-decoration: underline;
}

/* About Us Section */
.page-home__about-us-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* Light background for contrast */
}

.page-home__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-home__about-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #555555;
}

.page-home__about-image-container {
  text-align: center;
}

.page-home__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Game Categories Section */
.page-home__game-categories-section {
  padding: 60px 0;
}

.page-home__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-home__category-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-home__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-home__category-title {
  font-size: 1.6em;
  margin: 20px 0 10px;
}

.page-home__category-title a {
  color: #007bff;
  text-decoration: none;
}

.page-home__category-title a:hover {
  text-decoration: underline;
}

.page-home__category-text {
  padding: 0 20px;
  color: #666666;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-home__promotions-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

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

.page-home__promotion-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-home__promotion-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.page-home__promotion-title {
  font-size: 1.6em;
  margin: 20px 0 10px;
}

.page-home__promotion-title a {
  color: #007bff;
  text-decoration: none;
}

.page-home__promotion-title a:hover {
  text-decoration: underline;
}

.page-home__promotion-text {
  padding: 0 20px;
  color: #666666;
  margin-bottom: 20px;
}

.page-home__promotions-cta {
  text-align: center;
}

/* Why Choose Us Section */
.page-home__why-choose-us-section {
  padding: 60px 0;
}

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

.page-home__feature-item {
  text-align: center;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-home__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-home__feature-title {
  font-size: 1.4em;
  color: #007bff;
  margin-bottom: 10px;
}

.page-home__feature-text {
  color: #666666;
}

/* Testimonials Section */
.page-home__testimonials-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

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

.page-home__testimonial-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-home__testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
  color: #555555;
}

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

/* CTA Section */
.page-home__cta-section {
  padding: 80px 0;
  background: linear-gradient(45deg, #007bff, #0056b3); /* Primary color gradient */
  color: #ffffff;
  text-align: center;
}

.page-home__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffc107; /* Secondary color for CTA title */
}

.page-home__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Section */
.page-home__blog-section {
  padding: 60px 0;
}

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

.page-home__blog-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-home__blog-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.page-home__blog-title {
  font-size: 1.6em;
  margin: 20px 0 10px;
}

.page-home__blog-title a {
  color: #007bff;
  text-decoration: none;
}

.page-home__blog-title a:hover {
  text-decoration: underline;
}

.page-home__blog-text {
  padding: 0 20px;
  color: #666666;
  margin-bottom: 20px;
}

.page-home__blog-cta {
  text-align: center;
}

/* Payment Section */
.page-home__payment-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.page-home__payment-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-home__payment-logo {
  max-width: 200px;
  height: 100px;
  object-fit: contain;
  padding: 10px 20px;
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-home__payment-cta {
  text-align: center;
}

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

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

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

  .page-home__about-grid {
    grid-template-columns: 1fr;
  }

  .page-home__about-image {
    margin-top: 30px;
  }
}

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

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

  .page-home__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-home__button--primary, .page-home__button--secondary, .page-home__button--large {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }

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

  .page-home__categories-grid,
  .page-home__promotions-grid,
  .page-home__features-grid,
  .page-home__testimonials-grid,
  .page-home__blog-grid {
    grid-template-columns: 1fr;
  }

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

  .page-home__cta-description {
    font-size: 1em;
  }

  /* Mobile content area images must not overflow */
  .page-home img {
    max-width: 100%;
    height: auto;
  }

  .page-home__payment-logo {
    max-width: 150px;
    height: 80px;
  }
}

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

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

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

  .page-home__button--primary, .page-home__button--secondary, .page-home__button--large {
    width: 90%;
  }
}