.page-payment-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

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

.page-payment-methods__light-bg {
  background-color: #1A1A1A; /* Slightly lighter dark for contrast */
  color: #ffffff;
}

.page-payment-methods__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

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

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

.page-payment-methods__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  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;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-payment-methods__btn-primary {
  background-color: #1A73E8;
  color: #ffffff;
  border: 2px solid #1A73E8;
}

.page-payment-methods__btn-primary:hover {
  background-color: #145CB3;
  border-color: #145CB3;
}

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

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

.page-payment-methods__full-width-btn {
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.page-payment-methods__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

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

.page-payment-methods__highlight-text {
  color: #FFD700;
  font-weight: bold;
}

.page-payment-methods__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  max-width: 900px;
  background-color: #000;
  border-radius: 10px;
}

.page-payment-methods__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
}

.page-payment-methods__video-caption {
  font-style: italic;
  color: #ccc;
  margin-top: 10px;
}

.page-payment-methods__methods-grid-section {
  padding: 80px 0;
}

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

.page-payment-methods__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-payment-methods__card:hover {
  transform: translateY(-10px);
}

.page-payment-methods__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-payment-methods__card-description {
  font-size: 1em;
  color: #e0e0e0;
}

.page-payment-methods__process-section {
  padding: 80px 0;
}

.page-payment-methods__process-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  counter-reset: process-step;
}

.page-payment-methods__process-list li {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #1A73E8;
  margin-bottom: 20px;
  padding: 20px 30px;
  border-radius: 8px;
  position: relative;
  text-align: left;
  color: #ffffff;
}

.page-payment-methods__process-list li::before {
  counter-increment: process-step;
  content: "Bước " counter(process-step);
  position: absolute;
  left: -15px;
  top: -15px;
  background-color: #FFD700;
  color: #121212;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
}

.page-payment-methods__list-title {
  color: #FFD700;
  margin-top: 0;
  font-size: 1.5em;
}

.page-payment-methods__security-section {
  padding: 80px 0;
}

.page-payment-methods__security-features .page-payment-methods__card {
  background-color: rgba(255, 255, 255, 0.08);
}

.page-payment-methods__fees-limits-section {
  padding: 80px 0;
}

.page-payment-methods__table-responsive {
  overflow-x: auto;
  margin-top: 40px;
  max-width: 100%;
}

.page-payment-methods__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  min-width: 600px; /* Ensure table is readable on smaller screens before full responsiveness */
}

.page-payment-methods__table th,
.page-payment-methods__table td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px;
  text-align: left;
  color: #ffffff;
}

.page-payment-methods__table th {
  background-color: #1A73E8;
  color: #ffffff;
  font-weight: bold;
}

.page-payment-methods__table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-payment-methods__table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-payment-methods__note {
  font-size: 0.95em;
  color: #ccc;
  font-style: italic;
}

.page-payment-methods__faq-section {
  padding: 80px 0;
}

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

.page-payment-methods__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #1A73E8;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-payment-methods__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #e0e0e0;
}

.page-payment-methods__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-payment-methods a {
  color: #FFD700;
  text-decoration: none;
}

.page-payment-methods a:hover {
  text-decoration: underline;
}

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

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

  .page-payment-methods__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-payment-methods__hero-section {
    padding: 60px 0;
  }

  .page-payment-methods__hero-title {
    font-size: 2.2em;
  }

  .page-payment-methods__hero-description {
    font-size: 1em;
  }

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

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 auto;
  }

  .page-payment-methods__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

  .page-payment-methods__text-block {
    font-size: 1em;
    padding: 0 10px;
  }

  .page-payment-methods__grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-payment-methods__process-list li {
    padding: 15px 20px;
  }

  .page-payment-methods__list-title {
    font-size: 1.2em;
  }

  .page-payment-methods__table th,
  .page-payment-methods__table td {
    padding: 10px;
    font-size: 0.9em;
  }

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

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

  .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    padding: 15px 20px;
  }

  /* Ensure all images are responsive */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all video elements are responsive */
  .page-payment-methods video,
  .page-payment-methods__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video wrapper mobile adaptation */
  .page-payment-methods__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* All containers with images/videos/buttons */
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .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;
  }

  /* Specific padding for sections if needed */
  .page-payment-methods__hero-section,
  .page-payment-methods__info-section,
  .page-payment-methods__methods-grid-section,
  .page-payment-methods__process-section,
  .page-payment-methods__security-section,
  .page-payment-methods__fees-limits-section,
  .page-payment-methods__faq-section,
  .page-payment-methods__cta-section {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-payment-methods__table-responsive {
    padding: 0 15px;
  }

  .page-payment-methods__table {
    width: auto;
  }
}