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

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

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

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

.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: #F5F7FA;
}

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

/* General Section Styling */
.page-index__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Intro Section */
.page-index__intro-section {
  padding: 80px 20px;
  background-color: #F5F7FA;
  color: #333333;
}

.page-index__main-title {
  font-size: clamp(28px, 3.5vw, 48px); /* Use clamp for H1 */
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__intro-description {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

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

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

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

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

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

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

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

.page-index__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__feature-item h3 {
  font-size: 24px;
  color: #E53935;
  margin-bottom: 15px;
}

.page-index__feature-item p {
  font-size: 16px;
  color: #333333;
}

/* Quick Links Section */
.page-index__quick-links-section {
  padding: 80px 20px;
  background-color: #E53935; /* Dark background */
  color: #ffffff;
}

.page-index__quick-links-section .page-index__section-title,
.page-index__quick-links-section .page-index__section-description {
  color: #ffffff;
}

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

.page-index__quick-link-card {
  display: block;
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__quick-link-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.page-index__quick-link-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #FF5A4F;
}

.page-index__quick-link-card p {
  font-size: 16px;
  opacity: 0.9;
}

/* Games Overview Section */
.page-index__games-overview-section {
  padding: 80px 20px;
  background-color: #F5F7FA;
  color: #333333;
}

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

.page-index__game-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 30px;
}

.page-index__game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__game-card h3 {
  font-size: 24px;
  color: #E53935;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-index__game-card p {
  font-size: 16px;
  color: #333333;
  padding: 0 20px;
  margin-bottom: 25px;
}

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

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

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

.page-index__promotion-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
}

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

.page-index__promotion-card h3 {
  font-size: 22px;
  color: #FF5A4F;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-index__promotion-card p {
  font-size: 16px;
  color: #ffffff;
  opacity: 0.9;
  padding: 0 20px;
  margin-bottom: 25px;
}

.page-index__cta-full-width {
  text-align: center;
  margin-top: 60px;
}

/* Security & Customer Service Section */
.page-index__security-customer-service-section {
  padding: 80px 20px;
  background-color: #F5F7FA;
  color: #333333;
}

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

.page-index__info-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-index__info-card img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__info-card h3 {
  font-size: 22px;
  color: #E53935;
  margin-bottom: 15px;
}

.page-index__info-card p {
  font-size: 16px;
  color: #333333;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #F5F7FA;
  color: #333333;
}

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

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: #333333;
}

.page-index__faq-answer p {
  margin: 0;
  padding: 0;
}

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

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

.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: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

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

.page-index__blog-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__blog-content h3 a {
  color: #FF5A4F;
  text-decoration: none;
}

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

.page-index__blog-content p {
  font-size: 16px;
  color: #ffffff;
  opacity: 0.9;
  margin-bottom: 15px;
}

.page-index__blog-content time {
  font-size: 14px;
  color: #f0f0f0;
  display: block;
}

/* Responsive Styles */

/* General Mobile/Tablet Image & Container Adaptations */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-index__section,
.page-index__card,
.page-index__container,
.page-index__cta-buttons,
.page-index__button-group,
.page-index__btn-container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack product grids vertically */
  }
  
  .page-index__products-grid {
    grid-template-columns: repeat(3, 1fr); /* Adjust to 3 columns for medium screens */
  }

  .page-index__section-title {
    font-size: 32px;
  }
  .page-index__section-description {
    font-size: 17px;
  }
  .page-index__main-title {
    font-size: clamp(26px, 4vw, 40px);
  }
  .page-index__intro-description {
    font-size: 17px;
  }
  .page-index__feature-item h3,
  .page-index__quick-link-card h3,
  .page-index__game-card h3,
  .page-index__promotion-card h3,
  .page-index__info-card h3,
  .page-index__blog-content h3 {
    font-size: 20px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
  }
}

@media (max-width: 768px) {
  /* HERO Section Mobile */
  .page-index__hero-section {
    padding-top: 10px !important; /* Fixed top padding for mobile */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-index__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Products Section Mobile */
  .page-index__products-section {
    padding: 40px 15px !important;
    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; /* Single column for mobile */
    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 for small cards */
    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;
  }
  .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 large card 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;
  }
  .page-index__products-grid--large .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General Image & Container 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 !important;
    padding-right: 15px !important;
  }

  /* Buttons Mobile */
  .page-index__cta-button,
  .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 !important;
    padding-right: 15px !important;
  }
  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    flex-direction: column !important; /* Stack buttons vertically on mobile */
  }

  /* Other Content Modules Mobile */
  .page-index__intro-section,
  .page-index__quick-links-section,
  .page-index__games-overview-section,
  .page-index__promotions-section,
  .page-index__security-customer-service-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding: 40px 15px !important;
  }

  .page-index__section-title {
    font-size: 28px !important;
  }
  .page-index__section-description {
    font-size: 16px !important;
  }
  .page-index__main-title {
    font-size: clamp(24px, 6vw, 36px) !important;
  }
  .page-index__intro-description {
    font-size: 16px !important;
  }
  .page-index__features-list,
  .page-index__link-grid,
  .page-index__game-categories,
  .page-index__promotion-grid,
  .page-index__info-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-index__feature-item,
  .page-index__quick-link-card,
  .page-index__game-card,
  .page-index__promotion-card,
  .page-index__info-card,
  .page-index__blog-card {
    padding: 20px !important;
  }
  .page-index__feature-item h3,
  .page-index__quick-link-card h3,
  .page-index__game-card h3,
  .page-index__promotion-card h3,
  .page-index__info-card h3,
  .page-index__blog-content h3 {
    font-size: 18px !important;
  }
  .page-index__feature-item p,
  .page-index__quick-link-card p,
  .page-index__game-card p,
  .page-index__promotion-card p,
  .page-index__info-card p,
  .page-index__blog-content p {
    font-size: 15px !important;
  }
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px !important;
  }
  .page-index__faq-qtext {
    font-size: 15px !important;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px !important;
  }
}