.page-index {
  color: #333333; /* Default text color for light body background */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-index__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold */
  color: #0A2463; /* Dark Blue */
  border: 2px solid #FFD700;
}

.page-index__button--primary:hover {
  background-color: #e6c200; /* Darker Gold */
  border-color: #e6c200;
}

.page-index__button--secondary {
  background-color: transparent;
  color: #0A2463; /* Dark Blue */
  border: 2px solid #0A2463;
}

.page-index__button--secondary:hover {
  background-color: #0A2463;
  color: #ffffff;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px);
  background-color: #0A2463; /* Dark Blue background for hero */
  color: #ffffff;
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 40px 20px;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly transparent to let text stand out */
  z-index: 0;
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold title */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* About Section */
.page-index__about-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-index__game-card {
  background-color: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.page-index__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-index__game-card-title {
  font-size: 1.5em;
  color: #0A2463;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-index__game-card-title a:hover {
  text-decoration: underline;
}

.page-index__game-card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
  line-height: 1.5;
}

/* Promo Section */
.page-index__promo-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
}

.page-index__promo-section .page-index__section-title {
  color: #FFD700;
}

.page-index__promo-section .page-index__section-title::after {
  background-color: #ffffff;
}

.page-index__promo-section .page-index__section-text {
  color: #e0e0e0;
}

.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-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index__promo-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-index__promo-card-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-index__promo-card-title a:hover {
  text-decoration: underline;
}

.page-index__promo-card-description {
  font-size: 1em;
  color: #cccccc;
  padding: 0 15px 20px;
  line-height: 1.5;
}

.page-index__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

/* Download Section */
.page-index__download-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-index__download-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
}

.page-index__download-image {
  max-width: 350px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.page-index__download-text {
  max-width: 500px;
  text-align: left;
}

.page-index__download-text p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: center;
}

.page-index__download-text .page-index__button {
  margin-right: 15px;
  margin-bottom: 15px;
}

/* Security Section */
.page-index__security-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-index__security-content {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
}

.page-index__security-image {
  max-width: 450px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-index__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 500px;
}

.page-index__security-list li {
  background-color: #f0f5f8;
  margin-bottom: 15px;
  padding: 15px 20px;
  border-left: 5px solid #FFD700;
  border-radius: 8px;
  font-size: 1.1em;
  color: #0A2463;
}

.page-index__security-actions {
  text-align: center;
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Call to Action Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
  text-align: center;
}

.page-index__cta-section .page-index__section-title {
  color: #FFD700;
}

.page-index__cta-section .page-index__section-title::after {
  background-color: #ffffff;
}

.page-index__cta-section .page-index__section-text {
  color: #e0e0e0;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-text {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 300px;
  }
  .page-index__game-grid, .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image, .page-index__promo-card-image {
    height: 180px;
  }
  .page-index__download-content, .page-index__security-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-index__download-image, .page-index__security-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
  }
  .page-index__download-text, .page-index__security-list {
    text-align: center;
    max-width: 100%;
  }
  .page-index__download-text p {
    text-align: center;
  }
  .page-index__download-text .page-index__button {
    margin-right: 0;
  }
  .page-index__security-list li {
    text-align: left;
  }
  .page-index__security-actions {
    flex-direction: column;
    gap: 15px;
  }
  /* Mobile content area images must be constrained */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index {
    overflow-x: hidden;
  }
}

/* Ensure all content area images are at least 200px wide/tall and not filtered */
.page-index__hero-image,
.page-index__game-card-image,
.page-index__promo-card-image,
.page-index__download-image,
.page-index__security-image {
  min-width: 200px;
  min-height: 200px;
  filter: none; /* Absolutely no CSS filters to change image colors */
}

/* Override specific image sizes for mobile if needed to prevent shrinking below 200px, but generally rely on max-width: 100% and height: auto */
@media (max-width: 768px) {
  .page-index__game-card-image,
  .page-index__promo-card-image {
    width: 100%; /* Occupy full card width */
    height: 200px; /* Maintain minimum height */
    object-fit: cover;
  }
  .page-index__download-image,
  .page-index__security-image {
    width: 100%;
    height: auto;
    min-height: 200px; /* Ensure minimum height */
  }
}