.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.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__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff; /* For dark backgrounds */
    font-weight: bold;
}

.page-payment-methods__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly off-white for readability on dark */
}

/* Specific background and text colors */
.page-payment-methods__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

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

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

.page-payment-methods__light-bg .page-payment-methods__text-block {
    color: #333333;
}

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
}

.page-payment-methods__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Overlay for text readability */
    filter: none; /* Ensure no CSS filter */
}

.page-payment-methods__hero-section .page-payment-methods__container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

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

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

/* CTA Buttons */
.page-payment-methods__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-payment-methods__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

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

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

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

.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:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Why Choose Section */
.page-payment-methods__why-choose {
    background-color: #ffffff;
    color: #333333;
}

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

.page-payment-methods__feature-item {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #f8f8f8;
    color: #333333;
}

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

/* Available Methods Section */
.page-payment-methods__available-methods {
    background-color: #017439;
    color: #ffffff;
}

.page-payment-methods__image-full {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 40px;
    border-radius: 10px;
    display: block;
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Ensure no CSS filter */
}

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

.page-payment-methods__method-card {
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-payment-methods__method-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #FFFF00;
    font-weight: bold;
}

.page-payment-methods__method-card ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.page-payment-methods__method-card li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    color: #f0f0f0;
}

.page-payment-methods__method-card li::before {
    content: '✓';
    color: #FFFF00;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Deposit and Withdrawal Guides */
.page-payment-methods__deposit-guide,
.page-payment-methods__withdrawal-process {
    background-color: #ffffff;
    color: #333333;
}

.page-payment-methods__deposit-guide .page-payment-methods__section-title,
.page-payment-methods__withdrawal-process .page-payment-methods__section-title {
    color: #017439;
}

.page-payment-methods__deposit-guide .page-payment-methods__text-block,
.page-payment-methods__withdrawal-process .page-payment-methods__text-block {
    color: #333333;
}

.page-payment-methods__image-content {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    margin: 0 auto 40px auto;
    border-radius: 10px;
    display: block;
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Ensure no CSS filter */
}

.page-payment-methods__steps-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 40px;
    counter-reset: step-counter;
}

.page-payment-methods__steps-list li {
    margin-bottom: 30px;
    padding-left: 40px;
    position: relative;
}

.page-payment-methods__steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #017439;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

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

.page-payment-methods__steps-list p {
    color: #333333;
}

/* Security Measures */
.page-payment-methods__security-measures {
    background-color: #ffffff;
    color: #333333;
}

.page-payment-methods__security-measures .page-payment-methods__section-title {
    color: #017439;
}

.page-payment-methods__security-measures .page-payment-methods__text-block {
    color: #333333;
}

.page-payment-methods__security-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 40px;
}

.page-payment-methods__security-list li {
    margin-bottom: 25px;
    padding-left: 40px;
    position: relative;
}

.page-payment-methods__security-list li::before {
    content: '🔒';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5em;
    color: #017439;
}

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

.page-payment-methods__security-list p {
    color: #333333;
}

/* FAQ Section */
.page-payment-methods__faq {
    background-color: #017439;
    color: #ffffff;
}

.page-payment-methods__faq .page-payment-methods__section-title {
    color: #ffffff;
}

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

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

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-payment-methods__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
    font-weight: bold;
}

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00;
    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: #f0f0f0;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px 20px 25px;
}

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

/* Bottom CTA */
.page-payment-methods__cta-bottom {
    background-color: #ffffff;
    color: #333333;
    padding-bottom: 80px;
}

.page-payment-methods__cta-bottom .page-payment-methods__section-title {
    color: #017439;
}

.page-payment-methods__cta-bottom .page-payment-methods__text-block {
    color: #333333;
}

.page-payment-methods__text-center {
    text-align: center;
}

/* Links within content */
.page-payment-methods p a,
.page-payment-methods li a {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}

.page-payment-methods__dark-bg p a,
.page-payment-methods__dark-bg li a,
.page-payment-methods__faq-answer p a {
    color: #FFFF00;
}

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

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding: 80px 0;
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset */
    }

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

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

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

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

    .page-payment-methods__text-block {
        font-size: 1em;
    }

    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 15px;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow */
    }

    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary,
    .page-payment-methods a[class*="button"],
    .page-payment-methods a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-payment-methods__features-grid,
    .page-payment-methods__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        box-sizing: border-box !important;
    }

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

    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
        box-sizing: border-box !important;
    }

    .page-payment-methods__image-full,
    .page-payment-methods__image-content {
        padding: 0 15px;
    }

    .page-payment-methods__steps-list,
    .page-payment-methods__security-list,
    .page-payment-methods__faq-list {
        padding: 0 15px;
        box-sizing: border-box !important;
    }

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

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

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

    .page-payment-methods__section,
    .page-payment-methods__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
}

/* Global image/video responsive styles for safety */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-payment-methods video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Ensure no CSS filter on images */
.page-payment-methods img {
    filter: none;
}