:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #1a1a1a; /* Assuming shared.css var(--dark-bg) is dark */
    --accent-login: #EA7C07;
}

.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Assuming body background is dark */
}

.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-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow: hidden;
}

.page-payment-methods__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 40px 20px;
}

.page-payment-methods__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-payment-methods__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-payment-methods__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-payment-methods__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Blend with background color */
    filter: none; /* No color filters */
}

/* General Sections */
.page-payment-methods__introduction-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__faq-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 60px 0;
}

.page-payment-methods__methods-section,
.page-payment-methods__security-section,
.page-payment-methods__cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
}

.page-payment-methods__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit from parent section */
}

.page-payment-methods__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.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;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-payment-methods__btn-primary {
    background-color: var(--accent-login); /* Login color for primary action */
    color: var(--text-light);
    border: 2px solid var(--accent-login);
}

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

.page-payment-methods__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-payment-methods__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.page-payment-methods__hero-section .page-payment-methods__btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}
.page-payment-methods__hero-section .page-payment-methods__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}


.page-payment-methods__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-payment-methods__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
    min-width: 200px;
}

.page-payment-methods__cta-text {
    text-align: center;
    margin-top: 30px;
    font-size: 1.2em;
}

/* Method Grid */
.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-color: var(--bg-light);
    color: var(--text-dark);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.page-payment-methods__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* No color filters */
}

.page-payment-methods__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-payment-methods__card-description {
    font-size: 1em;
    color: var(--text-dark);
}

/* Withdrawal Steps */
.page-payment-methods__steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-payment-methods__step-item {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.page-payment-methods__step-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-payment-methods__withdrawal-image,
.page-payment-methods__security-image {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    filter: none; /* No color filters */
}

/* Security Features */
.page-payment-methods__security-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    font-size: 1.1em;
    color: var(--text-light);
}

.page-payment-methods__security-features li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-payment-methods__security-features li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.page-payment-methods__feature-highlight {
    color: var(--secondary-color);
}

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

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

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border-bottom: 1px solid #eee;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-question {
    border-bottom: none;
}

.page-payment-methods__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: var(--primary-color);
}

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to X, or could change to minus */
}

.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: var(--secondary-color);
    color: var(--text-dark);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__main-title {
        font-size: 3em;
    }
    .page-payment-methods__section-title {
        font-size: 2em;
    }
    .page-payment-methods__hero-section {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__main-title {
        font-size: 2.5em;
    }
    .page-payment-methods__hero-description {
        font-size: 1.1em;
    }
    .page-payment-methods__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary,
    .page-payment-methods a[class*="button"],
    .page-payment-methods a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-payment-methods__cta-buttons,
    .page-payment-methods__button-group,
    .page-payment-methods__btn-container {
        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__cta-buttons {
        flex-direction: column;
    }

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

    .page-payment-methods__method-grid,
    .page-payment-methods__steps-list {
        grid-template-columns: 1fr;
    }

    .page-payment-methods__card-image,
    .page-payment-methods__withdrawal-image,
    .page-payment-methods__security-image,
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no filters are applied */
    }

    .page-payment-methods__introduction-section,
    .page-payment-methods__methods-section,
    .page-payment-methods__withdrawal-section,
    .page-payment-methods__security-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-section,
    .page-payment-methods__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-payment-methods__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-payment-methods__introduction-section .page-payment-methods__container,
    .page-payment-methods__methods-section .page-payment-methods__container,
    .page-payment-methods__withdrawal-section .page-payment-methods__container,
    .page-payment-methods__security-section .page-payment-methods__container,
    .page-payment-methods__faq-section .page-payment-methods__container,
    .page-payment-methods__cta-section .page-payment-methods__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-payment-methods__section-title {
        font-size: 1.8em;
    }
    .page-payment-methods__faq-question {
        padding: 15px 20px;
    }
    .page-payment-methods__faq-answer {
        padding: 0 20px;
    }
    .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
        padding: 15px 20px 20px 20px;
    }
}

/* Ensure images meet minimum size for content areas */
/* This rule targets any img within the main content area with width/height >= 200px */
.page-payment-methods img:not(.page-payment-methods__hero-image) {
    min-width: 200px;
    min-height: 200px;
}
/* Override for specific card images if needed to meet minimums while being responsive */
.page-payment-methods__method-card .page-payment-methods__card-image {
    min-width: 250px; /* Example: ensure card images are not too small */
    min-height: 180px; /* Maintain aspect ratio or adjust as needed */
    width: 100%; /* Make them fill the card space */
    height: auto;
    object-fit: cover;
}

/* Specific button color for login as per custom colors */
.page-payment-methods__btn-primary {
    background-color: var(--accent-login);
    border-color: var(--accent-login);
    color: var(--text-light);
}
.page-payment-methods__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

/* Ensure text contrast for light sections */
.page-payment-methods__introduction-section .page-payment-methods__text-block,
.page-payment-methods__withdrawal-section .page-payment-methods__text-block,
.page-payment-methods__faq-section .page-payment-methods__text-block,
.page-payment-methods__step-item p {
    color: var(--text-dark);
}

.page-payment-methods__introduction-section .page-payment-methods__section-title,
.page-payment-methods__withdrawal-section .page-payment-methods__section-title,
.page-payment-methods__faq-section .page-payment-methods__section-title {
    color: var(--primary-color);
}
.page-payment-methods__step-title {
    color: var(--primary-color);
}

/* Dark section titles */
.page-payment-methods__methods-section .page-payment-methods__section-title,
.page-payment-methods__security-section .page-payment-methods__section-title,
.page-payment-methods__cta-section .page-payment-methods__section-title {
    color: var(--text-light);
}
.page-payment-methods__methods-section .page-payment-methods__card-title {
    color: var(--primary-color);
}
.page-payment-methods__methods-section .page-payment-methods__card-description {
    color: var(--text-dark);
}
.page-payment-methods__methods-section .page-payment-methods__cta-text {
    color: var(--text-light);
}

/* Ensure no filter on images */
.page-payment-methods img {
    filter: none;
}