/* style/payment-methods.css */
/* Custom CSS Variables for colors */
:root {
    --page-payment-methods-primary-color: #11A84E;
    --page-payment-methods-secondary-color: #22C768;
    --page-payment-methods-button-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;
}

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

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-payment-methods-background);
    color: var(--page-payment-methods-text-main);
    text-align: center;
}

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

.page-payment-methods__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-payment-methods__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--page-payment-methods-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-payment-methods__description {
    font-size: 1.1rem;
    color: var(--page-payment-methods-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow button text to wrap */
    word-wrap: break-word; /* Allow button text to break words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-payment-methods__btn-primary {
    background: var(--page-payment-methods-button-gradient);
    color: var(--page-payment-methods-text-main);
    border: 2px solid transparent;
}

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

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

.page-payment-methods__btn-secondary:hover {
    background: rgba(var(--page-payment-methods-border), 0.2);
    transform: translateY(-3px);
}

/* General Section Styling */
.page-payment-methods__section {
    padding: 80px 20px;
    background-color: var(--page-payment-methods-background);
    color: var(--page-payment-methods-text-main);
}

.page-payment-methods__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--page-payment-methods-text-main);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-payment-methods__container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-payment-methods__text-main {
    color: var(--page-payment-methods-text-main);
}

.page-payment-methods__text-secondary {
    color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Deposit Methods Grid */
.page-payment-methods__deposit-methods {
    background-color: var(--page-payment-methods-background);
}

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

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

.page-payment-methods__method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

.page-payment-methods__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--page-payment-methods-text-main);
    margin-bottom: 15px;
}

.page-payment-methods__card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-payment-methods__card-content .page-payment-methods__text-block {
    text-align: left;
}

.page-payment-methods__card-content .page-payment-methods__btn-primary {
    margin-top: 25px;
    align-self: center;
}

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

.page-payment-methods__list li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.page-payment-methods__ordered-list {
    list-style: decimal;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--page-payment-methods-text-secondary);
    text-align: left;
}

.page-payment-methods__ordered-list li {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Box Styling (for Withdraw and Tips sections) */
.page-payment-methods__box {
    background-color: var(--page-payment-methods-card-bg);
    border: 1px solid var(--page-payment-methods-border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__box-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--page-payment-methods-text-main);
    margin-bottom: 20px;
    text-align: center;
}

/* Security Policy */
.page-payment-methods__security-policy {
    background-color: var(--page-payment-methods-deep-green); /* Use deep green for this section */
    color: var(--page-payment-methods-text-main);
}

.page-payment-methods__security-policy .page-payment-methods__section-title {
    color: var(--page-payment-methods-text-main);
}

.page-payment-methods__security-policy .page-payment-methods__text-block,
.page-payment-methods__security-policy .page-payment-methods__list li {
    color: var(--page-payment-methods-text-secondary);
}

/* FAQ Section */
.page-payment-methods__faq-section {
    background-color: var(--page-payment-methods-background);
}

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

.page-payment-methods__faq-item {
    background-color: var(--page-payment-methods-card-bg);
    border: 1px solid var(--page-payment-methods-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-payment-methods-text-main);
}

.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-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-payment-methods-text-main);
    background-color: var(--page-payment-methods-card-bg);
    transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
    background-color: rgba(var(--page-payment-methods-border), 0.1);
}

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

.page-payment-methods__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--page-payment-methods-text-secondary);
    line-height: 1.6;
}

/* Final CTA Section */
.page-payment-methods__cta-final {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--page-payment-methods-deep-green);
    color: var(--page-payment-methods-text-main);
}

.page-payment-methods__cta-final .page-payment-methods__section-title {
    color: var(--page-payment-methods-text-main);
    margin-bottom: 25px;
}

.page-payment-methods__cta-final .page-payment-methods__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    color: var(--page-payment-methods-text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-payment-methods__section {
        padding: 60px 15px;
    }
    .page-payment-methods__method-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .page-payment-methods__card-image {
        min-width: 200px; /* Ensure min size */
        min-height: 200px; /* Ensure min size */
    }
}

@media (max-width: 768px) {
    .page-payment-methods {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-payment-methods__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }
    .page-payment-methods__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-payment-methods__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .page-payment-methods__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-payment-methods__section {
        padding: 40px 15px;
    }
    .page-payment-methods__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-payment-methods__text-block {
        font-size: 0.95rem;
    }
    .page-payment-methods__image {
        margin: 30px auto;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-payment-methods__method-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-payment-methods__method-card {
        padding: 20px;
    }
    .page-payment-methods__card-image {
        min-width: 200px; /* Ensure min size */
        min-height: 200px; /* Ensure min size */
        max-width: 100% !important;
        height: auto !important;
    }
    .page-payment-methods__card-title {
        font-size: 1.3rem;
    }
    .page-payment-methods__box {
        padding: 20px;
        margin-bottom: 20px;
    }
    .page-payment-methods__box-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    .page-payment-methods__list,
    .page-payment-methods__ordered-list {
        margin-left: 20px;
    }
    .page-payment-methods__list li,
    .page-payment-methods__ordered-list li {
        font-size: 0.95rem;
    }
    .page-payment-methods__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-payment-methods__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* Mobile container padding for sections */
    .page-payment-methods__section,
    .page-payment-methods__hero-section,
    .page-payment-methods__container,
    .page-payment-methods__method-card,
    .page-payment-methods__box,
    .page-payment-methods__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */ /* Handled by specific elements/sections */
        /* padding-right: 15px; */
    }
    /* Specific padding for mobile to avoid content touching edges, but not on outer most containers */
    .page-payment-methods__introduction .page-payment-methods__container,
    .page-payment-methods__deposit-methods .page-payment-methods__container,
    .page-payment-methods__withdraw-methods .page-payment-methods__container,
    .page-payment-methods__security-policy .page-payment-methods__container,
    .page-payment-methods__tips .page-payment-methods__container,
    .page-payment-methods__faq-section .page-payment-methods__container,
    .page-payment-methods__cta-final .page-payment-methods__cta-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-payment-methods__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-payment-methods__hero-image-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-payment-methods__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-payment-methods__cta-final {
        padding-left: 0;
        padding-right: 0;
    }
}