/* style/payment-methods.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --dark-bg-color: #121212;
    --light-text-color: #FFFFFF;
    --dark-text-color: #333333;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --register-login-text-color: #FFFF00;
}

.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Default text color for dark body background */
    background-color: var(--dark-bg-color);
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-payment-methods__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    overflow: hidden;
}

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

.page-payment-methods__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.page-payment-methods__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-payment-methods__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

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

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

.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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-payment-methods__btn-primary {
    background-color: var(--register-button-bg);
    color: var(--register-login-text-color);
    border: 2px solid var(--register-button-bg);
}

.page-payment-methods__btn-primary:hover {
    background-color: #e00;
    border-color: #e00;
}

.page-payment-methods__btn-secondary {
    background-color: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--light-text-color);
}

.page-payment-methods__btn-secondary:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}

.page-payment-methods__introduction-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__faq-section {
    padding: 60px 0;
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
}

.page-payment-methods__methods-section,
.page-payment-methods__security-section,
.page-payment-methods__cta-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-payment-methods__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--light-text-color);
}

.page-payment-methods__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--light-text-color);
}

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

.page-payment-methods__card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text-color);
}

.page-payment-methods__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-payment-methods__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--light-text-color);
}

.page-payment-methods__card-description {
    font-size: 0.95em;
    color: var(--light-text-color);
    flex-grow: 1;
}

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

.page-payment-methods__list-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    color: var(--light-text-color);
    font-size: 1.05em;
}

.page-payment-methods__list-item strong {
    color: var(--secondary-color);
}

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

.page-payment-methods__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--light-text-color);
}

.page-payment-methods__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.page-payment-methods__feature-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--light-text-color);
}

.page-payment-methods__feature-description {
    font-size: 0.95em;
    color: var(--light-text-color);
}

.page-payment-methods__faq-list {
    margin-top: 40px;
}

.page-payment-methods__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--light-text-color);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-text-color);
    list-style: none; /* For details/summary */
}

.page-payment-methods__faq-question::-webkit-details-marker {
    display: none;
}

.page-payment-methods__faq-item[open] > .page-payment-methods__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
    transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
    padding: 15px 25px;
    font-size: 1em;
    color: var(--light-text-color);
}

.page-payment-methods__cta-section .page-payment-methods__container {
    text-align: center;
    padding: 60px 40px;
    border-radius: 15px;
    background-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--light-text-color);
}

/* Ensure all images are responsive and not smaller than 200px */
.page-payment-methods img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: 2.5em;
    }
    .page-payment-methods__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-payment-methods {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-payment-methods__hero-section {
        padding: 40px 15px;
    }
    .page-payment-methods__hero-title {
        font-size: 2em;
    }
    .page-payment-methods__hero-description {
        font-size: 1em;
    }
    .page-payment-methods__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }
    .page-payment-methods__section-title {
        font-size: 1.8em;
    }
    .page-payment-methods__introduction-section,
    .page-payment-methods__methods-section,
    .page-payment-methods__withdrawal-section,
    .page-payment-methods__security-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-section {
        padding: 40px 0;
    }
    .page-payment-methods__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-payment-methods img {
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-payment-methods__card-image {
        height: auto; /* Allow height to adjust for smaller screens */
    }
    .page-payment-methods__cta-section .page-payment-methods__container {
        padding: 40px 20px;
    }
    .page-payment-methods__security-features {
        grid-template-columns: 1fr;
    }
    .page-payment-methods__card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__hero-title {
        font-size: 1.8em;
    }
    .page-payment-methods__section-title {
        font-size: 1.5em;
    }
    .page-payment-methods__card-title {
        font-size: 1.3em;
    }
    .page-payment-methods__faq-question {
        font-size: 1em;
    }
    .page-payment-methods__faq-answer {
        font-size: 0.9em;
    }
}