.page-index-latest-games {
  color: #333333; /* Default text color for light background */
}

.page-index-latest-games__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

.page-index-latest-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text contrast */
}

.page-index-latest-games__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1;
}

.page-index-latest-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-index-latest-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

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

.page-index-latest-games__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.page-index-latest-games__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index-latest-games__button--primary:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-index-latest-games__button--secondary {
  background-color: transparent;
  color: #FFFFFF; /* Register button color */
  border: 2px solid #FFFFFF;
}

.page-index-latest-games__button--secondary:hover {
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-index-latest-games__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
}

.page-index-latest-games__section-intro {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.page-index-latest-games__featured-games-section,
.page-index-latest-games__why-choose-section,
.page-index-latest-games__game-categories-section,
.page-index-latest-games__bonuses-section,
.page-index-latest-games__getting-started-section,
.page-index-latest-games__responsible-gaming-section,
.page-index-latest-games__faq-section,
.page-index-latest-games__cta-section {
  padding: 60px 0;
}

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

.page-index-latest-games__game-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-latest-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index-latest-games__game-title {
  font-size: 1.5em;
  color: #000000;
  margin: 10px 15px;
  height: 3em; /* Ensure consistent title height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-index-latest-games__game-description {
  font-size: 0.95em;
  color: #555555;
  margin: 0 15px 20px;
  line-height: 1.5;
  height: 6em; /* Consistent description height */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-index-latest-games__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

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

.page-index-latest-games__feature-item {
  background-color: #F8F8F8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-index-latest-games__feature-icon {
  width: 200px; /* Min image size 200px */
  height: 150px; /* Min image size 200px */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index-latest-games__feature-heading {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index-latest-games__feature-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-index-latest-games__cta-center {
  text-align: center;
  margin-top: 50px;
}

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

.page-index-latest-games__category-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index-latest-games__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-index-latest-games__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index-latest-games__category-title {
  font-size: 1.4em;
  color: #000000;
  margin: 10px 15px;
}

.page-index-latest-games__category-description {
  font-size: 0.9em;
  color: #555555;
  margin: 0 15px 20px;
  line-height: 1.5;
  flex-grow: 1;
}

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

.page-index-latest-games__bonus-card {
  background-color: #F8F8F8;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-latest-games__bonus-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index-latest-games__bonus-title {
  font-size: 1.6em;
  color: #000000;
  margin: 10px 15px;
}

.page-index-latest-games__bonus-description {
  font-size: 1em;
  color: #555555;
  margin: 0 15px 20px;
  line-height: 1.6;
}

.page-index-latest-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  counter-reset: step-counter;
}

.page-index-latest-games__step-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-latest-games__step-number {
  counter-increment: step-counter;
  font-size: 2.5em;
  font-weight: bold;
  color: #FCBC45;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.page-index-latest-games__step-number::before {
  content: counter(step-counter);
}

.page-index-latest-games__step-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index-latest-games__step-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-index-latest-games__responsible-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-index-latest-games__responsible-image {
  flex: 1 1 400px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-index-latest-games__responsible-text {
  flex: 2 1 500px;
  font-size: 1.1em;
  color: #555555;
  line-height: 1.7;
}

.page-index-latest-games__responsible-text p {
  margin-bottom: 20px;
}

.page-index-latest-games__responsible-text a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-index-latest-games__responsible-text a:hover {
  text-decoration: underline;
}

.page-index-latest-games__faq-list {
  margin-top: 40px;
}

.page-index-latest-games__faq-item {
  background-color: #F8F8F8;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-index-latest-games__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-index-latest-games__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.page-index-latest-games__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-index-latest-games__faq-answer {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding-top: 0;
}

.page-index-latest-games__faq-answer.active {
  max-height: 200px; /* Adjust as needed for content */
  padding-top: 10px;
}

.page-index-latest-games__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  margin-top: 60px;
}

.page-index-latest-games__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-index-latest-games__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
  color: #F0F0F0;
}

.page-index-latest-games__button--large {
  padding: 15px 40px;
  font-size: 1.3em;
  border-width: 3px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-latest-games__hero-title {
    font-size: 2.8em;
  }
  .page-index-latest-games__section-title {
    font-size: 2.2em;
  }
  .page-index-latest-games__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-index-latest-games {
    padding-top: var(--header-offset, 120px); /* Ensure mobile padding is also applied */
  }
  .page-index-latest-games__hero-content {
    padding: 15px;
  }
  .page-index-latest-games__hero-title {
    font-size: 2em;
  }
  .page-index-latest-games__hero-description {
    font-size: 1em;
  }
  .page-index-latest-games__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-latest-games__button {
    width: 100%;
    max-width: 250px;
  }
  .page-index-latest-games__section-title {
    font-size: 1.8em;
  }
  .page-index-latest-games__section-intro {
    font-size: 0.95em;
  }
  .page-index-latest-games__game-image, .page-index-latest-games__bonus-image {
    height: 180px;
  }
  .page-index-latest-games__feature-icon {
    width: 200px; 
    height: 150px; 
  }
  .page-index-latest-games__responsible-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-index-latest-games__responsible-image {
    flex: none;
    width: 100%;
  }
  .page-index-latest-games__cta-title {
    font-size: 2em;
  }
  .page-index-latest-games__cta-description {
    font-size: 1em;
  }
  /* Mobile content area image constraint */
  .page-index-latest-games img {
    max-width: 100%;
    height: auto;
  }
  .page-index-latest-games__game-title, .page-index-latest-games__bonus-title, .page-index-latest-games__category-title, .page-index-latest-games__feature-heading, .page-index-latest-games__step-title {
    font-size: 1.3em;
  }
  .page-index-latest-games__faq-question {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-index-latest-games__hero-title {
    font-size: 1.8em;
  }
  .page-index-latest-games__hero-description {
    font-size: 0.9em;
  }
  .page-index-latest-games__button--large {
    font-size: 1.1em;
    padding: 12px 25px;
  }
  .page-index-latest-games__game-image, .page-index-latest-games__bonus-image {
    height: 150px;
  }
  .page-index-latest-games__feature-icon {
    width: 200px; 
    height: 150px; 
  }
  .page-index-latest-games__game-title, .page-index-latest-games__bonus-title, .page-index-latest-games__category-title, .page-index-latest-games__feature-heading, .page-index-latest-games__step-title {
    font-size: 1.2em;
  }
  .page-index-latest-games__section-title {
    font-size: 1.6em;
  }
  .page-index-latest-games__cta-title {
    font-size: 1.8em;
  }
}