.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default background, overridden by shared.css var(--secondary-color) for body */
}

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

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

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

.page-index__section-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* 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); /* Ensure content is below fixed header */
  background-color: #017439; /* Fallback for hero section background */
  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: 48px;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom font color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-register {
  background: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom font color for Register */
  border: 2px solid #FFFF00;
}

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

.page-index__btn-login {
  background: #C30808; /* Custom color for Login */
  color: #FFFF00; /* Custom font color for Login */
  border: 2px solid #FFFF00;
}

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

/* Introduction Section */
.page-index__introduction-section {
  background-color: #f8f8f8;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index__feature-item {
  background: #ffffff;
  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__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__feature-item img {
  
  
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-index__feature-item p {
  font-size: 16px;
  color: #666666;
}

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

.page-index__quick-access-section .page-index__section-title,
.page-index__quick-access-section .page-index__section-description {
  color: #ffffff;
}

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

.page-index__quick-link-card {
  display: block;
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__quick-link-card img {
  width: 100%;
  
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__quick-link-card h3 {
  font-size: 20px;
  color: #017439;
  margin-bottom: 10px;
}

.page-index__quick-link-card p {
  font-size: 15px;
  color: #666666;
}

/* Core Games Section */
.page-index__core-games-section {
  background-color: #f0f0f0;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-index__game-tabs {
  margin-top: 50px;
}

.page-index__tab-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-index__tab-button {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #017439;
  font-weight: bold;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__tab-button:hover {
  background: #e0e0e0;
}

.page-index__tab-button.active {
  background: #017439;
  color: #ffffff;
  border-color: #017439;
}

.page-index__tab-content {
  display: none;
}

.page-index__tab-content.active {
  display: block;
}

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

.page-index__game-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
}