:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --card-bg: #17191F;
    --background: #0D0E12;
    --text-main: #FFF3E6;
    --border: #A84F0C;
    --glow: #FFB04D;
    --deep-orange: #D96800;
    --header-offset: 122px; /* Placeholder, actual value from shared.css */
}

.page-payment-methods {
    padding: 10px 15px 40px; /* Small top padding, good side padding, more bottom padding */
    max-width: 1390px; /* Boxed layout */
    margin: 0 auto; /* Center align */
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scroll */
    color: var(--text-main); /* Ensure text color is set */
    background-color: var(--background); /* Ensure background color is set */
}

.page-payment-methods__hero-section {
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    padding: 0; /* Reset padding, as body handles top offset */
}

.page-payment-methods__hero-image-wrapper {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9; /* Standard widescreen ratio for hero */
    object-fit: cover;
    object-position: center;
}

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

.page-payment-methods__main-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.page-payment-methods__description {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main);
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-payment-methods__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color); /* Use primary color for underline */
    border-radius: 2px;
}

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

.page-payment-methods__introduction-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-section {
    padding: 20px 0;
}

.page-payment-methods__method-section {
    margin-bottom: 60px;
    padding: 30px 0;
    background-color: var(--card-bg); /* Card background color */
    border-radius: 12px;
    padding: 40px;
}

.page-payment-methods__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-payment-methods__content-wrapper--reversed {
    flex-direction: row-reverse;
}

.page-payment-methods__text-content {
    flex: 1;
    min-width: 300px;
}

.page-payment-methods__image-container {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-payment-methods__method-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 4 / 3; /* Common content image ratio */
    min-width: 200px; /* Min image width */
    min-height: 200px; /* Min image height */
    filter: none; /* Ensure no grayscale or other filters */
}

.page-payment-methods__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-payment-methods__list-item {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-payment-methods__list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--glow); /* Use glow color for emphasis */
}

.page-payment-methods__cta-button,
.page-payment-methods__action-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    background: var(--button-gradient); /* Button gradient */
    color: var(--text-main); /* Text main for button text */
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.page-payment-methods__cta-button:hover,
.page-payment-methods__action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 165, 58, 0.4); /* Glow effect on hover */
}

.page-payment-methods__cta-button--secondary {
    background: transparent;
    border: 2px solid var(--border); /* Border color for secondary button */
    color: var(--text-main);
    margin-left: 15px;
}

.page-payment-methods__cta-button--secondary:hover {
    background: rgba(255, 165, 58, 0.1);
    box-shadow: 0 4px 10px rgba(255, 165, 58, 0.2);
}

.page-payment-methods__cta-buttons {
    text-align: center;
    margin-top: 40px;
}

.page-payment-methods__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 20px 25px;
    border: 1px solid var(--border); /* Border for FAQ items */
}

.page-payment-methods__faq-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-payment-methods__faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-question::after {
    content: '-'; /* Change to minus when active */
}

.page-payment-methods__faq-answer {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    display: none; /* Initially hidden, toggled by JS */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-payment-methods__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-payment-methods__content-wrapper--reversed {
        flex-direction: column; /* On smaller screens, reverse also becomes column */
    }
    .page-payment-methods__method-image {
        max-width: 80%; /* Constrain image on smaller screens */
        margin: 0 auto;
    }
    .page-payment-methods__text-content {
        text-align: center;
    }
    .page-payment-methods__list {
        text-align: left;
        margin: 20px auto;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .page-payment-methods {
        padding: 10px 12px 30px; /* Adjust padding for smaller screens */
    }
    .page-payment-methods__hero-image {
        aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    }
    .page-payment-methods__main-title {
        font-size: clamp(1.6rem, 8vw, 2.5rem); /* More aggressive clamp for mobile */
    }
    .page-payment-methods__description {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
    }
    .page-payment-methods__section-title {
        font-size: clamp(1.3rem, 6vw, 2rem);
    }
    .page-payment-methods__method-section {
        padding: 25px;
    }
    .page-payment-methods__method-image {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
        min-width: 200px; /* Ensure min size is met */
        min-height: 200px; /* Ensure min size is met */
    }
    .page-payment-methods__text-block,
    .page-payment-methods__list-item,
    .page-payment-methods__faq-answer {
        font-size: 0.9rem;
    }
    .page-payment-methods__cta-button--secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    .page-payment-methods__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 549px) {
    .page-payment-methods__hero-image {
        aspect-ratio: 4 / 3; /* More vertical aspect ratio for hero on very small screens */
    }
    .page-payment-methods__text-block {
        text-align: left; /* Justify can look bad on very narrow columns */
    }
    .page-payment-methods__method-section {
        padding: 20px;
    }
}

/* Ensure content area images meet minimum size requirements */
.page-payment-methods img:not(.page-payment-methods__hero-image) {
    min-width: 200px;
    min-height: 200px;
}