.page-payment-methods {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background);
}

.page-payment-methods__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* body already handles --header-offset */
  color: var(--text-main);
  background: var(--background);
  overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Card BG with transparency */
  border-radius: 10px;
}

.page-payment-methods__main-title {
  font-size: 2.8em;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-payment-methods__description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-payment-methods__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-payment-methods__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-payment-methods__section {
  padding: 80px 20px;
}

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

.page-payment-methods__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
}

.page-payment-methods__sub-title {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-payment-methods__text-block {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-payment-methods__dark-bg {
  background-color: var(--background);
  color: var(--text-main);
}

.page-payment-methods__light-bg {
  background-color: var(--card-bg);
  color: var(--text-main);
}

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

.page-payment-methods__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 400px; /* Ensure cards have a minimum height for better layout */
}

.page-payment-methods__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__card-image {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-payment-methods__card-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-payment-methods__card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
}

.page-payment-methods__button-group {
  text-align: center;
  margin-top: 50px;
}

.page-payment-methods__grid--steps {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-payment-methods__step-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

.page-payment-methods__step-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-payment-methods__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
}

.page-payment-methods__steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.page-payment-methods__step-number {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  flex-shrink: 0;
}

.page-payment-methods__step-content {
  flex-grow: 1;
}

.page-payment-methods__step-heading {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-payment-methods__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-payment-methods__security-image {
  width: 50%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.page-payment-methods__security-text-block {
  width: 50%;
}

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

.page-payment-methods__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-main);
  background-color: var(--card-bg);
  list-style: none;
}

.page-payment-methods__faq-question::-webkit-details-marker {
  display: none;
}

.page-payment-methods__faq-qtext {
  flex-grow: 1;
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  margin-left: 15px;
  color: var(--glow);
}

.page-payment-methods__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary);
  background-color: var(--background);
}

.page-payment-methods__cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--card-bg);
  color: var(--text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__main-title {
    font-size: 2.2em;
  }
  .page-payment-methods__section-title {
    font-size: 1.8em;
  }
  .page-payment-methods__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-payment-methods__security-image,
  .page-payment-methods__security-text-block {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-payment-methods__main-title {
    font-size: 1.8em;
  }
  .page-payment-methods__section-title {
    font-size: 1.6em;
  }
  .page-payment-methods__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-payment-methods__hero-content {
    padding: 15px;
  }
  .page-payment-methods__description {
    font-size: 1em;
  }
  .page-payment-methods__section {
    padding: 50px 15px;
  }
  .page-payment-methods__container,
  .page-payment-methods__grid,
  .page-payment-methods__steps-wrapper,
  .page-payment-methods__faq-list,
  .page-payment-methods__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-payment-methods__card-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-payment-methods__cta-button,
  .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-left: 15px;
    padding-right: 15px;
  }

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

  .page-payment-methods__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-payment-methods__step-number {
    margin-bottom: 15px;
  }

  .page-payment-methods__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-payment-methods__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__main-title {
    font-size: 1.5em;
  }
  .page-payment-methods__section-title {
    font-size: 1.4em;
  }
  .page-payment-methods__hero-content {
    background: rgba(17, 39, 27, 0.85); /* Slightly darker overlay for better contrast on small screens */
  }
}