/* style/index.css */

/* General Styles for page-index */
.page-index {
  color: #ffffff; /* Body background is dark, so text is light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-index__main-title,
.page-index__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.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__description {
  font-size: 17px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Button Styles */
.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__btn-promo,
.page-index__btn-small,
.page-index__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-index__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

.page-index__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
}

.page-index__btn-promo {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-index__btn-promo:hover {
  background: #c76706;
  border-color: #c76706;
}

.page-index__btn-small {
  padding: 8px 15px;
  font-size: 14px;
  background: #26A9E0;
  color: #ffffff;
  border: 1px solid #26A9E0;
}

.page-index__btn-small:hover {
  background: #1e87b7;
  border-color: #1e87b7;
}

.page-index__btn-link {
  background: none;
  color: #26A9E0;
  border: none;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
}

.page-index__btn-link:hover {
  color: #1e87b7;
}

/* HERO Main Image Area */
.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: #111111; /* Match body background */
}

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

/* Product Showcase Area */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #111111; /* Match body background */
  box-sizing: border-box;
}

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

/* Homepage Introduction Section */
.page-index__introduction-section {
  padding: 80px 20px;
  background: #1a1a1a; /* Slightly lighter dark for contrast */
  color: #ffffff;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 20px;
  background: #111111;
  color: #ffffff;
}

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

.page-index__link-card {
  display: block;
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark */
  padding: 30px;
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  transition: background 0.3s ease, transform 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__link-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.page-index__link-card h3 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-index__link-card p {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 0;
}

/* Core Games/Services Section */
.page-index__games-section {
  padding: 80px 20px;
  background: #0a0a0a;
  color: #ffffff;
}

.page-index__game-tabs {
  margin-top: 40px;
}

.page-index__tab-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.page-index__tab-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid #26A9E0;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.page-index__tab-btn:hover,
.page-index__tab-btn.active {
  background: #26A9E0;
  color: #ffffff;
}

.page-index__tab-content {
  display: none;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 10px;
}

.page-index__tab-content.active {
  display: block;
}

.page-index__tab-content h3 {
  font-size: 26px;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-index__tab-content p {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 25px;
}

.page-index__tab-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__promo-cards {
  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.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.page-index__promo-card h3 {
  font-size: 20px;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-card p {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* Security & Customer Service Section */
.page-index__security-support-section {
  padding: 80px 20px;
  background: #0a0a0a;
  color: #ffffff;
}

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

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

.page-index__feature-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
}

.page-index__feature-item h3 {
  font-size: 20px;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-index__feature-item p {
  font-size: 15px;
  color: #e0e0e0;
}

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

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

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

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: rgba(255, 255, 255, 0.12);
}

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

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  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: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 5px 5px;
  color: #e0e0e0;
  font-size: 15px;
}

.page-index__faq-answer p {
  margin-bottom: 15px;
}

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

.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: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

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

.page-index__blog-card h3 {
  font-size: 20px;
  color: #26A9E0;
  margin: 20px 20px 10px;
  line-height: 1.4;
}

.page-index__blog-card h3 a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-index__blog-meta {
  font-size: 13px;
  color: #999;
  margin: 0 20px 15px;
}

.page-index__blog-card p {
  font-size: 15px;
  color: #e0e0e0;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-index__blog-card .page-index__btn-link {
  margin: 0 20px 20px;
  align-self: flex-start;
}

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

/* Dark/Light Background Classes */
.page-index__dark-section {
  background: #0a0a0a;
  color: #ffffff;
}

.page-index__light-bg {
  background: #1a1a1a;
  color: #ffffff;
}

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

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

  .page-index__section-description,
  .page-index__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack two 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__tab-buttons {
    gap: 10px;
  }

  .page-index__tab-btn {
    font-size: 15px;
    padding: 8px 15px;
  }

  .page-index__tab-content {
    padding: 30px;
  }

  .page-index__tab-content h3 {
    font-size: 24px;
  }

  .page-index__links-grid,
  .page-index__promo-cards,
  .page-index__security-features,
  .page-index__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  /* HERO Main Image Area */
  .page-index__hero-section {
    padding-top: 10px !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

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

  /* Product Showcase Area */
  .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;
    justify-items: center; /* Center cards in grid */
  }

  .page-index__products-grid--small .page-index__product-card,
  .page-index__products-grid--small .page-index__product-card-image {
    max-width: 100% !important; /* Allow cards to fill grid column */
  }

  .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;
    justify-items: center; /* Center cards in grid */
  }

  .page-index__products-grid--large .page-index__product-card,
  .page-index__products-grid--large .page-index__product-card-image {
    max-width: 100% !important; /* Allow cards to fill grid column */
  }

  .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__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 and Button Containers */
  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index__btn-promo,
  .page-index__btn-small,
  .page-index__btn-link,
  .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-direction: column !important;
    gap: 10px !important;
  }

  /* Other Content Modules */
  .page-index__main-title,
  .page-index__section-title {
    font-size: 24px !important;
    margin-bottom: 15px !important;
  }

  .page-index__section-description,
  .page-index__description {
    font-size: 15px !important;
    margin-bottom: 25px !important;
  }

  .page-index__introduction-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: 50px 15px !important;
  }

  .page-index__links-grid,
  .page-index__promo-cards,
  .page-index__security-features,
  .page-index__blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-index__link-card,
  .page-index__promo-card,
  .page-index__feature-item,
  .page-index__blog-card {
    padding: 25px !important;
  }

  .page-index__link-card h3,
  .page-index__promo-card h3,
  .page-index__feature-item h3,
  .page-index__blog-card h3 {
    font-size: 18px !important;
  }

  .page-index__link-card p,
  .page-index__promo-card p,
  .page-index__feature-item p,
  .page-index__blog-card p {
    font-size: 14px !important;
  }

  .page-index__tab-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-index__tab-btn {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 14px !important;
    padding: 10px !important;
  }

  .page-index__tab-content {
    padding: 25px !important;
  }

  .page-index__tab-content h3 {
    font-size: 20px !important;
  }

  .page-index__tab-content p {
    font-size: 14px !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;
  }

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

  .page-index__blog-meta {
    font-size: 12px !important;
  }

  .page-index__blog-card p {
    font-size: 14px !important;
  }
}