.page-index {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

.page-index__heading {
  color: #FFD700;
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-index__sub-description {
  text-align: center;
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-index__button--primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

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

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

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

.page-index__center-button {
  text-align: center;
  margin-top: 40px;
}

/* Hero Section */
.page-index__hero-section {
  background-color: #1A202C;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 40px;
}

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

.page-index__hero-title {
  font-size: 4em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.4em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 50px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

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

.page-index__about-text {
  flex: 1;
  text-align: left;
}

.page-index__about-text p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.85);
}

.page-index__about-image-wrapper {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index__about-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Games Section */
.page-index__games-section {
  background-color: #1A202C;
  padding: 80px 0;
}

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

.page-index__game-card {
  background-color: #2D3748;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index__card-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-index__card-title a:hover {
  text-decoration: underline;
}

.page-index__card-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  padding: 0 15px;
}

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

.page-index__promo-content {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 50px;
}

.page-index__promo-text {
  flex: 1;
  text-align: left;
}

.page-index__promo-text p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.85);
}

.page-index__promo-image-wrapper {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index__promo-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Security Section */
.page-index__security-section {
  background-color: #1A202C;
  padding: 80px 0;
}

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

.page-index__security-image-wrapper {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index__security-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-index__security-text {
  flex: 1;
  text-align: left;
}

.page-index__security-text p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.85);
}

/* Download Section */
.page-index__download-section {
  background-color: #2D3748;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__download-content {
  max-width: 800px;
  margin-bottom: 40px;
}

.page-index__download-content .page-index__heading {
  margin-bottom: 15px;
}

.page-index__download-content .page-index__sub-description {
  margin-bottom: 30px;
}

.page-index__download-actions {
  margin-top: 20px;
}

.page-index__download-image-wrapper {
  width: 100%;
  max-width: 800px;
  margin-top: 50px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index__download-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Blog Section */
.page-index__blog-section {
  background-color: #1A202C;
  padding: 80px 0;
}

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

.page-index__blog-card {
  background-color: #2D3748;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

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

.page-index__blog-card .page-index__card-title {
  font-size: 1.5em;
  margin: 20px 15px 10px 15px;
  text-align: left;
}

.page-index__blog-card .page-index__card-text {
  text-align: left;
  font-size: 0.95em;
  margin-bottom: 20px;
  padding: 0 15px;
}

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

.page-index__contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-index__contact-content .page-index__heading {
  margin-bottom: 15px;
}

.page-index__contact-content .page-index__sub-description {
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3.5em;
  }
  .page-index__heading {
    font-size: 2.2em;
  }
  .page-index__about-content, .page-index__promo-content, .page-index__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__about-text, .page-index__promo-text, .page-index__security-text {
    text-align: center;
  }
  .page-index__hero-image-wrapper, .page-index__about-image-wrapper, .page-index__promo-image-wrapper, .page-index__security-image-wrapper, .page-index__download-image-wrapper {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }
  .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__heading {
    font-size: 1.8em;
  }
  .page-index__sub-description {
    font-size: 1em;
  }
  .page-index__game-grid, .page-index__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-image, .page-index__blog-image {
    height: 200px;
  }
  /* Mobile content area images must not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__heading {
    font-size: 1.5em;
  }
  .page-index__button {
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-index__hero-section, .page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__security-section, .page-index__download-section, .page-index__blog-section, .page-index__contact-section {
    padding: 50px 15px;
  }
}