/* style/index.css */

/* General Page Styles */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set for clarity, though body is white */
}

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

.page-index__section-title {
  font-size: 36px;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-title--light {
  color: #ffffff; /* White for dark backgrounds */
}

.page-index__text-block {
  font-size: 17px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-index__text-block--light {
  color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-index__btn-primary {
  background: #017439;
  color: #ffffff;
  border: 2px solid transparent;
}

.page-index__btn-primary:hover {
  background: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__btn-register {
  background: #C30808; /* Specific color for register */
  color: #FFFF00; /* Specific font color for register */
  border: 2px solid transparent;
}

.page-index__btn-register:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-index__btn-login {
  background: #C30808; /* Specific color for login */
  color: #FFFF00; /* Specific font color for login */
  border: 2px solid transparent;
}

.page-index__btn-login:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

/* 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 space below fixed header */
  background-color: #f8f8f8; /* Light background 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;
}

.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%;
  max-width: 800px;
}

.page-index__hero-title {
  font-size: 48px;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 19px;
  color: #333333;
  margin-bottom: 40px;
}

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

/* Module 1: Homepage Introduction */
.page-index__intro-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

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

.page-index__feature-item:hover {
  transform: translateY(-5px);
}

.page-index__feature-item img {
  width: 100%;
  
  height: auto;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid #017439;
}

.page-index__feature-title {
  font-size: 22px;
  color: #017439;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-index__feature-item p {
  font-size: 16px;
  color: #555555;
}

/* Module 2: Quick Access Links */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
}

.page-index__access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index__access-button {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff;
  color: #017439;
  text-decoration: none;
  border-radius: 5px;
  font-size: 17px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
  box-sizing: border-box;
  text-align: center;
}

.page-index__access-button:hover {
  background: #f0f0f0;
  color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Specific button styles for quick access */
.page-index__access-button.page-index__btn-register,
.page-index__access-button.page-index__btn-login {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-index__access-button.page-index__btn-register:hover,
.page-index__access-button.page-index__btn-login:hover {
  background: #a30606;
  color: #FFFF00;
  border-color: #a30606;
}


/* Module 3: Core Games/Services Introduction */
.page-index__games-section {
  padding: 80px 0;
  background-color: #f0f8f0; /* Light green tint */
}

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