/* style/payment-methods.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #26A9E0;
    --button-login: #EA7C07;
    --color-black: #000000;
}

.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light); /* Default light background, adjust based on shared.css body */
}

/* Ensure body padding-top is handled by shared.css. If not, apply here. */
/* .page-payment-methods { padding-top: var(--header-offset, 120px); } */

.page-payment-methods__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 60px 20px;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

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

.page-payment-methods__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-payment-methods__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-light);
}

.page-payment-methods__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-payment-methods__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

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

.page-payment-methods__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

.page-payment-methods__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__overview-section,
.page-payment-methods__deposit-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-section {
    padding: 80px 0;
}

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

.page-payment-methods__feature-card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.page-payment-methods__feature-card:hover {
    transform: translateY(-10px);
}

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

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

.page-payment-methods__feature-description {
    font-size: 1em;
    color: var(--text-dark);
}

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

.page-payment-methods__method-card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-dark);
}

.page-payment-methods__method-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-payment-methods__method-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-payment-methods__method-description {
    font-size: 1em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-payment-methods__method-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
    color: var(--text-dark);
}

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

.page-payment-methods__method-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.page-payment-methods__step-by-step-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-payment-methods__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: var(--text-light);
    position: relative;
    padding-top: 70px;
}

.page-payment-methods__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

.page-payment-methods__step-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-payment-methods__step-description {
    font-size: 1em;
    color: var(--text-light);
}

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

.page-payment-methods__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: var(--text-light);
}

.page-payment-methods__security-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.page-payment-methods__security-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-payment-methods__security-description {
    font-size: 1em;
    color: var(--text-light);
}

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

.page-payment-methods__faq-item {
    background-color: var(--background-light);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-dark);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--background-light);
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: var(--text-dark);
}

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px;
}

.page-payment-methods__faq-answer p {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-payment-methods__faq-contact-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-payment-methods__cta-content {
    text-align: center;
    max-width: 900px;
}

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

/* Buttons */
.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;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
}

.page-payment-methods__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-payment-methods__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

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

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

/* General image responsiveness */
.page-payment-methods img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: 3em;
    }
    .page-payment-methods__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-payment-methods {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-payment-methods__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-payment-methods__hero-title {
        font-size: 2.5em;
    }
    .page-payment-methods__hero-description {
        font-size: 1em;
    }
    .page-payment-methods__hero-image-wrapper {
        height: 100%;
        position: absolute;
        width: 100%;
    }
    .page-payment-methods__hero-image {
        height: 100%;
        object-fit: cover;
    }
    .page-payment-methods__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-payment-methods__text-block {
        font-size: 1em;
    }
    .page-payment-methods__features-grid,
    .page-payment-methods__method-card-grid,
    .page-payment-methods__step-by-step-guide,
    .page-payment-methods__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-payment-methods__overview-section,
    .page-payment-methods__deposit-section,
    .page-payment-methods__withdrawal-section,
    .page-payment-methods__security-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-section {
        padding: 40px 0;
    }
    .page-payment-methods__feature-card,
    .page-payment-methods__method-card,
    .page-payment-methods__step-item,
    .page-payment-methods__security-item {
        padding: 20px;
    }
    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }
    .page-payment-methods__faq-question {
        padding: 15px;
    }
    .page-payment-methods__faq-answer {
        padding: 15px;
    }
    
    /* Mobile image responsiveness */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__hero-section,
    .page-payment-methods__overview-section,
    .page-payment-methods__deposit-section,
    .page-payment-methods__withdrawal-section,
    .page-payment-methods__security-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; */
        overflow-x: hidden;
    }
    .page-payment-methods__method-image {
        height: auto;
    }
    .page-payment-methods__hero-image {
        height: 100%;
    }
}