/* General styles */
.page-ban-ca {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background */
    background-color: #FFFFFF; /* Body background is white */
}

.page-ban-ca__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-ban-ca__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-ban-ca__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    max-width: 100%; /* For mobile */
    box-sizing: border-box; /* For mobile */
    white-space: normal; /* For mobile */
    word-wrap: break-word; /* For mobile */
}

.page-ban-ca__btn-primary {
    background-color: #C30808; /* Registration/Login color */
    color: #FFFF00; /* Registration/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;
    border: 2px solid #017439;
}

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

.page-ban-ca__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* For mobile */
    width: 100%; /* For mobile */
    max-width: 100%; /* For mobile */
    box-sizing: border-box; /* For mobile */
    overflow: hidden; /* For mobile */
}

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

/* HERO Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: #FFFFFF; /* Ensure white background for contrast */
}

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

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

.page-ban-ca__main-title {
    font-size: 3em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-ban-ca__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
}

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

.page-ban-ca__hero-side-image {
    max-width: 600px; /* Example max width */
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Intro Section (Module 1 - 3 circular images) */
.page-ban-ca__intro-section {
    padding: 60px 0;
}

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

.page-ban-ca__feature-item {
    text-align: center;
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #017439;
}

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

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

.page-ban-ca__feature-description {
    color: #555555;
}

/* Games Section (Tabs) */
.page-ban-ca__games-section {
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* Light text */
    padding: 60px 0;
}

.page-ban-ca__games-section .page-ban-ca__section-title {
    color: #FFFFFF;
}

.page-ban-ca__games-section .page-ban-ca__section-description {
    color: #f0f0f0;
}

.page-ban-ca__game-tabs {
    margin-top: 40px;
}

.page-ban-ca__tab-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.page-ban-ca__tab-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-ban-ca__tab-button:hover,
.page-ban-ca__tab-button.is-active {
    background-color: #FFFFFF;
    color: #017439;
    border-color: #FFFFFF;
}

.page-ban-ca__game-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page-ban-ca__game-panel.is-active {
    display: block;
}

.page-ban-ca__game-card {
    background-color: #FFFFFF;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__game-trial-frame {
    border: none;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 400px; /* Ensure a minimum height for the iframe */
}

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

.page-ban-ca__game-description {
    color: #555555;
    margin-bottom: 20px;
}

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

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

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

.page-ban-ca__guide-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px; /* Minimum size for images */
}

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

.page-ban-ca__guide-description {
    color: #555555;
}

/* Strategy Section */
.page-ban-ca__strategy-section {
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* Light text */
    padding: 60px 0;
}

.page-ban-ca__strategy-section .page-ban-ca__section-title {
    color: #FFFFFF;
}

.page-ban-ca__strategy-section .page-ban-ca__section-description {
    color: #f0f0f0;
}

.page-ban-ca__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-ban-ca__strategy-list li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-ban-ca__strategy-item-title {
    font-size: 1.4em;
    color: #FFFF00; /* Use a contrasting color for titles on dark background */
    margin-bottom: 10px;
}

.page-ban-ca__strategy-list p {
    color: #f0f0f0;
}

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

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

.page-ban-ca__promo-card {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-ban-ca__promo-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px; /* Minimum size for images */
}

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

.page-ban-ca__promo-description {
    color: #555555;
    margin-bottom: 20px;
}

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

.page-ban-ca__faq-list {
    margin-top: 40px;
}

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

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    list-style: none; /* For details/summary */
}

.page-ban-ca__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}

.page-ban-ca__faq-question::marker {
    display: none; /* Hide default marker */
}

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #017439;
}

.page-ban-ca__faq-answer {
    padding: 0 25px 20px 25px;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding-top: 10px;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    content: "−";
}

/* Final CTA Section */
.page-ban-ca__cta-final-section {
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* Light text */
    padding: 60px 0;
    text-align: center;
}

.page-ban-ca__cta-final-content .page-ban-ca__section-title {
    color: #FFFFFF;
}

.page-ban-ca__cta-final-content .page-ban-ca__section-description {
    color: #f0f0f0;
}

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

    .page-ban-ca__hero-content {
        order: 2;
        padding-top: 20px;
    }

    .page-ban-ca__hero-image {
        order: 1;
    }

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

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

@media (max-width: 768px) {
    /* General mobile container padding */
    .page-ban-ca__content-area {
        padding: 20px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Buttons */
    .page-ban-ca__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px !important; /* Ensure buttons have side padding */
    }
    .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 15px !important; /* Adjust padding for smaller screens */
    }

    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 20px !important;
    }
    .page-ban-ca__hero-container {
        padding: 20px 15px !important;
        gap: 15px !important;
    }
    .page-ban-ca__main-title {
        font-size: 2em !important;
    }
    .page-ban-ca__hero-description {
        font-size: 1em !important;
    }

    /* Module 1 - Intro Section */
    .page-ban-ca__intro-section {
        padding: 30px 0 !important;
    }
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-ban-ca__icon-box-media {
        width: 200px !important; /* Still square */
        height: 200px !important; /* Still square */
        border-width: 3px !important;
    }
    .page-ban-ca__feature-title {
        font-size: 1.3em !important;
    }

    /* Games Section (Tabs) */
    .page-ban-ca__games-section {
        padding: 30px 0 !important;
    }
    .page-ban-ca__section-title {
        font-size: 1.8em !important;
    }
    .page-ban-ca__tab-nav {
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }
    .page-ban-ca__tab-button {
        font-size: 1em !important;
        padding: 10px 15px !important;
    }
    .page-ban-ca__game-card {
        padding: 20px !important;
    }
    .page-ban-ca__game-title {
        font-size: 1.5em !important;
    }
    .page-ban-ca__game-trial-frame {
        min-height: 300px !important;
    }

    /* Guide Section */
    .page-ban-ca__guide-section {
        padding: 30px 0 !important;
    }
    .page-ban-ca__guide-steps {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-ban-ca__guide-title {
        font-size: 1.4em !important;
    }

    /* Strategy Section */
    .page-ban-ca__strategy-section {
        padding: 30px 0 !important;
    }
    .page-ban-ca__strategy-list li {
        padding: 15px !important;
    }
    .page-ban-ca__strategy-item-title {
        font-size: 1.2em !important;
    }

    /* Promo Section */
    .page-ban-ca__promo-section {
        padding: 30px 0 !important;
    }
    .page-ban-ca__promo-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-ban-ca__promo-title {
        font-size: 1.4em !important;
    }

    /* FAQ Section */
    .page-ban-ca__faq-section {
        padding: 30px 0 !important;
    }
    .page-ban-ca__faq-question {
        padding: 15px 20px !important;
        font-size: 1.1em !important;
    }
    .page-ban-ca__faq-answer {
        padding: 0 20px 15px 20px !important;
    }

    /* Final CTA Section */
    .page-ban-ca__cta-final-section {
        padding: 30px 0 !important;
    }
}