/* style/index.css */

/* Root variables for consistent styling */
:root {
  --primary-color: #017439;
  --secondary-color: #005f2f; /* A darker shade for hover effects or accents */
  --accent-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-text-color: #FFFF00; /* For register/login buttons */
  --border-color: #e0e0e0;
  --bg-light: #f9f9f9; /* Light background for sections */
  --bg-dark: #017439; /* Dark background for sections */
}

/* Base styles for the page content */
.page-index {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark); /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: var(--accent-color); /* Matches body background */
}

/* Section common styles */
.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

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

/* Light background sections */
.page-index__light-bg {
  background-color: var(--accent-color);
  color: var(--text-color-dark);
}
.page-index__light-bg .page-index__section-title {
  color: var(--primary-color);
}
.page-index__light-bg .page-index__section-description {
  color: #666;
}

/* Dark background sections */
.page-index__dark-section {
  background-color: var(--bg-dark);
  color: var(--text-color-light);
  padding: 60px 0;
}
.page-index__dark-section .page-index__section-title {
  color: var(--text-color-light);
}
.page-index__dark-section .page-index__section-description {
  color: #ccc;
}

/* CTA Button common styles */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 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 */
  overflow: hidden; /* Prevent content overflow */
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a9d6e 100%); /* Green gradient */
}

.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;
  position: relative;
  z-index: 1; /* Image behind text/buttons if they overlap */
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2; /* Text/buttons on top */
  text-align: center;
  width: 100%;
  padding: 20px;
  color: var(--text-color-light);
}

.page-index__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 22px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

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

.page-index__cta-button--register {
  background: var(--button-register-bg);
  color: var(--button-text-color);
}

.page-index__cta-button--login {
  background: var(--button-login-bg);
  color: var(--button-text-color);
}

.page-index__cta-button--register:hover,
.page-index__cta-button--login:hover {
  filter: brightness(1.2); /* Slightly brighten on hover */
}

/* Module 1: Intro Section */
.page-index__intro-section {
  padding: 80px 0;
}

.page-index__intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
  font-size: 17px;
}

.page-index__intro-content p {
  margin-bottom: 15px;
}

/* Module 2: Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
}

.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: var(--accent-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: bold;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  text-align: center;
  flex-grow: 1;
  max-width: 280px;
}

.page-index__access-button:hover {
  background: var(--primary-color);
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__access-button--register,
.page-index__access-button--login {
  background: var(--button-register-bg);
  color: var(--button-text-color);
  border-color: var(--button-register-bg);
}
.page-index__access-button--register:hover,
.page-index__access-button--login:hover {
  filter: brightness(1.2);
}


/* Module 3: Games Section */
.page-index__games-section {
  padding: 80px 0;
}

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

.page-index__game-card {
  background: var(--accent-color);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index__game-title {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

.page-index__game-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-title a:hover {
  color: var(--secondary-color);
}

.page-index__game-description {
  font-size: 15px;
  color: #555;
  padding: 0 15px 20px;
  min-height: 80px; /* Ensure consistent card height */
}

.page-index__game-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.page-index__game-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
}

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

.page-index__promo-card {
  background: var(--accent-color);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index__promo-description {
  font-size: 15px;
  color: #555;
  margin-bottom: 25px;
  min-height: 70px; /* Consistent height */
}

.page-index__promo-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index__promo-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Module 5: Security & CS Section */
.page-index__security-cs-section {
  padding: 80px 0;
}

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

.page-index__feature-item {
  text-align: center;
  background: var(--accent-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.page-index__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1)); /* Allowed shadow, not color filter */
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index__feature-description {
  font-size: 15px;
  color: #555;
}

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

.page-index__contact-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__contact-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Module 6: FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
}