.page-index {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on main content */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
  font-weight: bold;
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  font-size: 1.05em;
}

.page-index__btn--primary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

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

.page-index__btn--secondary {
  background-color: #28a745;
  color: #ffffff;
  border: 2px solid #28a745;
}

.page-index__btn--secondary:hover {
  background-color: #1e7e34;
  border-color: #1e7e34;
  transform: translateY(-2px);
}

.page-index__btn--text {
  background: none;
  border: none;
  color: #007bff;
  padding: 0;
  font-size: 1em;
  text-decoration: underline;
}

.page-index__btn--text:hover {
  color: #0056b3;
  text-decoration: none;
}

.page-index__btn--small {
  padding: 8px 18px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-index__btn--large {
  padding: 15px 35px;
  font-size: 1.2em;
  border-radius: 10px;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

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

.page-index__hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
  color: #ffffff;
}

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

.page-index__about-content p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
}

.page-index__about-content .page-index__btn--text {
  display: block;
  text-align: center;
  margin-top: 30px;
}

/* 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;
}

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

.page-index__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

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

.page-index__game-card .page-index__btn--small {
  margin-top: auto;
}

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

.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: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

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

.page-index__promo-card-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

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

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

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

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

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

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

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

.page-index__download-features li {
  font-size: 1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: #333333;
}

.page-index__download-features li::before {
  content: '✔';
  color: #28a745;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Why Choose Us Section */
.page-index__why-choose-us-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

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

.page-index__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
}

.page-index__feature-card-title {
  font-size: 1.8em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-index__feature-card-description {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.7;
}

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

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

.page-index__resource-card {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__resource-card-title {
  font-size: 1.6em;
  color: #28a745;
  margin-bottom: 15px;
  flex-grow: 1;
}

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

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

.page-index__resource-card-description {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 20px;
}

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

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

.page-index__call-to-action-section .page-index__section-title {
  color: #ffffff;
}

.page-index__call-to-action-section .page-index__section-description {
  color: #e0e0e0;
  margin-bottom: 40px;
}

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

.page-index__cta-actions .page-index__btn--primary {
  background-color: #28a745;
  border-color: #28a745;
}

.page-index__cta-actions .page-index__btn--primary:hover {
  background-color: #1e7e34;
  border-color: #1e7e34;
}

.page-index__cta-actions .page-index__btn--secondary {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.page-index__cta-actions .page-index__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.page-index__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  padding: 25px 30px;
}

.page-index__faq-question {
  font-size: 1.4em;
  color: #007bff;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-index__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #28a745;
}

.page-index__faq-question.active::after {
  content: '-';
}

.page-index__faq-answer {
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
  display: none; /* Hidden by default */
  margin-top: 15px;
}

.page-index__faq-answer.active {
  display: block;
}

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

/* 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;
  }
}

@media (max-width: 768px) {
  .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__btn--large {
    width: 100%;
    max-width: 300px;
  }
  .page-index__download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__download-text {
    text-align: center;
  }
  .page-index__download-features {
    padding-left: 20px;
    text-align: left;
  }
  .page-index__download-features li {
    padding-left: 25px;
  }
  .page-index__game-grid, .page-index__promo-grid, .page-index__features-grid, .page-index__resource-grid {
    grid-template-columns: 1fr;
  }
  .page-index__download-image {
    width: 100%;
    max-width: 300px;
  }
  .page-index__hero-image,
  .page-index__game-card-image,
  .page-index__promo-card-image,
  .page-index__download-image {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-index__game-card-image,
  .page-index__promo-card-image {
    height: 200px; /* Maintain aspect ratio or reasonable height on mobile */
  }
  /* Ensure all images within .page-index are not smaller than 200px display size */
  .page-index img {
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__btn {
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
}