/* style/payment-methods.css */

/* Base styles for the page */
.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);
}

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

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

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

.page-payment-methods__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.page-payment-methods__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-payment-methods__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

/* Section Titles and Descriptions */
.page-payment-methods__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-payment-methods__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* General Section Styling */
.page-payment-methods__overview-section,
.page-payment-methods__how-to-deposit-section,
.page-payment-methods__how-to-withdraw-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section,
.page-payment-methods__cta-section {
    padding: 80px 0;
}

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

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

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

.page-payment-methods__dark-bg .page-payment-methods__section-description {
    color: #f0f0f0;
}

/* Card Styles */
.page-payment-methods__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: #333333;
}

.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: #26A9E0;
}

.page-payment-methods__card-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
}

/* Feature Grid (Overview Section) */
.page-payment-methods__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-payment-methods__feature-icon {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin-bottom: 15px;
    border-radius: 8px;
    object-fit: cover;
}

/* Steps Grid (How-To Sections) */
.page-payment-methods__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-payment-methods__step-card .page-payment-methods__card-title {
    color: #26A9E0;
}

.page-payment-methods__step-number {
    background-color: #26A9E0;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.page-payment-methods__note {
    text-align: center;
    margin-top: 40px;
    font-size: 1em;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
}

.page-payment-methods__note p {
    margin: 0;
    color: #ffffff;
}

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

.page-payment-methods__security-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    color: #ffffff;
}

.page-payment-methods__security-icon {
    width: 100%;
    height: auto;
    max-width: 150px;
    margin-bottom: 20px;
}

.page-payment-methods__security-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-payment-methods__security-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-payment-methods__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-payment-methods__faq-item {
    background-color: #f9f9f9;
    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 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    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;
    color: #26A9E0;
}

.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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

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

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

/* Buttons */
.page-payment-methods__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 30px;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-payment-methods__btn-primary {
    background-color: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    border: 2px solid transparent;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: 2.8em;
    }
    .page-payment-methods__hero-description {
        font-size: 1.1em;
    }
    .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 {
        min-height: 400px;
    }
    .page-payment-methods__hero-title {
        font-size: 2.2em;
    }
    .page-payment-methods__hero-description {
        font-size: 1em;
    }
    .page-payment-methods__cta-button {
        font-size: 1em;
        padding: 12px 25px;
        width: 100%; /* Ensure button takes full width */
    }
    .page-payment-methods__section-title {
        font-size: 1.8em;
    }
    .page-payment-methods__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-payment-methods__overview-section,
    .page-payment-methods__how-to-deposit-section,
    .page-payment-methods__how-to-withdraw-section,
    .page-payment-methods__security-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-section {
        padding: 60px 0;
    }
    .page-payment-methods__container {
        padding: 0 15px;
    }
    .page-payment-methods__features-grid,
    .page-payment-methods__steps-grid,
    .page-payment-methods__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-payment-methods__card,
    .page-payment-methods__security-item {
        padding: 25px;
    }
    .page-payment-methods__feature-icon,
    .page-payment-methods__security-icon {
        max-width: 150px;
    }
    .page-payment-methods__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-payment-methods__faq-answer {
        padding: 0 20px;
    }
    .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
        padding: 10px 20px 20px 20px;
    }
    /* Mobile image responsiveness */
    .page-payment-methods img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-payment-methods__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    }
    .page-payment-methods__cta-button,
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary,
    .page-payment-methods a[class*="button"],
    .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-buttons,
    .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-buttons {
      display: flex;
      flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__hero-title {
        font-size: 1.8em;
    }
    .page-payment-methods__hero-description {
        font-size: 0.9em;
    }
    .page-payment-methods__section-title {
        font-size: 1.5em;
    }
}