.page-index {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(26, 26, 26, 0.8));
  gap: 30px;
}

.page-index__hero-content {
  max-width: 900px;
}

.page-index__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold primary color for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-index__button--primary {
  background-color: #FFD700; /* Primary gold color */
  color: #1A1A1A; /* Dark text for primary button */
}

.page-index__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-index__button--secondary {
  background-color: #1A1A1A; /* Dark secondary color */
  color: #FFD700; /* Gold text for secondary button */
  border: 2px solid #FFD700;
}

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

.page-index__button--tertiary {
  background-color: rgba(255, 215, 0, 0.2); /* Semi-transparent gold */
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 10px 20px;
  font-size: 1em;
}

.page-index__button--tertiary:hover {
  background-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.page-index__hero-image-container {
  width: 100%;
  max-width: 1000px; /* Constrain image width */
  margin-top: 40px;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-index__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-index__games-overview,
.page-index__promotions-section,
.page-index__why-choose-us,
.page-index__app-download,
.page-index__responsible-gaming,
.page-index__latest-news,
.page-index__contact-cta {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.page-index__game-categories,
.page-index__promo-grid,
.page-index__features-grid,
.page-index__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__game-card,
.page-index__promo-card,
.page-index__news-card {
  background-color: rgba(255, 215, 0, 0.08); /* Subtle gold background */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__game-card-image,
.page-index__promo-card-image,
.page-index__news-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__game-card-title,
.page-index__promo-card-title,
.page-index__news-card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index__game-card-title a,
.page-index__news-card-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-index__game-card-title a:hover,
.page-index__news-card-title a:hover {
  text-decoration: underline;
}

.page-index__game-card-text,
.page-index__promo-card-text,
.page-index__news-card-text {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__view-all-promos,
.page-index__view-all-news {
  text-align: center;
  margin-top: 50px;
}

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

.page-index__feature-item {
  background-color: rgba(26, 26, 26, 0.6); /* Darker, more opaque background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.page-index__feature-item:hover {
  background-color: rgba(26, 26, 26, 0.8);
}

.page-index__feature-icon {
  width: 100px; /* Icon size */
  height: 100px; /* Icon size */
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Gold glow for icons */
}

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

.page-index__feature-text {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.6;
}

.page-index__app-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: 60px 20px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-index__app-content {
  text-align: center;
  max-width: 700px;
}

.page-index__app-image-container {
  width: 100%;
  max-width: 500px; /* Constrain app image */
}

.page-index__app-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-index__responsible-gaming {
  text-align: center;
}

.page-index__responsible-gaming-text {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: justify;
}

.page-index__contact-cta {
  text-align: center;
  padding: 60px 20px;
  background: rgba(26, 26, 26, 0.7);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

  .page-index__hero-image-container {
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    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__button {
    width: 100%;
    padding: 12px 25px;
  }

  .page-index__section-title {
    font-size: 1.8em;
    margin-top: 40px;
  }

  .page-index__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-index__games-overview,
  .page-index__promotions-section,
  .page-index__why-choose-us,
  .page-index__app-download,
  .page-index__responsible-gaming,
  .page-index__latest-news,
  .page-index__contact-cta {
    margin: 60px auto;
    padding: 0 15px;
  }

  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__features-grid,
  .page-index__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-index__game-card-image,
  .page-index__promo-card-image,
  .page-index__news-card-image {
    height: 180px;
  }

  .page-index__game-card-title,
  .page-index__promo-card-title,
  .page-index__news-card-title {
    font-size: 1.5em;
  }

  .page-index__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-index__app-download {
    flex-direction: column;
    padding: 40px 15px;
  }
  
  /* Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index {
    overflow-x: hidden;
  }
}

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

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

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

  .page-index__game-card-image,
  .page-index__promo-card-image,
  .page-index__news-card-image {
    height: 150px;
  }
}

/* Specific image width/height for content area */
.page-index__game-card-image, 
.page-index__promo-card-image, 
.page-index__news-card-image, 
.page-index__feature-icon, 
.page-index__app-image {
  min-width: 200px;
  min-height: 200px;
}

.page-index__feature-icon {
  width: 200px; /* Enforce min-width/height */
  height: 200px; /* Enforce min-width/height */
}

/* Override specific image sizes to ensure they are not too small if a specific class is used for smaller elements */
.page-index__game-card-image, 
.page-index__promo-card-image, 
.page-index__news-card-image, 
.page-index__app-image {
  width: 100%; /* Ensure they take full width of their container */
  height: auto; /* Maintain aspect ratio */
  min-width: 200px; /* Minimum width for content images */
  min-height: 200px; /* Minimum height for content images */
  object-fit: cover;
}

/* Ensure no image filter is applied */
.page-index img {
  filter: none; 
}