.page-index-hot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, explicit for clarity */
}

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

.page-index-hot-games__dark-bg {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

.page-index-hot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-index-hot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
  font-weight: bold;
}

.page-index-hot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit;
}

/* Hero Section */
.page-index-hot-games__hero-section {
  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 not hidden by fixed header */
  min-height: 70vh;
  position: relative;
  overflow: hidden;
}

.page-index-hot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-index-hot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
  color: #ffffff;
}

.page-index-hot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-index-hot-games__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-index-hot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-index-hot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

/* Buttons */
.page-index-hot-games__btn-primary,
.page-index-hot-games__btn-secondary,
.page-index-hot-games__btn-tertiary,
.page-index-hot-games__btn-register,
.page-index-hot-games__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.page-index-hot-games__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
}

.page-index-hot-games__btn-primary:hover {
  background-color: #005c2d;
  border-color: #005c2d;
}

.page-index-hot-games__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-index-hot-games__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-index-hot-games__btn-tertiary {
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-index-hot-games__btn-tertiary:hover {
  background-color: #005c2d;
  border-color: #005c2d;
}

/* Custom colors for Register/Login buttons */
.page-index-hot-games__btn-register,
.page-index-hot-games__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-index-hot-games__btn-register:hover,
.page-index-hot-games__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Games Overview Section */
.page-index-hot-games__games-overview {
  padding: 80px 0;
}

.page-index-hot-games__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-hot-games__category-card {
  background-color: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.page-index-hot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index-hot-games__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #017439;
  padding: 0 15px;
}

.page-index-hot-games__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-index-hot-games__card-title a:hover {
  text-decoration: underline;
}

.page-index-hot-games__card-text {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

/* Why Choose Section */
.page-index-hot-games__why-choose {
  padding: 80px 0;
}

.page-index-hot-games__why-choose-grid {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-index-hot-games__why-choose-content {
  flex: 1;
}

.page-index-hot-games__why-choose-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index-hot-games__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index-hot-games__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-index-hot-games__feature-item {
  margin-bottom: 25px;
}

.page-index-hot-games__feature-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-index-hot-games__feature-title::before {
  content: '✓';
  color: #FFFF00; /* Highlight color */
  position: absolute;
  left: 0;
  font-size: 1.2em;
  top: -2px;
}

.page-index-hot-games__feature-text {
  color: #f0f0f0;
  font-size: 1em;
  padding-left: 30px;
}

/* Promotions CTA Section */
.page-index-hot-games__promotions-cta {
  padding: 80px 0;
}

.page-index-hot-games__promotions-grid {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-direction: row-reverse;
}

.page-index-hot-games__promotions-content {
  flex: 1;
}

.page-index-hot-games__promotions-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index-hot-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-index-hot-games__faq-section {
  padding: 80px 0;
}

.page-index-hot-games__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-hot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-index-hot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.2); /* Slightly darker for contrast */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-hot-games__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.page-index-hot-games__faq-question h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1em;
}

.page-index-hot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00;
}

.page-index-hot-games__faq-item.active .page-index-hot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-index-hot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-index-hot-games__faq-item.active .page-index-hot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
}

.page-index-hot-games__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-index-hot-games__final-cta {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-hot-games__hero-title {
    font-size: 2.8em;
  }
  .page-index-hot-games__hero-description {
    font-size: 1.1em;
  }
  .page-index-hot-games__why-choose-grid,
  .page-index-hot-games__promotions-grid {
    flex-direction: column;
    text-align: center;
  }
  .page-index-hot-games__why-choose-image-wrapper,
  .page-index-hot-games__promotions-image-wrapper {
    margin-top: 40px;
  }
  .page-index-hot-games__feature-title,
  .page-index-hot-games__feature-text {
    padding-left: 0;
  }
  .page-index-hot-games__feature-title::before {
    display: none;
  }
  .page-index-hot-games__feature-list {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-index-hot-games__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-index-hot-games__hero-title {
    font-size: 2em;
  }
  .page-index-hot-games__hero-description {
    font-size: 1em;
  }
  .page-index-hot-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-hot-games__btn-primary,
  .page-index-hot-games__btn-secondary,
  .page-index-hot-games__btn-tertiary,
  .page-index-hot-games__btn-register,
  .page-index-hot-games__btn-login {
    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-hot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index-hot-games__section-title {
    font-size: 1.8em;
  }
  .page-index-hot-games__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-index-hot-games__games-overview,
  .page-index-hot-games__why-choose,
  .page-index-hot-games__promotions-cta,
  .page-index-hot-games__faq-section,
  .page-index-hot-games__final-cta {
    padding: 50px 0;
  }
  .page-index-hot-games__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Mobile image responsiveness */
  .page-index-hot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index-hot-games__hero-image-wrapper,
  .page-index-hot-games__why-choose-image-wrapper,
  .page-index-hot-games__promotions-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-index-hot-games__card-image {
    height: 180px;
  }
  /* Content area image minimum size constraint for mobile */
  .page-index-hot-games__games-overview img,
  .page-index-hot-games__why-choose img,
  .page-index-hot-games__promotions-cta img {
      min-width: 200px !important;
      min-height: 200px !important;
  }
  /* FAQ specific mobile adjustments */
  .page-index-hot-games__faq-question {
    padding: 15px;
    font-size: 1em;
  }
  .page-index-hot-games__faq-question h3 {
    font-size: 1em;
  }
  .page-index-hot-games__faq-answer {
    padding: 0 15px;
  }
  .page-index-hot-games__faq-item.active .page-index-hot-games__faq-answer {
    padding: 15px;
  }
}