:root {
  --primary-color: #CC0000; /* Deep Red */
  --secondary-color: #FFD700; /* Gold */
  --text-dark: #000000;
  --text-light: #FFFFFF;
  --bg-light: #f8f8f8;
  --bg-dark: #222222;
  --border-color: #e0e0e0;
}

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

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

.page-index h1,
.page-index h2,
.page-index h3,
.page-index h4,
.page-index h5,
.page-index h6 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index h1 a,
.page-index h2 a,
.page-index h3 a {
  color: inherit; /* Ensure links in headings inherit color */
  text-decoration: none;
}

.page-index h1 {
  font-size: 3em;
  text-align: center;
  color: var(--text-light); /* H1 in hero section */
}

.page-index h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
}

.page-index h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-index p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

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

.page-index a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* CTA Button styles */
.page-index .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-index .btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index .btn-small:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

/* Sections padding */
.page-index section {
  padding: 60px 0;
}

.page-index section:nth-child(even) {
  background-color: var(--bg-light);
}

.page-index section:nth-child(odd) {
  background-color: #ffffff;
}

/* HERO Section */
.page-index .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px; /* Adjusted padding for better fit */
  background-color: var(--bg-dark); /* Dark background for text contrast */
}

.page-index .hero-container {
  position: relative;
  width: 100%;
  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 10px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index .hero-content h1 {
  color: var(--text-light); /* White text on dark background */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.page-index .hero-content p {
  color: #e0e0e0; /* Lighter text for paragraphs */
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-index .hero-content p a {
  color: var(--secondary-color); /* Gold links */
}

.page-index .hero-content p a:hover {
  text-decoration: underline;
}

/* Module 1: Introduction Section */
.page-index .intro-section {
  background-color: #ffffff;
  padding: 80px 0;
}

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

.page-index .feature-item {
  text-align: center;
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.page-index .feature-item img {
  width: 100%; /* Ensure images are large */
  max-width: 400px; /* Max width for feature images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 4px;
  object-fit: cover;
}

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

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

/* Module 2: Quick Access Links */
.page-index .quick-access-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0;
}

.page-index .quick-access-section h2 {
  color: var(--secondary-color);
}

.page-index .quick-access-section p {
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 40px;
}

.page-index .quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.page-index .quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #333333;
  padding: 25px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index .quick-link-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background-color: var(--primary-color);
}

.page-index .quick-link-card img {
  width: 100%; /* Ensure images are large */
  max-width: 250px; /* Max width for quick access images */
  height: auto;
  margin-bottom: 15px;
  border-radius: 4px;
  object-fit: cover;
}

.page-index .quick-link-card h3 {
  color: var(--secondary-color);
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-index .quick-link-card p {
  color: #cccccc;
  font-size: 0.9em;
}

/* Module 3: Core Game/Service Introduction */
.page-index .games-section {
  background-color: #ffffff;
  padding: 80px 0;
}

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

.page-index .category-item {
  text-align: center;
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.page-index .category-item img {
  width: 100%; /* Ensure images are large */
  max-width: 400px; /* Max width for game category images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 4px;
  object-fit: cover;
}

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

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

/* Module 4: Promotions */
.page-index .promotions-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0;
}

.page-index .promotions-section h2 {
  color: var(--secondary-color);
}

.page-index .promotions-section p {
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 40px;
}

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