/* style/payment-methods.css */

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

.page-payment-methods {
    background-color: var(--page-bg); /* Use specified background color */
    color: var(--text-main); /* Use specified main text color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Fixed Header Spacing: body handles padding-top, this page's sections should not add it again */
/* First section only needs a small top padding if desired for visual spacing below header */
.page-payment-methods__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--deep-green); /* Example background for hero */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    /* HTML width/height are for layout, CSS for display */
    max-width: 100%;
}

.page-payment-methods__hero-content {
    position: relative; /* Ensure content is above image if needed, but not overlapping */
    padding: 20px;
    max-width: 900px;
    margin-top: 30px; /* Separates content from image */
    z-index: 1; /* Ensure text is above any background elements if present */
    color: var(--text-main);
}

.page-payment-methods__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--gold-color); /* Use gold for emphasis */
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-payment-methods__hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-payment-methods__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Include padding in element's total width and height */
}

.page-payment-methods__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff; /* White text for contrast */
    border: none;
    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(--text-main);
    border: 2px solid var(--border-color);
}

.page-payment-methods__btn-secondary:hover {
    background-color: var(--border-color);
    color: var(--text-main);
    transform: translateY(-3px);
}

.page-payment-methods__btn-center {
    margin-left: auto;
    margin-right: auto;
    display: block; /* Make it a block element to center with margin auto */
    max-width: 300px; /* Limit width for centering */
    margin-top: 40px;
}

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

.page-payment-methods__introduction-section,
.page-payment-methods__deposit-methods-section,
.page-payment-methods__deposit-process-section,
.page-payment-methods__withdrawal-methods-section,
.page-payment-methods__withdrawal-process-section,
.page-payment-methods__important-notes-section,
.page-payment-methods__security-section,
.page-payment-methods__support-section,
.page-payment-methods__faq-section,
.page-payment-methods__conclusion-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-payment-methods__conclusion-section {
    border-bottom: none; /* No border for the last section */
}

.page-payment-methods__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-payment-methods__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--btn-gradient);
    border-radius: 2px;
}

.page-payment-methods__text-block {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-payment-methods__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-payment-methods__method-list,
.page-payment-methods__step-list,
.page-payment-methods__note-list,
.page-payment-methods__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-payment-methods__method-item,
.page-payment-methods__step-item,
.page-payment-methods__note-item,
.page-payment-methods__contact-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__method-title,
.page-payment-methods__step-title,
.page-payment-methods__note-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-payment-methods__method-description,
.page-payment-methods__step-description,
.page-payment-methods__note-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.page-payment-methods__step-item {
    counter-increment: step-counter;
    position: relative;
    padding-left: 40px;
}

.page-payment-methods__step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 20px; /* Adjust vertical alignment */
    width: 30px;
    height: 30px;
    background: var(--btn-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.page-payment-methods__contact-item {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.page-payment-methods__contact-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--glow-color);
    font-size: 1.2rem;
    line-height: 1;
}

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

.page-payment-methods__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

.page-payment-methods__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    outline: none;
    list-style: none; /* Remove default marker */
}

.page-payment-methods__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-payment-methods__faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    flex-grow: 1;
}

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

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-payment-methods__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    animation: fadeIn 0.3s ease-out; /* Simple fade in for details content */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-payment-methods__faq-answer p {
    margin: 0; /* Remove default paragraph margin within answer */
}

.page-payment-methods__cta-buttons--bottom {
    margin-top: 50px;
}

/* Links within content */
.page-payment-methods a {
    color: var(--glow-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-payment-methods a:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

/* Ensure images within content sections are not smaller than 200px */
.page-payment-methods img {
    min-width: 200px;
    min-height: 200px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-payment-methods__hero-content {
        padding: 15px;
    }

    .page-payment-methods__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-payment-methods__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-payment-methods {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-payment-methods__hero-section {
        padding-bottom: 40px;
    }

    .page-payment-methods__hero-content {
        margin-top: 20px;
    }

    .page-payment-methods__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-payment-methods__hero-description {
        font-size: 1rem;
    }

    .page-payment-methods__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 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-left: 15px;
        padding-right: 15px;
    }

    .page-payment-methods__cta-buttons,
    .page-payment-methods__button-group,
    .page-payment-methods__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-payment-methods__container {
        padding: 30px 15px; /* Adjust padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-payment-methods__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-payment-methods__method-item,
    .page-payment-methods__step-item,
    .page-payment-methods__note-item,
    .page-payment-methods__contact-item {
        padding: 20px;
        margin-bottom: 15px;
    }

    .page-payment-methods__method-title,
    .page-payment-methods__step-title,
    .page-payment-methods__note-title {
        font-size: 1.2rem;
    }

    .page-payment-methods__text-block,
    .page-payment-methods__method-description,
    .page-payment-methods__step-description,
    .page-payment-methods__note-description,
    .page-payment-methods__contact-item,
    .page-payment-methods__faq-question,
    .page-payment-methods__faq-answer {
        font-size: 0.95rem; /* Slightly smaller text for readability on small screens */
    }

    .page-payment-methods__faq-item summary {
        padding: 15px 20px;
    }

    .page-payment-methods__faq-answer {
        padding: 0 20px 15px;
    }

    /* Images and Videos Responsive */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size is still met */
        min-height: 200px !important;
    }

    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__video-section,
    .page-payment-methods__video-container,
    .page-payment-methods__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-payment-methods__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

/* Ensure no CSS filters are used on images */
.page-payment-methods img {
    filter: none;
}