.page-index {
  font-family: Arial, sans-serif;
  color: #000000; /* Dark text for light background */
  background-color: #FFFFFF; /* Explicit background color */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-index__dark-background {
  background-color: #000000; /* Main color for dark sections */
  color: #FFFFFF; /* Light text for dark background */
}

.page-index__title--light {
  color: #FFFFFF;
}

.page-index__paragraph--light {
  color: #f0f0f0;
}

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

.page-index__hero-image-container {
  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;
  margin: 0 auto;
}

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

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

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

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

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

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

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

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

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

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

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

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

.page-index__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-index__about-section {
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-index__about-text-content {
  flex: 1;
}

.page-index__about-image-container {
  flex: 1;
  min-width: 200px;
}

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

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

.page-index__section-paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: justify;
}

.page-index__games-section {
  text-align: center;
}

.page-index__games-section .page-index__section-paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

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

.page-index__game-card {
  background-color: #1a1a1a; /* Slightly lighter black for cards */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.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;
  min-height: 200px;
}

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

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

.page-index__promo-section {
  background-color: #FFFFFF;
  color: #000000;
}

.page-index__promo-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row-reverse; /* Image on left, content on right */
  gap: 40px;
  align-items: center;
}

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

.page-index__promo-image-container {
  flex: 1;
  min-width: 200px;
}

.page-index__promo-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__app-download-section {
  text-align: center;
}

.page-index__app-download-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-index__app-download-image-container {
  flex: 1;
  min-width: 200px;
}

.page-index__app-download-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-index__app-download-content {
  flex: 1;
  text-align: left;
}

.page-index__security-section {
  background-color: #FFFFFF;
  color: #000000;
  text-align: center;
}

.page-index__security-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__feature-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-index__link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  display: inline-block;
}

.page-index__link:hover {
  text-decoration: underline;
}

.page-index__detail-pages-section {
  text-align: center;
}

.page-index__detail-pages-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr; /* Single column for detail pages */
  gap: 30px;
}

.page-index__detail-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
}

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

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

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

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

.page-index__cta-section {
  background-color: #FCBC45;
  color: #000000;
  text-align: center;
  padding: 80px 20px;
}

.page-index__cta-section .page-index__section-title {
  color: #000000;
}

.page-index__cta-section .page-index__section-paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__about-container,
  .page-index__promo-container,
  .page-index__app-download-container {
    flex-direction: column;
    text-align: center;
  }
  .page-index__about-text-content,
  .page-index__promo-content,
  .page-index__app-download-content {
    text-align: center;
  }
  .page-index__promo-container {
    flex-direction: column; /* Revert to column for smaller screens */
  }
  .page-index__promo-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-paragraph {
    font-size: 1em;
  }
  .page-index__game-categories {
    grid-template-columns: 1fr;
  }
  .page-index__security-features {
    grid-template-columns: 1fr;
  }
  /* Ensure images in content area do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__about-image,
  .page-index__promo-image,
  .page-index__app-download-image,
  .page-index__game-card-image,
  .page-index__feature-icon {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.95em;
  }
  .page-index__section-padding {
    padding: 40px 15px;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}