.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure body background is respected */
}

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

.page-payment-methods__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
}

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

.page-payment-methods__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-payment-methods__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-payment-methods__btn-primary:hover {
  background-color: #a00606;
}

.page-payment-methods__btn-secondary {
  display: inline-block;
  background-color: #017439; /* Primary brand color */
  color: #FFFFFF; /* White text for brand color background */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
  box-sizing: border-box;
}

.page-payment-methods__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-payment-methods__section {
  padding: 60px 0;
  text-align: center;
}

.page-payment-methods__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background-color: #ffffff; /* White background for light sections */
  color: #333333; /* Dark text for light background */
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: inherit;
}

.page-payment-methods__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.page-payment-methods__why-choose .page-payment-methods__section-title,
.page-payment-methods__how-to-deposit .page-payment-methods__section-title,
.page-payment-methods__fees-limits .page-payment-methods__section-title,
.page-payment-methods__customer-support .page-payment-methods__section-title,
.page-payment-methods__cta .page-payment-methods__section-title {
  color: #017439; /* Dark green for titles on light background */
}

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

.page-payment-methods__feature-item,
.page-payment-methods__security-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-payment-methods__feature-icon,
.page-payment-methods__security-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-payment-methods__feature-title,
.page-payment-methods__security-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-payment-methods__feature-description,
.page-payment-methods__security-description {
  font-size: 1em;
  line-height: 1.6;
}

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

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

.page-payment-methods__method-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

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

.page-payment-methods__method-details {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-payment-methods__method-details li {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.page-payment-methods__step-card {
  background-color: #005a2e; /* Darker green for steps on dark background */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00; /* Yellow for step numbers */
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-payment-methods__step-title {
  font-size: 1.5em;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-payment-methods__step-description {
  font-size: 1em;
  line-height: 1.6;
}

.page-payment-methods__cta-block {
  margin-top: 50px;
}

.page-payment-methods__important-notes {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  margin-top: 50px;
  text-align: left;
}

.page-payment-methods__notes-title {
  font-size: 1.8em;
  color: #FFFF00; /* Yellow for important notes title */
  margin-bottom: 20px;
}

.page-payment-methods__notes-list {
  list-style: disc;
  margin-left: 20px;
  font-size: 1em;
}

.page-payment-methods__notes-list li {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-payment-methods__table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
}

.page-payment-methods__transaction-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 0.95em;
  background-color: #f8f8f8;
  color: #333333;
  border-radius: 10px;
  overflow: hidden;
}

.page-payment-methods__transaction-table th,
.page-payment-methods__transaction-table td {
  padding: 15px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.page-payment-methods__transaction-table th {
  background-color: #017439;
  color: #FFFFFF;
  font-weight: bold;
}

.page-payment-methods__transaction-table tbody tr:nth-child(even) {
  background-color: #f0f0f0;
}

.page-payment-methods__transaction-table tbody tr:hover {
  background-color: #e5e5e5;
}

.page-payment-methods__note {
  font-size: 0.9em;
  color: #666666;
  margin-top: 30px;
}

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

.page-payment-methods__support-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__faq-item {
  background-color: #005a2e; /* Darker green for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439; /* Primary brand color for question */
  color: #FFFFFF;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-payment-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: #005a2e;
}

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

.page-payment-methods__faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 1em;
  line-height: 1.6;
}

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

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

  .page-payment-methods__section-title {
    font-size: 2em;
  }

  .page-payment-methods__features-grid,
  .page-payment-methods__method-grid,
  .page-payment-methods__steps-grid,
  .page-payment-methods__security-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-payment-methods {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-payment-methods__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

  .page-payment-methods__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-payment-methods__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-payment-methods__text-block {
    margin-bottom: 30px;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary,
  .page-payment-methods a[class*="button"],
  .page-payment-methods 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: 12px 20px;
    font-size: 1em;
  }

  .page-payment-methods__cta-buttons,
  .page-payment-methods__support-channels {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-payment-methods__container {
    padding: 0 15px;
  }

  .page-payment-methods__features-grid,
  .page-payment-methods__method-grid,
  .page-payment-methods__steps-grid,
  .page-payment-methods__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__feature-item,
  .page-payment-methods__method-card,
  .page-payment-methods__step-card,
  .page-payment-methods__security-item {
    padding: 25px;
  }

  .page-payment-methods__feature-title,
  .page-payment-methods__security-title {
    font-size: 1.3em;
  }

  .page-payment-methods__method-title {
    font-size: 1.4em;
  }

  .page-payment-methods__step-title {
    font-size: 1.3em;
  }

  .page-payment-methods__transaction-table {
    font-size: 0.85em;
  }

  .page-payment-methods__transaction-table th,
  .page-payment-methods__transaction-table td {
    padding: 10px;
  }

  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods__hero-section,
  .page-payment-methods__section,
  .page-payment-methods__container,
  .page-payment-methods__feature-item,
  .page-payment-methods__method-card,
  .page-payment-methods__step-card,
  .page-payment-methods__security-item,
  .page-payment-methods__table-wrapper,
  .page-payment-methods__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Specific padding for content containers on mobile */
  .page-payment-methods__section > .page-payment-methods__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure table wrapper does not cause overflow */
  .page-payment-methods__table-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Ensure images in content areas are responsive */
  .page-payment-methods__feature-icon, 
  .page-payment-methods__method-icon, 
  .page-payment-methods__security-icon, 
  .page-payment-methods__support-image {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .page-payment-methods__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}