:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --background-main: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-payment-methods {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background-main); /* Body background handled by shared, but this ensures consistency */
    line-height: 1.6;
}

.page-payment-methods__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-payment-methods__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

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

.page-payment-methods__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.page-payment-methods__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-payment-methods__hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.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;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-payment-methods__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
}

.page-payment-methods__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-payment-methods__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--background-main);
}

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

.page-payment-methods__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-main);
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.page-payment-methods__text-block {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
    text-align: left;
}

.page-payment-methods__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-payment-methods__overview .page-payment-methods__text-block,
.page-payment-methods__security .page-payment-methods__text-block,
.page-payment-methods__call-to-action .page-payment-methods__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.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-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.page-payment-methods__card-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-payment-methods__card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    text-align: left;
}

.page-payment-methods__card-button {
    width: 100%;
    margin-top: auto; /* Push button to bottom */
}

.page-payment-methods__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-payment-methods__step-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-payment-methods__step-number {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.page-payment-methods__step-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-payment-methods__step-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-payment-methods__note-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__note-text strong {
    color: var(--text-main);
}

.page-payment-methods__security-features {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
}

.page-payment-methods__security-features li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__feature-highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.page-payment-methods__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-payment-methods__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* For details/summary */
}

.page-payment-methods__faq-question::-webkit-details-marker {
    display: none;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
    border-bottom: 1px solid var(--border-color);
}

.page-payment-methods__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-payment-methods__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-payment-methods__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-payment-methods__hero-description {
        font-size: 1.05rem;
    }
    .page-payment-methods__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-payment-methods__method-grid,
    .page-payment-methods__guide-steps {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding-bottom: 40px;
    }
    .page-payment-methods__hero-content {
        margin-top: 20px;
    }
    .page-payment-methods__main-title {
        font-size: 2rem !important;
    }
    .page-payment-methods__hero-description {
        font-size: 1rem !important;
    }
    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-payment-methods__section {
        padding: 40px 15px;
    }
    .page-payment-methods__container {
        padding: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-payment-methods__image-content,
    .page-payment-methods__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-payment-methods__card {
        padding: 20px;
    }
    .page-payment-methods__card-title {
        font-size: 1.3rem;
    }
    .page-payment-methods__card-text,
    .page-payment-methods__text-block,
    .page-payment-methods__note-text,
    .page-payment-methods__security-features li,
    .page-payment-methods__faq-answer p {
        font-size: 0.95rem !important;
    }
    .page-payment-methods__step-item {
        padding: 45px 20px 20px;
    }
    .page-payment-methods__step-number {
        font-size: 2rem;
        top: 15px;
        left: 20px;
    }
    .page-payment-methods__faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .page-payment-methods__faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__main-title {
        font-size: 1.8rem !important;
    }
    .page-payment-methods__section-title {
        font-size: 1.6rem !important;
    }
    .page-payment-methods__hero-description {
        font-size: 0.9rem !important;
    }
    .page-payment-methods__method-grid,
    .page-payment-methods__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-payment-methods__hero-content {
        padding: 0 10px;
    }
}

/* Ensure no image filter is applied */
.page-payment-methods img {
    filter: none;
}

/* Content area images CSS size lower bound */
.page-payment-methods__hero-image,
.page-payment-methods__image-content,
.page-payment-methods__card-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific overrides for mobile to ensure no overflow */
@media (max-width: 768px) {
  .page-payment-methods__hero-image,
  .page-payment-methods__image-content,
  .page-payment-methods__card-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow images to shrink below 200px if needed for responsiveness */
    min-height: unset !important;
    box-sizing: border-box !important;
  }
  .page-payment-methods__hero-image-wrapper,
  .page-payment-methods__container,
  .page-payment-methods__method-grid,
  .page-payment-methods__guide-steps,
  .page-payment-methods__security-features,
  .page-payment-methods__faq-list {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-payment-methods__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}