/* style/payment-methods.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #E34234;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #121212; /* From shared.css body background */
    --background-light: #f8f9fa;
    --card-bg-dark-section: rgba(255, 255, 255, 0.1);
    --card-bg-light-section: #ffffff;
}

.page-payment-methods {
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--background-dark);
}

/* Fixed header padding */
.page-payment-methods__hero-section {
    padding-top: 120px; /* Desktop: Adjust for fixed header */
}

/* Sections */
.page-payment-methods__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit from parent section's color */
}

.page-payment-methods__text-block {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit;
}

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

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    width: 100%;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.page-payment-methods__hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 900px;
    color: var(--text-light);
}

.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 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-payment-methods__btn-primary {
    background: var(--secondary-color); /* Red CTA */
    color: var(--text-light);
}

.page-payment-methods__btn-primary:hover {
    background: #c73429;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-payment-methods__btn-secondary {
    background: var(--primary-color); /* Blue CTA */
    color: var(--text-light);
}

.page-payment-methods__btn-secondary:hover {
    background: #081d4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Overview Section */
.page-payment-methods__overview-section {
    padding: 60px 0;
}

.page-payment-methods__overview-section .page-payment-methods__section-title,
.page-payment-methods__overview-section .page-payment-methods__text-block {
    color: var(--text-dark);
}

.page-payment-methods__image-wrapper {
    margin: 30px auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-payment-methods__image {
    width: 100%;
    height: auto;
    display: block;
}

/* Deposit & Withdrawal Guide Sections */
.page-payment-methods__deposit-guide-section,
.page-payment-methods__withdrawal-guide-section {
    padding: 60px 0;
}

.page-payment-methods__deposit-guide-section .page-payment-methods__section-title,
.page-payment-methods__deposit-guide-section .page-payment-methods__text-block {
    color: var(--text-light);
}

.page-payment-methods__withdrawal-guide-section .page-payment-methods__section-title,
.page-payment-methods__withdrawal-guide-section .page-payment-methods__text-block {
    color: var(--text-dark);
}

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

.page-payment-methods__method-card {
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-payment-methods__method-card.page-payment-methods__light-bg {
    background-color: var(--card-bg-light-section);
    color: var(--text-dark);
}

.page-payment-methods__method-card.page-payment-methods__dark-bg {
    background-color: var(--card-bg-dark-section);
    color: var(--text-light);
}

.page-payment-methods__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-payment-methods__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: inherit;
}

.page-payment-methods__card-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    flex-grow: 1;
    color: inherit;
}

.page-payment-methods__feature-list {
    list-style: disc inside;
    margin-bottom: 15px;
    padding-left: 0;
    color: inherit;
}

.page-payment-methods__feature-list li {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 5px;
    color: inherit;
}

.page-payment-methods__note {
    font-size: 14px;
    font-style: italic;
    color: inherit;
    margin-top: 10px;
}

/* Security Section */
.page-payment-methods__security-section {
    padding: 60px 0;
}

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

/* Tips Section */
.page-payment-methods__tips-section {
    padding: 60px 0;
}

.page-payment-methods__tips-section .page-payment-methods__section-title,
.page-payment-methods__tips-section .page-payment-methods__text-block,
.page-payment-methods__tips-section .page-payment-methods__tips-list li {
    color: var(--text-dark);
}

.page-payment-methods__tips-list {
    list-style: decimal inside;
    margin: 30px 0;
    padding-left: 0;
}

.page-payment-methods__tips-list li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-payment-methods__tips-list li strong {
    color: var(--primary-color);
}

/* Support Section */
.page-payment-methods__support-section {
    padding: 60px 0;
}

.page-payment-methods__support-section .page-payment-methods__section-title,
.page-payment-methods__support-section .page-payment-methods__text-block {
    color: var(--text-light);
}

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

.page-payment-methods__channel-card {
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    background-color: var(--card-bg-light-section);
    color: var(--text-dark);
}

.page-payment-methods__channel-card .page-payment-methods__card-title {
    color: var(--primary-color);
}

.page-payment-methods__channel-card .page-payment-methods__card-description {
    color: var(--text-dark);
    margin-bottom: 25px;
}

.page-payment-methods__channel-card .page-payment-methods__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 25px;
    font-size: 16px;
    box-shadow: none;
}

