.page-resources-game-types-features {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background: #FFFFFF; /* Body background */
}

.page-resources-game-types-features__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-resources-game-types-features__section {
  padding: 60px 0;
}

.page-resources-game-types-features__section:nth-of-type(even) {
  background-color: #f9f9f9;
}

.page-resources-game-types-features__section-title {
  font-size: 32px;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-game-types-features__text-block {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* HERO Section Styles */
.page-resources-game-types-features__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #017439, #ffffff);
}

.page-resources-game-types-features__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.page-resources-game-types-features__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-resources-game-types-features__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-game-types-features__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources-game-types-features__hero-title {
  font-size: 48px;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-game-types-features__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-resources-game-types-features__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-game-types-features__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-game-types-features__btn-register {
  background: #C30808; /* Custom Register color */
  color: #FFFFFF; /* Prioritize white for contrast */
}

.page-resources-game-types-features__btn-register:hover {
  background: #a30606;
  transform: translateY(-2px);
}

.page-resources-game-types-features__btn-login {
  background: #C30808; /* Custom Login color */
  color: #FFFFFF; /* Prioritize white for contrast */
  border: 2px solid #FFFFFF;
}

.page-resources-game-types-features__btn-login:hover {
  background: #a30606;
  transform: translateY(-2px);
  border-color: #f0f0f0;
}

.page-resources-game-types-features__btn-primary {
  background: #017439;
  color: #FFFFFF;
}

.page-resources-game-types-features__btn-primary:hover {
  background: #005a2d;
  transform: translateY(-2px);
}

.page-resources-game-types-features__btn-secondary {
  background: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-resources-game-types-features__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Game Types Grid */
.page-resources-game-types-features__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-game-types-features__game-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-resources-game-types-features__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources-game-types-features__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.page-resources-game-types-features__game-card-title {
  font-size: 24px;
  color: #017439;
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-resources-game-types-features__game-card p {
  font-size: 15px;
  padding: 0 20px 15px;
  line-height: 1.7;
  text-align: justify;
  flex-grow: 1;
}

/* USP Section */
.page-resources-game-types-features__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-game-types-features__feature-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  color: #333333;
}

.page-resources-game-types-features__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources-game-types-features__feature-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.page-resources-game-types-features__feature-card-title {
  font-size: 22px;
  color: #017439;
  margin: 0 20px 10px;
  font-weight: bold;
}

.page-resources-game-types-features__feature-card p {
  font-size: 15px;
  padding: 0 20px;
  line-height: 1.7;
  text-align: justify;
  flex-grow: 1;
}

.page-resources-game-types-features__dark-bg {
  background: #017439;
  color: #ffffff;
}

.page-resources-game-types-features__dark-bg .page-resources-game-types-features__feature-card-title {
  color: #FFFFFF;
}

.page-resources-game-types-features__dark-bg .page-resources-game-types-features__text-block {
  color: #f0f0f0;
}

/* Call to Action Section */
.page-resources-game-types-features__call-to-action .page-resources-game-types-features__container {
  background: #017439;
  color: #ffffff;
  text-align: center;
  border-radius: 12px;
  padding: 50px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-game-types-features__call-to-action .page-resources-game-types-features__section-title {
  color: #FFFFFF;
  margin-bottom: 25px;
}

.page-resources-game-types-features__call-to-action .page-resources-game-types-features__text-block {
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-resources-game-types-features {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-resources-game-types-features__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-resources-game-types-features__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-resources-game-types-features__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-resources-game-types-features__hero-image img {
    border-radius: 4px;
  }
  
  .page-resources-game-types-features__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-game-types-features__cta-button,
  .page-resources-game-types-features__btn-primary,
  .page-resources-game-types-features__btn-secondary,
  .page-resources-game-types-features a[class*="button"],
  .page-resources-game-types-features a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-resources-game-types-features__hero-cta-buttons .page-resources-game-types-features__cta-button {
    margin-left: auto;
    margin-right: auto;
  }

  .page-resources-game-types-features__section {
    padding: 40px 0;
  }

  .page-resources-game-types-features__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-game-types-features__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-resources-game-types-features__game-grid,
  .page-resources-game-types-features__feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-resources-game-types-features__game-card img {
    height: 200px;
  }

  .page-resources-game-types-features__feature-card img {
    
  }

  /* Ensure all images are responsive and do not cause overflow */
  .page-resources-game-types-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources-game-types-features__call-to-action .page-resources-game-types-features__container {
    padding: 40px 20px;
  }
}