.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);
}

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

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

.page-index__section--dark-bg {
  background-color: #000000; /* Main color as background */
  color: #ffffff; /* Light text for dark background */
}

.page-index__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #000000; /* Default dark title for light section */
}

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

.page-index__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-index__section-subtitle--light {
  color: #cccccc;
}

.page-index__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-index__text-content {
  flex: 1;
  min-width: 300px;
}

.page-index__text-content p {
  margin-bottom: 15px;
}

.page-index__text-content--light p {
  color: #e0e0e0;
}

.page-index__image {
  flex: 1;
  min-width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.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-top: 20px;
  text-align: center;
}

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

.page-index__button--primary:hover {
  background-color: #e6a73c;
  border-color: #e6a73c;
}

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

.page-index__button--secondary:hover {
  background-color: #FCBC45;
  color: #000000;
}

/* Hero Section */
.page-index__hero-section {
  padding: 80px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #000000;
  color: #ffffff;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 1;
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

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

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

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

.page-index__hero-button {
  font-size: 1.1em;
  padding: 15px 30px;
  border-radius: 50px;
}

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

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

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

.page-index__hero-button--login:hover {
  background-color: #e6a73c;
  border-color: #e6a73c;
}

.page-index__hero-button--download {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-index__hero-button--download:hover {
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-index__game-card {
  background-color: #1a1a1a; /* Darker background for cards on dark section */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-index__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

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

.page-index__game-card-description {
  color: #e0e0e0;
  font-size: 0.95em;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Security Grid */
.page-index__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-index__security-item {
  text-align: center;
  padding: 30px;
  background-color: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index__security-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__security-item-title {
  font-size: 2em;
  margin-bottom: 15px;
}

.page-index__security-item-title--light {
  color: #FCBC45;
}

.page-index__security-item-description--light {
  color: #e0e0e0;
}

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

.page-index__feature-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

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

/* 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: 2.2em;
  }
}

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

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

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

  .page-index__hero-button {
    width: 80%;
    max-width: 300px;
  }

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

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

  .page-index__content-wrapper {
    flex-direction: column;
  }

  .page-index__image {
    max-width: 100%;
    height: auto; /* Ensures images are responsive and don't overflow */
  }

  .page-index__game-grid, .page-index__security-grid, .page-index__feature-grid {
    grid-template-columns: 1fr;
  }

  /* Ensure all content area images are responsive */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }
}

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

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

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

  .page-index__hero-button {
    width: 90%;
  }
}