/* style/ban-ca.css */

/* General styles for .page-ban-ca */
.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 */
}

.page-ban-ca__container {
    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; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

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

.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-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 300px; /* Limit individual button width on desktop */
}

.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; /* Brand color for text */
    border: 2px solid #017439;
}

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

.page-ban-ca__btn-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}

.page-ban-ca__btn-link:hover {
    text-decoration: underline;
}

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

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

.page-ban-ca__dark-bg .page-ban-ca__section-title,
.page-ban-ca__dark-bg .page-ban-ca__section-description,
.page-ban-ca__dark-bg .page-ban-ca__feature-title,
.page-ban-ca__dark-bg .page-ban-ca__feature-text,
.page-ban-ca__dark-bg .page-ban-ca__promo-title,
.page-ban-ca__dark-bg .page-ban-ca__promo-text,
.page-ban-ca__dark-bg .page-ban-ca__reason-title,
.page-ban-ca__dark-bg .page-ban-ca__reason-text,
.page-ban-ca__dark-bg .page-ban-ca__step-title,
.page-ban-ca__dark-bg .page-ban-ca__step-text {
    color: #ffffff; /* Ensure all text is white on dark background */
}

.page-ban-ca__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
}

.page-ban-ca__light-bg .page-ban-ca__section-title {
    color: #017439;
}

/* Hero Section (Main Visual Section for non-homepage) */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, shared.css handles header offset */
    padding-bottom: 40px;
    background-color: #f8f8f8; /* Light background for the hero section */
}

.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;
    text-align: left;
}

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

.page-ban-ca__intro-text {
    font-size: 1.15em;
    line-height: 1.6;
    margin-bottom: 30px;
}

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

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

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

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

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

.page-ban-ca__icon-box-media {
    width: 180px; /* Smaller square for non-homepage feature */
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #017439;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

/* How to Play Section */
.page-ban-ca__how-to-play-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-ban-ca__guide-step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-ban-ca__step-icon {
    width: 60px;
    height: 60px;
    background-color: #FFFF00; /* Yellow for step icons */
    color: #017439; /* Brand green for text on yellow */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto 20px;
}

.page-ban-ca__step-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-ban-ca__step-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

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

.page-ban-ca__promo-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.page-ban-ca__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
}

.page-ban-ca__promo-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

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

/* Why Choose Section */
.page-ban-ca__why-choose-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-ban-ca__reason-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-ban-ca__reason-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-ban-ca__reason-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

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

.page-ban-ca__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px 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: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

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

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

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    margin-left: 15px;
    color: #555555;
}

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

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

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

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

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

.page-ban-ca__final-cta-section .page-ban-ca__section-title {
    margin-bottom: 15px;
}

.page-ban-ca__final-cta-section .page-ban-ca__section-description {
    max-width: 700px;
    margin-bottom: 40px;
}

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

    .page-ban-ca__hero-content {
        text-align: center;
        flex: 1 1 100%;
    }

    .page-ban-ca__hero-image {
        flex: 1 1 100%;
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
    
    .page-ban-ca__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }

    .page-ban-ca__intro-text {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    /* General Mobile Adjustments */
    .page-ban-ca__container {
        padding: 25px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .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; /* Small top padding, shared.css handles header offset */
        padding-bottom: 25px !important;
    }

    .page-ban-ca__hero-container {
        padding: 25px 15px !important;
        gap: 20px;
    }

    .page-ban-ca__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em); /* More constrained H1 on mobile */
        text-align: center !important;
    }

    .page-ban-ca__intro-text {
        font-size: 1em;
        text-align: center !important;
        margin-bottom: 20px;
    }

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

    .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;
    }

    .page-ban-ca__hero-image {
        margin-bottom: 20px !important;
    }

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

    .page-ban-ca__features-grid {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px !important;
        margin-top: 30px !important;
    }

    .page-ban-ca__feature-item {
        padding: 20px !important;
    }

    .page-ban-ca__icon-box-media {
        width: 150px !important; /* Ensure square aspect ratio */
        height: 150px !important;
        margin-bottom: 15px !important;
    }

    /* How to Play Section */
    .page-ban-ca__how-to-play-section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .page-ban-ca__guide-steps {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px !important;
        margin-top: 30px !important;
    }

    /* Promotion Section */
    .page-ban-ca__promo-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .page-ban-ca__promo-grid {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px !important;
        margin-top: 30px !important;
    }

    .page-ban-ca__promo-card {
        flex-direction: column !important;
    }

    .page-ban-ca__promo-image {
        height: 180px !important; /* Adjust height for mobile */
    }

    .page-ban-ca__promo-content {
        padding: 20px !important;
    }

    /* Why Choose Section */
    .page-ban-ca__why-choose-section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .page-ban-ca__reason-grid {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px !important;
        margin-top: 30px !important;
    }

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

    .page-ban-ca__faq-list {
        margin-top: 30px !important;
    }

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

    .page-ban-ca__faq-toggle {
        font-size: 1.2em !important;
    }

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

    /* Final CTA Section */
    .page-ban-ca__final-cta-section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* Universal image responsive for content area */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container,
    .page-ban-ca__promo-card,
    .page-ban-ca__feature-item,
    .page-ban-ca__guide-step-item,
    .page-ban-ca__reason-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden; /* Prevent horizontal scroll */
    }
}