/* style/index.css */

/* --- Base Styles for page-index (assuming dark body background: #0D0E12) --- */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main color for dark background */
  background-color: transparent; /* Body bg handled by shared.css */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #FFB04D; /* Glow color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

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

/* --- Buttons --- */
.page-index__cta-button,
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__btn-small {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button,
.page-index__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button gradient */
  color: #FFF3E6;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button:hover,
.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%); /* Lighter gradient on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-index__btn-secondary {
  background: transparent;
  color: #FF8C1A;
  border: 2px solid #A84F0C; /* Border color */
  padding: 13px 38px; /* Adjust padding for border */
}

.page-index__btn-secondary:hover {
  background: rgba(255, 140, 26, 0.1);
  color: #FFB04D;
  border-color: #FFB04D;
  transform: translateY(-3px);
}

.page-index__btn-small {
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
}

.page-index__btn-small:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  transform: translateY(-2px);
}

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


/* --- HERO Section --- */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0D0E12; /* Dark background color */
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  width: 100%; /* Ensure it takes full width up to max-width */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-index__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-index__hero-image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px; /* Match wrapper */
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-index__hero-content h1 {
  font-size: 3.2em;
  color: #FFB04D; /* Glow color for H1 */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-index__hero-content p {
  font-size: 1.3em;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Introduction Section --- */
.page-index__introduction-section {
  padding: 80px 20px;
  background-color: #17191F; /* Card BG color */
  color: #FFF3E6;
}

.page-index__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
}

/* --- Quick Access Section --- */
.page-index__quick-access-section {
  padding: 80px 20px;
  background-color: #0D0E12; /* Background color */
  color: #FFF3E6;
}

.page-index__access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusted for larger images */
  gap: 30px;
  margin-top: 40px;
}

.page-index__access-item {
  background-color: #17191F; /* Card BG color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border color */
}

.page-index__access-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-index__access-item img {
  width: 200px; /* Display at 200px */
  height: 200px; /* Display at 200px */
  object-fit: contain;
  margin: 0 auto 20px; /* Center the image */
  border-radius: 50%;
  border: 3px solid #FF8C1A;
}

.page-index__access-item h3 {
  font-size: 1.4em;
  color: #FFB04D;
  margin-bottom: 15px;
}

.page-index__access-item p {
  font-size: 0.95em;
  color: #FFF3E6;
  margin-bottom: 20px;
}

/* --- Games Section --- */
.page-index__games-section {
  padding: 80px 20px;
  background-color: #17191F; /* Card BG color */
  color: #FFF3E6;
}

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

.page-index__game-card {
  background-color: #0D0E12; /* Background color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border color */
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-index__game-card img {
  width: 100%;
  height: 200px; /* Display at 200px */
  object-fit: cover;
  display: block;
}

.page-index__game-card h3 {
  font-size: 1.5em;
  color: #FFB04D;
  padding: 20px 20px 10px;
}

.page-index__game-card p {
  font-size: 0.95em;
  color: #FFF3E6;
  padding: 0 20px 20px;
}

.page-index__game-card .page-index__btn-small {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  display: block;
}

/* --- Promotions Section --- */
.page-index__promotions-section {
  padding: 80px 20px;
  background-color: #0D0E12; /* Background color */
  color: #FFF3E6;
}

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

.page-index__promo-card {
  background-color: #17191F; /* Card BG color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border color */
}

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

.page-index__promo-card img {
  width: 100%;
  height: 200px; /* Display at 200px */
  object-fit: cover;
  display: block;
}

.page-index__promo-card h3 {
  font-size: 1.5em;
  color: #FFB04D;
  padding: 20px 20px 10px;
}

.page-index__promo-card p {
  font-size: 0.95em;
  color: #FFF3E6;
  padding: 0 20px 20px;
}

.page-index__promo-card .page-index__btn-small {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  display: block;
}

/* --- Security and Support Section --- */
.page-index__security-support-section {
  padding: 80px 20px;
  background-color: #17191F; /* Card BG color */
  color: #FFF3E6;
}

.page-index__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusted for larger images */
  gap: 30px;
  margin-top: 40px;
}

