.page-payment-methods {
  --primary-color: #000000;
  --secondary-color: #FFFFFF;
  --accent-color: #FCBC45;
  --text-color-light: #f5f5f5;
  --text-color-dark: #333333;
  --button-register-bg: #FFFFFF;
  --button-register-text: #000000;
  --button-login-bg: #FCBC45;
  --button-login-text: #000000;
  --background-color: #0d0d0d;

  background-color: var(--background-color);
  color: var(--text-color-light);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-payment-methods__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 40px 0;
  position: relative;
  overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim image for text contrast, not color change */
}

.page-payment-methods__hero-content {
  padding: 20px;
  max-width: 900px;
  margin-top: 20px;
}

.page-payment-methods__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__hero-description {
  font-size: 1.1em;
  color: var(--text-color-light);
  margin-bottom: 30px;
}

.page-payment-methods__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-payment-methods__introduction-section {
  text-align: center;
}

.page-payment-methods__heading-2 {
  font-size: 2.2em;
  color: var(--accent-color);
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-payment-methods__paragraph {
  font-size: 1em;
  margin-bottom: 20px;
  color: var(--text-color-light);
  text-align: justify;
}

.page-payment-methods__payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__method-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__method-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-payment-methods__method-name {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-payment-methods__button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-payment-methods__button--primary {
  background-color: var(--button-login-bg);
  color: var(--button-login-text);
  border: 2px solid var(--button-login-bg);
}

.page-payment-methods__button--primary:hover {
  background-color: #e0a32d;
  border-color: #e0a32d;
  transform: translateY(-2px);
}

.page-payment-methods__button--secondary {
  background-color: transparent;
  color: var(--button-register-bg);
  border: 2px solid var(--button-register-bg);
}

.page-payment-methods__button--secondary:hover {
  background-color: var(--button-register-bg);
  color: var(--button-register-text);
  transform: translateY(-2px);
}

.page-payment-methods__withdrawal-note {
  text-align: center;
  font-style: italic;
  margin-top: 30px;
  color: rgba(245, 245, 245, 0.8);
}

.page-payment-methods__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-payment-methods__security-list-item {
  background-color: #1a1a1a;
  padding: 15px 25px;
  border-radius: 8px;
  color: var(--secondary-color);
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__faq-list {
  margin-top: 40px;
}

.page-payment-methods__faq-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__faq-question {
  font-size: 1.2em;
  color: var(--accent-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-payment-methods__faq-answer {
  font-size: 0.95em;
  color: var(--text-color-light);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 10px 0 30px 0;
  }

  .page-payment-methods__hero-content {
    padding: 15px;
  }

  .page-payment-methods__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em); /* Using clamp for H1 font size as per instructions */
    margin-bottom: 10px;
  }

  .page-payment-methods__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-payment-methods__section {
    padding: 40px 15px;
  }

  .page-payment-methods__heading-2 {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-payment-methods__payment-methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__method-card {
    padding: 20px;
  }

  .page-payment-methods__method-name {
    font-size: 1.3em;
  }

  .page-payment-methods__button {
    width: 100%;
    text-align: center;
  }

  .page-payment-methods__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-payment-methods__security-list {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .page-payment-methods__security-list-item {
    width: 100%;
    max-width: 300px;
  }

  .page-payment-methods__faq-question {
    font-size: 1.1em;
  }

  .page-payment-methods__paragraph img, .page-payment-methods__method-card img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
}

/* Ensure content area images are not too small */
.page-payment-methods img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific override for method icons to allow them to scale down visually while meeting min-size requirement for generation */
.page-payment-methods__method-icon {
  min-width: unset; /* Allow scaling below 200px visual if parent container is smaller */
  min-height: unset;
  width: 100%; /* Ensure it fills card width */
  max-width: 250px; /* Max size for visual consistency */
}

/* For images within paragraphs or general content, ensure they don't go below 200px */
.page-payment-methods__paragraph img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

/* Media query for content images to prevent overflow */
@media (max-width: 768px) {
  .page-payment-methods__section img {
    max-width: 100%;
    height: auto;
  }
}