/* style/payment-methods.css */

/* Custom Colors from provided palette */
:root {
    --page-payment-methods-card-bg: #11271B;
    --page-payment-methods-bg: #08160F;
    --page-payment-methods-text-main: #F2FFF6;
    --page-payment-methods-text-secondary: #A7D9B8;
    --page-payment-methods-border: #2E7A4E;
    --page-payment-methods-glow: #57E38D;
    --page-payment-methods-gold: #F2C14E;
    --page-payment-methods-divider: #1E3A2A;
    --page-payment-methods-deep-green: #0A4B2C;
    --page-payment-methods-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-payment-methods {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-payment-methods-text-main); /* Default text color for the page */
    background-color: var(--page-payment-methods-bg); /* Default background color for the page */
}

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

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-payment-methods-bg);
    overflow: hidden;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 600px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

.page-payment-methods__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    color: var(--page-payment-methods-text-main);
}

.page-payment-methods__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-payment-methods-gold);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-payment-methods__hero-description {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    margin-bottom: 30px;
    color: var(--page-payment-methods-text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* General Section Styles */
.page-payment-methods__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--page-payment-methods-gold);
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-payment-methods__section-description {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--page-payment-methods-text-secondary);
}

/* Overview Section */
.page-payment-methods__overview-section {
    padding: 80px 0;
    background-color: var(--page-payment-methods-bg);
    color: var(--page-payment-methods-text-main);
}

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

.page-payment-methods__card {
    background-color: var(--page-payment-methods-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-payment-methods-border);
    color: var(--page-payment-methods-text-main);
}

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

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

.page-payment-methods__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--page-payment-methods-gold);
}

.page-payment-methods__card-text {
    font-size: 1rem;
    color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__card-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    color: var(--page-payment-methods-text-secondary);
}

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

.page-payment-methods__card-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--page-payment-methods-glow);
}

/* Deposit/Withdrawal Guide Sections */
.page-payment-methods__deposit-guide,
.page-payment-methods__withdrawal-guide {
    padding: 80px 0;
}

.page-payment-methods__deposit-guide {
    background-color: var(--page-payment-methods-bg);
    color: var(--page-payment-methods-text-main);
}

.page-payment-methods__withdrawal-guide {
    background-color: var(--page-payment-methods-card-bg);
    color: var(--page-payment-methods-text-main);
}

.page-payment-methods__steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.page-payment-methods__step-item {
    background-color: var(--page-payment-methods-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-payment-methods-border);
    color: var(--page-payment-methods-text-main);
}

.page-payment-methods__withdrawal-guide .page-payment-methods__step-item {
    background-color: var(--page-payment-methods-deep-green);
}

.page-payment-methods__step-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--page-payment-methods-gold);
}

.page-payment-methods__step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-payment-methods__step-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__step-list li:last-child {
    margin-bottom: 0;
}

.page-payment-methods__step-list li::before {
    content: '👉';
    position: absolute;
    left: 0;
}

.page-payment-methods__step-list ol li::before {
    content: counter(item) '. ';
    counter-increment: item;
    font-weight: bold;
    color: var(--page-payment-methods-glow);
    left: 0;
}

.page-payment-methods__step-list ol {
    counter-reset: item;
    list-style: none;
    padding: 0;
}

.page-payment-methods__step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

/* Issues & Tips Sections */
.page-payment-methods__issues-section,
.page-payment-methods__tips-section {
    padding: 80px 0;
}

.page-payment-methods__issues-section {
    background-color: var(--page-payment-methods-bg);
    color: var(--page-payment-methods-text-main);
}

.page-payment-methods__tips-section {
    background-color: var(--page-payment-methods-card-bg);
    color: var(--page-payment-methods-text-main);
}

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

.page-payment-methods__issue-card,
.page-payment-methods__tip-card {
    background-color: var(--page-payment-methods-card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-payment-methods-border);
    color: var(--page-payment-methods-text-main);
    text-align: center;
}

.page-payment-methods__issues-section .page-payment-methods__issue-card {
    background-color: var(--page-payment-methods-deep-green);
}

