.page-payment-methods {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default light background */
}

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

.page-payment-methods__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, shared.css handles body padding */
    padding-bottom: 50px;
    background: linear-gradient(135deg, #017439, #005a2e);
    color: #ffffff;
}

.page-payment-methods__hero-content {
    max-width: 900px;
    margin-bottom: 30px;
}

.page-payment-methods__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #FFFF00; /* Register and Login font color */
}

.page-payment-methods__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__hero-image {
    width: 100%;
    max-width: 1000px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-payment-methods__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

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

.page-payment-methods__btn-primary {
    background: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-payment-methods__btn-secondary:hover {
    background: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

.page-payment-methods__btn-large {
    padding: 18px 35px;
    font-size: 1.1em;
}

.page-payment-methods__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-payment-methods__introduction-section,
.page-payment-methods__how-to-deposit-section,
.page-payment-methods__security-section,
.page-payment-methods__faq-section {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff;
    color: #333333;
}

.page-payment-methods__dark-bg {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-payment-methods__section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #017439;
}

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

.page-payment-methods__section-description {
    font-size: 1.05em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

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

.page-payment-methods__feature-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.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: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333333;
}

.page-payment-methods__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-payment-methods__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #017439;
}

.page-payment-methods__card-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-payment-methods__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-payment-methods__step-list--white .page-payment-methods__step-item {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-payment-methods__step-list--white .page-payment-methods__step-title {
    color: #FFFF00;
}

.page-payment-methods__step-list--white .page-payment-methods__step-item p {
    color: #f0f0f0;
}

.page-payment-methods__step-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-payment-methods__step-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #017439;
}

.page-payment-methods__step-item p a {
    color: #C30808;
    text-decoration: underline;
}

.page-payment-methods__step-item p a:hover {
    color: #a30606;
}

.page-payment-methods__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-payment-methods__security-item {
    background: #f9f9f9;
    border-left: 5px solid #017439;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-payment-methods__security-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #017439;
}

/* FAQ styles */
details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333;
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #017439;
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question::-webkit-details-marker {
  display: none;
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question:hover {
  background: #f5f5f5;
}
.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #017439; /* Ensure good contrast */
}
.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}
.page-payment-methods__faq-answer p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 0;
}

.page-payment-methods__cta-section {
    padding: 80px 0;
    background: linear-gradient(90deg, #017439, #005a2e);
    color: #ffffff;
    text-align: center;
}

.page-payment-methods__cta-container {
    max-width: 900px;
}

.page-payment-methods__cta-section .page-payment-methods__btn-primary {
    background: #C30808;
    border-color: #C30808;
    color: #FFFF00;
}

.page-payment-methods__cta-section .page-payment-methods__btn-primary:hover {
    background: #a30606;
    border-color: #a30606;
}

.page-payment-methods__cta-section .page-payment-methods__btn-secondary {
    background: #ffffff;
    border-color: #ffffff;
    color: #017439;
}

.page-payment-methods__cta-section .page-payment-methods__btn-secondary:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
    color: #005a2e;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-payment-methods__container {
        padding: 20px 30px;
    }

    .page-payment-methods__hero-content {
        margin-bottom: 20px;
    }

    .page-payment-methods__hero-image {
        max-width: 90%;
    }

    .page-payment-methods__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

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

    .page-payment-methods__method-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-payment-methods__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .page-payment-methods {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-payment-methods__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO 主图区域 */
    .page-payment-methods__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }
    .page-payment-methods__hero-content {
        margin-bottom: 20px;
    }
    .page-payment-methods__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
        line-height: 1.3;
    }
    .page-payment-methods__hero-description {
        font-size: 1em;
        padding: 0 10px;
    }
    .page-payment-methods__hero-image {
        max-width: 100%;
        border-radius: 0;
    }
    .page-payment-methods__hero-image img {
        object-fit: contain !important; /* Mobile: contain to prevent cropping */
        aspect-ratio: unset !important; /* Mobile: unset aspect ratio */
        width: 100% !important;
        height: auto !important;
    }

    /* 产品展示图区域 */
    .page-payment-methods__method-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-payment-methods__card {
        padding: 20px;
        margin: 0 10px;
    }
    .page-payment-methods__card-image {
        height: 180px;
    }

    /* 装饰主标题 + 长文 SEO 区 / 通用图片与容器 */
    .page-payment-methods__section-title {
        font-size: 1.8em;
        line-height: 1.3;
        padding: 0 10px;
    }
    .page-payment-methods__section-description {
        font-size: 0.95em;
        padding: 0 10px;
        margin-bottom: 30px;
    }
    .page-payment-methods__feature-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }
    .page-payment-methods__introduction-section,
    .page-payment-methods__how-to-deposit-section,
    .page-payment-methods__security-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__dark-bg {
        padding: 40px 0;
    }
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-payment-methods__step-list,
    .page-payment-methods__security-list {
        padding: 0 15px;
        gap: 15px;
    }
    .page-payment-methods__step-item,
    .page-payment-methods__security-item {
        padding: 20px;
    }
    .page-payment-methods__step-title,
    .page-payment-methods__security-title {
        font-size: 1.15em;
    }

    /* 按钮与按钮容器 */
    .page-payment-methods__cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .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-section .page-payment-methods__btn-large {
        font-size: 1em;
    }

    /* FAQ mobile */
    details.page-payment-methods__faq-item summary.page-payment-methods__faq-question { padding: 15px; }
    .page-payment-methods__faq-qtext { font-size: 15px; }
    details.page-payment-methods__faq-item .page-payment-methods__faq-answer { padding: 0 15px 15px; }
}