/* style/index.css */

/* --- General Page Styles --- */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: var(--secondary-color, #FFFFFF); /* Ensure body background is light */
}

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

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

.page-index__section-title--white {
  color: #FFFFFF;
}

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

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

.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;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-index__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-primary {
  background: var(--primary-color, #017439);
  color: #ffffff;
}

.page-index__btn-primary:hover {
  background: #005a2d; /* Manually darkened */
}

.page-index__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #017439);
  border: 1px solid var(--primary-color, #017439);
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  color: #005a2d; /* Manually darkened */
}

.page-index__btn-register {
  background: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
}

.page-index__btn-register:hover {
  background: #a40707; /* Manually darkened */
}

.page-index__btn-login {
  background: #C30808; /* Custom color for login */
  color: #FFFF00; /* Custom font color for login */
}

.page-index__btn-login:hover {
  background: #a40707; /* Manually darkened */
}

.page-index__btn-text {
  color: var(--primary-color, #017439);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.page-index__btn-text:hover {
  color: #005a2d; /* Manually darkened */
}

.page-index__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* --- 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); /* Fixed header offset */
  background: linear-gradient(135deg, #017439, #28a745); /* Gradient background for visual appeal */
  overflow: hidden; /* Ensure no overflow from image */
}

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

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

.page-index__hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for main title */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-content p {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}


/* --- Module 1: Introduction Section --- */
.page-index__introduction-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
}

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

.page-index__feature-item {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  background-color: #f8f8f8;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 250px; /* Ensure consistent height */
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__feature-item img {
  width: 200px; /* Set display size for icon-like images */
  height: 200px; /* Set display size for icon-like images */
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-index__feature-item h3 {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
}

.page-index__feature-item p {
  font-size: 16px;
  color: #666666;
  flex-grow: 1;
}


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

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

.page-index__access-link {
  display: block;
  padding: 18px 25px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-index__access-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}


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

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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