.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #F5F7FA;
}

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

.page-payment-methods__hero-section {
  position: relative;
  padding-top: 10px; /* Rely on body padding-top from shared.css */
  background-color: #F5F7FA;
  overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  height: 675px;
  overflow: hidden;
}

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

.page-payment-methods__hero-content {
  text-align: center;
  padding: 40px 20px;
  background-color: #ffffff;
  margin-top: -80px;
  position: relative;
  z-index: 1;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-payment-methods__hero-description {
  font-size: 18px;
  color: #333333;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-payment-methods__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-payment-methods__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-payment-methods__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-payment-methods__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-payment-methods__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-payment-methods__subsection-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  margin-top: 50px;
  margin-bottom: 25px;
  color: #E53935;
  text-align: center;
}

.page-payment-methods__section-text {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-payment-methods__image-wrapper {
  margin: 30px auto;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__content-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-payment-methods__overview-section,
.page-payment-methods__withdrawal-methods,
.page-payment-methods__faq-section {
  padding: 60px 0;
  background-color: #F5F7FA;
  color: #333333;
}

.page-payment-methods__deposit-methods,
.page-payment-methods__security-section,
.page-payment-methods__contact-cta {
  padding: 60px 0;
  background-color: #E53935;
  color: #ffffff;
}

.page-payment-methods__deposit-methods .page-payment-methods__section-title,
.page-payment-methods__deposit-methods .page-payment-methods__section-description,
.page-payment-methods__deposit-methods .page-payment-methods__subsection-title,
.page-payment-methods__deposit-methods .page-payment-methods__section-text,
.page-payment-methods__security-section .page-payment-methods__section-title,
.page-payment-methods__security-section .page-payment-methods__section-description,
.page-payment-methods__security-section .page-payment-methods__feature-title,
.page-payment-methods__security-section .page-payment-methods__feature-text,
.page-payment-methods__security-section .page-payment-methods__section-text,
.page-payment-methods__contact-cta .page-payment-methods__section-title,
.page-payment-methods__contact-cta .page-payment-methods__section-description {
  color: #ffffff;
}

.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: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
}

.page-payment-methods__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-payment-methods__card-text {
  font-size: 16px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-payment-methods__card-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  font-size: 15px;
}

.page-payment-methods__card-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.page-payment-methods__card-list li::before {
  content: '✔';
  color: #E53935;
  position: absolute;
  left: 0;
  top: 0;
}

.page-payment-methods__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  counter-reset: step-counter;
}

.page-payment-methods__steps-list li {
  counter-increment: step-counter;
  margin-bottom: 20px;
  padding-left: 40px;
  position: relative;
  font-size: 17px;
  color: #ffffff;
}

.page-payment-methods__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: #FF5A4F;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
}

.page-payment-methods__steps-list li a {
  color: #FFC107;
  text-decoration: underline;
}

.page-payment-methods__steps-list li a:hover {
  color: #ffffff;
}

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

.page-payment-methods__feature-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
}

.page-payment-methods__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-payment-methods__feature-text {
  font-size: 16px;
}

.page-payment-methods__feature-item a {
  color: #E53935;
  text-decoration: underline;
}

.page-payment-methods__feature-item a:hover {
  color: #FF5A4F;
}

.page-payment-methods__faq-list {
  margin-top: 40px;
}

details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question:hover {
  background: #f5f5f5;
}

.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-payment-methods__contact-cta .page-payment-methods__cta-buttons a {
  color: #ffffff;
}

.page-payment-methods__contact-cta .page-payment-methods__section-description a {
  color: #FFC107;
  text-decoration: underline;
}

.page-payment-methods__contact-cta .page-payment-methods__section-description a:hover {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-payment-methods__hero-image-wrapper {
    height: 500px;
  }

  .page-payment-methods__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

  .page-payment-methods__section-title {
    font-size: 32px;
  }

  .page-payment-methods__section-description {
    font-size: 16px;
  }

  .page-payment-methods__subsection-title {
    font-size: 26px;
  }

  .page-payment-methods__methods-grid,
  .page-payment-methods__security-features {
    gap: 20px;
  }

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

  .page-payment-methods__card-title,
  .page-payment-methods__feature-title {
    font-size: 20px;
  }

  .page-payment-methods__card-text,
  .page-payment-methods__feature-text,
  .page-payment-methods__card-list li,
  .page-payment-methods__steps-list li {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  /* General content padding */
  .page-payment-methods__container {
    padding: 15px;
  }

  /* Hero Section */
  .page-payment-methods__hero-section {
    padding-top: 10px;
  }

  .page-payment-methods__hero-image-wrapper {
    height: 300px;
  }

  .page-payment-methods__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }

  .page-payment-methods__hero-content {
    margin-top: -40px;
    padding: 20px 15px;
  }

  .page-payment-methods__hero-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-payment-methods__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

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

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto; /* Center buttons if they stack */
  }

  /* Section Titles and Descriptions */
  .page-payment-methods__section-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .page-payment-methods__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-payment-methods__subsection-title {
    font-size: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-payment-methods__section-text {
    font-size: 15px;
  }

  /* Image Responsiveness */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-payment-methods__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Grid Layouts */
  .page-payment-methods__methods-grid,
  .page-payment-methods__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-payment-methods__method-card,
  .page-payment-methods__feature-item {
    padding: 20px;
  }

  .page-payment-methods__card-title,
  .page-payment-methods__feature-title {
    font-size: 18px;
  }

  .page-payment-methods__card-text,
  .page-payment-methods__feature-text,
  .page-payment-methods__card-list li,
  .page-payment-methods__steps-list li {
    font-size: 14px;
  }

  .page-payment-methods__steps-list li {
    padding-left: 35px;
  }

  .page-payment-methods__steps-list li::before {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  /* FAQ Section */
  details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
    padding: 15px;
  }

  .page-payment-methods__faq-qtext {
    font-size: 15px;
  }

  .page-payment-methods__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }

  details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
    padding: 0 15px 15px;
  }
}