.page-ban-ca {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Body background is white */
}

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding for fixed header */
    padding-bottom: 60px;
    background-color: #f8f8f8; /* Light background for hero */
}

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

.page-ban-ca__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-ban-ca__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #017439; /* Primary color for H1 */
    max-width: 600px;
}

.page-ban-ca__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
    color: #333333;
}

.page-ban-ca__hero-image {
    flex: 1 1 40%;
    text-align: center;
}

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

/* CTA Buttons */
.page-ban-ca__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-ban-ca__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-ban-ca__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-ban-ca__btn-secondary {
    background-color: transparent;
    color: #017439; /* Primary brand color */
    border: 2px solid #017439;
}

.page-ban-ca__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-ban-ca__btn-inline {
    margin-top: 20px;
}

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

/* General Section Styling */
.page-ban-ca__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-ban-ca__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-ban-ca__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

.page-ban-ca__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
    color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-ban-ca__section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: inherit; /* Inherit color from parent section */
}

/* Intro Section (Module 1 - Feature images) */
.page-ban-ca__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ban-ca__icon-box {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #f5f5f5; /* Light grey background for boxes */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #017439; /* Border with primary color */
}

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

.page-ban-ca__icon-box-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #017439; /* Primary color for titles */
}

.page-ban-ca__icon-box-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

/* Game Features Section */
.page-ban-ca__content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.page-ban-ca__content-text {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-ban-ca__content-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit; /* Inherit white for dark bg */
}

.page-ban-ca__content-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: inherit;
}

.page-ban-ca__content-image {
    flex: 1 1 40%;
    text-align: center;
}

.page-ban-ca__content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* How to Play Section */
.page-ban-ca__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ban-ca__step-item {
    text-align: center;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.page-ban-ca__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #017439;
}

/* Tips Section */
.page-ban-ca__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ban-ca__tip-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark bg */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #ffffff;
}

.page-ban-ca__tip-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFF00; /* Yellow for titles on dark bg */
}

.page-ban-ca__tip-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #f0f0f0;
}

/* FAQ Section */
.page-ban-ca__faq-list {
    margin-top: 40px;
}

.page-ban-ca__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #017439;
    cursor: pointer;
    background-color: #e8f5e9; /* Lighter green background for question */
    user-select: none;
    list-style: none; /* Hide default marker for <summary> */
    -webkit-details-marker: none; /* Hide default marker for Webkit */
}

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

.page-ban-ca__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 15px;
    color: #017439;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-ban-ca__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
    background-color: #ffffff;
}

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

.page-ban-ca__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-ban-ca__faq-answer a:hover {
    color: #005a2e;
}

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

.page-ban-ca__cta-bottom-content {
    max-width: 900px;
}

.page-ban-ca__cta-bottom-section .page-ban-ca__section-title {
    color: #ffffff;
}

.page-ban-ca__cta-bottom-section .page-ban-ca__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-ban-ca__cta-bottom-section .page-ban-ca__cta-buttons {
    justify-content: center;
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Fixed header spacing */
        padding-bottom: 40px;
    }

    .page-ban-ca__hero-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 30px;
    }

    .page-ban-ca__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        text-align: center;
    }

    .page-ban-ca__hero-description {
        font-size: 1rem;
        text-align: center;
    }

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

    .page-ban-ca__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px; /* Add padding to button container */
        width: 100%; /* Ensure container takes full width */
        max-width: 100%; /* Ensure container takes full width */
        box-sizing: border-box;
    }

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

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

    .page-ban-ca__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 15px;
    }

    .page-ban-ca__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    /* Module 1 - Intro Section (Feature images) */
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ban-ca__icon-box-media {
        width: 200px; /* Still square */
        height: 200px; /* Still square */
        border: 3px solid #017439;
    }

    .page-ban-ca__icon-box-title {
        font-size: 1.3rem;
    }

    /* Game Features Section */
    .page-ban-ca__content-grid {
        flex-direction: column;
        gap: 30px;
    }

    .page-ban-ca__content-text,
    .page-ban-ca__content-image {
        flex: 1 1 100%;
        min-width: unset;
    }

    .page-ban-ca__content-subtitle {
        font-size: 1.4rem;
        margin-top: 20px;
    }

    /* How to Play Section */
    .page-ban-ca__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    /* Tips Section */
    .page-ban-ca__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ban-ca__tip-title {
        font-size: 1.3rem;
    }

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

    .page-ban-ca__faq-toggle {
        font-size: 1.3rem;
    }

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

    /* CTA Bottom Section */
    .page-ban-ca__cta-bottom-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .page-ban-ca__cta-bottom-section .page-ban-ca__cta-buttons {
        flex-direction: column;
    }

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