.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header on desktop */
}

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

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

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

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

.page-index__btn--login {
  background-color: #FCBC45; /* Custom color for login */
  color: #000000;
  border: 2px solid #FCBC45;
  margin-left: 15px;
}

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

.page-index__btn--download,
.page-index__btn--play-now,
.page-index__btn--bet-now,
.page-index__btn--view-all-promos,
.page-index__btn--view-all-articles,
.page-index__btn--view-details,
.page-index__btn--learn-more,
.page-index__btn--explore-advantages,
.page-index__btn--contact-support,
.page-index__btn--responsible-gaming,
.page-index__btn--view-guide,
.page-index__btn--all-payments {
  background-color: #FCBC45; /* Consistent with login button */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__btn--download:hover,
.page-index__btn--play-now:hover,
.page-index__btn--bet-now:hover,
.page-index__btn--view-all-promos:hover,
.page-index__btn--view-all-articles:hover,
.page-index__btn--view-details:hover,
.page-index__btn--learn-more:hover,
.page-index__btn--explore-advantages:hover,
.page-index__btn--contact-support:hover,
.page-index__btn--responsible-gaming:hover,
.page-index__btn--view-guide:hover,
.page-index__btn--all-payments:hover {
  background-color: #e6a73c;
  border-color: #e6a73c;
}

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

.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;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  text-align: center;
  color: #ffffff;
  padding: 80px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Adjust as needed */
}

.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;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

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

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-index__hero-buttons .page-index__btn {
  font-size: 1.1em;
  padding: 15px 35px;
}

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

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

.page-index__about-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-index__about-text {
  flex: 1;
  min-width: 300px;
}

.page-index__about-text p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #444444;
}

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

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

.page-index__advantage-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-index__advantage-icon {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
  border-radius: 8px;
}

.page-index__advantage-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
}

.page-index__advantage-card p {
  color: #555555;
  font-size: 0.95em;
}

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

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-index__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-index__game-title {
  font-size: 1.4em;
  margin: 20px 0 10px;
}

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

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

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

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

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

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

.page-index__promo-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-index__promo-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-index__promo-title {
  font-size: 1.5em;
  margin: 20px;
}

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

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

.page-index__promo-card p {
  color: #555555;
  padding: 0 20px;
  margin-bottom: 20px;
  font-size: 0.95em;
}

.page-index__promo-card .page-index__btn {
  margin: 0 20px 20px;
}

.page-index__promotions-section .page-index__btn--view-all-promos {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-size: 1.1em;
}

/* Call to Action Section */
.page-index__cta-section {
  position: relative;
  text-align: center;
  color: #ffffff;
  padding: 80px 0;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-index__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.page-index__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.page-index__cta-buttons .page-index__btn {
  font-size: 1.1em;
  padding: 15px 35px;
  position: relative;
  z-index: 1;
}

/* Trust Section */
.page-index__trust-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-index__trust-point {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-index__trust-point-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
}

.page-index__trust-point p {
  color: #555555;
  font-size: 0.95em;
}

.page-index__trust-section .page-index__btn--contact-support,
.page-index__trust-section .page-index__btn--responsible-gaming {
  margin-top: 40px;
  display: inline-block;
}

.page-index__trust-section .page-index__btn--responsible-gaming {
  margin-left: 15px;
}

/* Payment Section */
.page-index__payment-section {
  padding: 80px 0;
  background-color: #f2f2f2;
}

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

.page-index__payment-method-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__payment-method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-index__payment-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-index__payment-title {
  font-size: 1.5em;
  margin: 20px;
}

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

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

.page-index__payment-method-card p {
  color: #555555;
  padding: 0 20px;
  margin-bottom: 20px;
  font-size: 0.95em;
}

.page-index__payment-method-card .page-index__btn {
  margin: 0 20px 20px;
}

.page-index__payment-section .page-index__btn--all-payments {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-size: 1.1em;
}

/* 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(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-index__blog-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-index__blog-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-index__blog-title {
  font-size: 1.5em;
  margin: 20px;
}

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

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

.page-index__blog-card p {
  color: #555555;
  padding: 0 20px;
  margin-bottom: 20px;
  font-size: 0.95em;
}

.page-index__blog-card .page-index__btn {
  margin: 0 20px 20px;
}

.page-index__blog-section .page-index__btn--view-all-articles {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__cta-title {
    font-size: 2.5em;
  }
  .page-index__about-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__about-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-index__hero-buttons .page-index__btn {
    margin: 10px 0 !important;
    width: 80%;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__cta-description {
    font-size: 1.1em;
  }
  .page-index__cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-index__cta-buttons .page-index__btn {
    margin: 10px 0 !important;
    width: 80%;
  }
  .page-index__about-content {
    gap: 20px;
  }
  .page-index__advantages-grid,
  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__trust-points,
  .page-index__payment-methods-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index__about-image,
  .page-index__advantage-icon,
  .page-index__game-image,
  .page-index__promo-image,
  .page-index__cta-image,
  .page-index__payment-image,
  .page-index__blog-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
  }
  /* CRITICAL: Mobile content area images must scale */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-index__trust-section .page-index__btn--responsible-gaming {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-index__trust-section .page-index__btn--contact-support {
    margin-top: 20px;
  }
}

@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.5em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
  .page-index__cta-description {
    font-size: 1em;
  }
}