.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-payment-methods__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

/* Hero Section */
.page-payment-methods__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px);
  padding-bottom: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.page-payment-methods__hero-section .page-payment-methods__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

.page-payment-methods__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* General Section Styles */
.page-payment-methods__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-payment-methods__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

/* Buttons */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary,
.page-payment-methods__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-payment-methods__btn-primary,
.page-payment-methods__cta-button {
  background-color: #C30808;
  color: #FFFF00; /* Register and Login font color */
  border: 2px solid #C30808;
}

.page-payment-methods__btn-primary:hover,
.page-payment-methods__cta-button:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

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

.page-payment-methods__btn-secondary:hover {
  background-color: #f0f0f0;
}

/* Why Choose Section */
.page-payment-methods__why-choose-section {
  padding: 80px 0;
}

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

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

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

.page-payment-methods__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Methods Section */
.page-payment-methods__methods-section {
  padding: 80px 0;
}

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

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

.page-payment-methods__method-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-payment-methods__method-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

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

.page-payment-methods__method-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #555555;
}

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

/* Guide Section */
.page-payment-methods__guide-section {
  padding: 80px 0;
}

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

.page-payment-methods__step-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
}

.page-payment-methods__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #017439;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
  border: 3px solid #ffffff;
}

.page-payment-methods__step-title {
  font-size: 1.5em;
  color: #017439;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-payment-methods__step-description {
  font-size: 1em;
  color: #555555;
}

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

/* Security Section */
.page-payment-methods__security-section {
  padding: 80px 0;
}

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

.page-payment-methods__security-text {
  flex: 1;
  min-width: 300px;
}

.page-payment-methods__security-list {
  list-style: none;
  padding: 0;
}

.page-payment-methods__security-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  font-size: 1.1em;
  color: #333333;
}

.page-payment-methods__security-list li strong {
  color: #017439;
}

.page-payment-methods__security-list li::before {
  content: '🛡️'; /* Shield emoji */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2em;
}

.page-payment-methods__security-assurance {
  font-style: italic;
  margin-top: 20px;
  color: #555555;
}

.page-payment-methods__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Video Section */
.page-payment-methods__video-section {
  padding: 80px 0;
}

.page-payment-methods__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  width: 100%;
  box-sizing: border-box;
}

.page-payment-methods__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-payment-methods__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* FAQ Section */
.page-payment-methods__faq-section {
  padding: 80px 0;
}

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

.page-payment-methods__faq-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #e8f5e9; /* Lighter green for question */
  color: #017439;
  border-bottom: 1px solid #d4e9d7;
}

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

.page-payment-methods__faq-title {
  font-size: 1.2em;
  margin: 0;
  flex-grow: 1;
}

.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: #555555;
}

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

.page-payment-methods__faq-answer p {
  margin: 0;
}

/* CTA Bottom Section */
.page-payment-methods__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

.page-payment-methods__cta-bottom-section .page-payment-methods__section-title,
.page-payment-methods__cta-bottom-section .page-payment-methods__section-intro {
  color: #ffffff;
}

.page-payment-methods__cta-bottom-section .page-payment-methods__cta-button {
  margin-top: 30px;
}

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

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

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

  .page-payment-methods__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }

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

  .page-payment-methods__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

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

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

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

  .page-payment-methods__security-content {
    flex-direction: column;
  }

  .page-payment-methods__security-image {
    max-width: 100%;
    margin-top: 30px;
  }

  /* Image Responsive */
  .page-payment-methods img {
    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-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Video Responsive */
  .page-payment-methods video,
  .page-payment-methods__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-payment-methods__video-section,
  .page-payment-methods__video-container,
  .page-payment-methods__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Button Responsive */
  .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; /* Ensure buttons take full width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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__cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-payment-methods__hero-title {
    font-size: 1.8em;
  }

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

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

  .page-payment-methods__faq-question {
    padding: 15px 20px;
  }

  .page-payment-methods__faq-title {
    font-size: 1em;
  }
}