.page-index {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

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

.page-index__section-title,
.page-index__hero-title,
.page-index__cta-title {
  color: #000000; /* Main color for titles */\  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
  font-weight: bold;
}

.page-index__text-content,
.page-index__hero-description,
.page-index__cta-description,
.page-index__feature-description,
.page-index__category-description,
.page-index__promo-description,
.page-index__detail-description {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.1em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
  font-size: 1.05em;
  cursor: pointer;
}

.page-index__button--register {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Register text color */
  border: 2px solid #000000;
}

.page-index__button--register:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-index__button--login {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
  background-color: #e0a53c;
  border-color: #e0a53c;
}

.page-index__button--promo,
.page-index__button--download,
.page-index__button--cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__button--promo:hover,
.page-index__button--download:hover,
.page-index__button--cta:hover {
  background-color: #e0a53c;
  border-color: #e0a53c;
}

.page-index__button--details,
.page-index__button--view-all {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__button--details:hover,
.page-index__button--view-all:hover {
  background-color: #333333;
  border-color: #333333;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  padding: 0; /* Adjust padding as image will fill space */
  text-align: center;
  overflow: hidden;
  background-color: #000000; /* Fallback for hero section background */
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; /* Limit height for aesthetic */
}

.page-index__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  padding: 40px 20px;
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: #FFFFFF; /* White for hero title */
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFFFFF; /* White for hero description */
}

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

/* About Section (Why Choose s5com) */
.page-index__about-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* White background */
}

.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;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-index__feature-icon {
  width: 200px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-index__feature-description {
  font-size: 1em;
  color: #555555;
  text-align: left;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #f2f2f2;
}

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

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

.page-index__category-card:hover {
  transform: translateY(-10px);
}

.page-index__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__category-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-index__category-link {
  color: #000000; /* Black for category links */
  text-decoration: none;
  font-weight: bold;
}

.page-index__category-link:hover {
  color: #FCBC45;
}

.page-index__category-description {
  font-size: 0.95em;
  color: #555555;
  text-align: left;
}

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

.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;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__promo-title {
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-index__promo-link {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}

.page-index__promo-link:hover {
  color: #FCBC45;
}

.page-index__promo-description {
  font-size: 1em;
  color: #555555;
  text-align: left;
  margin-bottom: 20px;
}

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

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

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

.page-index__mobile-app-text {
  flex: 1;
  text-align: left;
}

.page-index__mobile-app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index__mobile-app-image {
  width: 400px; /* Fixed width for desktop, will be responsive */
  height: 600px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Details Section (Learn More) */
.page-index__details-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

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

.page-index__detail-card:hover {
  transform: translateY(-10px);
}

.page-index__detail-title {
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-index__detail-link {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}

.page-index__detail-link:hover {
  color: #FCBC45;
}

.page-index__detail-description {
  font-size: 1em;
  color: #555555;
  text-align: left;
  margin-bottom: 20px;
}

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

.page-index__cta-title {
  color: #FFFFFF; /* White for CTA title */
  font-size: 2.8em;
}

.page-index__cta-description {
  color: #f0f0f0; /* Slightly off-white for description */
  font-size: 1.2em;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__mobile-app-content {
    flex-direction: column;
  }
  .page-index__mobile-app-text,
  .page-index__mobile-app-image-wrapper {
    flex: none;
    width: 100%;
    text-align: center;
  }
  .page-index__mobile-app-image {
    width: 300px;
    height: 450px;
  }
}

@media (max-width: 768px) {
  .page-index__section-title,
  .page-index__hero-title,
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__button {
    padding: 10px 20px;
    font-size: 0.95em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-index__hero-content {
    padding: 30px 15px;
  }
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promo-section,
  .page-index__mobile-app-section,
  .page-index__details-section,
  .page-index__cta-section {
    padding: 60px 0;
  }
  .page-index__features-grid,
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__details-grid {
    grid-template-columns: 1fr;
  }
  .page-index__feature-icon,
  .page-index__category-image,
  .page-index__promo-image {
    width: 100%;
    height: 250px; /* Ensure images are not too small */
  }
  .page-index__mobile-app-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 450px;
  }

  /* Critical: Prevent content overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__container {
    padding: 0 15px;
  }
  .page-index__hero-content {
    width: 95%;
  }
  .page-index__feature-description,
  .page-index__category-description,
  .page-index__promo-description,
  .page-index__detail-description {
    text-align: center;
  }
}