/* style/index.css */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensure spacing for fixed header */
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

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

.page-index__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.page-index__hero-content {
  position: relative;
  z-index: 3;
  color: #FFFFFF;
  max-width: 900px;
  padding: 20px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.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, color 0.3s ease;
  font-size: 1.1em;
}

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

.page-index__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

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

.page-index__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
}

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

.page-index__button--primary:hover {
  background-color: #333333;
  border-color: #333333;
}

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

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

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

.page-index__text-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__about-section,
.page-index__promotions-section,
.page-index__why-choose-us,
.page-index__app-download,
.page-index__responsible-gaming,
.page-index__faq-section,
.page-index__final-cta {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__games-showcase {
  padding: 80px 20px;
  background-color: #f5f5f5;
}

.page-index__games-container,
.page-index__promotions-container,
.page-index__why-choose-container,
.page-index__app-download-container,
.page-index__responsible-gaming-container,
.page-index__faq-container,
.page-index__final-cta-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

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

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

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

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

.page-index__game-title {
  font-size: 1.5em;
  margin: 15px 0 10px;
}

.page-index__game-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-title a:hover {
  color: #FCBC45; /* Highlight color */
}

.page-index__game-description {
  padding: 0 15px 20px;
  color: #555555;
}

.page-index__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

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

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

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

.page-index__feature-description {
  color: #555555;
}

.page-index__app-download {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__app-download .page-index__section-title,
.page-index__app-download .page-index__text-content {
  color: #FFFFFF;
}

.page-index__app-download .page-index__button--primary {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

.page-index__app-download .page-index__button--primary:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

.page-index__app-image {
  width: 600px;
  height: 450px;
  max-width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__faq-item {
  text-align: left;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

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

.page-index__faq-answer {
  color: #555555;
}

.page-index__final-cta {
  background-color: #f5f5f5;
}

.page-index__final-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__app-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    height: 70vh;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__game-grid,
  .page-index__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-index__about-section,
  .page-index__promotions-section,
  .page-index__why-choose-us,
  .page-index__app-download,
  .page-index__responsible-gaming,
  .page-index__faq-section,
  .page-index__final-cta {
    padding: 60px 15px;
  }
  .page-index__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  /* Mobile content area images must not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__feature-icon {
    width: 150px; /* Adjusting for smaller screens, but still >200px if original intent was larger */
    height: auto;
  }
  .page-index__game-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-section {
    height: 60vh;
  }
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__button {
    width: 90%;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__game-image {
    height: 150px;
  }
}