.page-payment-methods {
  padding-top: 10px; /* Small top padding for content below fixed header */
  max-width: 1390px;
  margin: 0 auto;
  color: #333333;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

.page-payment-methods__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f8f8f8; /* Light background for contrast */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  aspect-ratio: 16/5; /* Adjusted for a wider hero image */
  object-fit: cover;
  object-position: center;
}

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

.page-payment-methods__main-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Responsive font size */
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-payment-methods__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #555555;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-payment-methods__cta-button {
  display: inline-block;
  background-color: #C30808; /* Đăng Ký color */
  color: #FFFF00; /* Đăng Ký và Đăng nhập chữ color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-payment-methods__cta-button:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-payment-methods__section {
  padding: 40px 20px;
  margin-bottom: 30px;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-payment-methods__common-methods .page-payment-methods__section-title {
  margin-bottom: 40px;
}

.page-payment-methods__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-content: center;
}

.page-payment-methods__method-card {
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-payment-methods__method-icon {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__method-title {
  font-size: 1.4rem;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-payment-methods__method-description {
  font-size: 1rem;
  color: #666666;
  line-height: 1.5;
}

.page-payment-methods__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-payment-methods__step-card {
  background-color: #e6f7ed; /* Lighter green background */
  border-left: 5px solid #017439;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__step-title {
  font-size: 1.6rem;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-payment-methods__step-card ol {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 25px;
}

.page-payment-methods__step-card ol li {
  font-size: 1.05rem;
  color: #444444;
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-payment-methods__guide-button {
  display: inline-block;
  background-color: #017439;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-payment-methods__guide-button:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

.page-payment-methods__security-support {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  background-color: #f8f8f8;
  padding: 40px;
}

.page-payment-methods__security-content {
  flex: 1;
}

.page-payment-methods__security-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-payment-methods__security-image {
  width: 100%;
  max-width: 600px; /* Max width for the image */
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-payment-methods__text-content {
  font-size: 1.1rem;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 25px;
}

.page-payment-methods__support-button {
  display: inline-block;
  background-color: #C30808; /* Consistent button color */
  color: #FFFF00; /* Consistent button text color */
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-payment-methods__support-button:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-payment-methods__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-payment-methods__faq-item {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__faq-question {
  font-size: 1.3rem;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-payment-methods__faq-answer {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
}

.page-payment-methods__cta-bottom-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #017439; /* Primary color background */
  color: #FFFFFF;
  border-radius: 12px;
  margin-bottom: 40px;
}

.page-payment-methods__cta-bottom-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.3;
}

.page-payment-methods__cta-bottom-button {
  display: inline-block;
  background-color: #C30808; /* Đăng Ký color */
  color: #FFFF00; /* Đăng Ký và Đăng nhập chữ color */
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-payment-methods__cta-bottom-button:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 850px) {
  .page-payment-methods__security-support {
    flex-direction: column;
    text-align: center;
  }
  .page-payment-methods__security-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-payment-methods {
    padding: 0 12px; /* Adjust padding for smaller screens */
  }
  .page-payment-methods__hero-section,
  .page-payment-methods__section,
  .page-payment-methods__cta-bottom-section {
    padding: 20px 15px;
    margin-bottom: 20px;
  }
  .page-payment-methods__hero-image,
  .page-payment-methods__method-icon,
  .page-payment-methods__security-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
  }
  .page-payment-methods__methods-grid,
  .page-payment-methods__guide-steps {
    grid-template-columns: 1fr; /* Stack cards on small screens */
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .page-payment-methods__subtitle {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }
  .page-payment-methods__cta-button,
  .page-payment-methods__guide-button,
  .page-payment-methods__support-button,
  .page-payment-methods__cta-bottom-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-payment-methods__method-icon,
  .page-payment-methods__security-image {
    width: 100%;
    max-width: 100%;
    height: auto; /* Ensure responsiveness */
  }
}

@media (max-width: 549px) {
  .page-payment-methods__hero-section {
    padding: 15px;
  }
  .page-payment-methods__main-title {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }
  .page-payment-methods__section-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  .page-payment-methods__cta-bottom-title {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
  }
}