:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login: #EA7C07;
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default dark text for light body background */
  background-color: var(--secondary-color); /* Matches body background from shared.css */
}

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

.page-index__section-title {
  font-size: 32px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-dark);
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't affect total width */
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-index__cta-button--primary:hover {
  background: #1e87b6; /* Darken primary color */
  border-color: #1e87b6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 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 space below fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #a7e0f8 100%); /* Light blue gradient */
  color: var(--text-light);
}

.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: 15px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

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

/* Module 1: Introduction Section */
.page-index__introduction-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-index__feature-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__feature-item img {
  width: 100%;
  height: auto;
  max-width: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__feature-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__feature-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* Module 2: Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-index__quick-access-section .page-index__section-title {
  color: var(--text-light);
}

.page-index__quick-access-section .page-index__section-description {
  color: var(--text-light);
}

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

.page-index__access-card {
  display: block;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: var(--text-light);
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-index__access-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.page-index__access-title {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--text-light);
}

.page-index__access-text {
  font-size: 15px;
  color: var(--text-light);
  opacity: 0.9;
}

/* Module 3: Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-index__game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index__game-card img {
  width: 100%;
  height: auto;
  max-width: 600px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-title {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index__game-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-title a:hover {
  color: #1e87b6; /* Darken primary color */
}

.page-index__game-text {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-index__btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-small:hover {
  background: #1e87b6; /* Darken primary color */
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-index__promotions-section .page-index__section-title {
  color: var(--text-light);
}

.page-index__promotions-section .page-index__section-description {
  color: var(--text-light);
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index__promo-card img {
  width: 100%;
  height: auto;
  max-width: 800px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__promo-title {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--text-light);
}

.page-index__promo-text {
  font-size: 15px;
  color: var(--text-light);
  opacity: 0.9;
  margin-bottom: 20px;
}