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

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

.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 80vh;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background-color: #f0f0f0; /* Light background for hero section */
  overflow: hidden;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for readability */
  border-radius: 10px;
  color: #ffffff;
}

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

.page-index__hero-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

.page-index__button--primary {
  background-color: #FFD700; /* Gold primary button */
  color: #8B0000; /* Dark red text */
  border: 2px solid #FFD700;
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

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

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-index__button--play {
  background-color: #8B0000; /* Dark red play button */
  color: #FFD700;
  border: 2px solid #8B0000;
  padding: 8px 15px;
  font-size: 0.9rem;
  border-radius: 5px;
}

.page-index__button--play:hover {
  background-color: #a00000;
}

.page-index__button--large {
  padding: 18px 35px;
  font-size: 1.3rem;
}

.page-index__section-title {
  font-size: 2.5rem;
  color: #8B0000; /* Dark red for section titles */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

.page-index__section-subtitle {
  font-size: 1.15rem;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__features-section, .page-index__game-showcase-section, .page-index__promotions-section, .page-index__mobile-app-section, .page-index__about-us-section, .page-index__contact-section, .page-index__signup-callout {
  padding: 60px 0;
  background-color: #ffffff;
}

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

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

.page-index__feature-card:hover, .page-index__promo-card:hover, .page-index__game-card:hover {
  transform: translateY(-5px);
}

.page-index__feature-icon, .page-index__promo-image, .page-index__game-thumbnail {
  width: 100%; /* Occupy full card width */
  height: auto;
  max-width: 400px; /* Max width for consistency */
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__feature-title, .page-index__promo-title, .page-index__game-card-title {
  font-size: 1.7rem;
  color: #8B0000;
  margin-bottom: 15px;
}

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

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

.page-index__feature-description, .page-index__promo-description, .page-index__game-card-description {
  font-size: 1rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__game-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-index__game-tab {
  background-color: #eee;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: #555;
}

.page-index__game-tab:hover {
  background-color: #ddd;
}

.page-index__game-tab--active {
  background-color: #FFD700; /* Active tab gold */
  color: #8B0000; /* Active tab dark red text */
}

.page-index__game-tab--active:hover {
  background-color: #e6c200;
}

.page-index__game-grid {
  display: none;
}

.page-index__game-grid--active {
  display: grid;
}

.page-index__mobile-app-section {
  background-color: #f8f8f8;
}

.page-index__app-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

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

.page-index__app-description {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
}

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

.page-index__app-image {
  max-width: 450px;
  height: auto;
  min-width: 200px;
  min-height: 200px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-index__about-us-section {
  background-color: #ffffff;
}

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

.page-index__about-image {
  max-width: 450px;
  height: auto;
  min-width: 200px;
  min-height: 200px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.page-index__about-description {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-index__contact-section {
  background-color: #f0f0f0;
  text-align: center;
}

.page-index__contact-details {
  margin-top: 40px;
}

.page-index__contact-item {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #444;
}

.page-index__contact-link {
  color: #8B0000; /* Dark red for contact links */
  text-decoration: none;
  font-weight: bold;
}

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

.page-index__signup-callout {
  background-color: #8B0000; /* Dark red background for callout */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-index__signup-title {
  font-size: 3rem;
  color: #FFD700; /* Gold for callout title */
  margin-bottom: 20px;
}

.page-index__signup-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-index__app-content, .page-index__about-content {
    flex-direction: row;
    text-align: left;
    justify-content: center;
  }

  .page-index__app-text, .page-index__about-text {
    text-align: left;
  }

  .page-index__app-image {
    order: 2;
  }

  .page-index__hero-title {
    font-size: 4.5rem;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 60vh;
    padding-top: var(--header-offset, 120px); /* Mobile header offset */
  }

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

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

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

  .page-index__button {
    width: 100%;
    max-width: 300px;
  }

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

  .page-index__section-subtitle {
    font-size: 1rem;
  }

  .page-index__features-grid, .page-index__promo-grid, .page-index__game-grid {
    grid-template-columns: 1fr;
  }

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

  .page-index__app-image, .page-index__about-image {
    order: 1;
    margin-bottom: 30px;
  }

  .page-index__app-text, .page-index__about-text {
    order: 2;
    text-align: center;
  }

  .page-index__signup-title {
    font-size: 2rem;
  }

  .page-index__signup-description {
    font-size: 1.1rem;
  }

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

  .page-index {
    overflow-x: hidden;
  }
}

/* Ensure all content images meet the minimum size requirement */
.page-index__feature-icon, .page-index__promo-image, .page-index__game-thumbnail, .page-index__app-image, .page-index__about-image {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}