.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Assuming shared.css sets a light background or default is white */
}

.page-payment-methods__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    padding-bottom: 40px;
    background-color: #f5f5f5;
    text-align: center;
    overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-payment-methods__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-payment-methods__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-payment-methods__description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary,
.page-payment-methods__card-btn {
    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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    max-width: 100%;
}

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

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

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

.page-payment-methods__btn-secondary:hover {
    background-color: #e0e0e0;
}

.page-payment-methods__card-btn {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    margin-top: auto; /* Push button to bottom of card */
    width: fit-content;
    align-self: center;
}

.page-payment-methods__card-btn:hover {
    background-color: #005f2c;
    border-color: #005f2c;
}

.page-payment-methods__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.page-payment-methods__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-payment-methods__section-intro {
    font-size: 1.05em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__section-intro--light {
    color: #f0f0f0;
}

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

.page-payment-methods__method-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__method-icon {
    width: 200px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 8px;
}

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

.page-payment-methods__method-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-payment-methods__method-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
    width: 100%;
}

.page-payment-methods__method-details-list li {
    margin-bottom: 8px;
    color: #444444;
    font-size: 0.9em;
}

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

.page-payment-methods__step-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-payment-methods__step-description {
    font-size: 0.95em;
    color: #666666;
}

.page-payment-methods__withdrawal-info-box {
    background-color: #f0f8f0; /* Light green background */
    border-left: 5px solid #017439;
    border-radius: 8px;
    padding: 30px;
    margin-top: 50px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-payment-methods__info-box-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-payment-methods__info-list {
    list-style: disc;
    list-style-position: inside;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-payment-methods__info-list li {
    margin-bottom: 10px;
    color: #444444;
    font-size: 1em;
}

.page-payment-methods__security-features {
    background-color: #017439; /* Main brand color as background */
    color: #ffffff;
}

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

.page-payment-methods__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-payment-methods__security-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 8px;
}

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

.page-payment-methods__security-item-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-payment-methods__faq {
    padding-top: 60px;
    padding-bottom: 80px;
}

.page-payment-methods__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

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

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details summary */
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
    border-bottom: none;
}

.page-payment-methods__faq-qtext {
    flex-grow: 1;
}

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
    transform: rotate(45deg); /* Plus to X */
}

.page-payment-methods__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #444444;
    border-top: 1px solid #f0f0f0; /* Subtle border for separation */
}

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

.page-payment-methods__cta-bottom {
    background-color: #f0f8f0;
    padding: 80px 20px;
}

/* General image styling for content areas */
.page-payment-methods img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .page-payment-methods__hero-content {
        padding: 0 40px;
    }
    .page-payment-methods__section {
        padding: 50px 30px;
    }
    .page-payment-methods__methods-grid,
    .page-payment-methods__steps-grid,
    .page-payment-methods__security-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .page-payment-methods__main-title {
        font-size: clamp(2.5em, 5vw, 3em);
    }
    .page-payment-methods__section-title {
        font-size: clamp(2em, 4vw, 2.2em);
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-payment-methods__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }
    .page-payment-methods__hero-content {
        padding: 0 15px;
    }
    .page-payment-methods__main-title {
        font-size: 2.2em !important;
    }
    .page-payment-methods__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* 通用图片与容器 */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-payment-methods__section,
    .page-payment-methods__method-card,
    .page-payment-methods__step-card,
    .page-payment-methods__security-item,
    .page-payment-methods__withdrawal-info-box,
    .page-payment-methods__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-payment-methods__section {
        padding: 40px 15px;
    }

    /* 按钮与按钮容器 */
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary,
    .page-payment-methods__card-btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 0.95em;
    }
    .page-payment-methods__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-payment-methods__withdrawal-info-box .page-payment-methods__btn-primary {
        width: fit-content !important; /* Override full width for this specific button */
        max-width: unset !important; /* Allow it to be smaller */
        align-self: center;
        padding: 12px 25px;
    }

    /* 其他内容模块 */
    .page-payment-methods__section-title {
        font-size: 1.8em !important;
        margin-bottom: 15px;
    }
    .page-payment-methods__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-payment-methods__methods-grid,
    .page-payment-methods__steps-grid,
    .page-payment-methods__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-payment-methods__method-card,
    .page-payment-methods__step-card,
    .page-payment-methods__security-item {
        padding: 25px 20px;
    }
    .page-payment-methods__method-title {
        font-size: 1.4em;
    }
    .page-payment-methods__step-title,
    .page-payment-methods__security-item-title {
        font-size: 1.3em;
    }
    .page-payment-methods__withdrawal-info-box {
        padding: 25px 20px;
    }
    .page-payment-methods__info-box-title {
        font-size: 1.5em;
    }
    .page-payment-methods__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-payment-methods__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
    .page-payment-methods__card-btn {
        width: 100% !important;
    }
}