/* style/index.css */

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for default light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #000080; /* Deep blue for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

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

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

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

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

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

.page-index__button--play, .page-index__button--claim, .page-index__button--download, .page-index__button--read-more {
  background-color: #000080; /* Deep Blue */
  color: #FFD700; /* Gold */
  border: 2px solid #000080;
  margin-top: 15px;
}

.page-index__button--play:hover, .page-index__button--claim:hover, .page-index__button--download:hover, .page-index__button--read-more:hover {
  background-color: #FFD700;
  color: #000080;
  border-color: #FFD700;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  margin-bottom: 60px;
}

.page-index__hero-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* 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-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  max-width: 900px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  font-weight: bold;
  line-height: 1.2;
}

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

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

/* About Section */
.page-index__about-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  margin-bottom: 60px;
}

.page-index__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-index__about-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #555555;
}

.page-index__about-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-index__games-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

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

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

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

.page-index__game-title {
  font-size: 1.8em;
  color: #000080;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-index__game-title a {
  color: #000080;
  text-decoration: none;
}

.page-index__game-title a:hover {
  color: #FFD700;
}

.page-index__game-description {
  font-size: 1em;
  color: #666666;
  padding: 0 15px;
  flex-grow: 1;
}

/* Promotions Section */
.page-index__promo-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  margin-bottom: 60px;
}

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

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

.page-index__promo-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.page-index__promo-title {
  font-size: 1.8em;
  color: #DC143C; /* Deep Red for promo titles */
  margin: 20px 0 10px;
  padding: 0 15px;
}

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

/* App Download Section */
.page-index__app-download-section {
  padding: 60px 0;
  margin-bottom: 60px;
  background-color: #000080; /* Deep blue background */
  color: #ffffff;
}

.page-index__app-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-index__app-text {
  flex: 1;
  padding-right: 20px;
}

.page-index__app-download-section .page-index__section-title {
  color: #FFD700; /* Gold title */
  text-align: left;
}

.page-index__app-download-section .page-index__section-subtitle {
  color: #f0f0f0;
  text-align: left;
  margin-bottom: 30px;
}

.page-index__app-image-wrapper {
  flex: 0 0 auto;
  width: 400px; /* Fixed width for image wrapper */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Why Choose Us Section */
.page-index__why-choose-us-section {
  padding: 60px 0;
  background-color: #ffffff;
  margin-bottom: 60px;
}

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

.page-index__feature-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}

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

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

/* CTA Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #DC143C; /* Deep Red */
  color: #ffffff;
  text-align: center;
  margin-bottom: 0;
}

.page-index__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__about-grid {
    grid-template-columns: 1fr;
  }
  .page-index__about-text {
    padding-right: 0;
  }
  .page-index__app-content {
    flex-direction: column;
  }
  .page-index__app-text {
    padding-right: 0;
    text-align: center;
  }
  .page-index__app-download-section .page-index__section-title,
  .page-index__app-download-section .page-index__section-subtitle {
    text-align: center;
  }
  .page-index__app-image-wrapper {
    width: 100%;
  }
  .page-index__cta-title {
    font-size: 2.5em;
  }
  .page-index__cta-description {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-index__button--secondary {
    margin-left: 0;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-subtitle {
    font-size: 1em;
  }
  .page-index__game-grid, .page-index__promo-grid, .page-index__features-grid {
    grid-template-columns: 1fr;
  }
  .page-index__app-image {
    max-width: 100%;
    height: auto;
  }
  /* Ensure all content images in .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-index__feature-icon {
    min-width: 200px; /* Maintain minimum size */
    min-height: 200px;
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-index__hero-content {
    padding: 20px 10px;
  }
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__section-subtitle {
    font-size: 0.9em;
  }
  .page-index__game-title, .page-index__promo-title {
    font-size: 1.5em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
  .page-index__cta-description {
    font-size: 0.9em;
  }
}