/* General Styling for .page-index scope */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8; /* Light background for the main content area */
}

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

.page-index__section-title {
  font-size: 36px;
  color: #8B0000; /* Primary color for main titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* CTA Buttons */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: #8B0000; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #8B0000;
}

.page-index__btn-primary:hover {
  background: #a00000;
  border-color: #a00000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  background: #FFD700; /* Secondary brand color */
  color: #333333;
  border: 2px solid #FFD700;
}

.page-index__btn-secondary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-link {
  display: inline-block;
  color: #8B0000;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-index__btn-link:hover {
  color: #a00000;
  text-decoration: underline;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Image styling */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* 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 offset */
  background: linear-gradient(135deg, #8B0000, #FFD700); /* Gradient background for visual appeal */
  overflow: hidden; /* Ensure no overflow issues */
}

.page-index__hero-container {
  position: relative;
  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 30px rgba(0, 0, 0, 0.3);
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff; /* White text for dark background */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-index__hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__hero-content p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-index__hero-cta-buttons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

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

.page-index__feature-item {
  text-align: center;
  background: #fdfdfd;
  padding: 30px;
  border-radius: 10px;
  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(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__feature-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px; /* Ensure minimum image size */
  object-fit: cover;
}

.page-index__feature-title {
  font-size: 24px;
  color: #8B0000;
  margin-bottom: 15px;
}

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

/* Module 2: Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: #8B0000; /* Primary brand color background */
  color: #ffffff; /* White text for dark background */
}

.page-index__quick-access-section .page-index__section-title,
.page-index__quick-access-section .page-index__section-description {
  color: #ffffff;
}

.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;
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-index__quick-link-card .page-index__card-title {
  font-size: 22px;
  margin-bottom: 10px;
  color: #FFD700; /* Secondary color for titles */
}

.page-index__quick-link-card p {
  font-size: 15px;
  color: #f0f0f0;
}

/* Module 3: Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #f0f0f0; /* Light grey background */
}

.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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 0; /* Remove border-radius from image inside card */
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px; /* Ensure minimum image size */
}

.page-index__game-card .page-index__game-title {
  font-size: 22px;
  color: #8B0000;
  padding: 20px 20px 10px 20px;
  margin: 0;
}

.page-index__game-card .page-index__game-title a {
  color: #8B0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-card .page-index__game-title a:hover {
  color: #a00000;
}

.page-index__game-card .page-index__game-description {
  font-size: 15px;
  color: #555555;
  padding: 0 20px 15px 20px;
  flex-grow: 1;
}

.page-index__game-card .page-index__btn-link {
  align-self: flex-start;
  margin: 0 20px 20px 20px;
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #8B0000; /* Primary brand color background */
  color: #ffffff;
}

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__section-description {
  color: #ffffff;
}

.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);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 0;
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px; /* Ensure minimum image size */
}

.page-index__promo-card .page-index__promo-title {
  font-size: 22px;
  color: #FFD700; /* Secondary color for titles */
  padding: 20px 20px 10px 20px;
  margin: 0;
}

.page-index__promo-card .page-index__promo-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promo-card .page-index__promo-title a:hover {
  color: #e6c200;
}

.page-index__promo-card .page-index__promo-text {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 20px 15px 20px;
  flex-grow: 1;
}

.page-index__promo-card .page-index__btn-link {
  align-self: flex-start;
  margin: 0 20px 20px 20px;
  color: #FFD700;
}

.page-index__promo-card .page-index__btn-link:hover {
  color: #e6c200;
}

/* Module 5: Security & Customer Service */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
}

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

.page-index__info-card {
  text-align: center;
  background: #fdfdfd;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__info-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px; /* Ensure minimum image size */
  object-fit: cover;
}

.page-index__info-card .page-index__card-title {
  font-size: 24px;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-index__info-card .page-index__card-text {
  font-size: 16px;
  color: #555555;
}

/* Module 6: FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #8B0000; /* Primary brand color background */
  color: #ffffff;
}

.page-index__faq-section .page-index__section-title,
.page-index__faq-section .page-index__section-description {
  color: #ffffff;
}