/* style/index.css */

.page-index {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* 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: #000000; /* Custom Color_1776249996415 */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-index__description {
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
}

.page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary color */
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid #2F6BFF;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* shared already handles 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;
}

.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: #F4F7FB; /* Background */
  box-sizing: border-box;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small, 2 large */
  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; /* Maintain aspect ratio */
  display: block;
}

/* Intro Section */
.page-index__intro-section {
  padding: 80px 0;
  background-color: #ffffff; /* Card BG */
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Primary color gradient */
  color: #ffffff;
  text-align: center;
}

.page-index__quick-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-index__quick-link-card {
  min-width: 200px;
  text-align: center;
  padding: 15px 20px;
  font-size: 18px;
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary color */
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__quick-link-card:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
}

.page-index__quick-link-text {
  display: block;
}

/* Core Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
}

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

.page-index__game-card {
  background: #ffffff; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding-bottom: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-image {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index__game-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.page-index__game-title {
  font-size: 20px;
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-description {
  font-size: 15px;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-index__promotion-card {
  background: #ffffff; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-index__promotion-image {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index__promotion-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.page-index__promotion-title {
  font-size: 20px;
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promotion-description {
  font-size: 15px;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Security & Support Section */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: #ffffff; /* Card BG */
}

.page-index__security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.page-index__security-item {
  background: #F4F7FB; /* Background */
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-index__security-icon {
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-index__security-icon img {
  
  
  object-fit: contain;
  max-width: 100%;
}

.page-index__security-title {
  font-size: 22px;
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
}

.page-index__security-description {
  font-size: 15px;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
}

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

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #ffffff; /* Card BG */
}

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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Primary color */
  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: #F4F7FB; /* Background */
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
}

.page-index__faq-answer p {
  margin: 0;
  line-height: 1.7;
  font-size: 15px;
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 0;
  background-color: #ffffff; /* Card BG */
}

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

.page-index__blog-card {
  background: #F4F7FB; /* Background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__blog-image {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.page-index__blog-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.page-index__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__blog-title {
  font-size: 18px;
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__blog-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index__blog-date {
  font-size: 13px;
  color: #666;
  display: block;
  text-align: right;
}

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

/* Responsive Styles */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-index__main-title,
  .page-index__section-title {
    font-size: 28px;
  }

  .page-index__container {
    padding: 30px 15px;
  }

  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack products sections */
  }

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

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

  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__security-grid,
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-index__quick-links-grid {
    gap: 15px;
  }

  .page-index__quick-link-card {
    font-size: 16px;
    padding: 12px 15px;
  }

  .page-index__faq-qtext {
    font-size: 17px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__section,
  .page-index__card,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* HERO Section Mobile */
  .page-index__hero-section {
    padding-top: 10px !important;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
  }

  /* Product Showcase Section Mobile */
  .page-index__products-section {
    padding: 40px 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .page-index__products-container {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-index__products-grid--small .page-index__product-card,
  .page-index__products-grid--small .page-index__product-card-image {
    max-width: 300px;
    margin: 0 auto;
  }

  .page-index__products-grid--large {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-index__products-grid--large .page-index__product-card,
  .page-index__products-grid--large .page-index__product-card-image {
    max-width: 300px;
    margin: 0 auto;
  }

  /* General Content Mobile */
  .page-index__main-title,
  .page-index__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-index__description {
    font-size: 15px;
    line-height: 1.7;
  }

  /* Buttons Mobile */
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="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;
    padding-right: 15px;
  }

  .page-index__quick-links-grid {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-index__quick-link-card {
    width: 100%;
    max-width: 100%;
  }

  /* Games, Promotions, Security, Blog Grid Mobile */
  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__security-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__game-card,
  .page-index__promotion-card,
  .page-index__security-item,
  .page-index__blog-card {
    margin: 0 auto; /* Center single column cards */
    max-width: 400px; /* Optional: constrain width for readability */
  }

  .page-index__security-icon img {
    
    
  }

  /* FAQ Section Mobile */
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }

  .page-index__faq-qtext {
    font-size: 16px;
  }

  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }
}