:root {
  --primary-color: #0A2463; /* Deep Tech Blue */
  --secondary-color: #FFD700; /* Bright Gold */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --bg-light: #f8f8f8;
  --bg-dark: #0A2463; /* Using primary color as dark background for contrast */
  --border-color: #e0e0e0;
  --header-offset: 120px; /* Default value, overridden by shared.css */
}

/* Base styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background: var(--bg-light); /* Assuming body background is light */
}

.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: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-index__section-description--light {
  color: #cccccc;
}

/* CTA Button Base Styles */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

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

.page-index__cta-button--primary:hover {
  background: #071a4f; /* Slightly darker primary */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.page-index__cta-button--secondary:hover {
  background: #e6c200; /* Slightly darker secondary */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.page-index__btn-primary { /* For smaller buttons in modules */
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.page-index__btn-primary:hover {
  background: #071a4f;
  transform: translateY(-1px);
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.page-index__btn-secondary:hover {
  background: #e6c200;
  transform: translateY(-1px);
}

/* 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 spacing */
  background: linear-gradient(135deg, var(--primary-color), #000000); /* Darker gradient for hero background */
  color: var(--text-color-light);
  overflow: hidden; /* Ensure no overflow */
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above any background effects */
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  filter: none; /* Ensure no filter changes image color */
}

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

.page-index__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 22px;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #f0f0f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

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


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

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

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

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

.page-index__intro-heading {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index__intro-text {
  font-size: 16px;
  color: #555555;
}

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

.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 {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-color-light);
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__quick-link-card:hover {
  background: rgba(255, 215, 0, 0.2); /* Gold tint on hover */
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__quick-link-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

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

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

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