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

.page-index__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #FFFFFF;
  overflow: hidden; /* Ensure no overflow from images */
}

.page-index__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 675px; /* Limit height for large images */
  overflow: hidden;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-index__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text readability */
  border-radius: 10px;
  color: #FFFFFF;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  line-height: 1.2;
}

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

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

.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, color 0.3s ease;
  border: 2px solid transparent;
}

.page-index__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border-color: #FCBC45;
}

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

.page-index__button--secondary {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
  border-color: #FFFFFF;
}

.page-index__button--secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

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

.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;
  padding-top: 60px;
}

.page-index__section-intro {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.page-index__section-outro {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 50px auto 0;
  line-height: 1.6;
}

.page-index__section-outro a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-index__section-outro a:hover {
  text-decoration: underline;
}

/* About Section */
.page-index__about-section {
  background-color: #f8f8f8;
  padding: 80px 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: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

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

.page-index__game-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-index__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-index__game-title {
  font-size: 1.5em;
  color: #000000;
  margin: 20px 0 10px;
}

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

.page-index__game-title a:hover {
  color: #FCBC45;
}

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

.page-index__game-card .page-index__button {
  margin-bottom: 20px;
}

.page-index__cta-banner {
  position: relative;
  margin-top: 60px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.page-index__cta-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.page-index__cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 0; /* Ensure overlay is behind content but above image */
}

.page-index__cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #FFFFFF;
  padding: 40px;
  max-width: 800px;
}

.page-index__cta-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #FCBC45;
}

.page-index__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Login Guide Section */
.page-index__login-guide-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

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

.page-index__step-image {
  width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-index__step-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
}

.page-index__guide-cta {
  text-align: center;
  margin-top: 60px;
}

.page-index__guide-cta-text {
  font-size: 1.2em;
  color: #000000;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

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

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

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

.page-index__security-item-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
}

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

.page-index__mobile-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-index__mobile-text {
  flex: 1;
  min-width: 300px;
}