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

.page-resources-how-to-choose-reliable-platform {
  color: #ffffff; /* Body background is dark (#121212), so text should be light */
  background-color: transparent;
  padding-top: var(--header-offset, 120px); /* Apply padding-top to the main content wrapper */
}

.page-resources-how-to-choose-reliable-platform__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  padding-top: 0; /* Handled by main wrapper */
}

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

.page-resources-how-to-choose-reliable-platform__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

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

.page-resources-how-to-choose-reliable-platform__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

.page-resources-how-to-choose-reliable-platform__subtitle {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-how-to-choose-reliable-platform__btn-primary,
.page-resources-how-to-choose-reliable-platform__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-how-to-choose-reliable-platform__btn-primary {
  background-color: #FFD700;
  color: #121212; /* Dark text for golden background for contrast */
  border: 2px solid #FFD700;
}

.page-resources-how-to-choose-reliable-platform__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

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

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

.page-resources-how-to-choose-reliable-platform__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-resources-how-to-choose-reliable-platform__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Dark background sections */
.page-resources-how-to-choose-reliable-platform__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast with body #121212 */
  color: #ffffff;
}

.page-resources-how-to-choose-reliable-platform__introduction-section,
.page-resources-how-to-choose-reliable-platform__why-choose-us-section,
.page-resources-how-to-choose-reliable-platform__conclusion-section {
  padding: 60px 0;
}

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

.page-resources-how-to-choose-reliable-platform__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards have equal height */
}

.page-resources-how-to-choose-reliable-platform__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-how-to-choose-reliable-platform__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-resources-how-to-choose-reliable-platform__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources-how-to-choose-reliable-platform__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: #e0e0e0;
  flex-grow: 1; /* Allow text to grow and push buttons to bottom */
}

.page-resources-how-to-choose-reliable-platform__feature-list,
.page-resources-how-to-choose-reliable-platform__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-resources-how-to-choose-reliable-platform__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid #FFD700;
  border-radius: 5px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-resources-how-to-choose-reliable-platform__list-item strong {
  color: #FFD700;
}

.page-resources-how-to-choose-reliable-platform__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-how-to-choose-reliable-platform__video-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources-how-to-choose-reliable-platform__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px; /* Max width for video */
  margin: 40px auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-resources-how-to-choose-reliable-platform__video {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-resources-how-to-choose-reliable-platform__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 10;
}

.page-resources-how-to-choose-reliable-platform__faq-section {
  padding: 60px 0;
}

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

.page-resources-how-to-choose-reliable-platform__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources-how-to-choose-reliable-platform__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: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

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

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

.page-resources-how-to-choose-reliable-platform__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;
  color: #e0e0e0;
}

.page-resources-how-to-choose-reliable-platform__faq-item.active .page-resources-how-to-choose-reliable-platform__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-how-to-choose-reliable-platform__main-title {
    font-size: 3em;
  }
  .page-resources-how-to-choose-reliable-platform__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-how-to-choose-reliable-platform {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-resources-how-to-choose-reliable-platform__hero-section {
    height: 500px;
  }

  .page-resources-how-to-choose-reliable-platform__main-title {
    font-size: 2.2em;
  }

  .page-resources-how-to-choose-reliable-platform__subtitle {
    font-size: 1em;
  }

  .page-resources-how-to-choose-reliable-platform__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-resources-how-to-choose-reliable-platform__container {
    padding: 20px 15px;
  }

  .page-resources-how-to-choose-reliable-platform__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-how-to-choose-reliable-platform__card {
    padding: 20px;
  }

  .page-resources-how-to-choose-reliable-platform__card-image {
    height: 200px;
  }

  .page-resources-how-to-choose-reliable-platform__card-title {
    font-size: 1.3em;
  }

  .page-resources-how-to-choose-reliable-platform__list-item {
    padding: 15px;
    font-size: 1em;
  }

  .page-resources-how-to-choose-reliable-platform__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-resources-how-to-choose-reliable-platform__btn-primary,
  .page-resources-how-to-choose-reliable-platform__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 5px 0 !important;
  }

  /* Image responsiveness */
  .page-resources-how-to-choose-reliable-platform img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsiveness */
  .page-resources-how-to-choose-reliable-platform video,
  .page-resources-how-to-choose-reliable-platform__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video container responsiveness */
  .page-resources-how-to-choose-reliable-platform__video-section,
  .page-resources-how-to-choose-reliable-platform__video-container,
  .page-resources-how-to-choose-reliable-platform__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Ensure content sections have padding and max-width */
  .page-resources-how-to-choose-reliable-platform__introduction-section,
  .page-resources-how-to-choose-reliable-platform__criteria-section,
  .page-resources-how-to-choose-reliable-platform__why-choose-us-section,
  .page-resources-how-to-choose-reliable-platform__registration-section,
  .page-resources-how-to-choose-reliable-platform__faq-section,
  .page-resources-how-to-choose-reliable-platform__conclusion-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Specific padding for video section in mobile */
  .page-resources-how-to-choose-reliable-platform__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset to video section if it's the first element */
  }

  .page-resources-how-to-choose-reliable-platform__faq-question,
  .page-resources-how-to-choose-reliable-platform__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* General image styling for content area to prevent small icons */
.page-resources-how-to-choose-reliable-platform img:not(.page-resources-how-to-choose-reliable-platform__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure contrast for text on specific brand colors if used as background */
.page-resources-how-to-choose-reliable-platform__dark-section {
  background: #8B0000;
  color: #ffffff;
}

.page-resources-how-to-choose-reliable-platform__light-section {
  background: #FFD700;
  color: #121212;
}

/* Contrast fix for any unforeseen issues */
.page-resources-how-to-choose-reliable-platform__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}