.page-payment-methods {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: #F5F7FA; /* Background color as per custom palette */
}

/* Hero Section */
.page-payment-methods__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image on top, text below */
    align-items: center;
    text-align: center;
    padding: 10px 0 60px; /* Small top padding, larger bottom padding */
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient for hero background */
    color: #ffffff; /* White text on dark gradient background */
    overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image container */
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop */
}

.page-payment-methods__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-payment-methods__main-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.page-payment-methods__subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* General Container */
.page-payment-methods__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Titles */
.page-payment-methods__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #E53935; /* Brand primary color for titles */
}

/* Text Blocks */
.page-payment-methods__text-block {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.page-payment-methods__text-block .text-highlight {
    font-weight: bold;
    color: #E53935; /* Highlight text with brand color */
}

/* CTA Buttons */
.page-payment-methods__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-payment-methods__cta-buttons--centered {
    justify-content: center;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    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: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

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

.page-payment-methods__btn-secondary {
    background-color: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background-color: #f0f0f0;
}

/* Overview Section */
.page-payment-methods__overview-section {
    padding: 80px 0;
    background-color: #ffffff;
}

/* Deposit/Withdrawal Methods Section */
.page-payment-methods__deposit-methods-section,
.page-payment-methods__withdrawal-methods-section {
    padding: 80px 0;
    background-color: #F5F7FA;
}

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

.page-payment-methods__method-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E0E0E0; /* Border as per custom palette */
}

.page-payment-methods__method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__method-icon {
    width: 100%; /* Ensure images are large, not small icons */
    height: auto;
    max-height: 200px; /* Example max height to prevent excessively tall images */
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 8px;
    display: block;
}

.page-payment-methods__method-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #E53935;
    margin-bottom: 15px;
}

.page-payment-methods__method-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
}

.page-payment-methods__method-details {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 0.95rem;
    color: #666666;
}

.page-payment-methods__method-details li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.page-payment-methods__detail-label {
    font-weight: bold;
    color: #333333;
    min-width: 80px;
    margin-right: 10px;
}

/* Guide Section */
.page-payment-methods__guide-section {
    padding: 80px 0;
}

.page-payment-methods__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    max-width: 800px;
}

.page-payment-methods__guide-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #E53935;
}

.page-payment-methods__guide-step {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E53935;
    margin-right: 20px;
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}

.page-payment-methods__guide-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333333;
    flex-grow: 1;
}

/* Dark Background Sections */
.page-payment-methods__dark-section {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    color: #ffffff;
}

.page-payment-methods__dark-section .page-payment-methods__section-title {
    color: #ffffff;
}

.page-payment-methods__dark-section .page-payment-methods__text-block {
    color: #f0f0f0;
}

.page-payment-methods__dark-section .page-payment-methods__text-block .text-highlight {
    color: #ffffff;
}

/* Security Section */
.page-payment-methods__security-section {
    padding: 80px 0;
}

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

.page-payment-methods__security-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.page-payment-methods__security-icon {
    width: 100%; /* Ensure images are large, not small icons */
    height: auto;
    max-height: 200px; /* Example max height */
    object-fit: contain;
    margin-bottom: 25px;
    display: block;
    border-radius: 8px;
}

.page-payment-methods__security-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-payment-methods__security-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #f0f0f0;
}

/* FAQ Section */
.page-payment-methods__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-payment-methods__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-payment-methods__faq-item {
    background-color: #F5F7FA;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #E0E0E0;
}

.page-payment-methods__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333333;
    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: #eaeaea;
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-payment-methods__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #E53935;
    margin-left: 15px;
    line-height: 1;
}

.page-payment-methods__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    border-top: 1px solid #e0e0e0;
}

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

/* Contact Section */
.page-payment-methods__contact-section {
    padding: 80px 0;
    text-align: center;
}

.page-payment-methods__contact-content {
    max-width: 800px;
}

