/* style/payment-methods.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-text-register-login: #FFFF00;
    --border-color: #e0e0e0;
}

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

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-payment-methods__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-payment-methods__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-payment-methods__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-payment-methods__hero-content h1 {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-payment-methods__hero-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-payment-methods__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register-bg);
    color: var(--button-text-register-login);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-payment-methods__cta-button:hover {
    background: darken(var(--button-register-bg), 10%); /* Placeholder for darker red */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Content Sections */
.page-payment-methods__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-payment-methods__intro-section, 
.page-payment-methods__deposit-methods, 
.page-payment-methods__withdrawal-methods, 
.page-payment-methods__security-section, 
.page-payment-methods__faq-section, 
.page-payment-methods__cta-section {
    padding: 60px 0;
}

.page-payment-methods__intro-section h2, 
.page-payment-methods__deposit-methods h2, 
.page-payment-methods__withdrawal-methods h2, 
.page-payment-methods__security-section h2, 
.page-payment-methods__faq-section h2, 
.page-payment-methods__cta-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--primary-color);
}

.page-payment-methods__intro-section p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: 1.1em;
}

/* Dark Background Sections */
.page-payment-methods__dark-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-payment-methods__dark-section h2 {
    color: var(--text-color-light);
}

.page-payment-methods__dark-section .page-payment-methods__card {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-payment-methods__dark-section .page-payment-methods__card h3 {
    color: var(--text-color-light);
}

/* Light Background Sections */
.page-payment-methods__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

/* Grid Layout for Cards */
.page-payment-methods__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-payment-methods__grid--reverse {
    flex-direction: column-reverse;
}

.page-payment-methods__card {
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-color-dark);
}

.page-payment-methods__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    margin-left: auto; /* Center image */
    margin-right: auto; /* Center image */
}

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

.page-payment-methods__card p {
    font-size: 1em;
    line-height: 1.6;
}

/* Buttons */
.page-payment-methods__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-register-bg);
    color: var(--button-text-register-login);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 10px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-payment-methods__btn-primary:hover {
    background: darken(var(--button-register-bg), 10%); /* Placeholder for darker red */
}

.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--text-color-light);
    cursor: pointer;
    margin: 10px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-payment-methods__dark-section .page-payment-methods__btn-secondary {
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}

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

.page-payment-methods__button-group {
    text-align: center;
    margin-top: 40px;
}

/* Security Section */
.page-payment-methods__security-section .page-payment-methods__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.page-payment-methods__security-content ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-payment-methods__security-content li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.page-payment-methods__security-content li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--button-text-register-login); /* Use yellow for checkmark */
}

.page-payment-methods__security-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* CTA Section */
.page-payment-methods__cta-section {
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 80px 20px;
}

.page-payment-methods__cta-section h2 {
    color: var(--text-color-light);
    font-size: 2.8em;
    margin-bottom: 20px;
}

.page-payment-methods__cta-section p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
details.page-payment-methods__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--secondary-color);
}

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question::-webkit-details-marker {
    display: none;
}

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question:hover {
    background: #f5f5f5;
}

.page-payment-methods__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-color-dark);
}

.page-payment-methods__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-color-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-section h1 {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-payment-methods__intro-section h2, 
    .page-payment-methods__deposit-methods h2, 
    .page-payment-methods__withdrawal-methods h2, 
    .page-payment-methods__security-section h2, 
    .page-payment-methods__faq-section h2, 
    .page-payment-methods__cta-section h2 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-payment-methods__hero-image img {
        border-radius: 4px;
    }
    
    .page-payment-methods__hero-content h1 {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }
    
    .page-payment-methods__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-payment-methods__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-payment-methods__intro-section, 
    .page-payment-methods__deposit-methods, 
    .page-payment-methods__withdrawal-methods, 
    .page-payment-methods__security-section, 
    .page-payment-methods__faq-section, 
    .page-payment-methods__cta-section {
        padding: 40px 0;
    }

    .page-payment-methods__intro-section h2, 
    .page-payment-methods__deposit-methods h2, 
    .page-payment-methods__withdrawal-methods h2, 
    .page-payment-methods__security-section h2, 
    .page-payment-methods__faq-section h2, 
    .page-payment-methods__cta-section h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-payment-methods__grid {
        grid-template-columns: 1fr;
    }
    
    .page-payment-methods__security-section .page-payment-methods__grid {
        grid-template-columns: 1fr;
        flex-direction: column-reverse;
    }
    .page-payment-methods__security-image {
        margin-bottom: 30px;
    }

    .page-payment-methods__card {
        padding: 20px;
    }

    .page-payment-methods__card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-payment-methods__cta-section h2 {
        font-size: 2em;
    }

    details.page-payment-methods__faq-item summary.page-payment-methods__faq-question { padding: 15px; }
    .page-payment-methods__faq-qtext { font-size: 15px; }

    /* Mobile specific image and button overrides */
    .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__button-group,
    .page-payment-methods__security-section .page-payment-methods__grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .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;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
    }
    .page-payment-methods__button-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}