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

.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Ensure header offset for PC */
  padding-bottom: 60px;
  text-align: center;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  overflow: hidden; /* Prevent image overflow */
}

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background effect */
}

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

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

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

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

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

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

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

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

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

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

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

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

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

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

.page-index__button--small:hover {
  background-color: #E0A93F;
  transform: translateY(-1px);
}

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

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

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

/* About Section */
.page-index__about-section {
  background-color: #FFFFFF;
  padding: 60px 0;
}

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

.page-index__feature-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-index__feature-icon {
  width: 200px; /* Min size */
  height: 150px; /* Min size */
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

/* Games Showcase Section */
.page-index__games-showcase-section {
  background-color: #F2F2F2;
  padding: 60px 0;
}

.page-index__game-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-index__game-card {
  display: block;
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__game-title {
  font-size: 1.5em;
  color: #000000;
  padding: 15px 20px 5px;
}

.page-index__game-text {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
  line-height: 1.5;
}

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

/* Promotions Section */
.page-index__promotions-section {
  background-color: #FFFFFF;
  padding: 60px 0;
}

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

.page-index__promo-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

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

.page-index__promo-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__promo-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Mobile App Section */
.page-index__mobile-app-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 0;
}

.page-index__mobile-app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.page-index__mobile-app-text {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-index__mobile-app-text .page-index__section-title {
  color: #FFFFFF;
  text-align: left;
}

.page-index__mobile-app-text .page-index__section-description {
  color: #F0F0F0;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__mobile-app-image-wrapper {
  flex-shrink: 0;
  width: 300px;
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.page-index__mobile-app-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Security Section */
.page-index__security-section {
  background-color: #F2F2F2;
  padding: 60px 0;
}

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

/* Blog Section */
.page-index__blog-section {
  background-color: #FFFFFF;
  padding: 60px 0;
}

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

.page-index__blog-card {
  display: block;
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
}

.page-index__blog-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-index__blog-title {
  font-size: 1.4em;
  color: #000000;
  padding: 15px 20px 5px;
  line-height: 1.4;
}

.page-index__blog-excerpt {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
  line-height: 1.5;
}

/* Final CTA Section */
.page-index__final-cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.page-index__final-cta-section .page-index__section-title {
  color: #FFFFFF;
}

.page-index__final-cta-section .page-index__section-description {
  color: #F0F0F0;
}

.page-index__final-cta-section .page-index__cta-buttons {
  margin-top: 40px;
}

/* Copyright Section */
.page-index__copyright-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

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

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-bottom: 40px;
  }

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

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

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

  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }

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

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

  .page-index__section-description {
    margin-bottom: 30px;
  }

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

  .page-index__feature-icon,
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__blog-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
  }

  .page-index__mobile-app-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index__mobile-app-text {
    max-width: 100%;
    text-align: center;
  }

  .page-index__mobile-app-text .page-index__section-title,
  .page-index__mobile-app-text .page-index__section-description {
    text-align: center;
  }

  .page-index__mobile-app-image-wrapper {
    width: 250px;
    height: 333px;
  }

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

  .page-index__cta-buttons-inline .page-index__button {
    width: 80%;
  }

  /* Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

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

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

  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-index__feature-title,
  .page-index__game-title,
  .page-index__promo-title,
  .page-index__blog-title {
    font-size: 1.3em;
  }
}