.page-payment-methods__channel-card .page-payment-methods__btn-primary:hover {
    background-color: #081d4a;
    transform: translateY(-1px);
}

/* Bottom CTA Section */
.page-payment-methods__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
}

.page-payment-methods__cta-bottom-section .page-payment-methods__section-title,
.page-payment-methods__cta-bottom-section .page-payment-methods__text-block {
    color: var(--text-dark);
}

/* General responsive styles */
.page-payment-methods img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-payment-methods__hero-title {
        font-size: 40px;
    }
    .page-payment-methods__hero-description {
        font-size: 18px;
    }
    .page-payment-methods__section-title {
        font-size: 32px;
    }
    .page-payment-methods__text-block {
        font-size: 17px;
    }
    .page-payment-methods__card-title {
        font-size: 22px;
    }
    .page-payment-methods__card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__hero-section {
        padding-top: 100px !important; /* Mobile: Adjust for fixed header */
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 40px;
    }
    .page-payment-methods__container {
        padding: 30px 15px;
    }
    .page-payment-methods__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-payment-methods__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .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;
        font-size: 16px;
        box-sizing: border-box !important;
    }

    .page-payment-methods__section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    .page-payment-methods__text-block {
        font-size: 16px;
        line-height: 1.7;
    }
    .page-payment-methods__method-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-payment-methods__method-card {
        padding: 25px;
    }
    .page-payment-methods__card-image {
        height: 160px;
    }
    .page-payment-methods__card-title {
        font-size: 20px;
    }
    .page-payment-methods__card-description,
    .page-payment-methods__feature-list li {
        font-size: 15px;
    }
    .page-payment-methods__tips-list {
        margin: 20px 0;
    }
    .page-payment-methods__tips-list li {
        font-size: 16px;
    }
    .page-payment-methods__contact-channels {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-payment-methods img,
    .page-payment-methods__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-payment-methods__image-wrapper,
    .page-payment-methods__container,
    .page-payment-methods__method-card,
    .page-payment-methods__channel-card,
    .page-payment-methods__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .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__tips-section,
    .page-payment-methods__support-section,
    .page-payment-methods__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-payment-methods__hero-title {
        font-size: 28px;
    }
    .page-payment-methods__section-title {
        font-size: 24px;
    }
    .page-payment-methods__card-title {
        font-size: 18px;
    }
    .page-payment-methods__card-image {
        height: 140px;
    }
}

/* Smart Contrast Assurance */
.page-payment-methods__dark-bg {
  background: var(--background-dark);
  color: var(--text-light);
}

.page-payment-methods__light-bg {
  background: var(--background-light);
  color: var(--text-dark);
}

/* Ensure specific elements have good contrast */
.page-payment-methods p,
.page-payment-methods li {
  color: inherit; /* Inherit from parent section */
}

.page-payment-methods__btn-primary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-payment-methods__btn-secondary {
  background: var(--primary-color);
  color: var(--text-light);
}

/* Override for light background sections */
.page-payment-methods__overview-section .page-payment-methods__section-title,
.page-payment-methods__overview-section .page-payment-methods__text-block,
.page-payment-methods__tips-section .page-payment-methods__section-title,
.page-payment-methods__tips-section .page-payment-methods__text-block,
.page-payment-methods__tips-section .page-payment-methods__tips-list li,
.page-payment-methods__cta-bottom-section .page-payment-methods__section-title,
.page-payment-methods__cta-bottom-section .page-payment-methods__text-block {
    color: var(--text-dark);
}

.page-payment-methods__method-card.page-payment-methods__light-bg .page-payment-methods__card-title,
.page-payment-methods__method-card.page-payment-methods__light-bg .page-payment-methods__card-description,
.page-payment-methods__method-card.page-payment-methods__light-bg .page-payment-methods__feature-list li,
.page-payment-methods__method-card.page-payment-methods__light-bg .page-payment-methods__note {
    color: var(--text-dark);
}

.page-payment-methods__channel-card .page-payment-methods__card-title,
.page-payment-methods__channel-card .page-payment-methods__card-description {
    color: var(--text-dark);
}

.page-payment-methods__channel-card .page-payment-methods__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}