.page-index {
  color: #ffffff; /* Body background is dark (#121212), so text should be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Inherited from shared.css body */
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

/* Color Contrast Helpers */
.page-index__dark-bg {
  background-color: #1A202C;
  color: #ffffff;
}

.page-index__light-bg {
  background-color: #f0f0f0;
  color: #333333;
}

.page-index__light-bg .page-index__section-title {
  color: #1A202C;
}

.page-index__light-bg .page-index__section-description {
  color: #555555;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700;
  color: #1A202C;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-index__cta-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* 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: var(--header-offset, 120px);
  overflow: hidden;
  min-height: 700px;
}

.page-index__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  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: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  margin-top: -80px; /* Overlap with image for visual effect */
  backdrop-filter: blur(5px);
}

.page-index__hero-title {
  font-size: 52px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 22px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__intro-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.page-index__intro-content p {
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
  max-width: 900px;
}

.page-index__intro-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Quick Links Section */
.page-index__quick-links {
  padding: 80px 0;
  background-color: #1A202C;
}

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

.page-index__link-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-index__link-card:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: #FFD700;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-index__link-card h3 {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__link-card p {
  font-size: 16px;
  color: #cccccc;
}

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

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

.page-index__game-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.page-index__game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index__game-card h3 {
  font-size: 24px;
  color: #1A202C;
  padding: 15px 20px 0;
}

.page-index__game-card h3 a {
  color: #1A202C;
  text-decoration: none;
}

.page-index__game-card h3 a:hover {
  color: #FFD700;
}

.page-index__game-card p {
  font-size: 16px;
  color: #555555;
  padding: 0 20px 20px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #ffffff;
  text-align: center;
}

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

.page-index__promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index__promo-card h3 {
  font-size: 22px;
  color: #FFD700;
  margin: 20px 15px 10px;
}

.page-index__promo-card p {
  font-size: 16px;
  color: #cccccc;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-index__promo-button {
  display: inline-block;
  padding: 10px 25px;
  background: #FFD700;
  color: #1A202C;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-index__promo-button:hover {
  background: #e6c200;
}

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

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

.page-index__security-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-index__security-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__security-item h3 {
  font-size: 22px;
  color: #1A202C;
  margin-bottom: 10px;
}

.page-index__security-item p {
  font-size: 16px;
  color: #555555;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
}

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1A202C;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #2a3342;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #FFD700;
  transform: rotate(180deg);
}

.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.03);
  color: #cccccc;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

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

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

.page-index__blog-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

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

.page-index__blog-card h3 {
  font-size: 20px;
  color: #1A202C;
  padding: 15px 20px 0;
}

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

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

.page-index__blog-card p {
  font-size: 15px;
  color: #555555;
  padding: 0 20px;
}

.page-index__blog-date {
  display: block;
  font-size: 14px;
  color: #888888;
  padding: 10px 20px 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 44px;
  }
  .page-index__hero-description {
    font-size: 20px;
  }
  .page-index__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    min-height: auto;
  }
  .page-index__hero-image img {
    border-radius: 8px;
  }
  .page-index__hero-content {
    margin-top: -60px;
    padding: 15px;
  }
  .page-index__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-index__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    margin-top: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__container {
    padding: 30px 15px;
  }
  .page-index__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-index__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-index__intro-section, .page-index__quick-links, .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__intro-content p {
    font-size: 16px;
  }
  .page-index__intro-image {
    border-radius: 8px;
  }

  .page-index__links-grid, .page-index__games-grid, .page-index__promotions-grid, .page-index__security-grid, .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__link-card h3 {
    font-size: 20px;
  }
  .page-index__link-card p {
    font-size: 15px;
  }

  .page-index__game-card img, .page-index__promo-card img, .page-index__blog-card img {
    
  }
  .page-index__game-card h3, .page-index__promo-card h3, .page-index__blog-card h3 {
    font-size: 18px;
  }
  .page-index__game-card p, .page-index__promo-card p, .page-index__blog-card p {
    font-size: 15px;
  }
  .page-index__promo-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px;
    font-size: 16px;
  }
  .page-index__security-item h3 {
    font-size: 20px;
  }
  .page-index__security-item p {
    font-size: 15px;
  }
  
  .page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-question h3 {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-index__faq-answer {
    padding: 0 15px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }
  .page-index__blog-date {
    font-size: 13px;
  }

  /* Ensure all images and containers are responsive */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section, .page-index__card, .page-index__container, .page-index__links-grid, .page-index__games-grid, .page-index__promotions-grid, .page-index__security-grid, .page-index__blog-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 28px;
  }
  .page-index__hero-description {
    font-size: 15px;
  }
  .page-index__section-title {
    font-size: 24px;
  }
  .page-index__cta-button {
    font-size: 16px;
    padding: 10px 20px;
  }
  .page-index__game-card h3, .page-index__promo-card h3, .page-index__blog-card h3 {
    font-size: 16px;
  }
  .page-index__game-card p, .page-index__promo-card p, .page-index__blog-card p {
    font-size: 14px;
  }
}