.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Main text color for dark background */
  background-color: #08160F; /* Page background color */
}

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

.page-payment-methods__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding for fixed header, larger bottom padding */
  overflow: hidden;
  background-color: #08160F; /* Ensure consistent background */
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 600px; /* Limit hero image height */
}

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

.page-payment-methods__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  color: #F2C14E; /* Gold color for main title */
  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: clamp(1em, 1.5vw, 1.2em);
  color: #F2FFF6; /* Main text color */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__hero-cta-button,
.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-payment-methods__hero-cta-button:hover,
.page-payment-methods__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__cta-button--secondary {
  background: #11271B;
  border: 2px solid #2E7A4E;
  color: #F2FFF6;
}

.page-payment-methods__cta-button--secondary:hover {
  background: #1E3A2A;
  border-color: #57E38D;
}

.page-payment-methods__introduction-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__tips-section,
.page-payment-methods__final-cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #08160F; /* Page background color */
  color: #F2FFF6; /* Main text color */
}

.page-payment-methods__methods-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section {
  padding: 60px 0;
  text-align: center;
  background-color: #11271B; /* Card BG color for sections */
  color: #F2FFF6; /* Main text color */
}

.page-payment-methods__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #F2C14E; /* Gold color for section titles */
  margin-bottom: 30px;
  font-weight: bold;
}

.page-payment-methods__text-block {
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__card {
  background-color: #08160F; /* Background color for individual cards */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
}

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

.page-payment-methods__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain; /* Ensure full image is visible */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-payment-methods__card-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold color for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-payment-methods__card-description {
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color */
}

.page-payment-methods__step-by-step {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-payment-methods__step {
  background-color: #11271B; /* Card BG color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  flex: 1 1 calc(33% - 40px);
  max-width: calc(33% - 40px);
  min-width: 280px;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-payment-methods__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #2AD16F; /* Button gradient start color */
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-payment-methods__step-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold color for step titles */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-payment-methods__step-description {
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color */
}

.page-payment-methods__security-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  object-fit: cover;
  margin: 40px auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-payment-methods__security-features,
.page-payment-methods__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-payment-methods__security-item,
.page-payment-methods__tip-item {
  background-color: #08160F; /* Page background color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #F2FFF6; /* Main text color */
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__security-item::before,
.page-payment-methods__tip-item::before {
  content: '✓';
  color: #57E38D; /* Glow color */
  font-weight: bold;
  margin-right: 15px;
  font-size: 1.2em;
}

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

.page-payment-methods__faq-item {
  background-color: #08160F; /* Page background color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-payment-methods__faq-question:hover {
  background-color: #1E3A2A; /* Darker green */
}

.page-payment-methods__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details */
}

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow color */
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
  content: '−';
}

.page-payment-methods__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color */
  line-height: 1.6;
  border-top: 1px solid #1E3A2A; /* Divider color */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-content {
    padding: 30px 15px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }

  .page-payment-methods__step {
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }
}

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

  .page-payment-methods__hero-image {
    max-height: 400px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-payment-methods__hero-description {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
  }

  .page-payment-methods__hero-cta-button,
  .page-payment-methods__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important; /* Mobile button adaptation */
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 15px;
  }

  .page-payment-methods__cta-button--secondary {
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-payment-methods__introduction-section,
  .page-payment-methods__methods-section,
  .page-payment-methods__withdrawal-section,
  .page-payment-methods__security-section,
  .page-payment-methods__tips-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__final-cta-section {
    padding: 40px 0;
  }

  .page-payment-methods__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
  }

  .page-payment-methods__text-block {
    font-size: 1em;
  }

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

  .page-payment-methods__card {
    padding: 20px;
  }

  .page-payment-methods__card-image {
    height: 150px;
  }

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

  .page-payment-methods__step {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 20px;
  }

  .page-payment-methods__security-image {
    margin: 30px auto;
  }

  .page-payment-methods__security-item,
  .page-payment-methods__tip-item {
    font-size: 1em;
    padding: 12px 15px;
  }

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

  .page-payment-methods__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Mobile image and video adaptation */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods video,
  .page-payment-methods__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__video-section,
  .page-payment-methods__video-container,
  .page-payment-methods__video-wrapper,
  .page-payment-methods__cta-buttons,
  .page-payment-methods__button-group,
  .page-payment-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  .page-payment-methods__video-section {
    padding-top: 10px !important;
  }

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

@media (max-width: 480px) {
  .page-payment-methods__hero-image {
    max-height: 300px;
  }

  .page-payment-methods__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.3em;
  }

  .page-payment-methods__security-item,
  .page-payment-methods__tip-item {
    font-size: 0.95em;
  }

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

  .page-payment-methods__faq-answer {
    font-size: 0.9em;
    padding: 8px 15px 15px;
  }
}