/* style/index.css */

/* Define custom colors */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-login-button-bg: #C30808;
  --register-login-button-text: #FFFF00;
}

/* Base Styles for .page-index */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light background */
  background-color: var(--secondary-color); /* Matches body background */
  overflow-x: hidden; /* Prevent horizontal scroll on main content */
}

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

.page-index__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-index__section-title--white {
  color: var(--secondary-color);
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-description--white {
  color: #f0f0f0;
}

/* Common Button Styles */
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__cta-button,
.page-index__btn-text,
.page-index__game-tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 16px;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-index__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-index__btn-primary:hover {
  background: #004d26;
  border-color: #004d26;
}

.page-index__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-index__btn-text {
  background: none;
  color: var(--primary-color);
  padding: 8px 15px;
  text-decoration: underline;
  border: none;
}

.page-index__btn-text:hover {
  color: #004d26;
}

/* Image base styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 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 space for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #004d26 100%); /* Darker green gradient */
  color: var(--secondary-color);
}

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

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Constrain image width for better presentation */
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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