/* style/index.css */
.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  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: 0 20px;
}

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

.page-index__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-index__btn {
  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;
  margin: 10px;
  min-width: 150px; /* Ensure button minimum width */
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.page-index__btn--primary {
  background-color: #FFD700; /* Gold primary button */
  color: #000080; /* Dark blue text */
}

.page-index__btn--primary:hover {
  background-color: #e6c200;
  color: #00005a;
}

.page-index__btn--secondary {
  background-color: #000080; /* Dark blue secondary button */
  color: #FFD700; /* Gold text */
}

.page-index__btn--secondary:hover {
  background-color: #00005a;
  color: #e6c200;
}

.page-index__btn--tertiary {
  background-color: #333333; /* Dark grey tertiary button */
  color: #FFD700; /* Gold text */
}

.page-index__btn--tertiary:hover {
  background-color: #1a1a1a;
  color: #e6c200;
}

.page-index__btn--link {
  background: none;
  color: #000080; /* Dark blue link text */
  padding: 0;
  margin: 0;
  min-width: unset;
  text-decoration: underline;
}

.page-index__btn--link:hover {
  color: #FFD700;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0; /* Remove padding here as padding-top is on .page-index */
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 80px 20px; /* Add internal padding for content */
  box-sizing: border-box;
}

.page-index__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff; /* White text on dark/rich background image */
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay for readability */
  padding: 40px;
  border-radius: 10px;
}

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

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

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

/* About Section */
.page-index__about-section {
  background-color: #ffffff;
  padding: 60px 0;
}

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

.page-index__feature-card {
  background-color: #fcfcfc;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-index__feature-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__feature-list {
  text-align: left;
  list-style: disc inside;
  color: #666666;
  margin-bottom: 20px;
}

.page-index__feature-list li {
  margin-bottom: 5px;
}

.page-index__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.page-index__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-index__game-card h3 {
  font-size: 1.5em;
  color: #000080;
  padding: 20px 20px 10px;
}

.page-index__game-card p {
  padding: 0 20px 20px;
  color: #666666;
  flex-grow: 1;
}

.page-index__game-card .page-index__btn {
  margin: 0 20px 20px;
}

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

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

.page-index__promo-card {
  background-color: #fcfcfc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.page-index__promo-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-index__promo-card h3 {
  font-size: 1.5em;
  color: #000080;
  padding: 20px 20px 10px;
}

.page-index__promo-card p {
  padding: 0 20px 20px;
  color: #666666;
  flex-grow: 1;
}

.page-index__promo-card .page-index__btn {
  margin: 0 20px 20px;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
  background-color: #f0f0f0;
  padding: 60px 0;
  text-align: center;
}

/* Blog Section */
.page-index__blog-section {
  background-color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-index__blog-links {
  margin-top: 30px;
}

/* Call to Action Section */
.page-index__cta-section {
  background-color: #000080; /* Dark blue background */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-index__cta-section .page-index__section-title,
.page-index__cta-section .page-index__section-intro {
  color: #ffffff; /* White text for CTA section */
}

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

/* 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-content {
    padding: 30px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-intro {
    font-size: 1em;
  }
  .page-index__btn {
    padding: 10px 20px;
    min-width: 120px;
  }
  /* Mobile Overflow Prevention for images */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__game-image, .page-index__promo-image {
    height: auto; /* Allow auto height for responsive images */
  }
  .page-index__hero-actions, .page-index__cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .page-index__btn {
    width: 80%; /* Make buttons take more width on mobile */
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-content {
    padding: 20px;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__section-intro {
    font-size: 0.9em;
  }
  .page-index__container {
    padding: 0 15px;
  }
}