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

.page-index__section {
  padding: 80px 20px;
  text-align: center;
}

.page-index__section--dark-bg {
  background-color: #1E90FF; /* Auxiliary dark blue */
  color: #ffffff;
}

.page-index__section--cta-bg {
  background-color: #FFD700; /* Main gold color */
  color: #333333;
}

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

.page-index__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section for contrast */
  font-weight: bold;
}

.page-index__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px; /* Minimum height for hero */
}

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

.page-index__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 25px;
  color: #FFD700; /* Gold for emphasis */
  font-weight: 900;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
  font-weight: 500;
}

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

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

.page-index__button--primary {
  background-color: #FFD700; /* Gold */
  color: #1E90FF; /* Deep Blue */
  border: 2px solid #FFD700;
}

.page-index__button--primary:hover {
  background-color: #e6c200;
  color: #1565b3;
}

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

.page-index__button--secondary:hover {
  background-color: #FFD700;
  color: #1E90FF;
}

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

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

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

/* Games Section */
.page-index__games-section {
  background-color: #ffffff;
}

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

.page-index__game-card-title {
  font-size: 1.8em;
  margin: 0 20px 10px;
  color: #1E90FF;
}

.page-index__game-card-title a {
  color: #1E90FF;
  text-decoration: none;
}

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

.page-index__game-card-description {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px;
}

.page-index__game-card .page-index__button {
  margin-left: 20px;
  background-color: #1E90FF;
  color: #ffffff;
  border: 2px solid #1E90FF;
}

.page-index__game-card .page-index__button:hover {
  background-color: #1565b3;
  border-color: #1565b3;
}

.page-index__more-games {
  margin-top: 50px;
}

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

.page-index__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

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

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

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

/* Bonuses Section */
.page-index__bonus-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__bonus-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__bonus-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index__bonus-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__bonus-card-title {
  font-size: 1.8em;
  margin: 0 20px 10px;
  color: #FFD700;
}

.page-index__bonus-card-description {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px;
}

.page-index__bonus-card .page-index__button {
  margin-left: 20px;
  background-color: #FFD700;
  color: #1E90FF;
  border: 2px solid #FFD700;
}

.page-index__bonus-card .page-index__button:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-index__promo-cta {
  margin-top: 50px;
}

/* Download Section */
.page-index__download-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

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

.page-index__download-content .page-index__section-title {
  color: #FFD700;
  text-align: left;
}

.page-index__download-content .page-index__text-content {
  color: #f0f0f0;
  text-align: left;
  max-width: none;
}

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

.page-index__download-buttons .page-index__button {
  background-color: #FFD700;
  color: #1E90FF;
  border: 2px solid #FFD700;
}

.page-index__download-buttons .page-index__button:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-index__download-note {
  margin-top: 20px;
  font-size: 0.95em;
  color: #cccccc;
}

.page-index__download-note a {
  color: #FFD700;
  text-decoration: none;
}

.page-index__download-note a:hover {
  text-decoration: underline;
}

.page-index__download-image-wrapper {
  flex: 0 0 auto;
  width: 400px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__download-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Guide Section */
.page-index__guide-section {
  background-color: #f8f8f8;
}

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

.page-index__guide-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-index__guide-card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #1E90FF;
}

.page-index__guide-card-title a {
  color: #1E90FF;
  text-decoration: none;
}

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

.page-index__guide-card-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__guide-card .page-index__button {
  background-color: #1E90FF;
  color: #ffffff;
  border: 2px solid #1E90FF;
}

.page-index__guide-card .page-index__button:hover {
  background-color: #1565b3;
  border-color: #1565b3;
}

.page-index__resources-cta {
  margin-top: 50px;
}

/* CTA Section */
.page-index__cta-content .page-index__section-title {
  color: #1E90FF;
}

.page-index__cta-content .page-index__text-content {
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }

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

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

  .page-index__download-flex {
    flex-direction: column;
    text-align: center;
  }

  .page-index__download-content .page-index__section-title,
  .page-index__download-content .page-index__text-content {
    text-align: center;
  }

  .page-index__download-buttons {
    justify-content: center;
  }

  .page-index__download-image-wrapper {
    width: 350px;
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px);
  }

  .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: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-index__section {
    padding: 60px 15px;
  }

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

  .page-index__text-content {
    font-size: 1em;
  }

  .page-index__game-categories,
  .page-index__features-grid,
  .page-index__bonus-offers,
  .page-index__guide-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-index__game-card-image,
  .page-index__bonus-card-image {
    height: 200px;
  }

  .page-index__game-card-title,
  .page-index__bonus-card-title,
  .page-index__feature-title,
  .page-index__guide-card-title {
    font-size: 1.4em;
  }

  .page-index__download-image-wrapper {
    width: 100%;
    height: auto;
    max-width: 300px;
  }

  .page-index__download-image {
    max-width: 100%;
    height: auto;
  }

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

  .page-index__download-buttons .page-index__button {
    max-width: 300px;
    margin: 0 auto;
  }

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

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }

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

  .page-index__button--large {
    font-size: 1.1em;
    padding: 15px 25px;
  }

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