/* style/payment-methods-guide.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #ffffff;
    --button-register-login-bg: #C30808;
    --button-register-login-text: #000000; /* Adjusted for WCAG AA contrast */
    --page-bg-color: var(--dark-bg); /* Inherit from shared */
}

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

.page-payment-methods-guide__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    color: var(--light-text-color);
}

.page-payment-methods-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-payment-methods-guide__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-payment-methods-guide__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-payment-methods-guide__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--light-text-color);
}

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

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

.page-payment-methods-guide__section {
    padding: 60px 20px;
}

.page-payment-methods-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-payment-methods-guide__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-text-color);
}

.page-payment-methods-guide__section-title--white {
    color: var(--light-text-color);
}

.page-payment-methods-guide__text-block {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--dark-text-color);
}

.page-payment-methods-guide__text-block--white {
    color: var(--light-text-color);
}

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

.page-payment-methods-guide__card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--dark-text-color);
    height: 100%;
    box-sizing: border-box;
}

.page-payment-methods-guide__card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

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

.page-payment-methods-guide__card-text {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-payment-methods-guide__card-list {
    list-style: disc inside;
    text-align: left;
    width: 100%;
    padding-left: 20px;
    margin-top: 15px;
    font-size: 0.95em;
    line-height: 1.6;
}

.page-payment-methods-guide__card-list li {
    margin-bottom: 5px;
}

.page-payment-methods-guide__ordered-list {
    list-style: decimal inside;
    padding-left: 20px;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--dark-text-color);
}

.page-payment-methods-guide__ordered-list li {
    margin-bottom: 15px;
}

.page-payment-methods-guide__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    background-color: #000;
    border-radius: 10px;
}

.page-payment-methods-guide__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    cursor: pointer;
}

.page-payment-methods-guide__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none; /* Allow click to pass through to video/link */
}

.page-payment-methods-guide__video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    text-decoration: none;
    transition: background 0.3s ease;
    z-index: 6;
}

.page-payment-methods-guide__video-play-button:hover {
    background: var(--secondary-color);
}

.page-payment-methods-guide__bullet-list {
    list-style: disc outside;
    padding-left: 20px;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--dark-text-color);
}

.page-payment-methods-guide__bullet-list li {
    margin-bottom: 10px;
}

.page-payment-methods-guide__bullet-list--white {
    color: var(--light-text-color);
}

.page-payment-methods-guide__content-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-payment-methods-guide__faq-item {
    background: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-payment-methods-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: var(--secondary-color);
    color: var(--dark-text-color);
    font-weight: bold;
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
}

.page-payment-methods-guide__faq-question:hover {
    background: #f9f9f9;
}

.page-payment-methods-guide__faq-title {
    margin: 0;
    flex-grow: 1;
    color: var(--dark-text-color);
}

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

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

.page-payment-methods-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--dark-text-color);
}

.page-payment-methods-guide__faq-item.active .page-payment-methods-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 20px;
    padding-top: 0;
}

.page-payment-methods-guide__cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-payment-methods-guide__btn-primary,
.page-payment-methods-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 1.1em;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-payment-methods-guide__btn-primary {
    background-color: var(--button-register-login-bg); /* #C30808 */
    color: var(--button-register-login-text); /* #000000 for contrast */
    border: 2px solid var(--button-register-login-bg);
}

.page-payment-methods-guide__btn-primary:hover {
    background-color: darken(var(--button-register-login-bg), 10%);
    border-color: darken(var(--button-register-login-bg), 10%);
}

.page-payment-methods-guide__btn-secondary {
    background-color: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--light-text-color);
}

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

/* Background color specific styles */
.page-payment-methods-guide__dark-bg {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-payment-methods-guide__hero-title {
        font-size: 3em;
    }
    .page-payment-methods-guide__hero-description {
        font-size: 1.1em;
    }
    .page-payment-methods-guide__section-title {
        font-size: 2em;
    }
    .page-payment-methods-guide__cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-payment-methods-guide__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-payment-methods-guide__hero-title {
        font-size: 2em;
    }
    .page-payment-methods-guide__hero-description {
        font-size: 1em;
    }
    .page-payment-methods-guide__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-payment-methods-guide__btn-primary,
    .page-payment-methods-guide__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-payment-methods-guide__section {
        padding: 40px 15px;
    }
    .page-payment-methods-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-payment-methods-guide__text-block,
    .page-payment-methods-guide__ordered-list,
    .page-payment-methods-guide__bullet-list {
        font-size: 1em;
    }
    .page-payment-methods-guide__card {
        padding: 20px;
    }
    .page-payment-methods-guide__card-title {
        font-size: 1.3em;
    }
    .page-payment-methods-guide__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-payment-methods-guide__faq-answer {
        padding: 0 15px;
    }
    .page-payment-methods-guide__faq-item.active .page-payment-methods-guide__faq-answer {
        padding: 15px;
        padding-top: 0;
    }

    /* Mobile image and video responsive adaptation */
    .page-payment-methods-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-payment-methods-guide video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-payment-methods-guide__section,
    .page-payment-methods-guide__card,
    .page-payment-methods-guide__container,
    .page-payment-methods-guide__video-wrapper,
    .page-payment-methods-guide__hero-cta-buttons {
        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-guide__hero-cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-payment-methods-guide__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }
}