.page-payment-methods {
  color: #333333; /* Default text color for light body background */
}

.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px; /* Minimum height for hero section */
}

.page-payment-methods__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-payment-methods__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  color: #ffffff;
}

.page-payment-methods__hero-title {
  font-size: 3.2em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-payment-methods__hero-button {
  display: inline-block;
  background-color: #28a745; /* Auxiliary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-payment-methods__hero-button:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

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

.page-payment-methods__section-title {
  font-size: 2.5em;
  color: #007bff; /* Primary color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-payment-methods__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #28a745; /* Auxiliary color */
  border-radius: 2px;
}

.page-payment-methods__text-content {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 30px;
  color: #444444;
}

.page-payment-methods__why-choose-phwen {
  background-color: #f8f9fa;
  padding: 60px 0;
}

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

.page-payment-methods__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__feature-title {
  font-size: 1.6em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-payment-methods__feature-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-payment-methods__deposit-methods, .page-payment-methods__withdrawal-methods {
  padding: 60px 0;
}

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

.page-payment-methods__method-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__method-icon {
  width: 100%; /* Occupy full width of card */
  max-width: 400px; /* Limit max width to prevent distortion */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-payment-methods__method-title {
  font-size: 1.8em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-payment-methods__method-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-payment-methods__method-details {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
  max-width: 300px;
  margin-top: auto; /* Push to bottom */
}

.page-payment-methods__method-details li {
  background-color: #e9ecef;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 8px;
  font-size: 0.95em;
  color: #333333;
}

.page-payment-methods__method-details li strong {
  color: #007bff;
}

.page-payment-methods__call-to-action-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  background-color: #007bff; /* Primary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-payment-methods__call-to-action-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.page-payment-methods__security-compliance {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.page-payment-methods__security-image {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-payment-methods__faq {
  padding: 60px 0;
}

.page-payment-methods__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__faq-question {
  font-size: 1.4em;
  color: #007bff;
  padding: 20px;
  margin: 0;
  cursor: pointer;
  background-color: #f0f8ff; /* Light background for questions */
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
  background-color: #e6f2ff;
}

.page-payment-methods__faq-answer {
  font-size: 1em;
  color: #555555;
  padding: 20px;
  line-height: 1.7;
  display: none; /* Hidden by default, toggled by JS */
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
  display: block;
}

.page-payment-methods__call-to-action {
  background-color: #007bff; /* Primary color */
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

.page-payment-methods__call-to-action .page-payment-methods__section-title {
  color: #ffffff;
}

.page-payment-methods__call-to-action .page-payment-methods__section-title::after {
  background-color: #ffffff;
}

.page-payment-methods__call-to-action .page-payment-methods__text-content {
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-payment-methods__primary-button, .page-payment-methods__secondary-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  margin: 0 15px;
}

.page-payment-methods__primary-button {
  background-color: #28a745; /* Auxiliary color */
  color: #ffffff;
  border: 2px solid #28a745;
}

.page-payment-methods__primary-button:hover {
  background-color: #218838;
  border-color: #218838;
  transform: translateY(-2px);
}

.page-payment-methods__secondary-button {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-payment-methods__secondary-button:hover {
  background-color: #ffffff;
  color: #007bff;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-payment-methods__hero-title {
    font-size: 2.5em;
  }
  .page-payment-methods__hero-description {
    font-size: 1.1em;
  }
  .page-payment-methods__section-title {
    font-size: 2em;
  }
  .page-payment-methods__methods-grid, .page-payment-methods__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-payment-methods {
    padding-top: var(--header-offset, 120px);
  }
  .page-payment-methods__hero-section {
    min-height: 400px;
    padding: 30px 15px;
  }
  .page-payment-methods__hero-container {
    padding: 25px 15px;
  }
  .page-payment-methods__hero-title {
    font-size: 2em;
  }
  .page-payment-methods__hero-description {
    font-size: 1em;
  }
  .page-payment-methods__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-payment-methods__text-content {
    font-size: 0.95em;
  }
  .page-payment-methods__container {
    padding: 30px 15px;
  }
  .page-payment-methods__method-icon, .page-payment-methods__security-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
  }
  /* Enforce responsive images for content area */
  .page-payment-methods img {
    max-width: 100%;
    height: auto;
  }
  .page-payment-methods__primary-button, .page-payment-methods__secondary-button {
    display: block;
    width: 90%;
    margin: 15px auto;
  }
  .page-payment-methods__faq-question {
    font-size: 1.2em;
    padding: 15px;
  }
  .page-payment-methods__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: 1.8em;
  }
  .page-payment-methods__hero-description {
    font-size: 0.9em;
  }
  .page-payment-methods__hero-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-payment-methods__section-title {
    font-size: 1.5em;
  }
  .page-payment-methods__method-title {
    font-size: 1.5em;
  }
}