.page-index {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  text-align: center;
  color: #ffffff;
  padding: 60px 20px; /* Add some padding for smaller screens */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  padding: 30px;
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for prominence */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

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

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

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

.page-index__button--primary {
  background-color: #B80000; /* Main color */
  color: #ffffff;
  border-color: #B80000;
}

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

.page-index__button--secondary {
  background-color: #FFD700; /* Auxiliary color */
  color: #333333;
  border-color: #FFD700;
}

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

.page-index__button--outline {
  background-color: transparent;
  color: #B80000;
  border-color: #B80000;
}

.page-index__button--outline:hover {
  background-color: #B80000;
  color: #ffffff;
  transform: translateY(-2px);
}

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

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

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

.page-index__about-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.page-index__core-advantages-section {
  padding: 60px 0;
}

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

.page-index__advantage-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__advantage-card:hover {
  transform: translateY(-10px);
}

.page-index__advantage-icon {
  width: 200px; /* Minimum size for content images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-index__advantage-text {
  font-size: 0.95em;
  color: #666666;
}

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

.page-index__game-categories-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-index__category-card {
  display: block;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

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

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

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

.page-index__category-text {
  font-size: 0.9em;
  color: #666666;
  padding: 0 20px 20px 20px;
}

.page-index__gcash-guide-section {
  padding: 60px 0;
}

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

.page-index__gcash-image {
  flex: 1; /* Allows image to take available space */
  min-width: 300px; /* Ensures image isn't too small */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-index__gcash-text {
  flex: 2; /* Allows text to take more space */
  min-width: 300px;
}

.page-index__gcash-subtitle {
  font-size: 2em;
  color: #B80000;
  margin-bottom: 20px;
}

.page-index__promotions-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-index__promo-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__promo-card:hover {
  transform: translateY(-10px);
}

.page-index__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-index__promo-text {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
}

.page-index__deep-content-section {
  padding: 60px 0;
}

.page-index__sub-section-title {
  font-size: 2em;
  color: #B80000;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-index__cta-section {
  padding: 80px 0;
  background-color: #B80000;
  color: #ffffff;
  text-align: center;
}

.page-index__cta-section .page-index__section-title {
  color: #FFD700;
}

.page-index__cta-section .page-index__section-description {
  color: #f0f0f0;
}

.page-index__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Responsive adjustments */
@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: 2.2em;
  }
  .page-index__gcash-subtitle {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding: 40px 15px;
  }
  .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: 100%;
    padding: 12px 25px;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-description {
    font-size: 1em;
  }
  .page-index__advantages-grid, .page-index__categories-grid, .page-index__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-index__gcash-content {
    flex-direction: column;
  }
  .page-index__gcash-image {
    width: 100%;
    min-width: unset;
  }
  .page-index__gcash-subtitle {
    font-size: 1.5em;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  /* Ensure content images do not overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }
  .page-index__advantage-icon, .page-index__category-image, .page-index__gcash-image, .page-index__promo-image {
    min-width: 200px; /* Maintain minimum size */
    min-height: 200px;
  }
}

@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.8em;
  }
  .page-index__sub-section-title {
    font-size: 1.6em;
  }
}