:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --accent-color: #EA7C07; /* For login/accent */
  --border-light: #e0e0e0;
  --bg-light: #f9f9f9;
}

.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Default body background is white */
}

/* General Section Styling */
.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

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

/* Background Color Handling */
.page-index__light-bg {
  background-color: var(--secondary-color); /* White background */
  color: var(--text-dark); /* Dark text */
}

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

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

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

.page-index__cta-button {
  background: var(--accent-color); /* Login color for main CTA */
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

.page-index__btn-primary:hover {
  background: #1f8bc2; /* Slightly darker blue */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-index__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Image base styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 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;
  padding-top: var(--header-offset, 120px); /* Apply header offset here */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 50%, #b3e0f2 100%); /* Lighter blue gradient for visual interest */
  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;
  width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 1000px; /* Constrain hero image width */
}

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

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

.page-index__hero-content h1 {
  font-size: 48px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

/* Module 1: Homepage Introduction */
.page-index__intro-section {
  padding: 80px 0;
}

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

.page-index__intro-item {
  background: var(--secondary-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

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

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

/* Module 2: Quick Access Links */
.page-index__quick-access-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-index__access-card {
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent white on blue background */
  backdrop-filter: blur(5px);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__access-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index__access-card img {
  
  
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 50%;
  background: var(--secondary-color);
  padding: 10px;
}

.page-index__access-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-index__access-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

/* Module 3: Core Game/Service Introduction */
.page-index__games-section {
  padding: 80px 0;
}

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

.page-index__tab-button {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrap */
}

.page-index__tab-button:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-index__tab-button.active {
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.4);
}

.page-index__game-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

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

.page-index__game-card {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  padding: 30px;
  align-items: center;
}

.page-index__game-card img {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__game-info {
  flex: 2;
  min-width: 300px;
  padding-left: 20px;
}