.page-index {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px);
}

.page-index__section-padding {
  padding: 80px 20px;
}

.page-index__bg-dark {
  background-color: #1A202C;
}

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

.page-index__text-center {
  text-align: center;
}

.page-index__margin-top-large {
  margin-top: 40px;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #D4AF37;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-index__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  line-height: 1.6;
  color: #cccccc;
}

.page-index__hero-section {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-index__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
  z-index: 2;
}

.page-index__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-index__hero-title {
  font-size: 4em;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #D4AF37;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

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

.page-index__hero-buttons .page-index__button {
  margin: 0 15px;
  padding: 15px 35px;
  font-size: 1.1em;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
}

.page-index__button--primary {
  background-color: #D4AF37;
  color: #1A202C;
  border-color: #D4AF37;
}

.page-index__button--primary:hover {
  background-color: #e1c773;
  border-color: #e1c773;
}

.page-index__button--secondary {
  background-color: transparent;
  color: #D4AF37;
  border-color: #D4AF37;
}

.page-index__button--secondary:hover {
  background-color: #D4AF37;
  color: #1A202C;
}

.page-index__button--outline {
  background-color: transparent;
  color: #D4AF37;
  border: 2px solid #D4AF37;
}

.page-index__button--outline:hover {
  background-color: #D4AF37;
  color: #1A202C;
}

.page-index__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-index__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-index__grid {
  display: grid;
  gap: 30px;
}

.page-index__grid--2-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-index__grid--3-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-index__advantage-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border-left: 4px solid #D4AF37;
  transition: transform 0.3s ease;
}

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

.page-index__advantage-title {
  font-size: 1.6em;
  color: #D4AF37;
  margin-bottom: 15px;
}

.page-index__advantage-text {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-index__games-section .page-index__section-intro {
  margin-bottom: 40px;
}

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

.page-index__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

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

.page-index__game-card .page-index__game-title {
  font-size: 1.5em;
  color: #D4AF37;
  margin: 15px 20px 10px;
}

.page-index__game-card .page-index__game-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 20px 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.page-index__promo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-index__promo-image {
  flex: 1 1 500px;
  border-radius: 10px;
  object-fit: cover;
  max-width: 100%;
  height: auto;
}

.page-index__promo-details {
  flex: 1 1 400px;
}

.page-index__promo-subtitle {
  font-size: 2.2em;
  color: #D4AF37;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-index__promo-text {
  font-size: 1.1em;
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 25px;
}

.page-index__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index__promo-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23D4AF37"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-index__promo-details .page-index__button {
  margin-right: 15px;
  margin-bottom: 15px;
}

.page-index__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__feature-card img {
  width: 200px;
  
  object-fit: contain;
  margin-bottom: 20px;
  display: block; /* Ensure img is block-level */
}

.page-index__feature-title {
  font-size: 1.5em;
  color: #D4AF37;
  margin-bottom: 10px;
}

.page-index__feature-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #e0e0e0;
  flex-grow: 1;
}

.page-index__guide-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  border-bottom: 3px solid #D4AF37;
}

.page-index__guide-title {
  font-size: 1.4em;
  color: #D4AF37;
  margin-bottom: 10px;
}

.page-index__guide-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #cccccc;
}

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

.page-index__testimonial-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  border-top: 4px solid #D4AF37;
}

.page-index__testimonial-text {
  font-size: 1.1em;
  line-height: 1.7;
  color: #f0f0f0;
  margin-bottom: 20px;
  font-style: italic;
}

.page-index__testimonial-author {
  font-size: 1em;
  font-weight: 600;
  color: #D4AF37;
}

.page-index__cta-section .page-index__section-intro {
  margin-bottom: 50px;
}

.page-index__cta-buttons .page-index__button {
  margin: 0 15px;
}

.page-index__details-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  border-left: 3px solid #D4AF37;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-index__details-title a:hover {
  color: #e1c773;
}

.page-index__details-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3.5em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2.5em;
  }
  .page-index__promo-image {
    flex: 1 1 100%;
  }
  .page-index__promo-details {
    flex: 1 1 100%;
    text-align: center;
  }
  .page-index__promo-details .page-index__button {
    margin: 10px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    height: auto;
    min-height: 60vh;
    padding: 100px 20px 60px;
  }
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons .page-index__button {
    display: block;
    width: 100%;
    margin: 15px 0;
  }
  .page-index__section-padding {
    padding: 60px 15px;
  }
  .page-index__section-title {
    font-size: 2em;
  }
  .page-index__section-intro {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-index__grid--2-col, .page-index__grid--3-col {
    grid-template-columns: 1fr;
  }
  .page-index__game-categories {
    grid-template-columns: 1fr;
  }
  .page-index__promo-list li {
    font-size: 0.95em;
  }
  .page-index__promo-subtitle {
    font-size: 1.8em;
  }
  .page-index__promo-text {
    font-size: 1em;
  }
  .page-index__feature-card img, .page-index__game-card img {
    max-width: 100%;
    height: auto;
  }
  .page-index__feature-card img,
  .page-index__game-card img,
  .page-index__promo-image,
  .page-index__hero-image {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
  }
  .page-index__advantage-item, .page-index__feature-card, .page-index__game-card, .page-index__testimonial-card, .page-index__guide-item, .page-index__details-card {
    padding: 25px;
  }
  .page-index__advantage-title, .page-index__game-title, .page-index__feature-title, .page-index__guide-title, .page-index__details-title {
    font-size: 1.4em;
  }
  .page-index__hero-buttons .page-index__button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-index__cta-buttons .page-index__button {
    display: block;
    width: 100%;
    margin: 15px 0;
  }
}