/* style/index.css */

/* Custom CSS variables for this page */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-font: #FFFF00;
  --default-text-color: #333333;
  --dark-text-color: #000000;
  --light-text-color: #ffffff;
  --border-color: #e0e0e0;
  --card-bg: #ffffff;
  --section-padding-y: 60px;
  --section-padding-x: 20px;
}

.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--default-text-color); /* Default text color for light body background */
  background-color: var(--secondary-color); /* Default background color */
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

.page-index__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-index__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

/* CTA Button Styles */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding doesn't increase total width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-index__cta-button--primary {
  background: var(--register-button-bg); /* Using specific color for register/login */
  color: var(--register-login-font);
}

.page-index__cta-button--primary:hover {
  background: #a30606; /* Slightly darker red */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
  background: var(--primary-color);
  color: var(--light-text-color);
}

.page-index__cta-button--secondary:hover {
  background: #005a2e; /* Slightly darker green */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-index__cta-buttons--center {
  text-align: center;
}

/* Section Backgrounds */
.page-index__light-bg {
  background-color: var(--secondary-color);
  color: var(--default-text-color);
}

.page-index__dark-section {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

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

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

/* HERO Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-padding-y) var(--section-padding-x);
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  background: linear-gradient(135deg, var(--primary-color), #005a2e); /* Gradient background for depth */
  color: var(--light-text-color);
}

.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;
  max-width: 800px; /* Limit image width on larger screens */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-index__hero-description {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Module 1: Intro Section */
.page-index__intro-section {
  padding: var(--section-padding-y) 0;
}

/* Module 2: Quick Access Section */
.page-index__quick-access-section {
  padding: var(--section-padding-y) 0;
  text-align: center;
}

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

.page-index__quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--light-text-color);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__quick-link-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index__quick-link-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--register-login-font); /* Highlight titles */
}

.page-index__quick-link-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Module 3: Core Games Section */
.page-index__core-games-section {
  padding: var(--section-padding-y) 0;
}

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

.page-index__game-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards have equal height */
}

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

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

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

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

.page-index__game-card-title a:hover {
  color: #005a2e; /* Darker green on hover */
}

.page-index__game-card-description {
  font-size: 16px;
  padding: 0 20px 20px;
  color: var(--default-text-color);
  flex-grow: 1; /* Make description take available space */
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
  padding: var(--section-padding-y) 0;
  text-align: center;
}

.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: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--light-text-color);
}

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

.page-index__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for promo image */
  object-fit: cover;
  display: block;
}

.page-index__promo-card-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--register-login-font); /* Highlight titles */
}

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

.page-index__promo-card-title a:hover {
  color: #FFFF99; /* Lighter yellow on hover */
}

.page-index__promo-card-description {
  font-size: 16px;
  padding: 0 20px 20px;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Module 5: Security & Support Section */
.page-index__security-support-section {
  padding: var(--section-padding-y) 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(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

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

.page-index__feature-description {
  font-size: 16px;
  color: var(--default-text-color);
}

/* Module 6: FAQ Section */
.page-index__faq-section {
  padding: var(--section-padding-y) 0;
}

.page-index__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background: var(--card-bg);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-item.active .page-index__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--primary-color);
}

.page-index__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-index__faq-question:active {
  background: #eeeeee;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}