.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Body background from custom colors */
}

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

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

.page-payment-methods__dark-section {
  background: #E53935;
  color: #ffffff;
}

.page-payment-methods__section-title {
  font-size: 36px;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
  font-weight: bold;
}

.page-payment-methods__dark-section .page-payment-methods__section-title {
  color: #ffffff;
}

.page-payment-methods__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-payment-methods__dark-section .page-payment-methods__text-block {
  color: #f0f0f0;
}

/* Hero Section */
.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; /* Small top padding, body handles header offset */
  background-color: #F5F7FA; /* Match body background */
}

.page-payment-methods__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-payment-methods__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-payment-methods__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-payment-methods__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-payment-methods__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  font-weight: bold;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Method List */
.page-payment-methods__method-list {
  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: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  border: 1px solid #E0E0E0;
}

.page-payment-methods__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__method-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-payment-methods__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* Steps Guide */
.page-payment-methods__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-payment-methods__step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-payment-methods__step-item img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: block;
}

.page-payment-methods__step-number {
  font-size: 48px;
  font-weight: bold;
  color: #FF5A4F;
  margin-bottom: 15px;
}

.page-payment-methods__step-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-payment-methods__step-description {
  font-size: 17px;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Important Notes */
.page-payment-methods__note-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
}

.page-payment-methods__note-item {
  background: #FFFFFF;
  border-left: 5px solid #E53935;
  border-radius: 8px;
  padding: 20px 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-payment-methods__note-title {
  font-size: 22px;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 10px;
}

.page-payment-methods__note-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* FAQ Section */
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;
  text-align: left;
  color: #555555;
}

/* Contact Section */
.page-payment-methods__contact-section .page-payment-methods__cta-button {
  margin-top: 30px;
  background: #ffffff;
  color: #E53935;
  border: 2px solid #ffffff;
  box-shadow: none;
}

.page-payment-methods__contact-section .page-payment-methods__cta-button:hover {
  background: #f0f0f0;
  color: #E53935;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-payment-methods__note-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-payment-methods__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-payment-methods__hero-image img {
    border-radius: 4px;
  }
  
  .page-payment-methods__main-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .page-payment-methods__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-payment-methods__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    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__section {
    padding: 40px 0;
  }

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

  .page-payment-methods__text-block {
    font-size: 16px;
    margin-bottom: 15px;
  }

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

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

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

  .page-payment-methods__card-description {
    font-size: 15px;
  }

  .page-payment-methods__steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-payment-methods__step-item {
    padding: 20px;
  }

  .page-payment-methods__step-number {
    font-size: 40px;
  }

  .page-payment-methods__step-title {
    font-size: 24px;
  }

  .page-payment-methods__step-description {
    font-size: 15px;
  }

  .page-payment-methods__note-item {
    padding: 15px 20px;
  }

  .page-payment-methods__note-title {
    font-size: 20px;
  }

  details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
    padding: 15px;
  }
  .page-payment-methods__faq-qtext {
    font-size: 15px;
  }
  details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
    padding: 0 15px 15px;
  }

  /* Ensure all images are responsive and don't cause overflow */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__method-card,
  .page-payment-methods__step-item,
  .page-payment-methods__note-item,
  .page-payment-methods__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button containers for mobile */
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-payment-methods__contact-section .page-payment-methods__cta-button {
    width: auto !important; /* Allow button to shrink if text is short */
    padding-left: 30px;
    padding-right: 30px;
  }
}