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

.page-payment-methods__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #0A2463; /* Primary color background for content, image will overlay */
  padding-bottom: 40px; /* Adjust as needed */
}

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

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-payment-methods__hero-content {
  position: relative; /* Ensure content is above image if needed, or adjust z-index */
  color: #ffffff; /* White text for hero content */
  max-width: 800px;
  z-index: 2;
}

.page-payment-methods__hero-title {
  font-size: 2.8em;
  color: #FFD700; /* Accent color for hero title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-payment-methods__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1em;
  cursor: pointer;
}

.page-payment-methods__button--primary {
  background-color: #FFD700;
  color: #0A2463;
  border: 2px solid #FFD700;
}

.page-payment-methods__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-payment-methods__button--secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
}

.page-payment-methods__section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.page-payment-methods__section--overview {
  background-color: #ffffff;
}

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

.page-payment-methods__heading {
  font-size: 2.2em;
  color: #0A2463;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-payment-methods__heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-payment-methods__sub-heading {
  font-size: 1.8em;
  color: #0A2463;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-payment-methods__text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  text-align: justify;
}

.page-payment-methods__text--note {
  font-style: italic;
  font-size: 0.9em;
  color: #777777;
  text-align: center;
}

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

.page-payment-methods__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-payment-methods__card-image {
  width: 100%; /* Ensure image takes full card width */
  max-width: 400px; /* Constrain image size within card */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-payment-methods__card-title {
  font-size: 1.5em;
  color: #0A2463;
  margin-bottom: 15px;
}

.page-payment-methods__card-text {
  font-size: 0.95em;
  color: #666666;
  text-align: justify;
}

.page-payment-methods__tips {
  margin-top: 50px;
  background-color: #eaf1f8;
  border-radius: 10px;
  padding: 30px;
}

.page-payment-methods__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-payment-methods__list-item {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1em;
  color: #444444;
}

.page-payment-methods__list-item strong {
  color: #0A2463;
}

.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: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-payment-methods__feature-image {
  width: 100%;
  max-width: 300px; /* Constrain image size */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-payment-methods__feature-title {
  font-size: 1.4em;
  color: #0A2463;
  margin-bottom: 10px;
}

.page-payment-methods__feature-text {
  font-size: 0.9em;
  color: #666666;
  text-align: justify;
}

.page-payment-methods__info-table {
  margin-top: 40px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.page-payment-methods__table-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border-bottom: 1px solid #eee;
}

.page-payment-methods__table-row--header {
  background-color: #0A2463;
  color: #ffffff;
  font-weight: bold;
}

.page-payment-methods__table-cell {
  padding: 15px 10px;
  text-align: center;
  border-right: 1px solid #eee;
  font-size: 0.9em;
  word-break: break-word;
}

.page-payment-methods__table-cell:last-child {
  border-right: none;
}

.page-payment-methods__table-row:nth-child(even) {
  background-color: #f5f5f5;
}

.page-payment-methods__table-row:last-child {
  border-bottom: none;
}

.page-payment-methods__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-payment-methods__benefits-item {
  background-color: #ffffff;
  border-left: 5px solid #FFD700;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1em;
  color: #444444;
}

.page-payment-methods__benefits-item strong {
  color: #0A2463;
}

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

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

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

  .page-payment-methods__sub-heading {
    font-size: 1.5em;
  }
}

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

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

  .page-payment-methods__heading {
    font-size: 1.6em;
  }

  .page-payment-methods__sub-heading {
    font-size: 1.3em;
  }

  .page-payment-methods__cards-grid, .page-payment-methods__features-grid, .page-payment-methods__benefits-list {
    grid-template-columns: 1fr;
  }

  .page-payment-methods__button {
    width: 100%;
    padding: 15px 20px;
  }

  .page-payment-methods__hero-actions, .page-payment-methods__cta-buttons {
    flex-direction: column;
  }

  .page-payment-methods__table-row {
    grid-template-columns: repeat(4, 1fr); /* Adjust for smaller screens */
  }

  .page-payment-methods__table-row--header .page-payment-methods__table-cell:nth-child(5),
  .page-payment-methods__table-row .page-payment-methods__table-cell:nth-child(5),
  .page-payment-methods__table-row--header .page-payment-methods__table-cell:nth-child(7),
  .page-payment-methods__table-row .page-payment-methods__table-cell:nth-child(7) {
    display: none; /* Hide some columns on small screens */
  }

  .page-payment-methods__table-cell {
    font-size: 0.8em;
    padding: 10px 5px;
  }

  /* Mandatory mobile image constraint */
  .page-payment-methods img {
    max-width: 100%;
    height: auto;
  }

  .page-payment-methods__card-image,
  .page-payment-methods__feature-image {
    min-width: 200px;
    min-height: 200px;
    width: 100%; /* Ensure images scale down */
    height: auto;
  }
}

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

  .page-payment-methods__heading {
    font-size: 1.4em;
  }

  .page-payment-methods__sub-heading {
    font-size: 1.2em;
  }

  .page-payment-methods__section {
    padding: 40px 15px;
  }

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

  .page-payment-methods__table-row {
    grid-template-columns: repeat(2, 1fr); /* Further simplify table on very small screens */
  }
  .page-payment-methods__table-row--header .page-payment-methods__table-cell:nth-child(3),
  .page-payment-methods__table-row .page-payment-methods__table-cell:nth-child(3),
  .page-payment-methods__table-row--header .page-payment-methods__table-cell:nth-child(4),
  .page-payment-methods__table-row .page-payment-methods__table-cell:nth-child(4),
  .page-payment-methods__table-row--header .page-payment-methods__table-cell:nth-child(6),
  .page-payment-methods__table-row .page-payment-methods__table-cell:nth-child(6),
  .page-payment-methods__table-row--header .page-payment-methods__table-cell:nth-child(8),
  .page-payment-methods__table-row .page-payment-methods__table-cell:nth-child(8) {
    display: none; /* Hide more columns */
  }
}