/* style/index.css */
.page-index {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-index__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  padding: 60px 20px;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__hero-content {
  position: relative;
  z-index: 3;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  padding: 30px;
  border-radius: 10px;
  max-width: 900px;
}

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

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

.page-index__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #0A2E36; /* Dark text on gold button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-index__cta-button:hover {
  background-color: #e6c200; /* Darker gold on hover */
  transform: translateY(-2px);
}

.page-index__cta-button--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

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

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

.page-index__section-title {
  font-size: 2.5em;
  color: #0A2E36; /* Dark primary color for headings */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

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

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

.page-index__text-content--centered {
  text-align: center;
}

.page-index__text-content a {
  color: #0A2E36;
  text-decoration: underline;
}

.page-index__text-content a:hover {
  color: #FFD700;
}

.page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__why-choose-us, .page-index__detail-pages-section, .page-index__cta-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.page-index__about-section {
  background-color: #ffffff;
}

.page-index__features-grid, .page-index__game-categories, .page-index__promo-grid, .page-index__usp-grid, .page-index__detail-list {
  display: grid;
  gap: 30px;
  margin-top: 30px;
}

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

.page-index__feature-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__feature-card:hover {
  transform: translateY(-5px);
}

.page-index__feature-icon {
  width: 200px; /* Minimum 200px */
  height: 150px; /* Adjusted height for aspect ratio */
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index__card-title {
  font-size: 1.5em;
  color: #0A2E36;
  margin-bottom: 15px;
}

.page-index__card-description {
  font-size: 1em;
  color: #555;
}

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

.page-index__category-card {
  display: flex;
  flex-direction: column;
  background-color: #0A2E36; /* Dark background for category cards */
  color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__category-image {
  width: 100%;
  height: 200px; /* Minimum 200px */
  object-fit: cover;
}

.page-index__category-card .page-index__card-title {
  color: #FFD700; /* Gold title on dark card */
  padding: 15px 20px 5px;
}

.page-index__category-card .page-index__card-description {
  color: #f0f0f0;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-index__category-link {
  display: block;
  background-color: #FFD700;
  color: #0A2E36;
  padding: 10px 20px;
  text-align: center;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-index__category-link:hover {
  background-color: #e6c200;
}

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

.page-index__promo-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
}

.page-index__promo-image {
  width: 100%;
  height: 250px; /* Min 200px */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__promo-card .page-index__card-title {
  color: #0A2E36;
}

.page-index__promo-card .page-index__card-description {
  color: #555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__usp-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  text-align: center;
}

.page-index__usp-item {
  background-color: #0A2E36;
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__usp-icon {
  width: 200px; /* Minimum 200px */
  height: 200px; /* Minimum 200px */
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-index__usp-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-index__detail-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.page-index__detail-card .page-index__card-title {
  color: #0A2E36;
  margin-bottom: 15px;
}

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

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

.page-index__detail-card .page-index__card-description {
  color: #555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__cta-section {
  background-color: #0A2E36; /* Dark background for final CTA */
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-index__cta-container .page-index__section-title {
  color: #FFD700;
}

.page-index__cta-container .page-index__text-content {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-container .page-index__text-content a {
  color: #FFD700;
  text-decoration: underline;
}

.page-index__cta-container .page-index__text-content a:hover {
  color: #e6c200;
}

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

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-index__features-grid, .page-index__game-categories, .page-index__promo-grid, .page-index__usp-grid, .page-index__detail-list {
    grid-template-columns: 1fr;
  }
  .page-index__hero-image, .page-index__feature-icon, .page-index__category-image, .page-index__promo-image, .page-index__usp-icon {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px);
  }
  .page-index__hero-content {
    padding: 20px;
  }
  .page-index__text-content {
    text-align: left;
  }
}

@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__container {
    padding: 30px 15px;
  }
}