:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --page-bg: #F4F7FB; /* Body background */
    --text-main: #1F2D3D;
    --text-black: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --header-offset-small: 10px; /* Small top padding for hero section */
}

.page-ban-ca {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for light background */
    background-color: var(--page-bg); /* Match body background */
    line-height: 1.6;
}

/* Container */
.page-ban-ca__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

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

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

.page-ban-ca__feature-title,
.page-ban-ca__game-title,
.page-ban-ca__step-title,
.page-ban-ca__faq-qtext {
    font-size: 1.5em;
    color: var(--text-black);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none; /* Reset border for button elements */
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-ban-ca__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    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 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* Images */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Default for all images */
}

/* HERO Section */
.page-ban-ca__hero-section {
    background-color: var(--page-bg); /* Consistent with body */
    padding-top: var(--header-offset-small); /* Small top padding, not --header-offset */
    padding-bottom: 60px;
}

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

.page-ban-ca__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
    color: var(--text-main);
}

.page-ban-ca__hero-title {
    font-size: clamp(2.5em, 4vw, 3.5em); /* clamp for H1 */
    color: var(--text-black);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.page-ban-ca__hero-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-ban-ca__hero-main-image {
    width: 100%;
    max-width: 600px; /* Ensure image doesn't get too big */
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* Intro Section (Module 1) */
.page-ban-ca__intro-section {
    background-color: var(--card-bg);
    padding: 80px 0;
}

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

.page-ban-ca__feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.page-ban-ca__icon-box-media {
    width: 200px; /* Fixed size for circular image */
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 0 0 5px var(--glow-color); /* Added glow effect */
}

.page-ban-ca__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio and fill the circle */
    border-radius: 50%;
    display: block;
}

/* Games Section */
.page-ban-ca__games-section {
    background-color: var(--page-bg);
    padding: 80px 0;
}

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

.page-ban-ca__game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    border: 1px solid var(--border-color);
}

.page-ban-ca__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 20px;
}

.page-ban-ca__game-title {
    margin-top: 0;
    padding: 0 20px;
    font-size: 1.8em;
}

.page-ban-ca__game-text {
    font-size: 1em;
    color: var(--text-main);
    padding: 0 20px 20px;
}

.page-ban-ca__game-button {
    margin-top: 15px;
}

/* Guide Section */
.page-ban-ca__guide-section {
    background-color: var(--card-bg);
    padding: 80px 0;
}

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

.page-ban-ca__guide-step {
    background-color: var(--page-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
}

.page-ban-ca__step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 700;
    margin: 0 auto 20px;
}

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

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

.page-ban-ca__guide-cta {
    text-align: center;
    margin-top: 60px;
}

/* Tips Section */
.page-ban-ca__tips-section {
    background-color: var(--page-bg);
    padding: 80px 0;
}

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

.page-ban-ca__tips-list li {
    background-color: var(--card-bg);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border-left: 5px solid var(--primary-color);
    font-size: 1.1em;
    color: var(--text-main);
}

.page-ban-ca__tip-highlight {
    color: var(--text-black);
}

.page-ban-ca__tips-image {
    text-align: center;
    margin-top: 40px;
}

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

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

.page-ban-ca__faq-item {
    background-color: var(--page-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-ban-ca__faq-item summary {
    display: block; /* For details tag */
    cursor: pointer;
    padding: 20px 25px;
    font-weight: 600;
    color: var(--text-black);
    position: relative;
    list-style: none; /* Hide default marker */
}

.page-ban-ca__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

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

.page-ban-ca__faq-answer p {
    margin-bottom: 0;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-ban-ca__hero-title {
        font-size: clamp(2em, 3.5vw, 3em);
    }

    .page-ban-ca__section-title {
        font-size: 2em;
    }

    .page-ban-ca__icon-box-media {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    /* General Mobile */
    .page-ban-ca__container {
        padding: 30px 15px !important; /* Ensure padding for all containers */
    }

    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: var(--header-offset-small) !important; /* Fixed small top padding */
        padding-bottom: 40px !important;
    }
    .page-ban-ca__hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 15px !important;
    }
    .page-ban-ca__hero-content {
        text-align: center;
        min-width: unset;
    }
    .page-ban-ca__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Adjust H1 size for mobile */
    }
    .page-ban-ca__hero-description {
        font-size: 1em !important;
    }
    .page-ban-ca__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__hero-image {
        min-width: unset;
        width: 100%;
    }
    .page-ban-ca__hero-main-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Module 1 - Intro Section */
    .page-ban-ca__intro-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__section-title {
        font-size: 1.8em !important;
    }
    .page-ban-ca__section-description {
        font-size: 0.95em !important;
        margin-bottom: 30px !important;
    }
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr !important; /* Single column for features */
        gap: 20px !important;
        margin-top: 30px !important;
    }
    .page-ban-ca__feature-item {
        padding: 20px !important;
    }
    .page-ban-ca__icon-box-media {
        width: 150px !important; /* Smaller fixed size for circular image */
        height: 150px !important;
        margin-bottom: 15px !important;
    }
    .page-ban-ca__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .page-ban-ca__feature-title {
        font-size: 1.3em !important;
    }
    .page-ban-ca__feature-text {
        font-size: 0.9em !important;
    }

    /* Games Section */
    .page-ban-ca__games-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__game-list {
        grid-template-columns: 1fr !important; /* Single column for game cards */
        gap: 20px !important;
        margin-top: 30px !important;
    }
    .page-ban-ca__game-card {
        padding-bottom: 20px !important;
    }
    .page-ban-ca__game-image {
        height: 200px !important; /* Adjust height for mobile cards */
    }
    .page-ban-ca__game-title {
        font-size: 1.5em !important;
        padding: 0 15px !important;
    }
    .page-ban-ca__game-text {
        font-size: 0.9em !important;
        padding: 0 15px 15px !important;
    }

    /* Guide Section */
    .page-ban-ca__guide-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__guide-steps {
        grid-template-columns: 1fr !important; /* Single column for guide steps */
        gap: 20px !important;
        margin-top: 30px !important;
    }
    .page-ban-ca__guide-step {
        padding: 20px !important;
    }
    .page-ban-ca__step-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }
    .page-ban-ca__step-title {
        font-size: 1.2em !important;
    }
    .page-ban-ca__step-text {
        font-size: 0.9em !important;
    }
    .page-ban-ca__guide-cta {
        margin-top: 40px !important;
    }

    /* Tips Section */
    .page-ban-ca__tips-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__tips-list {
        margin-top: 30px !important;
    }
    .page-ban-ca__tips-list li {
        padding: 12px 15px !important;
        margin-bottom: 10px !important;
        font-size: 0.95em !important;
    }
    .page-ban-ca__tips-image {
        margin-top: 30px !important;
    }

    /* FAQ Section */
    .page-ban-ca__faq-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__faq-list {
        margin-top: 30px !important;
    }
    .page-ban-ca__faq-item {
        margin-bottom: 10px !important;
    }
    .page-ban-ca__faq-item summary {
        padding: 15px 20px !important;
        font-size: 1em !important;
    }
    .page-ban-ca__faq-toggle {
        font-size: 1.5em !important;
    }
    .page-ban-ca__faq-answer {
        padding: 0 20px 15px !important;
        font-size: 0.9em !important;
    }

    /* Generic image responsive */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* All containers with images */
    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container,
    .page-ban-ca__game-card,
    .page-ban-ca__feature-item,
    .page-ban-ca__guide-step,
    .page-ban-ca__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}