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

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  min-height: 100%;
  z-index: -1;
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-index__hero-content {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 800px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Primary brand color */
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

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

.page-index__button--primary {
  background-color: #FFD700; /* Primary brand color */
  color: #8B0000; /* Complementary dark red for contrast */
  border: 2px solid #FFD700;
}

.page-index__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-index__button--secondary {
  background-color: #8B0000; /* Secondary brand color */
  color: #FFD700; /* Primary brand color for contrast */
  border: 2px solid #8B0000;
}

.page-index__button--secondary:hover {
  background-color: #7a0000;
  transform: translateY(-2px);
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #8B0000; /* Secondary brand color */
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index__section-subtitle {
  font-size: 1.4em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-index__about-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-index__about-text {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-index__about-text p {
  margin-bottom: 20px;
}

.page-index__about-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__about-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.page-index__button--tertiary {
  background-color: #8B0000;
  color: #FFD700;
  border: 2px solid #8B0000;
  margin-top: 20px;
}

.page-index__button--tertiary:hover {
  background-color: #7a0000;
  transform: translateY(-2px);
}

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

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__game-card-title {
  font-size: 1.8em;
  color: #8B0000;
  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: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

.page-index__button--small:hover {
  background-color: #e6c200;
  transform: translateY(-1px);
}

/* Promotions Section */
.page-index__promotions-section {
  background-color: #f0f0f0;
  padding: 60px 0;
}

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__promo-card-title {
  font-size: 1.8em;
  color: #8B0000;
  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: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-index__button--promo {
  padding: 12px 25px;
  font-size: 1em;
  background-color: #8B0000;
  color: #FFD700;
  border: 2px solid #8B0000;
}

.page-index__button--promo:hover {
  background-color: #7a0000;
  transform: translateY(-1px);
}

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

.page-index__security-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-index__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.page-index__security-text {
  flex: 2;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-index__security-text p {
  margin-bottom: 20px;
}

.page-index__security-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index__security-features li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #555555;
}

.page-index__security-features li a {
  color: #8B0000; /* Secondary brand color */
  text-decoration: none;
}

.page-index__security-features li a:hover {
  text-decoration: underline;
}

.page-index__security-features li::before {
  content: '🔒';
  position: absolute;
  left: 0;
  color: #FFD700;
}

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

.page-index__download-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-index__download-image {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.page-index__download-text {
  flex: 2;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-index__download-text p {
  margin-bottom: 20px;
}

.page-index__button--download {
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
  margin-top: 20px;
}

.page-index__button--download:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* Call to Action Section */
.page-index__cta-section {
  background-color: #8B0000; /* Secondary brand color */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-index__cta-section .page-index__section-title {
  color: #FFD700; /* Primary brand color */
  font-size: 3em;
}

.page-index__cta-section .page-index__section-subtitle {
  color: #f0f0f0;
  font-size: 1.5em;
  margin-bottom: 50px;
}

.page-index__button--large {
  padding: 18px 40px;
  font-size: 1.3em;
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

.page-index__button--large:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }

  .page-index__hero-description {
    font-size: 1.1em;
  }

  .page-index__section-title {
    font-size: 2.2em;
  }

  .page-index__section-subtitle {
    font-size: 1.2em;
  }

  .page-index__about-grid, .page-index__security-content, .page-index__download-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index__about-image-wrapper, .page-index__security-image, .page-index__download-image {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-index__hero-container {
    padding: 60px 20px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }

  .page-index__hero-description {
    font-size: 1em;
  }

  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__button {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-index__section-title {
    font-size: 1.8em;
  }

  .page-index__section-subtitle {
    font-size: 1em;
  }

  .page-index__game-grid, .page-index__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-index__about-image, .page-index__security-image, .page-index__download-image {
    width: 100%;
    max-width: 400px; /* Constrain image width on mobile */
    height: auto;
  }

  .page-index__cta-section .page-index__section-title {
    font-size: 2.5em;
  }

  .page-index__cta-section .page-index__section-subtitle {
    font-size: 1.2em;
  }

  /* Ensure all content area images are responsive and do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }

  .page-index__hero-description {
    font-size: 0.9em;
  }

  .page-index__section-title {
    font-size: 1.5em;
  }

  .page-index__section-subtitle {
    font-size: 0.9em;
  }

  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-index__cta-section .page-index__section-title {
    font-size: 2em;
  }

  .page-index__cta-section .page-index__section-subtitle {
    font-size: 1em;
  }
}