/* style/index.css */
.page-index {
  color: #333333; /* Default text color for light body background */
}

.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for PC and mobile */
  padding-bottom: 60px;
  background-color: #003366; /* Royal Blue */
  color: #ffffff;
  overflow: hidden;
}

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

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

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

.page-index__button--primary {
  background-color: #FFD700; /* Gold */
  color: #003366; /* Royal Blue */
}

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

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

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

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

.page-index__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #003366; /* Royal Blue */
  margin-bottom: 40px;
  font-weight: bold;
}

.page-index__text-content {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-index__games-section {
  background-color: #f8f8f8;
}

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-card-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-index__game-card-title {
  font-size: 1.8em;
  color: #003366; /* Royal Blue */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__game-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-index__game-card-title a:hover {
  color: #FFD700; /* Gold */
}

.page-index__game-card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__game-card-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-index__game-card-list li {
  font-size: 0.95em;
  color: #003366;
  margin-bottom: 5px;
}

.page-index__game-card-list li a {
  color: #003366;
  text-decoration: none;
}

.page-index__game-card-list li a:hover {
  text-decoration: underline;
  color: #FFD700;
}

.page-index__why-choose-section {
  background-color: #ffffff;
}

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

.page-index__advantage-item {
  background-color: #f0f5fa;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.1);
}

.page-index__advantage-icon {
  width: 100%;
  max-width: 200px; /* Min size 200px */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index__advantage-title {
  font-size: 1.5em;
  color: #003366; /* Royal Blue */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__advantage-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__cta-section--alt-bg {
  background-color: #003366;
  color: #ffffff;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index__cta-section--alt-bg .page-index__text-content {
  color: #f0f0f0;
}

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

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

.page-index__blog-post-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-index__blog-post-title {
  font-size: 1.6em;
  color: #003366; /* Royal Blue */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__blog-post-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-index__blog-post-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__view-all-button {
  margin-top: 50px;
}

.page-index__faq-item {
  background-color: #f0f5fa;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 51, 102, 0.05);
}

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

.page-index__faq-answer {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }

  .page-index__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }

  .page-index__hero-description {
    font-size: 1.1em;
  }

  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__button {
    width: 100%;
    max-width: 300px;
  }

  .page-index__section-title {
    font-size: 1.8em;
  }

  .page-index__content-area {
    padding: 40px 15px;
  }

  .page-index__game-categories,
  .page-index__advantages-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile content image responsiveness */
  .page-index__hero-section img,
  .page-index__game-card-image,
  .page-index__advantage-icon,
  .page-index__blog-post-card img,
  .page-index__faq-item img {
    max-width: 100%;
    height: auto;
  }

  .page-index__cta-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }

  .page-index__hero-description {
    font-size: 1em;
  }

  .page-index__section-title {
    font-size: 1.5em;
  }
}