/* style/resources-how-to-choose-reputable-platform.css */

:root {
  --primary-color: #0056B3;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f1f3f5;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
}

.page-resources-how-to-choose-reputable-platform {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default to light text for dark body background */
  background-color: #000000; /* Assuming body background is black from shared.css */
}

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

/* Fixed Nav Bar Padding */
.page-resources-how-to-choose-reputable-platform__hero-banner {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
}

.page-resources-how-to-choose-reputable-platform__introduction,
.page-resources-how-to-choose-reputable-platform__promotions,
.page-resources-how-to-choose-reputable-platform__faq-section {
  padding-top: 60px;
}

.page-resources-how-to-choose-reputable-platform__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-resources-how-to-choose-reputable-platform__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-resources-how-to-choose-reputable-platform__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
}

.page-resources-how-to-choose-reputable-platform__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-resources-how-to-choose-reputable-platform__btn-primary:hover {
  background: #004499;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources-how-to-choose-reputable-platform__btn-secondary {
  background: var(--bg-white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources-how-to-choose-reputable-platform__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources-how-to-choose-reputable-platform__card {
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  color: var(--text-dark); /* Light background for card, dark text */
}

/* Color Contrast Classes */
.page-resources-how-to-choose-reputable-platform__dark-bg {
  background: #000000; /* Body background */
  color: var(--text-light); /* Deep dark background, light text */
}

.page-resources-how-to-choose-reputable-platform__light-bg {
  background: var(--bg-light);
  color: var(--text-dark); /* Light background, dark text */
}

.page-resources-how-to-choose-reputable-platform__hero-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 400px;
  background-image: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%); /* Example gradient */
  color: var(--text-light);
}

.page-resources-how-to-choose-reputable-platform__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-resources-how-to-choose-reputable-platform__subtitle {
  font-size: 22px;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Introduction Section */
.page-resources-how-to-choose-reputable-platform__introduction {
  padding: 80px 0;
}

.page-resources-how-to-choose-reputable-platform__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-resources-how-to-choose-reputable-platform__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
}

.page-resources-how-to-choose-reputable-platform__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources-how-to-choose-reputable-platform__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: block; /* Ensure it behaves as a block element */
}

/* Criteria Section */
.page-resources-how-to-choose-reputable-platform__criteria-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources-how-to-choose-reputable-platform__criteria-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-how-to-choose-reputable-platform__criteria-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 350px; /* Ensure consistent height for cards */
}

