/* style/index.css */

/* --- General Page Styling (BEM) --- */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f8f9fa; /* Light background for the page content */
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #007bff; /* Primary color for main titles */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
  line-height: 1.2;
}

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

/* --- Buttons (BEM) --- */
.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;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box;
}

.page-index__cta-button--primary {
  background: #007bff;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.page-index__cta-button--primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.page-index__cta-button--secondary {
  background: #28a745;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.page-index__cta-button--secondary:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.page-index__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: #007bff;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-index__btn-small:hover {
  background: #0056b3;
}

/* --- Image Styling --- */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Consistent border-radius for images */
}

/* --- HERO Section (BEM) --- */
.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 content is below fixed header */
  background: linear-gradient(135deg, #007bff, #28a745); /* Gradient background for visual appeal */
  color: #ffffff; /* White text for dark gradient background */
}

.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;
}

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

.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: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

/* --- Module 1: Intro Section (BEM) --- */
.page-index__intro-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
}

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

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

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

.page-index__intro-item img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__intro-item-title {
  font-size: 24px;
  color: #007bff;
  margin-bottom: 15px;
}

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

/* --- Module 2: Quick Access Section (BEM) --- */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: #007bff; /* Primary color background */
  color: #ffffff; /* White text for dark background */
}

.page-index__quick-access-section .page-index__section-title,
.page-index__quick-access-section .page-index__section-description {
  color: #ffffff;
}

.page-index__access-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.page-index__access-item {
  flex: 1 1 auto; /* Allow items to grow and shrink */
  max-width: 280px; /* Max width for each item */
  padding: 18px 25px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-index__access-item.page-index__btn-primary {
  background: #28a745; /* Secondary color for contrast */
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.page-index__access-item.page-index__btn-primary:hover {
  background: #218838;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.page-index__access-item.page-index__btn-secondary {
  background: #ffffff;
  color: #007bff;
  border: 2px solid #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.page-index__access-item.page-index__btn-secondary:hover {
  background: #e9f5ff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}

/* --- Module 3: Games Section (BEM) --- */
.page-index__games-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
}

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

.page-index__game-card {
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for game images */
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.page-index__game-card-title {
  font-size: 22px;
  margin: 20px 15px 10px;
  color: #007bff;
}

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

.page-index__game-card-title a:hover {
  color: #0056b3;
}

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

.page-index__game-card .page-index__btn-small {
  margin-bottom: 20px;
}

/* --- Module 4: Promotions Section (BEM) --- */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #007bff; /* Primary color background */
  color: #ffffff; /* White text for dark background */
}

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__section-description {
  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: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__promo-card img {
  width: 100%;
  height: 220px; /* Fixed height for promo images */
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.page-index__promo-card-title {
  font-size: 20px;
  margin: 20px 15px 10px;
  color: #007bff;
}

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

.page-index__promo-card-title a:hover {
  color: #0056b3;
}

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

.page-index__promo-card .page-index__btn-small {
  margin-bottom: 20px;
}

.page-index__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

/* --- Module 5: Security & Support Section (BEM) --- */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
}

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

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

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

.page-index__security-item img {
  width: 100%;
   /* Fixed height for security images */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__security-item-title {
  font-size: 24px;
  color: #007bff;
  margin-bottom: 15px;
}

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

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

/* --- Module 6: FAQ Section (BEM) --- */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #007bff; /* Primary color background */
  color: #ffffff; /* White text for dark background */
}

.page-index__faq-section .page-index__section-title,
.page-index__faq-section .page-index__section-description {
  color: #ffffff;
}

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff; /* White background for FAQ item */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  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: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: #333333; /* Dark text for question */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #007bff; /* Primary color for toggle */
  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: 30px;
  height: 30px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #28a745; /* Secondary color when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}