/* style/index.css */

/* General page styles */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #ffffff); /* Use shared background variable, fallback to white */
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0; /* Brand color for main titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

/* Button styles */
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button adapts to container */
}

.page-index__btn-primary {
  background-color: #26A9E0; /* Brand color */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-index__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-index__btn-primary.page-index__btn-login {
  background-color: #EA7C07; /* Login color */
  border-color: #EA7C07;
}

.page-index__btn-primary.page-index__btn-login:hover {
  background-color: #c96706;
  border-color: #c96706;
}

.page-index__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1e87b7;
  border-color: #1e87b7;
}

.page-index__btn-link {
  background: none;
  border: none;
  color: #26A9E0;
  padding: 0;
  font-size: 15px;
  text-decoration: underline;
  text-align: center;
}

.page-index__btn-link:hover {
  color: #1e87b7;
}

/* Image base styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Color contrast classes */
.page-index__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-index__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* Assuming shared.css sets body padding-top */
  margin-top: 0;
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin: 0;
}

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

/* Product Showcase Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: var(--background-color, #ffffff);
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small + 2 large side-by-side */
  gap: 20px;
}

.page-index__products-grid {
  display: grid;
  gap: 20px;
}

.page-index__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-index__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-index__product-card {
  width: 100%;
  max-width: 300px; /* Max width for product card */
  border-radius: 0; /* No round corners */
  overflow: hidden;
  background-color: transparent;
  box-shadow: none; /* No shadow */
  transition: transform 0.3s ease;
  justify-self: center; /* Center cards in grid cells */
}

.page-index__product-card:hover {
  transform: translateY(-3px); /* Slight lift on hover */
}

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

.page-index__product-card-image {
  width: 100%;
  max-width: 300px; /* Max width for image container */
  overflow: hidden;
}

.page-index__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
}

/* Intro Section */
.page-index__intro-section {
  padding: 80px 0;
  background-color: var(--background-color, #ffffff);
  color: #333333;
}

.page-index__main-title {
  font-size: 42px;
  font-weight: 800;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

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

.page-index__intro-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  color: #444444;
}

.page-index__intro-content p {
  margin-bottom: 15px;
}

.page-index__features-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.page-index__features-list li {
  background-color: #f8f8f8;
  padding: 15px;
  border-left: 5px solid #26A9E0;
  border-radius: 5px;
  font-size: 16px;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

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

.page-index__quick-access-section .page-index__section-description {
  color: #f0f0f0;
}

.page-index__button-group {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: var(--background-color, #ffffff);
  color: #333333;
}

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 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 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-index__game-title {
  font-size: 22px;
  color: #26A9E0;
  margin: 20px 15px 10px;
}

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

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

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

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white background */
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
}

.page-index__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__promo-title {
  font-size: 20px;
  color: #ffffff;
  margin: 0 15px 10px;
}

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

/* Security & Support Section */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: var(--background-color, #ffffff);
  color: #333333;
}

.page-index__security-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-index__info-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-index__info-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__info-title {
  font-size: 20px;
  color: #26A9E0;
  margin: 0 15px 10px;
}

.page-index__info-description {
  font-size: 15px;
  color: #666666;
  padding: 0 15px;
}

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

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

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

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

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

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

.page-index__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #333;
}

.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 15px;
  opacity: 0;
  color: #333333; /* Ensure text is dark on light background */
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Ensure it expands fully */
  padding: 20px 15px !important;
  opacity: 1;
  background-color: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 0;
  background-color: var(--background-color, #ffffff);
  color: #333333;
}

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

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

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

.page-index__blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-index__blog-title {
  font-size: 20px;
  margin: 20px 15px 10px;
}

.page-index__blog-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-index__blog-title a:hover {
  color: #1e87b7;
  text-decoration: underline;
}