.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F4F7FB; /* Custom Background color */
}

.page-index__dark-section {
  background-color: #2F6BFF; /* Main Brand Color */
  color: #ffffff; /* White text for dark background */
}

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

.page-index__main-title {
  font-size: 40px;
  font-weight: bold;
  line-height: 1.2;
  color: #1F2D3D; /* Custom Text Main color */
  text-align: center;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__intro-description {
  font-size: 18px;
  line-height: 1.6;
  color: #1F2D3D; /* Custom Text Main color */
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-title {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.3;
  color: #1F2D3D; /* Custom Text Main color */
  text-align: center;
  margin-bottom: 20px;
}

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

.page-index__section-description {
  font-size: 16px;
  line-height: 1.5;
  color: #1F2D3D; /* Custom Text Main color */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Custom Button color */
  color: #ffffff;
  border: none;
}

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

.page-index__btn-secondary {
  background: #ffffff; /* Card BG color */
  color: #2F6BFF; /* Main Brand Color */
  border: 2px solid #2F6BFF;
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* 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;
  background-color: #F4F7FB; /* Ensure consistent background */
}

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

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

/* Products Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #F4F7FB; /* Custom Background color */
  box-sizing: border-box;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* For desktop: first 4 cards take 4/6, last 2 take 2/6 */
  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 each product card */
  border-radius: 0; /* No border-radius */
  overflow: hidden;
  background: transparent;
  box-shadow: none; /* No box-shadow */
  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;
}

/* Quick Links Section */
.page-index__quick-links-section {
  padding: 80px 20px;
}

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

.page-index__quick-link-card {
  background: #ffffff; /* Card BG color */
  padding: 25px;
  border-radius: 8px;
  text-decoration: none;
  color: #1F2D3D; /* Text Main color */
  transition: all 0.3s ease;
  border: 1px solid #D6E2FF; /* Custom Border color */
  display: block;
}

.page-index__quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-index__quick-link-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2F6BFF; /* Main Brand Color */
}

.page-index__quick-link-text {
  font-size: 16px;
  line-height: 1.5;
  color: #1F2D3D; /* Text Main color */
}

/* Games & Services Section */
.page-index__games-services-section {
  padding: 80px 20px;
  background-color: #F4F7FB; /* Custom Background color */
}

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

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

.page-index__game-title {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main Brand Color */
  margin-bottom: 15px;
}

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

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 20px;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark section */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-index__promo-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #f0f0f0;
}

/* Security & Support Section */
.page-index__security-support-section {
  padding: 80px 20px;
  background-color: #F4F7FB; /* Custom Background color */
}

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

.page-index__feature-card {
  background: #ffffff; /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: #2F6BFF; /* Main Brand Color */
  margin-bottom: 10px;
}

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

/* FAQ Section */
details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly more rounded corners for FAQ */
  border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border for dark section */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent white for dark section */
  color: #ffffff;
}
details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-weight: bold;
  font-size: 18px;
  color: #ffffff;
}
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: rgba(255, 255, 255, 0.25);
}
.page-index__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff;
}
.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  line-height: 1;
}
details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  color: #f0f0f0;
  font-size: 16px;
  line-height: 1.6;
}

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

/* Blog Section */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #F4F7FB; /* Custom Background color */
}

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

.page-index__blog-card {
  background: #ffffff; /* Card BG color */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-index__blog-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__blog-title a {
  color: #2F6BFF; /* Main Brand Color */
  text-decoration: none;
}

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

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

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

.page-index__read-more {
  color: #2F6BFF; /* Main Brand Color */
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-index__read-more:hover {
  text-decoration: underline;
}

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

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

.page-index__section,
.page-index__card,
.page-index__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Responsive Styles --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-index__container {
    padding: 30px 15px;
  }

  .page-index__main-title {
    font-size: 36px;
  }

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

  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack product grids vertically */
    gap: 15px;
  }

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

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

  .page-index__quick-link-card {
    padding: 20px;
  }

  .page-index__quick-link-title {
    font-size: 20px;
  }

  .page-index__game-card,
  .page-index__promo-card,
  .page-index__feature-card,
  .page-index__blog-card {
    padding: 25px;
  }

  .page-index__blog-image {
    height: 180px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 10px !important; /* shared already handles body padding-top */
  }

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

  .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); /* 4 cards in 2x2 grid */
    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: 100%; /* Adjust to fit 2 columns */
  }

  .page-index__products-grid--small .page-index__product-card-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .page-index__products-grid--large {
    grid-template-columns: 1fr; /* 2 cards, each takes full width */
    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: 100%;
  }

  .page-index__products-grid--large .page-index__product-card-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

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

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

  .page-index__intro-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

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

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

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

  .page-index__btn-primary,
  .page-index__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-index__quick-link-card {
    padding: 18px;
  }

  .page-index__quick-link-title {
    font-size: 18px;
  }

  .page-index__quick-link-text {
    font-size: 14px;
  }

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

  .page-index__game-description,
  .page-index__promo-description,
  .page-index__feature-description {
    font-size: 15px;
  }

  .page-index__blog-image {
    height: 160px;
  }

  .page-index__blog-title {
    font-size: 18px;
  }

  .page-index__blog-summary {
    font-size: 15px;
  }

  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;
    margin-left: 15px;
    width: 24px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 20px 20px;
  }

  /* General image and container responsive styles for mobile */
  .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;
  }
}