.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

/* Fixed header offset */
.page-payment-methods__hero-section {
    padding-top: var(--header-offset, 120px);
}

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

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

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

.page-payment-methods__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

/* Contrast fix for text on light backgrounds */
.page-payment-methods__text-contrast-fix {
    color: #333333;
}

.page-payment-methods__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 80px; /* Adjust as needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-color: #017439; /* Use primary color for hero background */
    color: #ffffff;
}

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

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

.page-payment-methods__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
}

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

.page-payment-methods__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff; /* Default for dark background */
}

.page-payment-methods__light-bg .page-payment-methods__section-title {
    color: #017439; /* Primary color for titles on light background */
}

.page-payment-methods__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Default for dark background */
}

.page-payment-methods__light-bg .page-payment-methods__section-description {
    color: #555555; /* Darker text for descriptions on light background */
}

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

.page-payment-methods__cta-buttons--centered {
    margin-top: 40px;
}

.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;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

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

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

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

.page-payment-methods__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.page-payment-methods__light-bg .page-payment-methods__btn-secondary {
    color: #017439;
    border-color: #017439;
}

.page-payment-methods__light-bg .page-payment-methods__btn-secondary:hover {
    background-color: rgba(1, 116, 57, 0.1);
    color: #017439;
}

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

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

.page-payment-methods__feature-item:hover {
    transform: translateY(-5px);
}

.page-payment-methods__feature-icon {
    width: 200px; /* Minimum 200px */
    height: 150px; /* Example display height, maintaining aspect ratio */
    object-fit: contain;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

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

.page-payment-methods__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-payment-methods__card {
    background-color: #ffffff; /* White background for cards on light section */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light card background */
}

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

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

.page-payment-methods__card-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #017439; /* Primary color for card titles on light background */
}

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

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

.page-payment-methods__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: #ffffff;
}

.page-payment-methods__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #017439; /* Primary color for step numbers */
    color: #ffffff;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-payment-methods__step-number--light {
    background-color: #017439; /* Primary color for step numbers on light background */
    color: #ffffff;
}

.page-payment-methods__step-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-payment-methods__light-bg .page-payment-methods__step-item {
    background-color: #f8f8f8;
    color: #333333;
}
.page-payment-methods__light-bg .page-payment-methods__step-title {
    color: #017439;
}
.page-payment-methods__light-bg .page-payment-methods__step-text {
    color: #555555;
}

.page-payment-methods__image-full-width {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    margin-top: 40px;
    border-radius: 10px;
}

/* Transaction table */
.page-payment-methods__table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for table on dark background */
    padding: 20px;
}

.page-payment-methods__transaction-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table is readable on smaller screens before overflow */
}