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

.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #f8f8f8;
  color: #333333;
  position: relative;
  overflow: hidden;
}

.page-index__hero-image-wrapper {
  width: 100%;
  max-width: 1600px; /* Constrain image width for large screens */
  margin-top: 20px;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-index__hero-content {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 20px;
  z-index: 1;
}

.page-index__hero-title {
  font-size: 3.2em;
  color: #8B0000; /* Dark Red for strong contrast */
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

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

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

.page-index__hero-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__hero-button--primary {
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Dark Red for contrast */
  border: 2px solid #FFD700;
}

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

.page-index__hero-button--secondary {
  background-color: #8B0000; /* Dark Red */
  color: #FFD700; /* Gold for contrast */
  border: 2px solid #8B0000;
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Dark Red */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-subtitle {
  font-size: 1.2em;
  color: #666666;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__features-section,
.page-index__game-categories-section,
.page-index__cta-download-section,
.page-index__promo-section,
.page-index__info-cards-section,
.page-index__about-section,
.page-index__responsible-gaming-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

.page-index__feature-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background-color: #fffaf0; /* Light gold background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border: 1px solid #FFD700;
}

.page-index__feature-card:hover {
  transform: translateY(-5px);
}

.page-index__feature-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

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

.page-index__category-card {
  display: block;
  text-align: center;
  text-decoration: none;
  background-color: #fffaf0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #FFD700;
}

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

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

.page-index__category-title {
  font-size: 1.4em;
  color: #8B0000;
  margin: 15px 0 10px;
  padding: 0 15px;
  font-weight: bold;
}

.page-index__category-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px 20px;
}

.page-index__cta-download-section {
  text-align: center;
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Gold to Red gradient */
  color: #ffffff;
  padding: 60px 20px;
}

.page-index__cta-download-content {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-index__cta-download-section .page-index__section-subtitle {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-index__cta-download-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  background-color: #ffffff;
  color: #8B0000; /* Dark Red */
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

.page-index__cta-download-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

.page-index__cta-download-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__promo-card {
  background-color: #fffaf0;
  border: 1px solid #FFD700;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
}

.page-index__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__promo-title {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 10px;
  padding: 0 15px;
  font-weight: bold;
}

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

.page-index__promo-button {
  display: inline-block;
  padding: 10px 25px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Dark Red */
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  background-color: #8B0000; /* Dark Red */
  color: #FFD700; /* Gold */
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__view-all-button:hover {
  background-color: #6b0000;
  transform: translateY(-2px);
}

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

.page-index__info-card {
  background-color: #fffaf0;
  border: 1px solid #FFD700;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
}

.page-index__info-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__info-title {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 10px;
  padding: 0 15px;
  font-weight: bold;
}

.page-index__info-title a {
  color: #8B0000;
  text-decoration: none;
}

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

.page-index__info-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-index__info-button {
  display: inline-block;
  padding: 10px 25px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Dark Red */
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-index__about-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__about-text {
  font-size: 1.1em;
  color: #444444;
  margin-bottom: 25px;
  text-align: justify;
}

.page-index__about-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  background-color: #8B0000; /* Dark Red */
  color: #FFD700; /* Gold */
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}

.page-index__about-button:hover {
  background-color: #6b0000;
  transform: translateY(-2px);
}

.page-index__responsible-gaming-section {
  text-align: center;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
}

.page-index__responsible-gaming-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Dark Red */
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-index__hero-section {
    flex-direction: column;
    padding-top: var(--header-offset, 80px);
  }

  .page-index__hero-title {
    font-size: 2.2em;
  }

  .page-index__hero-description {
    font-size: 1.1em;
  }

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

  .page-index__hero-button {
    width: 80%;
    max-width: 300px;
    padding: 12px 25px;
  }

  .page-index__section-title {
    font-size: 2em;
  }

  .page-index__section-subtitle {
    font-size: 1em;
  }

  .page-index__features-section,
  .page-index__game-categories-section,
  .page-index__cta-download-section,
  .page-index__promo-section,
  .page-index__info-cards-section,
  .page-index__about-section,
  .page-index__responsible-gaming-section {
    margin: 40px auto;
    padding: 30px 15px;
  }

  .page-index__features-grid,
  .page-index__categories-grid,
  .page-index__promo-grid,
  .page-index__info-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__feature-icon,
  .page-index__category-image,
  .page-index__promo-image,
  .page-index__info-image {
    width: 100%;
    height: auto; /* Allow images to scale */
    max-width: 100%;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
    object-fit: contain;
  }

  .page-index__cta-download-button {
    font-size: 1.1em;
    padding: 12px 30px;
  }

  .page-index__cta-download-image {
    max-width: 90%;
    min-width: 200px;
    min-height: 200px;
  }

  .page-index__about-text {
    font-size: 1em;
  }

  /* Ensure all content area images are responsive and don't overflow */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-index {
    overflow-x: hidden;
  }
}