/* style/ban-ca.css */

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

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

/* --- General Section Styling --- */
.page-ban-ca__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-ban-ca__section-description {
    font-size: 1.1em;
    color: var(--text-main);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-ban-ca__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-ban-ca__light-bg {
    background-color: var(--background-color);
    color: var(--text-main);
}

.page-ban-ca__dark-section {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-ban-ca__dark-section .page-ban-ca__section-title,
.page-ban-ca__dark-section .page-ban-ca__section-description,
.page-ban-ca__dark-section .page-ban-ca__game-title,
.page-ban-ca__dark-section .page-ban-ca__game-description,
.page-ban-ca__dark-section .page-ban-ca__promo-title,
.page-ban-ca__dark-section .page-ban-ca__promo-text,
.page-ban-ca__dark-section .page-ban-ca__faq-qtext,
.page-ban-ca__dark-section .page-ban-ca__faq-toggle,
.page-ban-ca__dark-section .page-ban-ca__faq-answer p {
    color: #ffffff;
}

/* --- Buttons --- */
.page-ban-ca__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-ban-ca__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-ban-ca__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-ban-ca__btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.3);
}

/* --- Hero Section --- */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Adjusted for header offset */
    padding-bottom: 60px;
    background-color: var(--background-color);
    color: var(--text-main);
}

.page-ban-ca__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
}

.page-ban-ca__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-ban-ca__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-ban-ca__hero-description {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 30px;
}

.page-ban-ca__hero-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-ban-ca__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: block;
}

/* --- Intro Section (Module 1) --- */
.page-ban-ca__intro-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-ban-ca__feature-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-ban-ca__feature-item:hover {
    transform: translateY(-5px);
}

.page-ban-ca__icon-box-media {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid var(--border-color);
    box-shadow: 0 0 0 5px var(--glow-color) transparent;
}

.page-ban-ca__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%; /* Ensure image is also circular */
}

.page-ban-ca__feature-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
}

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

/* --- Games Section --- */
.page-ban-ca__games-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-ban-ca__game-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-ban-ca__game-card:hover {
    transform: translateY(-5px);
}

.page-ban-ca__game-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-ban-ca__game-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-ban-ca__game-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- Guide Section --- */
.page-ban-ca__guide-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-ban-ca__guide-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    align-items: center;
}

.page-ban-ca__guide-steps {
    flex: 1 1 55%;
    min-width: 300px;
}

.page-ban-ca__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 15px;
}

.page-ban-ca__step-number {
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

.page-ban-ca__step-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 5px;
}

.page-ban-ca__step-text {
    font-size: 1em;
    color: var(--text-main);
    flex-grow: 1;
}

.page-ban-ca__guide-image {
    flex: 1 1 35%;
    min-width: 280px;
    text-align: center;
}

.page-ban-ca__guide-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
}

/* --- Promo Section --- */
.page-ban-ca__promo-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-ban-ca__promo-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-ban-ca__promo-card:hover {
    transform: translateY(-5px);
}

.page-ban-ca__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-ban-ca__promo-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-ban-ca__promo-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- Benefits Section --- */
.page-ban-ca__benefits-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-ban-ca__benefit-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    max-width: 800px;
}

.page-ban-ca__benefit-item {
    background: var(--card-bg);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.page-ban-ca__benefit-item::before {
    content: '✅';
    margin-right: 15px;
    font-size: 1.2em;
    line-height: 1;
}

/* --- FAQ Section --- */
.page-ban-ca__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-ban-ca__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-ban-ca__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

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

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

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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: 15px 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
}

/* --- Final CTA Section --- */
.page-ban-ca__cta-section {
    padding-top: 60px;
    padding-bottom: 80px;
    text-align: center;
}

.page-ban-ca__cta-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* --- Responsive Styles (Mobile First) --- */

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

/* All containers with images or content */
.page-ban-ca__hero-container,
.page-ban-ca__content-area,
.page-ban-ca__feature-list,
.page-ban-ca__game-cards,
.page-ban-ca__guide-content,
.page-ban-ca__promo-cards,
.page-ban-ca__benefit-list,
.page-ban-ca__faq-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .page-ban-ca__hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .page-ban-ca__hero-content,
    .page-ban-ca__hero-image {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .page-ban-ca__main-title {
        font-size: 2.8em;
    }

    .page-ban-ca__guide-content {
        flex-direction: column;
    }

    .page-ban-ca__guide-steps,
    .page-ban-ca__guide-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* General text and padding adjustments */
    .page-ban-ca__content-area {
        padding: 40px 15px;
    }

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

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

    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-ban-ca__main-title {
        font-size: 2em !important;
    }

    .page-ban-ca__hero-description {
        font-size: 1em;
    }

    .page-ban-ca__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* Buttons */
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Module 1 - Feature List */
    .page-ban-ca__feature-list {
        grid-template-columns: 1fr;
    }

    .page-ban-ca__icon-box-media {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }

    .page-ban-ca__feature-title {
        font-size: 1.3em;
    }

    /* Games Section */
    .page-ban-ca__game-cards {
        grid-template-columns: 1fr;
    }

    .page-ban-ca__game-title {
        font-size: 1.4em;
    }

    /* Guide Section */
    .page-ban-ca__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

    .page-ban-ca__step-number {
        margin-bottom: 10px;
    }

    .page-ban-ca__step-title {
        font-size: 1.2em;
    }

    /* Promo Section */
    .page-ban-ca__promo-cards {
        grid-template-columns: 1fr;
    }

    .page-ban-ca__promo-title {
        font-size: 1.4em;
    }

    /* Benefits Section */
    .page-ban-ca__benefit-item {
        font-size: 0.95em;
        padding: 15px 20px;
    }

    /* FAQ Section */
    .page-ban-ca__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

    /* Ensure all images are responsive in content areas */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Containers for content */
    .page-ban-ca__hero-container,
    .page-ban-ca__content-area,
    .page-ban-ca__feature-list,
    .page-ban-ca__game-cards,
    .page-ban-ca__guide-content,
    .page-ban-ca__promo-cards,
    .page-ban-ca__benefit-list,
    .page-ban-ca__faq-list,
    .page-ban-ca__cta-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}