.page-payment-methods {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* #1F2D3D */
    background-color: var(--background); /* #F4F7FB */
    line-height: 1.6;
}

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

.page-payment-methods__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    background-color: var(--main-color); /* Fallback, but image should cover */
    padding-bottom: 40px; /* Space below hero content */
    padding-top: 10px; /* Small top padding to respect header offset */
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit hero image height */
    object-fit: cover;
    display: block;
    margin-bottom: 20px; /* Space between image and content */
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

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

.page-payment-methods__hero-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Adjusted H1 font size */
    font-weight: 700;
    color: var(--custom-color-1776249996415); /* #000000 */
    margin-bottom: 15px;
    line-height: 1.2;
}

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

.page-payment-methods__hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.page-payment-methods__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.page-payment-methods__button--primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
}

.page-payment-methods__button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__button--secondary {
    background-color: #FFFFFF;
    color: var(--main-color); /* #2F6BFF */
    border: 1px solid var(--main-color); /* #2F6BFF */
}

.page-payment-methods__button--secondary:hover {
    background-color: var(--main-color); /* #2F6BFF */
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__button--small {
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-payment-methods__button--large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-payment-methods__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    color: var(--custom-color-1776249996415); /* #000000 */
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
}

.page-payment-methods__introduction-section,
.page-payment-methods__guide-section,
.page-payment-methods__security-support-section,
.page-payment-methods__faq-section,
.page-payment-methods__final-cta-section {
    padding: 40px 0;
}

.page-payment-methods__introduction-section .page-payment-methods__text-content {
    font-size: 1.05em;
    max-width: 800px;
    margin: 0 auto 15px auto;
    text-align: center;
    color: var(--text-main); /* #1F2D3D */
}

.page-payment-methods__methods-section {
    background-color: var(--card-bg); /* #FFFFFF */
    padding: 60px 0;
}

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

.page-payment-methods__method-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color); /* #D6E2FF */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 450px; /* Ensure cards have similar height */
}

.page-payment-methods__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__method-image {
    width: 100%;
    max-width: 400px; /* Max width for images in cards */
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-payment-methods__method-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--custom-color-1776249996415); /* #000000 */
    margin-bottom: 10px;
}

.page-payment-methods__method-description {
    font-size: 0.95em;
    color: var(--text-main); /* #1F2D3D */
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
}

.page-payment-methods__guide-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .page-payment-methods__guide-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.page-payment-methods__guide-block {
    background-color: var(--card-bg); /* #FFFFFF */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__guide-subtitle {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--main-color); /* #2F6BFF */
    margin-bottom: 15px;
}

.page-payment-methods__guide-list {
    list-style-type: decimal;
    padding-left: 25px;
    color: var(--text-main); /* #1F2D3D */
}

.page-payment-methods__guide-list li {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-payment-methods__security-support-section .page-payment-methods__text-content {
    font-size: 1.05em;
    max-width: 800px;
    margin: 0 auto 15px auto;
    text-align: center;
    color: var(--text-main); /* #1F2D3D */
}

.page-payment-methods__call-to-action {
    text-align: center;
    margin-top: 30px;
}

.page-payment-methods__security-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

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

.page-payment-methods__faq-item {
    background-color: var(--card-bg); /* #FFFFFF */
    border: 1px solid var(--border-color); /* #D6E2FF */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-payment-methods__faq-question {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--custom-color-1776249996415); /* #000000 */
    padding: 18px 25px;
    cursor: pointer;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color); /* #D6E2FF */
}

.page-payment-methods__faq-question::after {
    content: '+';
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-question::after {
    transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
    font-size: 1em;
    color: var(--text-main); /* #1F2D3D */
    padding: 0 25px 18px;
    margin: 0;
    display: none; /* Hidden by default */
}

.page-payment-methods__final-cta-section {
    text-align: center;
    padding-bottom: 60px;
}

.page-payment-methods__final-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 30px auto 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-payment-methods__container {
        padding: 15px;
    }

    .page-payment-methods__hero-section {
        padding-top: 10px; /* Keep consistent small top padding */
    }

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

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

    .page-payment-methods__hero-actions {
        flex-direction: column;
        gap: 10px;
    }

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

    .page-payment-methods__methods-grid {
        grid-template-columns: 1fr;
    }

    .page-payment-methods__method-card {
        min-height: auto; /* Allow height to adjust on mobile */
    }

    .page-payment-methods__final-cta-buttons {
        flex-direction: column;
    }

    /* Important: Mobile image overflow fix and min-size enforcement */
    .page-payment-methods__hero-image,
    .page-payment-methods__method-image,
    .page-payment-methods__security-image {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforced minimum */
        min-height: 200px; /* Enforced minimum */
    }
}

/* Ensure images within content sections adhere to minimum size and scale correctly */
.page-payment-methods__methods-grid img,
.page-payment-methods__call-to-action img {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow image to scale down from max-width while maintaining min-size */
    height: auto;
}

/* Specific image width/height to respect HTML attributes and prevent CSS shrinking */
.page-payment-methods__hero-image {
    max-width: 100%;
    height: auto; /* Let CSS handle responsive height based on width */
}
.page-payment-methods__method-image {
    max-width: 100%;
    height: auto;
}
.page-payment-methods__security-image {
    max-width: 100%;
    height: auto;
}