.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 from shared.css */
}

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

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    padding: 100px 0 60px; /* Adjusted padding to ensure content is not under header */
    text-align: center;
    overflow: hidden;
    background-color: #1a1a2e; /* Explicitly set background for hero */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-payment-methods__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFFFF; /* Ensure high contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-payment-methods__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-payment-methods__btn {
    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, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-payment-methods__btn--primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFFFF; /* Adjusted to white for WCAG AA contrast with #C30808 */
    border: 2px solid #C30808;
}

.page-payment-methods__btn--primary:hover {
    background-color: #a00707;
    transform: translateY(-2px);
}

.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.1);
    transform: translateY(-2px);
}

.page-payment-methods__btn--center {
    margin-left: auto;
    margin-right: auto;
    display: block; /* Make it block to center with margin auto */
    max-width: 250px; /* Limit width for single centered button */
}

.page-payment-methods__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3; /* Subtle background image */
    overflow: hidden;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* General Section Styling */
.page-payment-methods__section {
    padding: 60px 0;
}

.page-payment-methods__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Brand color for titles on light backgrounds */
}

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

/* Dark background sections */
.page-payment-methods__dark-bg {
    background-color: #1a1a2e;
    color: #ffffff;
}

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

.page-payment-methods__dark-bg .page-payment-methods__section-description {
    color: #f0f0f0;
}

/* Light background sections */
.page-payment-methods__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-payment-methods__light-bg .page-payment-methods__section-title {
    color: #017439;
}

.page-payment-methods__light-bg .page-payment-methods__section-description {
    color: #666;
}

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

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

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

.page-payment-methods__card-icon {
    width: 400px; /* Display width for 600x400 source */
    height: 267px; /* Display height for 600x400 source */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-payment-methods__card-text {
    font-size: 1em;
    color: #666;
}

/* Guide Sections (Deposit/Withdrawal) */
.page-payment-methods__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-payment-methods__guide-item {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background for dark section */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__deposit-guide .page-payment-methods__guide-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-payment-methods__withdrawal-guide .page-payment-methods__guide-item {
    background-color: #f8f8f8;
    color: #333333;
}


.page-payment-methods__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #017439;
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-payment-methods__step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ffffff; /* For dark section */
}

.page-payment-methods__withdrawal-guide .page-payment-methods__step-title {
    color: #017439; /* For light section */
}

.page-payment-methods__step-text {
    font-size: 1em;
    color: #f0f0f0; /* For dark section */
}

.page-payment-methods__withdrawal-guide .page-payment-methods__step-text {
    color: #666; /* For light section */
}

.page-payment-methods__guide-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__guide-note {
    text-align: center;
    font-style: italic;
    margin-top: 20px;
    color: #f0f0f0; /* For dark section */
}

.page-payment-methods__withdrawal-guide .page-payment-methods__guide-note {
    color: #666; /* For light section */
}

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

.page-payment-methods__feature-item {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-payment-methods__feature-icon {
    width: 200px; /* Adjusted to min 200x200 */
    height: 200px; /* Adjusted to min 200x200 */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-payment-methods__security-image {
    display: block;
    margin: 60px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #017439; /* Brand color for question */
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    transform: rotate(45deg); /* For '-' */
}

.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: #ffffff;
    color: #333333;
}

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

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

/* Final CTA Section */
.page-payment-methods__final-cta {
    padding: 80px 0;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-payment-methods__intro-text {
        font-size: 1em;
    }

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

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

    .page-payment-methods__btn--center {
        max-width: 100% !important;
    }

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

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

    .page-payment-methods__section-description {
        font-size: 1em;
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .page-payment-methods__payment-cards,
    .page-payment-methods__guide-steps,
    .page-payment-methods__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-payment-methods__card,
    .page-payment-methods__guide-item,
    .page-payment-methods__feature-item {
        padding: 20px;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }
}