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

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #0A2342; /* Primary dark blue background */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-index__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
  z-index: 1;
}

.page-index__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

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

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

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

.page-index__btn--primary {
  background-color: #FFD700; /* Gold primary button */
  color: #0A2342; /* Dark blue text on gold */
}

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

.page-index__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

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

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-index__hero-image-wrapper {
  width: 100%;
  max-width: 1000px; /* Constrain hero image width */
  margin-top: 50px;
  z-index: 0;
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for section titles */
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.3;
}

.page-index__section-subtitle {
  font-size: 1.2em;
  color: #cccccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

.page-index__about-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-index__about-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__about-text {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
}

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

.page-index__about-image-wrapper {
  flex: 1;
  min-width: 400px; /* Ensure image is not too small */
}

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

.page-index__games-section {
  padding: 80px 20px;
  background-color: #0A2342;
  color: #ffffff;
}

.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
}

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index__game-card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

.page-index__game-card-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index__view-all-games {
  text-align: center;
  margin-top: 40px;
}

.page-index__promotions-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
}

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

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

.page-index__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

.page-index__promo-card-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-index__why-choose-us-section {
  padding: 80px 20px;
  background-color: #0A2342;
  color: #ffffff;
}

.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__feature-icon {
  width: 200px; /* Ensure minimum size for actual image */
  height: 200px; /* Ensure minimum size for actual image */
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Slightly brighten icons for visibility, NOT changing color */
}

.page-index__feature-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__feature-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.7;
  text-align: left;
}

.page-index__responsible-gaming-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
}

.page-index__responsible-gaming-text {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-index__app-download-section {
  padding: 80px 20px;
  background-color: #0A2342;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-index__app-content {
  flex: 1;
  max-width: 600px;
}

.page-index__app-platforms {
  font-size: 1em;
  color: #cccccc;
  margin-top: 20px;
}

.page-index__app-image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image is not too small */
}

.page-index__app-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 400px; /* Max width for phone image */
  margin: 0 auto;
}

.page-index__cta-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-index__hero-section {
    flex-direction: row;
    text-align: left;
    padding: 100px 50px;
  }

  .page-index__hero-content {
    margin-bottom: 0;
    margin-right: 50px;
  }

  .page-index__hero-actions {
    justify-content: flex-start;
  }

  .page-index__about-grid {
    flex-direction: row;
  }

  .page-index__app-download-section {
    flex-direction: row;
    text-align: left;
  }
}

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

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

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

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

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

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

  .page-index__about-grid {
    flex-direction: column;
  }

  .page-index__about-image-wrapper {
    min-width: unset;
  }

  .page-index__app-download-section {
    flex-direction: column;
  }

  /* Critical: prevent content overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure content area does not cause horizontal scroll */
  .page-index {
    overflow-x: hidden;
  }
}