/* style/payment-methods.css */

:root {
    --primary-color: #0A2463;
    --secondary-color: #E8A317;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #0A2463;
    --border-color: #e0e0e0;
}

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

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

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding to avoid double spacing with body offset */
    background-color: var(--primary-color);
}

.page-payment-methods__hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-payment-methods__text-container {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 100%;
    box-sizing: border-box;
}

.page-payment-methods__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 15px;
}

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

.page-payment-methods__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

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

.page-payment-methods__cta-button--primary:hover {
    background-color: darken(var(--secondary-color), 10%);
    color: var(--primary-color);
}

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

.page-payment-methods__cta-button--secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* General Section Styles */
.page-payment-methods__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-payment-methods__section-title--light {
    color: var(--text-light);
}

.page-payment-methods__sub-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-payment-methods__text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.page-payment-methods__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 60px 0;
}

.page-payment-methods__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0;
}

/* Security Section */
.page-payment-methods__security-section .page-payment-methods__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-payment-methods__security-item .page-payment-methods__sub-title {
    color: var(--primary-color);
}

/* Payment Methods Section */
.page-payment-methods__methods-section .page-payment-methods__method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-payment-methods__method-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-payment-methods__method-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-payment-methods__method-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-payment-methods__method-title--light {
    color: var(--secondary-color);
}

.page-payment-methods__method-description--light {
    color: var(--text-light);
}

/* Deposit/Withdrawal Guide Sections */
.page-payment-methods__guide-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.page-payment-methods__guide-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-payment-methods__guide-steps {
    flex: 1;
}

.page-payment-methods__guide-steps--light .page-payment-methods__step-title--light,
.page-payment-methods__guide-steps--light .page-payment-methods__step-description--light {
    color: var(--text-light);
}

.page-payment-methods__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.page-payment-methods__step-number {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 15px;
    font-size: 1.1em;
}

.page-payment-methods__step-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: bold;
}

.page-payment-methods__step-title--light {
    color: var(--secondary-color);
}

.page-payment-methods__guide-image {
    flex: 1;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

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

.page-payment-methods__info-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__info-card a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-payment-methods__info-card a:hover {
    color: var(--secondary-color);
}

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

.page-payment-methods__faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
}

.page-payment-methods__faq-question:hover {
    opacity: 0.8;
}

.page-payment-methods__faq-title {
    font-size: 1.2em;
    color: var(--primary-color);
    margin: 0;
    flex-grow: 1;
}

.page-payment-methods__faq-title--light {
    color: var(--text-light);
}

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-payment-methods__faq-toggle--light {
    color: var(--secondary-color);
}

.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 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-image {
        height: 500px;
    }
    .page-payment-methods__guide-wrapper {
        flex-direction: column;
    }
    .page-payment-methods__guide-wrapper--reverse {
        flex-direction: column;
    }
    .page-payment-methods__guide-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding-top: 10px !important;
    }
    .page-payment-methods__hero-image {
        height: 300px;
    }
    .page-payment-methods__main-title {
        font-size: 2em;
    }
    .page-payment-methods__section-title {
        font-size: 1.8em;
    }
    .page-payment-methods__sub-title {
        font-size: 1.3em;
    }
    .page-payment-methods__text {
        font-size: 1em;
    }
    .page-payment-methods__light-bg, .page-payment-methods__dark-bg {
        padding: 40px 0;
    }
    .page-payment-methods__security-section .page-payment-methods__content-grid,
    .page-payment-methods__methods-section .page-payment-methods__method-cards,
    .page-payment-methods__info-grid {
        grid-template-columns: 1fr;
    }
    .page-payment-methods__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-payment-methods__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px 20px;
    }
    .page-payment-methods__hero-content-wrapper,
    .page-payment-methods__security-section,
    .page-payment-methods__methods-section,
    .page-payment-methods__deposit-guide-section,
    .page-payment-methods__withdrawal-guide-section,
    .page-payment-methods__considerations-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-payment-methods__guide-image {
        order: 2; /* Ensure image is below text in mobile for normal flow */
    }
    .page-payment-methods__guide-steps {
        order: 1;
    }
    .page-payment-methods__guide-wrapper--reverse .page-payment-methods__guide-image {
        order: 2; /* Consistent ordering */
    }
    .page-payment-methods__guide-wrapper--reverse .page-payment-methods__guide-steps {
        order: 1;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__hero-image {
        height: 200px;
    }
    .page-payment-methods__main-title {
        font-size: 1.8em;
    }
    .page-payment-methods__section-title {
        font-size: 1.6em;
    }
    .page-payment-methods__method-logo {
        width: 150px;
        height: 150px;
    }
}

/* Color Contrast Fixes (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;
}