.page-resources-how-to-choose-reputable-platform__criteria-icon {
  width: 150px; /* Increased icon size */
  height: auto; /* Maintain aspect ratio */
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.page-resources-how-to-choose-reputable-platform__criteria-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources-how-to-choose-reputable-platform__criteria-item p {
  font-size: 16px;
  line-height: 1.7;
}

.page-resources-how-to-choose-reputable-platform__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

.page-resources-how-to-choose-reputable-platform__cta-bottom p {
  font-size: 20px;
  margin-bottom: 30px;
  color: inherit;
}

/* Promotions Section */
.page-resources-how-to-choose-reputable-platform__promotions {
  padding: 80px 0;
}

.page-resources-how-to-choose-reputable-platform__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.page-resources-how-to-choose-reputable-platform__promo-card {
  text-align: center;
}

.page-resources-how-to-choose-reputable-platform__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-how-to-choose-reputable-platform__promo-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-resources-how-to-choose-reputable-platform__promo-description {
  font-size: 16px;
  line-height: 1.7;
}

.page-resources-how-to-choose-reputable-platform__link-inline {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-how-to-choose-reputable-platform__link-inline:hover {
  color: #004499;
  text-decoration: underline;
}

/* Latest News Section */
.page-resources-how-to-choose-reputable-platform__latest-news {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: var(--text-light);
}

.page-resources-how-to-choose-reputable-platform__news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-how-to-choose-reputable-platform__news-item {
  text-align: left;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push date to bottom */
}

.page-resources-how-to-choose-reputable-platform__news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-how-to-choose-reputable-platform__news-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-resources-how-to-choose-reputable-platform__news-title a {
  color: var(--primary-color); /* Link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-how-to-choose-reputable-platform__news-title a:hover {
  color: #004499;
  text-decoration: underline;
}

.page-resources-how-to-choose-reputable-platform__news-summary {
  font-size: 15px;
  color: var(--text-dark); /* Dark text on white card */
  margin-bottom: 15px;
  flex-grow: 1; /* Allow summary to take up space */
}

.page-resources-how-to-choose-reputable-platform__news-date {
  font-size: 14px;
  color: #666666;
  display: block;
  text-align: right;
}

/* FAQ Section */
.page-resources-how-to-choose-reputable-platform__faq-section {
  padding: 80px 0;
}

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

.page-resources-how-to-choose-reputable-platform__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources-how-to-choose-reputable-platform__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-resources-how-to-choose-reputable-platform__faq-item.active .page-resources-how-to-choose-reputable-platform__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-resources-how-to-choose-reputable-platform__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-resources-how-to-choose-reputable-platform__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-how-to-choose-reputable-platform__faq-question:active {
  background: #eeeeee;
}

.page-resources-how-to-choose-reputable-platform__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: inherit;
}

.page-resources-how-to-choose-reputable-platform__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-how-to-choose-reputable-platform__faq-item.active .page-resources-how-to-choose-reputable-platform__faq-toggle {
  color: #333;
  transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources-how-to-choose-reputable-platform__main-title {
    font-size: 40px;
  }

  .page-resources-how-to-choose-reputable-platform__subtitle {
    font-size: 20px;
  }

  .page-resources-how-to-choose-reputable-platform__section-title {
    font-size: 30px;
  }

  .page-resources-how-to-choose-reputable-platform__content-grid {
    grid-template-columns: 1fr;
  }

  .page-resources-how-to-choose-reputable-platform__image-wrapper {
    order: -1; /* Image first on mobile */
  }
}

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

  .page-resources-how-to-choose-reputable-platform__hero-banner {
    padding-top: 140px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-how-to-choose-reputable-platform__main-title {
    font-size: 32px;
  }

  .page-resources-how-to-choose-reputable-platform__subtitle {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-resources-how-to-choose-reputable-platform__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-resources-how-to-choose-reputable-platform__section-title {
    font-size: 26px;
  }

  .page-resources-how-to-choose-reputable-platform__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-resources-how-to-choose-reputable-platform__introduction,
  .page-resources-how-to-choose-reputable-platform__criteria-section,
  .page-resources-how-to-choose-reputable-platform__promotions,
  .page-resources-how-to-choose-reputable-platform__latest-news,
  .page-resources-how-to-choose-reputable-platform__faq-section {
    padding: 40px 0;
  }

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

  .page-resources-how-to-choose-reputable-platform__text-block p {
    font-size: 16px;
  }

  .page-resources-how-to-choose-reputable-platform__criteria-list,
  .page-resources-how-to-choose-reputable-platform__promo-grid,
  .page-resources-how-to-choose-reputable-platform__news-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-how-to-choose-reputable-platform__criteria-item,
  .page-resources-how-to-choose-reputable-platform__promo-card,
  .page-resources-how-to-choose-reputable-platform__news-item {
    padding: 20px;
  }

  .page-resources-how-to-choose-reputable-platform__criteria-icon {
    width: 120px;
  }

  .page-resources-how-to-choose-reputable-platform__criteria-title {
    font-size: 20px;
  }

  .page-resources-how-to-choose-reputable-platform__promo-image,
  .page-resources-how-to-choose-reputable-platform__news-image {
    height: 150px;
  }

  .page-resources-how-to-choose-reputable-platform__promo-title,
  .page-resources-how-to-choose-reputable-platform__news-title {
    font-size: 18px;
  }

  .page-resources-how-to-choose-reputable-platform__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources-how-to-choose-reputable-platform__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources-how-to-choose-reputable-platform__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-resources-how-to-choose-reputable-platform__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources-how-to-choose-reputable-platform__faq-item.active .page-resources-how-to-choose-reputable-platform__faq-answer {
    padding: 15px !important;
  }
  
  /* Mobile image forced adaptation */
  .page-resources-how-to-choose-reputable-platform img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources-how-to-choose-reputable-platform__section,
  .page-resources-how-to-choose-reputable-platform__card,
  .page-resources-how-to-choose-reputable-platform__container,
  .page-resources-how-to-choose-reputable-platform__hero-banner,
  .page-resources-how-to-choose-reputable-platform__introduction,
  .page-resources-how-to-choose-reputable-platform__criteria-section,
  .page-resources-how-to-choose-reputable-platform__promotions,
  .page-resources-how-to-choose-reputable-platform__latest-news,
  .page-resources-how-to-choose-reputable-platform__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}