/* style/index.css */
.page-index {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content starts below fixed header */
}

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

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column; /* Stack content and image on mobile */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  min-height: 600px; /* Ensure hero section has a minimum height */
}

.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: 800px;
  margin-bottom: 40px;
}

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

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

.page-index__hero-cta-buttons {
  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, color 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-index__button--primary {
  background-color: #FFD700;
  color: #0A1931;
}

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

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

.page-index__button--secondary:hover {
  background-color: #FFD700;
  color: #0A1931;
}

.page-index__button--outline {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 12px 25px;
  font-size: 1em;
}

.page-index__button--outline:hover {
  background-color: #FFD700;
  color: #0A1931;
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #FFD700;
  color: #0A1931;
}

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

/* Section common styles */
.page-index__legitimacy-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__app-support-section,
.page-index__detail-pages-section,
.page-index__responsible-gaming-section {
  padding: 80px 0;
  text-align: center;
}

.page-index__section-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-index__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

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

.page-index__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__feature-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.5;
}

/* Games Section */
.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-index__game-title {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 10px;
}

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

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

.page-index__game-text {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  line-height: 1.4;
}

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

.page-index__promo-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin: 40px auto 50px auto;
  display: block;
}

/* App & Support Section */
.page-index__app-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-index__app-download,
.page-index__customer-support {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__sub-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__sub-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Detail Pages Section */
.page-index__detail-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__detail-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__detail-card-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__detail-card-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-index__detail-card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
  background-color: #0A1931;
  padding-bottom: 100px; /* Add extra padding for sticky buttons */
}

/* Sticky Buttons */
.page-index__sticky-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 15px 20px;
  background-color: rgba(10, 25, 49, 0.95); /* Semi-transparent midnight blue */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transform: translateY(0); /* Ensure visibility */
}

.page-index__sticky-button {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  color: #0A1931;
  background-color: #FFD700;
  margin: 0 5px;
  transition: background-color 0.3s ease;
}

.page-index__sticky-button:hover {
  background-color: #e6c200;
}

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

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

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

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

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

  .page-index__button {
    width: 100%;
    padding: 12px 20px;
  }

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

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

  .page-index__features-grid,
  .page-index__games-grid,
  .page-index__app-support-grid,
  .page-index__detail-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-index__feature-card,
  .page-index__game-card,
  .page-index__app-download,
  .page-index__customer-support,
  .page-index__detail-card {
    padding: 20px;
  }

  .page-index__feature-image,
  .page-index__game-image,
  .page-index__app-image,
  .page-index__support-image {
    height: 200px; /* Adjust height for smaller screens */
  }

  .page-index__promo-image {
    max-width: 100%;
  }

  /* Mobile content image overflow prevention */
  .page-index img {
    max-width: 100%;
    height: auto;
  }

  .page-index {
    overflow-x: hidden;
  }

  .page-index__sticky-buttons {
    padding: 10px;
  }

  .page-index__sticky-button {
    font-size: 1em;
    padding: 10px 0;
  }
}

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

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

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

  .page-index__section-description {
    font-size: 0.9em;
  }

  .page-index__sticky-buttons {
    padding: 8px;
  }

  .page-index__sticky-button {
    font-size: 0.9em;
  }
}