/* style/ban-ca.css */

:root {
    --page-primary-color: #2F6BFF;
    --page-secondary-color: #6FA3FF;
    --page-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-card-bg: #FFFFFF;
    --page-background: #F4F7FB;
    --page-text-main: #1F2D3D;
    --page-text-black: #000000;
    --page-border-color: #D6E2FF;
    --page-glow-color: #A5C4FF;
}

.page-ban-ca {
    font-family: 'Arial', sans-serif;
    color: var(--page-text-main);
    line-height: 1.6;
    background-color: var(--page-background);
}

.page-ban-ca__section {
    padding: 60px 20px;
    text-align: center;
}

.page-ban-ca__container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-ban-ca__section-title {
    font-size: 2.5em;
    color: var(--page-text-black);
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-ban-ca__section-title--light {
    color: var(--page-card-bg);
}

.page-ban-ca__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__text-block--light {
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Section */
.page-ban-ca__hero-section {
    position: relative;
    padding-top: 10px; /* Adjusted for header offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--page-primary-color);
}

.page-ban-ca__hero-image-wrapper {
    width: 100%;
    height: 675px;
    max-height: 675px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-ban-ca__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-ban-ca__hero-content {
    position: relative;
    z-index: 1;
    color: var(--page-card-bg);
    padding: 0 20px;
    max-width: 900px;
}

.page-ban-ca__hero-title {
    font-size: 3.2em;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-card-bg);
}

.page-ban-ca__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-ban-ca__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-ban-ca__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-ban-ca__btn--primary {
    background: var(--page-button-gradient);
    color: var(--page-card-bg);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn--primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__btn--secondary {
    background: var(--page-card-bg);
    color: var(--page-primary-color);
    border: 2px solid var(--page-primary-color);
}

.page-ban-ca__btn--secondary:hover {
    background: var(--page-primary-color);
    color: var(--page-card-bg);
}

.page-ban-ca__btn--small {
    padding: 10px 20px;
    font-size: 0.95em;
}

/* Intro Section */
.page-ban-ca__intro-section {
    background-color: var(--page-card-bg);
    padding-bottom: 40px;
}

/* Features Section */
.page-ban-ca__features-section {
    background-color: var(--page-primary-color);
    color: var(--page-card-bg);
}

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

.page-ban-ca__feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--page-card-bg);
}

.page-ban-ca__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__feature-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px;
}

.page-ban-ca__feature-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--page-card-bg);
}

.page-ban-ca__feature-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

/* How-to-Play Section */
.page-ban-ca__how-to-play-section {
    background-color: var(--page-card-bg);
}

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

.page-ban-ca__step-card {
    background: #ffffff;
    border: 1px solid var(--page-border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ban-ca__step-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--page-primary-color);
}

.page-ban-ca__step-card p {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--page-text-main);
}

/* Strategies Section */
.page-ban-ca__strategies-section {
    background-color: var(--page-background);
}

.page-ban-ca__strategy-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-ban-ca__strategy-item {
    background: var(--page-card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--page-primary-color);
}

.page-ban-ca__strategy-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--page-primary-color);
}

.page-ban-ca__strategy-item p {
    font-size: 1em;
    color: var(--page-text-main);
}

/* Promotions Section */
.page-ban-ca__promo-section {
    background-color: var(--page-card-bg);
}

.page-ban-ca__promo-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-ban-ca__promo-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--page-text-main);
}

.page-ban-ca__promo-list li::before {
    content: '⭐';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
    line-height: 1;
}

.page-ban-ca__promo-cta {
    margin-top: 40px;
}

/* Why Choose Us Section */
.page-ban-ca__why-choose-us {
    background-color: var(--page-background);
}

.page-ban-ca__center-cta {
    margin-top: 40px;
}

/* FAQ Section */
.page-ban-ca__faq-section {
    background-color: var(--page-card-bg);
}

.page-ban-ca__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-ban-ca__faq-item {
    background: var(--page-card-bg);
    border: 1px solid var(--page-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-primary-color);
    cursor: pointer;
    list-style: none;
    position: relative;
}

.page-ban-ca__faq-question::-webkit-details-marker {
    display: none;
}

.page-ban-ca__faq-question::marker {
    display: none;
}

.page-ban-ca__faq-qtext {
    flex-grow: 1;
}

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

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    transform: rotate(45deg);
}

.page-ban-ca__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--page-text-main);
    line-height: 1.7;
}

/* Final CTA Section */
.page-ban-ca__final-cta {
    background: var(--page-primary-color);
    color: var(--page-card-bg);
    padding: 80px 20px;
}

.page-ban-ca__final-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* General image styling */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Mobile Responsiveness (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-ban-ca__section {
        padding: 40px 15px;
    }

    .page-ban-ca__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-ban-ca__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-ban-ca__text-block {
        font-size: 1em;
        line-height: 1.5;
    }

    /* Top section title + dual CTA */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Specific top padding */
        padding-bottom: 40px;
    }
    
    .page-ban-ca__hero-image-wrapper {
        height: 250px;
        max-height: 250px;
        margin-bottom: 20px;
    }

    .page-ban-ca__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-ban-ca__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-ban-ca__hero-cta-buttons,
    .page-ban-ca__final-cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    /* Buttons and button containers */
    .page-ban-ca__btn,
    .page-ban-ca__btn--primary,
    .page-ban-ca__btn--secondary,
    .page-ban-ca a[class*="button"],
    .page-ban-ca a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 1em;
    }

    .page-ban-ca__center-cta,
    .page-ban-ca__promo-cta {
        padding: 0 15px;
    }

    .page-ban-ca__step-grid {
        grid-template-columns: 1fr;
    }

    .page-ban-ca__feature-grid {
        grid-template-columns: 1fr;
    }

    /* Generic images and figures */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-ban-ca__feature-image {
        max-width: 100%;
        height: auto;
    }

    /* Single-column long text container */
    .page-ban-ca__article-wrap,
    .page-ban-ca__intro-section .page-ban-ca__container,
    .page-ban-ca__promo-section .page-ban-ca__container,
    .page-ban-ca__why-choose-us .page-ban-ca__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* FAQ blocks */
    .page-ban-ca__faq-list {
        margin-top: 30px;
        padding: 0 15px;
    }

    .page-ban-ca__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-ban-ca__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    .page-ban-ca__promo-list {
        padding: 0 15px;
    }

    .page-ban-ca__promo-list li {
        font-size: 1em;
        padding-left: 25px;
    }

    .page-ban-ca__final-cta {
        padding: 50px 15px;
    }
}