.page-payment-methods__issue-title,
.page-payment-methods__tip-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--page-payment-methods-gold);
}

.page-payment-methods__issue-text,
.page-payment-methods__tip-text {
    font-size: 0.95rem;
    color: var(--page-payment-methods-text-secondary);
}

.page-payment-methods__tip-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

/* FAQ Section */
.page-payment-methods__faq-section {
    padding: 80px 0;
    background-color: var(--page-payment-methods-bg);
    color: var(--page-payment-methods-text-main);
}

.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(--page-payment-methods-card-bg);
    border: 1px solid var(--page-payment-methods-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-payment-methods-text-main);
    cursor: pointer;
    background-color: var(--page-payment-methods-deep-green);
    border-bottom: 1px solid var(--page-payment-methods-divider);
    list-style: none; /* For details/summary */
}

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

.page-payment-methods__faq-question:hover {
    background-color: var(--page-payment-methods-deep-green);
}

.page-payment-methods__faq-qtext {
    flex-grow: 1;
    color: var(--page-payment-methods-gold);
}

.page-payment-methods__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-payment-methods-glow);
    transition: transform 0.3s ease;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
    transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--page-payment-methods-text-secondary);
    background-color: var(--page-payment-methods-card-bg);
}

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

/* CTA Section */
.page-payment-methods__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-payment-methods-bg);
    color: var(--page-payment-methods-text-main);
}

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

/* Buttons */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-payment-methods__btn-primary {
    background: var(--page-payment-methods-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-payment-methods__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-payment-methods__btn-secondary {
    background-color: transparent;
    color: var(--page-payment-methods-glow);
    border: 2px solid var(--page-payment-methods-glow);
    box-shadow: 0 4px 10px rgba(87, 227, 141, 0.2);
}

.page-payment-methods__btn-secondary:hover {
    background-color: var(--page-payment-methods-glow);
    color: var(--page-payment-methods-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(87, 227, 141, 0.4);
}

/* Text colors for specific sections to ensure contrast */
.page-payment-methods__dark-bg {
    background-color: var(--page-payment-methods-bg);
    color: var(--page-payment-methods-text-main);
}

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

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

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

/* Responsive Design */
@media (min-width: 769px) {
    .page-payment-methods__steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-payment-methods__withdrawal-guide .page-payment-methods__steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-payment-methods__deposit-guide .page-payment-methods__step-item:nth-child(2) {
        grid-column: span 2; /* Make the middle step span two columns on desktop */
    }
    .page-payment-methods__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-payment-methods__hero-image {
        max-height: 400px;
    }

    .page-payment-methods__main-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .page-payment-methods__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-payment-methods__hero-cta-buttons,
    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }

    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .page-payment-methods__section-title {
        font-size: 2rem;
    }

    .page-payment-methods__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-payment-methods__overview-section,
    .page-payment-methods__deposit-guide,
    .page-payment-methods__withdrawal-guide,
    .page-payment-methods__issues-section,
    .page-payment-methods__tips-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-section {
        padding: 40px 0;
    }

    .page-payment-methods__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-payment-methods__card-grid,
    .page-payment-methods__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-payment-methods__card,
    .page-payment-methods__step-item,
    .page-payment-methods__issue-card,
    .page-payment-methods__tip-card,
    .page-payment-methods__faq-item {
        padding: 20px;
    }

    .page-payment-methods__card-image,
    .page-payment-methods__step-image,
    .page-payment-methods__tip-image,
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size on mobile */
        min-height: 200px !important; /* Ensure min size on mobile */
        object-fit: cover;
    }

    .page-payment-methods__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-payment-methods__faq-toggle {
        font-size: 1.5rem;
    }

    .page-payment-methods__faq-answer {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .page-payment-methods__hero-section .page-payment-methods__hero-image {
        min-height: 200px !important; /* Specific override for hero on small screens */
    }

    .page-payment-methods__hero-section .page-payment-methods__hero-content {
        padding-left: 0;
        padding-right: 0;
    }
}