/* style/payment-methods.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-dark: #0a0a0a;
    --background-light: #f8f9fa;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --register-login-font: #FFFF00;
}

/* Base styles for the page content */
.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--background-dark); /* Inherited from body, but explicitly set for clarity */
}

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

/* Sections */
.page-payment-methods__hero-section,
.page-payment-methods__deposit-section,
.page-payment-methods__security-section,
.page-payment-methods__cta-section {
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
}

.page-payment-methods__overview-section,
.page-payment-methods__withdraw-section,
.page-payment-methods__faq-section {
    padding: 80px 20px;
    text-align: center;
    color: var(--text-dark);
    background-color: var(--background-light);
}

/* Header Offset for fixed header */
.page-payment-methods__hero-section {
    padding-top: calc(80px + var(--header-offset, 120px)); /* Ensure content is below fixed header */
}

/* Hero Section */
.page-payment-methods__hero-content {
    margin-bottom: 40px;
}

.page-payment-methods__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-payment-methods__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--secondary-color);
}

.page-payment-methods__hero-image-wrapper {
    margin-top: 40px;
}

.page-payment-methods__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

/* Section Titles */
.page-payment-methods__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.page-payment-methods__dark-bg .page-payment-methods__section-title {
    color: var(--secondary-color);
}

/* Text Blocks */
.page-payment-methods__text-block {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

/* CTA Buttons */
.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: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-payment-methods__btn-primary {
    background-color: var(--register-button-bg); /* Custom color for Register */
    color: var(--register-login-font); /* Custom font color for Register */
    border: 2px solid var(--register-button-bg);
}

.page-payment-methods__btn-primary:hover {
    background-color: darken(var(--register-button-bg), 10%);
    border-color: darken(var(--register-button-bg), 10%);
    transform: translateY(-2px);
}

.page-payment-methods__btn-secondary {
    background-color: var(--login-button-bg); /* Custom color for Login */
    color: var(--register-login-font); /* Custom font color for Login */
    border: 2px solid var(--login-button-bg);
}

.page-payment-methods__btn-secondary:hover {
    background-color: darken(var(--login-button-bg), 10%);
    border-color: darken(var(--login-button-bg), 10%);
    transform: translateY(-2px);
}

/* Features Grid (Overview Section) */
.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-item {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

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

/* Method Grid (Deposit/Withdraw Sections) */
.page-payment-methods__method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

.page-payment-methods__dark-bg .page-payment-methods__method-card {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}

.page-payment-methods__dark-bg .page-payment-methods__method-card .page-payment-methods__card-title {
    color: var(--secondary-color);
}

.page-payment-methods__dark-bg .page-payment-methods__method-card .page-payment-methods__steps-list li {
    color: var(--secondary-color);
}

.page-payment-methods__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__method-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto;
    margin-right: auto;
}

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

.page-payment-methods__steps-list,
.page-payment-methods__conditions-list {
    list-style: decimal;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-payment-methods__conditions-list {
    list-style: disc;
}

.page-payment-methods__steps-list li,
.page-payment-methods__conditions-list li {
    margin-bottom: 10px;
    font-size: 1em;
    color: var(--text-dark);
}

.page-payment-methods__note {
    font-style: italic;
    font-size: 0.95em;
    color: #666;
}

.page-payment-methods__dark-bg .page-payment-methods__method-card .page-payment-methods__note {
    color: #ccc;
}

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

.page-payment-methods__security-feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__security-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-payment-methods__faq-item {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
    background-color: darken(var(--primary-color), 5%);
}

.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); /* Rotates to form an 'x' or '-' */
}

.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;
    color: var(--text-dark);
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides other styles */
    padding: 15px 25px 25px 25px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: 2.8em;
    }
    .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 {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 60px;
    }
    .page-payment-methods__hero-title {
        font-size: 2.2em;
    }
    .page-payment-methods__hero-description {
        font-size: 1em;
    }
    .page-payment-methods__section-title {
        font-size: 1.8em;
    }
    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        margin: 0 auto;
    }

    .page-payment-methods__container,
    .page-payment-methods__hero-section,
    .page-payment-methods__overview-section,
    .page-payment-methods__deposit-section,
    .page-payment-methods__withdraw-section,
    .page-payment-methods__security-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden;
    }

    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-payment-methods__method-card,
    .page-payment-methods__feature-item,
    .page-payment-methods__security-feature-item {
        padding: 20px;
    }
    .page-payment-methods__card-title {
        font-size: 1.5em;
    }
    .page-payment-methods__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-payment-methods__faq-answer {
        padding: 0 20px;
    }
    .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
        padding: 15px 20px 20px 20px;
    }
    .page-payment-methods__steps-list,
    .page-payment-methods__conditions-list {
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__hero-title {
        font-size: 1.8em;
    }
    .page-payment-methods__section-title {
        font-size: 1.5em;
    }
    .page-payment-methods__hero-section,
    .page-payment-methods__overview-section,
    .page-payment-methods__deposit-section,
    .page-payment-methods__withdraw-section,
    .page-payment-methods__security-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-section {
        padding: 40px 15px;
    }
}