/* style/payment-methods.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --register-login-font-color: #FFFF00;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --faq-question-bg: #fff;
    --faq-answer-bg: #f9f9f9;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

.page-payment-methods {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--secondary-color); /* Body background is white, so default text is dark */
}

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

/* --- General Section Styling --- */
.page-payment-methods__hero-section,
.page-payment-methods__introduction-section,
.page-payment-methods__deposit-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section,
.page-payment-methods__conclusion-section {
    padding: 60px 0;
    text-align: center;
}

.page-payment-methods__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-payment-methods__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

.page-payment-methods__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-payment-methods__section-description {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
    color: inherit;
}

/* --- Hero Section --- */
.page-payment-methods__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    padding-bottom: 60px;
}

.page-payment-methods__hero-section .page-payment-methods__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

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

.page-payment-methods__hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-payment-methods__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-color-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__hero-image {
    width: 100%;
    max-width: 1000px; /* Adjust max-width for visual balance */
    margin-top: 30px;
}

.page-payment-methods__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px var(--shadow-medium);
}

/* --- CTA Button --- */
.page-payment-methods__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-payment-methods__btn-primary {
    background: var(--register-color); /* Using register color for primary CTA */
    color: var(--register-login-font-color);
}

.page-payment-methods__btn-primary:hover {
    background: darken(var(--register-color), 10%); /* Example of darkening, actual CSS needs fixed color */
    background: #a80707; /* A slightly darker red */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-medium);
}

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

.page-payment-methods__btn-secondary:hover {
    background: var(--login-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-medium);
}

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

.page-payment-methods__method-card,
.page-payment-methods__step-item,
.page-payment-methods__feature-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%; /* Ensure cards have equal height */
}

.page-payment-methods__method-card:hover,
.page-payment-methods__step-item:hover,
.page-payment-methods__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.page-payment-methods__method-card img,
.page-payment-methods__step-item img,
.page-payment-methods__feature-item img {
    width: 100%;
    height: 250px; /* Fixed height for images in cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Global image min-size */
    min-height: 200px; /* Global image min-size */
}

.page-payment-methods__method-title,
.page-payment-methods__step-title,
.page-payment-methods__feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-payment-methods__method-description,
.page-payment-methods__step-description,
.page-payment-methods__feature-description {
    font-size: 16px;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-payment-methods__method-details {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
    color: var(--text-color-dark);
    text-align: left;
    width: 100%;
}

.page-payment-methods__method-details li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.page-payment-methods__method-details li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
}

.page-payment-methods__withdrawal-info {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
    font-size: 17px;
    color: var(--text-color-light);
}

.page-payment-methods__withdrawal-info li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-payment-methods__withdrawal-info li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
}

.page-payment-methods__security-callout {
    font-size: 18px;
    font-style: italic;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-dark);
}

.page-payment-methods__button-group {
    margin-top: 30px;
}

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

.page-payment-methods__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-payment-methods__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 2000px !important; /* 🚨 Using !important and large value */
    padding: 20px 15px !important;
    opacity: 1;
    background: var(--faq-answer-bg);
    border-radius: 0 0 5px 5px;
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--faq-question-bg);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-payment-methods__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-payment-methods__faq-question:active {
    background: #eeeeee;
}

.page-payment-methods__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color-dark);
    pointer-events: none; /* Prevent h3 from blocking click */
}

.page-payment-methods__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change to X or just '-' */
}

/* --- Mobile Responsive Design --- */
@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-payment-methods__hero-title {
        font-size: 32px;
    }

    .page-payment-methods__hero-description {
        font-size: 16px;
    }

    .page-payment-methods__hero-image img {
        border-radius: 8px;
    }

    .page-payment-methods__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-payment-methods__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Images responsive */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important; /* Allow smaller images if needed for layout, but still >= 200px */
        min-height: unset !important;
    }

    .page-payment-methods__method-card img,
    .page-payment-methods__step-item img,
    .page-payment-methods__feature-item img {
        height: 200px; /* Adjust fixed height for mobile */
    }

    .page-payment-methods__container,
    .page-payment-methods__methods-grid,
    .page-payment-methods__withdrawal-steps,
    .page-payment-methods__security-features,
    .page-payment-methods__faq-list {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

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

    .page-payment-methods__method-card,
    .page-payment-methods__step-item,
    .page-payment-methods__feature-item {
        padding: 20px;
        border-radius: 8px;
    }

    .page-payment-methods__method-title,
    .page-payment-methods__step-title,
    .page-payment-methods__feature-title {
        font-size: 20px;
    }

    .page-payment-methods__method-description,
    .page-payment-methods__step-description,
    .page-payment-methods__feature-description {
        font-size: 14px;
    }

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

    .page-payment-methods__faq-question h3 {
        font-size: 16px;
    }

    .page-payment-methods__faq-toggle {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }

    .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
        padding: 15px !important;
    }

    /* Buttons responsive */
    .page-payment-methods__cta-button,
    .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: 12px 20px;
        font-size: 16px;
    }

    .page-payment-methods__button-group {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}