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

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

.page-index__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}

.page-index__hero-image-wrapper {
  width: 100%;
  max-width: 800px; /* Constrain image width for better presentation */
  margin-top: 40px;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
}

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for highlight */
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #F0F0F0;
}

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

.page-index__btn {
  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;
  text-align: center;
  white-space: nowrap;
  min-width: 180px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-size: 1.1em;
}

.page-index__btn--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for light button */
}

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

.page-index__btn--secondary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Dark text for light button */
  border: 2px solid #FCBC45;
}

.page-index__btn--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  min-width: unset;
}

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

.page-index__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-index__features-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__gcash-guide-section,
.page-index__app-download-section,
.page-index__about-section,
.page-index__responsible-gaming-section,
.page-index__contact-section {
  padding: 80px 0;
}

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

.page-index__feature-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid #eee;
}

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

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

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

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

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

.page-index__game-card {
  background-color: #000000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #FFFFFF;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

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

.page-index__game-title {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  color: #FCBC45;
}

.page-index__game-description {
  font-size: 0.95em;
  margin: 0 20px 20px 20px;
  color: #CCCCCC;
  flex-grow: 1;
}

.page-index__cta-center {
  text-align: center;
  margin-top: 50px;
}

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

.page-index__promo-card {
  background-color: #000000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  color: #FFFFFF;
  text-align: center;
  padding-bottom: 30px;
}

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

.page-index__promo-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FCBC45;
}

.page-index__promo-description {
  font-size: 1em;
  margin: 0 20px 25px 20px;
  color: #CCCCCC;
}

.page-index__gcash-guide-section,
.page-index__app-download-section {
  background-color: #F8F8F8;
}

.page-index__gcash-content,
.page-index__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index__gcash-text,
.page-index__app-text {
  flex: 1;
  min-width: 300px;
}

.page-index__gcash-text p,
.page-index__app-text p {
  margin-bottom: 20px;
  color: #555555;
}

.page-index__gcash-text a,
.page-index__app-text a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-index__gcash-text a:hover,
.page-index__app-text a:hover {
  text-decoration: underline;
}

.page-index__gcash-image-wrapper,
.page-index__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-index__gcash-image,
.page-index__app-image {
  width: 100%;
  max-width: 600px; /* Constrain image size */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-index__cta-banner-section {
  background: linear-gradient(135deg, #000000 0%, #333333 100%); /* Dark gradient background */
  padding: 100px 0;
  text-align: center;
  color: #FFFFFF;
}

.page-index__cta-banner-container {
  max-width: 900px;
}

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

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

.page-index__responsible-gaming-section p {
  margin-bottom: 20px;
  color: #555555;
  font-size: 1.05em;
}

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

.page-index__contact-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}

.page-index__contact-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #000000;
}

.page-index__contact-description {
  font-size: 0.95em;
  margin-bottom: 25px;
  color: #555555;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__btn {
    width: 100%;
    min-width: unset;
  }
  .page-index__hero-cta-group {
    flex-direction: column;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-intro {
    font-size: 0.95em;
  }
  .page-index__features-grid,
  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__contact-grid {
    grid-template-columns: 1fr;
  }
  .page-index__gcash-content,
  .page-index__app-content {
    flex-direction: column;
  }
  .page-index__gcash-text,
  .page-index__app-text {
    order: 2; /* Text below image on mobile */
  }
  .page-index__gcash-image-wrapper,
  .page-index__app-image-wrapper {
    order: 1;
  }
  .page-index__gcash-image,
  .page-index__app-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__cta-banner-title {
    font-size: 2em;
  }
  /* Ensure all images within .page-index are responsive */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-section {
    padding: 40px 15px;
  }
  .page-index__features-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__gcash-guide-section,
  .page-index__app-download-section,
  .page-index__about-section,
  .page-index__responsible-gaming-section,
  .page-index__contact-section {
    padding: 60px 0;
  }
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__cta-banner-title {
    font-size: 1.8em;
  }
}