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

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

.page-index__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Minimum height for hero section */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

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

.page-index__button--primary {
  background-color: #FFD700; /* Gold */
  color: #003366; /* Dark blue */
  border: 2px solid #FFD700;
}

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

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

.page-index__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #003366; /* Dark blue */
  text-align: center;
  margin-bottom: 20px;
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-index__about-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

.page-index__about-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__about-item:hover {
  transform: translateY(-5px);
}

.page-index__about-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__about-item-title {
  font-size: 1.8em;
  color: #003366;
  margin-bottom: 15px;
}

.page-index__about-item-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-index__about-cta {
  text-align: center;
}

.page-index__games-section {
  padding: 60px 0;
}

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

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

.page-index__game-card:hover {
  transform: translateY(-5px);
}

.page-index__game-image {
  width: 100%;
  height: 200px; /* Fixed height for game images */
  object-fit: cover;
}

.page-index__game-title {
  font-size: 1.5em;
  color: #003366;
  margin: 20px 15px 10px;
}

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

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

.page-index__game-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
  line-height: 1.5;
}

.page-index__game-card .page-index__button {
  margin-bottom: 20px;
  background-color: #003366; /* Dark blue */
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-index__game-card .page-index__button:hover {
  background-color: #002244;
}

.page-index__promotions-section {
  background-color: #f0f5f9;
  padding: 60px 0;
}

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

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

.page-index__promo-card:hover {
  transform: translateY(-5px);
}

.page-index__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
}

.page-index__promo-title {
  font-size: 1.7em;
  color: #003366;
  margin: 20px 15px 10px;
}

.page-index__promo-link {
  text-decoration: none;
  color: inherit;
}

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

.page-index__promo-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
  line-height: 1.5;
}

.page-index__promo-card .page-index__button {
  margin-bottom: 20px;
  background-color: #FFD700;
  color: #003366;
  border: none;
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-index__promo-card .page-index__button:hover {
  background-color: #e6c200;
}

.page-index__app-section {
  padding: 60px 0;
  background-color: #003366;
  color: #ffffff;
}

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

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

.page-index__app-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index__app-image {
  width: 300px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-index__responsible-gaming-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-index__responsible-gaming-content {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 1.05em;
  line-height: 1.8;
  color: #444444;
}

.page-index__responsible-gaming-content p {
  margin-bottom: 20px;
}

.page-index__join-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #003366, #001a33);
  color: #ffffff;
  text-align: center;
}

.page-index__join-section .page-index__section-title {
  color: #FFD700;
  font-size: 3em;
}

.page-index__join-section .page-index__section-description {
  color: #f0f0f0;
  font-size: 1.2em;
  margin-bottom: 50px;
}

/* Responsive adjustments */
@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: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__button {
    width: 80%;
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__games-grid, .page-index__promotions-grid, .page-index__about-grid {
    grid-template-columns: 1fr;
  }
  .page-index__hero-image, .page-index__about-image, .page-index__game-image, .page-index__promo-image, .page-index__app-image {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
  }
  .page-index__app-download {
    flex-direction: column;
  }
  .page-index__join-section .page-index__section-title {
    font-size: 2.5em;
  }
  .page-index__join-section .page-index__section-description {
    font-size: 1.1em;
  }
  /* Prevent content overflow on mobile */
  .page-index {
    overflow-x: hidden;
  }
  .page-index__container {
    padding: 20px 15px;
  }
  .page-index__about-item, .page-index__game-card, .page-index__promo-card {
    padding: 20px;
  }
  .page-index__about-image, .page-index__game-image, .page-index__promo-image {
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__join-section .page-index__section-title {
    font-size: 2em;
  }
}