.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for default light body background */
}

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

.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-index__hero-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.page-index__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.page-index__hero-text-container {
  max-width: 900px;
}

.page-index__hero-title {
  font-size: 3.5em;
  color: #FFC107; /* Accent color for title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

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

.page-index__button--primary {
  background-color: #007BFF; /* Main color */
  color: #ffffff;
  border: 2px solid #007BFF;
}

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

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

.page-index__button--secondary:hover {
  background-color: #FFC107;
  color: #000000; /* Dark text on light accent background */
  transform: translateY(-2px);
}

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

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

.page-index__button--text:hover {
  color: #0056b3;
}

.page-index__button--center {
  display: block;
  margin: 30px auto 0 auto;
  text-align: center;
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #007BFF; /* Main color for section titles */
  text-align: center;
  margin-bottom: 40px;
  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: #FFC107; /* Accent underline */
  border-radius: 2px;
}

.page-index__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

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

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

.page-index__games-section,
.page-index__promotions-section {
  background-color: #f9f9f9;
}

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

.page-index__game-card,
.page-index__promo-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;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-image,
.page-index__promo-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-index__game-title,
.page-index__promo-title {
  font-size: 1.5em;
  color: #007BFF;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-link,
.page-index__promo-link {
  text-decoration: none;
  color: #007BFF;
}

.page-index__game-link:hover,
.page-index__promo-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.page-index__game-description,
.page-index__promo-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-index__security-image {
  flex: 0 0 400px; /* Fixed width for desktop */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__security-features {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-index__security-features li {
  background: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23007BFF"%3E%3Cpath d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/%3E%3C/svg%3E') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #333333;
}

.page-index__cta-section {
  background-color: #007BFF; /* Main color background */
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-index__cta-container {
  max-width: 800px;
}

.page-index__cta-title {
  font-size: 3em;
  color: #FFC107; /* Accent color for CTA title */
  margin-bottom: 20px;
}

.page-index__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
}

.page-index__cta-subtext {
  margin-top: 30px;
  font-size: 1.1em;
}

.page-index__cta-login-link {
  color: #FFC107;
  text-decoration: underline;
  font-weight: bold;
}

.page-index__cta-login-link:hover {
  color: #ffffff;
}

/* 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__security-image {
    flex: 0 0 300px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  }
  .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: 80%;
    margin: 0 auto;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__text-content {
    font-size: 1em;
  }
  .page-index__game-grid,
  .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-image,
  .page-index__promo-image {
    height: auto;
  }
  .page-index__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__security-image {
    width: 100%;
    max-width: 400px; /* Constrain image width on mobile */
    flex: none;
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__cta-description {
    font-size: 1.1em;
  }

  /* Mobile content image constraint */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__security-features li {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.6em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
}