/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
}

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

.page-index__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD36B; /* Glow color for titles */
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #FFD36B, transparent);
  border-radius: 2px;
}

/* 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 */
  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 on desktop */
}

.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: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #3A2A12; /* Border */
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px; /* Limit content width */
}

.page-index__main-title {
  font-size: 48px;
  font-weight: 700;
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-index__hero-description {
  font-size: 18px;
  color: #FFF6D6;
  margin-bottom: 30px;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for bright button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-index__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px #FFD36B;
}

/* Intro Section */
.page-index__intro-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-index__intro-content p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #FFF6D6;
  text-align: justify;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG */
  border-top: 1px solid #3A2A12; /* Border */
  border-bottom: 1px solid #3A2A12; /* Border */
}

.page-index__access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-index__access-link {
  display: inline-block;
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent background */
  color: #FFD36B; /* Glow */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid #3A2A12; /* Border */
}

.page-index__access-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFF6D6; /* Text Main */
  border-color: #FFD36B;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-index__game-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid #3A2A12; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-bottom: 1px solid #3A2A12; /* Border */
}

.page-index__game-title {
  font-size: 24px;
  color: #FFD36B; /* Glow */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-description {
  font-size: 15px;
  color: #FFF6D6;
  margin-bottom: 20px;
  padding: 0 15px;
  height: 90px; /* Fixed height for description to prevent layout shifts */
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-index__game-link {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for bright button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index__game-link:hover {
  box-shadow: 0 0 10px #FFD36B;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
}

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

.page-index__promo-card {
  background-color: #0A0A0A;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid #3A2A12; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__promo-card img {
  width: 100%;
   /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-bottom: 1px solid #3A2A12; /* Border */
}

.page-index__promo-title {
  font-size: 22px;
  color: #FFD36B; /* Glow */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-description {
  font-size: 15px;
  color: #FFF6D6;
  margin-bottom: 20px;
  padding: 0 15px;
  height: 75px; /* Fixed height */
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-index__promo-link {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for bright button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index__promo-link:hover {
  box-shadow: 0 0 10px #FFD36B;
}

/* Security & Support Section */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-index__feature-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid #3A2A12; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px #FFD36B;
}

.page-index__feature-card img {
  
  
  object-fit: contain;
  margin-bottom: 15px;
}

.page-index__feature-title {
  font-size: 20px;
  color: #FFD36B; /* Glow */
  margin-bottom: 10px;
}

.page-index__feature-description {
  font-size: 15px;
  color: #FFF6D6;
}

.page-index__contact-cta {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #0A0A0A;
}
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;
  color: #FFF6D6;
}
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.05);
}
.page-index__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD36B; /* Glow */
}
.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  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: #0A0A0A;
  border-radius: 0 0 5px 5px;
  color: #FFF6D6;
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-index__blog-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__blog-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid #3A2A12; /* Border */
  margin-bottom: 15px;
}

.page-index__blog-title {
  font-size: 20px;
  color: #FFD36B; /* Glow */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__blog-title a {
  color: #FFD36B;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-title a:hover {
  color: #FFF6D6;
}

.page-index__blog-date {
  font-size: 14px;
  color: #F2C14E; /* Primary color for date */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__blog-summary {
  font-size: 15px;
  color: #FFF6D6;
  margin-bottom: 20px;
  padding: 0 15px;
  height: 70px; /* Fixed height */
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-index__blog-readmore {
  display: inline-block;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFD36B;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid #3A2A12;
  margin: 0 15px;
}

.page-index__blog-readmore:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFF6D6;
  border-color: #FFD36B;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 40px;
  }
  .page-index__section-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-image img {
    border-radius: 4px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-index__main-title {
    font-size: 32px;
  }
  .page-index__hero-description {
    font-size: 16px;
  }
  .page-index__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-index__intro-section, .page-index__games-section, .page-index__promotions-section, .page-index__security-support-section, .page-index__faq-section, .page-index__blog-section {
    padding: 40px 0;
  }
  .page-index__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__access-links {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__access-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center;
  }
  .page-index__game-card img, .page-index__promo-card img, .page-index__blog-card img {
    
  }
  .page-index__game-description, .page-index__promo-description, .page-index__blog-summary {
    height: auto; /* Allow auto height on mobile for better readability */
  }
  .page-index__game-title, .page-index__promo-title, .page-index__blog-title {
    font-size: 20px;
  }
  .page-index__feature-card {
    padding: 20px;
  }
  details.page-index__faq-item summary.page-index__faq-question { padding: 15px; }
  .page-index__faq-qtext { font-size: 15px; }

  /* Image responsiveness for all images within .page-index */
  .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__game-card, .page-index__promo-card, .page-index__feature-card, .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-index__main-title {
    font-size: 28px;
  }
  .page-index__cta-button {
    font-size: 16px;
  }
  .page-index__section-title {
    font-size: 22px;
  }
  .page-index__game-categories, .page-index__promo-grid, .page-index__security-support-grid, .page-index__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-card img, .page-index__promo-card img, .page-index__blog-card img {
    
  }
}