.page-index {
  color: #333333; /* Dark text for light body background #f4f4f4 */
}

.page-index__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Golden and deep red gradient */
  color: #ffffff;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-index__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  z-index: 2;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 0.9;
}

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

.page-index__hero-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__hero-button--primary {
  background-color: #FFD700;
  color: #8B0000;
}

.page-index__hero-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-index__hero-button--secondary {
  background-color: #8B0000;
  color: #ffffff;
  border: 2px solid #FFD700;
}

.page-index__hero-button--secondary:hover {
  background-color: #6a0000;
  transform: translateY(-3px);
}

.page-index__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  z-index: 1;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index__features-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__about-section,
.page-index__cta-download,
.page-index__responsible-gaming-section,
.page-index__contact-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.page-index__section-title {
  font-size: 2.5em;
  color: #8B0000;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-index__section-intro {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.page-index__feature-card,
.page-index__game-card,
.page-index__promo-card {
  background-color: #fcfcfc;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__feature-card:hover,
.page-index__game-card:hover,
.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-index__feature-icon,
.page-index__game-image,
.page-index__promo-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensures minimum 200px display, scales down */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-index__feature-title,
.page-index__game-title,
.page-index__promo-title {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__feature-title a,
.page-index__game-title a,
.page-index__promo-title a {
  color: #8B0000;
  text-decoration: none;
}

.page-index__feature-title a:hover,
.page-index__game-title a:hover,
.page-index__promo-title a:hover {
  text-decoration: underline;
  color: #FFD700;
}

.page-index__feature-description,
.page-index__game-description,
.page-index__promo-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.5;
  flex-grow: 1;
}

.page-index__game-button,
.page-index__promo-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__game-button:hover,
.page-index__promo-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-index__cta-promotions {
  text-align: center;
  margin-top: 60px;
  background-color: #8B0000;
  color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-index__cta-text {
  font-size: 1.5em;
  margin-bottom: 25px;
  font-weight: 600;
}

.page-index__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-index__about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-index__about-image {
  flex: 1 1 45%;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%; /* Ensure image scales within flex item */
  height: auto;
  max-width: 600px; /* Ensures minimum 200px display */
}

.page-index__about-text {
  flex: 1 1 50%;
  min-width: 300px;
  line-height: 1.7;
  color: #444444;
}

.page-index__about-text p {
  margin-bottom: 15px;
}

.page-index__about-button {
  display: inline-block;
  background-color: #8B0000;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__about-button:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
}

.page-index__cta-download {
  text-align: center;
  background-color: #f9f9f9;
  border: 1px solid #eeeeee;
}

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

.page-index__download-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__download-button--appstore {
  background-color: #333333;
  color: #ffffff;
}

.page-index__download-button--appstore:hover {
  background-color: #000000;
  transform: translateY(-3px);
}

.page-index__download-button--playstore {
  background-color: #4CAF50;
  color: #ffffff;
}

.page-index__download-button--playstore:hover {
  background-color: #45a049;
  transform: translateY(-3px);
}

.page-index__app-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-top: 30px;
}

.page-index__responsible-gaming-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-index__responsible-gaming-image {
  flex: 1 1 45%;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
  max-width: 600px; /* Ensures minimum 200px display */
}

.page-index__responsible-gaming-list {
  flex: 1 1 50%;
  min-width: 300px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: #444444;
}

.page-index__responsible-gaming-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.5;
}

.page-index__responsible-gaming-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 40px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__responsible-gaming-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-index__contact-info {
  text-align: center;
  font-size: 1.1em;
  line-height: 1.8;
  color: #444444;
}

.page-index__contact-info a {
  color: #8B0000;
  text-decoration: none;
  font-weight: bold;
}

.page-index__contact-info a:hover {
  text-decoration: underline;
}

.page-index__contact-button {
  display: inline-block;
  background-color: #8B0000;
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 40px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__contact-button:hover {
  background-color: #6a0000;
  transform: translateY(-3px);
}

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

  .page-index__hero-description {
    font-size: 1.2em;
  }

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

  .page-index__features-grid,
  .page-index__games-grid,
  .page-index__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding: 40px 15px;
  }

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

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

  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__hero-button {
    width: 80%;
    max-width: 300px;
  }

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

  .page-index__section-intro {
    font-size: 0.95em;
  }

  .page-index__features-grid,
  .page-index__games-grid,
  .page-index__promotions-grid {
    grid-template-columns: 1fr;
  }

  .page-index__feature-card,
  .page-index__game-card,
.page-index__promo-card {
    padding: 20px;
  }

  .page-index__about-content,
  .page-index__responsible-gaming-content {
    flex-direction: column;
  }

  .page-index__about-image,
  .page-index__responsible-gaming-image {
    max-width: 100%;
  }

  .page-index__about-text,
  .page-index__responsible-gaming-list {
    min-width: unset;
    width: 100%;
  }

  .page-index__cta-promotions {
    padding: 30px 20px;
  }

  .page-index__cta-text {
    font-size: 1.2em;
  }

  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-index__download-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__download-button {
    width: 80%;
    max-width: 300px;
  }

  .page-index__app-image {
    max-width: 100%;
  }

  /* Ensure all images in content area are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}