.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-index__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom color for register font */
  border: 2px solid #C30808;
}

.page-index__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

.page-index__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom color for login font */
  border: 2px solid #C30808; /* Custom color for login */
}

.page-index__btn-secondary:hover {
  background-color: #C30808;
  color: #FFFFFF;
}

.page-index__dark-section {
  background-color: #017439;
  color: #ffffff;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Adjusted for shared body padding */
  margin-top: 0;
}

.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 Showcase */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #0d0d0d; /* Slightly darker than body for subtle contrast */
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small, 2 large */
  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;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
  justify-self: center; /* Center cards within grid cell */
}

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

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

/* Module 1: Intro Section */
.page-index__intro-section {
  padding: 80px 20px;
  text-align: center;
}

.page-index__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive H1 */
  color: #FFFF00;
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.page-index__intro-description {
  font-size: 1.15em;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

/* Module 2: Quick Access Links */
.page-index__quick-access-section {
  padding: 80px 20px;
  background-color: #0d0d0d;
}

.page-index__quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-index__quick-link-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-index__quick-link-card img {
  
  
  margin-bottom: 15px;
  object-fit: contain;
}

.page-index__quick-link-card p {
  font-weight: bold;
  font-size: 1.1em;
  margin: 0;
}

/* Module 3: Core Games Introduction */
.page-index__games-intro-section {
  padding: 80px 20px;
}

.page-index__game-category {
  margin-bottom: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__game-category img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index__game-category h3 {
  font-size: 2em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-index__game-category h3 a {
  color: #FFFF00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-category h3 a:hover {
  color: #ffffff;
}

.page-index__game-category p {
  font-size: 1.05em;
  color: #f0f0f0;
  max-width: 900px;
}

/* Module 4: Promotions */
.page-index__promotions-section {
  padding: 80px 20px;
  background-color: #0d0d0d;
}

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

.page-index__promotion-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__promotion-card h3 {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promotion-card h3 a {
  color: #FFFF00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promotion-card h3 a:hover {
  color: #ffffff;
}

.page-index__promotion-card p {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px;
}

/* Module 5: Security & Support */
.page-index__security-support-section {
  padding: 80px 20px;
}

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-index__feature-item h3 {
  font-size: 1.5em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-index__feature-item p {
  font-size: 1em;
  color: #f0f0f0;
}

/* Module 6: FAQ */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #0d0d0d;
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.page-index__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFFF00;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details[open] .page-index__faq-toggle {
  transform: rotate(45deg);
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 10px 10px;
  color: #f0f0f0;
}

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

/* Module 7: Latest Blog/News */
.page-index__blog-section {
  padding: 80px 20px;
}

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

.page-index__blog-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-index__blog-content h3 a {
  color: #FFFF00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-content h3 a:hover {
  color: #ffffff;
}

.page-index__blog-content p {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-index__blog-date {
  font-size: 0.85em;
  color: #999;
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__section-title {
    font-size: 2em;
  }

  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack products 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__quick-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .page-index__promotion-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-index__security-features {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .page-index__blog-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 15px;
    line-height: 1.5;
  }

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

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

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

  /* HERO Section - Mobile */
  .page-index__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
  }

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

  /* Products Showcase - 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: 100%; /* Allow cards to fill grid cell */
  }
  
  .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; /* Each large card 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%; /* Allow cards to fill grid cell */
  }
  
  .page-index__products-grid--large .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General Image Responsiveness */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Buttons Responsiveness */
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .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__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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Intro Section - Mobile */
  .page-index__intro-section {
    padding: 40px 15px;
  }

  /* Quick Access Links - Mobile */
  .page-index__quick-access-section {
    padding: 40px 15px;
  }

  .page-index__quick-links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__quick-link-card img {
    
    
  }

  /* Core Games Intro - Mobile */
  .page-index__games-intro-section {
    padding: 40px 15px;
  }

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

  .page-index__game-category h3 {
    font-size: 1.5em;
  }

  /* Promotions - Mobile */
  .page-index__promotions-section {
    padding: 40px 15px;
  }

  .page-index__promotion-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Security & Support - Mobile */
  .page-index__security-support-section {
    padding: 40px 15px;
  }

  .page-index__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__feature-item img {
    
    
  }

  /* FAQ - Mobile */
  .page-index__faq-section {
    padding: 40px 15px;
  }

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

  .page-index__faq-qtext {
    font-size: 1em;
  }

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

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

  /* Blog - Mobile */
  .page-index__blog-section {
    padding: 40px 15px;
  }

  .page-index__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__blog-card img {
    
  }

  .page-index__blog-content h3 {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-index__main-title {
    font-size: 1.8em;
  }

  .page-index__section-title {
    font-size: 1.5em;
  }
}