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

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

.page-index__hero-section {
  background-color: #0A1F3B; /* Dark blue background for hero */
  color: #ffffff; /* Light text on dark background */
  padding: 80px 20px 40px; /* Adjusted padding */
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

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

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-index__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

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

.page-index__button--primary {
  background-color: #FFD700; /* Gold primary button */
  color: #0A1F3B; /* Dark blue text on gold */
  border: 2px solid #FFD700;
}

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

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

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

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-index__hero-image {
  display: block;
  width: 100%;
  max-width: 1000px; /* Limit hero image width */
  height: auto;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index__section-title {
  font-size: 2.5em;
  color: #0A1F3B; /* Dark blue for section titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
}

.page-index__section-description {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__about-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-index__about-image {
  flex: 1 1 45%;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.page-index__game-card {
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

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

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

.page-index__promo-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

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

.page-index__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

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

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

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

.page-index__security-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-index__feature-item {
  background-color: #f0f0f0;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-index__feature-icon {
  width: 250px; /* Min size for content images */
  height: 187px; /* Maintain aspect ratio */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__feature-title {
  font-size: 1.5em;
  color: #0A1F3B;
  margin-bottom: 10px;
}

.page-index__feature-text {
  font-size: 1em;
  color: #666666;
}

.page-index__security-cta {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__mobile-section {
  padding: 80px 0;
  background-color: #0A1F3B;
  color: #ffffff;
}

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

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

.page-index__mobile-text {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-index__mobile-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-index__mobile-image {
  flex: 1 1 45%;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #ffffff;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-index__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-index__floating-button {
  display: none; /* Hidden by default, shown on mobile */
  background-color: #FFD700;
  color: #0A1F3B;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  font-size: 1em;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__about-content, .page-index__mobile-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-index__about-image, .page-index__mobile-image {
    width: 100%;
    max-width: 100%;
  }
  .page-index__game-grid, .page-index__promo-grid, .page-index__security-features {
    grid-template-columns: 1fr;
  }
  .page-index__game-image, .page-index__promo-image, .page-index__feature-icon {
    max-width: 100%;
    height: auto;
  }
  .page-index__button {
    width: 100%;
  }
  .page-index__floating-button {
    display: block; /* Show floating buttons on mobile */
  }

  /* Ensure all content area images are responsive and do not cause overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.9em;
  }
  .page-index__floating-buttons {
    bottom: 15px;
    right: 15px;
    gap: 8px;
  }
  .page-index__floating-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}