.page-payment-methods {
    color: #ffffff; /* Light text for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-payment-methods__hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #1A202C; /* Main color */
    min-height: 500px; /* Ensure hero section has a minimum height */
}

.page-payment-methods__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Slightly dimmed to make text stand out */
}

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

.page-payment-methods__hero-title {
    font-size: 3.5em;
    color: #FFD700; /* Accent color for title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-payment-methods__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

.page-payment-methods__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 180px;
    text-align: center;
}

.page-payment-methods__hero-button--primary {
    background-color: #FFD700; /* Accent color */
    color: #1A202C; /* Dark text on accent background */
}

.page-payment-methods__hero-button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-payment-methods__hero-button--secondary {
    background-color: transparent;
    color: #FFD700; /* Accent color for text */
    border: 2px solid #FFD700; /* Accent color border */
}

.page-payment-methods__hero-button--secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

.page-payment-methods__overview-section,
.page-payment-methods__how-to-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section,
.page-payment-methods__related-guides-section,
.page-payment-methods__cta-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.page-payment-methods__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Accent color */
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.page-payment-methods__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

.page-payment-methods__section-description {
    font-size: 1.1em;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-payment-methods__method-card,
.page-payment-methods__step-card,
.page-payment-methods__guide-card {
    background-color: rgba(26, 32, 44, 0.8); /* Slightly transparent main color */
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-payment-methods__method-card:hover,
.page-payment-methods__step-card:hover,
.page-payment-methods__guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__method-icon {
    width: 250px; /* Min size 200px, using 250px */
    height: 200px; /* Min size 200px, using 200px */
    object-fit: contain;
    margin: 0 auto 25px;
    border-radius: 8px;
}

.page-payment-methods__method-title,
.page-payment-methods__step-title,
.page-payment-methods__guide-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-payment-methods__guide-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-payment-methods__guide-title a:hover {
    color: #e6c200;
}

.page-payment-methods__method-text,
.page-payment-methods__step-text,
.page-payment-methods__guide-description {
    font-size: 1em;
    color: #b0b0b0;
    margin-bottom: 25px;
    flex-grow: 1; /* Allows text to take up available space */
}

.page-payment-methods__method-link,
.page-payment-methods__step-button,
.page-payment-methods__guide-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD700;
    color: #1A202C;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto; /* Pushes button to the bottom */
}

.page-payment-methods__method-link:hover,
.page-payment-methods__step-button:hover,
.page-payment-methods__guide-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-payment-methods__security-section {
    background-color: rgba(26, 32, 44, 0.8);
    padding: 60px 20px;
    border-radius: 12px;
}

.page-payment-methods__security-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-payment-methods__security-image {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__security-text-content {
    flex: 2;
    text-align: left;
    min-width: 300px;
}

.page-payment-methods__security-text-content .page-payment-methods__section-title {
    text-align: left;
}

.page-payment-methods__security-text-content .page-payment-methods__section-title::after {
    left: 0;
    transform: translateX(0);
}

.page-payment-methods__security-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.page-payment-methods__security-feature-item {
    background-color: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #FFD700;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #f0f0f0;
    font-size: 1.05em;
}

.page-payment-methods__security-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #1A202C;
    color: #FFD700;
    border: 2px solid #FFD700;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-payment-methods__security-button:hover {
    background-color: #FFD700;
    color: #1A202C;
}

.page-payment-methods__faq-container {
    text-align: left;
    margin-top: 40px;
}

.page-payment-methods__faq-item {
    background-color: rgba(26, 32, 44, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 25px 30px;
}

.page-payment-methods__faq-question {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
    cursor: pointer;
}

.page-payment-methods__faq-answer {
    font-size: 1em;
    color: #b0b0b0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-payment-methods__faq-item--active .page-payment-methods__faq-answer {
    max-height: 200px; /* Adjust as needed for content */
}

.page-payment-methods__cta-section {
    background-color: #1A202C;
    padding: 60px 20px;
    border-radius: 12px;
    margin-top: 80px;
}

.page-payment-methods__cta-button {
    display: inline-block;
    padding: 18px 40px;
    background-color: #FFD700;
    color: #1A202C;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.3em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: 3em;
    }
    .page-payment-methods__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding: 60px 0;
    }
    .page-payment-methods__hero-title {
        font-size: 2.5em;
    }
    .page-payment-methods__hero-description {
        font-size: 1.1em;
    }
    .page-payment-methods__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-payment-methods__hero-button {
        width: 80%;
        max-width: 300px;
    }

    .page-payment-methods__overview-section,
    .page-payment-methods__how-to-section,
    .page-payment-methods__security-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__related-guides-section,
    .page-payment-methods__cta-section {
        margin: 40px auto;
        padding: 0 15px;
    }

    .page-payment-methods__section-title {
        font-size: 1.8em;
    }

    .page-payment-methods__methods-grid,
    .page-payment-methods__steps-grid,
    .page-payment-methods__guides-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-payment-methods__method-icon,
    .page-payment-methods__security-image {
        width: 100%;
        max-width: 300px; /* Example max-width, ensuring it's not smaller than 200px */
        height: auto;
        min-height: 200px; /* Explicitly set min-height to ensure it's not small */
        min-width: 200px; /* Explicitly set min-width to ensure it's not small */
        object-fit: contain;
    }

    .page-payment-methods__security-content {
        flex-direction: column;
        text-align: center;
    }

    .page-payment-methods__security-text-content .page-payment-methods__section-title {
        text-align: center;
    }

    .page-payment-methods__security-text-content .page-payment-methods__section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .page-payment-methods__security-features {
        text-align: center;
    }
    .page-payment-methods__security-feature-item {
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }

    .page-payment-methods img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum width */
        min-height: 200px; /* Enforce minimum height */
        object-fit: contain; /* Ensure image fits without cropping */
    }

    .page-payment-methods__hero-image {
        min-width: unset;
        min-height: unset;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__hero-title {
        font-size: 2em;
    }
    .page-payment-methods__hero-description {
        font-size: 1em;
    }
    .page-payment-methods__section-title {
        font-size: 1.5em;
    }
    .page-payment-methods__faq-question {
        font-size: 1.2em;
    }
    .page-payment-methods__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}