:root {
    --page-payment-methods-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-payment-methods-card-bg: #11271B;
    --page-payment-methods-background: #08160F;
    --page-payment-methods-text-main: #F2FFF6;
    --page-payment-methods-text-secondary: #A7D9B8;
    --page-payment-methods-border: #2E7A4E;
    --page-payment-methods-glow: #57E38D;
    --page-payment-methods-gold: #F2C14E;
    --page-payment-methods-divider: #1E3A2A;
    --page-payment-methods-deep-green: #0A4B2C;
    --primary-color: #11A84E;
    --secondary-color: #22C768;
}

.page-payment-methods {
    background-color: var(--page-payment-methods-background);
    color: var(--page-payment-methods-text-main); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-payment-methods__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    position: relative;
    overflow: hidden;
    background-color: var(--page-payment-methods-deep-green);
}

.page-payment-methods__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
}

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

.page-payment-methods__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with image for visual effect, but text is below */
    position: relative;
    z-index: 1;
    background-color: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Use clamp for H1 */
    color: var(--page-payment-methods-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* General Sections */
.page-payment-methods__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-payment-methods-divider);
}

.page-payment-methods__section:last-of-type {
    border-bottom: none;
}

.page-payment-methods__section-title {
    font-size: 2.5em;
    color: var(--page-payment-methods-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-payment-methods__section-subtitle {
    font-size: 1.8em;
    color: var(--page-payment-methods-text-main);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-payment-methods__text-block {
    font-size: 1em;
    color: var(--page-payment-methods-text-secondary);
    margin-bottom: 15px;
}

.page-payment-methods__list {
    list-style: disc;
    margin-left: 20px;
    color: var(--page-payment-methods-text-secondary);
    margin-bottom: 20px;
}

.page-payment-methods__list li {
    margin-bottom: 8px;
}

/* 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;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-payment-methods__btn-primary {
    background: var(--page-payment-methods-btn-gradient);
    color: var(--page-payment-methods-text-main);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-payment-methods__btn-secondary {
    background-color: transparent;
    color: var(--page-payment-methods-text-main); /* Changed to light text for contrast */
    border: 2px solid var(--page-payment-methods-gold); /* Changed border to gold */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__btn-secondary:hover {
    background-color: var(--page-payment-methods-gold); /* Hover background gold */
    color: var(--page-payment-methods-background); /* Hover text dark */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__cta-container {
    text-align: center;
    margin-top: 40px;
}

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

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

.page-payment-methods__method-card {
    background-color: var(--page-payment-methods-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-payment-methods__method-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

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

.page-payment-methods__card-description {
    color: var(--page-payment-methods-text-secondary);
    margin-bottom: 15px;
    flex-grow: 1; /* Make description take available space */
}

.page-payment-methods__card-list {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
    color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__card-list li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.page-payment-methods__card-list li::before {
    content: '•';
    color: var(--page-payment-methods-gold);
    position: absolute;
    left: 0;
}

/* Guide List */
.page-payment-methods__guide-list {
    list-style: none;
    counter-reset: guide-counter;
    padding: 0;
    margin-top: 30px;
}

.page-payment-methods__guide-list li {
    counter-increment: guide-counter;
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
    color: var(--page-payment-methods-text-main);
    font-size: 1.1em;
}

.page-payment-methods__guide-list li::before {
    content: counter(guide-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--page-payment-methods-text-main);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9em;
}

.page-payment-methods__guide-list li strong {
    color: var(--page-payment-methods-gold);
}

/* Security Info */
.page-payment-methods__security-info {
    background-color: var(--page-payment-methods-deep-green);
    padding: 80px 0;
}

.page-payment-methods__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-payment-methods__security-text {
    flex: 1;
    min-width: 300px;
}

.page-payment-methods__security-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.page-payment-methods__security-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

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

.page-payment-methods__faq-list {
    margin-top: 30px;
}

.page-payment-methods__faq-item {
    background-color: var(--page-payment-methods-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    color: var(--page-payment-methods-text-main);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--page-payment-methods-gold);
    background-color: var(--page-payment-methods-deep-green);
    border-bottom: 1px solid var(--page-payment-methods-divider);
    list-style: none; /* For details/summary */
}

.page-payment-methods__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
    border-bottom: 1px solid var(--page-payment-methods-border);
}

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

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--page-payment-methods-gold);
}

.page-payment-methods__faq-answer {
    padding: 20px 25px;
    font-size: 0.95em;
    color: var(--page-payment-methods-text-secondary);
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-payment-methods__container {
        padding: 0 15px;
    }

    .page-payment-methods__hero-content {
        padding: 30px 15px;
        margin-top: -60px;
    }

    .page-payment-methods__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-payment-methods__hero-description {
        font-size: 1em;
    }

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

    .page-payment-methods__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-payment-methods__section-subtitle {
        font-size: 1.5em;
    }

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

    .page-payment-methods__security-content {
        flex-direction: column;
    }

    .page-payment-methods__security-text,
    .page-payment-methods__security-image-wrapper {
        min-width: unset;
        width: 100%;
    }

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

    /* All images responsive */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All image/video/button containers responsive */
    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__method-card,
    .page-payment-methods__security-image-wrapper,
    .page-payment-methods__cta-container,
    .page-payment-methods__cta-buttons,
    .page-payment-methods__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Specific padding adjustments for sections that already have padding */
    .page-payment-methods__hero-section,
    .page-payment-methods__introduction,
    .page-payment-methods__deposit-methods,
    .page-payment-methods__withdrawal-methods,
    .page-payment-methods__security-info,
    .page-payment-methods__faq-section,
    .page-payment-methods__call-to-action {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-payment-methods__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Buttons responsive */
    .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;
    }
}

/* Ensure content area images are at least 200x200px */
.page-payment-methods img:not(.page-payment-methods__hero-image) {
    min-width: 200px;
    min-height: 200px;
}