/* style/resources-how-to-choose-games.css */

/* Base styles for the page content */
.page-resources-how-to-choose-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches body background for consistency */
}

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

/* Hero Section */
.page-resources-how-to-choose-games__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #CC0000; /* Fallback */
}

.page-resources-how-to-choose-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources-how-to-choose-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-resources-how-to-choose-games__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-resources-how-to-choose-games__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-resources-how-to-choose-games__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-resources-how-to-choose-games__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* General Section Styling */
.page-resources-how-to-choose-games__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources-how-to-choose-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #CC0000;
  border-radius: 2px;
}

.page-resources-how-to-choose-games__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-resources-how-to-choose-games__introduction-section,
.page-resources-how-to-choose-games__mu9fun-standout-section,
.page-resources-how-to-choose-games__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Lighter dark background for contrast */
  color: #ffffff;
}

.page-resources-how-to-choose-games__key-factors-section,
.page-resources-how-to-choose-games__expert-tips-section,
.page-resources-how-to-choose-games__conclusion-section {
  padding: 80px 0;
  background-color: #121212;
  color: #ffffff;
}

/* Grid Layout */
.page-resources-how-to-choose-games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-how-to-choose-games__grid--2-col {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-resources-how-to-choose-games__grid--3-col {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Cards */
.page-resources-how-to-choose-games__card,
.page-resources-how-to-choose-games__tip-card,
.page-resources-how-to-choose-games__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-resources-how-to-choose-games__card:hover,
.page-resources-how-to-choose-games__tip-card:hover,
.page-resources-how-to-choose-games__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-how-to-choose-games__card-image,
.page-resources-how-to-choose-games__tip-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources-how-to-choose-games__card-title,
.page-resources-how-to-choose-games__tip-title,
.page-resources-how-to-choose-games__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources-how-to-choose-games__card-text,
.page-resources-how-to-choose-games__tip-text,
.page-resources-how-to-choose-games__feature-text {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources-how-to-choose-games__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-resources-how-to-choose-games__list li {
  margin-bottom: 8px;
}

/* Buttons */
.page-resources-how-to-choose-games__btn-primary,
.page-resources-how-to-choose-games__btn-secondary,
.page-resources-how-to-choose-games__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-resources-how-to-choose-games__btn-primary {
  background-color: #CC0000;
  color: #ffffff;
  border: 2px solid #CC0000;
}

.page-resources-how-to-choose-games__btn-primary:hover {
  background-color: #a00000;
  border-color: #a00000;
}

.page-resources-how-to-choose-games__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources-how-to-choose-games__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212;
}

.page-resources-how-to-choose-games__btn-link {
  background: none;
  border: none;
  color: #FFD700;
  text-decoration: underline;
  padding: 0;
  font-weight: normal;
}

.page-resources-how-to-choose-games__btn-link:hover {
  color: #CC0000;
}

.page-resources-how-to-choose-games__cta-bottom,
.page-resources-how-to-choose-games__cta-final {
  text-align: center;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* FAQ Section */
.page-resources-how-to-choose-games__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-how-to-choose-games__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-resources-how-to-choose-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: #CC0000;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-resources-how-to-choose-games__faq-question:hover {
  background-color: #a00000;
}

.page-resources-how-to-choose-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-how-to-choose-games__faq-item.active .page-resources-how-to-choose-games__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-how-to-choose-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-resources-how-to-choose-games__faq-item.active .page-resources-how-to-choose-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px 25px;
}

.page-resources-how-to-choose-games__faq-answer p {
  margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-how-to-choose-games__hero-title {
    font-size: 2.8em;
  }
  .page-resources-how-to-choose-games__section-title {
    font-size: 2em;
  }
  .page-resources-how-to-choose-games__grid--2-col {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  .page-resources-how-to-choose-games__grid--3-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

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

  .page-resources-how-to-choose-games__hero-section {
    min-height: 500px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

  .page-resources-how-to-choose-games__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-resources-how-to-choose-games__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-resources-how-to-choose-games__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-how-to-choose-games__btn-primary,
  .page-resources-how-to-choose-games__btn-secondary,
  .page-resources-how-to-choose-games a[class*="button"],
  .page-resources-how-to-choose-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;
    padding-right: 15px;
  }
  
  .page-resources-how-to-choose-games__cta-bottom,
  .page-resources-how-to-choose-games__cta-final {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-resources-how-to-choose-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-bottom: 10px;
  }

  .page-resources-how-to-choose-games__text-block {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-resources-how-to-choose-games__introduction-section,
  .page-resources-how-to-choose-games__key-factors-section,
  .page-resources-how-to-choose-games__mu9fun-standout-section,
  .page-resources-how-to-choose-games__expert-tips-section,
  .page-resources-how-to-choose-games__faq-section,
  .page-resources-how-to-choose-games__conclusion-section {
    padding: 50px 0;
  }

  .page-resources-how-to-choose-games__container {
    padding: 0 15px;
  }

  .page-resources-how-to-choose-games__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-resources-how-to-choose-games__grid--2-col,
  .page-resources-how-to-choose-games__grid--3-col {
    grid-template-columns: 1fr;
  }

  .page-resources-how-to-choose-games__card,
  .page-resources-how-to-choose-games__tip-card,
  .page-resources-how-to-choose-games__feature-item {
    padding: 20px;
  }

  .page-resources-how-to-choose-games__card-image,
  .page-resources-how-to-choose-games__tip-image {
    height: 200px;
  }

  .page-resources-how-to-choose-games__card-title,
  .page-resources-how-to-choose-games__tip-title,
  .page-resources-how-to-choose-games__feature-title {
    font-size: 1.3em;
  }

  .page-resources-how-to-choose-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-resources-how-to-choose-games__faq-answer {
    padding: 0 20px;
  }

  .page-resources-how-to-choose-games__faq-item.active .page-resources-how-to-choose-games__faq-answer {
    padding: 15px 20px;
  }
  
  /* Image responsive rules */
  .page-resources-how-to-choose-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-how-to-choose-games__section,
  .page-resources-how-to-choose-games__card,
  .page-resources-how-to-choose-games__container,
  .page-resources-how-to-choose-games__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-resources-how-to-choose-games__hero-title {
    font-size: 1.8em;
  }
  .page-resources-how-to-choose-games__section-title {
    font-size: 1.6em;
  }
  .page-resources-how-to-choose-games__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
}