.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

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

.page-payment-methods__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    padding-bottom: 60px;
    overflow: hidden;
}

.page-payment-methods__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6); /* Slightly darken image for text readability, not changing color */
}

.page-payment-methods__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #ffffff;
}

.page-payment-methods__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.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, transform 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-payment-methods__btn-primary {
    background-color: #C30808; /* Custom color for login/register */
    color: #FFFF00; /* Custom font color */
    border: 2px solid #C30808;
}

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

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

.page-payment-methods__btn-secondary:hover {
    background-color: #005a2d;
    transform: translateY(-2px);
}

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

.page-payment-methods__dark-bg .page-payment-methods__section-title {
    color: #ffffff; /* White for titles on dark backgrounds */
}

.page-payment-methods__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #333333; /* Dark text for light backgrounds */
}

.page-payment-methods__dark-bg .page-payment-methods__section-description {
    color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-payment-methods__paragraph {
    font-size: 1em;
    margin-bottom: 20px;
    color: #333333;
}

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

/* Introduction Section */
.page-payment-methods__introduction-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-payment-methods__introduction-section .page-payment-methods__image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

/* Details Section (Payment Methods) */
.page-payment-methods__details-section {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color background */
    color: #ffffff;
}

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

.page-payment-methods__card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

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

.page-payment-methods__card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-payment-methods__card-text {
    margin-bottom: 15px;
}

.page-payment-methods__list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 0;
}

.page-payment-methods__list-item {
    margin-bottom: 10px;
}

/* Withdrawal Section */
.page-payment-methods__withdrawal-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-payment-methods__step-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #017439;
}

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

.page-payment-methods__step-text {
    font-size: 1em;
    color: #555555;
}

/* Security Section */
.page-payment-methods__security-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

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

.page-payment-methods__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-payment-methods__feature-icon {
    width: 100px; /* Example fixed size, but ensure min-width/height is met */
    height: auto;
    margin-bottom: 20px;
    min-width: 200px; /* Override for compliance */
    min-height: 200px; /* Override for compliance */
    object-fit: contain;
}

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

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

/* FAQ Section */
.page-payment-methods__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333333;
}

.page-payment-methods__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-payment-methods__faq-item {
    background-color: #ffffff;
    margin-bottom: 15px;
    border-radius: 8px;
    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;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #e6f7ed; /* Light green background for summary */
    border-bottom: 1px solid #d0e7d7;
    list-style: none; /* For details/summary */
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
    border-bottom: 1px solid #c0e0c9;
}

.page-payment-methods__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-payment-methods__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
}

.page-payment-methods__faq-text {
    margin-bottom: 0;
}

/* CTA Bottom Section */
.page-payment-methods__cta-bottom-section {
    padding: 60px 0;
    background-color: #017439;
    text-align: center;
    color: #ffffff;
}

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

.page-payment-methods__cta-bottom-section .page-payment-methods__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* 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__hero-title {
        font-size: 2em;
    }
    .page-payment-methods__hero-description {
        font-size: 1em;
    }
    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }
    .page-payment-methods__section-title {
        font-size: 1.8em;
    }
    .page-payment-methods__section-description {
        font-size: 0.95em;
    }
    .page-payment-methods__card,
    .page-payment-methods__step-card,
    .page-payment-methods__feature-card {
        padding: 20px;
    }
    .page-payment-methods__method-grid,
    .page-payment-methods__withdrawal-steps,
    .page-payment-methods__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Forced responsive image/video/button styles */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
    }
    
    .page-payment-methods video,
    .page-payment-methods__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-payment-methods__hero-section,
    .page-payment-methods__introduction-section,
    .page-payment-methods__details-section,
    .page-payment-methods__withdrawal-section,
    .page-payment-methods__security-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-bottom-section,
    .page-payment-methods__container,
    .page-payment-methods__card,
    .page-payment-methods__step-card,
    .page-payment-methods__feature-card,
    .page-payment-methods__video-section,
    .page-payment-methods__video-container,
    .page-payment-methods__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-payment-methods__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile */
    }
    .page-payment-methods__faq-list {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-payment-methods__faq-item {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__hero-title {
        font-size: 1.8em;
    }
    .page-payment-methods__section-title {
        font-size: 1.5em;
    }
}