/* style/resources-how-to-choose-99ok-games.css */
.page-resources-how-to-choose-99ok-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
}

.page-resources-how-to-choose-99ok-games__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources-how-to-choose-99ok-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

/* Hero Section */
.page-resources-how-to-choose-99ok-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  position: relative;
  overflow: hidden;
}

.page-resources-how-to-choose-99ok-games__hero-content {
  z-index: 1;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-resources-how-to-choose-99ok-games__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

.page-resources-how-to-choose-99ok-games__hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-how-to-choose-99ok-games__btn-primary,
.page-resources-how-to-choose-99ok-games__btn-secondary,
.page-resources-how-to-choose-99ok-games__btn-tertiary,
.page-resources-how-to-choose-99ok-games__btn-large {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-resources-how-to-choose-99ok-games__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-resources-how-to-choose-99ok-games__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-resources-how-to-choose-99ok-games__btn-tertiary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-resources-how-to-choose-99ok-games__btn-tertiary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-resources-how-to-choose-99ok-games__btn-large {
    padding: 18px 35px;
    font-size: 1.1em;
}

.page-resources-how-to-choose-99ok-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-resources-how-to-choose-99ok-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

/* General Section Styling */
.page-resources-how-to-choose-99ok-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-resources-how-to-choose-99ok-games__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit;
}

.page-resources-how-to-choose-99ok-games__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

/* Grid for Cards */
.page-resources-how-to-choose-99ok-games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-how-to-choose-99ok-games__card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-resources-how-to-choose-99ok-games__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-resources-how-to-choose-99ok-games__card-text {
  font-size: 1em;
  line-height: 1.7;
}

/* Game Categories */
.page-resources-how-to-choose-99ok-games__game-categories {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources-how-to-choose-99ok-games__category-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
}

.page-resources-how-to-choose-99ok-games__category-list {
  flex: 1;
  text-align: left;
}

.page-resources-how-to-choose-99ok-games__category-item {
  margin-bottom: 25px;
}

.page-resources-how-to-choose-99ok-games__category-item:last-child {
  margin-bottom: 0;
}

.page-resources-how-to-choose-99ok-games__category-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-resources-how-to-choose-99ok-games__category-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-resources-how-to-choose-99ok-games__category-title a:hover {
  text-decoration: underline;
}

.page-resources-how-to-choose-99ok-games__category-text {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Tips Grid */
.page-resources-how-to-choose-99ok-games__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-resources-how-to-choose-99ok-games__tip-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #26A9E0;
  color: #333333;
}

.page-resources-how-to-choose-99ok-games__tip-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-resources-how-to-choose-99ok-games__tip-text {
  font-size: 1em;
  line-height: 1.7;
}

.page-resources-how-to-choose-99ok-games__image-container {
  margin-top: 60px;
  text-align: center;
}

.page-resources-how-to-choose-99ok-games__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* List Styling */
.page-resources-how-to-choose-99ok-games__list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-resources-how-to-choose-99ok-games__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
  border-left: 4px solid #EA7C07; /* Highlight with login color */
}

.page-resources-how-to-choose-99ok-games__list-item strong {
  color: #ffffff;
}

/* CTA Banner */
.page-resources-how-to-choose-99ok-games__cta-banner {
  background-color: #ffffff; /* White background for contrast */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: #333333;
  position: relative;
  overflow: hidden;
}

.page-resources-how-to-choose-99ok-games__cta-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-resources-how-to-choose-99ok-games__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin-bottom: 20px;
}

.page-resources-how-to-choose-99ok-games__cta-image {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  min-width: 200px;
  min-height: 150px;
}

/* FAQ Section */
.page-resources-how-to-choose-99ok-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-resources-how-to-choose-99ok-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

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

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

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

.page-resources-how-to-choose-99ok-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  line-height: 1.7;
  background-color: #f9f9f9;
  color: #555555;
}

.page-resources-how-to-choose-99ok-games__faq-item.active .page-resources-how-to-choose-99ok-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px;
}

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

.page-resources-how-to-choose-99ok-games__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-resources-how-to-choose-99ok-games__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-resources-how-to-choose-99ok-games__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-how-to-choose-99ok-games__hero-title {
    font-size: 2.8em;
  }

  .page-resources-how-to-choose-99ok-games__section-title {
    font-size: 2.2em;
  }

  .page-resources-how-to-choose-99ok-games__game-categories {
    flex-direction: column;
  }

  .page-resources-how-to-choose-99ok-games__category-image {
    max-width: 100%;
    margin-bottom: 30px;
  }
}

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

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

  .page-resources-how-to-choose-99ok-games__hero-title {
    font-size: 2.2em;
  }

  .page-resources-how-to-choose-99ok-games__hero-description {
    font-size: 1em;
  }

  .page-resources-how-to-choose-99ok-games__hero-cta {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin: 0 auto;
  }

  .page-resources-how-to-choose-99ok-games__btn-primary,
  .page-resources-how-to-choose-99ok-games__btn-secondary,
  .page-resources-how-to-choose-99ok-games__btn-tertiary,
  .page-resources-how-to-choose-99ok-games__btn-large,
  .page-resources-how-to-choose-99ok-games a[class*="button"],
  .page-resources-how-to-choose-99ok-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-99ok-games__section {
    padding: 40px 0;
  }

  .page-resources-how-to-choose-99ok-games__section-title {
    font-size: 1.8em;
  }

  .page-resources-how-to-choose-99ok-games__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-resources-how-to-choose-99ok-games__grid,
  .page-resources-how-to-choose-99ok-games__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-how-to-choose-99ok-games__category-image {
    margin-bottom: 20px;
  }

  .page-resources-how-to-choose-99ok-games__category-title {
    font-size: 1.4em;
  }

  .page-resources-how-to-choose-99ok-games__list-item {
    font-size: 1em;
    padding: 15px;
  }

  .page-resources-how-to-choose-99ok-games__cta-banner {
    padding: 30px;
  }

  .page-resources-how-to-choose-99ok-games__cta-title {
    font-size: 1.8em;
  }

  .page-resources-how-to-choose-99ok-games__cta-description {
    font-size: 1em;
  }

  .page-resources-how-to-choose-99ok-games__cta-image {
    max-width: 250px;
  }

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

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

  .page-resources-how-to-choose-99ok-games__faq-item.active .page-resources-how-to-choose-99ok-games__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image adaptation */
  .page-resources-how-to-choose-99ok-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-how-to-choose-99ok-games__section,
  .page-resources-how-to-choose-99ok-games__card,
  .page-resources-how-to-choose-99ok-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure no horizontal scroll for main content area */
  .page-resources-how-to-choose-99ok-games {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-resources-how-to-choose-99ok-games__hero-title {
    font-size: 1.8em;
  }

  .page-resources-how-to-choose-99ok-games__section-title {
    font-size: 1.6em;
  }

  .page-resources-how-to-choose-99ok-games__card-title,
  .page-resources-how-to-choose-99ok-games__tip-title,
  .page-resources-how-to-choose-99ok-games__category-title {
    font-size: 1.2em;
  }
}