/* style/blog-how-to-choose-best-happy8-games.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-blog-how-to-choose-best-happy8-games {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog-how-to-choose-best-happy8-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-blog-how-to-choose-best-happy8-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: #08160F;
}

.page-blog-how-to-choose-best-happy8-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

.page-blog-how-to-choose-best-happy8-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-blog-how-to-choose-best-happy8-games__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap with image for visual effect */
  z-index: 1;
}

.page-blog-how-to-choose-best-happy8-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog-how-to-choose-best-happy8-games__hero-description {
  font-size: 1.25rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-blog-how-to-choose-best-happy8-games__btn-primary,
.page-blog-how-to-choose-best-happy8-games__btn-secondary,
.page-blog-how-to-choose-best-happy8-games__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-blog-how-to-choose-best-happy8-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff; /* White text for contrast */
  border: none;
}

.page-blog-how-to-choose-best-happy8-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog-how-to-choose-best-happy8-games__btn-secondary {
  background: #11271B; /* Card BG */
  color: #57E38D; /* Glow color for text */
  border: 2px solid #2E7A4E; /* Border color */
  margin-left: 20px;
}

.page-blog-how-to-choose-best-happy8-games__btn-secondary:hover {
  background: #1E3A2A; /* Divider color for hover */
  color: #F2FFF6; /* Text Main for hover */
  transform: translateY(-2px);
}

.page-blog-how-to-choose-best-happy8-games__section-title {
  font-size: 2.5rem;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  font-weight: bold;
}

.page-blog-how-to-choose-best-happy8-games__text-block {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

/* Introduction Section */
.page-blog-how-to-choose-best-happy8-games__introduction-section {
  padding: 40px 0;
}

/* Criteria Section */
.page-blog-how-to-choose-best-happy8-games__criteria-section {
  padding: 40px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog-how-to-choose-best-happy8-games__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-how-to-choose-best-happy8-games__card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #F2FFF6; /* Text Main */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-blog-how-to-choose-best-happy8-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-blog-how-to-choose-best-happy8-games__card-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog-how-to-choose-best-happy8-games__card-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: justify;
}

/* Game Categories Section */
.page-blog-how-to-choose-best-happy8-games__game-categories-section {
  padding: 40px 0;
}

.page-blog-how-to-choose-best-happy8-games__category-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-blog-how-to-choose-best-happy8-games__category-title {
  font-size: 2rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog-how-to-choose-best-happy8-games__category-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-blog-how-to-choose-best-happy8-games__category-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog-how-to-choose-best-happy8-games__btn-link {
  background-color: transparent;
  color: #57E38D; /* Glow */
  border: 1px solid #57E38D;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-blog-how-to-choose-best-happy8-games__btn-link:hover {
  background-color: #57E38D;
  color: #08160F; /* Background color for hover text */
}

/* Tips Section */
.page-blog-how-to-choose-best-happy8-games__tips-section {
  padding: 40px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog-how-to-choose-best-happy8-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog-how-to-choose-best-happy8-games__tip-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog-how-to-choose-best-happy8-games__tip-title {
  font-size: 1.6rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog-how-to-choose-best-happy8-games__tip-description {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: justify;
}

/* FAQ Section */
.page-blog-how-to-choose-best-happy8-games__faq-section {
  padding: 40px 0 80px 0;
}

.page-blog-how-to-choose-best-happy8-games__faq-list {
  margin-top: 40px;
}

.page-blog-how-to-choose-best-happy8-games__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-blog-how-to-choose-best-happy8-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  background-color: #1E3A2A; /* Divider for question background */
  list-style: none;
}

.page-blog-how-to-choose-best-happy8-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-how-to-choose-best-happy8-games__faq-qtext {
  flex-grow: 1;
  color: #F2FFF6;
}

.page-blog-how-to-choose-best-happy8-games__faq-toggle {
  font-size: 1.8rem;
  font-weight: lighter;
  margin-left: 15px;
  color: #F2C14E; /* Gold */
}

.page-blog-how-to-choose-best-happy8-games__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: justify;
}

.page-blog-how-to-choose-best-happy8-games__faq-answer p {
  margin-top: 15px;
  color: #A7D9B8;
}

/* Conclusion Section */
.page-blog-how-to-choose-best-happy8-games__conclusion-section {
  padding: 60px 0;
  text-align: center;
  background-color: #08160F;
}

.page-blog-how-to-choose-best-happy8-games__cta-group {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-how-to-choose-best-happy8-games__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-blog-how-to-choose-best-happy8-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog-how-to-choose-best-happy8-games__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-blog-how-to-choose-best-happy8-games__hero-content {
    margin-top: -80px; /* Adjust overlap for mobile */
    padding: 20px 15px;
  }

  .page-blog-how-to-choose-best-happy8-games__main-title {
    font-size: 2rem;
  }

  .page-blog-how-to-choose-best-happy8-games__hero-description {
    font-size: 1rem;
  }

  .page-blog-how-to-choose-best-happy8-games__btn-primary,
  .page-blog-how-to-choose-best-happy8-games__btn-secondary,
  .page-blog-how-to-choose-best-happy8-games__btn-link,
  .page-blog-how-to-choose-best-happy8-games a[class*="button"],
  .page-blog-how-to-choose-best-happy8-games 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-left: 15px !important;
    padding-right: 15px !important;
    margin-left: 0 !important;
    margin-bottom: 15px;
  }

  .page-blog-how-to-choose-best-happy8-games__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog-how-to-choose-best-happy8-games__section-title {
    font-size: 1.8rem;
    padding-top: 40px;
  }

  .page-blog-how-to-choose-best-happy8-games__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-blog-how-to-choose-best-happy8-games__card,
  .page-blog-how-to-choose-best-happy8-games__category-card,
  .page-blog-how-to-choose-best-happy8-games__tip-item,
  .page-blog-how-to-choose-best-happy8-games__faq-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-how-to-choose-best-happy8-games__card-image,
  .page-blog-how-to-choose-best-happy8-games__category-image,
  .page-blog-how-to-choose-best-happy8-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog-how-to-choose-best-happy8-games__container,
  .page-blog-how-to-choose-best-happy8-games__introduction-section,
  .page-blog-how-to-choose-best-happy8-games__criteria-section,
  .page-blog-how-to-choose-best-happy8-games__game-categories-section,
  .page-blog-how-to-choose-best-happy8-games__tips-section,
  .page-blog-how-to-choose-best-happy8-games__faq-section,
  .page-blog-how-to-choose-best-happy8-games__conclusion-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog-how-to-choose-best-happy8-games__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-blog-how-to-choose-best-happy8-games__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-blog-how-to-choose-best-happy8-games__main-title {
    font-size: 1.8rem;
  }

  .page-blog-how-to-choose-best-happy8-games__section-title {
    font-size: 1.6rem;
  }
}

/* Ensure images maintain original colors */
.page-blog-how-to-choose-best-happy8-games img {
  filter: none; /* No CSS filters to change image color */
}

/* Contrast Fixes */
.page-blog-how-to-choose-best-happy8-games__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-blog-how-to-choose-best-happy8-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}