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

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFCC00; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 20px;
}

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

.page-index__text-link {
  color: #FFCC00;
  text-decoration: underline;
}

.page-index__text-link:hover {
  color: #CC0000;
}

/* Buttons */
.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 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: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

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

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

.page-index__btn-secondary:hover {
  background-color: #FFCC00;
  color: #003366;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* shared.css handles body padding-top */
  margin-top: 0;
  width: 100%;
  overflow: hidden;
}

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

.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: #1a1a1a; /* Dark background from body */
  box-sizing: border-box;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* 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 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(-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; /* Preserve aspect ratio */
  display: block;
}

/* Intro Section */
.page-index__intro-section {
  background-color: #003366; /* Main brand color */
  padding: 60px 0;
}

.page-index__dark-bg {
  color: #ffffff;
  background: #003366;
}

.page-index__main-title {
  font-size: 42px;
  color: #FFCC00;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-index__intro-description {
  font-size: 19px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.page-index__feature-title {
  font-size: 24px;
  color: #FFCC00;
  margin-bottom: 15px;
}

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

/* Quick Links Section */
.page-index__quick-links-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

.page-index__subsection-title {
  font-size: 28px;
  color: #FFCC00;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 20px;
}

.page-index__link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.page-index__link-card {
  display: block;
  padding: 15px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__link-card:hover {
  background-color: #FFCC00;
  color: #003366;
  border-color: #FFCC00;
}

.page-index__link-card--primary {
  background-color: #FFCC00;
  color: #003366;
  border-color: #FFCC00;
}

.page-index__link-card--primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
}

.page-index__link-card--secondary {
  background-color: #003366;
  color: #FFCC00;
  border-color: #003366;
}

.page-index__link-card--secondary:hover {
  background-color: #002244;
  border-color: #002244;
}

/* Core Games Section */
.page-index__core-games-section {
  padding: 60px 0;
}

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

.page-index__game-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__game-title {
  font-size: 26px;
  color: #FFCC00;
  margin-bottom: 15px;
}

.page-index__game-item p {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* Promotions Section */
.page-index__promotions-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

.page-index__promo-image-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.page-index__promo-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-index__promo-title {
  font-size: 22px;
  color: #FFCC00;
  margin-bottom: 10px;
}

.page-index__promo-card p {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 20px;
}

/* Security & Customer Service Section */
.page-index__security-cs-section {
  padding: 60px 0;
}

.page-index__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-index__security-image {
  flex: 1;
  min-width: 300px;
}

.page-index__security-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-index__security-details {
  flex: 2;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-index__detail-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__detail-title {
  font-size: 20px;
  color: #FFCC00;
  margin-bottom: 10px;
}

.page-index__detail-item p {
  font-size: 15px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-index__faq-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #002244; /* Darker blue for answer background */
  border-radius: 0 0 5px 5px;
  color: #ffffff;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #003366;
  border: 1px solid #004488;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #004488;
  border-color: #0055aa;
}

.page-index__faq-question:active {
  background: #002244;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFCC00;
  pointer-events: none;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFCC00;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

/* Blog Section */
.page-index__blog-section {
  padding: 60px 0;
}

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

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

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

.page-index__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

.page-index__blog-title {
  font-size: 20px;
  color: #FFCC00;
  margin: 15px 15px 10px;
  line-height: 1.4;
}

.page-index__blog-excerpt {
  font-size: 15px;
  color: #f0f0f0;
  margin: 0 15px 15px;
}

.page-index__blog-date {
  display: block;
  font-size: 13px;
  color: #aaaaaa;
  margin: 0 15px 15px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack product grids vertically */
  }
  .page-index__products-grid--small {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-index__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__main-title {
    font-size: 36px;
  }
  .page-index__intro-description {
    font-size: 18px;
  }
  .page-index__section-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__hero-section {
    padding-top: 0 !important; /* Always 0 if shared.css handles body padding-top */
  }
  .page-index__hero-image img,
  .page-index 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);
    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 for 2-column layout */
  }
  .page-index__products-grid--large {
    grid-template-columns: 1fr;
    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__main-title {
    font-size: 30px;
  }
  .page-index__intro-description {
    font-size: 16px;
  }
  .page-index__section-title {
    font-size: 26px;
  }
  .page-index__subsection-title {
    font-size: 24px;
  }
  .page-index__features-grid,
  .page-index__link-grid,
  .page-index__game-showcase,
  .page-index__promo-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__security-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-index__security-details {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-question h3 {
    font-size: 15px;
  }
  .page-index__faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }
  .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;
  }
  .page-index__view-all-button-wrapper .page-index__btn-primary {
    width: auto !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }
}