/* --- Responsive Styles --- */
/* General images responsiveness */
.page-payment-methods img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* General button responsiveness */
.page-payment-methods__cta-button,
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary,
.page-payment-methods a[class*="button"],
.page-payment-methods a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Button containers responsiveness */
.page-payment-methods__cta-buttons,
.page-payment-methods__button-group,
.page-payment-methods__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .page-payment-methods__main-title {
        font-size: 2.8rem;
    }

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

    .page-payment-methods__method-grid,
    .page-payment-methods__security-features {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* General styles for mobile */
    .page-payment-methods {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section */
    .page-payment-methods__hero-section {
        padding: 10px 0 40px;
    }

    .page-payment-methods__hero-image {
        object-fit: contain !important; /* Mobile: contain to prevent cropping */
        aspect-ratio: unset !important;
        max-height: none !important;
    }

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

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

    .page-payment-methods__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px !important; /* Add padding to button container */
    }

    /* Buttons */
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary,
    .page-payment-methods a[class*="button"],
    .page-payment-methods a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Container and Sections */
    .page-payment-methods__container {
        padding: 0 15px !important; /* Apply padding to inner container */
    }

    .page-payment-methods__overview-section,
    .page-payment-methods__deposit-methods-section,
    .page-payment-methods__withdrawal-methods-section,
    .page-payment-methods__guide-section,
    .page-payment-methods__security-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__contact-section {
        padding-left: 0 !important; /* Ensure full width for sections */
        padding-right: 0 !important; /* Ensure full width for sections */
    }

    .page-payment-methods__overview-section .page-payment-methods__container,
    .page-payment-methods__deposit-methods-section .page-payment-methods__container,
    .page-payment-methods__withdrawal-methods-section .page-payment-methods__container,
    .page-payment-methods__guide-section .page-payment-methods__container,
    .page-payment-methods__security-section .page-payment-methods__container,
    .page-payment-methods__faq-section .page-payment-methods__container,
    .page-payment-methods__contact-section .page-payment-methods__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

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

    .page-payment-methods__text-block {
        font-size: 1rem;
    }

    /* Method Cards / Security Cards */
    .page-payment-methods__method-grid,
    .page-payment-methods__security-features {
        grid-template-columns: 1fr; /* Single column layout for cards */
        gap: 20px;
    }

    .page-payment-methods__method-card,
    .page-payment-methods__security-card {
        padding: 20px;
        margin: 0 15px; /* Add margin to cards themselves for spacing */
    }

    .page-payment-methods__method-title,
    .page-payment-methods__security-title {
        font-size: 1.5rem;
    }

    /* Guide List */
    .page-payment-methods__guide-list {
        margin: 40px 15px 0; /* Adjust margin for mobile */
    }

    .page-payment-methods__guide-item {
        flex-direction: column; /* Stack step and text vertically */
        align-items: flex-start;
        padding: 20px;
    }

    .page-payment-methods__guide-step {
        font-size: 1.3rem;
        margin-bottom: 10px;
        text-align: left;
        min-width: unset;
    }

    .page-payment-methods__guide-text {
        font-size: 1rem;
    }

    /* FAQ Section */
    .page-payment-methods__faq-list {
        margin: 40px 15px 0; /* Adjust margin for mobile */
    }

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

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

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

    /* Ensure all images and containers are responsive */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* All elements that could contain content and need padding */
    .page-payment-methods__hero-image-wrapper,
    .page-payment-methods__hero-content,
    .page-payment-methods__text-block,
    .page-payment-methods__method-card,
    .page-payment-methods__security-card,
    .page-payment-methods__guide-item,
    .page-payment-methods__faq-item {
        box-sizing: border-box !important;
    }

    /* Additional responsive styling for elements that might still overflow */
    .page-payment-methods__hero-image-wrapper,
    .page-payment-methods__method-card .page-payment-methods__method-icon,
    .page-payment-methods__security-card .page-payment-methods__security-icon {
        overflow: hidden !important;
    }
}