.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default page background */
}

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

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

/* Hero Section */
.page-payment-methods__hero-section {
    background: linear-gradient(135deg, #26A9E0, #1a8cc4); /* Brand color gradient */
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
    box-sizing: border-box;
}

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

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

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

.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;
    box-sizing: border-box;
}

.page-payment-methods__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

.page-payment-methods__btn-secondary:hover {
    background-color: #e0f4ff;
    color: #1a8cc4;
    border-color: #1a8cc4;
}

/* Section Titles and Descriptions */
.page-payment-methods__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for titles */
}

.page-payment-methods__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* Payment Methods Grid */
.page-payment-methods__overview-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__guide-section,
.page-payment-methods__policy-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-bottom-section {
    padding: 80px 0;
}

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

.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;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.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%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-payment-methods__card-text {
    font-size: 1em;
    margin-bottom: 15px;
}

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

.page-payment-methods__card-list li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95em;
}

.page-payment-methods__card-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #26A9E0;
}

/* Dark Section styling */
.page-payment-methods__dark-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-payment-methods__dark-section .page-payment-methods__section-title,
.page-payment-methods__dark-section .page-payment-methods__section-description,
.page-payment-methods__dark-section .page-payment-methods__card-title {
    color: #ffffff; /* White text on dark background */
}

.page-payment-methods__dark-section .page-payment-methods__card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on brand color */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-payment-methods__dark-section .page-payment-methods__card-list li::before {
    color: #ffffff; /* White checkmark */
}

/* Guide Section */
.page-payment-methods__guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-payment-methods__guide-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-payment-methods__guide-card-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 20px;
    text-align: center;
}

.page-payment-methods__guide-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 30px;
}

.page-payment-methods__guide-list li {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-payment-methods__guide-list li strong {
    color: #26A9E0;
}

/* Policy Section */
.page-payment-methods__policy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-payment-methods__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-payment-methods__feature-icon {
    width: 100%;
    max-width: 80px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%; /* Make icons round */
    background-color: #ffffff; /* White background for icons on dark section */
    padding: 10px;
}

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

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

/* FAQ Section */
.page-payment-methods__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-payment-methods__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

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

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    transform: rotate(45deg);
    content: '−'; /* Changed via JS */
}

.page-payment-methods__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-payment-methods__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Bottom CTA Section */
.page-payment-methods__cta-bottom-section {
    background: linear-gradient(135deg, #1a8cc4, #26A9E0);
    color: #ffffff;
    text-align: center;
    padding: 60px 0;
}

.page-payment-methods__cta-bottom-section .page-payment-methods__section-title,
.page-payment-methods__cta-bottom-section .page-payment-methods__section-description {
    color: #ffffff;
}

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

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

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

    .page-payment-methods__hero-section {
        padding: 60px 0 40px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent buttons from touching edges */
    }

    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-payment-methods__container {
        padding: 0 15px;
    }

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

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

    .page-payment-methods__overview-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__guide-section,
.page-payment-methods__policy-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-bottom-section {
        padding: 40px 0;
    }

    .page-payment-methods__methods-grid,
    .page-payment-methods__guide-grid,
    .page-payment-methods__policy-features {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .page-payment-methods__card-image {
        max-width: 180px;
    }

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

    .page-payment-methods__faq-question {
        font-size: 1em;
        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;
    }

    /* Mobile image responsiveness */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__cta-buttons,
    .page-payment-methods__methods-grid,
    .page-payment-methods__guide-grid,
    .page-payment-methods__policy-features,
    .page-payment-methods__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
}