/* style/payment-methods.css */

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

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

/* Ensure content area background is not overriding body, but for cards/sections it's explicit */
.page-payment-methods__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Responsive padding */
    box-sizing: border-box;
}

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--card-bg); /* Use a darker background for the hero section */
}

.page-payment-methods__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width */
    height: auto;
    overflow: hidden;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none; /* No image filters */
}

.page-payment-methods__hero-content {
    max-width: 800px;
    padding: 30px 20px;
    z-index: 1;
    color: var(--text-main);
}

.page-payment-methods__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--gold-color); /* Use gold for main title for emphasis */
    margin-bottom: 20px;
    /* No fixed font-size for H1, relying on responsive adjustments */
}

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

/* General Section Styling */
.page-payment-methods__introduction-section,
.page-payment-methods__deposit-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-payment-methods__introduction-section:last-of-type,
.page-payment-methods__faq-section:last-of-type {
    border-bottom: none;
}

.page-payment-methods__section-title {
    font-size: 2.2em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-payment-methods__sub-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-payment-methods__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-payment-methods__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    filter: none; /* No image filters */
}

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

.page-payment-methods__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-secondary); /* Light text on dark card background */
}

.page-payment-methods__card-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-payment-methods__card-text {
    margin-bottom: 15px;
}

/* Lists */
.page-payment-methods__ordered-list,
.page-payment-methods__unordered-list {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-payment-methods__ordered-list li,
.page-payment-methods__unordered-list li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page-payment-methods__ordered-list li strong,
.page-payment-methods__unordered-list li strong {
    color: var(--text-main);
}

.page-payment-methods a {
    color: var(--glow-color); /* Links should stand out */
    text-decoration: none;
}

.page-payment-methods a:hover {
    text-decoration: underline;
}

/* Buttons */
.page-payment-methods__btn-primary,
.page-payment-methods__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: var(--button-gradient);
    color: var(--text-main); /* White text on green button */
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__btn-primary:hover,
.page-payment-methods__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

/* CTA Section */
.page-payment-methods__cta-section {
    padding: 80px 0;
    background-color: var(--deep-green); /* Darker green for CTA */
    text-align: center;
}

.page-payment-methods__center-text {
    text-align: center;
}

/* 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: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-secondary);
}

.page-payment-methods__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--text-main);
    list-style: none; /* Hide default marker */
}

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

.page-payment-methods__faq-qtext {
    flex-grow: 1;
}

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow-color);
}

.page-payment-methods__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

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

    .page-payment-methods__main-title {
        font-size: 2.5em;
    }

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

    .page-payment-methods__sub-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding-bottom: 40px;
    }

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

    .page-payment-methods__main-title {
        font-size: clamp(1.8em, 5vw, 2.2em); /* Using clamp for H1 as per instructions */
        margin-bottom: 15px;
    }

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

    .page-payment-methods__btn-primary,
    .page-payment-methods__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-payment-methods__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-payment-methods__sub-title {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .page-payment-methods__text-block {
        font-size: 0.95em;
    }

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

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

    .page-payment-methods__card-title {
        font-size: 1.2em;
    }

    .page-payment-methods__ordered-list,
    .page-payment-methods__unordered-list {
        margin-left: 0;
        padding-left: 20px;
    }

    .page-payment-methods__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

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

    /* Mobile image and video responsiveness */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure content images are 100% width */
        height: auto !important;
        display: block !important;
        min-width: 200px; /* Min size requirement */
        min-height: 200px; /* Min size requirement */
    }

    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__hero-image-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, this is for visual padding */
    }

    /* Buttons responsive */
    .page-payment-methods__cta-button,
    .page-payment-methods__btn-primary,
    .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;
        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__cta-section .page-payment-methods__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-payment-methods__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}

/* Ensure no image filters */
.page-payment-methods img {
    filter: none;
}