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

.page-index__section-padding {
  padding: 80px 20px;
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__section-title--light {
  color: #FFFFFF;
}

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

.page-index__section-description--light {
  color: #CCCCCC;
}

.page-index__btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.page-index__btn--register {
  background-color: #FFFFFF; /* Custom color for Register */
  color: #000000;
  border-color: #FFFFFF;
}

.page-index__btn--register:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-index__btn--login {
  background-color: #FCBC45; /* Custom color for Login */
  color: #000000;
  border-color: #FCBC45;
  margin-left: 20px;
}

.page-index__btn--login:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-index__btn--primary {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.page-index__btn--primary:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-index__btn--secondary {
  background-color: transparent;
  color: #000000;
  border-color: #000000;
}

.page-index__btn--secondary:hover {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__btn--outline {
  background-color: transparent;
  color: #FCBC45;
  border-color: #FCBC45;
  padding: 10px 20px;
  font-size: 1em;
}

.page-index__btn--outline:hover {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-index__bg--dark {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__text--light {
  color: #CCCCCC;
}

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure header offset for PC */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-index__hero-title {
  font-size: 3.8em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-index__hero-description {
  font-size: 1.4em;
  color: #555555;
  margin-bottom: 40px;
}

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

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: scale(1.1); /* Slight zoom for background effect */
}

/* About Section */
.page-index__about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-index__about-grid p {
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 1.1em;
}

.page-index__about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Games Section */
.page-index__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__game-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index__game-card .page-index__card-title {
  font-size: 1.8em;
  color: #FCBC45;
  margin: 20px 0 10px;
}

.page-index__game-card .page-index__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-index__game-card p {
  color: #CCCCCC;
  padding: 0 20px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Promo Section */
.page-index__promo-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-index__promo-content p {
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 1.1em;
}

.page-index__promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.page-index__promo-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Security Section */
.page-index__security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-index__security-grid p {
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 1.1em;
}

.page-index__security-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Why Choose Section */
.page-index__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-index__feature-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__feature-card .page-index__card-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
}

.page-index__feature-card p {
  color: #555555;
  line-height: 1.5;
  font-size: 1em;
}

.page-index__why-choose-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Mobile App Section */
.page-index__mobile-app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-index__mobile-app-grid p {
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 1.1em;
}

.page-index__mobile-app-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Blog Section */
.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__blog-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__blog-card img {
  width: 100%;
  height: 250px; /* Fixed height for blog images */
  object-fit: cover;
  display: block;
}

.page-index__blog-card .page-index__card-title {
  font-size: 1.4em;
  color: #000000;
  margin: 20px 20px 10px;
  line-height: 1.3;
}

.page-index__blog-card .page-index__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-index__blog-card p {
  color: #555555;
  padding: 0 20px;
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 1em;
}

.page-index__blog-footer {
  text-align: center;
  margin-top: 50px;
}

/* CTA Section */
.page-index__cta-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
}

.page-index__cta-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-index__cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-index__cta-image img {
  width: 100%;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: scale(1.1); /* Slight zoom for background effect */
}

/* Copyright Section */
.page-index__copyright-section {
  background-color: #000000;
  padding: 30px 20px;
  text-align: center;
}

.page-index__copyright-text {
  color: #CCCCCC;
  font-size: 0.9em;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-index__about-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-index__about-content {
    order: 1; /* Text first on desktop */
  }
  .page-index__about-image {
    order: 2;
  }

  .page-index__promo-content {
    grid-template-columns: 1fr 1fr;
  }

  .page-index__security-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-index__security-image {
    order: 2; /* Image right on desktop */
  }
  .page-index__security-content {
    order: 1;
  }

  .page-index__mobile-app-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-index__mobile-app-image {
    order: 1;
  }
  .page-index__mobile-app-content {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn--login {
    margin-left: 0;
  }

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

  .page-index__section-padding {
    padding: 40px 15px;
  }

  .page-index__container {
    padding: 0 15px;
  }

  .page-index__game-card img,
  .page-index__blog-card img {
     /* Adjust image height for smaller screens */
  }

  .page-index__game-card .page-index__card-title,
  .page-index__blog-card .page-index__card-title {
    font-size: 1.3em;
  }

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

  /* Mobile content area images must be constrained */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure no horizontal scroll for the main content area */
  .page-index {
    overflow-x: hidden;
  }
}