.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f8f8f8;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #0A2342; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.page-index__btn--primary {
  background-color: #FFD700; /* Auxiliary brand color */
  color: #0A2342; /* Dark text on gold button */
  border: 2px solid #FFD700;
}

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

.page-index__btn--secondary {
  background-color: transparent;
  color: #0A2342; /* Main brand color for secondary button text */
  border: 2px solid #0A2342;
}

.page-index__btn--secondary:hover {
  background-color: #0A2342;
  color: #FFD700; /* Gold text on dark blue hover */
  transform: translateY(-2px);
}

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

.page-index__btn--large {
  padding: 15px 35px;
  font-size: 1.2em;
}

/* Hero Section */
.page-index__hero-section {
  background-color: #0A2342; /* Dark blue background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 25px;
  color: #FFD700; /* Gold for main title */
  line-height: 1.1;
}

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.5;
  color: #e0e0e0;
}

.page-index__hero-cta-group .page-index__btn {
  margin: 0 10px;
}

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay effect */
  display: block;
}

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

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

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

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

.page-index__feature-icon {
  width: 200px; /* Minimum size */
  height: 200px; /* Minimum size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

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

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

.page-index__game-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  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: 200px; /* Ensure minimum height */
  object-fit: cover;
}

.page-index__game-title {
  font-size: 1.4em;
  color: #0A2342;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-index__game-description {
  font-size: 0.95em;
  color: #777;
  padding: 0 15px 20px;
}

.page-index__game-card .page-index__btn {
  margin-bottom: 20px;
}

.page-index__cta-full-width {
  text-align: center;
  margin-top: 60px;
}

/* Promo Section */
.page-index__promo-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-index__promo-card {
  background-color: #fcfcfc;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  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; /* Ensure minimum height */
  object-fit: cover;
}

.page-index__promo-title {
  font-size: 1.4em;
  color: #0A2342;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-index__promo-description {
  font-size: 0.95em;
  color: #777;
  padding: 0 15px 20px;
}

.page-index__promo-card .page-index__btn {
  margin-bottom: 20px;
}

/* Mobile App Section */
.page-index__mobile-app-section {
  padding: 80px 0;
  background-color: #0A2342;
  color: #ffffff;
}

.page-index__mobile-app-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-index__mobile-app-content {
  flex: 1;
}

.page-index__mobile-app-content .page-index__section-title {
  color: #FFD700;
  text-align: left;
}

.page-index__mobile-app-content .page-index__section-intro {
  color: #e0e0e0;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__app-features {
  list-style: none;
  padding: 0;
  margin: 30px 0 40px;
}

.page-index__app-features li {
  margin-bottom: 15px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
}

.page-index__icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: #FFD700;
  border-radius: 50%;
  margin-right: 15px;
  position: relative;
  flex-shrink: 0;
}

.page-index__icon--check::before {
  content: '✓';
  color: #0A2342;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2em;
}

.page-index__mobile-app-image-container {
  flex: 1;
  text-align: center;
}

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

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  text-align: center;
}

.page-index__responsible-gaming-links {
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-index__responsible-gaming-links .page-index__btn {
  margin: 0 10px;
}

.page-index__responsible-gaming-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

.page-index__detail-title a {
  color: #0A2342;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* Final CTA Section */
.page-index__cta-final-section {
  background-color: #0A2342;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

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

.page-index__cta-final-section .page-index__section-intro {
  color: #e0e0e0;
}

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

/* Responsive Design */
@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: 2em;
  }
  .page-index__mobile-app-flex {
    flex-direction: column;
  }
  .page-index__mobile-app-content .page-index__section-title,
  .page-index__mobile-app-content .page-index__section-intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  }
  .page-index__hero-section {
    padding: 60px 15px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index__hero-cta-group .page-index__btn {
    display: block;
    margin: 15px auto;
  }
  .page-index__features-grid,
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__detail-page-grid {
    grid-template-columns: 1fr;
  }
  .page-index__feature-icon,
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__mobile-app-image,
  .page-index__responsible-gaming-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__responsible-gaming-links .page-index__btn {
    display: block;
    margin: 15px auto;
  }
  /* Content area images must be responsive */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@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;
  }
  .page-index__btn--large {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-index__hero-cta-group .page-index__btn {
    margin: 10px auto;
  }
}

/* Ensure content area images are not small */
.page-index img {
  min-width: 200px;
  min-height: 200px;
}
.page-index__feature-icon, .page-index__game-image, .page-index__promo-image, .page-index__mobile-app-image, .page-index__responsible-gaming-image {
  min-width: 200px;
  min-height: 200px;
}