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

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

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly dim the background image for text readability */
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.5em;
  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: #FFFFFF;
}

.page-index__hero-buttons {
  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;
  font-size: 1.1em;
  text-align: center;
  cursor: pointer;
}

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

.page-index__button--register:hover {
  background-color: #F0F0F0;
}

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

.page-index__button--login:hover {
  background-color: #E0A030;
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-index__text-content {
  font-size: 1.1em;
  line-height: 1.7;
  color: #333333;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__app-section, .page-index__security-section, .page-index__blog-section, .page-index__cta-section {
  padding: 60px 0;
}

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

.page-index__games-section {
  background-color: #F8F8F8;
}

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

.page-index__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

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

.page-index__game-title {
  font-size: 1.8em;
  color: #000000;
  margin: 20px 15px 10px;
}

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

.page-index__game-title a:hover {
  color: #FCBC45;
}

.page-index__game-description {
  font-size: 1em;
  color: #666666;
  padding: 0 15px 20px;
  line-height: 1.5;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__button--small:hover {
  background-color: #333333;
}

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

.page-index__button--secondary:hover {
  background-color: #333333;
}

.page-index__button--view-all {
  margin-top: 40px;
}

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

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__text-content {
  color: #FFFFFF;
}

.page-index__promotions-section .page-index__section-title::after {
  background-color: #FCBC45;
}

.page-index__promotions-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__button--primary:hover {
  background-color: #E0A030;
}

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

.page-index__app-layout {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

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

.page-index__app-image-wrapper {
  flex: 0 0 400px; /* Fixed width for the image container */
  text-align: center;
}

.page-index__app-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure image doesn't exceed its container */
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__button--download {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 20px;
}

.page-index__button--download:hover {
  background-color: #E0A030;
}

.page-index__security-section {
  background-color: #F8F8F8;
}

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

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

.page-index__blog-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
}

.page-index__blog-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__blog-card-title a {
  color: #000000;
  text-decoration: none;
}

.page-index__blog-card-title a:hover {
  color: #FCBC45;
}

.page-index__blog-card-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.page-index__button--text {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  padding: 0;
  background: none;
  border: none;
  font-size: 1em;
}

.page-index__button--text:hover {
  text-decoration: underline;
}

.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
}

.page-index__cta-section .page-index__section-title,
.page-index__cta-section .page-index__text-content {
  color: #FFFFFF;
}

.page-index__cta-section .page-index__section-title::after {
  background-color: #FCBC45;
}

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

/* Responsive Design */
@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: 2em;
  }

  .page-index__app-layout {
    flex-direction: column;
    text-align: center;
  }

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

  .page-index__app-image {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__hero-content {
    padding: 20px;
  }

  .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__button {
    width: 100%;
    max-width: 280px;
  }

  .page-index__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-index__text-content {
    font-size: 0.95em;
  }

  .page-index__game-grid, .page-index__blog-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile content area image constraint */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure no image is smaller than 200px in content area on mobile */
  .page-index__game-image,
  .page-index__promotions-image,
  .page-index__app-image,
  .page-index__security-image {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
  }
}

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

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

  .page-index__button--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}