/* 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: #f8f8f8;
}

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

.page-payment-methods__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-payment-methods__hero-section {
    background-color: #000080; /* Auxiliary color for hero background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px);
    padding-bottom: 80px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-payment-methods__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Main color for title */
    line-height: 1.2;
}

.page-payment-methods__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-payment-methods__btn-primary {
    background-color: #FFD700; /* Main color */
    color: #000080; /* Auxiliary color for text */
    border: 2px solid #FFD700;
}

.page-payment-methods__btn-primary:hover {
    background-color: #e6c200;
    color: #000066;
}

.page-payment-methods__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Main color */
    border: 2px solid #FFD700;
}

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

.page-payment-methods__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #000080; /* Auxiliary color for section titles */
}

.page-payment-methods__overview-section .page-payment-methods__section-title,
.page-payment-methods__deposit-guide-section .page-payment-methods__section-title,
.page-payment-methods__withdrawal-guide-section .page-payment-methods__section-title,
.page-payment-methods__faq-section .page-payment-methods__section-title {
    color: #FFD700; /* Main color for titles on dark background */
}

.page-payment-methods__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #FFD700; /* Main color for sub-titles */
}

.page-payment-methods__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    flex-wrap: wrap;
}

.page-payment-methods__text-block {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
}

.page-payment-methods__image-wrapper {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-payment-methods__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    width: 100%; /* Ensure it fills its flex container */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-payment-methods__card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-payment-methods__card:hover {
    transform: translateY(-5px);
}

.page-payment-methods__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-payment-methods__card-title {
    font-size: 1.5em;
    color: #000080; /* Auxiliary color */
    margin-bottom: 15px;
}

.page-payment-methods__card p {
    font-size: 0.95em;
    color: #555555;
    text-align: left;
}

.page-payment-methods__ordered-list {
    list-style: decimal;
    padding-left: 20px;
    margin-top: 20px;
}

.page-payment-methods__ordered-list li {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #ffffff; /* White text on dark background */
}

.page-payment-methods__ordered-list li strong {
    color: #FFD700; /* Main color for emphasis */
}

.page-payment-methods__ordered-list li a {
    color: #FFD700;
    text-decoration: underline;
}

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

.page-payment-methods__faq-item {
    background-color: #000080; /* Auxiliary color for FAQ item background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700; /* Main color for FAQ question */
    background-color: #000080;
    transition: background-color 0.3s ease;
}

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

.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;
    color: #ffffff;
    background-color: #000080;
}

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

.page-payment-methods__faq-answer p {
    margin-bottom: 15px;
    color: #ffffff;
}

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

/* Color Contrast Specifics */
.page-payment-methods__dark-bg {
    background-color: #000080; /* Auxiliary color */
    color: #ffffff; /* White text on dark background */
}

.page-payment-methods__light-bg {
    background-color: #f8f8f8;
    color: #333333; /* Dark text on light background */
}

.page-payment-methods__cta-bottom {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333333;
}

.page-payment-methods__cta-bottom .page-payment-methods__btn-primary {
    background-color: #FFD700;
    color: #000080;
    border-color: #FFD700;
}

.page-payment-methods__cta-bottom .page-payment-methods__btn-primary:hover {
    background-color: #e6c200;
    color: #000066;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__main-title {
        font-size: 2.8em;
    }
    .page-payment-methods__section-title {
        font-size: 2em;
    }
    .page-payment-methods__sub-title {
        font-size: 1.5em;
    }
    .page-payment-methods__content-wrapper {
        flex-direction: column;
    }
    .page-payment-methods__text-block, .page-payment-methods__image-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-payment-methods__grid {
        grid-template-columns: 1fr;
    }
    .page-payment-methods__hero-section {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
    }
    .page-payment-methods__section {
        padding: 40px 0;
    }
    .page-payment-methods__main-title {
        font-size: 2.2em;
    }
    .page-payment-methods__description {
        font-size: 1em;
    }
    .page-payment-methods__section-title {
        font-size: 1.8em;
    }
    .page-payment-methods__sub-title {
        font-size: 1.3em;
    }
    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        padding: 12px 20px;
        font-size: 0.95em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-payment-methods__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
    }
    .page-payment-methods__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-payment-methods__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-payment-methods__image-wrapper,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__text-block,
    .page-payment-methods__hero-section,
    .page-payment-methods__overview-section,
    .page-payment-methods__deposit-methods,
    .page-payment-methods__deposit-guide-section,
    .page-payment-methods__withdrawal-methods,
    .page-payment-methods__withdrawal-guide-section,
    .page-payment-methods__security-policy,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-payment-methods__content-wrapper.page-payment-methods__reverse-order-mobile {
        flex-direction: column-reverse;
    }
    .page-payment-methods__ordered-list li {
        font-size: 1em;
    }
    .page-payment-methods__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-payment-methods__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__main-title {
        font-size: 1.8em;
    }
    .page-payment-methods__section-title {
        font-size: 1.5em;
    }
    .page-payment-methods__description {
        font-size: 0.9em;
    }
    .page-payment-methods__faq-question {
        font-size: 1em;
    }
}