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

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

.page-index__main-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF5E1; /* Text Main */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  margin-bottom: 15px;
}

.page-index__section-subtitle {
  font-size: 18px;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
}

.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* shared handles body padding, so only small top margin here */
  margin-top: 0;
  background-color: #7A0E0E; /* Deep Red */
}

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

.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #B71C1C; /* Background */
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* First 4 cards take 4fr, last 2 take 2fr */
  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;
  justify-self: center; /* Center items in grid cell */
}

.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;
  display: block;
}

.page-index__intro-section {
  padding: 80px 20px;
  background-color: #7A0E0E; /* Deep Red */
  text-align: center;
}

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

.page-index__feature-item {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF5E1; /* Text Main */
}

.page-index__feature-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  min-width: 200px;
  min-height: 200px;
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.page-index__feature-item h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold */
}

.page-index__feature-item p {
  font-size: 16px;
  line-height: 1.6;
}

.page-index__quick-access-section {
  padding: 80px 20px;
  background-color: #B71C1C; /* Background */
  text-align: center;
}

.page-index__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  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 {
  background: #FFF5E1; /* Text Main */
  color: #C91F17; /* Main Color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: 2px solid #C91F17;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-secondary:hover {
  background: #E53935; /* Accent Color */
  color: #FFF5E1;
  border-color: #E53935;
}

.page-index__btn-tertiary {
  background: transparent;
  color: #F4D34D; /* Gold */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: 2px solid #F4D34D; /* Gold */
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-tertiary:hover {
  background: #F4D34D; /* Gold */
  color: #7A0E0E; /* Deep Red */
}

.page-index__backup-links {
  margin-top: 40px;
}

.page-index__backup-links h3 {
  font-size: 24px;
  color: #F4D34D; /* Gold */
  margin-bottom: 20px;
}

.page-index__backup-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.page-index__backup-links li a {
  color: #FFF5E1; /* Text Main */
  text-decoration: none;
  font-size: 16px;
  background-color: #C91F17; /* Main Color */
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-index__backup-links li a:hover {
  background-color: #E53935; /* Accent Color */
}

.page-index__games-section {
  padding: 80px 20px;
  background-color: #7A0E0E; /* Deep Red */
}

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

.page-index__game-card {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #FFF5E1; /* Text Main */
}

.page-index__game-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold */
}

.page-index__game-card p {
  font-size: 16px;
  margin-bottom: 20px;
}

.page-index__game-btn {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-index__promotions-section {
  padding: 80px 20px;
  background-color: #B71C1C; /* Background */
}

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

.page-index__promo-card {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #FFF5E1; /* Text Main */
}

.page-index__promo-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold */
}

.page-index__promo-card p {
  font-size: 16px;
  margin-bottom: 20px;
}

.page-index__promo-btn {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-index__cta-button-wrapper {
  margin-top: 50px;
  text-align: center;
}

.page-index__security-support-section {
  padding: 80px 20px;
  background-color: #7A0E0E; /* Deep Red */
}

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

.page-index__security-item {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #FFF5E1; /* Text Main */
}

.page-index__security-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__security-item h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold */
}

.page-index__security-item p {
  font-size: 16px;
  margin-bottom: 20px;
}

.page-index__faq-section {
  padding: 80px 20px;
  background-color: #B71C1C; /* Background */
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #7A0E0E; /* Deep Red */
}

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;
  color: #FFF5E1; /* Text Main */
  font-weight: bold;
  font-size: 18px;
}

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-color: #C91F17; /* Main Color */
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1; /* Text Main */
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F4D34D; /* Gold */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background-color: #C91F17; /* Main Color */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1; /* Text Main */
}

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

.page-index__blog-section {
  padding: 80px 20px;
  background-color: #7A0E0E; /* Deep Red */
}

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

.page-index__blog-card {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF5E1; /* Text Main */
}

.page-index__blog-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__blog-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #F4D34D; /* Gold */
}

.page-index__blog-card h3 a {
  color: #F4D34D; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-card h3 a:hover {
  color: #FFCC66; /* Glow */
}

.page-index__blog-card p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.page-index__blog-readmore {
  color: #FFD86A; /* Button color for text link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 10px;
}

.page-index__blog-readmore:hover {
  color: #E6B800;
}

/* --- General Image Styles --- */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 1024px) {
  .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__intro-features,
  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__security-grid,
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

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

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

  .page-index__description {
    font-size: 16px;
  }

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

  .page-index__section-subtitle {
    font-size: 16px;
  }

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

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

  /* Product Showcase Section */
  .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;
    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;
    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: 300px !important;
    justify-self: center !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;
    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: 300px !important;
    justify-self: center !important;
  }

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

  /* General Images and Containers */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-index__intro-section,
  .page-index__quick-access-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__security-support-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding: 40px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__intro-features,
  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__security-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Buttons and Button Containers */
  .page-index__button-group {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 15px !important;
  }

  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index__btn-tertiary,
  .page-index__game-btn,
  .page-index__promo-btn,
  .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__quick-access-section .page-index__backup-links ul {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-index__quick-access-section .page-index__backup-links li a {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-index__faq-toggle {
    font-size: 24px !important;
    margin-left: 10px !important;
    width: 24px !important;
  }

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

  .page-index__faq-answer p {
    font-size: 15px !important;
  }

  /* Other Content Modules (e.g., cards) */
  .page-index__feature-item,
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__security-item,
  .page-index__blog-card {
    padding: 25px !important;
  }

  .page-index__feature-item h3,
  .page-index__game-card h3,
  .page-index__promo-card h3,
  .page-index__security-item h3,
  .page-index__blog-card h3 {
    font-size: 20px !important;
  }

  .page-index__feature-item p,
  .page-index__game-card p,
  .page-index__promo-card p,
  .page-index__security-item p,
  .page-index__blog-card p {
    font-size: 15px !important;
  }
}