.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); /* Ensure content is not hidden by fixed header */
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
}

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

.page-index__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

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

.page-index__hero-title {
  font-size: 3.2em;
  color: #FFD700;
  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.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  min-width: 150px;
  text-align: center;
  font-size: 1em;
}

.page-index__button--primary {
  background-color: #FFD700;
  color: #000000;
}

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

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

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

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

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

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

.page-index__button--large {
  padding: 20px 40px;
  font-size: 1.3em;
}

.page-index__content-area, .page-index__about-container, .page-index__games-container, .page-index__promotions-container, .page-index__app-container, .page-index__security-container, .page-index__faq-container, .page-index__cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-index__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

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

.page-index__about-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.page-index__about-content .page-index__section-title {
  text-align: left;
}

.page-index__about-content .page-index__section-text {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__about-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-index__about-image {
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  width: 800px; /* Matching HTML width attribute */
  height: 600px; /* Matching HTML height attribute */
  object-fit: cover;
}

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

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

.page-index__game-card {
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-index__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
}

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

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

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

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

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

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

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

.page-index__promo-card {
  background-color: #000000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
}

.page-index__promo-card-image {
  width: 100%;
  height: 280px; /* Fixed height for consistent card appearance */
  object-fit: cover;
}

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

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

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

.page-index__promo-card-description {
  font-size: 1em;
  color: #cccccc;
  padding: 0 15px;
  margin-bottom: 20px;
}

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

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

.page-index__app-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: row-reverse; /* Image on right */
}

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

.page-index__app-content .page-index__section-title, .page-index__app-content .page-index__section-text {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-index__app-image {
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  width: 800px; /* Matching HTML width attribute */
  height: 600px; /* Matching HTML height attribute */
  object-fit: cover;
}

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

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

.page-index__feature-item {
  background-color: #000000;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.page-index__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: none; /* Ensure no color changes */
  min-width: 200px; /* Enforcing min-width for content images */
  min-height: 200px; /* Enforcing min-height for content images */
  width: 200px; /* Actual display width */
  height: 200px; /* Actual display height */
  object-fit: contain; /* To ensure icons fit */
}

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

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

.page-index__security-section .page-index__button {
  margin-top: 40px;
}

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

.page-index__faq-items {
  margin-top: 40px;
}

.page-index__faq-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.page-index__faq-question {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__faq-answer {
  font-size: 1em;
  color: #cccccc;
}

.page-index__faq-answer a {
  color: #FFD700;
  text-decoration: underline;
}

.page-index__faq-answer a:hover {
  color: #e6c200;
}

.page-index__faq-section .page-index__button {
  margin-top: 20px;
}

.page-index__cta-section {
  background: linear-gradient(90deg, #000000, #333333, #000000);
  padding: 80px 20px;
  text-align: center;
}

.page-index__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__cta-text {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-index__floating-button {
  display: block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.page-index__floating-button--register {
  background-color: #FFD700;
  color: #000000;
}

.page-index__floating-button--register:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-index__floating-button--login {
  background-color: #DC143C; /* Emphasize with deep red */
  color: #ffffff;
}

.page-index__floating-button--login:hover {
  background-color: #c20f32;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__about-container, .page-index__app-container {
    flex-direction: column;
    text-align: center;
  }
  .page-index__about-content, .page-index__app-content {
    text-align: center;
  }
  .page-index__about-content .page-index__section-title, .page-index__app-content .page-index__section-title {
    text-align: center;
  }
  .page-index__about-content .page-index__section-text, .page-index__app-content .page-index__section-text {
    text-align: center;
  }
  .page-index__about-image, .page-index__app-image {
    width: 100%;
    height: auto;
    max-width: 600px;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__button {
    padding: 12px 25px;
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-text {
    font-size: 0.95em;
  }
  .page-index__game-grid, .page-index__promo-grid, .page-index__security-features {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image, .page-index__promo-card-image {
    height: 200px;
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__cta-text {
    font-size: 1.1em;
  }
  .page-index__floating-buttons {
    flex-direction: row;
    width: calc(100% - 40px);
    bottom: 10px;
    right: 20px;
    left: 20px;
    justify-content: space-around;
  }
  .page-index__floating-button {
    flex: 1;
    margin: 0 5px;
  }

  /* Critical: Prevent horizontal overflow for images */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__about-image, .page-index__app-image, .page-index__game-card-image, .page-index__promo-card-image, .page-index__feature-icon {
    max-width: 100%;
    height: auto;
  }
  .page-index {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
  .page-index__floating-button {
    padding: 10px 15px;
    font-size: 1em;
  }
}