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

/* --- Hero Section --- */
.page-payment-methods__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    margin-bottom: 40px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.page-payment-methods__hero-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1; /* Ensure image is below content for visual separation */
}

.page-payment-methods__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default cover for desktop */
    aspect-ratio: 16/9; /* Maintain aspect ratio */
}

.page-payment-methods__hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 2; /* Content above image for clear reading, but not overlaid on image */
    background-color: #FFFFFF; /* Explicit background for content */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-50px); /* Slightly lift content over hero image for visual appeal */
    margin-bottom: -50px; /* Adjust margin to compensate for transform */
}

.page-payment-methods__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
    font-weight: 700;
    color: #017439; /* Brand green */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-payment-methods__description {
    font-size: clamp(16px, 2vw, 20px);
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- General Section Styles --- */
.page-payment-methods__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-payment-methods__section-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 40px;
}

.page-payment-methods__section-title--light {
    color: #FFFFFF;
}

.page-payment-methods__text-block {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__text-block--light {
    color: #FFFFFF;
}

.page-payment-methods__image-center {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-payment-methods__image-full {
    display: block;
    margin: 30px auto;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Intro Section --- */
.page-payment-methods__intro-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

/* --- Methods Section (Dark Background) --- */
.page-payment-methods__methods-section {
    background-color: #017439; /* Brand primary color */
    padding: 60px 0;
    margin-bottom: 40px;
}

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

.page-payment-methods__method-card {
    background-color: #FFFFFF;
    color: #333333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.page-payment-methods__method-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
}

/* --- Process Section --- */
.page-payment-methods__process-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-payment-methods__ordered-list {
    max-width: 900px;
    margin: 30px auto;
    padding-left: 25px;
    list-style-type: decimal;
}

.page-payment-methods__ordered-list li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333333;
}

.page-payment-methods__ordered-list li strong {
    color: #017439;
}

/* --- Notes Section --- */
.page-payment-methods__notes-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-payment-methods__unordered-list {
    max-width: 900px;
    margin: 30px auto;
    padding-left: 25px;
    list-style-type: disc;
}

.page-payment-methods__unordered-list li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333333;
}

.page-payment-methods__unordered-list li strong {
    color: #017439;
}

/* --- Security Section --- */
.page-payment-methods__security-section {
    background-color: #017439;
    padding: 60px 0;
    margin-bottom: 40px;
}

/* --- FAQ Section --- */
.page-payment-methods__faq-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-payment-methods__faq-list {
    max-width: 900px;
    margin: 30px auto;
}

details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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;
}
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: #333333; /* Ensure contrast on light background */
}
.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: #555555; /* Ensure contrast on light background */
}

/* --- Conclusion Section --- */
.page-payment-methods__conclusion-section {
    background-color: #017439;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 0; /* Last section */
}

/* --- Buttons --- */
.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: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    text-align: center;
}

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

.page-payment-methods__btn-primary:hover {
    background-color: #E00A0A; /* Slightly lighter red */
    transform: translateY(-2px);
}

.page-payment-methods__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand green */
    border: 2px solid #017439;
}

.page-payment-methods__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #005a2e;
    transform: translateY(-2px);
}

/* --- Responsive Design (Tablet: max-width: 1024px) --- */
@media (max-width: 1024px) {
    .page-payment-methods__hero-content {
        padding: 30px 20px;
        transform: translateY(-40px);
        margin-bottom: -40px;
    }
    .page-payment-methods__main-title {
        font-size: clamp(26px, 4.5vw, 42px);
    }
    .page-payment-methods__description {
        font-size: clamp(16px, 2.5vw, 19px);
    }
    .page-payment-methods__cta-buttons {
        gap: 15px;
    }
    .page-payment-methods__section-title {
        font-size: clamp(22px, 4vw, 34px);
    }
    .page-payment-methods__methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        padding: 14px 25px;
        font-size: 17px;
    }
}

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

    /* HERO Section */
    .page-payment-methods__hero-section {
        padding-top: 10px; /* Still small padding */
        margin-bottom: 20px;
    }

    .page-payment-methods__hero-image img {
        object-fit: contain !important; /* Mandatory for mobile hero */
        aspect-ratio: unset !important; /* Allow natural aspect ratio or be controlled by height auto */
        width: 100% !important;
        height: auto !important;
    }

    .page-payment-methods__hero-content {
        padding: 20px 15px;
        transform: translateY(-30px); /* Adjust transform for mobile */
        margin-bottom: -30px;
    }

    .page-payment-methods__main-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 10px;
    }

    .page-payment-methods__description {
        font-size: clamp(15px, 3vw, 18px);
        margin-bottom: 20px;
    }

    .page-payment-methods__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-payment-methods__section-title {
        font-size: clamp(20px, 5vw, 30px);
        margin-bottom: 20px;
        margin-top: 30px;
    }

    .page-payment-methods__text-block {
        font-size: 16px;
        line-height: 1.6;
        text-align: left; /* Align text left for better readability on mobile */
    }

    .page-payment-methods__image-center,
    .page-payment-methods__image-full {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Methods Grid */
    .page-payment-methods__methods-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        margin-top: 20px;
    }

    .page-payment-methods__method-card {
        padding: 20px;
    }

    .page-payment-methods__card-title {
        font-size: 20px;
    }

    /* Ordered/Unordered Lists */
    .page-payment-methods__ordered-list,
    .page-payment-methods__unordered-list {
        padding-left: 20px;
        margin: 20px auto;
    }

    .page-payment-methods__ordered-list li,
    .page-payment-methods__unordered-list li {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 10px;
    }

    /* FAQ */
    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; }
}