/* style/payment-methods.css */

/* Custom Variables */
:root {
    --page-bg: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --deep-green: #0A4B2C;
    --primary-color: #11A84E; /* Main brand color */
    --secondary-color: #22C768; /* Auxiliary brand color */
}

.page-payment-methods {
    background-color: var(--page-bg);
    color: var(--text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 40px;
}

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

.page-payment-methods__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
}

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

.page-payment-methods__hero-content {
    position: relative;
    padding: 30px 20px;
    max-width: 900px;
    margin-top: -100px; /* Visually pull content up, but still below image in DOM */
    z-index: 1;
    background: rgba(17, 39, 27, 0.8); /* Card BG with transparency for subtle effect */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.page-payment-methods__main-title {
    color: var(--gold-color);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-payment-methods__intro-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    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__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-payment-methods__cta-button--primary {
    background: var(--btn-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__cta-button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-payment-methods__cta-button--secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-payment-methods__cta-button--secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-payment-methods__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-payment-methods__section-title {
    color: var(--gold-color);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-payment-methods__section-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-payment-methods__card,
.page-payment-methods__method-card,
.page-payment-methods__info-card,
.page-payment-methods__troubleshooting-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__card:hover,
.page-payment-methods__method-card:hover,
.page-payment-methods__info-card:hover,
.page-payment-methods__troubleshooting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-payment-methods__card-image,
.page-payment-methods__method-icon,
.page-payment-methods__security-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px; /* Enforce min size for content images */
}

.page-payment-methods__card-title,
.page-payment-methods__method-title,
.page-payment-methods__info-title,
.page-payment-methods__security-title,
.page-payment-methods__troubleshooting-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.page-payment-methods__card-text,
.page-payment-methods__method-details,
.page-payment-methods__info-list,
.page-payment-methods__security-text,
.page-payment-methods__troubleshooting-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: left;
    width: 100%;
}

.page-payment-methods__method-details li,
.page-payment-methods__info-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.page-payment-methods__method-details li::before,
.page-payment-methods__info-list li::before {
    content: '•';
    color: var(--gold-color);
    position: absolute;
    left: 0;
    top: 0;
}

.page-payment-methods__cta-center {
    margin-top: 50px;
    text-align: center;
}

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

.page-payment-methods__security-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-payment-methods__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-payment-methods__faq-item[open] {
    background-color: var(--deep-green);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    list-style: none;
}

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

.page-payment-methods__faq-qtext {
    flex-grow: 1;
    text-align: left;
    color: var(--text-main);
}

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

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

.page-payment-methods__faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: left;
}

.page-payment-methods__cta-bottom {
    padding-top: 80px;
    padding-bottom: 80px;
    background: var(--deep-green);
    border-top: 1px solid var(--border-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-payment-methods__hero-content {
        margin-top: -80px;
    }
    .page-payment-methods__feature-cards,
    .page-payment-methods__method-grid,
    .page-payment-methods__info-cards,
    .page-payment-methods__security-features,
    .page-payment-methods__troubleshooting-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .page-payment-methods__card,
    .page-payment-methods__method-card,
    .page-payment-methods__info-card,
    .page-payment-methods__security-item,
    .page-payment-methods__troubleshooting-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding-bottom: 40px;
    }
    .page-payment-methods__hero-image-wrapper {
        max-height: 300px;
    }
    .page-payment-methods__hero-content {
        margin-top: -60px;
        padding: 20px 15px;
        border-radius: 10px;
    }
    .page-payment-methods__main-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-payment-methods__intro-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-payment-methods__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        margin: 0 auto;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-payment-methods__section {
        padding: 40px 15px;
    }
    .page-payment-methods__section-title {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }
    .page-payment-methods__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .page-payment-methods__feature-cards,
    .page-payment-methods__method-grid,
    .page-payment-methods__info-cards,
    .page-payment-methods__security-features,
    .page-payment-methods__troubleshooting-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-payment-methods__card,
    .page-payment-methods__method-card,
    .page-payment-methods__info-card,
    .page-payment-methods__security-item,
    .page-payment-methods__troubleshooting-card {
        padding: 20px;
    }
    .page-payment-methods__card-image,
    .page-payment-methods__method-icon,
    .page-payment-methods__security-icon {
        max-width: 200px;
        margin-bottom: 15px;
    }
    .page-payment-methods__card-title,
    .page-payment-methods__method-title,
    .page-payment-methods__info-title,
    .page-payment-methods__security-title,
    .page-payment-methods__troubleshooting-title {
        font-size: 1.2rem;
    }
    .page-payment-methods__card-text,
    .page-payment-methods__method-details,
    .page-payment-methods__info-list,
    .page-payment-methods__security-text,
    .page-payment-methods__troubleshooting-text {
        font-size: 0.9rem;
    }
    .page-payment-methods__faq-question {
        padding: 15px;
        font-size: 1rem;
    }
    .page-payment-methods__faq-answer {
        padding: 0 15px 15px 15px;
        font-size: 0.9rem;
    }

    /* Images responsiveness */
    .page-payment-methods img {
      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__hero-image-wrapper,
    .page-payment-methods__hero-content,
    .page-payment-methods__cta-buttons,
    .page-payment-methods__method-grid,
    .page-payment-methods__info-cards,
    .page-payment-methods__security-features,
    .page-payment-methods__troubleshooting-cards,
    .page-payment-methods__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    .page-payment-methods__hero-section {
        padding-top: 10px !important;
    }
}

/* Ensure images always meet minimum size requirements for content images */
.page-payment-methods img:not(.page-payment-methods__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filters allowed for images */
.page-payment-methods img {
    filter: none !important;
}