.page-resources-payment-methods-review {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF;
}

.page-resources-payment-methods-review__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-resources-payment-methods-review__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-resources-payment-methods-review__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFF00; /* Custom color for hero title */
}

.page-resources-payment-methods-review__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Titles */
.page-resources-payment-methods-review__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-payment-methods-review__dark-bg .page-resources-payment-methods-review__section-title {
  color: #ffffff;
}

.page-resources-payment-methods-review__subsection-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-resources-payment-methods-review__dark-bg .page-resources-payment-methods-review__subsection-title {
  color: #ffffff;
}

/* Text Blocks */
.page-resources-payment-methods-review__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-resources-payment-methods-review__dark-bg .page-resources-payment-methods-review__text-block {
  color: #f0f0f0;
}

.page-resources-payment-methods-review__text-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-resources-payment-methods-review__dark-bg .page-resources-payment-methods-review__text-link {
  color: #FFFF00;
}

/* Images */
.page-resources-payment-methods-review__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-resources-payment-methods-review__image[width="800"][height="450"] { /* Specific image sizing for content */
  width: 800px;
  height: 450px;
}

/* Buttons */
.page-resources-payment-methods-review__btn-primary,
.page-resources-payment-methods-review__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
}

.page-resources-payment-methods-review__btn-primary {
  background-color: #C30808; /* Custom color for primary button (register/login) */
  color: #FFFF00; /* Custom font color for primary button */
  border: 2px solid #C30808;
  margin: 10px;
}

.page-resources-payment-methods-review__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-resources-payment-methods-review__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  margin: 10px;
}

.page-resources-payment-methods-review__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
}

.page-resources-payment-methods-review__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Sections */
.page-resources-payment-methods-review__introduction,
.page-resources-payment-methods-review__payment-details,
.page-resources-payment-methods-review__security-section,
.page-resources-payment-methods-review__conclusion {
  padding: 60px 0;
}

.page-resources-payment-methods-review__withdrawal-process,
.page-resources-payment-methods-review__faq-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

/* Grid for payment methods */
.page-resources-payment-methods-review__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Cards */
.page-resources-payment-methods-review__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0; /* Added for contrast */
}

.page-resources-payment-methods-review__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources-payment-methods-review__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-resources-payment-methods-review__card-image[width="600"][height="400"] { /* Specific image sizing for cards */
  width: 600px;
  height: 400px;
}

.page-resources-payment-methods-review__card-title {
  font-size: 1.7em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-payment-methods-review__card-subtitle {
  font-size: 1.3em;
  color: #017439;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-resources-payment-methods-review__card-text {
  font-size: 1em;
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-resources-payment-methods-review__ordered-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1em;
}

.page-resources-payment-methods-review__ordered-list li {
  margin-bottom: 8px;
}

/* FAQ Section */
.page-resources-payment-methods-review__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-payment-methods-review__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources-payment-methods-review__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-resources-payment-methods-review__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-payment-methods-review__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-payment-methods-review__faq-item.active .page-resources-payment-methods-review__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-payment-methods-review__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-resources-payment-methods-review__faq-item.active .page-resources-payment-methods-review__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

.page-resources-payment-methods-review__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-payment-methods-review__hero-title {
    font-size: 2.8em;
  }

  .page-resources-payment-methods-review__section-title {
    font-size: 2em;
  }

  .page-resources-payment-methods-review__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources-payment-methods-review__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-resources-payment-methods-review__hero-title {
    font-size: 2.2em;
  }

  .page-resources-payment-methods-review__hero-description {
    font-size: 1em;
  }

  .page-resources-payment-methods-review__section-title {
    font-size: 1.8em;
  }

  .page-resources-payment-methods-review__subsection-title {
    font-size: 1.5em;
  }

  .page-resources-payment-methods-review__text-block,
  .page-resources-payment-methods-review__card-text,
  .page-resources-payment-methods-review__ordered-list li,
  .page-resources-payment-methods-review__faq-answer p {
    font-size: 15px;
  }

  .page-resources-payment-methods-review__btn-primary,
  .page-resources-payment-methods-review__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0;
  }

  .page-resources-payment-methods-review__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-resources-payment-methods-review__grid {
    grid-template-columns: 1fr;
  }

  .page-resources-payment-methods-review__container {
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .page-resources-payment-methods-review img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Allow smaller images on mobile if needed, but still >=200px by content policy */
    min-height: unset !important;
  }

  .page-resources-payment-methods-review__card-image[width="600"][height="400"],
  .page-resources-payment-methods-review__image[width="800"][height="450"] {
    width: 100% !important;
    height: auto !important;
  }

  .page-resources-payment-methods-review__introduction,
  .page-resources-payment-methods-review__payment-details,
  .page-resources-payment-methods-review__security-section,
  .page-resources-payment-methods-review__conclusion,
  .page-resources-payment-methods-review__withdrawal-process,
  .page-resources-payment-methods-review__faq-section {
    padding: 40px 0;
  }

  .page-resources-payment-methods-review__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-resources-payment-methods-review__faq-answer {
    padding: 0 20px;
  }

  .page-resources-payment-methods-review__faq-item.active .page-resources-payment-methods-review__faq-answer {
    padding: 10px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources-payment-methods-review__hero-title {
    font-size: 1.8em;
  }

  .page-resources-payment-methods-review__section-title {
    font-size: 1.5em;
  }

  .page-resources-payment-methods-review__faq-question {
    font-size: 1em;
  }
}

/* Color Contrast Fixes - Ensure WCAG AA */
.page-resources-payment-methods-review__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-resources-payment-methods-review__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resources-payment-methods-review__card {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-resources-payment-methods-review__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
}

.page-resources-payment-methods-review__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-resources-payment-methods-review__faq-question {
  color: #ffffff;
}

.page-resources-payment-methods-review__faq-answer {
  color: #f0f0f0;
}