/* General styles for the page */
.page-resources-how-to-choose-j88-safe-platform {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-resources-how-to-choose-j88-safe-platform__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-resources-how-to-choose-j88-safe-platform__hero-section {
  padding-top: 0; /* Handled by shared.css body padding */
  padding-bottom: 80px;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-resources-how-to-choose-j88-safe-platform__hero-container {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-resources-how-to-choose-j88-safe-platform__hero-content {
  flex: 1;
  max-width: 600px;
}

.page-resources-how-to-choose-j88-safe-platform__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  font-weight: bold;
}

.page-resources-how-to-choose-j88-safe-platform__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-how-to-choose-j88-safe-platform__hero-buttons {
  display: flex;
  gap: 15px;
}

.page-resources-how-to-choose-j88-safe-platform__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.page-resources-how-to-choose-j88-safe-platform__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-resources-how-to-choose-j88-safe-platform__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-how-to-choose-j88-safe-platform__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-how-to-choose-j88-safe-platform__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Content Sections */
.page-resources-how-to-choose-j88-safe-platform__content-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Dark background from body */
  color: #ffffff;
}

.page-resources-how-to-choose-j88-safe-platform__content-section:nth-child(even) {
  background-color: #2a2a4a; /* Slightly lighter dark for contrast */
}

.page-resources-how-to-choose-j88-safe-platform__text-block {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-resources-how-to-choose-j88-safe-platform__text-block p {
  font-size: 1em;
  color: #f0f0f0;
}

.page-resources-how-to-choose-j88-safe-platform__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Dark Background specific */
.page-resources-how-to-choose-j88-safe-platform__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-resources-how-to-choose-j88-safe-platform__dark-section {
  background-color: #017439; /* Primary brand color for a strong section */
  color: #ffffff;
}

.page-resources-how-to-choose-j88-safe-platform__dark-section .page-resources-how-to-choose-j88-safe-platform__section-title,
.page-resources-how-to-choose-j88-safe-platform__dark-section .page-resources-how-to-choose-j88-safe-platform__sub-title {
  color: #ffffff;
}

/* Games Section */
.page-resources-how-to-choose-j88-safe-platform__games-section {
  padding: 60px 0;
  background-color: #1a1a2e;
}

.page-resources-how-to-choose-j88-safe-platform__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-how-to-choose-j88-safe-platform__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources-how-to-choose-j88-safe-platform__game-card:hover {
  transform: translateY(-5px);
}

.page-resources-how-to-choose-j88-safe-platform__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources-how-to-choose-j88-safe-platform__game-title {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  color: #ffffff;
  font-weight: bold;
}

.page-resources-how-to-choose-j88-safe-platform__game-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-how-to-choose-j88-safe-platform__game-title a:hover {
  color: #FFFF00; /* Yellow for hover */
}

.page-resources-how-to-choose-j88-safe-platform__game-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 20px 20px;
}

/* FAQ Section */
.page-resources-how-to-choose-j88-safe-platform__faq-section {
  padding: 60px 0;
  background-color: #2a2a4a;
  color: #ffffff;
}

.page-resources-how-to-choose-j88-safe-platform__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

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

.page-resources-how-to-choose-j88-safe-platform__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-resources-how-to-choose-j88-safe-platform__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-resources-how-to-choose-j88-safe-platform__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
  font-weight: bold;
}

.page-resources-how-to-choose-j88-safe-platform__faq-toggle {
  font-size: 1.8em;
  color: #FFFF00; /* Yellow for toggle icon */
  font-weight: bold;
  transition: transform 0.3s ease;
  user-select: none;
}

.page-resources-how-to-choose-j88-safe-platform__faq-item.active .page-resources-how-to-choose-j88-safe-platform__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes X */
}

.page-resources-how-to-choose-j88-safe-platform__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #cccccc;
}

.page-resources-how-to-choose-j88-safe-platform__faq-item.active .page-resources-how-to-choose-j88-safe-platform__faq-answer {
  max-height: 1000px !important; /* Ensure it expands fully */
  padding: 15px 25px 25px;
}

.page-resources-how-to-choose-j88-safe-platform__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #f0f0f0;
}