.page-index-hot-games {
  color: #333333; /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

@media (max-width: 768px) {
  .page-index-hot-games {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header height */
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
}

.page-index-hot-games__hero-section {
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF; /* Light text for dark background */
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-index-hot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4; /* Slightly transparent to let text stand out */
}

.page-index-hot-games__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area */
  display: block;
}

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

.page-index-hot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.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__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  min-width: 150px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-index-hot-games__button--register {
  background-color: #FFFFFF; /* Custom color for register */
  color: #000000; /* Dark text for light background */
  border: 2px solid #FFFFFF;
}

.page-index-hot-games__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  transform: translateY(-3px);
}

.page-index-hot-games__button--login {
  background-color: #FCBC45; /* Custom color for login */
  color: #000000; /* Dark text for light background */
  border: 2px solid #FCBC45;
}

.page-index-hot-games__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

.page-index-hot-games__section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-index-hot-games__section-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 20px;
}

.page-index-hot-games__section-intro {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-hot-games__game-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.page-index-hot-games__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.page-index-hot-games__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.page-index-hot-games__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index-hot-games__game-card-content {
  padding: 25px;
}

.page-index-hot-games__game-card-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #000000;
}

.page-index-hot-games__game-card-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-index-hot-games__game-card-title a:hover {
  color: #FCBC45;
}

.page-index-hot-games__game-card-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
}

.page-index-hot-games__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #000000;
}

.page-index-hot-games__button--small:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

.page-index-hot-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-index-hot-games__feature-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.page-index-hot-games__feature-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
}

.page-index-hot-games__feature-description {
  font-size: 1em;
  color: #555555;
}

.page-index-hot-games__section--cta {
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF; /* Light text for dark background */
  padding: 80px 20px;
  border-radius: 12px;
  margin-bottom: 60px;
}

.page-index-hot-games__section--cta .page-index-hot-games__section-title {
  color: #FFFFFF;
}

.page-index-hot-games__section--cta .page-index-hot-games__section-intro {
  color: #f0f0f0;
}

.page-index-hot-games__button--cta {
  background-color: #FCBC45; /* Custom color for CTA button */
  color: #000000; /* Dark text for light background */
  border: 2px solid #FCBC45;
  font-size: 1.2em;
  padding: 18px 35px;
  margin-top: 30px;
}

.page-index-hot-games__button--cta:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index-hot-games__hero-title {
    font-size: 3em;
  }
  .page-index-hot-games__hero-description {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-index-hot-games__hero-section {
    padding: 60px 20px;
  }
  .page-index-hot-games__hero-title {
    font-size: 2.5em;
  }
  .page-index-hot-games__hero-description {
    font-size: 1em;
  }
  .page-index-hot-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-hot-games__button {
    width: 100%;
    max-width: 280px;
  }
  .page-index-hot-games__section-title {
    font-size: 2em;
  }
  .page-index-hot-games__section-intro {
    font-size: 0.95em;
  }
  .page-index-hot-games__game-grid,
  .page-index-hot-games__features-grid {
    grid-template-columns: 1fr;
  }
  /* Ensure images within content sections are responsive and not too small */
  .page-index-hot-games__game-card-image {
    height: 200px; /* Adjust height for mobile, still >= 200px */
  }
  .page-index-hot-games__game-card-image img {
    max-width: 100%; 
    height: auto; 
    min-width: 200px; /* Enforce minimum width for img tags */
    min-height: 200px; /* Enforce minimum height for img tags */
  }
  .page-index-hot-games__feature-item img {
    max-width: 100%; 
    height: auto; 
    min-width: 200px; /* Enforce minimum width for img tags */
    min-height: 200px; /* Enforce minimum height for img tags */
  }
  .page-index-hot-games__section--cta {
    padding: 50px 20px;
  }
  .page-index-hot-games__button--cta {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}

/* Ensure all images within .page-index-hot-games are at least 200x200px */
.page-index-hot-games img {
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
  object-fit: cover; /* Maintain aspect ratio and cover space */
}

/* Override specific image sizing for responsive behavior while respecting min-size */
@media (max-width: 768px) {
  .page-index-hot-games__game-card-image,
  .page-index-hot-games__game-card-image img {
    max-width: 100%;
    height: auto; /* Allow height to adjust proportionally */
    min-height: 200px; /* Ensure minimum height */
  }
  .page-index-hot-games__hero-image img {
    max-width: 100%;
    height: auto;
  }
}