/* style/index.css */
.page-index {
  color: #333333; /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-index__hero-section {
  background-color: #0A1931;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-index__hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay to make text readable */
  z-index: 0;
}

.page-index__hero-content {
  max-width: 800px;
  text-align: center;
}

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

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

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

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

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

.page-index__hero-cta--primary:hover {
  background-color: #e0b800;
  transform: translateY(-3px);
}

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

.page-index__hero-cta--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-3px);
}

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

.page-index__about-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-index__about-title {
  font-size: 2.5em;
  color: #0A1931;
  margin-bottom: 30px;
}

.page-index__about-content p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #555555;
  text-align: left;
}

.page-index__about-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background-color: #E02B2B;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__about-link:hover {
  background-color: #c92525;
}

.page-index__games-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.page-index__games-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-index__games-title {
  font-size: 2.5em;
  color: #0A1931;
  margin-bottom: 20px;
}

.page-index__games-intro {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
}

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

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

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

.page-index__game-card-image {
  width: 100%;
  height: 200px; /* Minimum size requirement */
  object-fit: cover;
  display: block;
}

.page-index__game-card-title {
  font-size: 1.5em;
  color: #0A1931;
  padding: 15px 20px 5px;
}

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

.page-index__game-card-title a:hover {
  color: #FFD700;
}

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

.page-index__game-card-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 0;
  background-color: #FFD700;
  color: #0A1931;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__game-card-button:hover {
  background-color: #e0b800;
}

.page-index__promotions-section {
  background-color: #0A1931;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-index__promotions-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__promotions-intro {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-index__promotion-feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  transition: background-color 0.3s ease;
}

.page-index__promotion-feature-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index__promotion-feature-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__promotion-feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-index__promotions-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #E02B2B;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-index__promotions-button:hover {
  background-color: #c92525;
}

.page-index__security-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.page-index__security-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__security-title {
  font-size: 2.5em;
  color: #0A1931;
  margin-bottom: 20px;
}

.page-index__security-intro {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
  text-align: left;
}

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

.page-index__security-feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-index__security-feature-image {
  width: 100%; /* Occupy card width */
  max-width: 300px; /* Ensure images are not too large */
  height: auto;
  min-height: 200px; /* Minimum image height */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__security-feature-title {
  font-size: 1.6em;
  color: #0A1931;
  margin-bottom: 10px;
}

.page-index__security-feature-description {
  font-size: 1em;
  color: #666666;
}

.page-index__mobile-section {
  background-color: #0A1931;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-index__mobile-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-index__mobile-content {
  flex: 1 1 500px;
  text-align: left;
}

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

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

.page-index__mobile-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #E02B2B;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-index__mobile-button:hover {
  background-color: #c92525;
}

.page-index__mobile-image-wrapper {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__mobile-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}

.page-index__cta-section {
  padding: 60px 20px;
  background-color: #FFD700;
  color: #0A1931;
  text-align: center;
}

.page-index__cta-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-index__cta-title {
  font-size: 2.8em;
  color: #0A1931;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__cta-description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 40px;
}

.page-index__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-index__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__cta-button--primary {
  background-color: #E02B2B;
  color: #ffffff;
}

.page-index__cta-button--primary:hover {
  background-color: #c92525;
  transform: translateY(-3px);
}

.page-index__cta-button--secondary {
  background-color: transparent;
  color: #0A1931;
  border: 2px solid #0A1931;
}

.page-index__cta-button--secondary:hover {
  background-color: rgba(10, 25, 49, 0.1);
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__games-title, .page-index__promotions-title, .page-index__security-title, .page-index__mobile-title, .page-index__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset if needed */
  }
  .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-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-cta {
    width: 100%;
    max-width: 300px;
  }
  .page-index__about-title, .page-index__games-title, .page-index__promotions-title, .page-index__security-title, .page-index__mobile-title, .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__game-cards, .page-index__promotion-features, .page-index__security-features {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image, .page-index__security-feature-image {
    height: auto;
    max-width: 100%;
    min-height: 200px; /* Ensure minimum size is maintained */
  }
  .page-index__mobile-container {
    flex-direction: column-reverse; /* Image above text on mobile */
  }
  .page-index__mobile-content {
    text-align: center;
  }
  .page-index__mobile-image {
    max-width: 300px;
  }
  .page-index__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__cta-button {
    width: 100%;
    max-width: 300px;
  }
  /* Ensure all content area images are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__game-card-image, .page-index__security-feature-image, .page-index__mobile-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min width for content images */
    min-height: 200px; /* Enforce min height for content images */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__hero-cta, .page-index__promotions-button, .page-index__mobile-button, .page-index__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__about-title, .page-index__games-title, .page-index__promotions-title, .page-index__security-title, .page-index__mobile-title, .page-index__cta-title {
    font-size: 1.8em;
  }
}