.page-index {
  background-color: var(--background-color, #FFFFFF);
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: var(--primary-color, #017439);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-index__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__small-text {
  font-size: 0.9em;
  color: #ccc;
}

/* 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);
  background: linear-gradient(135deg, #017439, #005a2b); /* Darker gradient for hero */
  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: 8px;
  object-fit: cover;
}

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

.page-index__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for emphasis on title */
  font-weight: 900;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login button text color */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-index__feature-item {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  background: #f9f9f9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__feature-item img {
  
  
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__feature-item h3 {
  font-size: 1.5em;
  color: var(--primary-color, #017439);
  margin-bottom: 15px;
}

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

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 20px;
  background: var(--primary-color, #017439);
  color: #FFFFFF;
  text-align: center;
}

.page-index__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login button text color */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary:hover {
  background: #a30606;
  transform: translateY(-2px);
}

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

.page-index__game-category {
  margin-bottom: 60px;
}

.page-index__game-category-title {
  font-size: 2em;
  color: var(--primary-color, #017439);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-index__game-category-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color, #017439);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-index__game-card {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.page-index__game-card--reverse {
  flex-direction: row-reverse;
}