:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9; /* Slightly off-white for sections */
  --background-dark: #26A9E0; /* Using primary color for dark sections */
  --accent-color-login: #EA7C07; /* Custom color for login */
}

/* Base styles for the page content, ensuring contrast with default body background (white) */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Default background for main content, consistent with body */
}

/* Fixed Header Spacing */
.page-index__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* --- HERO Section --- */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Adjusted to only have top padding from header offset */
  background: linear-gradient(135deg, var(--primary-color) 0%, #aee0f2 100%); /* Light blue gradient */
  color: var(--text-light); /* Light text on dark/gradient background */
}

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

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 900px; /* Limit hero image width for better composition */
}

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

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

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  text-align: center;
}

.page-index__cta-button--register {
  background: var(--accent-color-login); /* Login custom color */
  color: var(--text-light);
  border: 2px solid var(--accent-color-login);
}

.page-index__cta-button--register:hover {
  background: #d46b00; /* Slightly darker orange */
  border-color: #d46b00;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-index__cta-button--login:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- General Section Styles --- */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

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

.page-index__dark-bg .page-index__section-title,
.page-index__dark-bg .page-index__section-description {
  color: var(--text-light);
}

.page-index__dark-bg {
  background-color: var(--background-dark); /* Primary color as dark background */
  color: var(--text-light);
}

.page-index__light-bg {
  background-color: var(--background-light); /* Light background for contrast */
  color: var(--text-dark);
}

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

.page-index__intro-content p {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-index__feature-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  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(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-index__feature-item h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index__feature-item p {
  font-size: 0.95em;
  color: var(--text-dark);
}

/* --- Module 2: Quick Access Section --- */
.page-index__quick-access-section {
  padding: 60px 0;
}

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

.page-index__quick-link-card {
  display: block;
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent white on primary background */
  padding: 25px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-light);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index__quick-link-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index__quick-link-card h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-index__quick-link-card p {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.9);
}

/* --- Module 3: Games Section --- */
.page-index__games-section {
  padding: 60px 0;
}

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

.page-index__game-card {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index__game-card h3 {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  color: var(--primary-color);
}

.page-index__game-card h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-index__game-card h3 a:hover {
  color: #1a7bb2; /* Slightly darker primary color */
}

.page-index__game-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  padding: 0 20px 20px 20px;
}

/* --- Module 4: Promotions Section --- */
.page-index__promotions-section {
  padding: 60px 0;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__promo-card img {
  width: 100%;
   /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index__promo-card h3 {
  font-size: 1.3em;
  margin: 20px 20px 10px 20px;
  color: var(--text-light);
}

.page-index__promo-card p {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 20px 20px 20px;
}

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

.page-index__security-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-index__security-support-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}