/* style/index.css */
.page-index {
  color: #333333; /* Dark text for default white body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

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

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

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

.page-index__button--primary {
  background-color: #FFD700; /* Main gold color */
  color: #333333; /* Dark text for gold button */
  border: 2px solid #FFD700;
}

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

.page-index__button--secondary {
  background-color: #1E90FF; /* Auxiliary blue color */
  color: #ffffff; /* White text for blue button */
  border: 2px solid #1E90FF;
}

.page-index__button--secondary:hover {
  background-color: #1a7ae0;
  transform: translateY(-2px);
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.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;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

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

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

.page-index__hero-buttons .page-index__button {
  margin: 0 10px;
}

/* Features Section */
.page-index__features-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

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

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

.page-index__feature-icon {
  width: 100%; /* Ensure image fills card width */
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__card-title {
  font-size: 1.5em;
  color: #1E90FF;
  margin-bottom: 15px;
}

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

/* Games Overview Section */
.page-index__games-overview-section {
  padding: 80px 0;
}

.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 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);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.page-index__game-image {
  width: 100%;
  height: 200px; /* Fixed height for game images */
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-index__game-card .page-index__card-title {
  padding: 20px 20px 0;
  margin-bottom: 10px;
}

.page-index__game-card .page-index__card-description {
  padding: 0 20px 20px;
}

.page-index__view-all-button-wrapper {
  text-align: center;
}

/* Promo CTA Section */
.page-index__promo-cta-section {
  padding: 80px 0;
  background: linear-gradient(90deg, #1E90FF, #0056b3);
  color: #ffffff;
}

.page-index__promo-cta-section .page-index__container {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

.page-index__promo-content .page-index__section-title,
.page-index__promo-content .page-index__section-intro {
  text-align: left;
  color: #ffffff;
}

.page-index__promo-image {
  flex: 0 0 40%;
  max-width: 40%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* About Us Section */
.page-index__about-us-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-index__about-content .page-index__button {
  margin-top: 20px;
}

/* Testimonials Section */
.page-index__testimonials-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

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

.page-index__testimonial-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
}

.page-index__testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
  color: #555555;
}

.page-index__testimonial-author {
  font-weight: bold;
  color: #1E90FF;
}

/* Download App Section */
.page-index__download-app-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #FFD700, #e6c200);
  color: #333333;
}

.page-index__download-app-section .page-index__container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-index__app-image {
  flex: 0 0 40%;
  max-width: 40%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-index__app-content .page-index__section-title,
.page-index__app-content .page-index__section-intro {
  text-align: left;
  color: #333333;
}

/* Contact CTA Section */
.page-index__contact-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #f9f9f9;
}

/* 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__promo-cta-section .page-index__container,
  .page-index__download-app-section .page-index__container {
    flex-direction: column;
    text-align: center;
  }
  .page-index__promo-image,
  .page-index__app-image {
    max-width: 60%;
    margin-bottom: 30px;
  }
  .page-index__promo-content .page-index__section-title,
  .page-index__promo-content .page-index__section-intro,
  .page-index__app-content .page-index__section-title,
  .page-index__app-content .page-index__section-intro {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons .page-index__button {
    margin: 10px 0;
    display: block;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__features-grid,
  .page-index__games-grid,
  .page-index__testimonials-grid {
    grid-template-columns: 1fr;
  }
  .page-index__promo-image,
  .page-index__app-image {
    max-width: 80%;
  }
  .page-index__feature-icon, .page-index__game-image {
    height: 200px; /* Ensure images are not too small on mobile */
  }
  /* Mobile content area images must be responsive */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-index__hero-section {
    min-height: 400px;
  }
  .page-index__hero-content {
    padding: 20px;
  }
  .page-index__container {
    padding: 0 15px;
  }
  .page-index__about-content p {
    text-align: left;
  }
}