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

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

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

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

.page-index__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-index__inline-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-index__inline-link--light {
  color: #FFFF00; /* Yellow for better contrast on dark green */
}

.page-index__inline-link--dark {
  color: #FFFF00; /* Yellow for better contrast on dark green */
}

/* Buttons */
.page-index__cta-button,
.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-index__btn-primary:hover {
  background: #005a2e;
  border-color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  border-color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Custom colors for Login/Register buttons */
.page-index__btn-register {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
  margin-right: 15px;
}

.page-index__btn-register:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-index__btn-login {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-index__btn-login:hover {
  background: #a30606;
  border-color: #a30606;
}

/* Image styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 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, #005a2e);
  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;
  box-shadow: 0 8px 25px 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: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

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

.page-index__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* Intro Section */
.page-index__intro-section {
  padding: 80px 0;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
  background: #017439;
  color: #ffffff;
}

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

.page-index__quick-link-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.page-index__quick-link-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
}

.page-index__quick-link-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFF00; /* Yellow for contrast */
}

.page-index__quick-link-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Core Games Section */
.page-index__core-games-section {
  padding: 80px 0;
}

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

.page-index__game-category-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__game-category-card img {
  width: 100%;
  height: 250px; /* Fixed height for image consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__game-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
  padding: 0 20px;
}

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

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

.page-index__game-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 25px;
  padding: 0 20px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background: #017439;
  color: #ffffff;
}

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

.page-index__promotion-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index__promotion-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
}

.page-index__promotion-card img {
  width: 100%;
  height: 200px; /* Fixed height for image consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__promotion-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFF00; /* Yellow for contrast */
  padding: 0 20px;
}

.page-index__promotion-description {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
  padding: 0 20px;
}

/* Security & Support Section */
.page-index__security-support-section {
  padding: 80px 0;
}

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