/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #FFFFFF; /* Default text color for dark backgrounds */
  background-color: #0A192F; /* Primary background color */
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Accent color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-index__section-title--light {
  color: #FFFFFF;
}

.page-index__section-subtitle {
  font-size: 1.2em;
  color: #E0E0E0;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.page-index__btn--primary {
  background-color: #FFD700; /* Gold accent for primary action */
  color: #0A192F;
  border: 2px solid #FFD700;
}

.page-index__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-index__btn--secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
  transform: translateY(-2px);
}

.page-index__btn--gold {
  background-color: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

.page-index__btn--gold:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-index__btn--large {
  padding: 16px 35px;
  font-size: 1.2em;
}

/* Hero Section */
.page-index__hero-section {
  background: linear-gradient(135deg, #0A192F 0%, #1A365B 100%);
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
}

.page-index__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:bg:abstract,geometric,lines]') no-repeat center center/cover;
  opacity: 0.05;
  z-index: 0;
}

.page-index__hero-content {
  text-align: center;
  max-width: 800px;
  margin-right: 40px;
  z-index: 1;
}

.page-index__hero-title {
  font-size: 4em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-index__hero-description {
  font-size: 1.4em;
  color: #E0E0E0;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-index__hero-image-wrapper {
  z-index: 1;
}

.page-index__hero-image {
  max-width: 500px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Features Section */
.page-index__features-section {
  padding: 80px 0;
  background-color: #0A192F;
  text-align: center;
}

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

.page-index__feature-item {
  background-color: #1A2A47;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-10px);
}

.page-index__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.page-index__feature-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__feature-text {
  font-size: 1.1em;
  color: #CCCCCC;
  line-height: 1.6;
}

/* Game Categories Section */
.page-index__game-categories-section {
  padding: 80px 0;
  background-color: #1A2A47;
  text-align: center;
}

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

.page-index__category-item {
  background-color: #0A192F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__category-item:hover {
  transform: translateY(-10px);
}

.page-index__category-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 3px solid #FFD700;
}

.page-index__category-title {
  font-size: 2em;
  color: #FFD700;
  margin: 25px 0 15px;
}

.page-index__category-description {
  font-size: 1.1em;
  color: #CCCCCC;
  padding: 0 25px;
  line-height: 1.6;
  flex-grow: 1;
}

.page-index__category-item .page-index__btn {
  margin: 25px auto;
  width: fit-content;
}

/* Promotions Callout */
.page-index__promotions-callout {
  background: linear-gradient(90deg, #FFD700, #e6c200);
  padding: 80px 0;
  text-align: center;
  color: #0A192F; /* Dark text on gold background */
}

.page-index__promotions-callout .page-index__section-title {
  color: #0A192F;
}

.page-index__promotions-description {
  font-size: 1.3em;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: #333333;
}

/* App Download Section */
.page-index__app-download-section {
  padding: 80px 0;
  background-color: #0A192F;
}

.page-index__app-download-section .page-index__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.page-index__app-content {
  flex: 1;
  text-align: left;
}

.page-index__app-download-section .page-index__section-title {
  text-align: left;
  color: #FFD700;
  margin-bottom: 25px;
}

.page-index__app-description {
  font-size: 1.2em;
  color: #CCCCCC;
  line-height: 1.6;
  margin-bottom: 40px;
}

.page-index__app-cta-group {
  display: flex;
  gap: 20px;
}

.page-index__app-image-wrapper {
  flex: 0 0 450px;
  text-align: center;
}

.page-index__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Trust & Safety Section */
.page-index__trust-safety-section {
  padding: 80px 0;
  background-color: #1A2A47;
  text-align: center;
}

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

.page-index__trust-item {
  background-color: #0A192F;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  border-left: 5px solid #FFD700;
}

.page-index__trust-title {
  font-size: 1.7em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__trust-text {
  font-size: 1.1em;
  color: #CCCCCC;
  line-height: 1.6;
}

/* About XN88 Section */
.page-index__about-xn88-section {
  padding: 80px 0;
  background-color: #0A192F;
  text-align: center;
}

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

.page-index__about-text {
  font-size: 1.15em;
  color: #E0E0E0;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__about-xn88-section .page-index__btn {
  margin-top: 30px;
}

/* Detail Pages Section */
.page-index__detail-pages-section {
  padding: 80px 0;
  background-color: #1A2A47;
  text-align: center;
}

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

.page-index__detail-item {
  background-color: #0A192F;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-index__detail-title {
  font-size: 1.6em;
  margin-bottom: 15px;
}

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

.page-index__detail-title a:hover {
  color: #e6c200;
}

.page-index__detail-description {
  font-size: 1.05em;
  color: #CCCCCC;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__detail-item .page-index__btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Call to Action Bottom */
.page-index__cta-bottom {
  background: linear-gradient(45deg, #0A192F, #1A365B);
  padding: 80px 0;
  text-align: center;
  border-top: 5px solid #FFD700;
}

.page-index__cta-description {
  font-size: 1.3em;
  color: #E0E0E0;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Floating Ads/CTAs */
.page-index__floating-ad {
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background-color: rgba(26, 42, 71, 0.95); /* Darker blue with transparency */
}

.page-index__floating-ad--top {
  top: 0;
}

.page-index__floating-ad--bottom {
  bottom: 0;
}

.page-index__floating-btn {
  display: block;
  background-color: #FFD700; /* Gold accent */
  color: #0A192F;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-index__floating-btn:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-index__floating-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-section .page-index__container {
    flex-direction: column;
    text-align: center;
    gap: 60px;
  }

  .page-index__hero-content {
    margin-right: 0;
    max-width: 100%;
  }

  .page-index__hero-title {
    font-size: 3em;
  }

  .page-index__hero-description {
    font-size: 1.2em;
  }

  .page-index__app-download-section .page-index__container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-index__app-content {
    text-align: center;
  }

  .page-index__app-download-section .page-index__section-title {
    text-align: center;
  }

  .page-index__app-cta-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index__section-title {
    font-size: 2.2em;
  }

  .page-index__hero-title {
    font-size: 2.5em;
  }

  .page-index__hero-description {
    font-size: 1.1em;
  }

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

  .page-index__btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-index__features-grid, .page-index__category-grid, .page-index__trust-grid, .page-index__detail-grid {
    grid-template-columns: 1fr;
  }

  .page-index__app-image-wrapper {
    flex: 0 0 100%;
  }

  .page-index__app-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__floating-btn {
    font-size: 1em;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-index__section-title {
    font-size: 1.8em;
  }

  .page-index__hero-title {
    font-size: 2em;
  }

  .page-index__hero-description {
    font-size: 1em;
  }

  .page-index__floating-btn {
    font-size: 0.9em;
    padding: 8px 15px;
  }
  .page-index__floating-text {
    width: calc(100vw - 40px); /* Adjust based on padding */
    max-width: 300px;
  }
}