/* style/payment-methods.css */

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

/* Base styles for the page content */
.page-payment-methods {
    font-family: Arial, sans-serif;
    color: var(--benbet-text-main); /* Default text color for the page */
    background-color: var(--benbet-background); /* Overall background for the main content area */
}

.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;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden;
    background-color: var(--benbet-deep-green);
}

.page-payment-methods__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the image for text readability */
    filter: brightness(0.7); /* Darken further for contrast */
}

.page-payment-methods__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--benbet-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

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

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

/* Buttons */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-payment-methods__btn-primary {
    background: var(--benbet-button-gradient);
    color: var(--benbet-text-main);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__btn-secondary {
    background: transparent;
    color: var(--benbet-text-main);
    border: 2px solid var(--benbet-primary);
}

.page-payment-methods__btn-secondary:hover {
    background-color: var(--benbet-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Section Styling */
.page-payment-methods__introduction-section,
.page-payment-methods__deposit-methods-section,
.page-payment-methods__withdrawal-process-section,
.page-payment-methods__important-notes-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-bottom-section {
    padding: 60px 0;
}

.page-payment-methods__dark-section {
    background-color: var(--benbet-deep-green);
    color: var(--benbet-text-main);
}

.page-payment-methods__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--benbet-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-payment-methods__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--benbet-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-payment-methods__text-block.page-payment-methods__note {
    font-style: italic;
    color: var(--benbet-gold);
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    border: 1px dashed var(--benbet-border);
    border-radius: 8px;
}

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

.page-payment-methods__card {
    background-color: var(--benbet-card-bg);
    border: 1px solid var(--benbet-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease;
}

.page-payment-methods__card:hover {
    transform: translateY(-5px);
}

.page-payment-methods__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    /* Min size check: 200px. This is 100% width, so it will be >= 200px on desktop */
    min-width: 200px;
    min-height: 200px;
}

.page-payment-methods__card-title {
    font-size: 1.4rem;
    color: var(--benbet-text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-payment-methods__card-description {
    font-size: 0.95rem;
    color: var(--benbet-text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* Push button to bottom */
}

.page-payment-methods__card-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    color: var(--benbet-text-secondary);
    font-size: 0.9rem;
}

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

.page-payment-methods__card-list li::before {
    content: "✓";
    color: var(--benbet-glow);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Withdrawal Process Section */
.page-payment-methods__content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

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

.page-payment-methods__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--benbet-text-secondary);
}

.page-payment-methods__list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-payment-methods__ordered-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--benbet-text-secondary);
}

.page-payment-methods__ordered-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-payment-methods__image-column {
    text-align: center;
}

.page-payment-methods__content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* Min size check: 200px. This is 100% width, so it will be >= 200px on desktop */
    min-width: 200px;
    min-height: 200px;
}

.page-payment-methods__image-caption {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--benbet-text-secondary);
    margin-top: 15px;
}

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

.page-payment-methods__faq-item {
    background-color: var(--benbet-card-bg);
    border: 1px solid var(--benbet-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-payment-methods__faq-item[open] {
    background-color: var(--benbet-deep-green);
    border-color: var(--benbet-primary);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--benbet-text-main);
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-payment-methods__faq-question:hover {
    background-color: rgba(var(--benbet-primary), 0.1);
}

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

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

.page-payment-methods__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--benbet-text-secondary);
    line-height: 1.7;
    max-height: 0; /* For JS based accordion, but details handles natively */
    overflow: hidden; /* For JS based accordion */
    transition: max-height 0.3s ease-out; /* For JS based accordion */
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-answer {
    max-height: none; /* Let details handle height */
    padding-top: 10px;
}

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

/* Bottom CTA */
.page-payment-methods__cta-bottom-section .page-payment-methods__container {
    text-align: center;
    padding: 60px 20px;
    border-radius: 10px;
    background-color: var(--benbet-deep-green);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__cta-bottom-section .page-payment-methods__section-title {
    color: var(--benbet-gold);
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-payment-methods__content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__container {
        padding: 0 15px;
    }

    .page-payment-methods__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* body handles --header-offset */
    }

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

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

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

    .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-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-payment-methods__sub-title {
        font-size: 1.2rem;
    }

    .page-payment-methods__introduction-section,
    .page-payment-methods__deposit-methods-section,
    .page-payment-methods__withdrawal-process-section,
    .page-payment-methods__important-notes-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-bottom-section {
        padding: 40px 0;
    }

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

    /* Images responsiveness */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important;
    }
    
    /* Ensure image containers also adapt */
    .page-payment-methods__hero-image-wrapper,
    .page-payment-methods__card,
    .page-payment-methods__image-column,
    .page-payment-methods__content-grid,
    .page-payment-methods__method-cards-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

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

/* Ensure content area images are not smaller than 200px */
.page-payment-methods__card-image,
.page-payment-methods__content-image {
    min-width: 200px;
    min-height: 200px;
}