/* style/payment-methods.css */
.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Fallback to white if variable not set */
}

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

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.page-payment-methods__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

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

.page-payment-methods__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-payment-methods__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439;
}

.page-payment-methods__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #017439;
}

.page-payment-methods__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-payment-methods__dark-bg .page-payment-methods__section-title,
.page-payment-methods__dark-bg .page-payment-methods__sub-title {
    color: #ffffff;
}

.page-payment-methods__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Card Styling */
.page-payment-methods__card {
    background: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-payment-methods__card-title {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 15px;
    color: #017439;
}

.page-payment-methods__card-icon {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Why Choose Section */
.page-payment-methods__why-choose-section {
    padding: 80px 0;
}

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

/* Deposit Methods Section */
.page-payment-methods__deposit-methods-section {
    padding: 80px 0;
}

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

.page-payment-methods__deposit-methods-section .page-payment-methods__card {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-payment-methods__deposit-methods-section .page-payment-methods__card-title {
    color: #ffffff;
}

/* How To Deposit Section */
.page-payment-methods__how-to-deposit-section {
    padding: 80px 0;
}

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

.page-payment-methods__process-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Withdrawal Section */
.page-payment-methods__withdrawal-section {
    padding: 80px 0;
}

.page-payment-methods__withdrawal-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-payment-methods__withdrawal-content .page-payment-methods__text-block {
    flex: 2;
}

.page-payment-methods__withdrawal-image {
    flex: 1;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-payment-methods__faq-section {
    padding: 80px 0;
}

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

.page-payment-methods__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    color: #017439;
    transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
    background-color: #f0f0f0;
}

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

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

.page-payment-methods__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px;
}

.page-payment-methods__faq-answer p {
    margin-bottom: 0;
    color: #333333;
}

/* CTA Section */
.page-payment-methods__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-payment-methods__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-payment-methods__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    color: #ffffff;
}

/* Buttons */
.page-payment-methods__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for registration/login */
    color: #FFFF00; /* Custom font color for registration/login */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.page-payment-methods__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

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

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

    .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: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header adjustment */
    }

    .page-payment-methods__main-title {
        font-size: 2.2em;
    }

    .page-payment-methods__intro-text {
        font-size: 1em;
    }

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

    .page-payment-methods__sub-title {
        font-size: 1.5em;
    }

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

    .page-payment-methods__withdrawal-content {
        flex-direction: column;
    }

    .page-payment-methods__withdrawal-image {
        margin-top: 30px;
    }

    .page-payment-methods__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* Mobile image responsiveness */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness (if any video) */
    .page-payment-methods video,
    .page-payment-methods__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-payment-methods__video-section,
    .page-payment-methods__video-container,
    .page-payment-methods__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile button responsiveness */
    .page-payment-methods__btn-primary,
    .page-payment-methods a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-payment-methods__cta-container,
    .page-payment-methods__button-group,
    .page-payment-methods__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-payment-methods__cta-container {
        flex-direction: column;
    }
    .page-payment-methods__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}