/* style/resources-how-to-choose-reliable-platform.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-color: #C30808;
  --login-button-color: #C30808;
  --text-on-dark-bg: #FFFFFF;
  --text-on-light-bg: #333333;
  --register-login-font-color: #FFFF00;
}

.page-resources-how-to-choose-reliable-platform {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark-bg); /* Assuming --dark-bg from shared.css is dark */
  background-color: var(--dark-bg); /* Inherit from shared.css */
}

.page-resources-how-to-choose-reliable-platform__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.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);
  z-index: 2;
}

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

.page-resources-how-to-choose-reliable-platform__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-how-to-choose-reliable-platform__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-resources-how-to-choose-reliable-platform__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--dark-bg); /* Ensure content background is consistent with body */
  color: var(--text-on-dark-bg);
}

.page-resources-how-to-choose-reliable-platform__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-resources-how-to-choose-reliable-platform__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-on-dark-bg);
}

.page-resources-how-to-choose-reliable-platform__highlight {
  color: var(--primary-color);
  font-weight: bold;
}

.page-resources-how-to-choose-reliable-platform__criteria-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: rgba(255, 255, 255, 0.08); /* Light transparent background for cards on dark body */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-on-dark-bg);
  display: flex;
  flex-direction: column;
}

.page-resources-how-to-choose-reliable-platform__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px 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;
}

.page-resources-how-to-choose-reliable-platform__card-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources-how-to-choose-reliable-platform__card-text {
  font-size: 1em;
  color: var(--text-on-dark-bg);
  flex-grow: 1;
}

.page-resources-how-to-choose-reliable-platform__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-top: 15px;
  color: var(--text-on-dark-bg);
}

.page-resources-how-to-choose-reliable-platform__list li {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.page-resources-how-to-choose-reliable-platform__list-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-how-to-choose-reliable-platform__list-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-resources-how-to-choose-reliable-platform__list-check {
  list-style-type: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-resources-how-to-choose-reliable-platform__list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-on-dark-bg);
}

.page-resources-how-to-choose-reliable-platform__list-check li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2em;
}

.page-resources-how-to-choose-reliable-platform__faq-container {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.08); /* Light transparent background for FAQ on dark body */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-how-to-choose-reliable-platform__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.page-resources-how-to-choose-reliable-platform__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-resources-how-to-choose-reliable-platform__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 15px 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2em;
  transition: color 0.3s ease;
}

.page-resources-how-to-choose-reliable-platform__faq-question:hover {
  color: var(--secondary-color);
}

.page-resources-how-to-choose-reliable-platform__faq-title {
  margin: 0;
  color: inherit; /* Inherit color from parent question */
}

.page-resources-how-to-choose-reliable-platform__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transform: rotate(0deg);
  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); /* Change to '−' visual */
}

.page-resources-how-to-choose-reliable-platform__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-on-dark-bg);
}

.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 show content */
  padding: 15px;
}

.page-resources-how-to-choose-reliable-platform__faq-text {
  margin-top: 10px;
  font-size: 1em;
  color: var(--text-on-dark-bg);
}

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

/* Buttons */
.page-resources-how-to-choose-reliable-platform__btn-primary {
  display: inline-block;
  background-color: var(--register-button-color); /* Custom color for register/login */
  color: var(--register-login-font-color); /* Custom font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-how-to-choose-reliable-platform__btn-primary:hover {
  background-color: #A30606; /* Slightly darker red on hover */
  transform: translateY(-3px);
  color: var(--secondary-color);
}

/* All images responsive base styles */
.page-resources-how-to-choose-reliable-platform img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All video responsive base styles */
.page-resources-how-to-choose-reliable-platform video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* All video container responsive base styles */
.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 {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* All buttons responsive base styles */
.page-resources-how-to-choose-reliable-platform__btn-primary,
.page-resources-how-to-choose-reliable-platform a[class*="button"],
.page-resources-how-to-choose-reliable-platform a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-how-to-choose-reliable-platform__cta-buttons,
.page-resources-how-to-choose-reliable-platform__button-group,
.page-resources-how-to-choose-reliable-platform__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-how-to-choose-reliable-platform__hero-title {
    font-size: 2.8em;
  }
  .page-resources-how-to-choose-reliable-platform__hero-description {
    font-size: 1.2em;
  }
  .page-resources-how-to-choose-reliable-platform__section-title {
    font-size: 2em;
  }
  .page-resources-how-to-choose-reliable-platform__card-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources-how-to-choose-reliable-platform__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
  }
  .page-resources-how-to-choose-reliable-platform__hero-title {
    font-size: 2em;
  }
  .page-resources-how-to-choose-reliable-platform__hero-description {
    font-size: 1em;
  }
  .page-resources-how-to-choose-reliable-platform__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources-how-to-choose-reliable-platform__content-area {
    padding: 30px 15px;
  }
  .page-resources-how-to-choose-reliable-platform__section-title {
    font-size: 1.8em;
  }
  .page-resources-how-to-choose-reliable-platform__paragraph {
    font-size: 1em;
  }
  .page-resources-how-to-choose-reliable-platform__criteria-grid {
    grid-template-columns: 1fr;
  }
  .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__faq-question {
    font-size: 1.1em;
  }

  /* Mobile responsive for images */
  .page-resources-how-to-choose-reliable-platform img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources-how-to-choose-reliable-platform__section,
  .page-resources-how-to-choose-reliable-platform__card,
  .page-resources-how-to-choose-reliable-platform__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Mobile responsive for videos */
  .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;
  }
  .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;
  }
  .page-resources-how-to-choose-reliable-platform__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources-how-to-choose-reliable-platform__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile responsive for buttons */
  .page-resources-how-to-choose-reliable-platform__btn-primary,
  .page-resources-how-to-choose-reliable-platform a[class*="button"],
  .page-resources-how-to-choose-reliable-platform 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-reliable-platform__cta-buttons,
  .page-resources-how-to-choose-reliable-platform__button-group,
  .page-resources-how-to-choose-reliable-platform__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-resources-how-to-choose-reliable-platform__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}