.page-payment-methods {
    color: #ffffff; /* Dark body background #121212, so text should be light */
    background-color: #121212;
    font-family: 'Arial', sans-serif;
}

.page-payment-methods__hero-banner {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Brand colors for gradient */
    padding-bottom: 60px;
}

.page-payment-methods__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-payment-methods__hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly transparent to let gradient show */
}

.page-payment-methods__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    margin: 0 20px;
}

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

.page-payment-methods__hero-description {
    font-size: 1.1em;
    color: #f0f0f0;
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.page-payment-methods__section {
    padding: 80px 20px;
    text-align: center;
}

.page-payment-methods__section:nth-of-type(even) {
    background-color: #1a1a1a;
}

.page-payment-methods__section-title {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__section-intro {
    font-size: 1.1em;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.page-payment-methods__container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

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

.page-payment-methods__method-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border: 1px solid #FFD700;
}

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

.page-payment-methods__method-icon {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 5px;
}

.page-payment-methods__method-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-payment-methods__method-description {
    font-size: 1em;
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 15px;
}

.page-payment-methods__method-details {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #f0f0f0;
    font-size: 0.95em;
}

.page-payment-methods__method-details li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.page-payment-methods__method-details li::before {
    content: '•';
    color: #FFD700;
    position: absolute;
    left: 0;
}

.page-payment-methods__cta-deposit, .page-payment-methods__cta-withdraw {
    margin-top: 40px;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-payment-methods__btn-primary {
    background-color: #FFD700;
    color: #121212;
    border: 2px solid #FFD700;
}

.page-payment-methods__btn-primary:hover {
    background-color: #e6c200;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-payment-methods__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-payment-methods__btn-secondary:hover {
    background-color: #FFD700;
    color: #121212;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

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

.page-payment-methods__feature-item {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid #8B0000;
}

.page-payment-methods__feature-item img {
    width: 100%;
    height: 200px; /* Consistent height for security images */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.page-payment-methods__feature-item h3 {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-payment-methods__feature-item p {
    font-size: 1em;
    color: #cccccc;
    line-height: 1.5;
}

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

.page-payment-methods__info-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    border: 1px solid #FFD700;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-payment-methods__info-card h3 {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-payment-methods__info-card p {
    font-size: 1em;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ container styles */
.page-payment-methods__faq-list {
    margin-top: 50px;
    text-align: left;
}

.page-payment-methods__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
}

/* FAQ default state - answer hidden */
.page-payment-methods__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: #cccccc;
    font-size: 1em;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough */
    padding: 20px !important;
    opacity: 1;
    background: #1a1a1a;
    border-radius: 0 0 5px 5px;
}

/* Question styles */
.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #2a2a2a;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-payment-methods__faq-question:hover {
    background: #3a3a3a;
    border-color: #FFD700;
}

.page-payment-methods__faq-question:active {
    background: #4a4a4a;
}

/* Question title styles */
.page-payment-methods__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    color: #f0f0f0;
    pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-payment-methods__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #FFD700;
    border-radius: 50%;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    color: #121212;
    background-color: #FFD700;
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: 2.8em;
    }
    .page-payment-methods__section-title {
        font-size: 2em;
    }
    .page-payment-methods__methods-grid, .page-payment-methods__security-features, .page-payment-methods__info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-banner {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-payment-methods__hero-content {
        padding: 15px;
        margin: 0 15px;
    }
    .page-payment-methods__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-payment-methods__hero-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-payment-methods__hero-cta {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-payment-methods__btn-primary, .page-payment-methods__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-payment-methods__section {
        padding: 40px 15px;
    }
    .page-payment-methods__section-title {
        font-size: 1.8em;
    }
    .page-payment-methods__section-intro {
        font-size: 0.9em;
        margin-bottom: 30px;
    }
    .page-payment-methods__methods-grid, .page-payment-methods__security-features, .page-payment-methods__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-payment-methods__method-card, .page-payment-methods__feature-item, .page-payment-methods__info-card {
        padding: 20px;
    }
    .page-payment-methods__method-icon {
        height: 150px;
    }
    .page-payment-methods__method-title {
        font-size: 1.5em;
    }
    .page-payment-methods__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-payment-methods__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-payment-methods__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-payment-methods__faq-answer {
        padding: 0 15px;
    }
    .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
        padding: 15px !important;
    }
    /* Mobile image responsiveness */
    .page-payment-methods img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-payment-methods__hero-banner,
    .page-payment-methods__section,
    .page-payment-methods__container,
    .page-payment-methods__method-card,
    .page-payment-methods__feature-item,
    .page-payment-methods__info-card {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-payment-methods__hero-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}