/* style/payment-methods.css */
/* Base styles for the page content, using custom background and text colors */
.page-payment-methods {
    background-color: #08160F; /* Custom background color */
    color: #F2FFF6; /* Custom main text color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom to ensure footer content is not too close */
}

/* Section styling */
.page-payment-methods__section {
    padding: 60px 0;
    position: relative;
}

.page-payment-methods__section:nth-of-type(even) {
    background-color: #11271B; /* Alternating background for better visual separation */
}

.page-payment-methods__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure no image overflow */
}

.page-payment-methods__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the image to make text more readable */
    filter: brightness(0.6); /* Further dim for contrast */
}

.page-payment-methods__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 10px;
}

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

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

/* Section Titles */
.page-payment-methods__section-title {
    font-size: 2.5rem;
    color: #F2FFF6; /* Main text color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

/* Text Blocks */
.page-payment-methods__text-block {
    font-size: 1.05rem;
    color: #A7D9B8; /* Secondary text color */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

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

/* Buttons */
.page-payment-methods__cta-buttons {
    display: flex;
    gap: 20px;
    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 {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Default for responsiveness */
    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%); /* Custom button gradient */
    color: #F2FFF6; /* Main text color */
    border: none;
}

.page-payment-methods__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-payment-methods__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Primary brand color for text */
    border: 2px solid #2AD16F; /* Primary brand color for border */
}

.page-payment-methods__btn-secondary:hover {
    background: rgba(42, 209, 111, 0.1); /* Light hover effect */
    transform: translateY(-2px);
}

.page-payment-methods__btn-primary--full-width {
    width: 100%;
    max-width: 300px; /* Limit max width for single buttons */
    margin: 20px auto 0 auto; /* Center single button */
    display: block;
}


/* Grid Layout */
.page-payment-methods__grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.page-payment-methods__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-payment-methods__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Card Styling */
.page-payment-methods__card {
    background-color: #11271B; /* Custom card background */
    border: 1px solid #2E7A4E; /* Custom border color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-payment-methods__card-image {
    width: 100%;
    max-width: 400px; /* Ensure images don't stretch too much */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum image height */
    min-width: 200px; /* Minimum image width */
}

.page-payment-methods__card-title {
    font-size: 1.5rem;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-payment-methods__card-text {
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
}

/* Flex Container for Guide Sections */
.page-payment-methods__flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-payment-methods__flex-container--reverse {
    flex-direction: row-reverse; /* Image on right, text on left */
}

.page-payment-methods__flex-content,
.page-payment-methods__flex-image {
    flex: 1;
    min-width: 300px; /* Ensure minimum width before stacking */
}

.page-payment-methods__image-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    min-height: 200px; /* Minimum image height */
    min-width: 200px; /* Minimum image width */
}

/* Ordered/Unordered Lists */
.page-payment-methods__ordered-list,
.page-payment-methods__unordered-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-payment-methods__list-item {
    background-color: #11271B; /* Card BG for list items */
    border: 1px solid #2E7A4E; /* Border for list items */
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__list-title {
    font-size: 1.3rem;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-payment-methods__list-description {
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
}

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

.page-payment-methods__faq-item {
    background-color: #11271B; /* Card BG for FAQ items */
    border: 1px solid #2E7A4E; /* Border for FAQ items */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6; /* Ensure text is readable */
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #0A4B2C; /* Deep Green for summary */
    color: #F2FFF6; /* Ensure text is readable */
    transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
    background-color: #13994A; /* Slightly lighter green on hover */
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-question {
    background-color: #13994A;
}

.page-payment-methods__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow color for toggle */
}

.page-payment-methods__faq-item[open] .page-payment-methods__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-payment-methods__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
    line-height: 1.6;
}

/* Remove default details marker */
.page-payment-methods__faq-item > summary {
    list-style: none;
}
.page-payment-methods__faq-item > summary::-webkit-details-marker {
    display: none;
}


/* Call to Action Bottom */
.page-payment-methods__cta-bottom .page-payment-methods__container {
    background-color: #0A4B2C; /* Deep Green for CTA background */
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-payment-methods__grid--3-cols {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-payment-methods__grid--2-cols {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

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

    .page-payment-methods__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-payment-methods__hero-content {
        padding: 15px;
    }

    .page-payment-methods__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .page-payment-methods__description {
        font-size: 1rem;
    }

    .page-payment-methods__section {
        padding: 40px 0;
    }

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

    .page-payment-methods__text-block {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

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

    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-payment-methods__flex-container {
        flex-direction: column;
        gap: 30px;
    }

    .page-payment-methods__flex-container--reverse {
        flex-direction: column; /* Stack normally on mobile */
    }

    .page-payment-methods__grid {
        grid-template-columns: 1fr;
    }

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

    .page-payment-methods__card-title {
        font-size: 1.3rem;
    }

    .page-payment-methods__list-item {
        padding: 20px;
    }

    .page-payment-methods__list-title {
        font-size: 1.2rem;
    }

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

    .page-payment-methods__faq-answer {
        padding: 10px 20px 20px;
    }

    .page-payment-methods__cta-bottom .page-payment-methods__container {
        padding: 30px 20px;
    }

    /* Mobile image and video responsiveness */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-payment-methods video,
    .page-payment-methods__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Image and video containers mobile adaptation */
    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__video-section,
    .page-payment-methods__video-container,
    .page-payment-methods__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-payment-methods__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Button containers mobile adaptation */
    .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; /* Allow buttons to wrap */
        gap: 10px; /* Spacing between wrapped buttons */
    }
    .page-payment-methods__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}