.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
}

.page-index__section-title--white {
  color: #FFFFFF;
}

.page-index__text-block {
  font-size: 17px;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #333333;
}

.page-index__text-block--white {
  color: #f0f0f0;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #017439;
  color: #ffffff; /* Ensuring white text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-index__cta-button:hover {
  background: #005f2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-primary {
  background: #017439;
  color: #ffffff; /* Ensuring white text for contrast */
}

.page-index__btn-primary:hover {
  background: #005f2e;
}

.page-index__btn-register {
  background: #C30808;
  color: #FFFFFF; /* Override to white for contrast with red background */
}

.page-index__btn-register:hover {
  background: #9a0606;
}

.page-index__btn-login {
  background: #C30808;
  color: #FFFFFF; /* Override to white for contrast with red background */
}

.page-index__btn-login:hover {
  background: #9a0606;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #017439, #005f2e);
  color: #FFFFFF;
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-index__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Using yellow for title as per custom color rule, on dark green background */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__hero-cta-buttons .page-index__cta-button {
  margin-top: 0;
  padding: 18px 45px;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-index__intro-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-index__intro-feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__intro-feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__intro-feature-item img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 4px solid #017439;
  padding: 10px;
}

.page-index__intro-feature-item h3 {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
}

.page-index__intro-feature-item p {
  font-size: 16px;
  color: #555555;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #017439, #005f2e);
  color: #FFFFFF;
}

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

.page-index__quick-link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 25px;
  background: #FFFFFF;
  color: #017439;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__quick-link-item:hover {
  background: #e0e0e0;
  color: #005f2e;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-index__quick-link-item.page-index__btn-register, 
.page-index__quick-link-item.page-index__btn-login {
  background: #C30808;
  color: #FFFFFF; /* Ensuring white text for contrast */
}

.page-index__quick-link-item.page-index__btn-register:hover,
.page-index__quick-link-item.page-index__btn-login:hover {
  background: #9a0606;
}

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