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

/* Base styles for the page content */
.page-payment-methods {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--five88-text-main); /* Default text color for dark background */
    background-color: var(--five88-bg-dark); /* Page background from custom colors */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    box-sizing: border-box;
    overflow: hidden;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure image covers the area */
    max-height: 500px; /* Limit height on desktop */
    margin-bottom: 30px; /* Space between image and content */
}

.page-payment-methods__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-payment-methods__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    color: var(--five88-gold); /* Gold color for main title */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-payment-methods__lead-paragraph {
    font-size: 1.2em;
    color: var(--five88-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styles */
.page-payment-methods__section {
    padding: 60px 20px;
    box-sizing: border-box;
    background-color: var(--five88-bg-dark); /* Default section background */
}

.page-payment-methods__dark-section {
    background-color: var(--five88-deep-green); /* Darker green background for contrast */
}

.page-payment-methods__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure container takes full width up to max-width */
    box-sizing: border-box;
}

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

.page-payment-methods__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--five88-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-payment-methods__section-description {
    font-size: 1.1em;
    color: var(--five88-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Method Cards */
.page-payment-methods__method-list,
.page-payment-methods__steps,
.page-payment-methods__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-payment-methods__method-card,
.page-payment-methods__step-card,
.page-payment-methods__feature-card {
    background-color: var(--five88-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid var(--five88-border);
    color: var(--five88-text-main); /* Ensure text is visible on card background */
}

.page-payment-methods__method-title,
.page-payment-methods__step-title,
.page-payment-methods__feature-title {
    font-size: 1.5em;
    color: var(--five88-secondary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-payment-methods__method-description,
.page-payment-methods__step-description,
.page-payment-methods__feature-description {
    font-size: 1em;
    color: var(--five88-text-secondary);
}

/* Buttons */
.page-payment-methods__cta-group {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
}

.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.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

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

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

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

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

.page-payment-methods__center-btn {
    margin-left: auto;
    margin-right: auto;
    display: block; /* Make it a block element to center with margin auto */
    width: fit-content; /* Adjust width to content */
    min-width: 200px; /* Minimum width for better appearance */
}

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

.page-payment-methods__faq-item {
    background-color: var(--five88-card-bg);
    border: 1px solid var(--five88-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--five88-text-main);
}

.page-payment-methods__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--five88-secondary);
    transition: background-color 0.3s ease;
}

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

.page-payment-methods__faq-item summary:hover {
    background-color: rgba(var(--five88-secondary), 0.1);
}

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

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    width: 25px;
    text-align: center;
}

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

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

/* Text Colors */
.page-payment-methods__text-main {
    color: var(--five88-text-main);
}

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

/* Link in paragraphs */
.page-payment-methods p a {
    color: var(--five88-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-payment-methods p a:hover {
    color: var(--five88-gold);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-image {
        max-height: 400px;
    }
    .page-payment-methods__section {
        padding: 40px 15px;
    }
    .page-payment-methods__method-list,
    .page-payment-methods__steps,
    .page-payment-methods__security-features {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding: 10px 15px 40px;
    }
    .page-payment-methods__hero-image {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-payment-methods__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-payment-methods__lead-paragraph {
        font-size: 1em;
    }
    .page-payment-methods__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }
    .page-payment-methods__section-description {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Containers for images/content */
    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__method-card,
    .page-payment-methods__step-card,
    .page-payment-methods__feature-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure content doesn't overflow */
    }
    
    /* Hero section top padding */
    .page-payment-methods__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Buttons responsiveness */
    .page-payment-methods__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        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__center-btn {
        width: 100% !important; /* Full width on mobile */
        min-width: unset;
    }

    .page-payment-methods__faq-item summary {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-payment-methods__faq-answer {
        padding: 0 15px 15px;
    }
}