:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-login-bg: #C30808;
  --register-login-text: #FFFFFF; /* Adjusted for WCAG AA contrast, original #FFFF00 */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-index {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
  background-color: var(--background-light);
  line-height: 1.6;
}

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

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

.page-index__section-title--light {
  color: var(--text-light);
}

.page-index__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__text-block--light {
  color: var(--text-light);
}

/* Buttons */
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-index__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.page-index__btn-primary:hover {
  background-color: #005a2e; /* Darken primary color */
  border-color: #005a2e;
}

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

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

/* Specific Register/Login buttons */
.page-index__cta-button--register,
.page-index__cta-button--login {
  background-color: var(--register-login-bg);
  color: var(--register-login-text);
  border-color: var(--register-login-bg);
}

.page-index__cta-button--register:hover,
.page-index__cta-button--login:hover {
  background-color: #a40707; /* Darken register-login-bg */
  border-color: #a40707;
}

/* 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); /* Ensures content is not hidden by fixed header */
  background-color: var(--background-light);
}

.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;
}

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

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

.page-index__hero-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Intro Section */
.page-index__intro-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-index__btn-learn-more {
  margin-top: 30px;
}

/* Quick Links Section */
.page-index__quick-links-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-index__quick-link-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

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

.page-index__quick-link-item h3 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-index__quick-link-item p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Core Games Section */
.page-index__core-games-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-index__game-category {
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__game-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  min-height: 200px; /* Ensure minimum size */
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-index__game-title {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 15px;
}
}