/* style/index.css */
/* Base styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background: #FFFFFF; /* Default body background */
}

/* Fixed header offset - applied to 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);
  background-color: #f0f0f0; /* A light background for the hero section */
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  max-width: 1400px;
  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;
}

.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%;
  padding: 0 20px;
}

.page-index__hero-content h1 {
  font-size: 3.2em;
  color: #017439;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  line-height: 1.2;
}

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

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

.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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-index__cta-button--primary:hover {
  background: #005f2c;
  border-color: #005f2c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-index__cta-button--register:hover {
  background: #a00606;
  border-color: #a00606;
}

/* General Section Styles */
.page-index__section {
  padding: 80px 0;
}

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

.page-index__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
}

.page-index__section-title--light {
  color: #ffffff;
}

.page-index__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

.page-index__text-block--light {
  color: #f0f0f0;
}

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

.page-index__intro-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-index__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  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 {
  
  
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__feature-item h3 {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-index__feature-item p {
  font-size: 0.95em;
  color: #555555;
}

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

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

.page-index__quick-link-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-index__quick-link-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-index__quick-link-content {
  padding: 20px;
  flex-grow: 1;
}

.page-index__quick-link-content h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-index__quick-link-content p {
  font-size: 0.9em;
  color: #f0f0f0;
}

/* Module 3: Games and Services Section */
.page-index__games-services-section {
  background: #ffffff;
  color: #333333;
}

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

.page-index__game-card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
}

.page-index__game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-index__game-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__game-card-content h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-index__game-card-content h3 a {
  color: #017439;
  text-decoration: none;
}

.page-index__game-card-content h3 a:hover {
  text-decoration: underline;
}

.page-index__game-card-content p {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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