/* style/payment-methods.css */

/* Base styles for the payment methods page */
.page-payment-methods {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity */
}

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

.page-payment-methods__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-payment-methods__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #333333;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-payment-methods__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

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

.page-payment-methods__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-payment-methods__btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-payment-methods__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-payment-methods__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-payment-methods__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-payment-methods__hero-description {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

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

.page-payment-methods__hero-cta-buttons .page-payment-methods__btn-secondary {
    background-color: #C30808; /* Login/Register color */
    color: #FFFF00; /* Login/Register font color */
    border-color: #C30808;
}

.page-payment-methods__hero-cta-buttons .page-payment-methods__btn-secondary:hover {
    background-color: #a00606;
}

/* Overview Section */
.page-payment-methods__overview-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-payment-methods__feature-card.page-payment-methods__card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #e0e0e0;
    color: #333333;
}

.page-payment-methods__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-payment-methods__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-payment-methods__feature-card p {
    font-size: 1em;
    color: #555555;
}

/* Deposit/Withdrawal Methods Sections */
.page-payment-methods__deposit-methods-section,
.page-payment-methods__withdrawal-methods-section {
    padding: 80px 0;
}

.page-payment-methods__payment-option {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.page-payment-methods__payment-option:nth-child(even) {
    flex-direction: row-reverse;
}

.page-payment-methods__payment-option .page-payment-methods__payment-icon {
    flex-shrink: 0;
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.page-payment-methods__payment-details {
    flex-grow: 1;
}

.page-payment-methods__payment-details p {
    margin-bottom: 15px;
    color: #555555;
}

.page-payment-methods__payment-details .page-payment-methods__btn-primary {
    margin-top: 15px;
}

.page-payment-methods__withdrawal-methods-section .page-payment-methods__card.page-payment-methods__card--dark-bg {
    background-color: #005f2e; /* Slightly darker green for contrast */
    color: #ffffff;
    border: 1px solid #017439;
}

.page-payment-methods__withdrawal-methods-section .page-payment-methods__card--dark-bg .page-payment-methods__card-title,
.page-payment-methods__withdrawal-methods-section .page-payment-methods__card--dark-bg p {
    color: #f0f0f0;
}

/* Security Section */
.page-payment-methods__security-section {
    padding: 80px 0;
    text-align: center;
}

.page-payment-methods__security-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-payment-methods__security-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #eee;
    color: #333333;
}

.page-payment-methods__security-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
}

.page-payment-methods__list-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-payment-methods__security-item p {
    font-size: 0.95em;
    color: #666666;
}

/* FAQ Section */
.page-payment-methods__faq-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
    text-align: center;
}

.page-payment-methods__faq-section .page-payment-methods__section-title {
    color: #ffffff;
}

.page-payment-methods__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-payment-methods__faq-item {
    background-color: #005f2e; /* Darker green for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #017439;
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.15em;
    transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
    background-color: #004d26;
}

.page-payment-methods__faq-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.15em; /* Ensure font size consistency */
}

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
    font-size: 1em;
    color: #f0f0f0;
}

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

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

/* CTA Section */
.page-payment-methods__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439;
    color: #ffffff;
}

.page-payment-methods__cta-section .page-payment-methods__section-title {
    color: #ffffff;
}

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

.page-payment-methods__cta-buttons .page-payment-methods__btn-primary {
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    border-color: #C30808;
}

.page-payment-methods__cta-buttons .page-payment-methods__btn-primary:hover {
    background-color: #a00606;
}

.page-payment-methods__cta-buttons .page-payment-methods__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border-color: #017439;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: 2.8em;
    }

    .page-payment-methods__section-title {
        font-size: 2em;
    }

    .page-payment-methods__payment-option {
        flex-direction: column;
        text-align: center;
    }

    .page-payment-methods__payment-option:nth-child(even) {
        flex-direction: column;
    }

    .page-payment-methods__payment-option .page-payment-methods__payment-icon {
        width: 100%;
        height: auto;
        max-width: 600px; /* Constrain max width for larger tablets */
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-payment-methods {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-payment-methods__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-payment-methods__hero-title {
        font-size: 2.2em;
    }

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

    .page-payment-methods__section-title {
        font-size: 1.8em;
    }

    .page-payment-methods__text-block {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-payment-methods__features-grid,
    .page-payment-methods__security-list {
        grid-template-columns: 1fr;
    }

    .page-payment-methods__payment-option {
        padding: 20px;
        gap: 20px;
    }

    .page-payment-methods__payment-option .page-payment-methods__payment-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px; /* Ensure minimum size */
    }

    .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__hero-cta-buttons,
    .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-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        overflow: hidden !important;
    }

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

    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px; /* Ensure minimum size for all content images */
    }

    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__payment-option,
    .page-payment-methods__security-item,
    .page-payment-methods__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-payment-methods__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    
    .page-payment-methods__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__hero-title {
        font-size: 1.8em;
    }

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

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