.page-index {
  color: #333333; /* Dark text for default light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero section */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-index__hero-container {
  position: relative;
  z-index: 1;
  max-width: 90%;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-index__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

.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;
  min-width: 200px; /* Ensure buttons are large enough */
  text-align: center;
}

.page-index__button--primary {
  background-color: #007bff; /* Primary color */
  color: #ffffff;
  border: 2px solid #007bff;
}

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

.page-index__button--secondary {
  background-color: #ffc107; /* Auxiliary color */
  color: #333333;
  border: 2px solid #ffc107;
}

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

.page-index__button--text {
  color: #007bff;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  min-width: unset;
}

.page-index__button--text:hover {
  color: #0056b3;
  transform: none;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  min-width: unset;
  background-color: #007bff;
  color: #ffffff;
  border: 1px solid #007bff;
  border-radius: 5px;
}

.page-index__button--small:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #007bff; /* Primary color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

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

.page-index__about-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__download-section,
.page-index__security-section,
.page-index__testimonials-section,
.page-index__faq-section,
.page-index__cta-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* Light background for sections */
}

.page-index__about-section p {
  margin-bottom: 15px;
  font-size: 1.1em;
  text-align: justify;
}

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

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

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

.page-index__game-card-title {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 10px;
}

.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 {
  padding: 0 20px;
  margin-bottom: 20px;
  font-size: 1em;
}

.page-index__promo-content,
.page-index__download-content,
.page-index__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index__promo-image,
.page-index__download-image,
.page-index__security-image {
  flex: 1;
  min-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__promo-text,
.page-index__download-text,
.page-index__security-text {
  flex: 2;
  min-width: 300px;
}

.page-index__promo-text p,
.page-index__download-text p,
.page-index__security-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
  text-align: justify;
}

.page-index__testimonials-section {
  background-color: #eaf3ff; /* Lighter shade of primary color */
}

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

.page-index__testimonial-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  border-left: 5px solid #ffc107;
}

.page-index__testimonial-quote {
  font-style: italic;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #555555;
}

.page-index__testimonial-author {
  font-weight: bold;
  color: #007bff;
}

.page-index__faq-accordion {
  margin-top: 40px;
}

.page-index__faq-item {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index__faq-question {
  padding: 20px;
  font-size: 1.2em;
  color: #007bff;
  cursor: pointer;
  position: relative;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-index__faq-question::after {
  content: '+';
  font-size: 1.5em;
  color: #ffc107;
  transition: transform 0.3s ease;
}

.page-index__faq-item.active .page-index__faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.page-index__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.1em;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 200px; /* Adjust as needed for content length */
  padding: 0 20px 20px;
}

.page-index__faq-answer a {
  color: #007bff;
  text-decoration: none;
}

.page-index__faq-answer a:hover {
  text-decoration: underline;
}

.page-index__cta-section {
  text-align: center;
  background-color: #007bff; /* Primary color background */
  color: #ffffff;
  padding: 80px 0;
}

.page-index__cta-section .page-index__section-title {
  color: #ffc107; /* Auxiliary color for title */
}

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

.page-index__cta-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 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: 2em;
  }
  .page-index__promo-content,
  .page-index__download-content,
  .page-index__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__promo-image,
  .page-index__download-image,
  .page-index__security-image {
    order: -1; /* Image above text on smaller screens */
    width: 100%;
    max-width: 600px;
  }
  .page-index__promo-text,
  .page-index__download-text,
  .page-index__security-text {
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .page-index {
    overflow-x: hidden;
  }
  .page-index__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px);
  }
  .page-index__hero-title {
    font-size: 2em;
    margin-top: 20px;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__about-section p,
  .page-index__promo-text p,
  .page-index__download-text p,
  .page-index__security-text p,
  .page-index__testimonial-quote,
  .page-index__faq-answer {
    font-size: 0.95em;
  }
  .page-index__game-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image {
    height: 200px;
  }
  .page-index__cta-description {
    font-size: 1.1em;
  }

  /* Image responsiveness for content area */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Ensure content area images are not tiny */
  .page-index__game-card-image, 
  .page-index__promo-image, 
  .page-index__download-image, 
  .page-index__security-image {
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__faq-question {
    font-size: 1em;
    padding: 15px;
  }
}