.page-index {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

.page-index__section {
  padding: 60px 0;
  text-align: center;
}

.page-index__bg-light {
  background-color: #F4F7FB;
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1F2D3D;
}

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

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

/* 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: 10px; /* Small top padding, body handles header offset */
  background-color: #F4F7FB; /* Match main 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%; /* Ensure it takes full width */
}

.page-index__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-index__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 800;
  line-height: 1.2;
  color: #1F2D3D;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__intro-text {
  font-size: clamp(16px, 2vw, 20px); /* Responsive font size */
  color: #4A5568;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button--secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-index__cta-button--secondary:hover {
  background: #F4F7FB;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* About Us Section */
.page-index__about-us {
  background-color: #ffffff;
}

.page-index__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-index__text-block p {
  font-size: 17px;
  color: #4A5568;
  margin-bottom: 15px;
}

.page-index__image-block img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Quick Access Section */
.page-index__quick-access {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index__access-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #1F2D3D;
  border: 1px solid #D6E2FF;
}

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

.page-index__access-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2F6BFF;
}

.page-index__access-card p {
  font-size: 15px;
  color: #4A5568;
}

/* Core Games Section */
.page-index__core-games {
  background-color: #ffffff;
}

.page-index__game-showcase {
  margin-bottom: 50px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-index__game-showcase img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index__game-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-index__feature-item {
  background-color: #F4F7FB;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF;
}

.page-index__feature-item h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-index__feature-item h3 a {
  color: #2F6BFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__feature-item h3 a:hover {
  color: #6FA3FF;
}

.page-index__feature-item p {
  font-size: 15px;
  color: #4A5568;
}

/* Promotions Section */
.page-index__promotions {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index__promotion-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid #D6E2FF;
}

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

.page-index__promotion-card-content {
  padding: 25px;
  flex-grow: 1;
}

.page-index__promotion-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1F2D3D;
}

.page-index__promotion-card p {
  font-size: 15px;
  color: #4A5568;
  margin-bottom: 20px;
}

.page-index__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: #2F6BFF;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  margin-top: auto; /* Push button to bottom */
}

.page-index__btn-small:hover {
  background: #6FA3FF;
}

/* Security & Support Section */
.page-index__security-support {
  background-color: #ffffff;
}

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

.page-index__security-item {
  background-color: #F4F7FB;
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF;
}

.page-index__security-item h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2F6BFF;
}

.page-index__security-item p {
  font-size: 15px;
  color: #4A5568;
}

/* FAQ Section */
.page-index__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  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: #F4F7FB;
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #1F2D3D;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 20px;
  background: #F4F7FB;
  border-radius: 0 0 12px 12px;
  color: #4A5568;
  font-size: 15px;
}

/* Latest Blog Section */
.page-index__latest-blog {
  background-color: #ffffff;
}

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

.page-index__blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  text-decoration: none;
  color: #1F2D3D;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF;
}

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

.page-index__blog-card img {
  width: 100%;
  height: 200px; /* Fixed height for blog card images */
  object-fit: cover;
  display: block;
}

.page-index__blog-card-content {
  padding: 25px;
  flex-grow: 1;
}

.page-index__blog-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2F6BFF;
}

.page-index__blog-card p {
  font-size: 14px;
  color: #4A5568;
  margin-bottom: 8px;
}

.page-index__blog-card p:last-of-type {
  margin-bottom: 0;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-index__content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-index__image-block {
    order: 2;
  }
  .page-index__text-block {
    order: 1;
  }
  .page-index__hero-image-wrapper {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .page-index__section {
    padding: 40px 0;
  }

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

  .page-index__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-index__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-index__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-index__access-grid, .page-index__game-features, .page-index__promotion-grid, .page-index__security-grid, .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__promotion-card img, .page-index__blog-card img {
    
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px 20px;
  }

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

  .page-index__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

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

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

@media (max-width: 480px) {
  .page-index__section-title {
    font-size: 24px;
  }
  .page-index__main-title {
    font-size: 24px;
  }
  .page-index__intro-text {
    font-size: 15px;
  }
  .page-index__access-card h3,
  .page-index__feature-item h3,
  .page-index__promotion-card h3,
  .page-index__security-item h3,
  .page-index__blog-card h3 {
    font-size: 18px;
  }
}