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

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

.page-index__hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Accent color for title */
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__button {
  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, color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.page-index__button--primary {
  background-color: #FFD700; /* Accent color */
  color: #0A192F; /* Main color */
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Accent color */
  border: 2px solid #FFD700;
}

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

.page-index__button--tertiary {
  background-color: #0A192F;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index__button--tertiary:hover {
  background-color: #FFD700;
  color: #0A192F;
  transform: translateY(-2px);
}

.page-index__button--link {
  color: #0A192F;
  background: none;
  padding: 0;
  border: none;
  text-decoration: underline;
  font-size: 1em;
}

.page-index__button--link:hover {
  color: #FFD700;
  text-decoration: none;
}

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(50%); /* Subtle filter for background image, not color changing */
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #0A192F;
  text-align: center;
  margin-bottom: 25px;
  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: #FFD700;
  border-radius: 2px;
}

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

.page-index__about-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__app-section,
.page-index__responsible-gaming-section,
.page-index__blog-section,
.page-index__cta-section,
.page-index__contact-section {
  padding: 80px 0;
}

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

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

.page-index__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-index__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.page-index__feature-icon {
  width: 250px; /* Minimum 200px */
  height: 187px; /* Maintain aspect ratio for 400x300 */
  object-fit: cover;
  margin-bottom: 25px;
  border-radius: 8px;
}

.page-index__card-title {
  font-size: 1.6em;
  color: #0A192F;
  margin-bottom: 15px;
  min-height: 2em; /* Ensure consistent height for titles */
}

.page-index__card-title a {
  color: #0A192F;
  text-decoration: none;
}

.page-index__card-title a:hover {
  color: #FFD700;
}

.page-index__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  flex-grow: 1;
}

.page-index__games-section {
  background-color: #0A192F;
  color: #ffffff;
}

.page-index__games-section .page-index__section-title,
.page-index__games-section .page-index__section-text {
  color: #ffffff;
}

.page-index__games-section .page-index__section-title::after {
  background-color: #FFD700;
}

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

.page-index__category-card {
  background-color: #1a2a44; /* Slightly lighter dark blue */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-index__category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-index__category-image {
  width: 100%;
  height: 200px; /* Adjust height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-categories .page-index__card-title {
  color: #FFD700;
}

.page-index__game-categories .page-index__card-title a {
  color: #FFD700;
}

.page-index__game-categories .page-index__card-title a:hover {
  color: #ffffff;
}

.page-index__game-categories .page-index__card-text {
  color: #e0e0e0;
  flex-grow: 1;
}

.page-index__game-categories .page-index__button--link {
  color: #FFD700;
}

.page-index__game-categories .page-index__button--link:hover {
  color: #ffffff;
}

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

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.page-index__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 20px;
}

.page-index__promo-card .page-index__card-title {
  padding: 0 20px;
}

.page-index__promo-card .page-index__card-text {
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index__app-section {
  background-color: #0A192F;
  color: #ffffff;
}

.page-index__app-section .page-index__section-title,
.page-index__app-section .page-index__section-text {
  color: #ffffff;
}

.page-index__app-section .page-index__section-title::after {
  background-color: #FFD700;
}

.page-index__app-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  padding-top: 50px;
  padding-bottom: 50px;
}

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

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

.page-index__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 500px; /* Example fixed width for desktop */
  height: 375px; /* Example fixed height for desktop */
}

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

.page-index__blog-section {
  background-color: #f8f8f8;
}

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

.page-index__blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.page-index__blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.page-index__blog-image {
  width: 100%;
  height: 220px; /* Fixed height for blog images */
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 20px;
}

.page-index__blog-card .page-index__card-title {
  padding: 0 20px;
  text-align: left;
  font-size: 1.4em;
  flex-grow: 0;
}

.page-index__blog-card .page-index__card-text {
  padding: 0 20px 20px;
  text-align: left;
  flex-grow: 1;
}

.page-index__blog-card .page-index__button--link {
  align-self: flex-end;
  margin: 0 20px 20px 0;
}

.page-index__cta-section {
  background-color: #FFD700;
  color: #0A192F;
  text-align: center;
}

.page-index__cta-section .page-index__section-title,
.page-index__cta-section .page-index__section-text {
  color: #0A192F;
}

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

.page-index__cta-section .page-index__button--primary {
  background-color: #0A192F;
  color: #FFD700;
  margin-top: 30px;
}

.page-index__cta-section .page-index__button--primary:hover {
  background-color: #1a2a44;
}

.page-index__contact-section {
  background-color: #0A192F;
  color: #ffffff;
}

.page-index__contact-section .page-index__section-title,
.page-index__contact-section .page-index__section-text {
  color: #ffffff;
}

.page-index__contact-section .page-index__section-title::after {
  background-color: #FFD700;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }

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

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

  .page-index__app-content {
    text-align: center;
  }

  .page-index__app-image {
    width: 100%;
    height: auto;
    max-width: 500px;
  }
}

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

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

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

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

  .page-index__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-index__container {
    padding: 20px 15px;
  }

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

  .page-index__section-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-index__about-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__app-section,
  .page-index__responsible-gaming-section,
  .page-index__blog-section,
  .page-index__cta-section,
  .page-index__contact-section {
    padding: 50px 0;
  }

  .page-index__feature-card,
  .page-index__category-card,
  .page-index__promo-card,
  .page-index__blog-card {
    padding: 20px;
  }

  .page-index__feature-icon,
  .page-index__category-image,
  .page-index__promo-image,
  .page-index__blog-image,
  .page-index__app-image {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 150px; /* Enforce minimum size for content images */
  }

  .page-index__card-title {
    font-size: 1.4em;
  }

  .page-index__blog-card .page-index__card-title {
    font-size: 1.2em;
  }

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

  /* Override any specific image widths to ensure responsiveness on mobile */
  .page-index__feature-icon,
  .page-index__category-image,
  .page-index__promo-image,
  .page-index__blog-image,
  .page-index__app-image {
    width: 100%; /* Important for mobile to prevent overflow */
  }
}

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

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

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