/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #E2E8F0; /* Light text for dark background */
  background-color: #1A202C; /* Main dark background */
  line-height: 1.6;
}

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

.page-index__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index__section:nth-of-type(even) {
  background-color: #2D3748; /* Slightly lighter dark background for contrast */
}

.page-index__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for titles */
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__section-description {
  font-size: 1.2em;
  color: #CBD5E0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-index__hero-section {
  background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  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,dark_pattern]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.page-index__hero-title {
  font-size: 3.8em;
  color: #FFD700;
  margin-bottom: 25px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-index__hero-subtitle {
  font-size: 1.4em;
  color: #E2E8F0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-index__btn--primary {
  background-color: #FFD700;
  color: #1A202C;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-index__btn--primary:hover {
  background-color: #E0B400;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-index__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

.page-index__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

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

/* General Content Grid */
.page-index__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-index__content-grid:nth-of-type(odd) {
  flex-direction: row-reverse;
}

.page-index__text-content {
  flex: 1;
}

.page-index__text-content p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #CBD5E0;
}

.page-index__image--left,
.page-index__image--right {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-index__image--full-width {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Why Choose KV888 Section */
.page-index__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: left;
}

.page-index__feature-item {
  background-color: #2D3748;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-top: 3px solid #FFD700;
}

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

.page-index__feature-item p {
  color: #CBD5E0;
  font-size: 1em;
}

/* Games Section */
.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: left;
}

.page-index__game-category-item {
  background-color: #1A202C;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid #FFD700;
}

.page-index__game-category-title {
  font-size: 1.7em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__game-category-item p {
  color: #CBD5E0;
  font-size: 1em;
}

/* Promotions Section */
.page-index__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

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

.page-index__promo-card p {
  color: #CBD5E0;
  margin-bottom: 20px;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 5px;
  background-color: #FFD700;
  color: #1A202C;
}

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

/* App Download Section */
.page-index__app-steps {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
  text-align: left;
}

.page-index__app-steps li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #CBD5E0;
}

.page-index__app-steps li strong {
  color: #FFD700;
}

.page-index__subsection-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Registration Section */
.page-index__process-steps {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-index__step-item {
  background-color: #2D3748;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-right: 5px solid #FFD700;
  text-align: left;
  flex: 1; /* Allow items to grow */
  min-width: 300px; /* Minimum width for each item */
  max-width: 45%; /* Max width for two items per row */
}

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

.page-index__step-item p {
  color: #CBD5E0;
  margin-bottom: 20px;
}

/* Contact Section */
.page-index__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: center;
}

.page-index__contact-list li {
  font-size: 1.2em;
  color: #E2E8F0;
  margin-bottom: 10px;
}

.page-index__link--contact {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-index__link--contact:hover {
  text-decoration: underline;
}

.page-index__contact-note {
  margin-top: 30px;
  font-style: italic;
  color: #CBD5E0;
}

/* Related Pages Section */
.page-index__detail-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__detail-page-card {
  background-color: #2D3748;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid #FFD700;
  text-align: left;
}

.page-index__detail-page-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__detail-page-title a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-index__detail-page-title a:hover {
  text-decoration: underline;
}

.page-index__detail-page-description {
  color: #CBD5E0;
  margin-bottom: 20px;
}

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

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

  .page-index__section-title {
    font-size: 2.2em;
  }

  .page-index__content-grid {
    flex-direction: column;
    text-align: center;
  }

  .page-index__content-grid:nth-of-type(odd) {
    flex-direction: column;
  }

  .page-index__image--left,
  .page-index__image--right {
    max-width: 80%;
    margin-bottom: 30px;
  }
  
  .page-index__process-steps {
    flex-direction: column;
    align-items: center;
  }

  .page-index__step-item {
    max-width: 80%;
  }
}

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

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

  .page-index__section-title {
    font-size: 1.8em;
  }

  .page-index__section {
    padding: 40px 0;
  }

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

  .page-index__btn {
    width: 80%;
  }

  .page-index__features-grid,
  .page-index__game-categories,
  .page-index__promo-cards,
  .page-index__detail-pages-grid {
    grid-template-columns: 1fr;
  }

  .page-index__image--left,
  .page-index__image--right {
    max-width: 100%;
  }
  
  .page-index__step-item {
    max-width: 100%;
  }
}