.page-index__feature-item {
  background-color: #0D0E12; /* Background color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border color */
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-index__feature-item img {
  width: 200px; /* Display at 200px */
  height: 200px; /* Display at 200px */
  object-fit: contain;
  margin: 0 auto 20px; /* Center the image */
  border-radius: 50%;
  border: 3px solid #FF8C1A;
}

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

.page-index__feature-item p {
  font-size: 0.95em;
  color: #FFF3E6;
  margin-bottom: 20px;
}

.page-index__feature-item .page-index__btn-small {
  margin-top: 15px;
}

/* --- FAQ Section --- */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #0D0E12; /* Background color */
  color: #FFF3E6;
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card BG color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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: #2a2d38; /* Slightly lighter card BG on hover */
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFB04D; /* Glow color for question text */
  text-align: left;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FF8C1A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background: #0D0E12; /* Background color for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF3E6;
  font-size: 1em;
}

details.page-index__faq-item .page-index__faq-answer p {
  margin-bottom: 10px;
}
details.page-index__faq-item .page-index__faq-answer .page-index__btn-small {
  margin-top: 10px;
}


/* --- Blog Section --- */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #17191F; /* Card BG color */
  color: #FFF3E6;
}

.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-color: #0D0E12; /* Background color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border color */
}

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

.page-index__blog-card img {
  width: 100%;
  height: 220px; /* Display at 220px */
  object-fit: cover;
  display: block;
}

.page-index__blog-card h3 {
  font-size: 1.4em;
  padding: 20px 20px 10px;
}

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

.page-index__blog-card h3 a:hover {
  color: #FFA53A;
}

.page-index__blog-card p {
  font-size: 0.95em;
  color: #FFF3E6;
  padding: 0 20px;
  margin-bottom: 15px;
}

.page-index__blog-date {
  display: block;
  font-size: 0.85em;
  color: #A84F0C;
  padding: 0 20px 20px;
}

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


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-index__hero-content h1 {
    font-size: 2.8em;
  }
  .page-index__hero-content p {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-image-wrapper {
    border-radius: 8px;
    margin-bottom: 20px;
  }
  .page-index__hero-image-wrapper img {
    border-radius: 8px;
  }
  .page-index__hero-content h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-index__hero-content p {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-index__cta-buttons .page-index__btn-primary,
  .page-index__cta-buttons .page-index__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

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

  /* Images must be min 200x200px */
  .page-index__access-item img,
  .page-index__feature-item img {
    width: 200px; /* Display at 200px */
    height: 200px; /* Display at 200px */
    margin: 0 auto 20px;
  }
  .page-index__game-card img,
  .page-index__promo-card img,
  .page-index__blog-card img {
    height: 200px; /* Maintain minimum height for consistency */
  }


  .page-index__access-item h3,
  .page-index__feature-item h3 {
    font-size: 1.2em;
  }

  .page-index__game-card h3,
  .page-index__promo-card h3,
  .page-index__blog-card h3 {
    font-size: 1.3em;
    padding: 15px 15px 8px;
  }
  .page-index__game-card p,
  .page-index__promo-card p,
  .page-index__blog-card p {
    padding: 0 15px 15px;
  }
  .page-index__blog-date {
    padding: 0 15px 15px;
  }
  .page-index__game-card .page-index__btn-small,
  .page-index__promo-card .page-index__btn-small {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px 20px;
  }
  .page-index__faq-qtext {
    font-size: 1em;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 20px 20px;
    font-size: 0.95em;
  }

  /* Mobile image and container responsive styles */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__hero-container,
  .page-index__quick-access-section .page-index__access-item,
  .page-index__games-section .page-index__game-card,
  .page-index__promotions-section .page-index__promo-card,
  .page-index__security-support-section .page-index__feature-item,
  .page-index__blog-section .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-section .page-index__hero-image-wrapper {
      padding-left: 0;
      padding-right: 0;
  }
  .page-index__hero-section .page-index__hero-content {
      padding-left: 0;
      padding-right: 0;
  }
  .page-index__quick-access-section .page-index__access-item,
  .page-index__games-section .page-index__game-card,
  .page-index__promotions-section .page-index__promo-card,
  .page-index__security-support-section .page-index__feature-item,
  .page-index__blog-section .page-index__blog-card {
    padding: 20px; /* Reset individual card padding */
  }
}

/* Ensure all images in content sections are at least 200px wide on desktop */
/* These are the display sizes, which must be >= 200px */
.page-index__game-card img,
.page-index__promo-card img,
.page-index__blog-card img {
    min-width: 200px;
    min-height: 200px;
}
/* For images that are conceptually "icons" but must be large per rules */
.page-index__access-item img,
.page-index__feature-item img {
    min-width: 200px;
    min-height: 200px;
    width: 200px; /* Explicitly set display size to meet minimum */
    height: 200px;
}