/* style/payment-methods.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #1E90FF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark-section: #1a1a1a; /* Assuming shared.css has a dark background for body */
    --bg-light-section: #f8f8f8;
    --border-color: #e0e0e0;
}

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

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-payment-methods__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

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

.page-payment-methods__hero-title {
    font-size: 3.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-payment-methods__hero-description {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 30px;
}

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

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

.page-payment-methods__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-payment-methods__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

.page-payment-methods__text-block {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: justify;
}

.page-payment-methods__text-block a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-payment-methods__text-block a:hover {
    text-decoration: underline;
}

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

/* Buttons */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-payment-methods__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark); /* Ensure contrast */
    border: 2px solid var(--primary-color);
}

.page-payment-methods__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

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

.page-payment-methods__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-dark); /* Ensure contrast */
}

.page-payment-methods__btn-center {
    display: block;
    margin: 40px auto 20px auto;
    width: fit-content;
}

/* Image Styling */
.page-payment-methods__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px 0;
    border-radius: 8px;
    object-fit: cover;
}

.page-payment-methods__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    max-width: 800px; /* Constrain content images */
}

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

.page-payment-methods__card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light); /* Light text for dark card background */
}

.page-payment-methods__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-payment-methods__card-description {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-payment-methods__card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.page-payment-methods__card-list li {
    margin-bottom: 10px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
}

.page-payment-methods__card-list li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Specific Section Backgrounds */
.page-payment-methods__introduction-section {
    background-color: var(--bg-dark-section); /* Dark background */
    color: var(--text-light);
}

.page-payment-methods__deposit-section {
    background-color: var(--bg-dark-section); /* Dark background */
    color: var(--text-light);
}

.page-payment-methods__medium-bg {
    background-color: var(--secondary-color); /* Blue background */
    color: var(--text-light); /* Light text for blue background */
}

.page-payment-methods__security-section {
    background-color: var(--bg-dark-section); /* Dark background */
    color: var(--text-light);
}

.page-payment-methods__note {
    font-style: italic;
    text-align: center;
    margin-top: 30px;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

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

.page-payment-methods__guide-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.page-payment-methods__guide-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-payment-methods__guide-heading {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-payment-methods__guide-text {
    font-size: 1em;
    color: var(--text-light);
}

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

.page-payment-methods__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-light);
}

.page-payment-methods__feature-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-payment-methods__feature-description {
    font-size: 1em;
    color: var(--text-light);
}

/* FAQ Section */
.page-payment-methods__faq-section {
    background-color: var(--bg-dark-section); /* Dark background */
    color: var(--text-light);
}

.page-payment-methods__faq-list {
    margin-top: 40px;
}

.page-payment-methods__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

.page-payment-methods__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    text-align: justify;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

.page-payment-methods__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: var(--text-light);
}

/* CTA Section */
.page-payment-methods__cta-section {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.page-payment-methods__cta-section .page-payment-methods__section-title {
    color: var(--text-light);
}

.page-payment-methods__cta-section .page-payment-methods__section-title::after {
    background-color: var(--primary-color);
}

.page-payment-methods__cta-section .page-payment-methods__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: 2.8em;
    }

    .page-payment-methods__hero-description {
        font-size: 1.1em;
    }

    .page-payment-methods__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        min-height: 400px;
    }

    .page-payment-methods__hero-title {
        font-size: 2.2em;
    }

    .page-payment-methods__hero-description {
        font-size: 1em;
    }

    .page-payment-methods__hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        width: 100%;
        max-width: 300px; /* Constrain buttons on mobile */
    }

    .page-payment-methods__container {
        padding: 30px 15px;
    }

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

    .page-payment-methods__text-block {
        font-size: 0.95em;
    }

    .page-payment-methods__cards-grid,
    .page-payment-methods__guide-steps,
    .page-payment-methods__features-grid {
        grid-template-columns: 1fr;
    }

    .page-payment-methods__card,
    .page-payment-methods__guide-item,
    .page-payment-methods__feature-item {
        padding: 20px;
    }

    .page-payment-methods__card-title,
    .page-payment-methods__guide-heading,
    .page-payment-methods__feature-title {
        font-size: 1.4em;
    }

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

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

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

    /* Mobile specific image/video/button rules with !important */
    .page-payment-methods img {
        max-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;
    }

    .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,
    .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;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary,
    .page-payment-methods a[class*="button"],
    .page-payment-methods a[class*="btn"] {
      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__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

/* Ensure images don't use filter */
.page-payment-methods img {
    filter: none; /* Explicitly prevent any filter effects */
}