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

.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-offset, 120px) 20px 60px; /* Ensure space for fixed header */
  background-color: #000000; /* Main color */
  overflow: hidden;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6;
}

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

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

.page-index__btn {
  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.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__btn--register {
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-index__btn--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-index__btn--login:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-index__btn--primary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-index__btn--primary:hover {
  background-color: #333333;
  border-color: #FCBC45;
}

.page-index__btn--secondary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__btn--secondary:hover {
  background-color: #e0a53b;
  border-color: #000000;
}

.page-index__section-padding {
  padding: 80px 20px;
}

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

.page-index__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
  color: #555555;
}

.page-index__bg--dark {
  background-color: #000000;
  color: #FFFFFF;
}

.page-index__bg--dark .page-index__section-title,
.page-index__bg--dark .page-index__section-subtitle {
  color: #FFFFFF;
}

.page-index__about-section {
  background-color: #FFFFFF;
}

.page-index__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__about-text p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.1em;
}

.page-index__about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__game-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__game-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FCBC45;
}

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

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

.page-index__game-description {
  font-size: 1em;
  line-height: 1.6;
  padding: 0 20px;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.page-index__promo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #FCBC45;
  color: #000000;
}

.page-index__promo-content {
  max-width: 900px;
  margin-bottom: 40px;
}

.page-index__promo-content .page-index__section-title,
.page-index__promo-content .page-index__section-subtitle {
  color: #000000;
}

.page-index__promo-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-index__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-index__security-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__security-item img {
  
  
  margin-bottom: 20px;
  filter: none; /* Ensure no filter changes image color */
}

.page-index__security-item h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FCBC45;
}

.page-index__security-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-index__responsible-gaming-section {
  background-color: #FFFFFF;
}

.page-index__responsible-gaming-section .page-index__section-title,
.page-index__responsible-gaming-section .page-index__section-subtitle {
  color: #000000;
}

.page-index__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 50px;
}

/* Floating Register/Login buttons */
.page-index__floating-buttons {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

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

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

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

  .page-index__section-subtitle {
    font-size: 1.1em;
  }

  .page-index__about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 120px); /* Ensure mobile also has header offset */
  }

  .page-index__hero-section {
    padding-top: var(--header-offset, 120px);
    padding-bottom: 40px;
  }

  .page-index__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-index__btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .page-index__section-padding {
    padding: 60px 15px;
  }

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

  .page-index__section-subtitle {
    font-size: 0.95em;
  }

  .page-index__games-grid {
    grid-template-columns: 1fr;
  }

  .page-index__game-card img {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
  }

  .page-index__about-image img, .page-index__promo-image img, .page-index__security-item img {
    max-width: 100%;
    height: auto; /* Ensure content images are responsive and not smaller than 200px */
  }

  .page-index__security-grid {
    grid-template-columns: 1fr;
  }

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

  /* Ensure all images within .page-index are responsive and meet min size requirements */
  .page-index img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  /* Specific override for small icons if any, ensuring they are not present */
  .page-index__security-item img {
    width: 200px; /* Enforce min 200px */
    height: 200px; /* Enforce min 200px */
    object-fit: contain; /* Adjust object-fit if necessary for larger icons */
  }
}