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

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

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.page-index__button--primary {
  background-color: #E3B23C; /* Auxiliary color */
  color: #0A2463; /* Main color as text */
  border: 2px solid #E3B23C;
}

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

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

.page-index__button--secondary:hover {
  background-color: rgba(227, 178, 60, 0.1);
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-index__button--large {
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #0A2463; /* Main color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset for desktop */
  background-color: #0A2463; /* Dark blue background for hero */
  color: #ffffff;
}

.page-index__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

.page-index__hero-title {
  font-size: 3.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #E3B23C; /* Auxiliary color for title */
  line-height: 1.2;
}

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

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

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

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

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

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

.page-index__feature-icon {
  width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-index__feature-title {
  font-size: 1.8em;
  color: #0A2463;
  margin-bottom: 15px;
}

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

.page-index__button-wrapper {
  text-align: center;
  margin-top: 60px;
}

/* Games Showcase Section */
.page-index__games-showcase {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-index__game-card {
  background-color: #fdfdfd;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-index__game-title {
  font-size: 1.6em;
  color: #0A2463;
  padding: 20px 20px 10px;
}

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

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

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

.page-index__game-card .page-index__button {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-index__promo-card {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-index__promo-title {
  font-size: 1.6em;
  color: #0A2463;
  padding: 20px 20px 10px;
}

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

.page-index__promo-title a:hover {
  color: #E3B23C;
}

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

.page-index__promo-card .page-index__button {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* App Download Section */
.page-index__app-download-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
}

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

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

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

.page-index__app-text-content .page-index__section-description {
  color: #f0f0f0;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__app-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.page-index__app-image-wrapper {
  flex: 1;
  text-align: center;
}

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

/* Latest News Section */
.page-index__latest-news-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-index__news-card {
  background-color: #fdfdfd;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-index__news-title {
  font-size: 1.6em;
  color: #0A2463;
  padding: 20px 20px 10px;
}

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

.page-index__news-title a:hover {
  color: #E3B23C;
}

.page-index__news-excerpt {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px 20px;
}

.page-index__news-card .page-index__button {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Detail Pages Section */
.page-index__detail-pages-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-index__detail-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-index__detail-title {
  font-size: 1.8em;
  color: #0A2463;
  margin-bottom: 15px;
}

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

.page-index__detail-title a:hover {
  color: #E3B23C;
}

.page-index__detail-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

.page-index__detail-card .page-index__button {
  width: 100%;
}

/* Call to Action Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #E3B23C;
  color: #0A2463;
  text-align: center;
}

.page-index__cta-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #0A2463;
}

.page-index__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #333333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__button--large {
  background-color: #0A2463;
  color: #E3B23C;
  border: 2px solid #0A2463;
}

.page-index__button--large:hover {
  background-color: #1a3c7a;
  border-color: #1a3c7a;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__cta-title {
    font-size: 2.5em;
  }
  .page-index__app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__app-text-content .page-index__section-title,
  .page-index__app-text-content .page-index__section-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .page-index__app-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding: 60px 15px 30px;
  }
  .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%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.95em;
  }
  .page-index__features-grid,
  .page-index__game-cards-grid,
  .page-index__promo-cards-grid,
  .page-index__news-grid,
  .page-index__detail-cards-grid {
    grid-template-columns: 1fr;
  }
  .page-index__feature-icon,
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__news-image,
  .page-index__app-image {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__cta-description {
    font-size: 1em;
  }
  .page-index__button--large {
    max-width: 100%;
  }
  .page-index__app-buttons {
    flex-direction: column;
  }
  .page-index__app-image {
    width: 100%;
    height: auto;
  }
  .page-index__container img,
  .page-index__about-section img,
  .page-index__games-showcase img,
  .page-index__promotions-section img,
  .page-index__app-download-section img,
  .page-index__latest-news-section img,
  .page-index__detail-pages-section img,
  .page-index__cta-section img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
  .page-index__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-index__feature-card,
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__news-card,
  .page-index__detail-card {
    padding: 20px;
  }
  .page-index__feature-icon {
    width: 200px;
  }
}