/* style/index.css */

/* Variables (if any, typically in shared.css but useful for quick reference) */
:root {
  --primary-color: #26A9E0; /* Light Blue */
  --secondary-color: #FFFFFF; /* White */
  --login-button-color: #EA7C07; /* Orange for Login */
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for page-index (light background, dark text) */
.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); /* Matches body background from shared.css */
}

/* 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); /* Ensures content isn't hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Light blue to white gradient */
  overflow: hidden; /* Prevent image 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; /* Limit hero image width */
}

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

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

.page-index__hero-title {
  font-size: 2.8em;
  color: var(--text-dark); /* Dark text on light background */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.2em;
  color: var(--text-dark);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.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;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
}

.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: #208cb9; /* Darken primary color */
  box-shadow: 0 6px 15px rgba(38, 169, 224, 0.3);
  transform: translateY(-2px);
}

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

.page-index__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 6px 15px rgba(38, 169, 224, 0.3);
  transform: translateY(-2px);
}

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

.page-index__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-dark);
}

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

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

.page-index__text-block--light {
  color: var(--text-light);
}

/* Module 1: Intro Section */
.page-index__intro-section {
  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;
  padding: 25px;
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__feature-item img {
  width: 200px; /* Enforce minimum size for display */
  height: 200px; /* Enforce minimum size for display */
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter changes image color */
  display: block; /* Important for preventing overflow on mobile */
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

.page-index__quick-link-card {
  display: block;
  padding: 30px;
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on blue */
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

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

.page-index__quick-link-card p {
  font-size: 0.95em;
  opacity: 0.9;
  color: var(--text-light);
}

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

.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: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  filter: none; /* Ensure no CSS filter changes image color */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-index__game-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
}

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

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

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

.page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  margin-bottom: 25px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid var(--primary-color);
  box-sizing: border-box; /* Crucial for mobile responsiveness */
}

.page-index__btn-primary:hover {
  background: #208cb9; /* Darken primary color */
  transform: translateY(-2px);
}

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

.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); /* Slightly transparent white on blue */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  color: var(--text-light);
  padding-bottom: 20px;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
}

.page-index__promo-card img {
  width: 100%;
  
  object-fit: cover;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter changes image color */
  min-width: 200px; /* Minimum size requirement */
  min-
}

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

.page-index__promo-card p {
  font-size: 1em;
  color: var(--text-light);
  opacity: 0.9;
  padding: 0 20px;
}

.page-index__promo-button {
  margin-top: 50px;
}

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

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

.page-index__info-card {
  text-align: center;
  padding: 25px;
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

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

.page-index__info-card img {
  width: 200px; /* Enforce minimum size for display */
  height: 200px; /* Enforce minimum size for display */
  object-fit: contain;
  margin-bottom: 15px;
  filter: none; /* Ensure no CSS filter changes image color */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__card-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index__info-card p {
  font-size: 1em;
  color: var(--text-dark);
}

.page-index__support-button {
  margin-top: 50px;
}

/* Module 6: FAQ Section */
.page-index__faq-section {
  background: var(--primary-color);
  padding: 80px 0;
}

.page-index__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}