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

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

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.page-index__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

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

.page-index__btn {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  text-align: center;
}

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

.page-index__btn--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

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

.page-index__btn--login:hover {
  background-color: transparent;
  color: #FCBC45;
  border-color: #FCBC45;
}

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

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

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

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

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

.page-index__btn--download:hover {
  background-color: #000000;
  color: #FCBC45;
  border-color: #FCBC45;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #FCBC45;
  color: #000000;
  border: 1px solid #FCBC45;
}

.page-index__btn--small:hover {
  background-color: #000000;
  color: #FCBC45;
  border-color: #FCBC45;
}

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

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

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

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

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

.page-index__about-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-index__about-text {
  flex: 1;
}

.page-index__about-text p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #333333;
}

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

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

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

.page-index__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__game-card-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FCBC45;
}

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

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

.page-index__game-card-text {
  font-size: 1em;
  line-height: 1.5;
  padding: 0 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-index__promotion-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.page-index__promotion-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-index__promotion-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-index__promotion-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__promotion-card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__all-promotions-link {
  text-align: center;
}

/* Why Choose Section */
.page-index__why-choose-section {
  padding: 80px 0;
  background-color: #000000;
  color: #ffffff;
}

.page-index__why-choose-section .page-index__section-title {
  color: #ffffff;
}

.page-index__why-choose-section .page-index__section-description {
  color: #f0f0f0;
}

.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-index__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__feature-icon {
  width: 200px; /* Min size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

.page-index__feature-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Download Section */
.page-index__download-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-index__download-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-index__download-text-content {
  flex: 1;
}

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

.page-index__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-index__download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: flex-start;
}

/* VIP Section */
.page-index__vip-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  text-align: center;
}

.page-index__vip-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.page-index__vip-actions {
  text-align: center;
}

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

.page-index__responsible-gaming-section .page-index__section-title {
  color: #ffffff;
}

.page-index__responsible-gaming-section .page-index__section-description {
  color: #f0f0f0;
}

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

.page-index__responsible-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 4px solid #FCBC45;
  border-radius: 5px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-index__responsible-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: center;
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-index__blog-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-index__blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-index__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__blog-card-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #000000;
  margin-bottom: 10px;
}

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

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

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

.page-index__all-blog-link {
  text-align: center;
}

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

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

  .page-index__about-content, .page-index__download-flex {
    flex-direction: column;
    text-align: center;
  }

  .page-index__about-image {
    max-width: 80%;
  }

  .page-index__download-buttons {
    justify-content: center;
  }

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

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

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

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

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

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

  .page-index__btn {
    width: 100%;
    padding: 12px 20px;
  }

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

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

  .page-index__about-image {
    max-width: 100%;
  }

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

  .page-index__feature-icon {
    width: 200px; /* Min size */
    height: auto;
  }

  .page-index__download-flex {
    flex-direction: column-reverse; /* Image above text on mobile */
  }

  .page-index__download-buttons {
    flex-direction: column;
  }

  .page-index__responsible-item {
    font-size: 1em;
  }

  .page-index__blog-card-image {
    height: 180px;
  }

  /* Ensure all content area images are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

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

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

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

  .page-index__game-card-title {
    font-size: 1.5em;
  }
}