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

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 60px;
    background-color: #f8f8f8; /* Light background for hero section */
}

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

.page-ban-ca__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #333333; /* Ensure contrast on light background */
}

.page-ban-ca__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #017439; /* Brand color for H1 */
}

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

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-ban-ca__btn-primary {
    background-color: #C30808; /* Custom color for register/login type buttons */
    color: #FFFF00; /* Custom font color for register/login buttons */
    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; /* Brand color */
    border: 2px solid #017439;
}

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

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

.page-ban-ca__side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

.page-ban-ca__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
}

.page-ban-ca__section-description {
    font-size: 1.05em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

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

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

.page-ban-ca__feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-ban-ca__feature-item {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    min-width: 280px;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background-color: #f8f8f8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__icon-box-media {
    width: 200px; /* Fixed width for circular image */
    height: 200px; /* Fixed height for circular image */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #017439; /* Brand border for circular images */
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-ban-ca__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

.page-ban-ca__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Game Versions Section */
.page-ban-ca__dark-bg {
    background-color: #017439; /* Brand color background */
    color: #ffffff; /* White text on dark background */
}

.page-ban-ca__dark-bg .page-ban-ca__section-title {
    color: #ffffff; /* White title on dark background */
}

.page-ban-ca__dark-bg .page-ban-ca__section-description {
    color: #f0f0f0; /* Light grey text on dark background */
}

.page-ban-ca__game-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-ban-ca__game-card {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    min-width: 280px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
}

.page-ban-ca__game-image {
    width: 100%;
    height: 200px; /* Fixed height for game card images */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-ban-ca__game-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-ban-ca__game-text {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-ban-ca__game-button {
    margin-top: auto; /* Push button to bottom */
}

/* Guide Section */
.page-ban-ca__guide-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

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

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

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

.page-ban-ca__guide-step {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__guide-step-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
}

.page-ban-ca__guide-step-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
}

.page-ban-ca__guide-button {
    margin-top: 10px;
}

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

.page-ban-ca__tips-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__tips-item-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

/* Why Choose Section */
.page-ban-ca__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-ban-ca__benefits-item {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__benefits-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-ban-ca__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f0fdf0; /* Light green background for FAQ question */
    border-bottom: 1px solid #e0f0e0;
    list-style: none; /* Hide default marker for details summary */
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
    border-bottom: 1px solid #d0e0d0;
}

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

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}

.page-ban-ca__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
}

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

.page-ban-ca__inline-link {
    color: #017439;
    text-decoration: underline;
}

.page-ban-ca__inline-link:hover {
    color: #005a2e;
}

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

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

/* Responsive Styles */
@media (max-width: 768px) {
    .page-ban-ca {
        font-size: 16px;
        line-height: 1.6;
    }

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

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

    .page-ban-ca__hero-content {
        min-width: auto;
    }

    .page-ban-ca__main-title {
        font-size: 2.2em; /* Adjusted H1 for mobile */
    }

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

    .page-ban-ca__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-ban-ca__hero-image {
        min-width: auto;
    }

    .page-ban-ca__side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* General Section & Containers */
    .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: 1.8em;
        margin-bottom: 15px;
    }

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

    /* Intro Section */
    .page-ban-ca__intro-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .page-ban-ca__feature-grid {
        flex-direction: column;
        gap: 20px;
    }

    .page-ban-ca__feature-item {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: auto;
        padding: 15px;
    }

    .page-ban-ca__icon-box-media {
        width: 150px; /* Smaller circular image for mobile */
        height: 150px;
        border-width: 3px;
    }

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

    /* Game Versions Section */
    .page-ban-ca__game-grid {
        flex-direction: column;
        gap: 20px;
    }

    .page-ban-ca__game-card {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: auto;
        padding-bottom: 15px;
    }

    .page-ban-ca__game-image {
        height: 180px; /* Adjusted height for mobile game cards */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Ensure responsiveness */
    }

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

    .page-ban-ca__game-text {
        font-size: 0.9em;
    }

    /* Guide Section */
    .page-ban-ca__guide-layout {
        flex-direction: column;
        gap: 30px;
    }

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

    .page-ban-ca__guide-img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-ban-ca__guide-step {
        padding: 20px;
        margin-bottom: 15px;
    }

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

    .page-ban-ca__guide-step-text {
        font-size: 0.95em;
    }

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

    .page-ban-ca__tips-item {
        padding: 20px;
    }

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

    /* Why Choose Section */
    .page-ban-ca__benefits-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ban-ca__benefits-item {
        padding: 15px;
    }

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

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

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

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

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

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

    .page-ban-ca__cta-final-content {
        padding: 0 15px;
    }
}