/* style/payment-methods.css */
/* Base styles for the payment methods page */
.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: var(--background-color, #FFFFFF); /* Inherit body background */
}

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: #f0f8ff; /* Light background for contrast */
}

.page-payment-methods__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-payment-methods__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-payment-methods__main-title {
    color: #26A9E0; /* Brand color for title */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

/* H1 font size constraint: use responsive units, avoid fixed large sizes */
@media (min-width: 1024px) {
    .page-payment-methods__main-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    }
}
@media (max-width: 1023px) and (min-width: 768px) {
    .page-payment-methods__main-title {
        font-size: clamp(2rem, 3.5vw, 3rem);
    }
}
@media (max-width: 767px) {
    .page-payment-methods__main-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
}


.page-payment-methods__description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

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

.page-payment-methods__cta-buttons--center {
    justify-content: center;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary,
.page-payment-methods__btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-payment-methods__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

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

.page-payment-methods__btn-inline {
    background-color: transparent;
    color: #26A9E0;
    border: 1px solid #26A9E0;
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-payment-methods__btn-inline:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* General Section Styles */
.page-payment-methods__section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-payment-methods__section:nth-of-type(even) {
    background-color: #f9f9f9;
}

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

.page-payment-methods__section-title {
    color: #26A9E0;
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.page-payment-methods__sub-title {
    color: #333333;
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: left;
}

.page-payment-methods__text-block {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
    text-align: justify;
}

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

.page-payment-methods__card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-payment-methods__card:hover {
    transform: translateY(-5px);
}

.page-payment-methods__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it's a block element */
}

.page-payment-methods__card-title {
    color: #26A9E0;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-payment-methods__card-text {
    font-size: 1em;
    color: #666666;
    text-align: justify;
}

/* Steps and Lists */
.page-payment-methods__steps,
.page-payment-methods__popular-methods,
.page-payment-methods__conditions,
.page-payment-methods__important-notes {
    margin-top: 40px;
}

.page-payment-methods__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-payment-methods__list-item {
    background-color: #f0f8ff;
    border-left: 5px solid #26A9E0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.page-payment-methods__list-heading {
    color: #26A9E0;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-payment-methods__list-sub-heading {
    color: #333333;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.page-payment-methods__method-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

.page-payment-methods__method-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 15px;
}

.page-payment-methods__method-details {
    list-style: disc;
    padding-left: 20px;
    color: #555555;
}

.page-payment-methods__notes-list {
    list-style: none;
    padding-left: 0;
}

.page-payment-methods__notes-item {
    background-color: #f0f8ff;
    border-left: 4px solid #EA7C07; /* Login color for attention */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.page-payment-methods__notes-heading {
    color: #EA7C07;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-payment-methods__faq-list {
    margin-top: 30px;
}

.page-payment-methods__faq-item {
    background-color: #ffffff;
    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;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> */
}

.page-payment-methods__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <summary> */
}
.page-payment-methods__faq-question::marker {
    display: none; /* Hide default marker for <summary> */
}

.page-payment-methods__faq-question:hover {
    background-color: #f0f8ff;
    color: #26A9E0;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
    background-color: #f0f8ff;
    color: #26A9E0;
    border-bottom: none;
}

.page-payment-methods__faq-qtext {
    flex-grow: 1;
    font-size: 1.1em;
    color: #333333; /* Ensure contrast */
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-qtext {
    color: #26A9E0;
}

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
    color: #EA7C07; /* Different color when open */
}

.page-payment-methods__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    text-align: justify;
    background-color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__section-title {
        font-size: 2em;
    }
    .page-payment-methods__sub-title {
        font-size: 1.6em;
    }
    .page-payment-methods__card-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-payment-methods {
        font-size: 16px; /* Increase base font size for mobile readability */
        line-height: 1.6;
    }

    .page-payment-methods__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
        padding-bottom: 40px;
    }

    .page-payment-methods__hero-image {
        max-height: 300px;
    }

    .page-payment-methods__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Smaller H1 for mobile */
        margin-bottom: 15px;
    }

    .page-payment-methods__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary,
    .page-payment-methods__btn-inline {
        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__section,
    .page-payment-methods__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-payment-methods__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-payment-methods__sub-title {
        font-size: 1.4em;
    }

    .page-payment-methods__card-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

    .page-payment-methods__card {
        padding: 20px;
    }

    .page-payment-methods__card-image {
        height: 180px;
    }

    .page-payment-methods__list-item,
    .page-payment-methods__method-card,
    .page-payment-methods__notes-item {
        padding: 15px;
    }

    .page-payment-methods__faq-question {
        padding: 15px 20px;
    }
    .page-payment-methods__faq-qtext {
        font-size: 1em;
    }
    .page-payment-methods__faq-answer {
        padding: 15px 20px;
    }

    /* All images must be responsive */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/content must be responsive */
    .page-payment-methods__hero-image-wrapper,
    .page-payment-methods__card,
    .page-payment-methods__method-card,
    .page-payment-methods__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}