.page-index {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-align: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
}

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

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Gold accent for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

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

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

.page-index__button--register {
  background-color: #FCBC45; /* Custom color for Register */
  color: #FFFFFF;
}

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

.page-index__button--login {
  background-color: #000000; /* Custom color for Login */
  color: #FCBC45;
  border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

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

.page-index__section-text--after-games, .page-index__section-text--after-promo, .page-index__section-text--after-advantages, .page-index__section-text--after-app, .page-index__section-text--after-testimonials, .page-index__section-text--after-blog {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Features Grid (About Section) */
.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-index__feature-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__feature-icon {
  width: 200px; /* Min size enforced */
  height: 133px; /* Maintain aspect ratio for 600x400 source */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

.page-index__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Game Categories Section */
.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-index__game-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-index__game-title {
  font-size: 1.5em;
  color: #000000;
  padding: 15px 20px 0;
}

.page-index__game-description {
  font-size: 0.95em;
  color: #555555;
  padding: 10px 20px 20px;
}

.page-index__cta-buttons {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__button--promo {
  background-color: #000000;
  color: #FFFFFF;
}

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

.page-index__button--play {
  background-color: #FCBC45;
  color: #000000;
}

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

/* Promotions Section */
.page-index__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-index__promo-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__promo-image {
  width: 100%;
  height: 200px; /* Fixed height */
  object-fit: cover;
}

.page-index__promo-title {
  font-size: 1.6em;
  color: #000000;
  padding: 20px 20px 10px;
}

.page-index__promo-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
}

.page-index__button--learn-more {
  background-color: #000000;
  color: #FCBC45;
  margin-bottom: 20px;
}

.page-index__button--learn-more:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-index__button--view-all {
  background-color: #FCBC45;
  color: #000000;
  margin-top: 20px;
}

.page-index__button--view-all:hover {
  background-color: #e6a73c;
  transform: translateY(-2px);
}

/* Why Choose Us Section */
.page-index__advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-index__advantage-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__advantage-icon {
  width: 200px; /* Min size enforced */
  height: 200px; /* Min size enforced */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__advantage-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__advantage-description {
  font-size: 0.95em;
  color: #555555;
}

.page-index__button--about {
  background-color: #000000;
  color: #FCBC45;
  margin-top: 20px;
}

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

/* Download App Section */
.page-index__cta-download-section {
  background-color: #f8f8f8;
  padding: 60px 20px;
  text-align: center;
}

.page-index__download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.page-index__button--download-ios,
.page-index__button--download-android {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__button--download-ios:hover,
.page-index__button--download-android:hover {
  background-color: #e6a73c;
  transform: translateY(-2px);
}

.page-index__app-image {
  max-width: 800px; /* Ensure it's not smaller than HTML attribute */
  height: auto;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Testimonials Section */
.page-index__testimonials-section {
  padding: 60px 20px;
}

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

.page-index__testimonial-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-index__testimonial-author {
  font-weight: bold;
  color: #000000;
  font-size: 0.95em;
}

/* FAQ Section */
.page-index__faq-section {
  background-color: #f8f8f8;
  padding: 60px 20px;
}

.page-index__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-index__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__faq-answer {
  font-size: 1em;
  color: #555555;
}

.page-index__button--faq {
  background-color: #000000;
  color: #FCBC45;
  margin-top: 20px;
}

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

/* Contact Section */
.page-index__contact-section {
  padding: 60px 20px;
  text-align: center;
}

.page-index__button--contact {
  background-color: #FCBC45;
  color: #000000;
  margin-top: 20px;
}

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

/* Blog Preview Section */
.page-index__blog-preview-section {
  background-color: #f8f8f8;
  padding: 60px 20px;
}

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

.page-index__blog-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-index__blog-title {
  font-size: 1.4em;
  color: #000000;
  padding: 15px 20px 0;
}

.page-index__blog-excerpt {
  font-size: 0.95em;
  color: #555555;
  padding: 10px 20px 20px;
}

.page-index__button--blog {
  background-color: #000000;
  color: #FCBC45;
  margin-top: 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .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__button {
    width: 80%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-text {
    font-size: 1em;
  }
  .page-index__feature-card,
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__advantage-item,
  .page-index__testimonial-card,
  .page-index__blog-card {
    padding: 20px;
  }
  .page-index__feature-icon,
  .page-index__advantage-icon {
    width: 200px; /* Min size maintained */
    height: auto;
  }
  .page-index__app-image {
    width: 100%;
    height: auto;
  }

  /* IMPORTANT: Mobile content area images must be constrained */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index__hero-content {
    padding: 20px;
  }

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

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.95em;
  }
  .page-index__button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__container {
    padding: 0 15px;
  }
  .page-index__feature-icon,
  .page-index__advantage-icon {
    width: 200px; /* Min size maintained */
    height: auto;
  }
}