/* style/index.css */
/* Base styles for the page content, ensuring contrast with shared body background */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Matches the shared body background */
}

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

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

.page-index__section-title--light {
  color: #FFFFFF; /* White for dark backgrounds */
}

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

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

/* Button styles */
.page-index__btn-primary {
  display: block;
  width: fit-content;
  margin: 50px auto 0 auto;
  padding: 15px 40px;
  background: #26A9E0; /* Primary color */
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #26A9E0;
  box-sizing: border-box;
}

.page-index__btn-primary:hover {
  background: #1e87c2;
  border-color: #1e87c2;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #FFFFFF;
  color: #26A9E0; /* Primary color for text */
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #26A9E0;
  box-sizing: border-box;
}

.page-index__btn-secondary:hover {
  background: #26A9E0;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 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); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, #26A9E0 0%, #FFFFFF 100%); /* Light blue to white gradient */
  overflow: hidden; /* To contain potential overflows 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;
  z-index: 1; /* Ensure image is behind text if text is overlayed */
}

.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.2);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-index__hero-title {
  font-size: 52px;
  color: #000000; /* Dark text for contrast on light background */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 22px;
  color: #333333;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* For mobile responsiveness */
}

.page-index__cta-button {
  display: inline-block;
  padding: 18px 45px;
  text-decoration: none;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Ensure buttons are not too small */
  box-sizing: border-box;
}

.page-index__cta-button--primary {
  background: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index__cta-button--primary:hover {
  background: #1e87c2;
  border-color: #1e87c2;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.page-index__cta-button--secondary {
  background: #EA7C07; /* Login specific color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-index__cta-button--secondary:hover {
  background: #d46c05;
  border-color: #d46c05;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

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

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

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

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

.page-index__feature-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__feature-item p {
  color: #555555;
  font-size: 16px;
}

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

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

.page-index__access-card {
  display: block;
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent white on dark background */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #FFFFFF;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__access-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.page-index__access-title {
  font-size: 22px;
  color: #FFFFFF;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index__access-card p {
  font-size: 15px;
  opacity: 0.9;
}

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

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

.page-index__game-card {
  display: block;
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__game-card .page-index__game-title {
  font-size: 22px;
  font-weight: bold;
  color: #26A9E0;
  padding: 15px 20px 5px 20px;
}

.page-index__game-card p {
  font-size: 15px;
  color: #555555;
  padding: 0 20px 15px 20px;
}

.page-index__game-card .page-index__game-link {
  display: block;
  text-align: center;
  padding: 10px 20px;
  background: #26A9E0;
  color: #FFFFFF;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  border-radius: 0 0 10px 10px;
}

/* Module 4: Promotions */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary brand color for background */
  color: #FFFFFF;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #FFFFFF;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFFFFF;
  padding: 15px 20px 5px 20px;
}

.page-index__promo-card p {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 20px 20px 20px;
}

.page-index__promo-card .page-index__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
}

/* Module 5: Security &amp; Customer Service */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-index__info-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__info-item img {
  width: 200px; /* Min size enforced */
  height: 200px; /* Min size enforced */
  margin: 0 auto 20px auto;
  display: block;
  object-fit: contain; /* Ensure full image is visible within 200x200 */
}

.page-index__info-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__info-item p {
  color: #555555;
  font-size: 16px;
}

/* Module 6: FAQ Common Questions */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary brand color for background */
  color: #FFFFFF;
}

.page-index__faq-list {
  max-width: 800px;
  margin: 50px auto 0 auto;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #26A9E0; /* Primary color for question title */
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #26A9E0;
  transform: rotate(45deg); /* Plus sign rotates to X */
}

.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fefefe;
  color: #555555;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.page-index__faq-answer p {
  margin-bottom: 10px;
  font-size: 16px;
  color: #555555;
}

.page-index__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Module 7: Latest Blog Content */
.page-index__blog-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-index__blog-card {
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__blog-card .page-index__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
}