/* style/index.css */

/* General page styling */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Ensure consistency with shared body background */
}

/* HERO Section */
.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); /* Ensure spacing from fixed header */
  background: linear-gradient(135deg, #017439, #FFFFFF); /* Primary brand color gradient */
  color: #ffffff; /* White text for hero section */
}

.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;
  border-radius: 8px;
  overflow: hidden;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

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

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

.page-index__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  width: 100%;
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  flex-grow: 1; /* Allow buttons to grow */
  max-width: 220px; /* Max width for individual button */
  box-sizing: border-box; /* Include padding and border in the element's total width */
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button--register {
  background: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
  border: 2px solid #FFFF00;
}

.page-index__cta-button--register:hover {
  background: #a10606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--login {
  background: #C30808; /* Custom color for login */
  color: #FFFF00; /* Custom font color for login */
  border: 2px solid #FFFF00;
}

.page-index__cta-button--login:hover {
  background: #a10606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-index__section {
  padding: 80px 20px;
  text-align: center;
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add padding for container */
}

.page-index__heading {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #017439; /* Primary color for headings */
}

.page-index__heading--white {
  color: #ffffff;
}

.page-index__sub-heading {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__sub-heading--white {
  color: #f0f0f0;
}

/* Introduction Section (Module 1) */
.page-index__introduction-section {
  background-color: #FFFFFF;
  color: #333333;
}

.page-index__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-index__text-block {
  flex: 1;
}

.page-index__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-index__text-block a {
  color: #017439;
  text-decoration: underline;
}

.page-index__text-block a:hover {
  color: #005f2e;
}

.page-index__image-block {
  flex: 1;
  min-width: 300px; /* Ensure image block doesn't shrink too much */
}

.page-index__image-block img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

/* Quick Access Section (Module 2) */
.page-index__quick-access-section {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

.page-index__link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  text-align: left;
}

.page-index__quick-link-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: block;
  height: 100%; /* Ensure cards have equal height */
  box-sizing: border-box;
}

.page-index__quick-link-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.page-index__quick-link-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFF00; /* Accent color for titles */
}

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

.page-index__quick-link-description a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-index__quick-link-description a:hover {
  color: #fff;
}

/* Core Games/Services Section (Module 3) */
.page-index__games-section {
  background-color: #FFFFFF;
  color: #333333;
}

.page-index__games-carousel {
  display: flex;
  overflow-x: auto; /* Enable horizontal scrolling */
  gap: 30px;
  padding-bottom: 20px; /* Space for scrollbar */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scroll-snap-type: x mandatory; /* Snap to cards */
  justify-content: flex-start; /* Align items to start */
}

.page-index__games-carousel::-webkit-scrollbar {
  height: 8px;
}

.page-index__games-carousel::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.page-index__games-carousel::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.page-index__game-card {
  flex: 0 0 320px; /* Fixed width for cards, adjust as needed */
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  text-align: left;
  scroll-snap-align: start;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  min-width: 300px; /* Ensure card minimum width for content */
}

.page-index__game-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.page-index__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-index__game-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #017439;
}

.page-index__game-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-index__game-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: #555555;
}

.page-index__game-description a {
  color: #017439;
  text-decoration: underline;
}

.page-index__game-description a:hover {
  color: #005f2e;
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-secondary:hover {
  background: #017439;
  color: #ffffff;
}

/* Promotions Section (Module 4) */
.page-index__promotions-section {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

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