/* style/index.css */
/* Main Page Styling */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  line-height: 1.6;
}

/* Header Offset - Apply to the first main section to prevent content from being hidden by fixed header */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background: linear-gradient(135deg, #1A237E, #3b428d); /* Blend of primary color */
  color: #ffffff; /* Light text for dark background */
  overflow: hidden; /* Prevent content overflow */
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 100%; /* Ensure image container doesn't overflow */
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%; /* Responsive image */
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px; /* Add some padding for text on smaller screens */
}

.page-index__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFD700; /* Gold for highlight */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-index__intro-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-index__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: #FFD700; /* Auxiliary color */
  color: #1A237E; /* Primary color for text on gold background */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-index__cta-button:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-index__section-padding {
  padding: 80px 0;
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%; /* Ensure container takes full width for mobile responsiveness */
  box-sizing: border-box;
}

.page-index__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #1A237E;
  font-weight: bold;
}

.page-index__section-title--light {
  color: #FFD700; /* Gold for titles on dark backgrounds */
}

.page-index__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-index__text-block p a {
  color: #1A237E;
  text-decoration: underline;
}

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

/* Dark Background Section */
.page-index__dark-bg {
  background: #1A237E;
  color: #f0f0f0;
}

/* Light Background Section */
.page-index__light-bg {
  background: #f8f8f8;
  color: #333333;
}

/* Button Group Styling */
.page-index__button-group {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: #FFD700;
  color: #1A237E;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index__btn-primary--large {
  padding: 18px 45px;
  font-size: 1.3em;
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #1A237E;
  color: #FFD700;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid #FFD700;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-secondary:hover {
  background: #FFD700;
  color: #1A237E;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__btn-text {
  color: #1A237E;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__btn-text:hover {
  color: #FFD700;
  text-decoration: underline;
}

.page-index__button-center {
  text-align: center;
  margin-top: 50px;
}

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

.page-index__game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards have a minimum height */
}

.page-index__game-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-card-title {
  font-size: 1.5em;
  color: #1A237E;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-index__game-card p {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 15px;
}

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

.page-index__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px; /* Ensure cards have a minimum height */
}

.page-index__promo-card img {
  width: 100%;
   /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-card-title {
  font-size: 1.3em;
  color: #1A237E;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-card p {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}