.page-index {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
}

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

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #000000; /* Main dark background */
  position: relative;
  overflow: hidden;
}

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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, color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
  min-width: 150px;
  text-align: center;
}

.page-index__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-index__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  transform: translateY(-3px);
}

.page-index__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

.page-index__section-title {
  font-size: 2.5em;
  color: #FCBC45;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

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

.page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__app-download-section, .page-index__security-section, .page-index__blog-section, .page-index__cta-section {
  padding: 60px 0;
  background-color: #000000;
}

.page-index__about-section {
  background-color: #1a1a1a;
}

.page-index__games-section {
  background-color: #0a0a0a;
}

.page-index__promotions-section {
  background-color: #1a1a1a;
}

.page-index__app-download-section {
  background-color: #0a0a0a;
}

.page-index__security-section {
  background-color: #1a1a1a;
}

.page-index__blog-section {
  background-color: #0a0a0a;
}

.page-index__cta-section {
  background-color: #222222;
  padding: 80px 0;
}

.page-index__button--learn-more, .page-index__button--view-all {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 30px;
}

.page-index__button--learn-more:hover, .page-index__button--view-all:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FCBC45;
  color: #000000;
  border: 1px solid #FCBC45;
}

.page-index__button--small:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-index__game-categories, .page-index__promo-cards, .page-index__blog-posts {
  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__blog-card {
  background-color: #111111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #333333;
}

.page-index__game-card-image, .page-index__promo-card-image, .page-index__blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #333333;
}

.page-index__game-card-title, .page-index__promo-card-title, .page-index__blog-card-title {
  font-size: 1.5em;
  color: #FCBC45;
  margin: 20px 15px 10px 15px;
}

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

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

.page-index__game-card-description, .page-index__promo-card-description, .page-index__blog-card-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-index__game-card .page-index__button, .page-index__promo-card .page-index__button, .page-index__blog-card .page-index__button {
  margin: 0 15px 20px 15px;
}

.page-index__app-download-section .page-index__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-index__app-content {
  flex: 1;
}

.page-index__app-content .page-index__section-title {
  text-align: left;
}

.page-index__app-content .page-index__section-text {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  min-width: 200px;
  min-height: 200px;
}

.page-index__app-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: flex-start;
}

.page-index__button--download {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-index__button--download:hover {
  background-color: transparent;
  color: #FFFFFF;
}

.page-index__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  display: block;
  max-width: 300px;
  margin: 40px auto 0 auto;
}

.page-index__button--large:hover {
  background-color: transparent;
  color: #FCBC45;
}

@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__app-download-section .page-index__container {
    flex-direction: column;
    text-align: center;
  }
  .page-index__app-content .page-index__section-title,
  .page-index__app-content .page-index__section-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .page-index__app-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 250px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-text {
    font-size: 0.95em;
  }
  .page-index__game-categories, .page-index__promo-cards, .page-index__blog-posts {
    grid-template-columns: 1fr;
  }
  .page-index__app-download-section .page-index__container {
    gap: 30px;
  }
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-image {
    max-width: 100%; /* Ensure hero image is responsive */
    height: auto;
  }
  .page-index__game-card-image, .page-index__promo-card-image, .page-index__blog-card-image, .page-index__app-image {
    min-width: 200px;
    min-height: 200px;
  }
}