/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-index__main-title,
.page-index__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__cta-button,
.page-index__small-button,
.page-index__read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-index__btn-primary,
.page-index__cta-button {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index__btn-primary:hover,
.page-index__cta-button:hover {
  background: #1e87c6;
  border-color: #1e87c6;
}

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

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87c6;
  border-color: #1e87c6;
}

.page-index__small-button {
    padding: 8px 18px;
    font-size: 14px;
}

.page-index__read-more-btn {
    padding: 8px 18px;
    font-size: 14px;
    background: #26A9E0;
    color: #ffffff;
    border: 1px solid #26A9E0;
    border-radius: 4px;
}

.page-index__read-more-btn:hover {
    background: #1e87c6;
    border-color: #1e87c6;
}

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

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

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

/* Product Display Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #FFFFFF;
  box-sizing: border-box;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: first 4, then next 2 */
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.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 each card */
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.page-index__product-card:hover {
  transform: translateY(-3px);
}

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

.page-index__product-card-image {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
}

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

/* Module 1: Homepage Introduction */
.page-index__intro-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  color: #333333;
  box-sizing: border-box;
}

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

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

.page-index__feature-item:hover {
  transform: translateY(-5px);
}

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

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

/* Module 2: Quick Access Links */
.page-index__quick-access-section {
  background: #26A9E0;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  box-sizing: border-box;
}

.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;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow: hidden;
}

/* Module 3: Core Games/Services Introduction */
.page-index__games-section {
  padding: 80px 20px;
  background-color: #ffffff;
  color: #333333;
  box-sizing: border-box;
}

.page-index__game-category {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-index__game-category:last-child {
  margin-bottom: 0;
}

.page-index__game-category--reverse {
  flex-direction: row-reverse;
}

.page-index__game-content {
  flex: 1;
}

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

.page-index__game-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
}

.page-index__game-title {
  font-size: 28px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__game-text {
  font-size: 17px;
  color: #555555;
  margin-bottom: 25px;
}

/* Module 4: Promotions */
.page-index__promotions-section {
  background: #26A9E0;
  color: #ffffff;
  padding: 80px 20px;
  box-sizing: border-box;
}

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

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

.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.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.page-index__promo-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__promo-text {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Module 5: Security & Customer Service */
.page-index__security-cs-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  color: #333333;
  box-sizing: border-box;
}

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

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

.page-index__security-item:hover {
  transform: translateY(-5px);
}

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

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

.page-index__contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow: hidden;
}

/* Module 6: FAQ */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #ffffff;
  color: #333333;
  box-sizing: border-box;
}

.page-index__faq-list {
  margin-top: 50px;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}
details.page-index__faq-item summary.page-index__faq-question:hover {
  background: #f5f5f5;
}
.page-index__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Module 7: Latest Blog Content */
.page-index__blog-section {
  background: #26A9E0;
  color: #ffffff;
  padding: 80px 20px;
  box-sizing: border-box;
}

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

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

.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: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.page-index__blog-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
}

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

.page-index__blog-content {
  padding: 20px;
  color: #333333;
}

.page-index__blog-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

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

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

.page-index__blog-meta {
  font-size: 14px;
  color: #777777;
  margin-bottom: 15px;
}

.page-index__blog-summary {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

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

/* General image responsiveness */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsive design */
@media (max-width: 1024px) {
  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack product grids vertically */
  }
  
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .page-index__game-category {
    flex-direction: column;
    text-align: center;
  }

  .page-index__game-category--reverse {
    flex-direction: column;
  }

  .page-index__game-image {
    order: -1; /* Image above content on mobile for reversed sections */
    margin-bottom: 20px;
  }

  .page-index__game-title {
    font-size: 24px;
  }

  .page-index__section-title {
    font-size: 28px;
  }

  .page-index__description,
  .page-index__section-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  /* HERO Main Image Area */
  .page-index__hero-section {
    padding-top: 10px !important;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Product Display Image Area */
  .page-index__products-section {
    padding: 40px 15px;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  
  .page-index__products-container {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr) !important; /* 2x2 grid */
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-index__products-grid--small .page-index__product-card,
  .page-index__products-grid--small .page-index__product-card-image {
    max-width: 100% !important; /* Adjust to fit 2 columns */
    width: 100% !important;
  }
  
  .page-index__products-grid--small .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__products-grid--large {
    grid-template-columns: 1fr !important; /* Each takes full width */
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-index__products-grid--large .page-index__product-card,
  .page-index__products-grid--large .page-index__product-card-image {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .page-index__products-grid--large .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General Images */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Buttons and Button Containers */
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index__cta-button,
  .page-index__small-button,
  .page-index__read-more-btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .page-index__button-group,
  .page-index__contact-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    overflow: hidden !important;
  }

  /* Other Content Modules */
  .page-index__container {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__main-title,
  .page-index__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-index__description,
  .page-index__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-index__features-list,
  .page-index__promo-grid,
  .page-index__security-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-index__feature-title,
  .page-index__promo-title,
  .page-index__security-title {
    font-size: 20px;
  }

  .page-index__game-category {
    gap: 20px;
    margin-bottom: 40px;
  }

  .page-index__game-title {
    font-size: 22px;
  }

  .page-index__game-text {
    font-size: 15px;
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px !important;
  }
  .page-index__faq-qtext {
    font-size: 15px !important;
  }
  .page-index__faq-toggle {
    font-size: 20px !important;
    width: 24px !important;
    height: 24px !important;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px !important;
  }

  .page-index__blog-image {
    height: 180px;
  }
  .page-index__blog-title {
    font-size: 18px;
  }
  .page-index__blog-summary {
    font-size: 15px;
  }
}