:root {
    --page-bg-color: #08160F; /* Background */
    --card-bg-color: #11271B; /* Card B G */
    --text-main-color: #F2FFF6; /* Text Main */
    --text-secondary-color: #A7D9B8; /* Text Secondary */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green-color: #0A4B2C; /* Deep Green */
    --primary-color: #11A84E; /* Main color */
    --secondary-color: #22C768; /* Auxiliary color */
}

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

.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;
    min-height: 500px; /* Ensure hero section has some height */
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden; /* For image positioning */
}

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

.page-payment-methods__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background effect */
    min-width: 200px;
    min-height: 200px;
}

.page-payment-methods__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(17, 39, 27, 0.7); /* Card B G with transparency */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* H1 font size constraint */
    color: var(--gold-color); /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-payment-methods__description {
    font-size: 1.15rem;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
}

.page-payment-methods__cta-buttons {
    display: flex;
    gap: 15px;
    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-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    box-sizing: border-box;
    min-width: 180px;
}

.page-payment-methods__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main-color);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-payment-methods__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

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

/* Section Styling */
.page-payment-methods__overview-section,
.page-payment-methods__deposit-methods-section,
.page-payment-methods__deposit-guide-section,
.page-payment-methods__withdrawal-methods-section,
.page-payment-methods__withdrawal-guide-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-section {
    padding: 60px 0;
}

.page-payment-methods__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-payment-methods__section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-payment-methods__text-block {
    font-size: 1.05rem;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    text-align: justify;
}

.page-payment-methods__text-block a {
    color: var(--glow-color); /* Link color */
    text-decoration: underline;
}

.page-payment-methods__text-block a:hover {
    color: var(--gold-color);
}

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

.page-payment-methods__method-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__method-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 8px;
    min-width: 200px; /* Min image size requirement */
    min-height: 150px; /* Min image size requirement */
}

.page-payment-methods__card-title {
    font-size: 1.6rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-payment-methods__card-description {
    font-size: 1rem;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    text-align: justify;
}

.page-payment-methods__card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-main-color);
}

.page-payment-methods__card-features li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.page-payment-methods__card-features li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--glow-color);
}

.page-payment-methods__cta-buttons--center {
    margin-top: 40px;
}

/* Guide List */
.page-payment-methods__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-payment-methods__guide-list li {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-main-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__guide-list li strong {
    color: var(--gold-color);
    font-size: 1.15rem;
    display: block;
    margin-bottom: 10px;
}

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

.page-payment-methods__feature-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__feature-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size requirement */
    min-height: 150px; /* Min image size requirement */
}

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

.page-payment-methods__feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
}

/* FAQ Section */
.page-payment-methods__faq-list {
    margin-top: 40px;
}

.page-payment-methods__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-main-color);
    cursor: pointer;
    background-color: var(--deep-green-color); /* Slightly darker background for question */
    border-bottom: 1px solid transparent; /* No border by default */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
    border-bottom-color: var(--border-color); /* Border when open */
}

.page-payment-methods__faq-question:hover {
    background-color: var(--primary-color);
}

.page-payment-methods__faq-item details > summary {
    list-style: none;
}
.page-payment-methods__faq-item details > summary::-webkit-details-marker {
    display: none;
}

.page-payment-methods__faq-qtext {
    flex-grow: 1;
    color: var(--text-main-color); /* Ensure text color is visible */
}

.page-payment-methods__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow-color);
}

.page-payment-methods__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary-color);
    background-color: var(--card-bg-color);
    border-top: 1px solid var(--divider-color);
}

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

/* CTA Section (Dark background) */
.page-payment-methods__cta-section {
    background-color: var(--deep-green-color); /* Using deep green for this CTA */
    text-align: center;
    padding: 80px 0;
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__cta-content {
    max-width: 900px;
}

.page-payment-methods__cta-section .page-payment-methods__section-title {
    color: var(--gold-color);
    margin-bottom: 25px;
}

.page-payment-methods__cta-section .page-payment-methods__text-block {
    color: var(--text-main-color);
    margin-bottom: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-payment-methods__hero-content {
        max-width: 600px;
    }
    .page-payment-methods__section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__container {
        padding: 0 15px !important;
    }

    .page-payment-methods__hero-section {
        min-height: 400px;
        padding-bottom: 40px;
        padding-top: 10px !important; /* body handles header offset, small top padding for section */
    }

    .page-payment-methods__hero-content {
        padding: 15px;
        background-color: rgba(17, 39, 27, 0.85); /* Slightly more opaque on mobile */
    }

    .page-payment-methods__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-payment-methods__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .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;
        padding-right: 15px;
        min-width: unset;
    }

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

    .page-payment-methods__overview-section,
    .page-payment-methods__deposit-methods-section,
    .page-payment-methods__deposit-guide-section,
    .page-payment-methods__withdrawal-methods-section,
    .page-payment-methods__withdrawal-guide-section,
    .page-payment-methods__security-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-section {
        padding: 40px 0;
    }

    .page-payment-methods__method-grid,
    .page-payment-methods__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-payment-methods__method-card,
    .page-payment-methods__feature-item,
    .page-payment-methods__guide-list li,
    .page-payment-methods__faq-item {
        padding: 20px;
    }

    .page-payment-methods__method-icon,
    .page-payment-methods__feature-icon {
        max-width: 200px !important;
        margin-left: auto;
        margin-right: auto;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-payment-methods__card-title,
    .page-payment-methods__feature-title {
        font-size: 1.4rem;
    }

    .page-payment-methods__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-payment-methods__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image responsive adaptation */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__cta-buttons,
    .page-payment-methods__button-group,
    .page-payment-methods__btn-container,
    .page-payment-methods__hero-image-wrapper,
    .page-payment-methods__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */
        /* padding-right: 15px; */
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
}

/* Ensure content images have min-size for non-mobile */
.page-payment-methods__method-icon,
.page-payment-methods__feature-icon {
    min-width: 200px;
    min-height: 150px;
}
.page-payment-methods__hero-image {
    min-width: 200px;
    min-height: 200px;
}

/* Contrast fix if needed */
.page-payment-methods__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-payment-methods__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}