/* style/payment-methods.css */

/* Variables (if needed, but usually in shared.css) */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #000000;
    --card-bg-light: rgba(255, 255, 255, 0.1); /* Light background for cards on dark body */
    --border-color: rgba(255, 255, 255, 0.2);
}

.page-payment-methods {
    background-color: var(--bg-dark); /* Ensure dark background consistency */
    color: var(--text-light); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-payment-methods__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-payment-methods__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--text-light);
}

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: var(--bg-dark); /* Ensures hero has dark background */
}

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

.page-payment-methods__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background */
}

.page-payment-methods__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: var(--text-light);
}

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

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

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

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-payment-methods__btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark); /* Dark text on gold button */
    border: 2px solid var(--primary-color);
}

.page-payment-methods__btn-primary:hover {
    background-color: #E6C200; /* Darken primary color */
    transform: translateY(-2px);
}

.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(--bg-dark);
    transform: translateY(-2px);
}

/* Overview Section */
.page-payment-methods__overview-section {
    padding: 80px 20px;
    background-color: var(--secondary-color); /* Dark red section */
    color: var(--text-light);
}

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

.page-payment-methods__overview-section .page-payment-methods__text-block {
    color: var(--text-light);
}

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

.page-payment-methods__card {
    background-color: var(--card-bg-light); /* Light background for cards on dark section */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    color: var(--text-light);
}

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

.page-payment-methods__card-icon {
    width: 100%;
    max-width: 250px; /* Adjust as needed, but ensure >= 200px */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
}

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

.page-payment-methods__card-description {
    font-size: 1em;
    color: var(--text-light);
    flex-grow: 1; /* Make description take available space */
}

/* Deposit & Withdrawal Guides */
.page-payment-methods__deposit-guide-section,
.page-payment-methods__withdrawal-guide-section {
    padding: 80px 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-payment-methods__deposit-guide-section .page-payment-methods__section-title,
.page-payment-methods__withdrawal-guide-section .page-payment-methods__section-title {
    color: var(--primary-color);
}

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

.page-payment-methods__step-card {
    background-color: var(--card-bg-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    color: var(--text-light);
}

.page-payment-methods__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
}

.page-payment-methods__step-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-payment-methods__step-description a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-payment-methods__step-description a:hover {
    color: var(--text-light);
}

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

/* Security Section */
.page-payment-methods__security-section {
    padding: 80px 20px;
    background-color: var(--secondary-color);
    color: var(--text-light);
}

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

.page-payment-methods__security-section .page-payment-methods__text-block {
    color: var(--text-light);
}

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

.page-payment-methods__feature-item {
    background-color: var(--card-bg-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    color: var(--text-light);
}

.page-payment-methods__feature-icon {
    width: 100%;
    max-width: 250px; /* Adjust as needed, but ensure >= 200px */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
}

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

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

/* Video Section */
.page-payment-methods__video-section {
    padding: 80px 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

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

.page-payment-methods__video-section .page-payment-methods__text-block {
    color: var(--text-light);
}

.page-payment-methods__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 50px auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
}

.page-payment-methods__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FAQ Section */
.page-payment-methods__faq-section {
    padding: 80px 20px;
    background-color: var(--secondary-color);
    color: var(--text-light);
}

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

.page-payment-methods__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-payment-methods__faq-item {
    background-color: var(--card-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--secondary-color); /* Darker background for question */
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
    background-color: #7A0000; /* Darken secondary color */
}

.page-payment-methods__faq-title {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

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

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.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);
    background-color: var(--card-bg-light);
}

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

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

/* Final CTA Section */
.page-payment-methods__cta-final-section {
    padding: 80px 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

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

.page-payment-methods__cta-final-section .page-payment-methods__text-block {
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: 3em;
    }
    .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: 500px;
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-payment-methods__hero-title {
        font-size: 2.5em;
    }
    .page-payment-methods__hero-description {
        font-size: 1em;
    }
    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-payment-methods__section-title {
        font-size: 1.8em;
    }
    .page-payment-methods__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-payment-methods__grid,
    .page-payment-methods__steps-grid,
    .page-payment-methods__security-features {
        grid-template-columns: 1fr;
    }
    .page-payment-methods__card,
    .page-payment-methods__step-card,
    .page-payment-methods__feature-item {
        padding: 25px;
    }
    .page-payment-methods__card-icon,
    .page-payment-methods__feature-icon {
        max-width: 100%;
        min-width: 200px; /* Ensure minimum size is maintained */
        min-height: 200px;
        height: auto;
    }
    .page-payment-methods__faq-question {
        padding: 15px 20px;
    }
    .page-payment-methods__faq-title {
        font-size: 1.1em;
    }
    .page-payment-methods__faq-answer {
        padding: 15px 20px;
    }
    /* Mobile image responsiveness */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-payment-methods__section,
    .page-payment-methods__card,
    .page-payment-methods__container,
    .page-payment-methods__hero-section,
    .page-payment-methods__overview-section,
    .page-payment-methods__deposit-guide-section,
    .page-payment-methods__withdrawal-guide-section,
    .page-payment-methods__security-section,
    .page-payment-methods__video-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-final-section,
    .page-payment-methods__video-wrapper {
        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 */
    }
    /* Video specific mobile rules */
    .page-payment-methods video,
    .page-payment-methods__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-payment-methods__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-payment-methods__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0;
        padding-right: 0;
    }
}