/* style/index.css */
.page-index {
  color: #ffffff; /* Main text color for dark 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;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold main color */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  font-weight: bold;
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  padding: 60px 20px;
  background-color: #1A1A1A; /* Auxiliary dark background */
}

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

.page-index__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  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;
  color: #FFD700; /* Gold main color */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

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

.page-index__button--primary {
  background-color: #FFD700; /* Gold */
  color: #1A1A1A; /* Dark text for contrast */
}

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

.page-index__button--secondary {
  background-color: #1A1A1A; /* Dark */
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

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

.page-index__button--tertiary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-index__button--tertiary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-index__button--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

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

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

.page-index__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-index__feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-index__feature-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  flex-grow: 1;
}

/* Game Categories Section */
.page-index__game-categories-section {
  background-color: #1A1A1A;
  padding: 80px 0;
}

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__game-title {
  font-size: 1.6em;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 20px;
  font-weight: bold;
}

.page-index__game-link {
  color: #FFD700;
  text-decoration: none;
}

.page-index__game-link:hover {
  text-decoration: underline;
}

.page-index__game-text {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index__game-card .page-index__button--small {
  margin: 0 20px 20px;
  align-self: center;
  width: calc(100% - 40px);
}

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

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__promo-title {
  font-size: 1.6em;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 20px;
  font-weight: bold;
}

.page-index__promo-link {
  color: #FFD700;
  text-decoration: none;
}

.page-index__promo-link:hover {
  text-decoration: underline;
}

.page-index__promo-text {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index__promo-card .page-index__button--small {
  margin: 0 20px 20px;
  align-self: center;
  width: calc(100% - 40px);
}

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

/* Mobile App Section */
.page-index__mobile-app-section {
  background-color: #1A1A1A;
  padding: 80px 0;
}

.page-index__mobile-app-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-index__mobile-app-content {
  flex: 1;
}

.page-index__mobile-app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index__mobile-app-image {
  max-width: 400px; /* Constrain image size */
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

.page-index__app-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

/* Trust & Support Section */
.page-index__trust-support-section {
  background-color: #0D0D0D;
  padding: 80px 0;
}

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

.page-index__support-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-index__support-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-index__support-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__support-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__support-item .page-index__button--small {
  align-self: center;
}

/* Call to Action Section */
.page-index__cta-section {
  background-color: #1A1A1A;
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__mobile-app-container {
    flex-direction: column;
    text-align: center;
  }
  .page-index__mobile-app-image-wrapper {
    order: -1; /* Image above content on smaller screens */
    margin-bottom: 30px;
  }
  .page-index__app-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 100%;
    padding: 12px 20px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-index__features-grid, .page-index__game-grid, .page-index__promo-grid, .page-index__support-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-image, .page-index__promo-image {
    height: 200px;
  }
  /* Crucial for mobile images to prevent overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__mobile-app-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__container {
    padding: 0 15px;
  }
  .page-index__hero-container {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__app-buttons {
    flex-direction: column;
  }
}