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

.page-index__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #000000; /* Dark background for hero section */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Subtle background effect */
}

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

.page-index__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

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

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

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

.page-index__button--register {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Primary color for text */
  border: 2px solid #FCBC45;
}

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

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

.page-index__button--login:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

.page-index__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
}

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

.page-index__about-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

.page-index__feature-item {
  text-align: center;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.page-index__feature-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #000000;
}

.page-index__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
}

.page-index__game-categories-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-index__category-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__category-title {
  font-size: 1.8em;
  font-weight: bold;
  margin: 20px 0 10px;
  color: #000000;
  padding: 0 20px;
}

.page-index__category-description {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index__button--play-now, .page-index__button--bet-now, .page-index__button--spin-now, .page-index__button--play-arcade {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  align-self: center;
}

.page-index__button--play-now:hover, .page-index__button--bet-now:hover, .page-index__button--spin-now:hover, .page-index__button--play-arcade:hover {
  background-color: #e0a53a;
}

.page-index__promotions-section {
  background-color: #000000;
  color: #ffffff;
  padding: 60px 0;
}

.page-index__promotions-section .page-index__section-title, .page-index__promotions-section .page-index__section-intro {
  color: #ffffff;
}

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__promo-title {
  font-size: 1.8em;
  font-weight: bold;
  margin: 20px 0 10px;
  color: #FCBC45;
  padding: 0 20px;
}

.page-index__promo-description {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index__button--claim-bonus, .page-index__button--view-promos {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  align-self: center;
}

.page-index__button--claim-bonus:hover, .page-index__button--view-promos:hover {
  background-color: #e0a53a;
}

.page-index__promo-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.page-index__promo-cta-text {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-index__button--join-now {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  padding: 18px 40px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-index__button--join-now:hover {
  background-color: #e0a53a;
  transform: translateY(-2px);
}

.page-index__mobile-app-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

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

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

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

.page-index__app-features li {
  font-size: 1.1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: #333333;
}

.page-index__app-features li::before {
  content: '✔';
  color: #FCBC45;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-index__mobile-app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-index__button--download-app {
  background-color: #000000;
  color: #ffffff;
  border: none;
  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;
}

.page-index__button--download-app:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-index__security-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-index__security-item {
  text-align: center;
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

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

.page-index__security-feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000000;
}

.page-index__security-feature-description {
  font-size: 0.95em;
  color: #666666;
}

.page-index__button--learn-more {
  background-color: #000000;
  color: #ffffff;
  border: none;
  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;
  margin-top: 40px;
  display: inline-block;
}

.page-index__button--learn-more:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-index__cta-section {
  background-color: #FCBC45;
  color: #000000;
  padding: 80px 20px;
  text-align: center;
}

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

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

.page-index__button--final-cta {
  background-color: #000000;
  color: #ffffff;
  border: none;
  padding: 20px 45px;
  border-radius: 10px;
  font-size: 1.3em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 40px;
}

.page-index__button--final-cta:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

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

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

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

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

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

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

  .page-index__mobile-app-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index__mobile-app-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

  .page-index__mobile-app-image, .page-index__hero-image, .page-index__feature-icon, .page-index__category-image, .page-index__promo-image, .page-index__security-icon {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
  }

  /* IMPORTANT: All images within .page-index must scale down on mobile */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@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.8em;
  }

  .page-index__section-intro {
    font-size: 0.9em;
  }

  .page-index__button {
    padding: 12px 20px;
    font-size: 1em;
  }
}