:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --background-light: #F4F7FB;
    --background-card: #FFFFFF;
    --text-main: #1F2D3D;
    --text-dark: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --shadow-light: rgba(0, 0, 0, 0.08);
}

.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for light backgrounds */
    background: var(--background-light); /* Default body background is light */
}

/* Fixed header spacing - Rely on shared.css for body padding-top */
.page-payment-methods__hero-section {
    padding-top: 10px; /* Small top padding, body handles main offset */
}

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

/* Section Styles */
.page-payment-methods__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
}

.page-payment-methods__text-block {
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-main);
}

.page-payment-methods__text-block--note {
    font-style: italic;
    font-size: 15px;
    margin-top: 40px;
}

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    background: var(--primary-color);
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 40px; /* Space below image before text */
}

.page-payment-methods__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensure image covers the area */
    display: block;
}

.page-payment-methods__hero-content {
    position: relative; /* Relative for normal flow */
    z-index: 10;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 0 20px;
    margin-top: 40px; /* Space between image and content */
}

.page-payment-methods__main-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-payment-methods__hero-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-payment-methods__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    text-align: center;
}

.page-payment-methods__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px var(--glow-color);
}

.page-payment-methods__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--glow-color);
    opacity: 0.9;
}

.page-payment-methods__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-payment-methods__btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-payment-methods__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Light/Dark Background Sections */
.page-payment-methods__light-bg {
    background: var(--background-light);
    color: var(--text-main);
}

.page-payment-methods__dark-bg {
    background: var(--primary-color);
    color: #ffffff;
}

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

/* Overview Section */
.page-payment-methods__features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-payment-methods__feature-card {
    background: var(--background-card);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-payment-methods__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-light);
}

.page-payment-methods__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block; /* Important for responsive images */
}

.page-payment-methods__feature-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-payment-methods__feature-description {
    font-size: 15px;
    color: var(--text-main);
}

/* Deposit/Withdrawal Methods */
.page-payment-methods__methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-payment-methods__method-card {
    background: var(--background-card);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.page-payment-methods__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-light);
}

.page-payment-methods__method-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block; /* Important for responsive images */
}

.page-payment-methods__method-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-payment-methods__method-description {
    font-size: 15px;
    color: var(--text-main);
}

.page-payment-methods__withdrawal-steps {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__step-item {
    background: var(--background-card);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px var(--shadow-light);
    border-left: 5px solid var(--primary-color);
}

.page-payment-methods__step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-payment-methods__step-description {
    font-size: 16px;
    color: var(--text-main);
}

/* Security Section */
.page-payment-methods__security-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-payment-methods__security-card {
    background: var(--background-card);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.page-payment-methods__security-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-light);
}

.page-payment-methods__security-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block; /* Important for responsive images */
}

.page-payment-methods__security-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-payment-methods__security-description {
    font-size: 15px;
    color: var(--text-main);
}

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

details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 12px; /* Slightly larger border radius for modern look */
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--background-card);
  box-shadow: 0 2px 10px var(--shadow-light);
}
details.page-payment-methods__faq-item summary.page-payment-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: var(--text-dark); /* Ensure question text is dark */
}
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: var(--background-light); /* Lighter hover background */
  color: var(--primary-color); /* Primary color on hover */
}
.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 18px; /* Slightly larger font size */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-payment-methods__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: var(--primary-color); /* Primary color for toggle */
  flex-shrink: 0;
  margin-left: 20px; /* Increased margin */
  width: 30px;
  text-align: center;
}
details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 25px 25px;
  background: var(--background-light);
  border-radius: 0 0 12px 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
}

/* Final CTA Section */
.page-payment-methods__cta-final-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
    background: var(--primary-color);
    color: #ffffff;
}

.page-payment-methods__cta-final-section .page-payment-methods__section-title {
    color: #ffffff;
    margin-bottom: 25px;
}

.page-payment-methods__cta-final-section .page-payment-methods__text-block {
    color: #f0f0f0;
    margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__main-title {
        font-size: 42px;
    }
    .page-payment-methods__hero-description {
        font-size: 17px;
    }
    .page-payment-methods__section-title {
        font-size: 32px;
    }
    .page-payment-methods__features-grid,
    .page-payment-methods__methods-grid,
    .page-payment-methods__security-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .page-payment-methods__container {
        padding: 30px 20px;
    }
    .page-payment-methods__feature-title,
    .page-payment-methods__method-title,
    .page-payment-methods__security-title {
        font-size: 20px;
    }
    .page-payment-methods__step-title {
        font-size: 18px;
    }
    .page-payment-methods__faq-qtext {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    /* General responsive for images and buttons */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Ensure image fits within its container */
    }
    .page-payment-methods__hero-image {
        object-fit: cover !important; /* Hero image should still cover */
    }
    .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__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: 12px 20px !important; /* Adjust padding for smaller screens */
        font-size: 16px !important;
    }
    .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;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important; /* Space between stacked buttons */
    }


    /* Hero Section */
    .page-payment-methods__hero-section {
        padding-top: 10px; /* Small top padding */
        padding-bottom: 30px;
    }
    .page-payment-methods__hero-image-wrapper {
        max-height: 400px;
    }
    .page-payment-methods__main-title {
        font-size: 32px;
        margin-top: 30px;
    }
    .page-payment-methods__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Section Titles and Text */
    .page-payment-methods__section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    .page-payment-methods__text-block {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Grids (Features, Methods, Security) */
    .page-payment-methods__features-grid,
    .page-payment-methods__methods-grid,
    .page-payment-methods__security-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-payment-methods__feature-card,
    .page-payment-methods__method-card,
    .page-payment-methods__security-card {
        padding: 25px;
    }

    .page-payment-methods__feature-icon,
    .page-payment-methods__method-icon,
    .page-payment-methods__security-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .page-payment-methods__feature-title,
    .page-payment-methods__method-title,
    .page-payment-methods__security-title {
        font-size: 20px;
    }

    /* Withdrawal Steps */
    .page-payment-methods__step-item {
        padding: 20px 25px;
        margin-bottom: 15px;
    }
    .page-payment-methods__step-title {
        font-size: 18px;
    }
    .page-payment-methods__step-description {
        font-size: 15px;
    }

    /* FAQ Section */
    details.page-payment-methods__faq-item summary.page-payment-methods__faq-question { padding: 15px; }
    .page-payment-methods__faq-qtext { font-size: 16px; }
    .page-payment-methods__faq-toggle { font-size: 24px; margin-left: 15px; width: 25px; }
    details.page-payment-methods__faq-item .page-payment-methods__faq-answer { padding: 0 15px 15px; font-size: 15px; }

    /* Final CTA Section */
    .page-payment-methods__cta-final-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-payment-methods__cta-final-section .page-payment-methods__text-block {
        margin-bottom: 30px;
    }
}