/* style/payment-methods.css */
.page-payment-methods {
    background-color: #08160F; /* Custom Background */
    color: #F2FFF6; /* Custom Text Main */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px;
}

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

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    padding-top: 10px; /* Adhering to the 10px rule for hero section top padding */
    padding-bottom: 40px;
    background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-payment-methods__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; 
    margin-bottom: 30px; /* Space between image and content */
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    filter: none !important;
}

.page-payment-methods__hero-content {
    max-width: 900px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.page-payment-methods__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Important for mobile responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-payment-methods__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Color */
    color: #F2FFF6; /* Text Main */
    border: none;
}

.page-payment-methods__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-payment-methods__btn-secondary {
    background: #11271B; /* Card BG */
    color: #57E38D; /* Glow */
    border: 2px solid #2E7A4E; /* Border */
}

.page-payment-methods__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background: #1E3A2A; /* Divider */
    color: #F2FFF6; /* Text Main */
}

.page-payment-methods__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__text-block {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: justify;
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-payment-methods__method-card {
    background: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    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.4);
}

.page-payment-methods__method-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #1E3A2A; /* Divider */
    filter: none !important;
}

.page-payment-methods__card-title {
    font-size: 1.5rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-payment-methods__card-description {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.5;
}

.page-payment-methods__security-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

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

.page-payment-methods__security-item {
    background: #0A4B2C; /* Deep Green */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
}

.page-payment-methods__security-icon {
    width: 200px; /* Enforced minimum size */
    height: 200px; /* Enforced minimum size */
    margin-bottom: 15px;
    object-fit: contain;
    filter: none !important;
}

.page-payment-methods__list-title {
    font-size: 1.3rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-payment-methods__list-description {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.5;
}

/* FAQ Section */
.page-payment-methods__faq-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

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

.page-payment-methods__faq-item {
    background: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    background: #0A4B2C; /* Deep Green */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
    background: #13994A; /* Darker green on open */
}

.page-payment-methods__faq-question:hover {
    background: #13994A;
}

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

.page-payment-methods__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
    color: #57E38D; /* Glow */
}

/* For details tag, hide default marker */
.page-payment-methods__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-payment-methods__faq-item summary::marker {
    display: none;
}

.page-payment-methods__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.6;
}

.page-payment-methods__cta-final-section {
    padding-top: 50px;
    padding-bottom: 50px;
    background: linear-gradient(180deg, #08160F 0%, #0A4B2C 100%); /* Background to Deep Green */
}

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

    .page-payment-methods__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO 主图区域 */
    .page-payment-methods__hero-section {
        padding-top: 10px !important; /* Fixed top padding */
        padding-bottom: 20px !important;
    }

    .page-payment-methods__hero-image-wrapper {
        margin-bottom: 20px !important;
    }

    .page-payment-methods__main-title {
        font-size: 2rem !important;
        margin-bottom: 10px !important;
    }

    .page-payment-methods__hero-description {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }

    /* 按钮与按钮容器 */
    .page-payment-methods__cta-group {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important; /* Ensure container takes full width */
        padding: 0 15px !important; /* Add padding to prevent buttons from touching edges */
        box-sizing: border-box !important;
    }

    .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-left: 15px !important;
        padding-right: 15px !important;
        font-size: 1rem !important;
    }

    .page-payment-methods__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
    }

    .page-payment-methods__text-block {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
    }

    /* 通用图片与容器 */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-payment-methods__method-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page-payment-methods__method-image {
        height: auto !important; /* Allow height to adjust naturally */
        max-height: 250px !important; /* Cap max height for mobile images */
    }

    .page-payment-methods__security-list {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page-payment-methods__security-icon {
        width: 100% !important;
        height: auto !important;
        max-width: 200px !important; /* Maintain aspect ratio, but cap width */
        max-height: 200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* 其他内容模块 (FAQ) */
    .page-payment-methods__faq-question {
        font-size: 1.1rem !important;
        padding: 15px 20px !important;
    }

    .page-payment-methods__faq-answer {
        padding: 0 20px 15px !important;
        font-size: 0.95rem !important;
    }

    .page-payment-methods__method-card,
    .page-payment-methods__security-item,
    .page-payment-methods__faq-item {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}