/* style/index.css */

/* Custom CSS Variables for colors */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9; /* Slightly off-white for sections */
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Default body background is white from shared.css */
}

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

.page-index__section-title {
  font-size: 32px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

.page-index__section-description--white {
  color: var(--text-light);
}

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

/* Button Base Styles */
.page-index__cta-button,
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index a[class*="button"],
.page-index a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-index__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-index__btn-primary:hover {
  background-color: #1e8bc3; /* A darker shade of primary-color */
  border-color: #1e8bc3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Light/Dark Background Classes for sections */
.page-index__light-bg {
  background-color: var(--secondary-color); /* Matches body default */
  color: var(--text-dark);
}

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

/* 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); /* Ensure space below fixed header */
  background-color: #f0f8ff; /* A very light blue for hero section background */
  overflow: hidden; /* Prevent image overflow */
}

.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;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  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%;
}

.page-index__hero-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-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 .page-index__text-block {
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
}
.page-index__introduction-section .page-index__text-block p {
  margin-bottom: 15px;
}
.page-index__introduction-section .page-index__text-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}
.page-index__introduction-section .page-index__text-block a:hover {
  text-decoration: underline;
}

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

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

.page-index__quick-access-item {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 20px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; /* For vertical alignment of text if it wraps */
  align-items: center;
  justify-content: center;
  min-height: 80px; /* Ensure consistent height */
  border: 2px solid var(--primary-color);
}

.page-index__quick-access-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.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-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-index__game-card .page-index__game-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

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

.page-index__game-card .page-index__btn-secondary {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

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

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

.page-index__promotion-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-index__promotion-card .page-index__promotion-title {
  font-size: 20px;
  color: var(--primary-color);
  margin: 20px 15px 10px;
}

.page-index__promotion-card .page-index__promotion-description {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 15px 20px;
  flex-grow: 1;
}

/* Module 5: Security & Support Section */
.page-index__security-support-section {
  padding: 80px 20px;
}

.page-index__security-support-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index__security-support-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
}

.page-index__feature-item {
  margin-bottom: 25px;
}

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

.page-index__security-support-image {
  flex: 1;
  text-align: center;
}

.page-index__security-support-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

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

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  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-question:hover {
  background: var(--background-light);
  border-color: #d0d0d0;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.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.3s ease;
  padding: 0 20px;
  opacity: 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: var(--primary-color);
  transform: rotate(0deg); /* Explicitly set for '-' sign */
}

/* Module 7: Blog Section */
.page-index__blog-section {
  padding: 80px 20px;
}

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