/* style/payment-methods.css */

/* Custom properties for colors from theme */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-color-light-bg: #333333; /* Dark text for light backgrounds */
    --text-color-dark-bg: #ffffff; /* Light text for dark backgrounds */
    --background-light: #f4f4f4; /* Body background from shared.css */
    --background-card: #ffffff;
    --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-payment-methods {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-light-bg); /* Default text color for light body background */
    background-color: var(--background-light); /* Inherited from body, but good to define */
}

/* Container for consistent content width */
.page-payment-methods__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-payment-methods__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color); /* Use dark red for emphasis */
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.page-payment-methods__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color); /* Gold underline */
    border-radius: 2px;
}

.page-payment-methods__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a00000 100%); /* Dark red gradient */
    overflow: hidden; /* Hide overflow for image */
}

.page-payment-methods__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential overlay */
}

.page-payment-methods__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-payment-methods__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-color-dark-bg); /* Light text on dark background */
}

.page-payment-methods__hero-content h1 {
    font-size: 48px;
    color: var(--primary-color); /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-payment-methods__hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-payment-methods__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-color); /* Gold button */
    color: var(--text-color-dark-bg);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-payment-methods__cta-button:hover {
    background: #FFC107; /* Slightly lighter gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Backgrounds for Contrast */
.page-payment-methods__light-bg {
    background-color: var(--background-light);
    color: var(--text-color-light-bg);
}

.page-payment-methods__dark-bg {
    background-color: var(--secondary-color); /* Dark red background */
    color: var(--text-color-dark-bg); /* Light text on dark red */
}

.page-payment-methods__dark-bg .page-payment-methods__section-title {
    color: var(--primary-color); /* Gold title on dark red background */
}

.page-payment-methods__dark-bg .page-payment-methods__section-description {
    color: #f0f0f0;
}

/* Feature Grid (Introduction Section) */
.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: var(--background-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-payment-methods__feature-item img {
    width: 200px; /* Match HTML attribute */
    height: 200px; /* Match HTML attribute */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%; /* Make feature images circular */
    border: 3px solid var(--primary-color);
}

.page-payment-methods__feature-item h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-payment-methods__feature-item p {
    font-size: 16px;
    color: #555555;
    text-align: left; /* Align paragraph text to left */
}

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

.page-payment-methods__method-card,
.page-payment-methods__method-card-single {
    background: var(--background-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

.page-payment-methods__method-card:hover,
.page-payment-methods__method-card-single:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__method-card img,
.page-payment-methods__method-card-single img {
    width: 100%;
    height: auto; /* Maintain aspect ratio based on HTML attributes */
    max-width: 400px; /* Max width for deposit cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* For the single withdrawal card, it's 600x400 source, so max-width 600px */
.page-payment-methods__method-card-single img {
    max-width: 600px;
}

.page-payment-methods__method-card h3,
.page-payment-methods__method-card-single h3 {
    font-size: 26px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: center;
}

.page-payment-methods__method-card p,
.page-payment-methods__method-card-single p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.page-payment-methods__method-card ol,
.page-payment-methods__method-card-single ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #555555;
}

.page-payment-methods__method-card ol li,
.page-payment-methods__method-card-single ol li {
    margin-bottom: 8px;
}

.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    margin-top: auto; /* Push button to bottom */
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--text-color-dark-bg);
}

.page-payment-methods__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: auto; /* Push button to bottom */
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.page-payment-methods__btn-primary:hover {
    background: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__note-block {
    background: var(--background-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.page-payment-methods__note-block h3 {
    color: var(--secondary-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.page-payment-methods__note-block ul {
    list-style: disc;
    padding-left: 25px;
    color: #555555;
}

.page-payment-methods__note-block ul li {
    margin-bottom: 10px;
}

/* Security Section */
.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: var(--background-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-payment-methods__security-item img {
    width: 200px; /* Match HTML attribute */
    height: 200px; /* Match HTML attribute */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.page-payment-methods__security-item h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-payment-methods__security-item p {
    font-size: 16px;
    color: #555555;
    text-align: left;
}

.page-payment-methods__security-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-payment-methods__security-item a:hover {
    text-decoration: underline;
}

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

.page-payment-methods__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-payment-methods__faq-question:hover {
    background: #f9f9f9;
    border-color: #d0d0d0;
}

.page-payment-methods__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--secondary-color);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-payment-methods__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-payment-methods__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #fcfcfc;
    color: #555555;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px 25px !important;
    opacity: 1;
    border: 1px solid var(--border-color);
    border-top: none;
}

.page-payment-methods__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Conclusion Section */
.page-payment-methods__conclusion-section {
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-content h1 {
        font-size: 40px;
    }
    .page-payment-methods__hero-content p {
        font-size: 18px;
    }
    .page-payment-methods__cta-button {
        padding: 15px 35px;
        font-size: 18px;
    }
    .page-payment-methods__section-title {
        font-size: 32px;
    }
    .page-payment-methods__section-description {
        font-size: 17px;
    }
    .page-payment-methods__feature-item h3,
    .page-payment-methods__method-card h3,
    .page-payment-methods__method-card-single h3,
    .page-payment-methods__security-item h3 {
        font-size: 22px;
    }
}