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

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

/* Header offset for fixed header */
.page-index {
  padding-top: var(--header-offset, 120px); /* Default for desktop, adjusted by shared.js */
}

.page-index__hero-section {
  position: relative;
  text-align: center;
  color: #FFFFFF;
  padding: 80px 20px; /* Adjust padding as needed, but ensure content is not hidden by header */
  display: flex;
  align-items: center;
  justify-content: 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;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay for text readability */
  padding: 40px;
  border-radius: 8px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login color for emphasis */
  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-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 150px;
  text-align: center;
  font-size: 1.1em;
}

.page-index__button--register {
  background-color: #FFFFFF; /* Register color */
  color: #000000; /* Main color for text */
  border: 2px solid #FFFFFF;
}

.page-index__button--register:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

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

.page-index__button--login:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #000000; /* Main color */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

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

.page-index__about-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-index__about-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: justify;
}

.page-index__about-content p {
  font-size: 1.05em;
  color: #333333;
}

.page-index__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 30px 0;
  min-width: 200px;
  min-height: 200px;
}

.page-index__image--left {
  margin-right: auto;
}

.page-index__image--right {
  margin-left: auto;
}

.page-index__games-section,
.page-index__promo-section,
.page-index__why-choose-section,
.page-index__resources-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-index__games-section {
  background-color: #f0f0f0;
}

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

.page-index__game-card,
.page-index__promo-card,
.page-index__resource-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-image,
.page-index__promo-image,
.page-index__resource-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-title,
.page-index__promo-title,
.page-index__resource-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-title a,
.page-index__promo-title a,
.page-index__resource-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__game-title a:hover,
.page-index__promo-title a:hover,
.page-index__resource-title a:hover {
  color: #FCBC45;
}

.page-index__game-description,
.page-index__promo-description,
.page-index__resource-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-index__feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__feature-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__feature-item h3 {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 15px;
}

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

.page-index__cta-section {
  background-color: #000000; /* Main color */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-index__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-index__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #FFFFFF;
}

/* 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-section {
    min-height: 400px;
    padding: 60px 15px;
  }

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

  .page-index__container {
    padding: 0 15px;
  }

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

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

  .page-index__game-grid,
  .page-index__promo-grid,
  .page-index__resource-grid {
    grid-template-columns: 1fr;
  }

  .page-index__feature-list {
    grid-template-columns: 1fr;
  }

  .page-index__image {
    max-width: 100%;
    height: auto; /* Ensure images don't overflow */
  }

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

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

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

  .page-index {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
}

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

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

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

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