.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8;
}

.page-index__section {
  padding: 60px 0;
  margin-bottom: 30px;
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #000080;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

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

.page-index__btn-primary,
.page-index__cta-button--primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #FFD700;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary:hover,
.page-index__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary,
.page-index__cta-button--secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: transparent;
  color: #FFD700;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #FFD700;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-secondary:hover,
.page-index__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 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); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #FFD700, #000080);
  color: #ffffff;
  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%;
}

.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;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-index__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-index__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Intro Section */
.page-index__section--intro {
  background-color: #ffffff;
}

.page-index__intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-index__intro-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #444444;
}

.page-index__intro-content p strong {
  color: #000080;
}

.page-index__intro-image-wrapper {
  text-align: center;
}

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

/* Quick Access Section */
.page-index__section--quick-access {
  background-color: #f0f0f0;
}

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

.page-index__access-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__access-item-title {
  font-size: 24px;
  color: #000080;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index__access-item p {
  font-size: 16px;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index__access-item .page-index__btn-primary {
  width: 100%;
  max-width: 200px;
}

/* Games Section */
.page-index__section--games {
  background-color: #ffffff;
}

.page-index__game-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.page-index__game-tab {
  padding: 12px 25px;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid #000080;
  border-radius: 30px;
  background-color: #ffffff;
  color: #000080;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.page-index__game-tab:hover {
  background-color: #000080;
  color: #ffffff;
}

.page-index__game-tab--active {
  background-color: #000080;
  color: #ffffff;
  border-color: #000080;
}

.page-index__game-content {
  position: relative;
  min-height: 400px; /* Ensure content area doesn't collapse */
}

.page-index__game-panel {
  display: none;
  animation: fadeIn 0.5s ease-out forwards;
}

.page-index__game-panel--active {
  display: block;
}

.page-index__game-item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-index__game-item-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.page-index__game-item-title {
  font-size: 32px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index__game-item-details p {
  font-size: 17px;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__game-item-details p strong {
  color: #000080;
}

/* Promotions Section */
.page-index__section--promotions {
  background-color: #000080;
  color: #ffffff;
}

.page-index__section--promotions .page-index__section-title,
.page-index__section--promotions .page-index__section-description {
  color: #ffffff;
}

.page-index__section--promotions .page-index__section-title::after {
  background-color: #FFD700;
}

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

.page-index__promotion-card {
  background-color: #1a1a5c; /* Darker blue */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promotion-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index__promotion-content {
  padding: 25px;
  text-align: center;
}

.page-index__promotion-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index__promotion-content p {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 25px;
}

.page-index__promotion-content .page-index__btn-primary {
  background-color: #FFD700;
  color: #000080;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 6px;
}

.page-index__promotion-content .page-index__btn-primary:hover {
  background-color: #e6c200;
  color: #000080;
}

/* Security & Support Section */
.page-index__section--security-support {
  background-color: #ffffff;
}

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

.page-index__security-item {
  text-align: center;
  padding: 25px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-index__security-item:hover {
  transform: translateY(-5px);
}

.page-index__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

.page-index__support-cta {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-index__section--faq {
  background-color: #f0f0f0;
}

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid #e0e0e0;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-index__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #000080;
  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.3s ease;
  padding: 0 25px;
  opacity: 0;
  background: #ffffff;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.page-index__faq-answer p {
  font-size: 16px;
  color: #555555;
  margin: 0;
}

.page-index__faq-answer p strong {
  color: #000080;
}

/* News Section */
.page-index__section--news {
  background-color: #ffffff;
}

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

.page-index__news-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-index__news-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  flex-grow: 1;
}

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

.page-index__news-title a:hover {
  color: #FFD700;
}

.page-index__news-excerpt {
  font-size: 15px;
  color: #666666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.page-index__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-index__read-more:hover {
  color: #e6c200;
  text-decoration: underline;
}

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 40px;
  }
  .page-index__hero-description {
    font-size: 20px;
  }
  .page-index__section-title {
    font-size: 32px;
  }
  .page-index__intro-grid,
  .page-index__game-item-grid {
    grid-template-columns: 1fr;
  }
  .page-index__intro-image-wrapper {
    order: -1; /* Move image above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-index__game-item-title {
    font-size: 28px;
  }
  .page-index__game-item-image {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-title {
    font-size: 32px;
  }
  .page-index__hero-description {
    font-size: 18px;
  }
  .page-index__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__cta-button--primary,
  .page-index__cta-button--secondary,
  .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__section {
    padding: 40px 0;
  }
  .page-index__section-title {
    font-size: 28px;
  }
  .page-index__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index__access-grid,
  .page-index__promotions-grid,
  .page-index__security-grid,
  .page-index__news-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-tabs {
    flex-direction: column;
    gap: 10px;
  }
  .page-index__game-tab {
    width: 100%;
    max-width: 100%;
  }
  .page-index__game-item-title {
    font-size: 24px;
  }
  .page-index__faq-question {
    padding: 15px 20px;
  }
  .page-index__faq-question h3 {
    font-size: 16px;
  }
  .page-index__faq-answer {
    padding: 0 20px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px 20px !important;
  }
  .page-index__news-title {
    font-size: 18px;
  }
  /* Mobile image adaptation */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__intro-grid,
  .page-index__access-grid,
  .page-index__game-item-grid,
  .page-index__promotions-grid,
  .page-index__security-grid,
  .page-index__news-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@keyframes pulse { /* Optional: For CTA buttons */
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.page-index__cta-button--primary {
  animation: pulse 2s infinite ease-in-out;
}