/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Body background is dark, so text is light */
  background-color: #000000; /* Default background for main content if not overridden */
}

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

.page-index__section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-index__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
  /* Using clamp for responsive font size, but not fixed large values */
  font-size: clamp(28px, 4vw, 48px);
}

.page-index__description {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__btn-promo,
.page-index__btn-text {
  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;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

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

.page-index__btn-secondary:hover {
  background: rgba(38, 169, 224, 0.1);
  color: #26A9E0;
}

.page-index__btn-promo {
  background: #EA7C07;
  color: #ffffff;
  border-color: #EA7C07;
}

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

.page-index__btn-text {
  background: transparent;
  color: #26A9E0;
  border: none;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
}

.page-index__btn-text:hover {
  text-decoration: underline;
}

.page-index__cta-buttons,
.page-index__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

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

.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 Display Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #000000;
  box-sizing: border-box;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small + 2 large */
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.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 individual product cards */
  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; /* Preserve aspect ratio */
  display: block;
}

/* Intro Section */
.page-index__intro-section {
  padding: 80px 20px;
  background: #0d0d0d; /* Slightly lighter dark background for contrast */
  color: #ffffff;
  box-sizing: border-box;
}

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

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

.page-index__access-card {
  background: rgba(38, 169, 224, 0.1);
  padding: 25px;
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: block;
  height: 100%;
  box-sizing: border-box;
}

.page-index__access-card:hover {
  background: rgba(38, 169, 224, 0.2);
  transform: translateY(-5px);
}

.page-index__access-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-index__access-card-text {
  font-size: 15px;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Core Games Section */
.page-index__core-games-section {
  padding: 80px 20px;
  background: #0d0d0d;
  color: #ffffff;
  box-sizing: border-box;
}

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

.page-index__game-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

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

.page-index__game-icon {
  width: 120px; /* Min size 200x200 but this is an icon, will be replaced by larger image */
  height: auto;
  margin-bottom: 20px;
  max-width: 100%;
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-index__game-description {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
}

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

.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.05);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  max-width: 100%;
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-title {
  font-size: 20px;
  font-weight: 700;
  color: #26A9E0;
  margin: 15px 20px 10px;
}

.page-index__promo-description {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
  margin: 0 20px 20px;
  flex-grow: 1;
}

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

/* Security & CS Section */
.page-index__security-cs-section {
  padding: 80px 20px;
  background: #0d0d0d;
  color: #ffffff;
  box-sizing: border-box;
}

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

.page-index__security-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  height: 100%;
  box-sizing: border-box;
}

.page-index__security-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-index__security-description {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background: #000000;
  color: #ffffff;
  box-sizing: border-box;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
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.1);
}
.page-index__faq-qtext {
  flex: 1;
  font-size: 16px;
  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: #f0f0f0;
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 20px;
  background: #0d0d0d;
  color: #ffffff;
  box-sizing: border-box;
}

.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;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-index__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  max-width: 100%;
  min-width: 200px;
  min-height: 200px;
}

.page-index__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__blog-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

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

.page-index__blog-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* Dark background color for sections */
.page-index__dark-bg {
  background: #0d0d0d;
  color: #ffffff;
}

/* Media Queries */
@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(2, 1fr);
  }

  .page-index__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .page-index__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }

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

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

  /* Product display image area */
  .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 to fit 2 columns */
  }
  
  .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 a full row */
    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__products-grid--large .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General image and container responsiveness */
  .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;
    padding-right: 15px;
  }

  /* Buttons and button containers */
  .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;
    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;
    flex-direction: column; /* Stack buttons vertically */
  }
  
  /* Other content modules */
  .page-index__intro-section,
  .page-index__quick-access-section,
  .page-index__core-games-section,
  .page-index__promotions-section,
  .page-index__security-cs-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding: 40px 15px;
  }

  .page-index__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-index__access-grid,
  .page-index__game-grid,
  .page-index__promo-grid,
  .page-index__security-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__game-card,
  .page-index__promo-card,
  .page-index__security-item,
  .page-index__blog-card {
    padding: 20px;
  }

  .page-index__game-title,
  .page-index__security-title,
  .page-index__promo-title,
  .page-index__blog-title {
    font-size: 18px;
  }

  .page-index__faq-item summary.page-index__faq-question { padding: 15px; }
  .page-index__faq-qtext { font-size: 15px; }
  .page-index__faq-toggle { font-size: 20px; width: 24px; height: 24px; }
  .page-index__faq-item .page-index__faq-answer { padding: 0 15px 15px; }

  .page-index__blog-image {
    height: 180px;
  }
  .page-index__blog-content {
    padding: 15px;
  }
  .page-index__blog-title {
    font-size: 18px;
  }
  .page-index__blog-excerpt {
    font-size: 14px;
  }
}