.page-payment-methods {
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding for first section */
}

.page-payment-methods__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  margin-bottom: 40px;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 20px;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-payment-methods__hero-content {
  max-width: 800px;
  padding: 0 15px;
}

.page-payment-methods__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E;
  margin-bottom: 15px;
  letter-spacing: -0.03em;
}

.page-payment-methods__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #E5E5E5;
}

.page-payment-methods__hero-cta {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-payment-methods__hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-payment-methods__overview-section,
.page-payment-methods__deposit-methods-section,
.page-payment-methods__withdrawal-methods-section,
.page-payment-methods__security-section,
.page-payment-methods__cta-section {
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 20px;
  background-color: #111111;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
}

.page-payment-methods__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #F2C14E;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.page-payment-methods__section-description {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #FFF6D6;
  text-align: center;
}

.page-payment-methods__method-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-payment-methods__method-card {
  background-color: #0A0A0A;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #3A2A12;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px; /* Ensure cards have a minimum height */
  justify-content: space-between;
}

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.2);
}

.page-payment-methods__method-icon {
  width: 200px;
  height: auto;
  max-width: 100%;
  margin-bottom: 20px;
  border-radius: 4px;
  object-fit: contain;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-payment-methods__card-title {
  font-size: 1.5rem;
  color: #FFD36B;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-payment-methods__card-text {
  font-size: 0.95rem;
  color: #E5E5E5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-payment-methods__card-cta {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.page-payment-methods__card-cta:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
}

.page-payment-methods__security-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto 0 auto;
  border-radius: 8px;
  border: 1px solid #3A2A12;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-payment-methods__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding: 15px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-payment-methods__hero-description {
    font-size: 1rem;
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-payment-methods__method-cards {
    grid-template-columns: 1fr;
  }

  .page-payment-methods__method-icon,
  .page-payment-methods__security-image {
    max-width: 100%;
    height: auto; /* Ensure responsiveness */
    min-width: 200px;
    min-height: 200px;
  }

  .page-payment-methods__overview-section,
  .page-payment-methods__deposit-methods-section,
  .page-payment-methods__withdrawal-methods-section,
  .page-payment-methods__security-section,
  .page-payment-methods__cta-section {
    margin-bottom: 30px;
    padding: 15px;
  }

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

  .page-payment-methods__cta-button {
    width: 100%;
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-payment-methods img {
    max-width: 100%;
    height: auto;
  }
  /* Ensuring content area images are not too small on mobile */
  .page-payment-methods img:not(.page-payment-methods__hero-image) {
    min-width: 200px;
    min-height: 200px;
  }

  /* Specific rule for images within .page-payment-methods on mobile to prevent overflow */
  @media (max-width: 768px) {
    .page-payment-methods img {
      max-width: 100%;
      height: auto;
    }
  }
}