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

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

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

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

.page-index__button--register {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-right: 15px;
}

.page-index__button--register:hover {
  background-color: #333333;
  border-color: #333333;
}

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

.page-index__button--login:hover {
  background-color: #e0a73b;
  border-color: #e0a73b;
}

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

.page-index__button--secondary:hover {
  background-color: #f0f0f0;
}

.page-index__button--small {
  padding: 8px 15px;
  font-size: 0.9em;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-index__button--small:hover {
  background-color: #333333;
  border-color: #333333;
}

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

.page-index__button--download:hover {
  background-color: #333333;
  border-color: #333333;
}

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #f8f8f8;
  padding-top: var(--header-offset, 120px);
  padding-bottom: 60px;
}

.page-index__hero-content {
  padding: 40px 20px;
  max-width: 800px;
}

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

.page-index__hero-description {
  font-size: 1.3em;
  color: #333333;
  margin-bottom: 30px;
}

.page-index__hero-cta {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  overflow: hidden;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-index__about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 800px; /* HTML width/height */
  height: 600px; /* HTML width/height */
  object-fit: cover;
}

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

.page-index__about-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

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

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

.page-index__game-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-index__game-image {
  width: 100%;
  height: 200px; /* Ensure minimum height for card images */
  object-fit: cover;
  margin-bottom: 15px;
}

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

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

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

.page-index__game-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
  min-height: 60px; /* Ensure consistent card height */
}

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

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

.page-index__promo-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 800px; /* HTML width/height */
  height: 600px; /* HTML width/height */
  object-fit: cover;
}

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

.page-index__promo-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-index__promo-cta {
  display: flex;
  flex-wrap: wrap;
}

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

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

.page-index__app-image {
  flex: 1;
  min-width: 250px;
  max-width: 400px; /* Keep app image narrower */
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 600px; /* HTML width/height */
  height: 800px; /* HTML width/height */
  object-fit: contain; /* Use contain for app image */
}

.page-index__app-text {
  flex: 1.5; /* Give more space to text */
}

.page-index__app-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

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

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

.page-index__responsible-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 800px; /* HTML width/height */
  height: 600px; /* HTML width/height */
  object-fit: cover;
}

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

.page-index__responsible-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

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

.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: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  padding-bottom: 20px;
}

.page-index__blog-image {
  width: 100%;
  height: 250px; /* Ensure minimum height for blog images */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__blog-title {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

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

.page-index__blog-excerpt {
  font-size: 0.9em;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
  min-height: 50px; /* Consistent excerpt height */
}

.page-index__view-all-button {
    text-align: center;
    margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__about-content, .page-index__promo-content, .page-index__app-content, .page-index__responsible-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__promo-content {
    flex-direction: column; /* Reset order for smaller screens */
  }
  .page-index__about-image, .page-index__promo-image, .page-index__app-image, .page-index__responsible-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
  }
  .page-index__app-image {
    order: -1; /* Move app image above text on mobile */
  }
  .page-index__about-text, .page-index__promo-text, .page-index__app-text, .page-index__responsible-text {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__button {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-right: 10px;
    margin-bottom: 10px;
  }
  .page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__app-section, .page-index__responsible-section, .page-index__blog-section {
    padding: 40px 0;
  }
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px);
    padding-bottom: 40px;
  }
  .page-index__game-grid, .page-index__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-image, .page-index__blog-image {
    height: 200px; /* Ensure minimum height for card images on mobile */
  }
  .page-index__hero-image, .page-index__about-image, .page-index__promo-image, .page-index__app-image, .page-index__responsible-image, .page-index__game-image, .page-index__blog-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-cta, .page-index__promo-cta {
    flex-direction: column;
    align-items: center;
  }
  .page-index__button--register, .page-index__button--login {
    margin-right: 0;
  }
}