.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.5rem;
  color: #0A192F;
  text-align: center;
  margin-bottom: 40px;
  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-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  padding: 15px 30px;
  background-color: #FFD700;
  color: #0A192F;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background-color: #0A192F;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
}

.page-index__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

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

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

.page-index__hero-button {
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-index__hero-button--primary {
  background-color: #FFD700;
  color: #0A192F;
}

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

.page-index__hero-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-index__hero-button--secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
  transform: translateY(-2px);
}

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

.page-index__about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  max-width: 1000px;
  margin: 0 auto;
}

/* 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(300px, 1fr));
  gap: 30px;
}

.page-index__game-card {
  background-color: #0A192F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-index__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 4px solid #FFD700;
}

.page-index__game-card-title {
  font-size: 1.8rem;
  margin: 25px 0 15px;
  color: #FFD700;
}

.page-index__game-card-description {
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 25px 25px;
  flex-grow: 1;
}

.page-index__game-card-button {
  display: block;
  padding: 12px 20px;
  background-color: #FFD700;
  color: #0A192F;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border-radius: 0 0 12px 12px;
}

.page-index__game-card-button:hover {
  background-color: #e6c200;
}

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

.page-index__promo-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__promo-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-index__promo-list li {
  background-color: #ffffff;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  line-height: 1.5;
}

.page-index__promo-list li strong {
  color: #0A192F;
}

.page-index__promo-text a {
  color: #0A192F;
  text-decoration: underline;
}

.page-index__promo-text a:hover {
  color: #FFD700;
}

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

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

.page-index__feature-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index__feature-title {
  font-size: 1.6rem;
  color: #0A192F;
  margin-bottom: 15px;
}

.page-index__feature-description {
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* How to Start Section */
.page-index__how-to-start-section {
  padding: 80px 0;
  background-color: #0A192F;
  color: #ffffff;
}

.page-index__how-to-start-section .page-index__section-title {
  color: #FFD700;
}

.page-index__how-to-start-section .page-index__section-title::after {
  background-color: #ffffff;
}

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

.page-index__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 40px 25px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFD700;
  color: #0A192F;
  font-size: 2.2rem;
  font-weight: bold;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #0A192F;
}

.page-index__step-title {
  font-size: 1.8rem;
  color: #FFD700;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-index__step-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index__step-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #FFD700;
  color: #0A192F;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

.page-index__app-download-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-index__app-content {
  flex: 1;
}

.page-index__app-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.page-index__app-image {
  flex: 1;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-index__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
  font-size: 1.2rem;
  color: #0A192F;
  margin-bottom: 10px;
}

.page-index__faq-answer {
  font-size: 1rem;
  line-height: 1.6;
}

.page-index__faq-answer a {
  color: #0A192F;
  text-decoration: underline;
}

.page-index__faq-answer a:hover {
  color: #FFD700;
}

.page-index__faq-button {
  margin-top: 50px;
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.page-index__blog-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.page-index__blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-index__blog-card-title {
  font-size: 1.4rem;
  color: #0A192F;
  margin: 20px;
  line-height: 1.4;
  flex-grow: 1;
}

.page-index__blog-card-title a {
  text-decoration: none;
  color: #0A192F;
  transition: color 0.3s ease;
}

.page-index__blog-card-title a:hover {
  color: #FFD700;
}

.page-index__blog-card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 20px 15px;
}

.page-index__blog-card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FFD700;
  color: #0A192F;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
}

.page-index__blog-card-button:hover {
  background-color: #e6c200;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3rem;
  }
  .page-index__hero-description {
    font-size: 1.1rem;
  }
  .page-index__section-title {
    font-size: 2rem;
  }
  .page-index__app-download-container {
    flex-direction: column;
  }
  .page-index__app-image {
    order: -1;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
  }
  .page-index__hero-title {
    font-size: 2.5rem;
  }
  .page-index__hero-description {
    font-size: 1rem;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-button {
    width: 80%;
  }
  .page-index__game-card-image, .page-index__feature-icon, .page-index__app-image, .page-index__blog-card-image {
    max-width: 100%;
    height: auto; /* Ensures images are responsive and do not overflow */
  }
  .page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__why-choose-section, .page-index__how-to-start-section, .page-index__app-download-section, .page-index__faq-section, .page-index__blog-section {
    padding: 60px 0;
  }
  .page-index__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-index__app-image {
    max-width: 100%;
  }
  .page-index__container {
    padding: 0 15px;
  }
  .page-index__game-card-image, .page-index__feature-icon, .page-index__app-image, .page-index__blog-card-image {
    max-width: 100%;
    height: auto; /* Ensures images are responsive and do not overflow */
  }
  .page-index {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2rem;
  }
  .page-index__hero-description {
    font-size: 0.9rem;
  }
  .page-index__hero-button {
    width: 100%;
    font-size: 1rem;
  }
  .page-index__section-title {
    font-size: 1.5rem;
  }
  .page-index__game-card-title, .page-index__feature-title, .page-index__step-title, .page-index__faq-question, .page-index__blog-card-title {
    font-size: 1.2rem;
  }
  .page-index__hero-section {
    padding-top: var(--header-offset-mobile, 80px); /* Adjust for mobile header offset */
  }
}

/* Ensure all content area images are at least 200px wide for desktop */
.page-index__game-card-image, 
.page-index__feature-icon, 
.page-index__promo-image, 
.page-index__app-image, 
.page-index__blog-card-image {
  min-width: 200px;
  min-height: 200px;
}

/* Override specific smaller dimensions for desktop if they exist for content images */
.page-index__feature-icon {
  width: 200px; /* Enforce min width */
  height: auto; /* Maintain aspect ratio */
}