/* style/index.css */
/* Base styles for the page-index */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main on dark background */
  background-color: #0D0E12; /* Background */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global container for content */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Section titles and descriptions */
.page-index__section-title {
  font-size: 2.5em;
  color: #FFB04D; /* Glow */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__subsection-title {
  font-size: 1.8em;
  color: #FFB04D; /* Glow */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Centered CTA button container */
.page-index__centered-cta {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* General button styles */
.page-index__cta-button,
.page-index__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  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, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background-color: #FFA53A; /* Auxiliary color */
  color: #17191F; /* Dark text for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__btn-secondary:hover {
  background-color: #FFB04D; /* Glow */
  transform: translateY(-1px);
}

.page-index__btn-tertiary {
  display: inline-block;
  padding: 8px 20px;
  background: transparent;
  color: #FFA53A; /* Auxiliary color */
  text-decoration: none;
  border: 1px solid #FFA53A;
  border-radius: 5px;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.page-index__btn-tertiary:hover {
  background-color: #FFA53A;
  color: #17191F; /* Dark text for contrast */
}

/* Anchor text color within content sections */
.page-index__intro-section a,
.page-index__games-section a,
.page-index__promotions-section a,
.page-index__security-support-section a,
.page-index__faq-section a,
.page-index__blog-section a {
  color: #FFA53A; /* Auxiliary color */
  text-decoration: none;
}

.page-index__intro-section a:hover,
.page-index__games-section a:hover,
.page-index__promotions-section a:hover,
.page-index__security-support-section a:hover,
.page-index__faq-section a:hover,
.page-index__blog-section a:hover {
  text-decoration: underline;
}

/* Image base styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* --- 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, header offset handled by body */
  background-color: #0D0E12; /* Background */
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width for flex item */
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-index__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Use clamp for H1 font-size */
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-index__hero-description {
  font-size: 1.3em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Module 1: Homepage Introduction --- */
.page-index__intro-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
  border-bottom: 1px solid #17191F; /* Card BG as border for separation */
}

.page-index__intro-section p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

/* --- Module 2: Quick Access Links --- */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
  border-bottom: 1px solid #A84F0C; /* Border */
}

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

.page-index__quick-access-card {
  background-color: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #FFF3E6; /* Text Main */
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__quick-access-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: #FFB04D; /* Glow */
}

.page-index__quick-access-card .page-index__card-title {
  font-size: 1.3em;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 10px;
}

.page-index__quick-access-card p {
  font-size: 0.95em;
  color: #CCC;
}

/* --- Module 3: Core Games/Services Introduction --- */
.page-index__games-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
  border-bottom: 1px solid #17191F; /* Card BG as border */
}

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

.page-index__game-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-index__game-card .page-index__card-title {
  font-size: 1.4em;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
}

.page-index__game-card p {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__game-card a {
  margin-top: auto; /* Push button to bottom */
}

/* --- Module 4: Promotions --- */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
  border-bottom: 1px solid #A84F0C; /* Border */
}

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

.page-index__promo-card {
  background-color: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__promo-card img {
  width: 100%;
   /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-index__promo-card .page-index__card-title {
  font-size: 1.4em;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-index__promo-card p {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__promo-card a {
  margin-top: auto; /* Push button to bottom */
}

/* --- Module 5: Security & Customer Service --- */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
  border-bottom: 1px solid #17191F; /* Card BG as border */
}

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

.page-index__security-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__security-item img {
   /* Small fixed width for icons */
   /* Small fixed height for icons */
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 176, 77, 0.5)); /* Subtle glow for icons */
}

.page-index__security-item .page-index__card-title {
  font-size: 1.3em;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
}

.page-index__security-item p {
  font-size: 0.95em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__security-item a {
  margin-top: auto;
}

/* --- Module 6: FAQ --- */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
  border-bottom: 1px solid #A84F0C; /* Border */
}

.page-index__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #0D0E12; /* Background */
  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: rgba(255, 176, 77, 0.05); /* Subtle hover effect */
}

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

.page-index__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  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 */
  border-radius: 0 0 10px 10px;
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
}

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

/* --- Module 7: Latest Blog Content --- */
.page-index__blog-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
}

.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: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__blog-card img {
  width: 100%;
  height: 220px; /* Fixed height for blog card images */
  object-fit: cover;
  border-bottom: 1px solid #A84F0C; /* Border */
}

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

.page-index__blog-card .page-index__card-title {
  font-size: 1.25em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__blog-date {
  font-size: 0.85em;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-index__blog-card p {
  font-size: 0.95em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__blog-card a.page-index__btn-tertiary {
  margin-top: auto;
  align-self: flex-start; /* Align button to start */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__subsection-title {
    font-size: 1.6em;
  }
  .page-index__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-index__quick-access-grid,
  .page-index__games-grid,
  .page-index__promo-grid,
  .page-index__security-grid,
  .page-index__blog-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-index__container {
    padding: 15px;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__subsection-title {
    font-size: 1.4em;
  }
  .page-index__section-description {
    font-size: 1em;
  }

  /* Hero Section */
  .page-index__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* Important for mobile override */
  }
  .page-index__main-title {
    font-size: clamp(1.8em, 7vw, 2.8em); /* Adjusted clamp for mobile */
    margin-bottom: 15px;
  }
  .page-index__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* All images must be responsive */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* All containers with images or content */
  .page-index__intro-section .page-index__container,
  .page-index__quick-access-section .page-index__container,
  .page-index__games-section .page-index__container,
  .page-index__promotions-section .page-index__container,
  .page-index__security-support-section .page-index__container,
  .page-index__faq-section .page-index__container,
  .page-index__blog-section .page-index__container,
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__security-item,
  .page-index__blog-card,
  .page-index__quick-access-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 0.9em !important;
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }

  /* For grids that might stack buttons, ensure spacing */
  .page-index__centered-cta a {
    margin-bottom: 0 !important; /* Reset margin if it's the last button */
  }

  .page-index__game-card img,
  .page-index__promo-card img,
  .page-index__blog-card img {
     /* Smaller fixed height for mobile cards */
  }

  .page-index__security-item img {
    
    
  }

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