.page-index {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

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

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

.page-index__button--primary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

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

.page-index__button--secondary {
  background-color: transparent;
  color: #007bff;
  border: 2px solid #007bff;
}

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

.page-index__button--text {
  background-color: transparent;
  color: #007bff;
  border: none;
  padding: 10px 0;
  text-decoration: underline;
}

.page-index__button--text:hover {
  color: #0056b3;
  transform: translateY(-1px);
}

.page-index__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
  background-color: #ffc107;
  color: #333333;
  border: 2px solid #ffc107;
}

.page-index__button--small:hover {
  background-color: #e0a800;
  transform: translateY(-1px);
}

.page-index__button-center {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  text-align: center;
  color: #ffffff;
  padding: 80px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background-color: #007bff; /* Fallback background for hero */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

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

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  color: #ffc107;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-index__hero-buttons .page-index__button {
  margin: 0 10px;
  font-size: 1.1em;
  padding: 15px 30px;
  border-radius: 50px;
}

.page-index__hero-buttons .page-index__button--primary {
  background-color: #ffc107;
  color: #007bff;
  border-color: #ffc107;
}

.page-index__hero-buttons .page-index__button--primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #0056b3;
}

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

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

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

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

.page-index__about-image {
  flex-shrink: 0;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

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

.page-index__game-card {
  background-color: #f0f8ff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-index__game-title {
  font-size: 1.6em;
  color: #007bff;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

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

.page-index__game-text {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
}

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

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-index__promo-title {
  font-size: 1.6em;
  color: #ffc107;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

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

.page-index__promo-text {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* App Section */
.page-index__app-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.page-index__app-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  flex-direction: row-reverse; /* Image on right */
}

.page-index__app-content {
  flex: 1;
  min-width: 300px;
}

.page-index__app-content .page-index__section-title {
  text-align: left;
}

.page-index__app-content .page-index__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__app-image {
  flex-shrink: 0;
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-index__app-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

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

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

.page-index__blog-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-index__blog-title {
  font-size: 1.4em;
  color: #007bff;
  margin: 15px 15px 10px 15px;
  line-height: 1.3;
}

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

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

.page-index__blog-text {
  font-size: 0.9em;
  color: #666666;
  margin: 0 15px 20px 15px;
}

/* Contact Section */
.page-index__contact-section {
  padding: 80px 0;
  background-color: #007bff;
  color: #ffffff;
}

.page-index__contact-section .page-index__section-title {
  color: #ffc107;
}

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

.page-index__contact-section .page-index__button--primary {
  background-color: #ffc107;
  color: #007bff;
  border-color: #ffc107;
}

.page-index__contact-section .page-index__button--primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #0056b3;
}

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

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

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

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

  .page-index__about-text, .page-index__app-content {
    order: 2;
  }

  .page-index__about-image, .page-index__app-image {
    order: 1;
    max-width: 80%;
    margin-bottom: 30px;
  }

  .page-index__app-content .page-index__section-title,
  .page-index__app-content .page-index__section-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 15px;
    min-height: 500px;
  }

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

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

  .page-index__hero-buttons .page-index__button {
    margin: 10px 5px;
    font-size: 1em;
    padding: 12px 20px;
  }

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

  .page-index__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-index__about-image, .page-index__app-image {
    max-width: 90%;
  }

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

  /* Content area must not cause horizontal scroll */
  .page-index {
    overflow-x: hidden;
  }
}

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

  .page-index__hero-buttons .page-index__button {
    display: block;
    margin: 10px auto;
    width: calc(100% - 20px);
  }

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