/* style/index.css */

/* --- Global Page Styles for .page-index --- */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light body background */
  background-color: #ffffff; /* Explicitly set for clarity, though shared.css might define 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 content is below fixed header */
  background-color: #017439; /* Primary color background for hero */
  color: #ffffff; /* White text on primary color background */
  overflow: hidden; /* Prevent image 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;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-index__hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
}

.page-index__hero-content p {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
  color: #ffffff;
}

.page-index__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping 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: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-index__cta-button--register:hover {
  background: #ff3b3b;
  border-color: #ff3b3b;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-index__cta-button--login:hover {
  background: #ff3b3b;
  border-color: #ff3b3b;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- General Section Styles --- */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-index__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  color: #017439; /* Primary color for titles */
}

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

/* Background colors */
.page-index__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-index__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-index__dark-bg .page-index__section-title,
.page-index__dark-bg .page-index__section-description {
  color: #ffffff;
}

/* --- Module 1: Introduction Section --- */
.page-index__introduction-section {
  padding: 80px 0;
}

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

.page-index__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__feature-item img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-index__feature-item h3 {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__feature-item p {
  font-size: 1em;
  color: #666666;
}

/* --- Module 2: Quick Access Section --- */
.page-index__quick-access-section {
  padding: 80px 0;
  text-align: center;
}

.page-index__quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.page-index__quick-link-button {
  display: block;
  padding: 18px 25px;
  background: #ffffff;
  color: #017439;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__quick-link-button:hover {
  background: #e0ffe0;
  color: #005a2d;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- Module 3: Core Games/Services --- */
.page-index__games-section {
  padding: 80px 0;
}