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

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

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

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

.page-index__sub-title {
  font-size: 1.8em;
  color: #0A2463;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-index__button {
  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;
  cursor: pointer;
  min-width: 150px; /* Ensure button minimum size */
}

.page-index__button--primary {
  background-color: #E3B505; /* Golden Yellow */
  color: #0A2463; /* Midnight Blue */
  border: 2px solid #E3B505;
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #0A2463; /* Midnight Blue */
  border: 2px solid #0A2463;
}

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

.page-index__button--large {
  padding: 15px 35px;
  font-size: 1.1em;
  min-width: 200px;
}

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

.page-index__cta-center {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
}

/* Hero Section */
.page-index__hero-section {
  background-color: #0A2463; /* Midnight Blue */
  color: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-index__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}

.page-index__hero-content {
  flex: 1;
  text-align: left;
  z-index: 1;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: bold;
  color: #E3B505; /* Golden Yellow */
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  max-width: 600px;
  color: #f0f0f0;
}

.page-index__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.page-index__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum image display size */
  min-height: 200px; /* Enforce minimum image display size */
}

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

.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: #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(-10px);
}

.page-index__feature-icon {
  width: 100%;
  max-width: 400px; /* Limit feature icon size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Enforce minimum image display size */
  min-height: 200px; /* Enforce minimum image display size */
}

.page-index__feature-title {
  font-size: 1.5em;
  color: #0A2463;
  margin-bottom: 10px;
  font-weight: bold;
}

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

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

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

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

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

.page-index__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image display size */
  min-height: 200px; /* Enforce minimum image display size */
}

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

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

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

.page-index__promo-section .page-index__section-title,
.page-index__promo-section .page-index__section-intro {
  color: #E3B505;
}

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-index__promo-image {
  width: 100%;
  max-width: 400px; /* Limit promo image size */
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  min-width: 200px; /* Enforce minimum image display size */
  min-height: 200px; /* Enforce minimum image display size */
}

.page-index__promo-title {
  font-size: 1.6em;
  color: #E3B505;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__promo-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__promo-card .page-index__button {
  margin-top: auto; /* Push button to bottom */
}

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

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

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

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

.page-index__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum image display size */
  min-height: 200px; /* Enforce minimum image display size */
}

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

.page-index__mobile-features li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23E3B505"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #444444;
}

.page-index__feature-highlight {
  color: #0A2463;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
  padding: 80px 0;
  background-color: #eaf1f8; /* Light blueish background */
}

.page-index__responsible-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-index__responsible-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%230A2463"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #444444;
}

.page-index__list-highlight {
  color: #0A2463;
}

/* Payments & Support Section */
.page-index__payments-support-section {
  padding: 80px 0;
  background-color: #f4f4f4;
}

.page-index__payments-support-flex {
  display: flex;
  align-items: center;
  gap: 60px;
}

.page-index__payments-content {
  flex: 1;
}

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

.page-index__payments-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum image display size */
  min-height: 200px; /* Enforce minimum image display size */
}

/* Join Section */
.page-index__join-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
  text-align: center;
}

.page-index__join-section .page-index__section-title,
.page-index__join-section .page-index__section-intro {
  color: #E3B505;
}

.page-index__join-flex {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-direction: row-reverse; /* Image on left, content on right */
}

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

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

.page-index__join-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum image display size */
  min-height: 200px; /* Enforce minimum image display size */
}

/* 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__mobile-flex,
  .page-index__payments-support-flex,
  .page-index__join-flex {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .page-index__mobile-content,
  .page-index__payments-content,
  .page-index__join-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .page-index__hero-content {
    text-align: center;
  }
  .page-index__hero-buttons {
    justify-content: center;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-intro {
    font-size: 0.95em;
  }
  .page-index__features-grid,
  .page-index__game-categories,
  .page-index__promo-cards {
    grid-template-columns: 1fr;
  }
  /* Mobile content area images must be responsive and not cause overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }
  .page-index__hero-image,
  .page-index__feature-icon,
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__mobile-image,
  .page-index__payments-image,
  .page-index__join-image {
    width: 100%;
    height: auto;
  }
  .page-index__game-image {
    height: 200px; /* Adjust fixed height for mobile */
  }
  .page-index__hero-section,
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promo-section,
  .page-index__mobile-section,
  .page-index__responsible-gaming-section,
  .page-index__payments-support-section,
  .page-index__join-section {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .page-index__hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-index__button {
    width: 100%;
    max-width: 250px;
  }
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__sub-title {
    font-size: 1.4em;
  }
}