/* style/payment-methods.css */
.page-payment-methods {
    background-color: var(--dark-bg); /* Inherited from shared.css */
    color: #F2FFF6; /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #08160F; /* Background */
    overflow: hidden;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for hero image */
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-payment-methods__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.page-payment-methods__description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-payment-methods__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.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;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%; /* Ensure buttons adapt to container width */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-payment-methods__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6; /* Text Main */
    border: none;
}

.page-payment-methods__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__btn-secondary {
    background-color: #F2FFF6; /* Text Main as background */
    color: #11A84E; /* Primary color as text */
    border: 2px solid #11A84E;
}

.page-payment-methods__btn-secondary:hover {
    background-color: #E0E0E0;
    color: #0A4B2C; /* Deep Green */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-payment-methods__intro-section,
.page-payment-methods__guide-section,
.page-payment-methods__security-tips-section,
.page-payment-methods__cta-bottom-section {
    padding: 80px 0;
}

.page-payment-methods__dark-section {
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
}

.page-payment-methods__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-payment-methods__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2AD16F, #13994A);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-payment-methods__text-block {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    text-align: justify;
}

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

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

.page-payment-methods__card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Border */
}

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

.page-payment-methods__card-title {
    font-size: 1.5rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
}

.page-payment-methods__card-image {
    width: 100%;
    max-width: 400px; /* Max width for card images */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__card-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
    flex-grow: 1;
    text-align: justify;
}

.page-payment-methods__card-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    color: #A7D9B8; /* Text Secondary */
}

.page-payment-methods__card-list li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.page-payment-methods__card-list li strong {
    color: #F2FFF6; /* Text Main */
}

.page-payment-methods__card-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #2AD16F;
}

/* Ordered Lists */
.page-payment-methods__ordered-list {
    list-style-type: decimal;
    padding-left: 25px;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

.page-payment-methods__ordered-list li {
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-payment-methods__ordered-list li strong {
    color: #F2FFF6; /* Text Main */
    font-size: 1.1rem;
}

/* Unordered Lists */
.page-payment-methods__unordered-list {
    list-style: none;
    padding: 0;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

.page-payment-methods__unordered-list li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.page-payment-methods__unordered-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: #57E38D; /* Glow color */
}

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

.page-payment-methods__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-payment-methods__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    list-style: none; /* Hide default marker */
    position: relative;
}

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

.page-payment-methods__faq-item summary:hover {
    background-color: #0A4B2C; /* Deep Green for hover */
}

.page-payment-methods__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-payment-methods__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #57E38D; /* Glow */
    margin-left: 20px;
}

.page-payment-methods__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.7;
    text-align: justify;
    max-height: 0; /* Hidden by default for JS fallback */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-answer {
    max-height: 500px; /* Sufficient height for most answers */
    padding-top: 10px;
}

/* Cta Bottom Section */
.page-payment-methods__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
    background-color: #08160F; /* Background */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-payment-methods__hero-section {
        padding: 40px 15px;
    }
    .page-payment-methods__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-payment-methods__description {
        font-size: 1rem;
    }
    .page-payment-methods__intro-section,
    .page-payment-methods__guide-section,
    .page-payment-methods__security-tips-section,
    .page-payment-methods__cta-bottom-section {
        padding: 60px 0;
    }
    .page-payment-methods__section-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }
    .page-payment-methods__hero-image {
        margin-bottom: 20px;
    }
    .page-payment-methods__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-payment-methods__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .page-payment-methods__cta-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px; /* Add padding to container for buttons */
        box-sizing: border-box;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-payment-methods__intro-section,
    .page-payment-methods__guide-section,
    .page-payment-methods__security-tips-section,
    .page-payment-methods__cta-bottom-section {
        padding: 40px 0;
    }
    .page-payment-methods__section-title {
        font-size: clamp(1.3rem, 6vw, 2rem);
        margin-bottom: 30px;
    }
    .page-payment-methods__text-block {
        font-size: 0.9rem;
    }
    .page-payment-methods__card {
        padding: 20px;
    }
    .page-payment-methods__card-title {
        font-size: 1.3rem;
    }
    .page-payment-methods__card-text {
        font-size: 0.85rem;
    }
    .page-payment-methods__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* FAQ */
    .page-payment-methods__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-payment-methods__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__hero-section {
        padding: 10px 10px 20px;
    }
    .page-payment-methods__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-payment-methods__description {
        font-size: 0.85rem;
    }
    .page-payment-methods__cta-group {
        gap: 10px;
        padding: 0 10px;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    .page-payment-methods__container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .page-payment-methods__intro-section,
    .page-payment-methods__guide-section,
    .page-payment-methods__security-tips-section,
    .page-payment-methods__cta-bottom-section {
        padding: 30px 0;
    }
    .page-payment-methods__section-title {
        font-size: clamp(1.2rem, 7vw, 1.8rem);
    }
}