/* style/index.css */
.page-index {
  color: #333333; /* Dark text 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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-index__section-title {
  font-size: 2.5em;
  color: #000000; /* Main color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45; /* Login button color as accent */
  border-radius: 2px;
}

.page-index__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1em;
  text-align: center;
  cursor: pointer;
}

.page-index__button--register {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FCBC45;
}

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

.page-index__button--login {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Auxiliary color */
  border: 2px solid #000000;
  margin-left: 15px;
}

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

.page-index__button--learn-more,
.page-index__button--view-promotions,
.page-index__button--responsible-gaming,
.page-index__button--join-now {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Auxiliary color */
  border: 2px solid #000000;
  margin-top: 20px;
}

.page-index__button--learn-more:hover,
.page-index__button--view-promotions:hover,
.page-index__button--responsible-gaming:hover,
.page-index__button--join-now:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-index__button--play-now,
.page-index__button--bet-now {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 15px;
}

.page-index__button--play-now:hover,
.page-index__button--bet-now:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

.page-index__button--download-app {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 25px;
  font-size: 1.1em;
  padding: 15px 30px;
}

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero */
  background-color: #000000; /* Dark background for hero content */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6; /* Slightly dim image to make text pop */
}

.page-index__hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF; /* Light text for hero content */
  padding: 20px;
  max-width: 900px;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

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

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

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

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

.page-index__game-card {
  background-color: #000000; /* Dark card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  color: #FFFFFF; /* Light text for dark card */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index__game-card-title {
  font-size: 1.5em;
  margin: 20px 0 10px;
  color: #FCBC45; /* Accent color for card titles */
}

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

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

.page-index__game-card-description {
  padding: 0 20px;
  font-size: 0.95em;
  margin-bottom: 20px;
}

/* App Download Section */
.page-index__app-download-section {
  background-color: #f5f5f5;
  padding: 60px 0;
}

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

.page-index__app-image {
  max-width: 350px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: block;
}

.page-index__app-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

/* Testimonials Section */
.page-index__testimonials-section {
  background-color: #FFFFFF;
  padding: 60px 0;
}

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

.page-index__testimonial-card {
  background-color: #000000; /* Dark card background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFFFFF; /* Light text for dark card */
  text-align: center;
}

.page-index__testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-index__testimonial-author {
  font-weight: bold;
  color: #FCBC45; /* Accent color */
}

/* CTA Section */
.page-index__cta-section {
  background-color: #FCBC45; /* Accent color for CTA background */
  padding: 60px 0;
  text-align: center;
  color: #000000; /* Dark text for light background */
}

.page-index__cta-section .page-index__section-title {
  color: #000000;
}

.page-index__cta-section .page-index__section-title::after {
  background-color: #000000;
}

.page-index__cta-section .page-index__text-content {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.2em;
}

.page-index__cta-section .page-index__button--join-now {
  background-color: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

.page-index__cta-section .page-index__button--join-now:hover {
  background-color: #333333;
  border-color: #333333;
}

/* General Section Padding */
.page-index__about-section,
.page-index__security-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

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

@media (max-width: 768px) {
  .page-index {
    /* Mobile specific padding-top if shared.css doesn't handle it for mobile */
    /* padding-top: var(--header-offset-mobile, 80px); */
  }
  .page-index__hero-section {
    min-height: 450px;
    padding: 40px 15px;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-index__button--login {
    margin-left: 0;
  }
  .page-index__game-categories {
    grid-template-columns: 1fr;
  }
  .page-index__app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__app-image {
    order: 1;
  }
  .page-index__app-text {
    order: 2;
  }
  .page-index__testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Force images to be responsive and prevent overflow */
  .page-index img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    width: auto; /* Allow auto width calculation based on max-width */
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }

  /* Specific image overrides to ensure min-size for content images */
  .page-index__game-card-image,
  .page-index__app-image {
    width: 100%; /* Occupy full width of their container */
    height: auto;
    min-width: 200px; /* Ensure these are still large enough */
    min-height: 200px;
  }

  /* Ensure text content doesn't overflow */
  .page-index__text-content,
  .page-index__game-card-description,
  .page-index__testimonial-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .page-index__container {
    padding: 15px;
  }
  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-index__app-image {
    max-width: 250px;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
}

/* Ensure all content images meet the minimum size requirement */
.page-index img:not(.page-index__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure images within cards are large enough */
.page-index__game-card-image {
  min-width: 280px; /* Based on minmax(280px, 1fr) for card */
  min-height: 200px;
}

/* Prevent any filter effects */
.page-index img {
  filter: none !important; /* Ensure no CSS filters are applied */
}