/* style/index.css */

/* General page styling */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly set for main content area if shared doesn't */
}

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

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

.page-index__text-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 17px;
}

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

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

/* CTA Button Base Styles */
.page-index__cta-button,
.page-index__access-button,
.page-index__game-card-button,
.page-index__promo-card-button,
.page-index__blog-card-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't make button wider */
}

/* Specific button colors */
.page-index__btn-primary {
  background: #017439; /* Main brand color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
}

.page-index__btn-primary:hover {
  background: #005a2b; /* Slightly darker green on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  background: #ffffff;
  color: #017439; /* Brand color text on white background */
  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);
}

/* Custom button colors (Register/Login) with contrast fix */
.page-index__btn-register,
.page-index__btn-login {
  background: #C30808; /* Custom red color */
  color: #FFFFFF; /* FORCED WHITE TEXT for contrast (original #FFFF00 fails) */
  border: 2px solid transparent;
}

.page-index__btn-register:hover,
.page-index__btn-login:hover {
  background: #a00606; /* Slightly darker red on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Section backgrounds */
.page-index__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-index__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

/* Image base styling - important for responsive and no small icons */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* Consistent border-radius for images */
}

/* HERO Main Image Area */
.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, #005a2b); /* Darker gradient for hero */
  color: #ffffff;
}

.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: 1000px; /* Limit hero image width */
}

.page-index__hero-image img {
  width: 100%;
  height: 675px; /* Aspect ratio for 1200px width (16:9) */
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

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

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

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

.page-index__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Module 1: Homepage Introduction */
.page-index__introduction-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-index__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  color: #017439;
}

.page-index__intro-image {
  margin: 60px auto 0 auto;
  width: 800px;
  height: 600px;
}

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

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

.page-index__access-button {
  flex-basis: calc(33.33% - 20px); /* 3 buttons per row on desktop */
  min-width: 200px;
  padding: 18px 25px;
  background: #ffffff;
  color: #017439;
  border: 2px solid #ffffff;
}

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

/* Custom button colors for access links */
.page-index__access-button.page-index__btn-register,
.page-index__access-button.page-index__btn-login {
  background: #C30808;
  color: #FFFFFF;
  border: 2px solid #C30808;
}

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

.page-index__access-image {
  margin: 60px auto 0 auto;
  width: 800px;
  height: 450px;
}


/* Module 3: Core Games/Services Introduction */
.page-index__games-section {
  padding: 80px 0;
  text-align: center;
}

.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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-index__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.page-index__game-card-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 15px 10px 15px;
  color: #017439;
}

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

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

.page-index__game-card-description {
  font-size: 15px;
  color: #555555;
  padding: 0 15px;
  flex-grow: 1;
}

.page-index__game-card-button {
  display: block;
  width: calc(100% - 30px);
  margin: 20px 15px;
  padding: 12px 0;
  background: #017439;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.page-index__game-card-button:hover {
  background: #005a2b;
  transform: translateY(-2px);
}

.page-index__games-section-image {
  margin: 60px auto 0 auto;
  width: 1000px;
  height: 750px;
}


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

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

.page-index__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  color: #333333; /* Ensure text is dark on white card background */
}

.page-index__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.page-index__promo-card-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 15px 10px 15px;
  color: #017439;
}

.page-index__promo-card p {
  font-size: 15px;
  color: #555555;
  padding: 0 15px;
  flex-grow: 1;
}

.page-index__promo-card-button {
  display: block;
  width: calc(100% - 30px);
  margin: 20px 15px;
  padding: 12px 0;
  background: #017439;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.page-index__promo-card-button:hover {
  background: #005a2b;
  transform: translateY(-2px);
}

/* Module 5: Security & Customer Service */
.page-index__security-support-section {
  padding: 80px 0;
  text-align: center;
}

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

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

.page-index__security-image {
  margin: 60px auto 0 auto;
  width: 800px;
  height: 600px;
}

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

.page-index__faq-list {
  max-width: 900px;
  margin: 50px auto 40px auto;
  text-align: left;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff; /* FAQ item background */
}