.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); /* Ensure space below fixed header */
}

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

.page-home__section--dark-bg {
  background-color: #003366; /* Main brand color for dark background sections */
  color: #ffffff;
}

.page-home__section-title {
  font-size: 2.8em;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-home__section--dark-bg .page-home__section-title {
  color: #FFCC00;
}

.page-home__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-home__section--dark-bg .page-home__section-intro {
  color: #f0f0f0;
}

/* Hero Section */
.page-home__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #003366; /* Dark blue background for hero */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-home__hero-content {
  z-index: 1;
  max-width: 900px;
}

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

.page-home__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #e0e0e0;
}

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

.page-home__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-home__cta-button--primary {
  background-color: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

.page-home__cta-button--primary:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

.page-home__cta-button--secondary {
  background-color: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-home__cta-button--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
  transform: translateY(-2px);
}

.page-home__hero-image {
  margin-top: 40px;
  width: 100%;
  max-width: 1000px; /* Constrain image width for better layout */
  z-index: 0;
}

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

/* Why Choose Us Section */
.page-home__why-choose-us {
  background-color: #f8f8f8;
}

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

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

.page-home__feature-item:hover {
  transform: translateY(-5px);
}

.page-home__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-home__feature-title {
  font-size: 1.6em;
  color: #003366;
  margin-bottom: 10px;
}

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

/* Game Categories Section */
.page-home__game-categories {
  background-color: #ffffff;
}

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

.page-home__category-card {
  background-color: #f0f8ff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.page-home__category-card:hover {
  transform: translateY(-5px);
}

.page-home__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-home__category-title {
  font-size: 1.5em;
  color: #003366;
  padding: 15px 20px 5px;
}

.page-home__category-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
}

/* Download Guide Section */
.page-home__download-guide {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-home__step-item {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-home__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #FFCC00;
  color: #003366;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-home__step-title {
  font-size: 1.5em;
  color: #FFCC00;
  margin-bottom: 10px;
}

.page-home__step-description {
  font-size: 1em;
  color: #e0e0e0;
}

.page-home__download-cta {
  text-align: center;
  margin-top: 40px;
}

.page-home__download-note {
  font-size: 0.9em;
  color: #f0f0f0;
  margin-top: 15px;
}

/* Promotions Section */
.page-home__promotions {
  background-color: #f8f8f8;
}

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

.page-home__promo-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-home__promo-card:hover {
  transform: translateY(-5px);
}

.page-home__promo-title {
  font-size: 1.6em;
  color: #003366;
  margin-bottom: 10px;
}

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

.page-home__promo-link {
  color: #FFCC00;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-home__promo-link:hover {
  color: #e6b800;
}

.page-home__full-promo-cta {
  text-align: center;
  margin-top: 60px;
}

/* Testimonials Section */
.page-home__testimonials {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.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.1);
}

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

.page-home__testimonial-author {
  font-size: 0.95em;
  font-weight: bold;
  color: #FFCC00;
}

/* Responsible Gaming Section */
.page-home__responsible-gaming {
  background-color: #ffffff;
}

.page-home__responsible-gaming-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-home__responsible-gaming-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 30px;
}

/* FAQ Section */
.page-home__faq {
  background-color: #f8f8f8;
}

.page-home__faq-items {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-home__faq-question {
  font-size: 1.4em;
  color: #003366;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-home__faq-question::after {
  content: '+';
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.page-home__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-home__faq-answer {
  font-size: 1em;
  color: #555555;
  display: none;
  padding-top: 10px;
  border-top: 1px solid #eee;
  margin-top: 10px;
}

.page-home__faq-question.active + .page-home__faq-answer {
  display: block;
}

.page-home__faq-cta {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Final CTA Section */
.page-home__final-cta {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-home__final-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

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

@media (max-width: 768px) {
  .page-home__hero-section {
    flex-direction: column;
    padding: 60px 15px;
  }
  .page-home__hero-title {
    font-size: 2.5em;
  }
  .page-home__hero-description {
    font-size: 1.1em;
  }
  .page-home__hero-buttons {
    flex-direction: column;
  }
  .page-home__cta-button {
    width: 100%;
    max-width: 300px;
  }
  .page-home__section {
    padding: 40px 15px;
  }
  .page-home__section-title {
    font-size: 1.8em;
  }
  .page-home__section-intro {
    font-size: 1em;
  }
  /* Ensure all images in content areas are responsive and not too small */
  .page-home img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min image size for mobile */
    min-height: 200px; /* Enforce min image size for mobile */
  }
  .page-home__feature-icon, .page-home__category-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min image size for mobile */
    min-height: 200px; /* Enforce min image size for mobile */
  }
  .page-home__faq-question {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-home__hero-title {
    font-size: 2em;
  }
  .page-home__hero-description {
    font-size: 0.95em;
  }
  .page-home__section-title {
    font-size: 1.5em;
  }
  .page-home__cta-button {
    font-size: 1em;
    padding: 12px 20px;
  }
}