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

/* --- General Section Styling --- */
.page-index__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #000080; /* Dark blue for main titles */
}

.page-index__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: #555555;
}

/* --- Color Contrast Classes --- */
.page-index__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

.page-index__dark-bg {
  background-color: #000080;
  color: #ffffff;
}

.page-index__dark-bg .page-index__section-title {
  color: #FFD700; /* Gold for titles on dark background */
}

.page-index__dark-bg .page-index__section-description {
  color: #f0f0f0;
}

/* --- Buttons --- */
.page-index__cta-button,
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index a[class*="button"],
.page-index a[class*="btn"] {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  margin: 10px;
}

.page-index__btn-primary {
  background-color: #FFD700;
  color: #ffffff;
  border: 2px solid #FFD700;
}

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

.page-index__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

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

.page-index__button-group {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* --- 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); /* Ensures content is below fixed header */
  background: linear-gradient(135deg, #FFD700, #000080);
  color: #ffffff;
}

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

.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 10px 30px 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: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

/* --- Introduction Section --- */
.page-index__introduction-section .page-index__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
  align-items: center;
}

.page-index__introduction-section .page-index__text-block p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #333333;
}

.page-index__introduction-section .page-index__image-block img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- Quick Access Section --- */
.page-index__quick-access-section {
  background-color: #000080;
  color: #ffffff;
}

.page-index__quick-access-section .page-index__section-title {
  color: #FFD700;
}

.page-index__quick-access-section .page-index__section-description {
  color: #f0f0f0;
}

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

.page-index__quick-link {
  font-size: 16px;
  padding: 15px 25px;
  text-align: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.page-index__quick-link.page-index__btn-primary {
  background-color: #FFD700;
  color: #000080;
  border: 2px solid #FFD700;
}

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

.page-index__quick-link.page-index__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

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

/* --- Games Section --- */
.page-index__games-section .page-index__tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
}

.page-index__tab-button {
  background-color: transparent;
  border: none;
  padding: 15px 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #555555;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  margin: 0 10px;
}

.page-index__tab-button:hover {
  color: #FFD700;
}

.page-index__tab-button.active {
  color: #FFD700;
  border-bottom-color: #FFD700;
}

.page-index__tab-content {
  margin-top: 30px;
}

.page-index__tab-pane {
  display: none;
  text-align: left;
}

.page-index__tab-pane.active {
  display: block;
}

.page-index__tab-pane-title {
  font-size: 28px;
  color: #000080;
  margin-bottom: 25px;
  text-align: center;
}

.page-index__game-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-index__game-item img {
  width: 40%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-index__game-details {
  flex-grow: 1;
}

.page-index__game-details p {
  font-size: 16px;
  color: #333333;
  margin-bottom: 20px;
}

.page-index__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000080;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__read-more-btn:hover {
  background-color: #FFD700;
  color: #000080;
}

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

.page-index__promotions-section .page-index__section-title {
  color: #FFD700;
}

.page-index__promotions-section .page-index__section-description {
  color: #f0f0f0;
}

.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: #1a1a4a;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__promo-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-index__promo-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-index__promo-text {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index__promo-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: #FFD700;
  color: #000080;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #FFD700;
}

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

/* --- Security & Support Section --- */
.page-index__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

.page-index__security-item img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-index__security-text {
  font-size: 15px;
  color: #555555;
}

/* --- FAQ Section --- */
.page-index__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: 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: #ffffff;
  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:active {
  background: #eeeeee;
}

.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; /* Prevent h3 from blocking click event */
}

.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; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #000080;
  transform: rotate(45deg); /* Change to X or - */
}

.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: #f9f9f9;
  border-top: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Ensure it expands sufficiently */
  padding: 20px 25px !important;
  opacity: 1;
}

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

/* --- News Section --- */
.page-index__news-section {
  background-color: #000080;
  color: #ffffff;
}

.page-index__news-section .page-index__section-title {
  color: #FFD700;
}

.page-index__news-section .page-index__section-description {
  color: #f0f0f0;
}

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

.page-index__news-card {
  background: #1a1a4a;
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-index__news-card img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-index__news-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
  flex-grow: 1;
}

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

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

.page-index__news-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-index__news-date {
  font-size: 14px;
  color: #999999;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 42px;
  }

  .page-index__section-title {
    font-size: 32px;
  }

  .page-index__introduction-section .page-index__content-grid {
    grid-template-columns: 1fr;
  }

  .page-index__introduction-section .page-index__image-block {
    order: -1; /* Image above text on smaller screens */
  }

  .page-index__game-item {
    flex-direction: column;
    align-items: center;
  }

  .page-index__game-item img {
    width: 100%;
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .page-index__section {
    padding: 40px 15px;
  }

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

  .page-index__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* HERO Section Mobile */
  .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: 16px;
  }

  .page-index__hero-image img {
    border-radius: 8px;
  }

  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Images Mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__game-item,
  .page-index__promo-card,
  .page-index__security-item,
  .page-index__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons Mobile */
  .page-index__cta-button,
  .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;
    margin: 5px 0; /* Adjust margin for vertical stack */
  }

  .page-index__button-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-index__quick-link {
    font-size: 15px;
    padding: 12px 20px;
  }

  .page-index__tab-buttons {
    flex-direction: column;
    gap: 10px;
    border-bottom: none;
  }

  .page-index__tab-button {
    border-bottom: 2px solid #eee;
    margin: 0;
    width: 100%;
  }

  .page-index__tab-button.active {
    border-bottom-color: #FFD700;
  }

  .page-index__tab-pane-title {
    font-size: 24px;
  }

  /* FAQ Mobile */
  .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__faq-item {
    border-radius: 5px;
  }

  .page-index__faq-question {
    border-radius: 5px;
  }

  .page-index__faq-answer {
    border-radius: 0 0 5px 5px;
  }

  .page-index__news-title {
    font-size: 18px;
  }
  .page-index__promo-title {
    font-size: 20px;
  }
}